const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Calendar-C2r-5n3N.js","./client-BbMi5ewG.js","./vendor-DDjlQeP6.js","./Clock-BstuuuXu.js","./withIconDefaults-C8UfSjn1.js","./utils-Q0fnGDhj.js","./UserCheck-Dkrm1Nol.js","./service-input-Bmu8OLOk.js","./Button-1dacbE2T.js","./command-BMJPUla5.js","./dialog-C9IQloQy.js","./index-C4Ytkwtd.js","./search-C6CI7Qpa.js","./popover-C75zZF26.js","./index-CeptMk_f.js","./badge-C2Ir4HoT.js","./priceFormatter-Dg4GlACg.js","./tag-CvsOfBQf.js","./check-DMod5j-l.js","./Masonary-M_bb3DQh.js","./Calender-DPznisyw.js","./Layers-CYFToaHS.js","./Envelope-B0dIWjoE.js","./DollarCircle-DjPBQZLr.js","./Eye-1IT8gO2L.js","./card-CZBIFpqn.js","./avatar-BMEAZdBR.js","./index-B5gX5Cyp.js","./parseISO-7GFRGhFN.js","./format-KhiMdRwp.js","./select-CPHcJnpt.js","./index-BbWn2ja9.js","./store-jX25q14N.js","./lodash-Bd-B7UeG.js","./defineProperty-DbXIQDXj.js","./typeof-QjJsDpFa.js","./apiConfig-D-T4C2Ae.js","./index-D59bwJy3.js","./toast-1-c8k_LJ.js","./proxy-DChtKkEh.js","./calendar-CjyQ6Zau.js","./phone-Ccp91M29.js","./ActionButton-CK3Uoxvt.js","./loader-circle--S58donA.js","./CrudLayout-Cx6KhKUY.js","./ArrowLeftIcon-DrGyoHe_.js","./plus-DcvXjop0.js","./preload-helper-Dp1pzeXC.js","./CalenderCheck-BuHSX8YD.js","./shield-Bmp_421z.js","./circle-check-big-uMTsaxsq.js","./Dashboard-BcXr23vr.js","./index-JsQEnXJ1.js","./Users-D3Mtn5jq.js","./CreditCard-Bmei54hq.js","./Cogs-DGuXlZ5Z.js","./User-GlgzYdD2.js","./index-DeJATgHj.js","./input-DhCVOJC-.js","./dropdown-menu-B1ZTMBvw.js","./index-BE6isdVb.js","./circle-CwRJMw1I.js","./skeleton-ImO4uxQ7.js","./ConfirmDialog-C2asEKXG.js","./Search-BPdeYakj.js","./Edit-C8qVzzd7.js","./Trash-AmoyyqPS.js","./time-picker-MqsQbh0l.js","./scroll-area-BldTLQYj.js","./copy-C2TM1za3.js","./eye-XZqBNmRu.js","./code-C_CKrAh6.js","./label-1wXMewvs.js","./textarea-QytFj8hO.js","./switch-BXH9Uq5p.js","./tabs-sf64UEkO.js","./ticket-Kszp8SMK.js","./trash-2-wbt0ZJUy.js","./date-picker-Dhqqi79b.js","./ImageUpload-DbfzQEp2.js","./useMediaUploader-lszBTVoc.js","./CategorySelect-C2tAEr7d.js","./arrow-right-B8h6q6X7.js","./save-CE8wXkbA.js","./dollar-sign-DRtWdm2i.js","./send-DOmmtWUO.js","./index-BpDYB6F0.js","./Plus-DGCB3awO.js","./Tabs-CCGdXr30.js","./progress-LiitFnHM.js","./circle-check-B35mPstZ.js","./separator-DZRbPm0x.js","./time-input-with-popover-a0RixVgg.js","./EmployeeForm-Dw-pCVzi.js","./phone-input-CK3GNas0.js","./AddLocationForm-9N2H0iL8.js","./FormField-66vt2hZL.js","./circle-alert-CG2uW-Df.js","./StatusSwitcher-C3TepXSt.js","./WpUserSelectField-C3EtiAes.js","./phoneValidation-D89G1rc_.js","./ProFeatureCard-jTC0MhR9.js","./crown-BdDHOvET.js","./lock-DbcYKLM6.js","./grip-vertical-tAen9Usk.js","./repeat-D-c0bjv8.js","./useValidation-ETdGTgzi.js","./user-plus-DOttN1Rg.js","./collapsible-LCw4ZN5Z.js","./GoogleCalender-V160dMVJ.js","./Zoom-BvAPmLs4.js","./ProBadge-Dxcpp0NN.js","./refresh-cw-Drw5C3fI.js","./external-link-DaS0YMlL.js","./index-DsAeN4hL.js","./Save-CBoJxzO6.js","./Pagination-YytuLjdY.js","./Table-DCeFiyCp.js","./checkbox-BS_fWNWw.js","./SkeletonTableRows-BrALmXl-.js","./ProUpgradeBanner-j5GA7rlc.js","./index-B0p0091R.js","./CountCard-B-uGF0Vj.js","./user-jdISm6se.js","./index-ChZOthcc.js","./funnel-BsgaQc1H.js","./index-CehbyRnT.js","./AppointmentDetails-cLofFl_4.js","./PaymentSection-BdBEJKqf.js","./file-text-DLx-plKT.js","./isBefore-Bz60gwk_.js","./briefcase-C1E6F6kb.js","./index-DJwoTeGg.js","./pdf-generator-BTm1p4ZJ.js","./download-DYVVCiUT.js","./index-CAkJIy8z.js","./Field-DfnhKY2X.js","./index-Dbx2uY12.js","./AppointmentIcon-CmzDCR-n.js","./ArrowRightIcon-VHrpuq2b.js","./index-6-QFfM7q.js","./index-CLC3h-Q7.js","./index-CCMg3Sjo.js","./trash-D-DpgS_d.js","./Analytics-DDz6czTq.js","./calendar-check-B9VltuWN.js","./index-CjG9-D96.js","./index-DUbsYMFa.js","./index-Cg4o0DOQ.js","./index-BD5oqNuV.js","./index-xh5IcbtX.js","./index-K8wtRiZl.js"])))=>i.map(i=>d[i]);
import{r as l,R as ut,j as o,a as dt}from"./client-BbMi5ewG.js";import{_}from"./preload-helper-Dp1pzeXC.js";import{c as v,a as R,X as pt}from"./utils-Q0fnGDhj.js";import{C as J,a as _e,V as Z,b as V,G as Fe,S as ht}from"./CalenderCheck-BuHSX8YD.js";import{w as Be,U as D,C as mt,I as ft}from"./withIconDefaults-C8UfSjn1.js";import{C as ce}from"./calendar-CjyQ6Zau.js";import{T as Ve}from"./tag-CvsOfBQf.js";import{S as ne}from"./shield-Bmp_421z.js";import{m as xt,A as gt}from"./proxy-DChtKkEh.js";import{C as yt}from"./circle-check-big-uMTsaxsq.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 W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},W.apply(this,arguments)}var z;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(z||(z={}));const je="popstate";function vt(e){e===void 0&&(e={});function t(r,i){let{pathname:s="/",search:u="",hash:c=""}=B(r.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),ae("",{pathname:s,search:u,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function a(r,i){let s=r.document.querySelector("base"),u="";if(s&&s.getAttribute("href")){let c=r.location.href,d=c.indexOf("#");u=d===-1?c:c.slice(0,d)}return u+"#"+(typeof i=="string"?i:G(i))}function n(r,i){Q(r.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return bt(t,a,n,e)}function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q(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 ke(e,t){return{usr:e.state,key:e.key,idx:t}}function ae(e,t,a,n){return a===void 0&&(a=null),W({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?B(t):t,{state:a,key:t&&t.key||n||wt()})}function G(e){let{pathname:t="/",search:a="",hash:n=""}=e;return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function B(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function bt(e,t,a,n){n===void 0&&(n={});let{window:r=document.defaultView,v5Compat:i=!1}=n,s=r.history,u=z.Pop,c=null,d=h();d==null&&(d=0,s.replaceState(W({},s.state,{idx:d}),""));function h(){return(s.state||{idx:null}).idx}function p(){u=z.Pop;let m=h(),j=m==null?null:m-d;d=m,c&&c({action:u,location:g.location,delta:j})}function x(m,j){u=z.Push;let k=ae(g.location,m,j);a&&a(k,m),d=h()+1;let b=ke(k,d),M=g.createHref(k);try{s.pushState(b,"",M)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;r.location.assign(M)}i&&c&&c({action:u,location:g.location,delta:1})}function w(m,j){u=z.Replace;let k=ae(g.location,m,j);a&&a(k,m),d=h();let b=ke(k,d),M=g.createHref(k);s.replaceState(b,"",M),i&&c&&c({action:u,location:g.location,delta:0})}function y(m){let j=r.location.origin!=="null"?r.location.origin:r.location.href,k=typeof m=="string"?m:G(m);return k=k.replace(/ $/,"%20"),C(j,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,j)}let g={get action(){return u},get location(){return e(r,s)},listen(m){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(je,p),c=m,()=>{r.removeEventListener(je,p),c=null}},createHref(m){return t(r,m)},createURL:y,encodeLocation(m){let j=y(m);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:x,replace:w,go(m){return s.go(m)}};return g}var Ee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ee||(Ee={}));function Ct(e,t,a){return a===void 0&&(a="/"),_t(e,t,a)}function _t(e,t,a,n){let r=typeof t=="string"?B(t):t,i=ue(r.pathname||"/",a);if(i==null)return null;let s=$e(e);jt(s);let u=null;for(let c=0;u==null&&c<s.length;++c){let d=Tt(i);u=At(s[c],d)}return u}function $e(e,t,a,n){t===void 0&&(t=[]),a===void 0&&(a=[]),n===void 0&&(n="");let r=(i,s,u)=>{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(C(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let d=T([n,c.relativePath]),h=a.concat(c);i.children&&i.children.length>0&&(C(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),$e(i.children,t,h,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:St(d,i.index),routesMeta:h})};return e.forEach((i,s)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))r(i,s);else for(let c of Ue(i.path))r(i,s,c)}),t}function Ue(e){let t=e.split("/");if(t.length===0)return[];let[a,...n]=t,r=a.endsWith("?"),i=a.replace(/\?$/,"");if(n.length===0)return r?[i,""]:[i];let s=Ue(n.join("/")),u=[];return u.push(...s.map(c=>c===""?i:[i,c].join("/"))),r&&u.push(...s),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function jt(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:Lt(t.routesMeta.map(n=>n.childrenIndex),a.routesMeta.map(n=>n.childrenIndex)))}const kt=/^:[\w-]+$/,Et=3,Nt=2,Pt=1,Mt=10,Rt=-2,Ne=e=>e==="*";function St(e,t){let a=e.split("/"),n=a.length;return a.some(Ne)&&(n+=Rt),t&&(n+=Nt),a.filter(r=>!Ne(r)).reduce((r,i)=>r+(kt.test(i)?Et:i===""?Pt:Mt),n)}function Lt(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function At(e,t,a){let{routesMeta:n}=e,r={},i="/",s=[];for(let u=0;u<n.length;++u){let c=n[u],d=u===n.length-1,h=i==="/"?t:t.slice(i.length)||"/",p=Ot({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},h),x=c.route;if(!p)return null;Object.assign(r,p.params),s.push({params:r,pathname:T([i,p.pathname]),pathnameBase:$t(T([i,p.pathnameBase])),route:x}),p.pathnameBase!=="/"&&(i=T([i,p.pathnameBase]))}return s}function Ot(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,n]=zt(e.path,e.caseSensitive,e.end),r=t.match(a);if(!r)return null;let i=r[0],s=i.replace(/(.)\/+$/,"$1"),u=r.slice(1);return{params:n.reduce((d,h,p)=>{let{paramName:x,isOptional:w}=h;if(x==="*"){let g=u[p]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=u[p];return w&&!y?d[x]=void 0:d[x]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:s,pattern:e}}function zt(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!0),Q(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 n=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,c)=>(n.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),n]}function Tt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Q(!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 ue(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,n=e.charAt(a);return n&&n!=="/"?null:e.slice(a)||"/"}const It=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=e=>It.test(e);function Bt(e,t){t===void 0&&(t="/");let{pathname:a,search:n="",hash:r=""}=typeof e=="string"?B(e):e,i;if(a)if(Ft(a))i=a;else{if(a.includes("//")){let s=a;a=a.replace(/\/\/+/g,"/"),Q(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+a))}a.startsWith("/")?i=Pe(a.substring(1),"/"):i=Pe(a,t)}else i=t;return{pathname:i,search:Ut(n),hash:Dt(r)}}function Pe(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?a.length>1&&a.pop():r!=="."&&a.push(r)}),a.length>1?a.join("/"):"/"}function ee(e,t,a,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Vt(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function de(e,t){let a=Vt(e);return t?a.map((n,r)=>r===a.length-1?n.pathname:n.pathnameBase):a.map(n=>n.pathnameBase)}function pe(e,t,a,n){n===void 0&&(n=!1);let r;typeof e=="string"?r=B(e):(r=W({},e),C(!r.pathname||!r.pathname.includes("?"),ee("?","pathname","search",r)),C(!r.pathname||!r.pathname.includes("#"),ee("#","pathname","hash",r)),C(!r.search||!r.search.includes("#"),ee("#","search","hash",r)));let i=e===""||r.pathname==="",s=i?"/":r.pathname,u;if(s==null)u=a;else{let p=t.length-1;if(!n&&s.startsWith("..")){let x=s.split("/");for(;x[0]==="..";)x.shift(),p-=1;r.pathname=x.join("/")}u=p>=0?t[p]:"/"}let c=Bt(r,u),d=s&&s!=="/"&&s.endsWith("/"),h=(i||s===".")&&a.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}const T=e=>e.join("/").replace(/\/\/+/g,"/"),$t=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const De=["post","put","patch","delete"];new Set(De);const Ht=["get",...De];new Set(Ht);/**
 * 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 H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},H.apply(this,arguments)}const he=l.createContext(null),qt=l.createContext(null),I=l.createContext(null),Y=l.createContext(null),O=l.createContext({outlet:null,matches:[],isDataRoute:!1}),We=l.createContext(null);function Zt(e,t){let{relative:a}=t===void 0?{}:t;$()||C(!1);let{basename:n,navigator:r}=l.useContext(I),{hash:i,pathname:s,search:u}=qe(e,{relative:a}),c=s;return n!=="/"&&(c=s==="/"?n:T([n,s])),r.createHref({pathname:c,search:u,hash:i})}function $(){return l.useContext(Y)!=null}function L(){return $()||C(!1),l.useContext(Y).location}function He(e){l.useContext(I).static||l.useLayoutEffect(e)}function me(){let{isDataRoute:e}=l.useContext(O);return e?sn():Jt()}function Jt(){$()||C(!1);let e=l.useContext(he),{basename:t,future:a,navigator:n}=l.useContext(I),{matches:r}=l.useContext(O),{pathname:i}=L(),s=JSON.stringify(de(r,a.v7_relativeSplatPath)),u=l.useRef(!1);return He(()=>{u.current=!0}),l.useCallback(function(d,h){if(h===void 0&&(h={}),!u.current)return;if(typeof d=="number"){n.go(d);return}let p=pe(d,JSON.parse(s),i,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:T([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,s,i,e])}function nr(){let{matches:e}=l.useContext(O),t=e[e.length-1];return t?t.params:{}}function qe(e,t){let{relative:a}=t===void 0?{}:t,{future:n}=l.useContext(I),{matches:r}=l.useContext(O),{pathname:i}=L(),s=JSON.stringify(de(r,n.v7_relativeSplatPath));return l.useMemo(()=>pe(e,JSON.parse(s),i,a==="path"),[e,s,i,a])}function Gt(e,t){return Kt(e,t)}function Kt(e,t,a,n){$()||C(!1);let{navigator:r}=l.useContext(I),{matches:i}=l.useContext(O),s=i[i.length-1],u=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let d=L(),h;if(t){var p;let m=typeof t=="string"?B(t):t;c==="/"||(p=m.pathname)!=null&&p.startsWith(c)||C(!1),h=m}else h=d;let x=h.pathname||"/",w=x;if(c!=="/"){let m=c.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(m.length).join("/")}let y=Ct(e,{pathname:w}),g=tn(y&&y.map(m=>Object.assign({},m,{params:Object.assign({},u,m.params),pathname:T([c,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:T([c,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,a,n);return t&&g?l.createElement(Y.Provider,{value:{location:H({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:z.Pop}},g):g}function Xt(){let e=on(),t=Wt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),a?l.createElement("pre",{style:r},a):null,null)}const Qt=l.createElement(Xt,null);class Yt extends l.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,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){console.error("React Router caught the following error during render",t,a)}render(){return this.state.error!==void 0?l.createElement(O.Provider,{value:this.props.routeContext},l.createElement(We.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function en(e){let{routeContext:t,match:a,children:n}=e,r=l.useContext(he);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),l.createElement(O.Provider,{value:t},n)}function tn(e,t,a,n){var r;if(t===void 0&&(t=[]),a===void 0&&(a=null),n===void 0&&(n=null),e==null){var i;if(!a)return null;if(a.errors)e=a.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,u=(r=a)==null?void 0:r.errors;if(u!=null){let h=s.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);h>=0||C(!1),s=s.slice(0,Math.min(s.length,h+1))}let c=!1,d=-1;if(a&&n&&n.v7_partialHydration)for(let h=0;h<s.length;h++){let p=s[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=h),p.route.id){let{loaderData:x,errors:w}=a,y=p.route.loader&&x[p.route.id]===void 0&&(!w||w[p.route.id]===void 0);if(p.route.lazy||y){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,p,x)=>{let w,y=!1,g=null,m=null;a&&(w=u&&p.route.id?u[p.route.id]:void 0,g=p.route.errorElement||Qt,c&&(d<0&&x===0?(ln("route-fallback"),y=!0,m=null):d===x&&(y=!0,m=p.route.hydrateFallbackElement||null)));let j=t.concat(s.slice(0,x+1)),k=()=>{let b;return w?b=g:y?b=m:p.route.Component?b=l.createElement(p.route.Component,null):p.route.element?b=p.route.element:b=h,l.createElement(en,{match:p,routeContext:{outlet:h,matches:j,isDataRoute:a!=null},children:b})};return a&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?l.createElement(Yt,{location:a.location,revalidation:a.revalidation,component:g,error:w,children:k(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):k()},null)}var Ze=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Ze||{}),Je=(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})(Je||{});function nn(e){let t=l.useContext(he);return t||C(!1),t}function an(e){let t=l.useContext(qt);return t||C(!1),t}function rn(e){let t=l.useContext(O);return t||C(!1),t}function Ge(e){let t=rn(),a=t.matches[t.matches.length-1];return a.route.id||C(!1),a.route.id}function on(){var e;let t=l.useContext(We),a=an(),n=Ge();return t!==void 0?t:(e=a.errors)==null?void 0:e[n]}function sn(){let{router:e}=nn(Ze.UseNavigateStable),t=Ge(Je.UseNavigateStable),a=l.useRef(!1);return He(()=>{a.current=!0}),l.useCallback(function(r,i){i===void 0&&(i={}),a.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,H({fromRouteId:t},i)))},[e,t])}const Me={};function ln(e,t,a){Me[e]||(Me[e]=!0)}function cn(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function un(e){let{to:t,replace:a,state:n,relative:r}=e;$()||C(!1);let{future:i,static:s}=l.useContext(I),{matches:u}=l.useContext(O),{pathname:c}=L(),d=me(),h=pe(t,de(u,i.v7_relativeSplatPath),c,r==="path"),p=JSON.stringify(h);return l.useEffect(()=>d(JSON.parse(p),{replace:a,state:n,relative:r}),[d,p,r,a,n]),null}function fe(e){C(!1)}function dn(e){let{basename:t="/",children:a=null,location:n,navigationType:r=z.Pop,navigator:i,static:s=!1,future:u}=e;$()&&C(!1);let c=t.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:c,navigator:i,static:s,future:H({v7_relativeSplatPath:!1},u)}),[c,u,i,s]);typeof n=="string"&&(n=B(n));let{pathname:h="/",search:p="",hash:x="",state:w=null,key:y="default"}=n,g=l.useMemo(()=>{let m=ue(h,c);return m==null?null:{location:{pathname:m,search:p,hash:x,state:w,key:y},navigationType:r}},[c,h,p,x,w,y,r]);return g==null?null:l.createElement(I.Provider,{value:d},l.createElement(Y.Provider,{children:a,value:g}))}function Ke(e){let{children:t,location:a}=e;return Gt(re(t),a)}new Promise(()=>{});function re(e,t){t===void 0&&(t=[]);let a=[];return l.Children.forEach(e,(n,r)=>{if(!l.isValidElement(n))return;let i=[...t,r];if(n.type===l.Fragment){a.push.apply(a,re(n.props.children,i));return}n.type!==fe&&C(!1),!n.props.index||!n.props.children||C(!1);let s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=re(n.props.children,i)),a.push(s)}),a}/**
 * 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 oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},oe.apply(this,arguments)}function pn(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function hn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mn(e,t){return e.button===0&&(!t||t==="_self")&&!hn(e)}function ie(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,a)=>{let n=e[a];return t.concat(Array.isArray(n)?n.map(r=>[a,r]):[[a,n]])},[]))}function fn(e,t){let a=ie(e);return t&&t.forEach((n,r)=>{a.has(r)||t.getAll(r).forEach(i=>{a.append(r,i)})}),a}const xn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gn="6";try{window.__reactRouterVersion=gn}catch{}const yn="startTransition",Re=ut[yn];function vn(e){let{basename:t,children:a,future:n,window:r}=e,i=l.useRef();i.current==null&&(i.current=vt({window:r,v5Compat:!0}));let s=i.current,[u,c]=l.useState({action:s.action,location:s.location}),{v7_startTransition:d}=n||{},h=l.useCallback(p=>{d&&Re?Re(()=>c(p)):c(p)},[c,d]);return l.useLayoutEffect(()=>s.listen(h),[s,h]),l.useEffect(()=>cn(n),[n]),l.createElement(dn,{basename:t,children:a,location:u.location,navigationType:u.action,navigator:s,future:n})}const wn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,te=l.forwardRef(function(t,a){let{onClick:n,relative:r,reloadDocument:i,replace:s,state:u,target:c,to:d,preventScrollReset:h,viewTransition:p}=t,x=pn(t,xn),{basename:w}=l.useContext(I),y,g=!1;if(typeof d=="string"&&bn.test(d)&&(y=d,wn))try{let b=new URL(window.location.href),M=d.startsWith("//")?new URL(b.protocol+d):new URL(d),A=ue(M.pathname,w);M.origin===b.origin&&A!=null?d=A+M.search+M.hash:g=!0}catch{}let m=Zt(d,{relative:r}),j=Cn(d,{replace:s,state:u,target:c,preventScrollReset:h,relative:r,viewTransition:p});function k(b){n&&n(b),b.defaultPrevented||j(b)}return l.createElement("a",oe({},x,{href:y||m,onClick:g||i?n:k,ref:a,target:c}))});var Se;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Se||(Se={}));var Le;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Le||(Le={}));function Cn(e,t){let{target:a,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:u}=t===void 0?{}:t,c=me(),d=L(),h=qe(e,{relative:s});return l.useCallback(p=>{if(mn(p,a)){p.preventDefault();let x=n!==void 0?n:G(d)===G(h);c(e,{replace:x,state:r,preventScrollReset:i,relative:s,viewTransition:u})}},[d,c,h,n,r,a,e,i,s,u])}function ar(e){let t=l.useRef(ie(e)),a=l.useRef(!1),n=L(),r=l.useMemo(()=>fn(n.search,a.current?null:t.current),[n.search]),i=me(),s=l.useCallback((u,c)=>{const d=ie(typeof u=="function"?u(r):u);a.current=!0,i("?"+d,c)},[i,r]);return[r,s]}/**
 * @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:"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"}]],Xe=v("arrow-left-right",_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 jn=[["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"}]],kn=v("bell",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 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"}]],Qe=v("blocks",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 Nn=[["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"}]],se=v("calendar-days",Nn);/**
 * @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:"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"}]],Ye=v("chart-column",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:"m15 18-6-6 6-6",key:"1wnfg3"}]],Rn=v("chevron-left",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 Sn=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ln=v("chevron-right",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=[["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"}]],On=v("circle-x",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 zn=[["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"}]],et=v("clipboard-list",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:"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"}]],Ae=v("layers",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 In=[["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=v("layout-dashboard",In);/**
 * @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 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"}]],Bn=v("list-checks",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:"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"}]],q=v("list",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 $n=[["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"}]],tt=v("mail",$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 Un=[["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"}]],le=v("map-pin",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 Dn=[["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"}]],nt=v("message-square",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:"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"}]],at=v("palette",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:"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"}]],rt=v("receipt",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 qn=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],K=v("trending-up",qn);/**
 * @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:"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"}]],Jn=v("triangle-alert",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 Gn=[["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"}]],X=v("wallet",Gn);/**
 * @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 Kn=[["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"}]],ot=v("wand-sparkles",Kn);function Xn(){return o.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:[o.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"}),o.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 Qn=Be(Xn);function Yn(e,t,a={}){const{mode:n="both",debounceMs:r=0,collapseOnMount:i=!1}=a,s=l.useRef(typeof window>"u"?!0:window.innerWidth>=e),u=l.useRef(null);l.useEffect(()=>{if(typeof window>"u")return;s.current=window.innerWidth>=e,i&&!s.current&&t(!0);const c=()=>{const h=window.innerWidth>=e;if(n==="sync")t(!h);else{const p=s.current;p&&!h&&(n==="down"||n==="both")&&t(!0),!p&&h&&(n==="up"||n==="both")&&t(!1)}s.current=h},d=()=>{r>0?(clearTimeout(u.current),u.current=setTimeout(c,r)):c()};return window.addEventListener("resize",d),n==="sync"&&c(),()=>{window.removeEventListener("resize",d),u.current&&(clearTimeout(u.current),u.current=null)}},[e,t,n,r,i])}const ea="radius-booking";function ta(){const e=jQuery,t=e("#toplevel_page_"+ea),a=window.location.href,n=a.substr(a.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 r=n.split("/");e("ul.wp-submenu a",t).each(function(i,s){typeof r[1]<"u"&&r[1];let u=!1;switch(e(s).attr("href")){case n:u=!0;break}u&&e(s).parent().addClass("current")})}function na(){const e=L();return l.useEffect(()=>{ta()},[e.pathname]),null}function aa(){return o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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 ra=Be(aa);function oa({isOpen:e,isCollapsed:t,setIsCollapsed:a}){var b,M,A,ge,ye,ve,we,be,Ce;na();const n=L(),[r,i]=l.useState({}),[s,u]=l.useState(null),c=l.useRef(null),d=(f,P=!1)=>{if(f==="/")return n.pathname==="/";const[E,S]=f.split("?");if(S){if(n.pathname!==E)return!1;const U=new URLSearchParams(S),N=new URLSearchParams(n.search);for(const[F,ct]of U.entries())if(N.get(F)!==ct)return!1;return!0}return P?n.pathname===E:n.pathname===E||n.pathname.startsWith(E+"/")},h=f=>f.children?f.children.some(P=>d(P.path)):!1,p=l.useCallback(f=>{i(P=>({...P,[f]:!P[f]}))},[]),x=l.useCallback(f=>{c.current&&clearTimeout(c.current),u(f)},[]),w=l.useCallback(()=>{c.current=setTimeout(()=>{u(null)},150)},[]),y=[{category:"Overview",items:[{name:"Dashboard",path:"/",icon:o.jsx(xe,{className:"w-[18px] h-[18px]"})},{name:"Analytics",path:"/analytics",icon:o.jsx(Ye,{className:"w-[18px] h-[18px]"})},{name:"Calendar",path:"/calendar",icon:o.jsx(ce,{className:"w-[18px] h-[18px]"})}]},{category:"Booking Management",items:[{name:"Appointment",path:"/appointment",icon:o.jsx(J,{className:"w-[18px] h-[18px]"})},...(M=(b=window.radius_booking_param)==null?void 0:b.active_modules)!=null&&M.meeting?[{name:"Meetings",icon:o.jsx(Z,{className:"w-[18px] h-[18px]"}),children:[{name:"Bookings",path:"/meeting-bookings",icon:o.jsx(_e,{className:"w-4 h-4"})},{name:"Meetings",path:"/meeting-types",icon:o.jsx(q,{className:"w-4 h-4"})}]}]:[],...(ge=(A=window.radius_booking_param)==null?void 0:A.active_modules)!=null&&ge.event?[{name:"Events",icon:o.jsx(se,{className:"w-[18px] h-[18px]"}),children:[{name:"Attendees",path:"/event-registrations",icon:o.jsx(_e,{className:"w-4 h-4"})},{name:"All Events",path:"/events",icon:o.jsx(q,{className:"w-4 h-4"})}]}]:[],{name:"Customers",path:"/customers",icon:o.jsx(D,{className:"w-[18px] h-[18px]"})},{name:"Payment",path:"/payments",icon:o.jsx(V,{className:"w-[18px] h-[18px]"})},{name:"Coupons",path:"/coupons",icon:o.jsx(Ve,{className:"w-[18px] h-[18px]"})},{name:"Dynamic Pricing",path:"/dynamic-pricing",icon:o.jsx(K,{className:"w-[18px] h-[18px]"})},...(ye=window.radius_booking_param)!=null&&ye.is_cl_active&&((ve=window.radius_booking_param)!=null&&ve.payout_enabled)?[{name:"Payouts",icon:o.jsx(X,{className:"w-[18px] h-[18px]"}),children:[{name:"All Payouts",path:"/payouts",icon:o.jsx(q,{className:"w-4 h-4"})},{name:"Commissions",path:"/payouts/income",icon:o.jsx(K,{className:"w-4 h-4"})}]}]:[]]},{category:"Business Setup",items:[{name:"Services",path:"/services",icon:o.jsx(q,{className:"w-4 h-4"})},{name:"Staff",path:"/employees",icon:o.jsx(D,{className:"w-4 h-4"})},{name:"Locations",path:"/locations",icon:o.jsx(le,{className:"w-[18px] h-[18px]"})}]},{category:"Configuration",items:[{name:"Custom Fields",path:"/custom-fields",icon:o.jsx(et,{className:"w-[18px] h-[18px]"})},{name:"Notifications",icon:o.jsx(tt,{className:"w-[18px] h-[18px]"}),children:[{name:"Emails",path:"/notifications",icon:o.jsx(kn,{className:"w-4 h-4"})}]}]},{category:"Settings",items:[{name:"Modules",path:"/settings?tab=modules",icon:o.jsx(Qe,{className:"w-[18px] h-[18px]"})},{name:"General",path:"/settings?tab=general",icon:o.jsx(Fe,{className:"w-[18px] h-[18px]"})},{name:"Schedule",path:"/settings?tab=schedule",icon:o.jsx(at,{className:"w-[18px] h-[18px]"})},{name:"Tax",path:"/settings?tab=tax",icon:o.jsx(rt,{className:"w-[18px] h-[18px]"})},{name:"Appointment",path:"/settings?tab=appointment-settings",icon:o.jsx(V,{className:"w-[18px] h-[18px]"})},{name:"Integrations",path:"/settings?tab=integrations",icon:o.jsx(ne,{className:"w-[18px] h-[18px]"})},{name:"Payment Gateway",path:"/settings?tab=payment",icon:o.jsx(V,{className:"w-[18px] h-[18px]"})},{name:"AI Chatbot",path:"/settings?tab=chatbot",icon:o.jsx(nt,{className:"w-[18px] h-[18px]"})},{name:"Export / Import",path:"/settings?tab=export-import",icon:o.jsx(Xe,{className:"w-[18px] h-[18px]"})},...(we=window.radius_booking_param)!=null&&we.is_cl_active?[{name:"Payout",path:"/settings?tab=payout",icon:o.jsx(X,{className:"w-[18px] h-[18px]"})}]:[],{name:"Form Customization",path:"/form-customization",icon:o.jsx(V,{className:"w-[18px] h-[18px]"})},...(be=window.radius_booking_param)!=null&&be.is_pro?[{name:"License",path:`/setti
gs?tab=license`,icon:o.jsx(ne,{className:"w-[18px] h-[18px]"})}]:[],{name:"Setup Wizard",path:"/setup-wizard",icon:o.jsx(ot,{className:"w-[18px] h-[18px]"})}]}],g=y.flatMap(f=>f.items);l.useEffect(()=>{g.forEach(f=>{f.children&&h(f)&&i(P=>({...P,[f.name]:!0}))})},[n.pathname,n.search]);const m=!!((Ce=window.radius_booking_param)!=null&&Ce.is_pro),j=(f,P)=>{const E=f.pro&&!m;return o.jsxs(te,{to:f.path,className:R("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",P?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:[o.jsx("div",{className:R("transition-transform duration-200",P?"scale-110":"group-hover:scale-105",t?"":"mr-3"),children:f.icon}),!t&&o.jsx("span",{className:"font-normal text-l flex-1",children:f.name}),!t&&E&&o.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:"PRO"}),!t&&P&&!E&&o.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"})]})},k=(f,P)=>{const E=r[f.name],S=s===f.name,U=f.pro&&!m;return o.jsxs(o.Fragment,{children:[o.jsxs("button",{onClick:()=>!t&&p(f.name),className:R("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",P?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:[o.jsx("div",{className:R("transition-transform duration-200",P?"scale-110":"group-hover:scale-105",t?"":"mr-3"),children:f.icon}),!t&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"font-normal text-l flex-1 text-left",children:f.name}),U?o.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:"PRO"}):o.jsx(mt,{className:R("w-4 h-4 transition-transform duration-200",E?"rotate-180":"")})]})]}),!t&&o.jsx("div",{className:R("overflow-hidden text-sm transition-all duration-200 ease-in-out",E?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:o.jsx("div",{className:"ml-8 mt-1 space-y-0.5",children:f.children.map(N=>{const F=d(N.path,!0);return o.jsxs(te,{to:N.path,className:R("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",F?"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:[o.jsx("span",{children:N.name}),N.pro&&!m&&o.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",children:"PRO"}),F&&!(N.pro&&!m)&&o.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary ml-auto"})]},N.name)})})}),t&&S&&o.jsxs("div",{className:"absolute left-full ml-2 top-0 z-50 min-w-[200px]",onMouseEnter:()=>x(f.name),onMouseLeave:w,children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-lg border border-border py-2 px-1",children:[o.jsx("div",{className:"px-3 py-1.5 mb-1 border-b border-border/50",children:o.jsx("span",{className:"text-xs font-semibold text-title/50 uppercase tracking-wider",children:f.name})}),f.children.map(N=>{const F=d(N.path);return o.jsxs(te,{to:N.path,className:R("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",F?"text-primary bg-[#E5EBF9]/50 font-medium":"text-title/80 hover:text-title hover:bg-gray-50"),children:[N.icon,o.jsx("span",{className:"whitespace-nowrap",children:N.name}),N.pro&&!m&&o.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",children:"PRO"}),F&&!(N.pro&&!m)&&o.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary ml-auto"})]},N.name)})]}),o.jsx("div",{className:"absolute left-0 top-3 -translate-x-1 border-4 border-transparent border-r-white drop-shadow-sm"})]})]})};return o.jsx(o.Fragment,{children:e&&o.jsxs("nav",{className:R("sticky min-[960px]:fixed z-50 min-[960px]:left-[160px] top-[var(--rtrb-content-top,32px)] h-screen bg-white border-r border-border flex flex-col shadow-sm transition-all duration-300 ease-in-out",t?"w-[80px]":"w-[255px]"),children:[o.jsx("div",{className:"px-4 py-5 border-b border-border",children:o.jsx("div",{className:"flex items-center justify-between",children:o.jsxs("div",{className:"flex items-center gap-2 h-[40px]",children:[o.jsx("div",{className:"w-[34px] h-[34px] bg-primary rounded-lg flex items-center justify-center shadow-sm mx-auto",children:o.jsx(ra,{})}),!t&&o.jsxs("div",{children:[o.jsx("h1",{className:"text-lg font-bold text-title whitespace-nowrap leading-1",children:"RadiusBooking"}),o.jsx("h5",{className:"text-title2 uppercase tracking-[0.075em] font-inter not-italic leading-1 font-semibold text-[9px] leading-[11px] whitespace-nowrap",children:"Manage your booking"})]})]})})}),o.jsx("button",{onClick:()=>a(!t),className:R("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] rounded-[0_30px_30px_0]":"right-[-1px] rounded-[30px_0_0_30px]"),children:t?o.jsx(Ln,{className:"w-3.5 h-3.5 text-title2"}):o.jsx(Rn,{className:"w-3.5 h-3.5 text-title2"})}),o.jsx("div",{className:"flex-1 py-4 overflow-y-auto rtrb-left-menu mb-5",children:o.jsx("div",{className:R("space-y-4",t?"px-2":"px-3"),children:y.map((f,P)=>o.jsxs("div",{children:[t?P>0&&o.jsx("div",{className:"border-t border-border/50 mx-1 my-1"}):o.jsx("div",{className:"px-3 pt-1 pb-1.5",children:o.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.08em] text-title2/60",children:f.category})}),o.jsx("div",{className:"space-y-1",children:f.items.map(E=>{const S=!!E.children,U=!S&&d(E.path),N=S&&h(E);return o.jsxs("div",{className:"relative group",onMouseEnter:()=>t&&S&&x(E.name),onMouseLeave:()=>t&&S&&w(),children:[S?k(E,N):j(E,U),t&&!S&&o.jsxs("div",{className:"absolute left-full ml-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:[E.name,o.jsx("div",{className:"absolute right-full top-1/2 -translate-y-1/2 border-4 border-transparent border-r-gray-900"})]})]},E.name)})})]},f.category))})})]})})}const it=l.createContext(null),st=l.createContext(()=>{});function ia({children:e}){const[t,a]=l.useState(null);return o.jsx(st.Provider,{value:a,children:o.jsx(it.Provider,{value:t,children:e})})}function sa(){return l.useContext(it)}function rr(){return l.useContext(st)}const la=[{path:"/",title:"Dashboard",description:"Overview of your booking business",icon:xe},{path:"/analytics",title:"Analytics",description:"Business performance insights",icon:Ye},{path:"/calendar",title:"Calendar",description:"View and manage your schedule",icon:ce},{path:"/appointment/create",title:"Add Appointment",description:"Create a new appointment",icon:J},{path:"/appointment",title:"Appointments",description:"Manage all appointments",icon:J},{path:"/customers",title:"Customers",description:"Manage your customer base",icon:D},{path:"/payments",title:"Payments",description:"Track and manage payments",icon:V},{path:"/coupons",title:"Coupons",description:"Manage discount coupons",icon:Ve},{path:"/dynamic-pricing",title:"Dynamic Pricing",description:"Manage pricing rules based on time, date, or demand",icon:K},{path:"/payouts/income",title:"Commissions",description:"Commission income from appointments",icon:K},{path:"/payouts",title:"Payouts",description:"Manage employee payout requests",icon:X},{path:"/services/create",title:"Add Service",description:"Create a new service",icon:Ae},{path:"/services",title:"Services",description:"Manage your services",icon:Ae},{path:"/employees/create",title:"Add Staff",description:"Add a new staff member",icon:D},{path:"/employees",title:"Staff",description:"Manage your team",icon:D},{path:"/locations/create",title:"Add Location",description:"Add a new location",icon:le},{path:"/locations",title:"Locations",description:"Manage your locations",icon:le},{path:"/meeting-types/create",title:"Add Meeting Schedule",description:"Create a new meeting type",icon:Z},{path:"/meeting-types",title:"Meetings",description:"Manage your meeting types",icon:Z},{path:"/meeting-bookings",title:"Bookings",description:"View and manage meeting bookings",icon:Z},{path:"/events/create",title:"Add Event",description:"Create a new event",icon:se},{path:"/events",title:"Events",description:"Manage your events",icon:se},{path:"/event-registrations",title:"Attendees",description:"View and manage event registrations",icon:Bn},{path:"/custom-fields",title:"Custom Fields",description:"Configure custom form fields",icon:et},{path:"/notifications",title:"Notifications",description:"Manage email notifications",icon:tt},{path:"/form-customization",title:"Form Customization",description:"Customize booking form appearance",icon:at},{path:"/setup-wizard",title:"Setup Wizard",description:"Step-by-step configuration guide",icon:ot}],Oe={modules:{title:"Modules",description:"Enable or disable booking modules",icon:Qe},general:{title:"General Settings",description:"Configure general options",icon:Fe},schedule:{title:"Schedule Settings",description:"Set up working hours and availability",icon:ce},tax:{title:"Tax Settings",description:"Configure tax rules",icon:rt},"appointment-settings":{title:"Appointment Settings",description:"Configure appointment options",icon:J},integrations:{title:"Integrations",description:"Connect third-party services",icon:ne},payment:{title:"Payment Gateway",description:"Configure payment methods",icon:V},chatbot:{title:"AI Chatbot",description:"Configure AI assistant",icon:nt},"export-import":{title:"Export / Import",description:"Export and import plugin data",icon:Xe},payout:{title:"Payout Settings",description:"Configure payout methods and commissions",icon:X}};function ca(){const e=L(),t=e.pathname,a=e.search;return l.useMemo(()=>{if(t==="/settings"){const r=new URLSearchParams(a).get("tab");return r&&Oe[r]?Oe[r]:{title:"Settings",description:"Configure your plugin",icon:ht}}for(const n of la)if(n.path==="/"){if(t==="/")return n}else if(t===n.path||t.startsWith(n.path+"/"))return n;return{title:"Dashboard",description:"Overview of your booking business",icon:xe}},[t,a])}function ua(){const{title:e,description:t,icon:a}=ca(),n=sa();return o.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:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("h1",{className:"text-[24px] font-semibold leading-tight text-title m-0 truncate",children:e}),o.jsx("p",{className:"text-[12px] text-title2 leading-tight m-0 mt-0.5 truncate",children:t})]}),n&&o.jsx("div",{className:"flex items-center gap-2 shrink-0",children:n})]})}const ze={success:{icon:o.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:o.jsx(On,{className:"w-5 h-5"}),bg:"bg-red-100 dark:bg-red-800",text:"text-red-500 dark:text-red-200"},info:{icon:o.jsx(ft,{className:"w-5 h-5"}),bg:"bg-blue-100 dark:bg-blue-800",text:"text-blue-500 dark:text-blue-200"},warning:{icon:o.jsx(Jn,{className:"w-5 h-5"}),bg:"bg-yellow-100 dark:bg-yellow-800",text:"text-yellow-500 dark:text-yellow-200"}},da={hidden:{opacity:0,y:-20,scale:.95},visible:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95}};function pa({type:e="success",message:t,onClose:a,duration:n=3e3}){l.useEffect(()=>{const u=setTimeout(()=>{a()},n);return()=>clearTimeout(u)},[a,n]);const{icon:r,bg:i,text:s}=ze[e]||ze.success;return o.jsxs(xt.div,{variants:da,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:[o.jsxs("div",{className:`inline-flex items-center justify-center shrink-0 w-8 h-8 rounded-lg ${i} ${s}`,children:[r,o.jsxs("span",{className:"sr-only",children:[e," icon"]})]}),o.jsx("div",{className:"ms-3 text-sm font-normal capitalize",children:t}),o.jsxs("button",{type:"button",onClick:a,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:[o.jsx(pt,{className:"w-3 h-3"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})}let ha=0;function ma(){const[e,t]=l.useState([]);l.useEffect(()=>{window.showToast=n=>{const r=++ha;t(i=>[...i,{id:r,...n}])}},[]);const a=n=>{t(r=>r.filter(i=>i.id!==n))};return o.jsx("div",{className:"fixed top-10 right-10 z-50 space-y-2",children:o.jsx(gt,{children:e==null?void 0:e.map(n=>o.jsx(pa,{...n,onClose:()=>{t(r=>r.map(i=>i.id===n.id?{...i,closing:!0}:i)),setTimeout(()=>a(n.id),300)}},n.id))})})}function fa({children:e,sidebarOpen:t,toggleSidebar:a}){l.useEffect(()=>{const u=c=>{c.key==="Escape"&&window.innerWidth<1024&&a(!1)};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[a]),L().pathname.startsWith("/form-customization");const[i,s]=l.useState(()=>typeof window>"u"?!1:window.innerWidth<960);return Yn(960,s,{mode:"both",debounceMs:100,collapseOnMount:!1}),o.jsx(ia,{children:o.jsxs("main",{className:"bg-body flex flex-col w-full min-h-screen","data-model-id":"36056:2199",children:[o.jsx(ma,{}),o.jsx("div",{className:"flex flex-col flex-1",children:o.jsxs("div",{className:"flex flex-row flex-1",children:[o.jsx(oa,{isOpen:t,toggleSidebar:a,isCollapsed:i,setIsCollapsed:s}),o.jsxs("section",{className:R("w-full bg-white-color max-w-100 transition-w duration-300 ease-in-out",i?"min-[960px]:pl-[81px]":"min-[960px]:pl-[256px]"),children:[o.jsx(ua,{}),o.jsx("div",{className:"mx-auto p-[20px] md:p-[30px_50px] overflow-x-clip",children:e})]})]})})]})})}function xa(){return o.jsx("div",{className:"animate-fade-in",children:o.jsx("div",{className:"!card",children:o.jsx("p",{children:"Custom Forms content will go here"})})})}const ga=l.lazy(()=>_(()=>import("./Calendar-C2r-5n3N.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)),ya=l.lazy(()=>_(()=>import("./Dashboard-BcXr23vr.js"),__vite__mapDeps([51,1,2,52,5,32,33,34,35,36,37,38,16,20,4,21,53,54,55,25,56,6,23,47,48,40,17,49,39,50]),import.meta.url)),va=l.lazy(()=>_(()=>import("./index-DeJATgHj.js"),__vite__mapDeps([57,1,2,42,8,5,43,44,45,4,58,59,31,14,10,60,18,61,62,32,33,34,35,36,37,38,63,64,65,66,25,15,30,67,68,13,48,69,70,71,72,11,73,74,75,76,46,77,78,40,29,79,80,81,82,83,84,85,47,17,49,39,50]),import.meta.url)),wa=l.lazy(()=>_(()=>import("./index-BpDYB6F0.js"),__vite__mapDeps([86,1,2,8,5,58,30,14,31,4,18,59,10,60,61,62,25,32,33,34,35,36,37,38,63,81,72,11,46,3,64,87,65,66,42,43,44,45,88,89,27,75,90,82,73,79,77,74,15,91,80,92,9,12,13,48,68,93,94,95,96,97,98,99,100,16,7,17,101,102,103,69,104,20,78,40,29,105,21,53,106,107,84,108,109,110,111,112,113,23,55,83,47,49,39,50]),import.meta.url)),ba=l.lazy(()=>_(()=>import("./index-DsAeN4hL.js"),__vite__mapDeps([114,1,2,115,4,5,32,33,34,35,36,37,38,58,30,14,8,31,18,12,25,62,116,117,118,10,26,27,11,119,65,66,63,95,73,96,72,97,79,77,98,15,74,80,42,43,44,45,120,102,47,48,40,17,49,39,50]),import.meta.url)),Ca=l.lazy(()=>_(()=>import("./index-B0p0091R.js"),__vite__mapDeps([121,1,2,42,8,5,43,44,45,4,30,14,31,18,118,10,63,59,60,61,32,33,34,35,36,37,38,16,58,64,119,62,116,122,6,23,73,96,72,11,97,79,77,98,15,74,25,80,99,94,9,12,13,68,100,115,123,47,48,40,17,49,39,50]),import.meta.url)),_a=l.lazy(()=>_(()=>import("./index-ChZOthcc.js"),__vite__mapDeps([124,1,2,44,45,4,5,42,8,43,117,118,31,14,10,18,32,33,34,35,36,37,38,26,27,11,65,119,62,123,58,30,12,125,63,116,93,73,94,9,13,68,15,46,92,48,95,96,72,97,79,77,98,74,25,80,99,100,87,16,7,17,101,102,103,69,104,20,78,40,29,105,90,88,89,75,60,82,3,21,53,106,83,47,49,39,50]),import.meta.url)),ja=l.lazy(()=>_(()=>import("./index-CehbyRnT.js"),__vite__mapDeps([126,1,2,42,8,5,43,44,45,4,32,33,34,35,36,37,38,25,127,20,15,24,30,14,31,18,118,10,26,27,11,76,62,72,91,40,48,128,58,23,16,50,129,84,116,78,13,29,125,123,12,3,6,7,9,17,19,122,63,77,73,60,61,97,74,105,28,130,131,83,46,47,49,39]),import.meta.url)),ka=l.lazy(()=>_(()=>import("./index-DJwoTeGg.js"),__vite__mapDeps([132,1,2,42,8,5,43,4,44,45,32,33,34,35,36,37,38,117,23,24,10,58,72,11,30,14,31,18,73,25,15,91,48,123,40,84,50,133,47,16,134,85,102,129,116,62,119,122,12,125,20,53,54,128,17,49,39]),import.meta.url)),Ea=l.lazy(()=>_(()=>import("./index-CAkJIy8z.js"),__vite__mapDeps([135,1,2,42,8,5,43,44,45,4,136,20,54,55,9,10,11,12,13,14,15,18,74,31,72,58,37,40,48,46,120,102,84,103,70,113,77,83,104,118,91,62,75,60,89,27,36,134,97,129,90,32,33,34,35,38,63,49,79,80,94,68,100,111,47,17,39,50]),import.meta.url)),Na=l.lazy(()=>_(()=>import("./index-Dbx2uY12.js"),__vite__mapDeps([137,1,2,136,5,32,33,34,35,36,37,38,63,10,8,138,4,139,45,80,71,18,69,70,47,48,40,17,49,39,50]),import.meta.url)),Pa=l.lazy(()=>_(()=>import("./index-6-QFfM7q.js"),__vite__mapDeps([140,1,2,42,8,5,43,44,45,4,32,33,34,35,36,37,38,56,22,65,117,119,62,58,30,14,31,18,46,103,83,47,48,40,17,49,39,50]),import.meta.url)),Ma=l.lazy(()=>_(()=>import("./index-CLC3h-Q7.js"),__vite__mapDeps([141,1,2,115,4,5,42,8,43,44,45,32,33,34,35,36,37,38,58,30,14,31,18,12,116,62,117,118,10,119,65,66,63,96,72,11,97,98,15,74,87,13,120,102,47,48,40,17,49,39,50]),import.meta.url)),Ra=l.lazy(()=>_(()=>import("./index-CCMg3Sjo.js"),__vite__mapDeps([142,1,2,42,8,5,43,44,45,4,32,33,34,35,36,37,38,58,118,31,14,10,18,30,117,116,62,119,63,16,12,143,72,11,73,74,78,13,40,29,120,102,83,46,76,47,48,17,49,39,50]),import.meta.url)),Sa=l.lazy(()=>_(()=>import("./Analytics-DDz6czTq.js"),__vite__mapDeps([144,1,2,52,32,33,34,35,36,37,38,84,5,40,4,112,145,131,120,102,47,48,17,49,39,50]),import.meta.url)),La=l.lazy(()=>_(()=>import("./index-CjG9-D96.js"),__vite__mapDeps([146,1,2,44,45,4,5,36,37,16,123,48,18,69,50,84,38,62,112,70,120,102,47,40,17,49,39]),import.meta.url)),Aa=l.lazy(()=>_(()=>import("./index-DUbsYMFa.js"),__vite__mapDeps([147,1,2,42,8,5,43,44,45,4,32,33,34,35,36,37,38,58,118,31,14,10,18,30,117,116,62,119,63,12,143,72,11,73,120,102,83,46,47,48,40,17,49,39,50]),import.meta.url)),Oa=l.lazy(()=>_(()=>import("./index-Cg4o0DOQ.js"),__vite__mapDeps([148,1,2,42,8,5,43,44,45,4,58,59,31,14,10,60,18,61,62,32,33,34,35,36,37,38,63,64,65,66,25,15,48,84,123,71,69,67,68,13,72,11,73,30,74,75,109,110,101,102,103,77,46,78,40,29,106,79,80,97,82,83,47,17,49,39,50]),import.meta.url)),za=l.lazy(()=>_(()=>import("./index-BD5oqNuV.js"),__vite__mapDeps([149,1,2,42,8,5,43,44,45,4,127,20,25,15,24,30,14,31,18,118,10,26,27,11,76,62,72,91,32,33,34,35,36,37,38,40,48,128,58,23,16,50,129,84,116,63,113,69,78,13,29,125,123,77,47,17,49,39]),import.meta.url)),Ta=l.lazy(()=>_(()=>import("./index-xh5IcbtX.js"),__vite__mapDeps([150,1,2,42,8,5,43,44,45,4,118,31,14,10,18,32,33,34,35,36,37,38,127,20,25,15,24,30,26,27,11,76,62,72,91,40,48,128,58,23,16,50,129,84,116,63,78,13,29,125,12,77,145,47,17,49,39]),import.meta.url)),Ia=[{path:"/",element:ya},{path:"/calendar",element:ga},{path:"/events/*",element:va},{path:"/employees/*",element:_a},{path:"/services/*",element:wa},{path:"/locations/*",element:ba},{path:"/customers/*",element:Ca},{path:"/Appointment/*",element:ja},{path:"/payments/*",element:ka},{path:"/settings/*",element:Ea},{path:"/notifications/*",element:Pa},{path:"/form-customization/*",element:Na},{path:"/custom-forms",element:xa},{path:"/custom-fields/*",element:Ma},{path:"/coupons/*",element:Ra},{path:"/analytics",element:Sa},{path:"/payouts/*",element:La},{path:"/dynamic-pricing/*",element:Aa},{path:"/meeting-types/*",element:Oa},{path:"/meeting-bookings/*",element:za},{path:"/event-registrations/*",element:Ta}],Fa=l.lazy(()=>_(()=>import("./index-K8wtRiZl.js"),__vite__mapDeps([151,1,2,5,88,8,89,27,11,75,60,31,14,10,90,82,43,36,37,38,96,72,58,97,4,79,77,80,100,94,9,12,13,68,18,131,41,30,48,74,40,107,123,129,47,17,49,39,50]),import.meta.url)),Te=()=>o.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:o.jsx("div",{role:"status",children:o.jsx(Qn,{size:"30px"})})});function Ba({sidebarOpen:e,toggleSidebar:t}){var i;const a=L(),n=(i=window.radius_booking_param)==null?void 0:i.setup_completed,r=a.pathname==="/setup-wizard";return!n&&!r?o.jsx(un,{to:"/setup-wizard",replace:!0}):r?o.jsx(l.Suspense,{fallback:o.jsx(Te,{}),children:o.jsx(Fa,{})}):o.jsx(fa,{sidebarOpen:e,toggleSidebar:t,children:o.jsx(Ke,{children:Ia.map(s=>{const u=s.element,c=s.props||{};return o.jsx(fe,{path:s.path,element:o.jsx(l.Suspense,{fallback:o.jsx(Te,{}),children:o.jsx(u,{data:c})})},s.path)})})})}function Va(){const[e,t]=l.useState(!0),a=()=>t(!e);return o.jsx(vn,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:o.jsx(Ke,{children:o.jsx(fe,{path:"/*",element:o.jsx(Ba,{sidebarOpen:e,toggleSidebar:a})})})})}const{__:or,_x:ir,_n:sr,_nx:lr,sprintf:cr}=wp.i18n,Ie=new Set;function lt(){return window.radiusBookingI18n||{currentLocale:"en_US",domain:"radius-booking",languagesUrl:"",translations:{}}}function $a(e){return Array.isArray(e)?e:!e||typeof e!="object"?[]:Object.keys(e).filter(t=>!isNaN(t)).sort((t,a)=>parseInt(t)-parseInt(a)).map(t=>e[t])}async function Ua(e,t){if(Ie.has(t))return!0;try{const a=await fetch(e);if(!a.ok)return!1;const n=await a.json(),r=lt();let i=null;if(n.locale_data)if(n.locale_data[r.domain])i=n.locale_data[r.domain];else if(n.locale_data.messages)i=n.locale_data.messages;else{const s=Object.keys(n.locale_data)[0];s&&(i=n.locale_data[s])}else n[""]&&typeof n[""]=="object"&&(i=n);return i?(wp.i18n.setLocaleData(i,r.domain),Ie.add(t),!0):(console.error("Could not find locale data in translation file:",n),!1)}catch(a){return console.error(`Failed to load translation: ${t}`,a),!1}}async function Da(){const e=lt(),{currentLocale:t,translations:a,languagesUrl:n}=e;if(!a[t])return;const r=$a(a[t]);if(r.length===0)return;const i=r.map(u=>{const c=`${n}/${u.filename}`;return Ua(c,u.filename)});(await Promise.all(i)).filter(Boolean).length}async function Wa(){await Da();const e=document.getElementById("radius-booking");e&&dt.createRoot(e).render(o.jsx(Va,{}))}Wa();export{Xe as A,Qe as B,se as C,Ae as L,le as M,Ke as R,Qn as S,ma as T,X as W,or as _,tt as a,ra as b,te as c,Rn as d,Ln as e,nr as f,fe as g,ar as h,L as i,q as j,rt as k,On as l,nt as m,K as n,Ye as o,kn as p,rr as q,me as u};
//# sourceMappingURL=index-CM0LBdHD.js.map
