/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/dist/dashboard.min.js (953333B)
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=Sg(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 _g=function(){const e=new Map;return new Proxy(kg,{apply:(e,t,n)=>kg(...n),get:(t,n)=>(e.has(n)||e.set(n,kg(n)),e.get(n))})}(),Cg={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]}}},Rg=(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=Cg,toastSpacing:d="0.5rem"}=e,[f,p]=(0,t.useState)(l),h=null===(m=(0,t.useContext)(yc))||m.isPresent;var m;vc(()=>{h||null==o||o()},[h]),vc(()=>{p(l)},[l]);const g=()=>{h&&a()};(0,t.useEffect)(()=>{h&&i&&a()},[h,i,a]),function(e,n){const r=gc(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)(dg.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)(_g.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:et(r,{id:n,onClose:g})})})});function Pg(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 Og(e){return(0,t.forwardRef)(e)}function Ag(){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 Jv(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{i||(u(new ey(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class ry{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rv(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:_v?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class oy extends ry{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||qv,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=Uv(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(Cv).catch(Cv):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||!Pv(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;ty(e)&&e.silent||this.dispatch({type:"error",error:e}),ty(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=ny({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:Jv(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 ty(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),Zv.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class ay extends Gv{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:Fv(o,t);let i=this.get(a);return i||(i=new oy({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(){Zv.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Av(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Tv(n,e))}findAll(e,t){const[n]=Av(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Tv(n,e)):this.queries}notify(e){Zv.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Zv.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Zv.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class iy extends ry{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||qv,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=ny({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:!Jv(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),Zv.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class sy extends Gv{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new iy({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(){Zv.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=>Mv(e,t))}findAll(e){return this.mutations.filter(t=>Mv(e,t))}notify(e){Zv.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 Zv.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Cv)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function ly(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class cy{constructor(e={}){this.queryCache=e.queryCache||new ay,this.mutationCache=e.mutationCache||new sy,this.logger=e.logger||qv,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Yv.subscribe(()=>{Yv.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Kv.subscribe(()=>{Kv.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]=Av(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=Ov(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=Ov(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Zv.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]=Av(e,t),r=this.queryCache;Zv.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Av(e,t,n),a=this.queryCache,i={type:"active",...r};return Zv.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Av(e,t,n);void 0===o.revert&&(o.revert=!0);const a=Zv.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(Cv).catch(Cv)}invalidateQueries(e,t,n){const[r,o]=Av(e,t,n);return Zv.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]=Av(e,t,n),a=Zv.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(Cv);return null!=o&&o.throwOnError||(i=i.catch(Cv)),i}fetchQuery(e,t,n){const r=Ov(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(Cv).catch(Cv)}fetchInfiniteQuery(e,t,n){const r=Ov(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:ly(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\" "}),PP=Og((e,t)=>{const n=Lg("Table",e),{className:r,layout:o,...a}=Nn(e);return(0,Ne.jsx)(CP,{value:n,children:(0,Ne.jsx)(_g.table,{ref:t,__css:{tableLayout:o,...n.table},className:Ke("chakra-table",r),...a})})});PP.displayName="Table";var OP=Og((e,t)=>{const n=RP();return(0,Ne.jsx)(_g.thead,{...e,ref:t,__css:n.thead})}),AP=Og((e,t)=>{const n=RP();return(0,Ne.jsx)(_g.tr,{...e,ref:t,__css:n.tr})}),TP=Og(({isNumeric:e,...t},n)=>{const r=RP();return(0,Ne.jsx)(_g.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),MP=Og((e,t)=>{const n=RP();return(0,Ne.jsx)(_g.tbody,{...e,ref:t,__css:n.tbody})}),FP=Og(({isNumeric:e,...t},n)=>{const r=RP();return(0,Ne.jsx)(_g.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})});const{evfRestApiNonce:zP,restURL:DP}="undefined"!=typeof _EVF_DASHBOARD_&&_EVF_DASHBOARD_,LP=DP+"everest-forms/v1/",IP={modules:LP+"modules",activateModule:LP+"modules/activate",deactivateModule:LP+"modules/deactivate",bulkActivateModules:LP+"modules/bulk-activate",bulkDeactivateModules:LP+"modules/bulk-deactivate",activateLicense:LP+"modules/activate-license"},jP=async()=>zx({path:`${IP.modules}`,method:"get",headers:{"X-WP-Nonce":zP}}).then(e=>e),NP=i.p+"fe5509bcbadc27f16471f08850716c5a.webp",BP=i.p+"2ce9495ac6ba037bca102f85611adbe0.webp",VP=()=>{const[e,n]=(0,t.useState)(!1),{upgradeURL:r}="undefined"!=typeof _EVF_DASHBOARD_&&_EVF_DASHBOARD_,[o,a]=(0,t.useState)([{type:"features",title:cx("Features","everest-forms"),contents:[{title:cx("Unlimited Forms","everest-forms"),free:!0,pro:!0},{title:cx("Unlimited Form Entries","everest-forms"),free:!0,pro:!0},{title:cx("Email Notifications ","everest-forms"),free:!0,pro:!0},{title:cx("Google Analytics ","everest-forms"),free:!0,pro:!0},{title:cx("Multiple File Uploads","everest-forms"),free:!1,pro:!0},{title:cx("User Redirection ","everest-forms"),free:!0,pro:!0},{title:cx("Import/Export Forms ","everest-forms"),free:!0,pro:!0},{title:cx("Export Entries in CSV ","everest-forms"),free:!0,pro:!0},{title:cx("E-signature ","everest-forms"),free:!1,pro:!0},{title:cx("Webhook Support ","everest-forms"),free:!1,pro:!0},{title:cx("Honeypot Security ","everest-forms"),free:!0,pro:!0},{title:cx("Google reCAPTCHA ","everest-forms"),free:!0,pro:!0},{title:cx("HCaptcha","everest-forms"),free:!0,pro:!0},{title:cx("Whitelist/Blacklist Domains ","everest-forms"),free:!1,pro:!0},{title:cx("Google Drive","everest-forms"),free:!1,pro:!0},{title:cx("Dropbox","everest-forms"),free:!1,pro:!0},{title:cx("Smart Tags Support","everest-forms"),free:!0,pro:!0},{title:cx("GDPR Compliance","everest-forms"),free:!1,pro:!0},{title:cx("Test Emails","everest-forms"),free:!0,pro:!0},{title:cx("AJAX Form Submission","everest-forms"),free:!0,pro:!0},{title:cx("Auto-populate Forms ","everest-forms"),free:!1,pro:!0}]},{type:"addons",title:cx("Addons","everest-forms"),contents:[{title:cx("Style Customizer ","everest-forms"),free:!1,pro:!0},{title:cx("Muilti-step Forms ","everest-forms"),free:!1,pro:!0},{title:cx("MailChimp ","everest-forms"),free:!1,pro:!0},{title:cx("ConvertKit ","everest-forms"),free:!1,pro:!0},{title:cx("PDF Form Submission ","everest-forms"),free:!1,pro:!0},{title:cx("Custom CAPTCHA","everest-forms"),free:!1,pro:!0},{title:cx("Geolocation ","everest-forms"),free:!1,pro:!0},{title:cx("MailerLite","everest-forms"),free:!1,pro:!0},{title:cx("ActiveCampaign ","everest-forms"),free:!1,pro:!0},{title:cx("Campaign Monitor","everest-forms"),free:!1,pro:!0},{title:cx("Google Sheets ","everest-forms"),free:!1,pro:!0},{title:cx("Surveys, Polls, and Quiz ","everest-forms"),free:!1,pro:!0},{title:cx("User Registration ","everest-forms"),free:!1,pro:!0},{title:cx("Post Submission","everest-forms"),free:!1,pro:!0},{title:cx("Email Templates","everest-forms"),free:!1,pro:!0},{title:cx("PayPal Standard","everest-forms"),free:!1,pro:!0},{title:cx("Stripe","everest-forms"),free:!1,pro:!0},{title:cx("Authorize.Net","everest-forms"),free:!1,pro:!0},{title:cx("Zapier","everest-forms"),free:!1,pro:!0},{title:cx("Save and Continue","everest-forms"),free:!1,pro:!0},{title:cx("Repeater Fields","everest-forms"),free:!1,pro:!0},{title:cx("Calculations","everest-forms"),free:!1,pro:!0},{title:cx("Razorpay","everest-forms"),free:!1,pro:!0},{title:cx("SMS Notifications","everest-forms"),free:!1,pro:!0},{title:cx("Coupons","everest-forms"),free:!1,pro:!0},{title:cx("Frontend Listing","everest-forms"),free:!1,pro:!0},{title:cx("Drip","everest-forms"),free:!1,pro:!0},{title:cx("HubSpot","everest-forms"),free:!1,pro:!0},{title:cx("Pipedrive","everest-forms"),free:!1,pro:!0},{title:cx("Zoho CRM","everest-forms"),free:!1,pro:!0},{title:cx("Salesforce","everest-forms"),free:!1,pro:!0},{title:cx("Constant Contact","everest-forms"),free:!1,pro:!0},{title:cx("Cloud Storage","everest-forms"),free:!1,pro:!0},{title:cx("GetResponse","everest-forms"),free:!1,pro:!0},{title:cx("Sendinblue","everest-forms"),free:!1,pro:!0},{title:cx("Conversational Forms","everest-forms"),free:!1,pro:!0},{title:cx("AI Contact Form - Free","everest-forms"),free:!0,pro:!0}]}]);return(0,t.useEffect)(()=>{if(!e){const e=[...o];jP().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($x,{direction:"column",gap:"10px"},React.createElement(_P,{my:"8",mx:"6"},o.map(e=>React.createElement(PP,{variant:"simple",fontSize:"14px",key:e.type},React.createElement(OP,{bgColor:"#7545bb"},React.createElement(AP,{border:"1px solid #F4F4F4",alignItems:"center"},React.createElement(TP,{w:"50%",color:"white"},e.title),React.createElement(TP,{w:"25%",color:"white"},cx("Free","everest-forms")),React.createElement(TP,{w:"25%",color:"white"},cx("Pro","everest-forms")))),React.createElement(MP,null,e.contents.map(e=>React.createElement(AP,{border:"1px solid #F4F4F4",alignItems:"center",key:e.title},React.createElement(FP,null,e.title),React.createElement(FP,null,e.free?React.createElement(nS,{w:"16px",h:"16px",src:NP}):React.createElement(nS,{w:"16px",h:"16px",src:BP})),React.createElement(FP,null,e.pro?React.createElement(nS,{w:"16px",h:"16px",src:NP}):React.createElement(nS,{w:"16px",h:"16px",src:BP})))))))),React.createElement($x,{gap:"16px",direction:"column",alignItems:"center",bgColor:"#F1F5FE",padding:"32px 0px",borderRadius:"4px",my:"8",mx:"6"},React.createElement(ZR,{h:"70px",w:"80px"}),React.createElement(FC,{fontSize:"18px",lineHeight:"24px",fontWeight:"700"},cx("Upgrade Now","everest-forms")),React.createElement(FC,{fontSize:"14px",lineHeight:"24px",fontWeight:"400",padding:"10px 50px",color:"#6B6B6B"},cx("Access all premium addons, features and upcoming updates right away by upgrading to the Pro version.","everest-forms")),React.createElement(XE,{as:Nx,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"},cx("Get Everest Form Pro Now","everest-forms"))))};var WP=Og(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)(_g.div,{ref:t,__css:h,...p})});WP.displayName="Grid";const HP=i.p+"73e84ecf138c39fb2c97167a5f9e82a2.webp",$P=i.p+"49f9520e9ca04b8812e26bf548c09eae.webp",UP=i.p+"bf7d11b17f85f0181710e4c28be8174b.webp";var qP=i(7965),ZP=Object.defineProperty,GP=(e,t,n)=>(((e,t,n)=>{t in e?ZP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function YP(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 QP(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function KP(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var XP="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,JP=class{constructor(){GP(this,"descendants",new Map),GP(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)}}),GP(this,"unregister",e=>{this.descendants.delete(e);const t=YP(Array.from(this.descendants.keys()));this.assignIndex(t)}),GP(this,"destroy",()=>{this.descendants.clear()}),GP(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),GP(this,"count",()=>this.descendants.size),GP(this,"enabledCount",()=>this.enabledValues().length),GP(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),GP(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),GP(this,"item",e=>{if(0!==this.count())return this.values()[e]}),GP(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),GP(this,"first",()=>this.item(0)),GP(this,"firstEnabled",()=>this.enabledItem(0)),GP(this,"last",()=>this.item(this.descendants.size-1)),GP(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),GP(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),GP(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),GP(this,"next",(e,t=!0)=>{const n=QP(e,this.count(),t);return this.item(n)}),GP(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=QP(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)}),GP(this,"prev",(e,t=!0)=>{const n=KP(e,this.count()-1,t);return this.item(n)}),GP(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=KP(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)}),GP(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=YP(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)})}},[eO,tO]=$e({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function nO(){return[eO,()=>tO(),()=>function(){const e=(0,t.useRef)(new JP);return XP(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const n=tO(),[r,o]=(0,t.useState)(-1),a=(0,t.useRef)(null);XP(()=>()=>{a.current&&n.unregister(a.current)},[]),XP(()=>{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:hw(i,a)}}(e)]}var[rO,oO]=$e({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"