const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Calendar-D2I8gFU2.js","./wp-i18n-shim-DUX0OV_V.js","./vendor-DDjlQeP6.js","./Clock-BniMcYQJ.js","./withIconDefaults-BJCqj2oX.js","./utils-Bl0WAcve.js","./UserCheck-BVZJydz2.js","./service-input-C9nQ3b7b.js","./Button-BveKhP38.js","./Combination-BuKwnoTc.js","./command-Cf7PHIDr.js","./dialog-EtKUcLIM.js","./index-f2RCAr_u.js","./search-P9p39fmP.js","./popover-D8UtFi-E.js","./index-Bl84CzKv.js","./badge-DBj5X-b5.js","./priceFormatter-Dg4GlACg.js","./tag-8m_NofXN.js","./Masonary-nPxAKeft.js","./Calender-GA8AQSPY.js","./Layers-JNsy7EZN.js","./Envelope-B2-E47aK.js","./DollarCircle-CqTu8Ult.js","./Eye-3n4RqNN4.js","./card-CNcjg1NV.js","./avatar-kVfFVfuh.js","./index-BrYiunaL.js","./dateTimeFormat-yH4yHSCh.js","./parseISO-7GFRGhFN.js","./format-KhiMdRwp.js","./select-BFNitOb0.js","./store-rDqSxbzb.js","./lodash-Bd-B7UeG.js","./defineProperty-DbXIQDXj.js","./typeof-QjJsDpFa.js","./apiConfig-BA13wrqF.js","./index-CLZ4-rw6.js","./toast-1-c8k_LJ.js","./proxy-CtW-P0pQ.js","./CalenderCheck-2TB2QVYq.js","./calendar-Cz3-D5io.js","./phone-D7LpPecR.js","./ActionButton-Cr4Z2a1F.js","./loader-circle-CcSu72zH.js","./CrudLayout-DRSWmVk9.js","./ArrowLeftIcon-C8q2jgKs.js","./plus-WPVVS3Qe.js","./preload-helper-Dp1pzeXC.js","./shield-DVSNyXBB.js","./circle-check-big-Bxgqw2u9.js","./Dashboard-Cpxug2iX.js","./index-qBIihVyl.js","./Users-BVCyUeBv.js","./CreditCard-m5nqt_RK.js","./Cogs-Cnkf43Xi.js","./User-BsNUo7dD.js","./index-B6oRD4U1.js","./input-Dw-69aYW.js","./dropdown-menu-EYEjuOIn.js","./index-CcfXrftP.js","./circle-DNYav3qT.js","./skeleton-DfFmlQ5i.js","./ConfirmDialog-Bbm_78dn.js","./Search-Deq4yX7o.js","./Edit-ChdaRnpE.js","./Trash-BkcPMnbK.js","./link-CAlvqKlr.js","./copy-CujkJL51.js","./eye-BNq7Nif8.js","./code-BSR1KX-T.js","./label-CwRAQd0m.js","./textarea-CG8MgAEa.js","./switch-I41RT0Bn.js","./tabs-7R76dlGV.js","./ticket-Cc7QZFVF.js","./trash-2-CS5zm_gd.js","./date-picker-q5NTWWN-.js","./time-picker-BSbsRgdR.js","./scroll-area-JhQW4-1L.js","./ImageUpload-CcSoaEux.js","./useMediaUploader-DCuR6epV.js","./CategorySelect-LE4jZ1Fs.js","./arrow-right-DztcoQ91.js","./save-BecwuxKD.js","./currency-DQMOSJyc.js","./dollar-sign-Bnksw8VW.js","./send-DWp3gBH9.js","./index-f6n5L5uu.js","./Plus-CUBr-Nma.js","./checkbox-CQ-dG0Dh.js","./Tabs-CqSp1R3E.js","./progress-CI0J5mUA.js","./circle-check-Af-sR4AZ.js","./separator-BQS_7xs6.js","./time-input-with-popover-DLwBMQVI.js","./EmployeeForm-NgdGPFLx.js","./phone-input-BRAt4Ybc.js","./AddLocationForm-tGWpYZPP.js","./FormField-8HG4dTZR.js","./circle-alert-COuSc4NK.js","./StatusSwitcher-BMMLTfxu.js","./WpUserSelectField-JRPQcyDm.js","./phoneValidation-RUqJw3r3.js","./ProFeatureCard-BWfAwmAZ.js","./crown-CcV7MJml.js","./lock-ws9wrevH.js","./grip-vertical-KUq1h8IO.js","./repeat-CasMt-Ba.js","./useValidation-B5n8rnWA.js","./user-plus-Cb8A9Lwo.js","./collapsible-mVZCwGgq.js","./GoogleCalender-BNhy3hJ_.js","./Zoom-B_DWzU5-.js","./ProBadge-CmJaWZjE.js","./refresh-cw-DB5brqih.js","./external-link--Gk3o8ZG.js","./index-DyQUHAvt.js","./Save-jKoE2q3L.js","./Pagination-D4i_uNKG.js","./Table-p19l2S6r.js","./SkeletonTableRows-yUolPLdf.js","./ProUpgradeBanner-B_761Fa7.js","./index-DjoIHTjf.js","./CountCard-BFy9bFF1.js","./user-bjdz1CQT.js","./index-IkC3x6EF.js","./funnel-BWk-93uU.js","./index-BhTbd9TP.js","./AppointmentDetails-Bsk5sW_z.js","./PaymentSection-Ds2_2QsE.js","./file-text-D1bHRDDM.js","./isBefore-Bz60gwk_.js","./CustomFieldsBlock-DnshtruT.js","./briefcase-BPMaZmF0.js","./index-DX2vnKFP.js","./pdf-generator-CwOFrypx.js","./download-CulMzxYx.js","./index-CLfDOQdS.js","./Field-BWyeMycL.js","./index-qbB9yQCS.js","./AppointmentIcon-Cwf7aZjQ.js","./ArrowRightIcon-CuIwF9ra.js","./index-CvV0pYdf.js","./index-C2K8tGoQ.js","./index-BmwHQt8b.js","./trash-B3A4Feoe.js","./Analytics-DfRNnDrh.js","./calendar-check-BnxK3HlR.js","./index-CN-kj7-P.js","./index-Ce0zsEDO.js","./index-DHlp2xb0.js","./index-DYi4yiN5.js","./CustomFieldAnswersChip-CmzMxISN.js","./index-Bs5vOZgm.js","./index-BakvKvFP.js"])))=>i.map(i=>d[i]);
import{r as c,R as ut,j as r,_ as s,a as dt}from"./wp-i18n-shim-DUX0OV_V.js";import{_ as C}from"./preload-helper-Dp1pzeXC.js";import{c as j,a as S,X as pt}from"./utils-Bl0WAcve.js";import{C as G,a as _e,V as J,b as U,G as Ve,c as ht,d as mt,S as ft}from"./CalenderCheck-2TB2QVYq.js";import{w as Be,U as W,C as gt,I as xt}from"./withIconDefaults-BJCqj2oX.js";import{C as ue}from"./calendar-Cz3-D5io.js";import{T as Ue}from"./tag-8m_NofXN.js";import{S as ae}from"./shield-DVSNyXBB.js";import{m as bt,A as vt}from"./proxy-CtW-P0pQ.js";import{C as yt}from"./circle-check-big-Bxgqw2u9.js";import"./vendor-DDjlQeP6.js";/**
 * @remix-run/router v1.23.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},H.apply(this,arguments)}var T;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(T||(T={}));const je="popstate";function kt(e){e===void 0&&(e={});function t(o,i){let{pathname:l="/",search:d="",hash:u=""}=B(o.location.hash.substr(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),re("",{pathname:l,search:d,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let l=o.document.querySelector("base"),d="";if(l&&l.getAttribute("href")){let u=o.location.href,p=u.indexOf("#");d=p===-1?u:u.slice(0,p)}return d+"#"+(typeof i=="string"?i:K(i))}function a(o,i){Y(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Ct(t,n,a,e)}function w(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wt(){return Math.random().toString(36).substr(2,8)}function Ee(e,t){return{usr:e.state,key:e.key,idx:t}}function re(e,t,n,a){return n===void 0&&(n=null),H({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?B(t):t,{state:n,key:t&&t.key||a||wt()})}function K(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function B(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function Ct(e,t,n,a){a===void 0&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,l=o.history,d=T.Pop,u=null,p=m();p==null&&(p=0,l.replaceState(H({},l.state,{idx:p}),""));function m(){return(l.state||{idx:null}).idx}function h(){d=T.Pop;let f=m(),_=f==null?null:f-p;p=f,u&&u({action:d,location:b.location,delta:_})}function x(f,_){d=T.Push;let E=re(b.location,f,_);n&&n(E,f),p=m()+1;let k=Ee(E,p),R=b.createHref(E);try{l.pushState(k,"",R)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(R)}i&&u&&u({action:d,location:b.location,delta:1})}function y(f,_){d=T.Replace;let E=re(b.location,f,_);n&&n(E,f),p=m();let k=Ee(E,p),R=b.createHref(E);l.replaceState(k,"",R),i&&u&&u({action:d,location:b.location,delta:0})}function v(f){let _=o.location.origin!=="null"?o.location.origin:o.location.href,E=typeof f=="string"?f:K(f);return E=E.replace(/ $/,"%20"),w(_,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,_)}let b={get action(){return d},get location(){return e(o,l)},listen(f){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(je,h),u=f,()=>{o.removeEventListener(je,h),u=null}},createHref(f){return t(o,f)},createURL:v,encodeLocation(f){let _=v(f);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:x,replace:y,go(f){return l.go(f)}};return b}var Ne;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ne||(Ne={}));function _t(e,t,n){return n===void 0&&(n="/"),jt(e,t,n)}function jt(e,t,n,a){let o=typeof t=="string"?B(t):t,i=de(o.pathname||"/",n);if(i==null)return null;let l=$e(e);Et(l);let d=null;for(let u=0;d==null&&u<l.length;++u){let p=Ft(i);d=zt(l[u],p)}return d}function $e(e,t,n,a){t===void 0&&(t=[]),n===void 0&&(n=[]),a===void 0&&(a="");let o=(i,l,d)=>{let u={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(w(u.relativePath.startsWith(a),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(a.length));let p=I([a,u.relativePath]),m=n.concat(u);i.children&&i.children.length>0&&(w(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),$e(i.children,t,m,p)),!(i.path==null&&!i.index)&&t.push({path:p,score:At(p,i.index),routesMeta:m})};return e.forEach((i,l)=>{var d;if(i.path===""||!((d=i.path)!=null&&d.includes("?")))o(i,l);else for(let u of De(i.path))o(i,l,u)}),t}function De(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(a.length===0)return o?[i,""]:[i];let l=De(a.join("/")),d=[];return d.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&d.push(...l),d.map(u=>e.startsWith("/")&&u===""?"/":u)}function Et(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ot(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const Nt=/^:[\w-]+$/,Pt=3,Mt=2,Rt=1,St=10,Lt=-2,Pe=e=>e==="*";function At(e,t){let n=e.split("/"),a=n.length;return n.some(Pe)&&(a+=Lt),t&&(a+=Mt),n.filter(o=>!Pe(o)).reduce((o,i)=>o+(Nt.test(i)?Pt:i===""?Rt:St),a)}function Ot(e,t){return e.length===t.length&&e.slice(0,-1).every((a,o)=>a===t[o])?e[e.length-1]-t[t.length-1]:0}function zt(e,t,n){let{routesMeta:a}=e,o={},i="/",l=[];for(let d=0;d<a.length;++d){let u=a[d],p=d===a.length-1,m=i==="/"?t:t.slice(i.length)||"/",h=Tt({path:u.relativePath,caseSensitive:u.caseSensitive,end:p},m),x=u.route;if(!h)return null;Object.assign(o,h.params),l.push({params:o,pathname:I([i,h.pathname]),pathnameBase:Dt(I([i,h.pathnameBase])),route:x}),h.pathnameBase!=="/"&&(i=I([i,h.pathnameBase]))}return l}function Tt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=It(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],l=i.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:a.reduce((p,m,h)=>{let{paramName:x,isOptional:y}=m;if(x==="*"){let b=d[h]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const v=d[h];return y&&!v?p[x]=void 0:p[x]=(v||"").replace(/%2F/g,"/"),p},{}),pathname:i,pathnameBase:l,pattern:e}}function It(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Y(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let a=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,u)=>(a.push({paramName:d,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),a]}function Ft(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Y(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function de(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}const Vt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bt=e=>Vt.test(e);function Ut(e,t){t===void 0&&(t="/");let{pathname:n,search:a="",hash:o=""}=typeof e=="string"?B(e):e,i;if(n)if(Bt(n))i=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),Y(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?i=Me(n.substring(1),"/"):i=Me(n,t)}else i=t;return{pathname:i,search:Wt(a),hash:Ht(o)}}function Me(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function te(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(a)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $t(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pe(e,t){let n=$t(e);return t?n.map((a,o)=>o===n.length-1?a.pathname:a.pathnameBase):n.map(a=>a.pathnameBase)}function he(e,t,n,a){a===void 0&&(a=!1);let o;typeof e=="string"?o=B(e):(o=H({},e),w(!o.pathname||!o.pathname.includes("?"),te("?","pathname","search",o)),w(!o.pathname||!o.pathname.includes("#"),te("#","pathname","hash",o)),w(!o.search||!o.search.includes("#"),te("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,d;if(l==null)d=n;else{let h=t.length-1;if(!a&&l.startsWith("..")){let x=l.split("/");for(;x[0]==="..";)x.shift(),h-=1;o.pathname=x.join("/")}d=h>=0?t[h]:"/"}let u=Ut(o,d),p=l&&l!=="/"&&l.endsWith("/"),m=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(p||m)&&(u.pathname+="/"),u}const I=e=>e.join("/").replace(/\/\/+/g,"/"),Dt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Wt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ht=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const We=["post","put","patch","delete"];new Set(We);const Zt=["get",...We];new Set(Zt);/**
 * React Router v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},q.apply(this,arguments)}const me=c.createContext(null),Jt=c.createContext(null),F=c.createContext(null),ee=c.createContext(null),z=c.createContext({outlet:null,matches:[],isDataRoute:!1}),He=c.createContext(null);function Gt(e,t){let{relative:n}=t===void 0?{}:t;$()||w(!1);let{basename:a,navigator:o}=c.useContext(F),{hash:i,pathname:l,search:d}=Ze(e,{relative:n}),u=l;return a!=="/"&&(u=l==="/"?a:I([a,l])),o.createHref({pathname:u,search:d,hash:i})}function $(){return c.useContext(ee)!=null}function A(){return $()||w(!1),c.useContext(ee).location}function qe(e){c.useContext(F).static||c.useLayoutEffect(e)}function fe(){let{isDataRoute:e}=c.useContext(z);return e?cn():Kt()}function Kt(){$()||w(!1);let e=c.useContext(me),{basename:t,future:n,navigator:a}=c.useContext(F),{matches:o}=c.useContext(z),{pathname:i}=A(),l=JSON.stringify(pe(o,n.v7_relativeSplatPath)),d=c.useRef(!1);return qe(()=>{d.current=!0}),c.useCallback(function(p,m){if(m===void 0&&(m={}),!d.current)return;if(typeof p=="number"){a.go(p);return}let h=he(p,JSON.parse(l),i,m.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:I([t,h.pathname])),(m.replace?a.replace:a.push)(h,m.state,m)},[t,a,l,i,e])}function Ka(){let{matches:e}=c.useContext(z),t=e[e.length-1];return t?t.params:{}}function Ze(e,t){let{relative:n}=t===void 0?{}:t,{future:a}=c.useContext(F),{matches:o}=c.useContext(z),{pathname:i}=A(),l=JSON.stringify(pe(o,a.v7_relativeSplatPath));return c.useMemo(()=>he(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function Xt(e,t){return Qt(e,t)}function Qt(e,t,n,a){$()||w(!1);let{navigator:o}=c.useContext(F),{matches:i}=c.useContext(z),l=i[i.length-1],d=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let p=A(),m;if(t){var h;let f=typeof t=="string"?B(t):t;u==="/"||(h=f.pathname)!=null&&h.startsWith(u)||w(!1),m=f}else m=p;let x=m.pathname||"/",y=x;if(u!=="/"){let f=u.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(f.length).join("/")}let v=_t(e,{pathname:y}),b=an(v&&v.map(f=>Object.assign({},f,{params:Object.assign({},d,f.params),pathname:I([u,o.encodeLocation?o.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?u:I([u,o.encodeLocation?o.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),i,n,a);return t&&b?c.createElement(ee.Provider,{value:{location:q({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:T.Pop}},b):b}function Yt(){let e=ln(),t=qt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,null)}const en=c.createElement(Yt,null);class tn extends c.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?c.createElement(z.Provider,{value:this.props.routeContext},c.createElement(He.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nn(e){let{routeContext:t,match:n,children:a}=e,o=c.useContext(me);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(z.Provider,{value:t},a)}function an(e,t,n,a){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),a===void 0&&(a=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=a)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,d=(o=n)==null?void 0:o.errors;if(d!=null){let m=l.findIndex(h=>h.route.id&&(d==null?void 0:d[h.route.id])!==void 0);m>=0||w(!1),l=l.slice(0,Math.min(l.length,m+1))}let u=!1,p=-1;if(n&&a&&a.v7_partialHydration)for(let m=0;m<l.length;m++){let h=l[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=m),h.route.id){let{loaderData:x,errors:y}=n,v=h.route.loader&&x[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||v){u=!0,p>=0?l=l.slice(0,p+1):l=[l[0]];break}}}return l.reduceRight((m,h,x)=>{let y,v=!1,b=null,f=null;n&&(y=d&&h.route.id?d[h.route.id]:void 0,b=h.route.errorElement||en,u&&(p<0&&x===0?(un("route-fallback"),v=!0,f=null):p===x&&(v=!0,f=h.route.hydrateFallbackElement||null)));let _=t.concat(l.slice(0,x+1)),E=()=>{let k;return y?k=b:v?k=f:h.route.Component?k=c.createElement(h.route.Component,null):h.route.element?k=h.route.element:k=m,c.createElement(nn,{match:h,routeContext:{outlet:m,matches:_,isDataRoute:n!=null},children:k})};return n&&(h.route.ErrorBoundary||h.route.errorElement||x===0)?c.createElement(tn,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:E(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):E()},null)}var Je=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Je||{}),Ge=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ge||{});function rn(e){let t=c.useContext(me);return t||w(!1),t}function on(e){let t=c.useContext(Jt);return t||w(!1),t}function sn(e){let t=c.useContext(z);return t||w(!1),t}function Ke(e){let t=sn(),n=t.matches[t.matches.length-1];return n.route.id||w(!1),n.route.id}function ln(){var e;let t=c.useContext(He),n=on(),a=Ke();return t!==void 0?t:(e=n.errors)==null?void 0:e[a]}function cn(){let{router:e}=rn(Je.UseNavigateStable),t=Ke(Ge.UseNavigateStable),n=c.useRef(!1);return qe(()=>{n.current=!0}),c.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,q({fromRouteId:t},i)))},[e,t])}const Re={};function un(e,t,n){Re[e]||(Re[e]=!0)}function dn(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function pn(e){let{to:t,replace:n,state:a,relative:o}=e;$()||w(!1);let{future:i,static:l}=c.useContext(F),{matches:d}=c.useContext(z),{pathname:u}=A(),p=fe(),m=he(t,pe(d,i.v7_relativeSplatPath),u,o==="path"),h=JSON.stringify(m);return c.useEffect(()=>p(JSON.parse(h),{replace:n,state:a,relative:o}),[p,h,o,n,a]),null}function ge(e){w(!1)}function hn(e){let{basename:t="/",children:n=null,location:a,navigationType:o=T.Pop,navigator:i,static:l=!1,future:d}=e;$()&&w(!1);let u=t.replace(/^\/*/,"/"),p=c.useMemo(()=>({basename:u,navigator:i,static:l,future:q({v7_relativeSplatPath:!1},d)}),[u,d,i,l]);typeof a=="string"&&(a=B(a));let{pathname:m="/",search:h="",hash:x="",state:y=null,key:v="default"}=a,b=c.useMemo(()=>{let f=de(m,u);return f==null?null:{location:{pathname:f,search:h,hash:x,state:y,key:v},navigationType:o}},[u,m,h,x,y,v,o]);return b==null?null:c.createElement(F.Provider,{value:p},c.createElement(ee.Provider,{children:n,value:b}))}function Xe(e){let{children:t,location:n}=e;return Xt(oe(t),n)}new Promise(()=>{});function oe(e,t){t===void 0&&(t=[]);let n=[];return c.Children.forEach(e,(a,o)=>{if(!c.isValidElement(a))return;let i=[...t,o];if(a.type===c.Fragment){n.push.apply(n,oe(a.props.children,i));return}a.type!==ge&&w(!1),!a.props.index||!a.props.children||w(!1);let l={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(l.children=oe(a.props.children,i)),n.push(l)}),n}/**
 * React Router DOM v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ie.apply(this,arguments)}function mn(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,i;for(i=0;i<a.length;i++)o=a[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gn(e,t){return e.button===0&&(!t||t==="_self")&&!fn(e)}function se(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(o=>[n,o]):[[n,a]])},[]))}function xn(e,t){let n=se(e);return t&&t.forEach((a,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const bn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],vn="6";try{window.__reactRouterVersion=vn}catch{}const yn="startTransition",Se=ut[yn];function kn(e){let{basename:t,children:n,future:a,window:o}=e,i=c.useRef();i.current==null&&(i.current=kt({window:o,v5Compat:!0}));let l=i.current,[d,u]=c.useState({action:l.action,location:l.location}),{v7_startTransition:p}=a||{},m=c.useCallback(h=>{p&&Se?Se(()=>u(h)):u(h)},[u,p]);return c.useLayoutEffect(()=>l.listen(m),[l,m]),c.useEffect(()=>dn(a),[a]),c.createElement(hn,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:l,future:a})}const wn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Cn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ne=c.forwardRef(function(t,n){let{onClick:a,relative:o,reloadDocument:i,replace:l,state:d,target:u,to:p,preventScrollReset:m,viewTransition:h}=t,x=mn(t,bn),{basename:y}=c.useContext(F),v,b=!1;if(typeof p=="string"&&Cn.test(p)&&(v=p,wn))try{let k=new URL(window.location.href),R=p.startsWith("//")?new URL(k.protocol+p):new URL(p),O=de(R.pathname,y);R.origin===k.origin&&O!=null?p=O+R.search+R.hash:b=!0}catch{}let f=Gt(p,{relative:o}),_=_n(p,{replace:l,state:d,target:u,preventScrollReset:m,relative:o,viewTransition:h});function E(k){a&&a(k),k.defaultPrevented||_(k)}return c.createElement("a",ie({},x,{href:v||f,onClick:b||i?a:E,ref:n,target:u}))});var Le;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Le||(Le={}));var Ae;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ae||(Ae={}));function _n(e,t){let{target:n,replace:a,state:o,preventScrollReset:i,relative:l,viewTransition:d}=t===void 0?{}:t,u=fe(),p=A(),m=Ze(e,{relative:l});return c.useCallback(h=>{if(gn(h,n)){h.preventDefault();let x=a!==void 0?a:K(p)===K(m);u(e,{replace:x,state:o,preventScrollReset:i,relative:l,viewTransition:d})}},[p,u,m,a,o,n,e,i,l,d])}function Xa(e){let t=c.useRef(se(e)),n=c.useRef(!1),a=A(),o=c.useMemo(()=>xn(a.search,n.current?null:t.current),[a.search]),i=fe(),l=c.useCallback((d,u)=>{const p=se(typeof d=="function"?d(o):d);n.current=!0,i("?"+p,u)},[i,o]);return[o,l]}/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jn=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],Qe=j("arrow-left-right",jn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const En=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Nn=j("bell",En);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pn=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],Ye=j("blocks",Pn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mn=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],le=j("calendar-days",Mn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rn=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],et=j("chart-column",Rn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Ln=j("circle-x",Sn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const An=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],tt=j("clipboard-list",An);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const On=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Oe=j("layers",On);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zn=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],xe=j("layout-dashboard",zn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tn=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],In=j("list-checks",Tn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fn=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Z=j("list",Fn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vn=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],nt=j("mail",Vn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bn=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ce=j("map-pin",Bn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Un=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],at=j("message-square",Un);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $n=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],rt=j("palette",$n);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dn=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],ot=j("receipt",Dn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wn=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],X=j("trending-up",Wn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],qn=j("triangle-alert",Hn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zn=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],Q=j("wallet",Zn);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jn=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],it=j("wand-sparkles",Jn);function Gn(){return r.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin dark:text-title2 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),r.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}const Kn=Be(Gn);function Xn(e,t,n={}){const{mode:a="both",debounceMs:o=0,collapseOnMount:i=!1}=n,l=c.useRef(typeof window>"u"?!0:window.innerWidth>=e),d=c.useRef(null);c.useEffect(()=>{if(typeof window>"u")return;l.current=window.innerWidth>=e,i&&!l.current&&t(!0);const u=()=>{const m=window.innerWidth>=e;if(a==="sync")t(!m);else{const h=l.current;h&&!m&&(a==="down"||a==="both")&&t(!0),!h&&m&&(a==="up"||a==="both")&&t(!1)}l.current=m},p=()=>{o>0?(clearTimeout(d.current),d.current=setTimeout(u,o)):u()};return window.addEventListener("resize",p),a==="sync"&&u(),()=>{window.removeEventListener("resize",p),d.current&&(clearTimeout(d.current),d.current=null)}},[e,t,a,o,i])}const Qn="radius-booking";function Yn(){const e=jQuery,t=e("#toplevel_page_"+Qn),n=window.location.href,a=n.substr(n.indexOf("admin.php"));e("ul.wp-submenu li",t).removeClass("current"),t.on("click","a",function(){const i=e(this);e("ul.wp-submenu li",t).removeClass("current"),i.hasClass("wp-has-submenu")?e("li.wp-first-item",t).addClass("current"):i.parents("li").addClass("current")});const o=a.split("/");e("ul.wp-submenu a",t).each(function(i,l){typeof o[1]<"u"&&o[1];let d=!1;switch(e(l).attr("href")){case a:d=!0;break}d&&e(l).parent().addClass("current")})}function ea(){const e=A();return c.useEffect(()=>{Yn()},[e.pathname]),null}function ta(){return r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M19.7209 4.8583C19.398 2.30206 17.9138 0.61828 15.0898 0.200598C14.2241 0.0721328 13.2779 0 10.0032 0C6.72842 0 5.78023 0.0721328 4.9186 0.200598C2.09183 0.61828 0.60768 2.30206 0.288177 4.8583C-0.0313283 7.41455 0.000965778 8.17503 0.000965778 10.0003C0.000965778 11.8256 -0.0320152 12.5848 0.28749 15.1417C0.606995 17.6986 2.09115 19.3817 4.91515 19.7994C5.77953 19.9279 6.72705 19.9986 9.99975 20C13.2724 20.0014 14.222 19.9279 15.0843 19.7994C17.9083 19.3817 19.3925 17.6986 19.712 15.1417C20.0315 12.5848 19.9985 11.8236 19.9985 10.0003C19.9985 8.1771 20.037 7.41523 19.7209 4.8583Z",fill:"white"}),r.jsx("path",{d:"M10.5898 10.3113H7.44506C7.02555 10.3113 6.68732 9.96954 6.68732 9.54647C6.68732 9.12339 7.02555 8.78168 7.44506 8.78168H10.5898C11.0093 8.78168 11.3475 9.12339 11.3475 9.54647C11.3475 9.96954 11.0093 10.3113 10.5898 10.3113Z",fill:"#004FFF"}),r.jsx("path",{d:"M9.69874 12.9217H7.44506C7.02555 12.9217 6.68732 12.58 6.68732 12.1569C6.68732 11.7339 7.02555 11.3922 7.44506 11.3922H9.69874C10.1183 11.3922 10.4565 11.7339 10.4565 12.1569C10.4565 12.58 10.1183 12.9217 9.69874 12.9217Z",fill:"#004FFF"}),r.jsx("path",{d:"M15.4081 12.6417C14.9919 12.2219 14.426 11.9843 13.8374 11.9843C13.3983 11.9843 12.9691 12.1145 12.6048 12.3618C12.2406 12.6092 11.9544 12.9574 11.7853 13.3674C11.6162 13.7775 11.5739 14.2266 11.6585 14.6627C11.743 15.0988 11.9544 15.4958 12.2666 15.8115C12.5788 16.1239 12.9723 16.3387 13.4048 16.4266C13.8374 16.5145 14.2829 16.4689 14.6894 16.2997C15.0959 16.1304 15.4406 15.8441 15.6845 15.4731C15.9284 15.1053 16.0585 14.6692 16.0585 14.2266C16.0585 13.6311 15.8244 13.0615 15.4081 12.6417ZM14.7317 13.9597H14.7284L13.8016 14.8938C13.7756 14.9198 13.7463 14.9393 13.7105 14.9556C13.678 14.9686 13.6422 14.9784 13.6032 14.9784C13.5642 14.9784 13.5317 14.9719 13.4959 14.9556C13.4634 14.9426 13.4308 14.9198 13.4048 14.8938L12.943 14.4284C12.917 14.4023 12.8975 14.3698 12.8813 14.3373C12.8682 14.3047 12.8617 14.2657 12.8617 14.2299C12.8617 14.1941 12.8682 14.155 12.8813 14.1225C12.8943 14.0867 12.917 14.0574 12.943 14.0313C12.9691 14.0053 12.9983 13.9858 13.0341 13.9695C13.0666 13.9565 13.1024 13.9467 13.1414 13.9467C13.1804 13.9467 13.213 13.9532 13.2487 13.9695C13.2813 13.9825 13.3138 14.0053 13.3398 14.0313L13.6065 14.3015L14.3414 13.566C14.3935 13.5139 14.465 13.4846 14.5366 13.4846C14.6081 13.4846 14.6796 13.5139 14.7317 13.566C14.7837 13.618 14.813 13.6896 14.813 13.7645C14.813 13.8393 14.7837 13.9109 14.7317 13.963V13.9597Z",fill:"#004FFF"}),r.jsx("path",{d:"M7.66152 7.57157C7.242 7.57157 6.90378 7.22986 6.90378 6.80678V4.1349C6.90378 3.71183 7.242 3.37012 7.66152 3.37012C8.08103 3.37012 8.41925 3.71183 8.41925 4.1349V6.80678C8.41925 7.22986 8.08103 7.57157 7.66152 7.57157Z",fill:"#004FFF"}),r.jsx("path",{d:"M12.3221 7.57157C11.9026 7.57157 11.5643 7.22986 11.5643 6.80678V4.1349C11.5643 3.71183 11.9026 3.37012 12.3221 3.37012C12.7416 3.37012 13.0798 3.71183 13.0798 4.1349V6.80678C13.0798 7.22986 12.7416 7.57157 12.3221 7.57157Z",fill:"#004FFF"}),r.jsx("path",{d:"M16.0941 5.22168V9.07165C16.0941 9.13023 16.0649 9.18881 16.0194 9.22461L14.2177 10.5915L13.2974 11.2912V9.47195C13.2974 9.41337 13.3266 9.35479 13.3722 9.31899L14.5071 8.45656C14.5559 8.42077 14.5819 8.36545 14.5819 8.30361V6.748C14.5819 6.64385 14.4974 6.55924 14.3933 6.55924H5.58671C5.48265 6.55924 5.39809 6.64385 5.39809 6.748V14.7506C5.39809 14.8547 5.48265 14.9394 5.58671 14.9394H10.1331C10.2209 14.9394 10.2957 14.998 10.3152 15.0826C10.4095 15.4731 10.5624 15.8408 10.7738 16.176C10.8518 16.303 10.7608 16.4657 10.6144 16.4657H4.07449C3.97043 16.4657 3.88589 16.3811 3.88589 16.2769V5.21842C3.88589 5.11428 3.97043 5.02966 4.07449 5.02966H15.9055C16.0096 5.02966 16.0941 5.11428 16.0941 5.21842V5.22168Z",fill:"#004FFF"})]})}const na=Be(ta);function aa({isOpen:e,isCollapsed:t,setIsCollapsed:n}){var k,R,O,be,ve,ye,ke,we,Ce;ea();const a=A(),[o,i]=c.useState({}),[l,d]=c.useState(null),u=c.useRef(null),p=(g,M=!1)=>{if(g==="/")return a.pathname==="/";const[N,L]=g.split("?");if(L){if(a.pathname!==N)return!1;const D=new URLSearchParams(L),P=new URLSearchParams(a.search);for(const[V,ct]of D.entries())if(P.get(V)!==ct)return!1;return!0}return M?a.pathname===N:a.pathname===N||a.pathname.startsWith(N+"/")},m=g=>g.children?g.children.some(M=>p(M.path)):!1,h=c.useCallback(g=>{i(M=>({...M,[g]:!M[g]}))},[]),x=c.useCallback(g=>{u.current&&clearTimeout(u.current),d(g)},[]),y=c.useCallback(()=>{u.current=setTimeout(()=>{d(null)},150)},[]),v=[{category:s("Overview","radius-booking"),items:[{name:s("Dashboard","radius-booking"),path:"/",icon:r.jsx(xe,{className:"w-[18px] h-[18px]"})},{name:s("Analytics","radius-booking"),path:"/analytics",icon:r.jsx(et,{className:"w-[18px] h-[18px]"})},{name:s("Calendar","radius-booking"),path:"/calendar",icon:r.jsx(ue,{className:"w-[18px] h-[18px]"})}]},{category:s("Booking Management","radius-booking"),items:[{name:s("Appointment","radius-booking"),path:"/appointment",icon:r.jsx(G,{className:"w-[18px] h-[18px]"})},...(R=(k=window.radius_booking_param)==null?void 0:k.active_modules)!=null&&R.meeting?[{name:s("Meetings","radius-booking"),icon:r.jsx(J,{className:"w-[18px] h-[18px]"}),children:[{name:s("Bookings","radius-booking"),path:"/meeting-bookings",icon:r.jsx(_e,{className:"w-4 h-4"})},{name:s("Meetings","radius-booking"),path:"/meeting-types",icon:r.jsx(Z,{className:"w-4 h-4"})}]}]:[],...(be=(O=window.radius_booking_param)==null?void 0:O.active_modules)!=null&&be.event?[{name:s("Events","radius-booking"),icon:r.jsx(le,{className:"w-[18px] h-[18px]"}),children:[{name:s("Attendees","radius-booking"),path:"/event-registrations",icon:r.jsx(_e,{className:"w-4 h-4"})},{name:s("All Events","radius-booking"),path:"/events",icon:r.jsx(Z,{className:"w-4 h-4"})}]}]:[],{name:s("Customers","radius-booking"),path:"/customers",icon:r.jsx(W,{className:"w-[18px] h-[18px]"})},{name:s("Payment","radius-booking"),path:"/payments",icon:r.jsx(U,{className:"w-[18px] h-[18px]"})},{name:s("Coupons","radius-booking"),path:"/coupons",icon:r.jsx(Ue,{className:"w-[18px] h-[18px]"})},{name:s("Dynamic Pricing","radius-booking"),path:"/dynamic-pricing",icon:r.jsx(X,{className:"w-[18px] h-[18px]"})},...(ve=window.radius_booking_param)!=null&&ve.is_cl_active&&((ye=window.radius_booking_param)!=null&&ye.payout_enabled)?[{name:s("Payouts","radius-booking"),icon:r.jsx(Q,{className:"w-[18px] h-[18px]"}),children:[{name:s("All Payouts","radius-booking"),path:"/payouts",icon:r.jsx(Z,{className:"w-4 h-4"})},{name:s("Commissions","radius-booking"),path:"/payouts/income",icon:r.jsx(X,{className:"w-4 h-4"})}]}]:[]]},{category:s("Business Setup","radius-booking"),items:[{name:s("Services","radius-booking"),path:"/services",icon:r.jsx(Z,{className:"w-4 h-4"})},{name:s("Staff","radius-booking"),path:"/employees",icon:r.jsx(W,{className:"w-4 h-4"})},{name:s("Locations","radius-booking"),path:"/locations",icon:r.jsx(ce,{className:"w-[18px] h-[18px]"})}]},{category:s("Configuration","radius-booking"),items:[{name:s("Custom Fields","radius-booking"),path:"/custom-fields",icon:r.jsx(tt,{className:"w-[18px] h-[18px]"})},{name:s("Notifications","radius-booking"),icon:r.jsx(nt,{className:"w-[18px] h-[18px]"}),children:[{name:s("Emails","radius-booking"),path:"/notifications",icon:r.jsx(Nn,{className:"w-4 h-4"})}]}]},{category:s("Settings","radius-booking"),items:[{name:s("Modules","radius-booking"),path:"/settings?tab=modules",icon:r.jsx(Ye,{className:"w-[18px] h-[18px]"})},{name:s("General","radius-booking"),path:"/settings?tab=general",icon:r.jsx(Ve,{className:"w-[18px] h-[18px]"})},{name:s("Schedule","radius-booking"),path:"/settings?tab=schedule",icon:r.jsx(rt,{className:"w-[18px] h-[18px]"})},{name:s("Tax","radius-booking"),path:"/settings?tab=tax",icon:r.jsx(ot,{className:"w-[18px] h-[18px]"})},{name:s("Appointment","radius-booking"),path:"/settings?tab=appointment-settings",icon:r.jsx(U,{className:"w-[18px] h-[18px]"})},{name:s("Integrations","radius-booking"),path:"/settings?tab=integrations",icon:r.jsx(ae,{className:"w-[18px] h-[18px]"})},{name:s("Payment Gateway","radius-booking"),path:"/settings?tab=payment",icon:r.jsx(U,{className:"w-[18px] h-[18px]"})},{name:s("AI Chatbot","radius-booking"),path:"/settings?tab=chatbot",icon:r.jsx(at,{className:"w-[18px] h-[18px]"})},{name:s("Export / Import","radius-booking"),path:"/settings?tab=export-import",icon:r.jsx(Qe,{className:"w-[18px] h-[18px]"})},...(ke=window.radius_booking_param)!=null&&ke.is_cl_active?[{name:s("Payout","radius-booking"),path:"/settings?tab=payout",icon:r.jsx(Q,{className:"w-[18px] h-[18px]"})}]:[],{name:s("Form Customization","radius-booking"),path:"/form-customization",icon:r.jsx(U,{className:"w-[18px] h-[18px]"})},...(we=window.radius_booking_param)!=null&&we.is_pro?[{name:s("License","radius-booking"),path:"/settings?tab=license",icon:r.jsx(ae,{className:"w-[18px] h-[18px]"})}]:[],{name:s("Setup Wizard","radius-booking"),path:"/setup-wizard",icon:r.jsx(it,{className:"w-[18px] h-[18px]"})}]}],b=v.flatMap(g=>g.items);c.useEffect(()=>{b.forEach(g=>{g.children&&m(g)&&i(M=>({...M,[g.name]:!0}))})},[a.pathname,a.search]);const f=!!((Ce=window.radius_booking_param)!=null&&Ce.is_pro),_=(g,M)=>{const N=g.pro&&!f;return r.jsxs(ne,{to:g.path,className:S("flex text-sm items-center rounded-lg transition-all duration-200 focus:outline-none focus:shadow-none focus:border-none shadow-none outline-none",t?"justify-center px-3 py-3":"px-3 py-2.5",M?t?"bg-[#E5EBF9] text-primary":"bg-gradient-to-r from-[#E5EBF9] to-white text-primary":"text-[#0c0d0e] hover:bg-gradient-to-r hover:from-[#E5EBF9] hover:to-white hover:text-title"),children:[r.jsx("div",{className:S("transition-transform duration-200",M?"scale-110":"group-hover:scale-105",t?"":"mr-3 rtl:mr-0 rtl:ml-3"),children:g.icon}),!t&&r.jsx("span",{className:"font-normal text-l flex-1",children:g.name}),!t&&N&&r.jsx("span",{className:"text-[9px] font-bold bg-gradient-to-r from-amber-500 to-orange-500 text-white px-1.5 py-0.5 rounded-full leading-none",children:s("PRO","radius-booking")}),!t&&M&&!N&&r.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"})]})},E=(g,M)=>{const N=o[g.name],L=l===g.name,D=g.pro&&!f;return r.jsxs(r.Fragment,{children:[r.jsxs("button",{onClick:()=>!t&&h(g.name),className:S("w-full text-sm flex items-center rounded-lg transition-all duration-200 focus:outline-none focus:shadow-none focus:border-none shadow-none outline-none",t?"justify-center px-3 py-3":"px-3 py-2",M?t?"bg-[#E5EBF9] text-black":"bg-gradient-to-r from-[#E5EBF9] to-white text-black":"text-title hover:bg-gradient-to-r hover:from-[#E5EBF9] hover:to-white hover:text-black"),children:[r.jsx("div",{className:S("transition-transform duration-200",M?"scale-110":"group-hover:scale-105",t?"":"mr-3 rtl:mr-0 rtl:ml-3"),children:g.icon}),!t&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"font-normal text-l flex-1 text-left",children:g.name}),D?r.jsx("span",{className:"text-[9px] font-bold bg-gradient-to-r from-amber-500 to-orange-500 text-white px-1.5 py-0.5 rounded-full leading-none",children:s("PRO","radius-booking")}):r.jsx(gt,{className:S("w-4 h-4 transition-transform duration-200",N?"rotate-180":"")})]})]}),!t&&r.jsx("div",{className:S("overflow-hidden text-sm transition-all duration-200 ease-in-out",N?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:r.jsx("div",{className:"ml-8 rtl:ml-0 rtl:mr-8 mt-1 space-y-0.5",children:g.children.map(P=>{const V=p(P.path,!0);return r.jsxs(ne,{to:P.path,className:S("flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-all duration-200","focus:outline-none focus:shadow-none focus:border-none shadow-none outline-none",V?"bg-gradient-to-r from-[#E5EBF9] to-white text-black":"text-[#3f444b] text-title hover:bg-gradient-to-r hover:from-[#E5EBF9] hover:to-white hover:text-black"),children:[r.jsx("span",{children:P.name}),P.pro&&!f&&r.jsx("span",{className:"text-[9px] font-bold bg-gradient-to-r from-amber-500 to-orange-500 text-white px-1.5 py-0.5 rounded-full leading-none ml-auto rtl:ml-0 rtl:mr-auto",children:s("PRO","radius-booking")}),V&&!(P.pro&&!f)&&r.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary ml-auto rtl:ml-0 rtl:mr-auto"})]},P.name)})})}),t&&L&&r.jsxs("div",{className:"absolute left-full ml-2 rtl:left-auto rtl:ml-0 rtl:right-full rtl:mr-2 top-0 z-50 min-w-[200px]",onMouseEnter:()=>x(g.name),onMouseLeave:y,children:[r.jsxs("div",{className:"bg-white rounded-lg shadow-lg border border-border py-2 px-1",children:[r.jsx("div",{className:"px-3 py-1.5 mb-1 border-b border-border/50",children:r.jsx("span",{className:"text-xs font-semibold text-title/50 uppercase tracking-wider",children:g.name})}),g.children.map(P=>{const V=p(P.path);return r.jsxs(ne,{to:P.path,className:S("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-all duration-150","focus:outline-none focus:shadow-none focus:border-none shadow-none outline-none",V?"text-primary bg-[#E5EBF9]/50 font-medium":"text-title/80 hover:text-title hover:bg-gray-50"),children:[P.icon,r.jsx("span",{className:"whitespace-nowrap",children:P.name}),P.pro&&!f&&r.jsx("span",{className:"text-[9px] font-bold bg-gradient-to-r from-amber-500 to-orange-500 text-white px-1.5 py-0.5 rounded-full leading-none ml-auto rtl:ml-0 rtl:mr-auto",children:s("PRO","radius-booking")}),V&&!(P.pro&&!f)&&r.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary ml-auto rtl:ml-0 rtl:mr-auto"})]},P.name)})]}),r.jsx("div",{className:"absolute top-3 border-4 border-transparent drop-shadow-sm left-0 -translate-x-1 border-r-white rtl:left-auto rtl:right-0 rtl:translate-x-1 rtl:border-r-transparent rtl:border-l-white"})]})]})};return r.jsx(r.Fragment,{children:e&&r.jsxs("nav",{className:S("sticky min-[960px]:fixed z-50 min-[960px]:left-[160px] min-[960px]:rtl:left-auto min-[960px]:rtl:right-[160px] top-[var(--rtrb-content-top,32px)] h-screen bg-white border-r rtl:border-r-0 rtl:border-l border-border flex flex-col shadow-sm transition-all duration-300 ease-in-out",t?"w-[80px]":"w-[255px]"),children:[r.jsx("div",{className:"px-4 py-5 border-b border-border",children:r.jsx("div",{className:"flex items-center justify-between",children:r.jsxs("div",{className:"flex items-center gap-2 h-[40px]",children:[r.jsx("div",{className:"w-[34px] h-[34px] bg-primary rounded-lg flex items-center justify-center shadow-sm mx-auto",children:r.jsx(na,{})}),!t&&r.jsxs("div",{children:[r.jsx("h1",{className:"text-lg font-bold text-title whitespace-nowrap leading-1",children:"RadiusBooking"}),r.jsx("h5",{className:"text-title2 uppercase tracking-[0.075em] font-inter not-italic leading-1 font-semibold text-[9px] leading-[11px] whitespace-nowrap",children:s("Manage your booking","radius-booking")})]})]})})}),r.jsx("button",{onClick:()=>n(!t),className:S("absolute z-30 top-[25px] w-[30px] h-[30px] bg-white border border-border flex items-center justify-center hover:bg-gray-50 transition-colors duration-200",t?"right-[-30px] rtl:right-auto rtl:left-[-30px] rounded-[0_30px_30px_0] rtl:rounded-[30px_0_0_30px]":"right-[-1px] rtl:right-auto rtl:left-[-1px] rounded-[30px_0_0_30px] rtl:rounded-[0_30px_30px_0]"),children:t?r.jsx(ht,{className:"w-3.5 h-3.5 text-title2 rtl:rotate-180"}):r.jsx(mt,{className:"w-3.5 h-3.5 text-title2 rtl:rotate-180"})}),r.jsx("div",{className:"flex-1 py-4 overflow-y-auto rtrb-left-menu mb-5",children:r.jsx("div",{className:S("space-y-4",t?"px-2":"px-3"),children:v.map((g,M)=>r.jsxs("div",{children:[t?M>0&&r.jsx("div",{className:"border-t border-border/50 mx-1 my-1"}):r.jsx("div",{className:"px-3 pt-1 pb-1.5",children:r.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.08em] text-title2/60",children:g.category})}),r.jsx("div",{className:"space-y-1",children:g.items.map(N=>{const L=!!N.children,D=!L&&p(N.path),P=L&&m(N);return r.jsxs("div",{className:"relative group",onMouseEnter:()=>t&&L&&x(N.name),onMouseLeave:()=>t&&L&&y(),children:[L?E(N,P):_(N,D),t&&!L&&r.jsxs("div",{className:"absolute left-full ml-2 rtl:left-auto rtl:ml-0 rtl:right-full rtl:mr-2 top-1/2 -translate-y-1/2 px-2.5 py-1.5 bg-gray-900 text-white text-xs rounded-md opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50 pointer-events-none",children:[N.name,r.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 border-4 border-transparent right-full border-r-gray-900 rtl:right-auto rtl:left-full rtl:border-r-transparent rtl:border-l-gray-900"})]})]},N.name)})})]},g.category))})})]})})}const st=c.createContext(null),lt=c.createContext(()=>{});function ra({children:e}){const[t,n]=c.useState(null);return r.jsx(lt.Provider,{value:n,children:r.jsx(st.Provider,{value:t,children:e})})}function oa(){return c.useContext(st)}function Qa(){return c.useContext(lt)}const ia=[{path:"/",title:s("Dashboard","radius-booking"),description:s("Overview of your booking business","radius-booking"),icon:xe},{path:"/analytics",title:s("Analytics","radius-booking"),description:s("Business performance insights","radius-booking"),icon:et},{path:"/calendar",title:s("Calendar","radius-booking"),description:s("View and manage your schedule","radius-booking"),icon:ue},{path:"/appointment/create",title:s("Add Appointment","radius-booking"),description:s("Create a new appointment","radius-booking"),icon:G},{path:"/appointment",title:s("Appointments","radius-booking"),description:s("Manage all appointments","radius-booking"),icon:G},{path:"/customers",title:s("Customers","radius-booking"),description:s("Manage your customer base","radius-booking"),icon:W},{path:"/payments",title:s("Payments","radius-booking"),description:s("Track and manage payments","radius-booking"),icon:U},{path:"/coupons",title:s("Coupons","radius-booking"),description:s("Manage discount coupons","radius-booking"),icon:Ue},{path:"/dynamic-pricing",title:s("Dynamic Pricing","radius-booking"),description:s("Manage pricing rules based on time, date, or demand","radius-booking"),icon:X},{path:"/payouts/income",title:s("Commissions","radius-booking"),description:s("Commission income from appointments","radius-booking"),icon:X},{path:"/payouts",title:s("Payouts","radius-booking"),description:s("Manage employee payout requests","radius-booking"),icon:Q},{path:"/services/create",title:s("Add Service","radius-booking"),description:s("Create a new service","radius-booking"),icon:Oe},{path:"/services",title:s("Services","radius-booking"),description:s("Manage your services","radius-booking"),icon:Oe},{path:"/employees/create",title:s("Add Staff","radius-booking"),description:s("Add a new staff member","radius-booking"),icon:W},{path:"/employees",title:s("Staff","radius-booking"),description:s("Manage your team","radius-booking"),icon:W},{path:"/locations/create",title:s("Add Location","radius-booking"),description:s("Add a new location","radius-booking"),icon:ce},{path:"/locations",title:s("Locations","radius-booking"),description:s("Manage your locations","radius-booking"),icon:ce},{path:"/meeting-types/create",title:s("Add Meeting Schedule","radius-booking"),description:s("Create a new meeting type","radius-booking"),icon:J},{path:"/meeting-types",title:s("Meetings","radius-booking"),description:s("Manage your meeting types","radius-booking"),icon:J},{path:"/meeting-bookings",title:s("Bookings","radius-booking"),description:s("View and manage meeting bookings","radius-booking"),icon:J},{path:"/events/create",title:s("Add Event","radius-booking"),description:s("Create a new event","radius-booking"),icon:le},{path:"/events",title:s("Events","radius-booking"),description:s("Manage your events","radius-booking"),icon:le},{path:"/event-registrations",title:s("Attendees","radius-booking"),description:s("View and manage event registrations","radius-booking"),icon:In},{path:"/custom-fields",title:s("Custom Fields","radius-booking"),description:s("Configure custom form fields","radius-booking"),icon:tt},{path:"/notifications",title:s("Notifications","radius-booking"),description:s("Manage email notifications","radius-booking"),icon:nt},{path:"/form-customization",title:s("Form Customization","radius-booking"),description:s("Customize booking form appearance","radius-booking"),icon:rt},{path:"/setup-wizard",title:s("Setup Wizard","radius-booking"),description:s("Step-by-step configuration guide","radius-booking"),icon:it}],ze={modules:{title:s("Modules","radius-booking"),description:s("Enable or disable booking modules","radius-booking"),icon:Ye},general:{title:s("General Settings","radius-booking"),description:s("Configure general options","radius-booking"),icon:Ve},schedule:{title:s("Schedule Settings","radius-booking"),description:s("Set up working hours and availability","radius-booking"),icon:ue},tax:{title:s("Tax Settings","radius-booking"),description:s("Configure tax rules","radius-booking"),icon:ot},"appointment-settings":{title:s("Appointment Settings","radius-booking"),description:s("Configure appointment options","radius-booking"),icon:G},integrations:{title:s("Integrations","radius-booking"),description:s("Connect third-party services","radius-booking"),icon:ae},payment:{title:s("Payment Gateway","radius-booking"),description:s("Configure payment methods","radius-booking"),icon:U},chatbot:{title:s("AI Chatbot","radius-booking"),description:s("Configure AI assistant","radius-booking"),icon:at},"export-import":{title:s("Export / Import","radius-booking"),description:s("Export and import plugin data","radius-booking"),icon:Qe},payout:{title:s("Payout Settings","radius-booking"),description:s("Configure payout methods and commissions","radius-booking"),icon:Q}};function sa(){const e=A(),t=e.pathname,n=e.search;return c.useMemo(()=>{if(t==="/settings"){const o=new URLSearchParams(n).get("tab");return o&&ze[o]?ze[o]:{title:s("Settings","radius-booking"),description:s("Configure your plugin","radius-booking"),icon:ft}}for(const a of ia)if(a.path==="/"){if(t==="/")return a}else if(t===a.path||t.startsWith(a.path+"/"))return a;return{title:s("Dashboard","radius-booking"),description:s("Overview of your booking business","radius-booking"),icon:xe}},[t,n])}function la(){const{title:e,description:t,icon:n}=sa(),a=oa();return r.jsxs("header",{className:"w-full bg-white px-[20px] md:px-[50px] py-[16.5px] flex items-center gap-4 border-b border-border sticky top-[var(--rtrb-content-top,32px)] z-20",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h1",{className:"text-[24px] font-semibold leading-tight text-title m-0 truncate",children:e}),r.jsx("p",{className:"text-[12px] text-title2 leading-tight m-0 mt-0.5 truncate",children:t})]}),a&&r.jsx("div",{className:"flex items-center gap-2 shrink-0",children:a})]})}const Te={success:{icon:r.jsx(yt,{className:"w-5 h-5"}),bg:"bg-green-100 dark:bg-green-800",text:"text-green-500 dark:text-green-200"},error:{icon:r.jsx(Ln,{className:"w-5 h-5"}),bg:"bg-red-100 dark:bg-red-800",text:"text-red-500 dark:text-red-200"},info:{icon:r.jsx(xt,{className:"w-5 h-5"}),bg:"bg-blue-100 dark:bg-blue-800",text:"text-blue-500 dark:text-blue-200"},warning:{icon:r.jsx(qn,{className:"w-5 h-5"}),bg:"bg-yellow-100 dark:bg-yellow-800",text:"text-yellow-500 dark:text-yellow-200"}},ca={hidden:{opacity:0,y:-20,scale:.95},visible:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95}};function ua({type:e="success",message:t,onClose:n,duration:a=3e3}){c.useEffect(()=>{const d=setTimeout(()=>{n()},a);return()=>clearTimeout(d)},[n,a]);const{icon:o,bg:i,text:l}=Te[e]||Te.success;return r.jsxs(bt.div,{variants:ca,initial:"hidden",animate:"visible",exit:"exit",transition:{duration:.3},className:"flex items-center w-full max-w-xs p-4 mb-4 text-title2 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert",children:[r.jsxs("div",{className:`inline-flex items-center justify-center shrink-0 w-8 h-8 rounded-lg ${i} ${l}`,children:[o,r.jsxs("span",{className:"sr-only",children:[e," icon"]})]}),r.jsx("div",{className:"ms-3 text-sm font-normal capitalize",children:t}),r.jsxs("button",{type:"button",onClick:n,className:"ms-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-title rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-title2 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","aria-label":"Close",children:[r.jsx(pt,{className:"w-3 h-3"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})}let da=0;function pa(){const[e,t]=c.useState([]);c.useEffect(()=>{window.showToast=a=>{const o=++da;t(i=>[...i,{id:o,...a}])}},[]);const n=a=>{t(o=>o.filter(i=>i.id!==a))};return r.jsx("div",{className:"fixed top-10 right-10 z-50 space-y-2",children:r.jsx(vt,{children:e==null?void 0:e.map(a=>r.jsx(ua,{...a,onClose:()=>{t(o=>o.map(i=>i.id===a.id?{...i,closing:!0}:i)),setTimeout(()=>n(a.id),300)}},a.id))})})}function ha({children:e,sidebarOpen:t,toggleSidebar:n}){c.useEffect(()=>{const d=u=>{u.key==="Escape"&&window.innerWidth<1024&&n(!1)};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[n]),A().pathname.startsWith("/form-customization");const[i,l]=c.useState(()=>typeof window>"u"?!1:window.innerWidth<960);return Xn(960,l,{mode:"both",debounceMs:100,collapseOnMount:!1}),r.jsx(ra,{children:r.jsxs("main",{className:"bg-body flex flex-col w-full min-h-screen","data-model-id":"36056:2199",children:[r.jsx(pa,{}),r.jsx("div",{className:"flex flex-col flex-1",children:r.jsxs("div",{className:"flex flex-row flex-1",children:[r.jsx(aa,{isOpen:t,toggleSidebar:n,isCollapsed:i,setIsCollapsed:l}),r.jsxs("section",{className:S("w-full bg-white-color max-w-100 transition-w duration-300 ease-in-out",i?"min-[960px]:pl-[81px] min-[960px]:rtl:pl-0 min-[960px]:rtl:pr-[81px]":"min-[960px]:pl-[256px] min-[960px]:rtl:pl-0 min-[960px]:rtl:pr-[256px]"),children:[r.jsx(la,{}),r.jsx("div",{className:"mx-auto p-[20px] md:p-[30px_50px] overflow-x-clip",children:e})]})]})})]})})}function ma(){return r.jsx("div",{className:"animate-fade-in",children:r.jsx("div",{className:"!card",children:r.jsx("p",{children:s("Custom Forms content will go here","radius-booking")})})})}const fa=c.lazy(()=>C(()=>import("./Calendar-D2I8gFU2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50]),import.meta.url)),ga=c.lazy(()=>C(()=>import("./Dashboard-Cpxug2iX.js"),__vite__mapDeps([51,1,2,52,5,32,33,34,35,36,37,38,28,17,20,4,21,53,54,55,25,56,6,23,48,40,41,18,49,39,50]),import.meta.url)),xa=c.lazy(()=>C(()=>import("./index-B6oRD4U1.js"),__vite__mapDeps([57,1,2,43,8,9,5,44,45,46,4,58,59,31,15,11,60,40,61,62,32,33,34,35,36,37,38,63,64,65,66,25,16,67,68,28,69,70,71,12,72,73,74,75,47,76,77,14,41,30,78,79,80,81,82,83,84,85,17,86,87,48,18,49,39,50]),import.meta.url)),ba=c.lazy(()=>C(()=>import("./index-f6n5L5uu.js"),__vite__mapDeps([88,1,2,8,9,5,58,31,15,4,59,11,60,40,61,62,25,32,33,34,35,36,37,38,63,82,71,12,47,3,64,89,65,66,90,43,44,45,46,91,92,27,74,93,83,72,80,76,73,16,94,81,95,10,13,14,79,28,96,97,98,99,100,101,102,103,17,7,18,104,105,106,68,107,20,77,41,30,108,21,53,109,110,86,111,112,113,114,115,116,23,55,84,48,49,39,50]),import.meta.url)),va=c.lazy(()=>C(()=>import("./index-DyQUHAvt.js"),__vite__mapDeps([117,1,2,118,4,5,32,33,34,35,36,37,38,58,31,15,9,13,25,62,119,8,40,120,90,11,26,27,12,121,65,66,63,98,72,99,71,100,80,76,101,16,73,81,43,44,45,46,122,105,48,41,18,49,39,50]),import.meta.url)),ya=c.lazy(()=>C(()=>import("./index-DjoIHTjf.js"),__vite__mapDeps([123,1,2,43,8,9,5,44,45,46,4,31,15,90,11,63,59,60,40,61,32,33,34,35,36,37,38,17,58,64,121,62,119,124,6,23,72,99,71,12,100,80,76,101,16,73,25,81,102,97,10,13,14,79,103,118,125,48,41,18,49,39,50]),import.meta.url)),ka=c.lazy(()=>C(()=>import("./index-IkC3x6EF.js"),__vite__mapDeps([126,1,2,45,46,4,5,43,8,9,44,120,90,31,15,11,32,33,34,35,36,37,38,26,27,12,65,121,62,28,125,58,13,127,63,119,40,96,72,97,10,14,79,16,47,95,98,99,71,100,80,76,101,73,25,81,102,103,89,17,7,18,104,105,106,68,107,20,77,41,30,108,93,91,92,74,60,83,3,21,53,109,84,48,49,39,50]),import.meta.url)),wa=c.lazy(()=>C(()=>import("./index-BhTbd9TP.js"),__vite__mapDeps([128,1,2,43,8,9,5,44,45,46,4,32,33,34,35,36,37,38,25,129,20,16,24,31,15,90,11,26,27,12,28,75,40,62,71,94,41,130,58,23,17,50,131,86,119,77,14,30,127,125,13,3,6,7,10,18,19,124,63,76,72,60,61,100,73,108,29,132,133,134,84,47,48,49,39]),import.meta.url)),Ca=c.lazy(()=>C(()=>import("./index-DX2vnKFP.js"),__vite__mapDeps([135,1,2,43,8,9,5,44,4,45,46,32,33,34,35,36,37,38,120,23,24,11,58,71,12,31,15,72,25,16,94,28,40,125,41,86,50,136,48,17,137,87,105,131,119,62,121,124,13,127,20,53,54,130,18,49,39]),import.meta.url)),_a=c.lazy(()=>C(()=>import("./index-CLfDOQdS.js"),__vite__mapDeps([138,1,2,43,8,9,5,44,45,46,4,139,20,54,55,10,11,12,13,14,15,16,73,31,71,58,78,79,28,40,77,41,30,47,122,105,86,106,69,114,116,37,76,84,107,90,94,62,74,60,92,27,36,137,100,131,93,32,33,34,35,38,63,49,80,81,97,103,48,18,39,50]),import.meta.url)),ja=c.lazy(()=>C(()=>import("./index-qbB9yQCS.js"),__vite__mapDeps([140,1,2,139,5,32,33,34,35,36,37,38,63,11,9,8,141,4,142,46,40,81,70,68,69,48,41,18,49,39,50]),import.meta.url)),Ea=c.lazy(()=>C(()=>import("./index-CvV0pYdf.js"),__vite__mapDeps([143,1,2,43,8,9,5,44,45,46,4,32,33,34,35,36,37,38,56,22,65,120,121,62,58,31,15,28,47,106,84,48,40,41,18,49,39,50]),import.meta.url)),Na=c.lazy(()=>C(()=>import("./index-C2K8tGoQ.js"),__vite__mapDeps([144,1,2,118,4,5,43,8,9,44,45,46,32,33,34,35,36,37,38,58,31,15,13,119,62,40,120,90,11,121,65,66,63,99,71,12,100,101,16,73,89,14,122,105,48,41,18,49,39,50]),import.meta.url)),Pa=c.lazy(()=>C(()=>import("./index-BmwHQt8b.js"),__vite__mapDeps([145,1,2,43,8,9,5,44,45,46,4,32,33,34,35,36,37,38,58,90,31,15,11,120,119,62,40,121,63,17,28,13,146,71,12,72,73,77,14,41,30,122,105,84,47,75,48,18,49,39,50]),import.meta.url)),Ma=c.lazy(()=>C(()=>import("./Analytics-DfRNnDrh.js"),__vite__mapDeps([147,1,2,52,32,33,34,35,36,37,38,86,5,41,4,115,148,134,122,105,48,40,18,49,39,50]),import.meta.url)),Ra=c.lazy(()=>C(()=>import("./index-CN-kj7-P.js"),__vite__mapDeps([149,1,2,45,46,4,5,36,37,17,28,125,40,9,68,50,86,38,62,31,15,44,115,69,122,105,48,41,18,49,39]),import.meta.url)),Sa=c.lazy(()=>C(()=>import("./index-Ce0zsEDO.js"),__vite__mapDeps([150,1,2,43,8,9,5,44,45,46,4,32,33,34,35,36,37,38,58,90,31,15,11,120,119,62,40,121,63,13,146,71,12,72,122,105,84,47,48,41,18,49,39,50]),import.meta.url)),La=c.lazy(()=>C(()=>import("./index-DHlp2xb0.js"),__vite__mapDeps([151,1,2,43,8,9,5,44,45,46,4,58,59,31,15,11,60,40,61,62,32,33,34,35,36,37,38,63,64,65,66,25,16,85,17,86,125,70,68,67,71,12,72,73,74,112,113,104,105,106,78,79,14,28,76,47,77,41,30,109,80,81,100,83,84,48,18,49,39,50]),import.meta.url)),Aa=c.lazy(()=>C(()=>import("./index-DYi4yiN5.js"),__vite__mapDeps([152,1,2,43,8,9,5,44,45,46,4,129,20,25,16,24,31,15,90,11,26,27,12,28,75,40,62,71,94,32,33,34,35,36,37,38,41,130,58,23,17,50,131,86,119,63,153,116,68,77,14,30,127,125,76,48,18,49,39]),import.meta.url)),Oa=c.lazy(()=>C(()=>import("./index-Bs5vOZgm.js"),__vite__mapDeps([154,1,2,43,8,9,5,44,45,46,4,90,31,15,11,32,33,34,35,36,37,38,129,20,25,16,24,26,27,12,28,75,40,62,71,94,41,130,58,23,17,50,131,86,119,63,85,153,77,14,30,127,13,148,76,48,18,49,39]),import.meta.url)),za=[{path:"/",element:ga},{path:"/calendar",element:fa},{path:"/events/*",element:xa},{path:"/employees/*",element:ka},{path:"/services/*",element:ba},{path:"/locations/*",element:va},{path:"/customers/*",element:ya},{path:"/Appointment/*",element:wa},{path:"/payments/*",element:Ca},{path:"/settings/*",element:_a},{path:"/notifications/*",element:Ea},{path:"/form-customization/*",element:ja},{path:"/custom-forms",element:ma},{path:"/custom-fields/*",element:Na},{path:"/coupons/*",element:Pa},{path:"/analytics",element:Ma},{path:"/payouts/*",element:Ra},{path:"/dynamic-pricing/*",element:Sa},{path:"/meeting-types/*",element:La},{path:"/meeting-bookings/*",element:Aa},{path:"/event-registrations/*",element:Oa}],Ta=c.lazy(()=>C(()=>import("./index-BakvKvFP.js"),__vite__mapDeps([155,1,2,5,91,8,9,92,27,12,74,60,31,15,4,11,93,83,44,36,37,38,99,71,58,100,80,76,81,103,97,10,13,14,79,134,42,40,73,78,28,41,110,125,131,48,18,49,39,50]),import.meta.url)),Ie=()=>r.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:r.jsx("div",{role:"status",children:r.jsx(Kn,{size:"30px"})})});function Ia({sidebarOpen:e,toggleSidebar:t}){var i;const n=A(),a=(i=window.radius_booking_param)==null?void 0:i.setup_completed,o=n.pathname==="/setup-wizard";return!a&&!o?r.jsx(pn,{to:"/setup-wizard",replace:!0}):o?r.jsx(c.Suspense,{fallback:r.jsx(Ie,{}),children:r.jsx(Ta,{})}):r.jsx(ha,{sidebarOpen:e,toggleSidebar:t,children:r.jsx(Xe,{children:za.map(l=>{const d=l.element,u=l.props||{};return r.jsx(ge,{path:l.path,element:r.jsx(c.Suspense,{fallback:r.jsx(Ie,{}),children:r.jsx(d,{data:u})})},l.path)})})})}function Fa(){const[e,t]=c.useState(!0),n=()=>t(!e);return r.jsx(kn,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:r.jsx(Xe,{children:r.jsx(ge,{path:"/*",element:r.jsx(Ia,{sidebarOpen:e,toggleSidebar:n})})})})}const Fe=document.getElementById("radius-booking");Fe&&dt.createRoot(Fe).render(r.jsx(Fa,{}));export{Qe as A,Ye as B,le as C,Oe as L,ce as M,Xe as R,Kn as S,pa as T,Q as W,nt as a,na as b,ne as c,Ka as d,ge as e,Xa as f,A as g,Z as h,ot as i,Ln as j,at as k,X as l,et as m,In as n,Nn as o,Qa as p,fe as u};
//# sourceMappingURL=index-D01LF5Le.js.map
