/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/dist/dashboard.min.js (953323B)
t=>{const{theme:n,css:r,__css:o,sx:a,...i}=t,s=Vn(i,(e,t)=>Fn(t)),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},o,Hn(e,t),Wn(s),a),c=Ln(l)(t.theme);return r?[c,r]:c})({baseStyle:r}),i=kg(e,o)(a);return t.forwardRef(function(e,n){const{colorMode:r,forced:o}=Ye();return t.createElement(i,{ref:n,"data-theme":o?r:void 0,...e})})}var Cg=function(){const e=new Map;return new Proxy(_g,{apply:(e,t,n)=>_g(...n),get:(t,n)=>(e.has(n)||e.set(n,_g(n)),e.get(n))})}(),Rg={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Pg=(0,t.memo)(e=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:a,requestClose:i=!1,position:s="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=Rg,toastSpacing:d="0.5rem"}=e,[f,p]=(0,t.useState)(l),h=null===(m=(0,t.useContext)(bc))||m.isPresent;var m;yc(()=>{h||null==o||o()},[h]),yc(()=>{p(l)},[l]);const g=()=>{h&&a()};(0,t.useEffect)(()=>{h&&i&&a()},[h,i,a]),function(e,n){const r=vc(e);(0,t.useEffect)(()=>{if(null==n)return;let e=null;return e=window.setTimeout(()=>{r()},n),()=>{e&&window.clearTimeout(e)}},[n,r])}(g,f);const v=(0,t.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),y=(0,t.useMemo)(()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s),[s]);return(0,Ne.jsx)(fg.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(l),custom:{position:s},style:y,children:(0,Ne.jsx)(Cg.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:et(r,{id:n,onClose:g})})})});function Og(e,t){var n;const r=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==o?void 0:o[t])?n:r}function Ag(e){return(0,t.forwardRef)(e)}function Tg(){const e=(0,t.useContext)(Pe);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `{if(l())return d()}).then(()=>{o?u(t):f()})):u(t)})};return ey(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{i||(u(new ty(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class oy{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pv(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Cv?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ay extends oy{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zv,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=qv(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Rv).catch(Rv):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ov(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,o;ny(e)&&e.silent||this.dispatch({type:"error",error:e}),ny(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=ry({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:ey(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return ny(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Gv.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class iy extends Yv{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:zv(o,t);let i=this.get(a);return i||(i=new ay({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Gv.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Tv(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Mv(n,e))}findAll(e,t){const[n]=Tv(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Mv(n,e)):this.queries}notify(e){Gv.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Gv.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Gv.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class sy extends oy{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zv,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=ry({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,i,s,l,c;if(!t){var u,d,f,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(d=this.mutationCache.config).onMutate)?void 0:u.call(d,this.state.variables,this));const e=await(null==(f=(p=this.options).onMutate)?void 0:f.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,h,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,m,g,v,y,b,x,w;throw await(null==(h=(m=this.mutationCache.config).onError)?void 0:h.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(v=this.options).onError)?void 0:g.call(v,e,this.state.variables,this.state.context)),await(null==(y=(b=this.mutationCache.config).onSettled)?void 0:y.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ey(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),Gv.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class ly extends Yv{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new sy({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){Gv.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Fv(e,t))}findAll(e){return this.mutations.filter(t=>Fv(e,t))}notify(e){Gv.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return Gv.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Rv)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function cy(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class uy{constructor(e={}){this.queryCache=e.queryCache||new iy,this.mutationCache=e.mutationCache||new ly,this.logger=e.logger||Zv,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Qv.subscribe(()=>{Qv.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Xv.subscribe(()=>{Xv.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Tv(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=Av(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=Av(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Gv.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Tv(e,t),r=this.queryCache;Gv.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Tv(e,t,n),a=this.queryCache,i={type:"active",...r};return Gv.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Tv(e,t,n);void 0===o.revert&&(o.revert=!0);const a=Gv.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(Rv).catch(Rv)}invalidateQueries(e,t,n){const[r,o]=Tv(e,t,n);return Gv.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Tv(e,t,n),a=Gv.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(Rv);return null!=o&&o.throwOnError||(i=i.catch(Rv)),i}fetchQuery(e,t,n){const r=Av(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rv).catch(Rv)}fetchInfiniteQuery(e,t,n){const r=Av(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),f=(null==(a=e.state.data)?void 0:a.pages)||[],p=(null==(i=e.state.data)?void 0:i.pageParams)||[];let h=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(h=r?[t,...h]:[...h,t],r?[n,...e]:[...e,n]),y=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{m=!0}),e.signal}});const s=g(a);return Promise.resolve(s).then(e=>v(t,r,e,o))};let b;if(f.length)if(u){const t=void 0!==c,n=t?c:cy(e.options,f);b=y(f,t,n)}else if(d){const t=void 0!==c,n=t?c:function(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}(e.options,f);b=y(f,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=s&&f[0]&&!s(f[0],0,f)?Promise.resolve(v([],p[0],f[0])):y([],t,p[0]);for(let n=1;n\" "}),OP=Ag((e,t)=>{const n=Ig("Table",e),{className:r,layout:o,...a}=Nn(e);return(0,Ne.jsx)(RP,{value:n,children:(0,Ne.jsx)(Cg.table,{ref:t,__css:{tableLayout:o,...n.table},className:Ke("chakra-table",r),...a})})});OP.displayName="Table";var AP=Ag((e,t)=>{const n=PP();return(0,Ne.jsx)(Cg.thead,{...e,ref:t,__css:n.thead})}),TP=Ag((e,t)=>{const n=PP();return(0,Ne.jsx)(Cg.tr,{...e,ref:t,__css:n.tr})}),MP=Ag(({isNumeric:e,...t},n)=>{const r=PP();return(0,Ne.jsx)(Cg.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),FP=Ag((e,t)=>{const n=PP();return(0,Ne.jsx)(Cg.tbody,{...e,ref:t,__css:n.tbody})}),zP=Ag(({isNumeric:e,...t},n)=>{const r=PP();return(0,Ne.jsx)(Cg.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})});const{evfRestApiNonce:DP,restURL:LP}="undefined"!=typeof _EVF_DASHBOARD_&&_EVF_DASHBOARD_,IP=LP+"everest-forms/v1/",jP={modules:IP+"modules",activateModule:IP+"modules/activate",deactivateModule:IP+"modules/deactivate",bulkActivateModules:IP+"modules/bulk-activate",bulkDeactivateModules:IP+"modules/bulk-deactivate",activateLicense:IP+"modules/activate-license"},NP=async()=>Dx({path:`${jP.modules}`,method:"get",headers:{"X-WP-Nonce":DP}}).then(e=>e),BP=i.p+"fe5509bcbadc27f16471f08850716c5a.webp",VP=i.p+"2ce9495ac6ba037bca102f85611adbe0.webp",WP=()=>{const[e,n]=(0,t.useState)(!1),{upgradeURL:r}="undefined"!=typeof _EVF_DASHBOARD_&&_EVF_DASHBOARD_,[o,a]=(0,t.useState)([{type:"features",title:ux("Features","everest-forms"),contents:[{title:ux("Unlimited Forms","everest-forms"),free:!0,pro:!0},{title:ux("Unlimited Form Entries","everest-forms"),free:!0,pro:!0},{title:ux("Email Notifications ","everest-forms"),free:!0,pro:!0},{title:ux("Google Analytics ","everest-forms"),free:!0,pro:!0},{title:ux("Multiple File Uploads","everest-forms"),free:!1,pro:!0},{title:ux("User Redirection ","everest-forms"),free:!0,pro:!0},{title:ux("Import/Export Forms ","everest-forms"),free:!0,pro:!0},{title:ux("Export Entries in CSV ","everest-forms"),free:!0,pro:!0},{title:ux("E-signature ","everest-forms"),free:!1,pro:!0},{title:ux("Webhook Support ","everest-forms"),free:!1,pro:!0},{title:ux("Honeypot Security ","everest-forms"),free:!0,pro:!0},{title:ux("Google reCAPTCHA ","everest-forms"),free:!0,pro:!0},{title:ux("HCaptcha","everest-forms"),free:!0,pro:!0},{title:ux("Whitelist/Blacklist Domains ","everest-forms"),free:!1,pro:!0},{title:ux("Google Drive","everest-forms"),free:!1,pro:!0},{title:ux("Dropbox","everest-forms"),free:!1,pro:!0},{title:ux("Smart Tags Support","everest-forms"),free:!0,pro:!0},{title:ux("GDPR Compliance","everest-forms"),free:!1,pro:!0},{title:ux("Test Emails","everest-forms"),free:!0,pro:!0},{title:ux("AJAX Form Submission","everest-forms"),free:!0,pro:!0},{title:ux("Auto-populate Forms ","everest-forms"),free:!1,pro:!0}]},{type:"addons",title:ux("Addons","everest-forms"),contents:[{title:ux("Style Customizer ","everest-forms"),free:!1,pro:!0},{title:ux("Muilti-step Forms ","everest-forms"),free:!1,pro:!0},{title:ux("MailChimp ","everest-forms"),free:!1,pro:!0},{title:ux("ConvertKit ","everest-forms"),free:!1,pro:!0},{title:ux("PDF Form Submission ","everest-forms"),free:!1,pro:!0},{title:ux("Custom CAPTCHA","everest-forms"),free:!1,pro:!0},{title:ux("Geolocation ","everest-forms"),free:!1,pro:!0},{title:ux("MailerLite","everest-forms"),free:!1,pro:!0},{title:ux("ActiveCampaign ","everest-forms"),free:!1,pro:!0},{title:ux("Campaign Monitor","everest-forms"),free:!1,pro:!0},{title:ux("Google Sheets ","everest-forms"),free:!1,pro:!0},{title:ux("Surveys, Polls, and Quiz ","everest-forms"),free:!1,pro:!0},{title:ux("User Registration ","everest-forms"),free:!1,pro:!0},{title:ux("Post Submission","everest-forms"),free:!1,pro:!0},{title:ux("Email Templates","everest-forms"),free:!1,pro:!0},{title:ux("PayPal Standard","everest-forms"),free:!1,pro:!0},{title:ux("Stripe","everest-forms"),free:!1,pro:!0},{title:ux("Authorize.Net","everest-forms"),free:!1,pro:!0},{title:ux("Zapier","everest-forms"),free:!1,pro:!0},{title:ux("Save and Continue","everest-forms"),free:!1,pro:!0},{title:ux("Repeater Fields","everest-forms"),free:!1,pro:!0},{title:ux("Calculations","everest-forms"),free:!1,pro:!0},{title:ux("Razorpay","everest-forms"),free:!1,pro:!0},{title:ux("SMS Notifications","everest-forms"),free:!1,pro:!0},{title:ux("Coupons","everest-forms"),free:!1,pro:!0},{title:ux("Frontend Listing","everest-forms"),free:!1,pro:!0},{title:ux("Drip","everest-forms"),free:!1,pro:!0},{title:ux("HubSpot","everest-forms"),free:!1,pro:!0},{title:ux("Pipedrive","everest-forms"),free:!1,pro:!0},{title:ux("Zoho CRM","everest-forms"),free:!1,pro:!0},{title:ux("Salesforce","everest-forms"),free:!1,pro:!0},{title:ux("Constant Contact","everest-forms"),free:!1,pro:!0},{title:ux("Cloud Storage","everest-forms"),free:!1,pro:!0},{title:ux("GetResponse","everest-forms"),free:!1,pro:!0},{title:ux("Sendinblue","everest-forms"),free:!1,pro:!0},{title:ux("Conversational Forms","everest-forms"),free:!1,pro:!0},{title:ux("AI Contact Form - Free","everest-forms"),free:!0,pro:!0}]}]);return(0,t.useEffect)(()=>{if(!e){const e=[...o];NP().then(t=>{t.success&&(e.map((n,r)=>{"features"===n.type&&(t.modules_lists.map(e=>{"feature"==e.type&&(n.contents=[...n.contents,{title:e.title,free:!1,pro:!0}])}),e[r]=n),"addons"===n.type&&(t.modules_lists.map(e=>{"addon"==e.type&&(n.contents=[...n.contents,{title:e.title,free:!1,pro:!0}])}),e[r]=n)}),a(e))}).catch(e=>{toast({title:e.message,status:"error",duration:3e3})}),n(!0)}},[e,o]),React.createElement(Ux,{direction:"column",gap:"10px"},React.createElement(CP,{my:"8",mx:"6"},o.map(e=>React.createElement(OP,{variant:"simple",fontSize:"14px",key:e.type},React.createElement(AP,{bgColor:"#7545bb"},React.createElement(TP,{border:"1px solid #F4F4F4",alignItems:"center"},React.createElement(MP,{w:"50%",color:"white"},e.title),React.createElement(MP,{w:"25%",color:"white"},ux("Free","everest-forms")),React.createElement(MP,{w:"25%",color:"white"},ux("Pro","everest-forms")))),React.createElement(FP,null,e.contents.map(e=>React.createElement(TP,{border:"1px solid #F4F4F4",alignItems:"center",key:e.title},React.createElement(zP,null,e.title),React.createElement(zP,null,e.free?React.createElement(rS,{w:"16px",h:"16px",src:BP}):React.createElement(rS,{w:"16px",h:"16px",src:VP})),React.createElement(zP,null,e.pro?React.createElement(rS,{w:"16px",h:"16px",src:BP}):React.createElement(rS,{w:"16px",h:"16px",src:VP})))))))),React.createElement(Ux,{gap:"16px",direction:"column",alignItems:"center",bgColor:"#F1F5FE",padding:"32px 0px",borderRadius:"4px",my:"8",mx:"6"},React.createElement(GR,{h:"70px",w:"80px"}),React.createElement(zC,{fontSize:"18px",lineHeight:"24px",fontWeight:"700"},ux("Upgrade Now","everest-forms")),React.createElement(zC,{fontSize:"14px",lineHeight:"24px",fontWeight:"400",padding:"10px 50px",color:"#6B6B6B"},ux("Access all premium addons, features and upcoming updates right away by upgrading to the Pro version.","everest-forms")),React.createElement(JE,{as:Bx,colorScheme:"primary",href:r+"utm_medium=evf-dashboard&utm_source=evf-free&utm_campaign=dash-free-vs-pro-footer&utm_content=Get%20Everest%20Form%20Pro%20Now",color:"white !important",textDecor:"none !important",isExternal:!0,padding:"10px 16px",borderRadius:"3px"},ux("Get Everest Form Pro Now","everest-forms"))))};var HP=Ag(function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:a,column:i,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:f,...p}=e,h={display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:f};return(0,Ne.jsx)(Cg.div,{ref:t,__css:h,...p})});HP.displayName="Grid";const $P=i.p+"73e84ecf138c39fb2c97167a5f9e82a2.webp",UP=i.p+"49f9520e9ca04b8812e26bf548c09eae.webp",qP=i.p+"bf7d11b17f85f0181710e4c28be8174b.webp";var ZP=i(7965),GP=Object.defineProperty,YP=(e,t,n)=>(((e,t,n)=>{t in e?GP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function QP(e){return e.sort((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function KP(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function XP(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var JP="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,eO=class{constructor(){YP(this,"descendants",new Map),YP(this,"register",e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}}),YP(this,"unregister",e=>{this.descendants.delete(e);const t=QP(Array.from(this.descendants.keys()));this.assignIndex(t)}),YP(this,"destroy",()=>{this.descendants.clear()}),YP(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),YP(this,"count",()=>this.descendants.size),YP(this,"enabledCount",()=>this.enabledValues().length),YP(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),YP(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),YP(this,"item",e=>{if(0!==this.count())return this.values()[e]}),YP(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),YP(this,"first",()=>this.item(0)),YP(this,"firstEnabled",()=>this.enabledItem(0)),YP(this,"last",()=>this.item(this.descendants.size-1)),YP(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),YP(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),YP(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),YP(this,"next",(e,t=!0)=>{const n=KP(e,this.count(),t);return this.item(n)}),YP(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=KP(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)}),YP(this,"prev",(e,t=!0)=>{const n=XP(e,this.count()-1,t);return this.item(n)}),YP(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=XP(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)}),YP(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=QP(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}},[tO,nO]=$e({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function rO(){return[tO,()=>nO(),()=>function(){const e=(0,t.useRef)(new eO);return JP(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const n=nO(),[r,o]=(0,t.useState)(-1),a=(0,t.useRef)(null);JP(()=>()=>{a.current&&n.unregister(a.current)},[]),JP(()=>{if(!a.current)return;const e=Number(a.current.dataset.index);r==e||Number.isNaN(e)||o(e)});const i=e?n.register(e):n.register;return{descendants:n,index:r,enabledIndex:n.enabledIndexOf(a.current),register:mw(i,a)}}(e)]}var[oO,aO]=$e({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"