import{r as x,j as e,_ as s,s as ee}from"./wp-i18n-shim-DUX0OV_V.js";import{u as Ge,A as Ue}from"./ActionButton-Cr4Z2a1F.js";import{C as Ve}from"./CrudLayout-DRSWmVk9.js";import{B as G}from"./Button-BveKhP38.js";import{I as E}from"./input-Dw-69aYW.js";import{D as ze,a as We,E as qe,b as He,c as ve}from"./dropdown-menu-EYEjuOIn.js";import{c as Ie,a as Ne,X as ke}from"./utils-Bl0WAcve.js";import{S as $}from"./skeleton-DfFmlQ5i.js";import{a as Z,u as z,s as _,c as Ze,f as Je}from"./store-rDqSxbzb.js";import{C as Xe}from"./ConfirmDialog-Bbm_78dn.js";import{S as Ye}from"./Search-Deq4yX7o.js";import{E as Ke}from"./Edit-ChdaRnpE.js";import{T as Qe}from"./Trash-BkcPMnbK.js";import{C as O,a as R}from"./card-CNcjg1NV.js";import{B as es}from"./badge-DBj5X-b5.js";import{f as ss}from"./currency-DQMOSJyc.js";import{u as $e,g as ts,M as _e,d as as,R as is,e as J}from"./index-D01LF5Le.js";import{V as H,C as we,G as rs,S as ns,b as Ce}from"./CalenderCheck-2TB2QVYq.js";import{D as Me}from"./dollar-sign-Bnksw8VW.js";import{U as os}from"./user-bjdz1CQT.js";import{C as ls}from"./code-BSR1KX-T.js";import{C as Se}from"./Combination-BuKwnoTc.js";import{C as Ae}from"./copy-CujkJL51.js";import{L as ds}from"./link-CAlvqKlr.js";import{L as v}from"./label-CwRAQd0m.js";import{T as cs}from"./textarea-CG8MgAEa.js";import{S as Pe,a as Te,b as De,c as Fe,f as X}from"./select-BFNitOb0.js";import{S as V}from"./switch-I41RT0Bn.js";import{T as ms,a as us,b as Y,c as K}from"./tabs-7R76dlGV.js";import{G as xs,S as hs,P as gs}from"./GoogleCalender-BNhy3hJ_.js";import{G as ps,Z as bs}from"./Zoom-B_DWzU5-.js";import{P as W}from"./ProFeatureCard-BWfAwmAZ.js";import{T as se}from"./time-picker-BSbsRgdR.js";import{a as Ee}from"./dateTimeFormat-yH4yHSCh.js";import{T as Be}from"./trash-2-CS5zm_gd.js";import{P as ie}from"./plus-WPVVS3Qe.js";import{D as fs}from"./date-picker-q5NTWWN-.js";import{u as js}from"./useValidation-B5n8rnWA.js";import{I as ys}from"./ImageUpload-CcSoaEux.js";import{u as vs}from"./useMediaUploader-DCuR6epV.js";import{I as Ns}from"./withIconDefaults-BJCqj2oX.js";import{C as ks}from"./calendar-Cz3-D5io.js";import{C as Le}from"./circle-alert-COuSc4NK.js";import{A as _s,a as ws}from"./arrow-right-DztcoQ91.js";import{S as ae}from"./save-BecwuxKD.js";import"./vendor-DDjlQeP6.js";import"./loader-circle-CcSu72zH.js";import"./ArrowLeftIcon-C8q2jgKs.js";import"./index-Bl84CzKv.js";import"./dialog-EtKUcLIM.js";import"./index-CcfXrftP.js";import"./circle-DNYav3qT.js";import"./lodash-Bd-B7UeG.js";import"./defineProperty-DbXIQDXj.js";import"./typeof-QjJsDpFa.js";import"./apiConfig-BA13wrqF.js";import"./index-CLZ4-rw6.js";import"./toast-1-c8k_LJ.js";import"./priceFormatter-Dg4GlACg.js";import"./preload-helper-Dp1pzeXC.js";import"./tag-8m_NofXN.js";import"./shield-DVSNyXBB.js";import"./proxy-CtW-P0pQ.js";import"./circle-check-big-Bxgqw2u9.js";import"./index-f2RCAr_u.js";import"./crown-CcV7MJml.js";import"./lock-ws9wrevH.js";import"./scroll-area-JhQW4-1L.js";import"./popover-D8UtFi-E.js";import"./format-KhiMdRwp.js";/**
 * @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 Cs=[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ms=Ie("calendar-off",Cs);/**
 * @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 Ss=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],As=Ie("link-2",Ss);function Ps(){const u=Z(),d=$e(),l=ts(),{filters:N,meetingTypes:k,loading:M,pagination:w}=z(a=>{const m=a(_);return{filters:m.getMeetingTypeFilters(),meetingTypes:m.getMeetingTypes(),loading:m.getMeetingTypeLoading(),pagination:m.getMeetingTypePagination()}},[]),p=x.useMemo(()=>JSON.stringify(N),[N]),[b,f]=x.useState(0);x.useEffect(()=>{u(_).fetchMeetingTypes(N)},[u,p,b,l.pathname]);const[j,A]=x.useState(""),[L,T]=x.useState(!1),[B,C]=x.useState(null),[i,I]=x.useState(null),D=(a,m)=>{try{const y=document.createElement("textarea");y.value=a,y.style.position="fixed",y.style.opacity="0",document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y),I(m),setTimeout(()=>I(null),2e3)}catch{navigator.clipboard&&navigator.clipboard.writeText(a).then(()=>{I(m),setTimeout(()=>I(null),2e3)})}},r=a=>{C(a),T(!0)},h=async()=>{await u(_).deleteMeetingType(B),T(!1),u(_).fetchMeetingTypes(N)},n=x.useMemo(()=>{if(!j)return k;const a=j.toLowerCase();return k.filter(m=>{var y,U;return((y=m.name)==null?void 0:y.toLowerCase().includes(a))||((U=m.description)==null?void 0:U.toLowerCase().includes(a))})},[k,j]),c=a=>{if(!a)return s("N/A","radius-booking");if(a<60)return ee(s("%d min","radius-booking"),a);const m=Math.floor(a/60),y=a%60;return y>0?ee(s("%1$dh %2$dm","radius-booking"),m,y):ee(s("%dh","radius-booking"),m)},o=a=>{const m=parseFloat(a);return!m||m===0?s("Free","radius-booking"):ss(m)},g=a=>{switch(a){case"online":return s("Online","radius-booking");case"in_person":return s("In Person","radius-booking");case"phone":return s("Phone","radius-booking");default:return a||s("N/A","radius-booking")}};return M?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"rtrb-card p-6",children:e.jsx("div",{className:"flex items-center gap-4",children:e.jsx($,{className:"h-[45px] w-full max-w-md rounded-[8px]"})})}),[1,2,3].map(a=>e.jsx("div",{className:"bg-white rounded-2xl rtrb-card overflow-hidden p-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx($,{className:"w-10 h-10 rounded-xl flex-shrink-0"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx($,{className:"h-5 w-1/3 rounded"}),e.jsx($,{className:"h-4 w-2/3 rounded"})]}),e.jsx($,{className:"h-6 w-16 rounded-full"}),e.jsx($,{className:"h-4 w-20 rounded"}),e.jsx($,{className:"h-4 w-16 rounded"}),e.jsx($,{className:"h-9 w-9 rounded-lg"})]})},a))]}):e.jsxs(e.Fragment,{children:[e.jsxs("main",{className:"min-h-screen",children:[e.jsx("header",{className:"z-40 p-0",children:e.jsx("div",{className:"rtrb-card p-6",children:e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs("div",{className:"relative flex-1 max-w-md mr-auto",children:[e.jsx(Ye,{className:"absolute right-3 top-1/2 -translate-y-1/2 text-small-font"}),e.jsx(E,{placeholder:s("Search meeting types...","radius-booking"),className:"h-[45px] bg-white rounded-[8px]",value:j,onChange:a=>A(a.target.value)})]})})})}),e.jsx("div",{className:"py-6 space-y-3",children:n.length>0?n.map(a=>e.jsxs("div",{className:"group bg-white border border-border rounded-xl overflow-hidden hover:shadow-md transition-all duration-200",children:[e.jsxs("div",{className:"px-5 py-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[e.jsx("div",{className:"w-11 h-11 rounded-xl overflow-hidden flex items-center justify-center text-white font-bold shrink-0",style:{backgroundColor:a.color||"#0040ff"},children:a.picture_thumb_path?e.jsx("img",{className:"w-full h-full object-cover",alt:a.name,src:a.picture_thumb_path,loading:"lazy"}):e.jsx(H,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{onClick:()=>d(`${a.id}/edit`),className:"font-semibold text-[15px] text-title cursor-pointer hover:text-primary truncate",children:a.name}),a.description&&e.jsx("p",{className:"text-sm text-title2 mt-0.5 line-clamp-1",children:a.description})]})]}),e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[e.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-title bg-gray-50 border border-border px-2.5 py-1 rounded-md",children:[e.jsx(we,{className:"w-3.5 h-3.5 text-primary"}),c(a.duration)]}),e.jsxs("span",{className:Ne("inline-flex items-center gap-1.5 text-xs font-medium px-2.5 py-1 rounded-md border",parseFloat(a.price)>0?"text-green-700 bg-green-50 border-green-200":"text-title bg-gray-50 border-border"),children:[e.jsx(Me,{className:"w-3.5 h-3.5"}),o(a.price,a.currency_symbol)]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-title bg-gray-50 border border-border px-2.5 py-1 rounded-md",children:[e.jsx(_e,{className:"w-3.5 h-3.5 text-primary"}),g(a.location_type)]})]}),a.employee_name&&e.jsxs("span",{className:"hidden lg:inline-flex items-center gap-1.5 text-xs font-medium text-title bg-gray-50 border border-border px-2.5 py-1 rounded-md",children:[e.jsx(os,{className:"w-3.5 h-3.5 text-primary"}),a.employee_name]}),e.jsx(es,{className:Ne("text-[11px] shrink-0",Number(a.is_active)===1?"bg-green-100 text-green-700 hover:bg-green-100":"bg-gray-100 text-gray-500 hover:bg-gray-100"),children:Number(a.is_active)===1?s("Active","radius-booking"):s("Inactive","radius-booking")}),e.jsxs(ze,{children:[e.jsx(We,{asChild:!0,children:e.jsx(G,{variant:"ghost",size:"icon",className:"h-9 w-9 rounded-lg bg-gray-50 group-hover:bg-gray-100",children:e.jsx(qe,{className:"w-4 h-4"})})}),e.jsxs(He,{align:"end",className:"w-48",children:[e.jsxs(ve,{onClick:()=>d(`${a.id}/edit`),className:"cursor-pointer",children:[e.jsx(Ke,{})," ",s("Edit Meeting Type","radius-booking")]}),e.jsxs(ve,{onClick:()=>r(a.id),className:"cursor-pointer text-red-600 focus:text-red-600",children:[e.jsx(Qe,{})," ",s("Delete Meeting Type","radius-booking")]})]})]})]})]}),e.jsxs("div",{className:"flex md:hidden items-center gap-2 mt-3 flex-wrap",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-title bg-gray-50 border border-border px-2 py-0.5 rounded-md",children:[e.jsx(we,{className:"w-3 h-3 text-primary"})," ",c(a.duration)]}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-title bg-gray-50 border border-border px-2 py-0.5 rounded-md",children:[e.jsx(Me,{className:"w-3 h-3"})," ",o(a.price,a.currency_symbol)]}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-title bg-gray-50 border border-border px-2 py-0.5 rounded-md",children:[e.jsx(_e,{className:"w-3 h-3 text-primary"})," ",g(a.location_type)]})]})]}),a.slug&&e.jsx("div",{className:"px-5 py-2.5 bg-[#FAFBFC] border-t border-border/60",children:e.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(ls,{className:"w-3 h-3 text-slate-400 shrink-0"}),e.jsx("code",{className:"text-[11px] bg-slate-100 text-slate-600 px-2 py-0.5 rounded font-mono select-all",children:`[rtrb_meeting_booking slug="${a.slug}"]`}),e.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),D(`[rtrb_meeting_booking slug="${a.slug}"]`,`sc-${a.id}`)},className:"p-1 rounded hover:bg-slate-200 transition-colors shrink-0",title:s("Copy shortcode","radius-booking"),children:i===`sc-${a.id}`?e.jsx(Se,{className:"w-3 h-3 text-green-600"}):e.jsx(Ae,{className:"w-3 h-3 text-slate-400"})})]}),a.shareable_url&&e.jsx("div",{className:"w-px h-4 bg-border hidden sm:block"}),a.shareable_url&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(ds,{className:"w-3 h-3 text-slate-400 shrink-0"}),e.jsx("code",{className:"text-[11px] bg-blue-50 text-blue-600 px-2 py-0.5 rounded font-mono truncate max-w-[350px] select-all",children:a.shareable_url}),e.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),D(a.shareable_url,`url-${a.id}`)},className:"p-1 rounded hover:bg-slate-200 transition-colors shrink-0",title:s("Copy booking URL","radius-booking"),children:i===`url-${a.id}`?e.jsx(Se,{className:"w-3 h-3 text-green-600"}):e.jsx(Ae,{className:"w-3 h-3 text-slate-400"})})]})]})})]},a.id)):e.jsx(O,{className:"border-border shadow-sm",children:e.jsx(R,{className:"flex items-center justify-center py-16",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(H,{className:"w-8 h-8 text-blue-600"})}),e.jsx("h3",{className:"text-lg font-bold text-title mb-2",children:s("No Meeting Types Found","radius-booking")}),e.jsx("p",{className:"text-sm text-small-font",children:s("Create your first meeting type to get started.","radius-booking")})]})})})})]}),e.jsx(Xe,{open:L,onClose:()=>T(!1),onConfirm:h,title:s("Are you sure?","radius-booking"),description:s("This action will permanently delete this meeting type.","radius-booking"),confirmText:s("Delete","radius-booking")})]})}const Oe=[{index:0,label:s("Sunday","radius-booking"),name:"sunday"},{index:1,label:s("Monday","radius-booking"),name:"monday"},{index:2,label:s("Tuesday","radius-booking"),name:"tuesday"},{index:3,label:s("Wednesday","radius-booking"),name:"wednesday"},{index:4,label:s("Thursday","radius-booking"),name:"thursday"},{index:5,label:s("Friday","radius-booking"),name:"friday"},{index:6,label:s("Saturday","radius-booking"),name:"saturday"}],te={start_time:"09:00",end_time:"17:00"};function Ts(u){return u?Oe.filter(d=>{var l;return(l=u[d.name])==null?void 0:l.enabled}).map(d=>{const l=u[d.name];return{day_of_week:d.index,start_time:l.start||"09:00",end_time:l.end||"17:00",time_windows:[{start_time:l.start||"09:00",end_time:l.end||"17:00"}]}}):[]}function Ds(){var D;const u=Z(),d=z(r=>r(_).getMeetingType(),[]),l=d.availability||[],[N,k]=x.useState(null),M=!!((D=d==null?void 0:d.settings)!=null&&D.useCustomAvailability),w=x.useRef(d);w.current=d,x.useEffect(()=>{Ze("weeklySchedule").then(r=>{var n;const h=((n=r==null?void 0:r.data)==null?void 0:n.data)||(r==null?void 0:r.data)||null;k(h)}).catch(()=>{})},[]);const p=x.useMemo(()=>Ts(N),[N]),b=x.useCallback(r=>{const n={...w.current,...r};w.current=n,u(_).setMeetingTypeData(n)},[u]),f=x.useCallback(r=>{b({availability:r})},[b]),j=x.useCallback(r=>{const h=w.current,n=h.settings&&typeof h.settings=="object"?h.settings:{};if(r){const c=p.length>0?p:[];b({availability:c,settings:{...n,useCustomAvailability:!0}})}else b({availability:[],settings:{...n,useCustomAvailability:!1}})},[p,b]),A=r=>l.find(h=>h.day_of_week===r)||null,L=r=>{const h=A(r);f(h?l.filter(n=>n.day_of_week!==r):[...l,{day_of_week:r,start_time:te.start_time,end_time:te.end_time,time_windows:[{...te}]}])},T=(r,h,n,c)=>{const o=l.map(g=>{var m,y;if(g.day_of_week!==r)return g;const a=g.time_windows?[...g.time_windows]:[{start_time:g.start_time,end_time:g.end_time}];return a[h]={...a[h],[n]:c},{...g,time_windows:a,start_time:((m=a[0])==null?void 0:m.start_time)||g.start_time,end_time:((y=a[0])==null?void 0:y.end_time)||g.end_time}});f(o)},B=r=>{const h=l.map(n=>{if(n.day_of_week!==r)return n;const c=n.time_windows?[...n.time_windows]:[{start_time:n.start_time,end_time:n.end_time}];return{...n,time_windows:[...c,{start_time:"13:00",end_time:"17:00"}]}});f(h)},C=(r,h)=>{const n=l.map(c=>{var g,a;if(c.day_of_week!==r)return c;const o=(c.time_windows||[]).filter((m,y)=>y!==h);return o.length===0?null:{...c,time_windows:o,start_time:((g=o[0])==null?void 0:g.start_time)||c.start_time,end_time:((a=o[0])==null?void 0:a.end_time)||c.end_time}}).filter(Boolean);f(n)},i=M?l:p,I=(r,h)=>{const n=i.find(g=>g.day_of_week===r.index)||null,c=!!n,o=(n==null?void 0:n.time_windows)||(n?[{start_time:n.start_time,end_time:n.end_time}]:[]);return e.jsxs("div",{className:`flex items-start gap-4 p-3 rounded-lg border transition-colors ${c?"border-border bg-white":"border-transparent bg-gray-50"}`,children:[e.jsxs("div",{className:"flex items-center gap-3 w-36 pt-1.5",children:[h?e.jsx(V,{checked:c,onCheckedChange:()=>L(r.index)}):e.jsx("div",{className:`w-4 h-4 rounded-full ${c?"bg-green-500":"bg-gray-300"}`}),e.jsx("span",{className:`text-sm font-medium ${c?"text-title":"text-muted-foreground"}`,children:r.label})]}),c&&e.jsxs("div",{className:"flex-1 space-y-2",children:[o.map((g,a)=>e.jsx("div",{className:"flex items-center gap-2",children:h?e.jsxs(e.Fragment,{children:[e.jsx(se,{value:g.start_time||"09:00",onChange:m=>T(r.index,a,"start_time",m)}),e.jsx("span",{className:"text-sm text-muted-foreground",children:s("to","radius-booking")}),e.jsx(se,{value:g.end_time||"17:00",onChange:m=>T(r.index,a,"end_time",m)}),o.length>1&&e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8 text-red-400 hover:text-red-600 hover:bg-red-50",onClick:()=>C(r.index,a),children:e.jsx(Be,{className:"w-3.5 h-3.5"})})]}):e.jsxs("span",{className:"text-sm text-title",children:[Ee(g.start_time||"09:00")," — ",Ee(g.end_time||"17:00")]})},a)),h&&e.jsxs(G,{variant:"ghost",size:"sm",className:"text-xs text-primary hover:text-primary/80 h-7 px-2",onClick:()=>B(r.index),children:[e.jsx(ie,{className:"w-3 h-3 mr-1"})," ",s("Add time window","radius-booking")]})]}),!c&&e.jsx("div",{className:"flex-1 pt-1.5",children:e.jsx("span",{className:"text-sm text-muted-foreground",children:s("Unavailable","radius-booking")})})]},r.index)};return e.jsx(O,{className:"border-border shadow-sm",children:e.jsxs(R,{className:"p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-title mb-1",children:s("Weekly Availability","radius-booking")}),e.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:s("Set the hours available for this meeting type.","radius-booking")}),e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border border-border bg-white mb-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center bg-blue-50 border border-blue-100",children:e.jsx(rs,{className:"w-5 h-5 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-title",children:M?s("Custom Schedule","radius-booking"):s("Custom Schedule","radius-booking")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:M?s("This meeting type has a custom availability schedule","radius-booking"):s("This meeting type follows the global schedule from Settings","radius-booking")})]})]}),e.jsx(V,{checked:M,onCheckedChange:j})]}),e.jsx("div",{className:"space-y-3",children:Oe.map(r=>I(r,M))})]})})}function Fs(){const u=Z(),d=z(p=>p(_).getMeetingType(),[]),l=d.date_overrides||[],N=x.useCallback(p=>{u(_).setMeetingTypeData({...d,date_overrides:p})},[d,u]),k=()=>{N([...l,{override_date:"",is_unavailable:!0,start_time:"09:00",end_time:"17:00"}])},M=p=>{N(l.filter((b,f)=>f!==p))},w=(p,b,f)=>{const j=l.map((A,L)=>L!==p?A:{...A,[b]:f});N(j)};return e.jsx(O,{className:"border-border shadow-sm",children:e.jsxs(R,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-5",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold text-title",children:s("Date Overrides","radius-booking")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("Override availability for specific dates (e.g. holidays, special hours).","radius-booking")})]}),e.jsxs(G,{variant:"outline",size:"sm",onClick:k,className:"h-9 text-sm",children:[e.jsx(ie,{className:"w-4 h-4 mr-1"}),s("Add Date Override","radius-booking")]})]}),l.length===0?e.jsxs("div",{className:"py-8 text-center",children:[e.jsx(Ms,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("No date overrides configured.","radius-booking")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s("Add overrides for holidays or special availability.","radius-booking")})]}):e.jsx("div",{className:"space-y-3",children:l.map((p,b)=>{const f=p.is_unavailable===!0||p.is_unavailable===1||p.is_unavailable==="1";return e.jsxs("div",{className:"flex items-end gap-4 p-4 rounded-lg border border-border bg-white",children:[e.jsxs("div",{className:"space-y-1 w-48",children:[e.jsx(v,{className:"text-xs text-muted-foreground",children:s("Date","radius-booking")}),e.jsx(fs,{date:p.override_date,setDate:j=>w(b,"override_date",j),placeholder:s("Pick a date","radius-booking"),className:"h-9"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{className:"text-xs text-muted-foreground",children:s("Availability","radius-booking")}),e.jsxs("div",{className:"flex items-center gap-2 h-9",children:[e.jsx(V,{checked:!f,onCheckedChange:j=>w(b,"is_unavailable",!j)}),e.jsx("span",{className:`text-sm font-medium ${f?"text-red-500":"text-green-600"}`,children:f?s("Closed","radius-booking"):s("Open (Custom Hours)","radius-booking")})]})]}),!f&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{className:"text-xs text-muted-foreground",children:s("Start","radius-booking")}),e.jsx(se,{value:p.start_time||"09:00",onChange:j=>w(b,"start_time",j)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{className:"text-xs text-muted-foreground",children:s("End","radius-booking")}),e.jsx(se,{value:p.end_time||"17:00",onChange:j=>w(b,"end_time",j)})]})]}),e.jsx("div",{className:"flex-1"}),e.jsx(G,{variant:"ghost",size:"icon",className:"h-9 w-9 text-red-400 hover:text-red-600 hover:bg-red-50 shrink-0",onClick:()=>M(b),children:e.jsx(Be,{className:"w-4 h-4"})})]},b)})})]})})}const q=["general","availability","advanced","settings"];function Es(u){return u?typeof u=="string"?u:u!=null&&u.first_message?u.first_message:Array.isArray(u==null?void 0:u.messages)?u.messages[0]:null:null}function Ls({activeTab:u="general",onTabChange:d,onSave:l,isSaving:N=!1}){var re,ne,oe,le,de,ce,me,ue,xe,he,ge,pe,be;const k=Z(),{id:M}=as(),w=x.useMemo(()=>M!==void 0,[M]),[p,b]=x.useState([]),[f,j]=x.useState(!1),A=q.indexOf(u),L=A===0,T=A===q.length-1,B=()=>{L||d==null||d(q[A-1])},C=async()=>{const t=T?null:q[A+1];await(l==null?void 0:l(t))&&t&&(d==null||d(t))},{meetingType:i,loading:I,errors:D}=z(t=>{const S=t(_);return{meetingType:S.getMeetingType(),loading:S.getMeetingTypeLoading(),errors:S.getMeetingTypeError()}},[]),r=x.useMemo(()=>({name:[{check:t=>!!(t!=null&&t.trim()),message:s("Meeting type name is required","radius-booking")},{check:t=>(t==null?void 0:t.length)>=2,message:s("Min 2 characters","radius-booking")}],employee_id:[{check:t=>!!t,message:s("Please select an host","radius-booking")}],duration:[{check:t=>!!t,message:s("Duration is required","radius-booking")},{check:t=>Number(t)>=1,message:s("Min 1 minute","radius-booking")}]}),[]),{validate:h}=js(r,t=>k(_).setMeetingTypeError(t));x.useEffect(()=>(window.__meetingTypeValidate=()=>h(i),()=>{delete window.__meetingTypeValidate}),[i,h]),x.useEffect(()=>(w&&k(_).fetchMeetingType(M),()=>{k(_).setDefaultMeetingType()}),[M]),x.useEffect(()=>{j(!0),Je().then(t=>{var P;const S=((P=t==null?void 0:t.data)==null?void 0:P.map(F=>({value:String(F.id),label:(F.first_name||"")+" "+(F.last_name||"")})))||[];b(S)}).catch(()=>{b([])}).finally(()=>{j(!1)})},[]);const n=((re=window.radius_booking_param)==null?void 0:re.is_pro)||!1,c=x.useRef(i);c.current=i;const o=x.useCallback((t,S)=>{const P=c.current||{};let F;if(t.startsWith("settings.")){const fe=t.split("."),je=fe[1],Re=fe[2],ye=P.settings&&typeof P.settings=="object"?P.settings:{};F={...P,settings:{...ye,[je]:{...ye[je]||{},[Re]:S}}}}else F={...P,[t]:S};c.current=F,k(_).setMeetingTypeData(F)},[k]),g=t=>{const S=D==null?void 0:D[t],P=Es(S);return P?e.jsxs("p",{className:"text-xs text-red-600 flex items-center gap-1 mt-1",children:[e.jsx(Le,{className:"h-3 w-3 shrink-0"}),P]}):null},a=vs(),m=x.useCallback(()=>{a({title:s("Select Meeting Type Image","radius-booking"),onSelect:({url:t,sizes:S})=>{var F;const P=c.current||{};c.current={...P,picture_full_path:t,picture_thumb_path:((F=S==null?void 0:S.thumbnail)==null?void 0:F.url)||t},k(_).setMeetingTypeData(c.current)}})},[a,k]),y=x.useCallback(()=>{const t=c.current||{};c.current={...t,picture_full_path:"",picture_thumb_path:""},k(_).setMeetingTypeData(c.current)},[k]),U=t=>D!=null&&D[t]?"border-red-300 focus:border-red-500 focus:ring-red-200 bg-red-50/50":"";return I?e.jsx("div",{className:"space-y-6",children:e.jsx(O,{className:"border-border shadow-sm",children:e.jsx(R,{className:"p-6 space-y-4",children:[1,2,3,4,5].map(t=>e.jsxs("div",{className:"space-y-2",children:[e.jsx($,{className:"h-4 w-24 rounded"}),e.jsx($,{className:"h-10 w-full rounded"})]},t))})})}):e.jsxs("div",{children:[e.jsxs(ms,{value:u,onValueChange:d,className:"w-full",children:[e.jsxs(us,{className:"bg-white border border-border rounded-lg p-1 mb-6",children:[e.jsxs(Y,{value:"general",className:"flex items-center gap-2 data-[state=active]:bg-primary data-[state=active]:text-white rounded-md px-4 py-2",children:[e.jsx(Ns,{className:"w-4 h-4"}),s("General","radius-booking")]}),e.jsxs(Y,{value:"availability",className:"flex items-center gap-2 data-[state=active]:bg-primary data-[state=active]:text-white rounded-md px-4 py-2",children:[e.jsx(ks,{className:"w-4 h-4"}),s("Availability","radius-booking")]}),e.jsxs(Y,{value:"advanced",className:"flex items-center gap-2 data-[state=active]:bg-primary data-[state=active]:text-white rounded-md px-4 py-2",children:[e.jsx(ns,{className:"w-4 h-4"}),s("Advanced","radius-booking")]}),e.jsxs(Y,{value:"settings",className:"flex items-center gap-2 data-[state=active]:bg-primary data-[state=active]:text-white rounded-md px-4 py-2",children:[e.jsx(As,{className:"w-4 h-4"}),s("Settings","radius-booking")]})]}),e.jsx(K,{value:"general",children:e.jsx(O,{className:"border-border shadow-sm",children:e.jsxs(R,{className:"p-6 space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(v,{htmlFor:"name",children:[s("Meeting Schedule Name","radius-booking")," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(E,{id:"name",name:"name",placeholder:s("e.g. 30 Minute Consultation","radius-booking"),value:i.name||"",onChange:t=>o("name",t.target.value),className:`h-10 ${U("name")}`}),g("name")]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"description",children:s("Description","radius-booking")}),e.jsx(cs,{id:"description",placeholder:s("Brief description of this meeting type...","radius-booking"),value:i.description||"",onChange:t=>o("description",t.target.value),rows:3})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs(v,{htmlFor:"employee_id",children:[s("Host","radius-booking")," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs(Pe,{value:i.employee_id?String(i.employee_id):"",onValueChange:t=>o("employee_id",t),disabled:f,children:[e.jsx(Te,{className:`h-10 ${U("employee_id")}`,"data-field":"employee_id",children:e.jsx(De,{placeholder:f?s("Loading employees...","radius-booking"):s("Select an host","radius-booking")})}),e.jsx(Fe,{children:p.map(t=>e.jsx(X,{value:t.value,children:t.label},t.value))})]}),g("employee_id")]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(v,{htmlFor:"duration",children:[s("Duration (minutes)","radius-booking")," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(E,{id:"duration",name:"duration",type:"number",min:1,placeholder:"30",value:i.duration||"",onChange:t=>o("duration",parseInt(t.target.value)||""),className:`h-10 ${U("duration")}`}),g("duration")]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"price",children:s("Price","radius-booking")}),e.jsx(E,{id:"price",type:"number",step:"0.01",min:0,placeholder:"0.00",value:i.price||"",onChange:t=>o("price",t.target.value),className:"h-10"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"color",children:s("Color","radius-booking")}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{id:"color",type:"color",value:i.color||"#0040ff",onChange:t=>o("color",t.target.value),className:"w-10 h-10 rounded-lg border border-border cursor-pointer"}),e.jsx(E,{value:i.color||"#0040ff",onChange:t=>o("color",t.target.value),className:"h-10 w-32",placeholder:"#0040ff"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"location_type",children:s("Location Type","radius-booking")}),e.jsxs(Pe,{value:i.location_type||"online",onValueChange:t=>o("location_type",t),children:[e.jsx(Te,{className:"h-10",children:e.jsx(De,{placeholder:s("Select location type","radius-booking")})}),e.jsxs(Fe,{children:[e.jsx(X,{value:"online",children:s("Online","radius-booking")}),e.jsx(X,{value:"in_person",children:s("In Person","radius-booking")}),e.jsx(X,{value:"phone",children:s("Phone","radius-booking")})]})]})]}),i.location_type&&i.location_type!=="online"&&e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"location_details",children:s("Location Details","radius-booking")}),e.jsx(E,{id:"location_details",placeholder:i.location_type==="phone"?s("Phone number","radius-booking"):s("Address or room number","radius-booking"),value:i.location_details||"",onChange:t=>o("location_details",t.target.value),className:"h-10"})]}),e.jsxs("div",{className:"space-y-4 pt-4 border-t border-border",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(v,{children:s("Active","radius-booking")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("Make this meeting type available for booking","radius-booking")})]}),e.jsx(V,{checked:i.is_active??!0,onCheckedChange:t=>o("is_active",t)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(v,{children:s("Requires Confirmation","radius-booking")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("Bookings need manual confirmation before they are confirmed","radius-booking")})]}),e.jsx(V,{checked:i.requires_confirmation??!1,onCheckedChange:t=>o("requires_confirmation",t)})]})]})]})})}),e.jsx(K,{value:"availability",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(Ds,{}),e.jsx(Fs,{})]})}),e.jsx(K,{value:"advanced",children:e.jsx(O,{className:"border-border shadow-sm",children:e.jsxs(R,{className:"p-6 space-y-5",children:[e.jsx("h3",{className:"text-lg font-semibold text-title",children:s("Buffer & Limits","radius-booking")}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"buffer_before",children:s("Buffer Before (minutes)","radius-booking")}),e.jsx(E,{id:"buffer_before",type:"number",min:0,placeholder:"0",value:i.buffer_before??0,onChange:t=>o("buffer_before",parseInt(t.target.value)||0),className:"h-10"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Free time before the meeting starts","radius-booking")})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"buffer_after",children:s("Buffer After (minutes)","radius-booking")}),e.jsx(E,{id:"buffer_after",type:"number",min:0,placeholder:"0",value:i.buffer_after??0,onChange:t=>o("buffer_after",parseInt(t.target.value)||0),className:"h-10"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Free time after the meeting ends","radius-booking")})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"max_bookings_per_day",children:s("Max Bookings Per Day","radius-booking")}),e.jsx(E,{id:"max_bookings_per_day",type:"number",min:0,placeholder:s("Unlimited","radius-booking"),value:i.max_bookings_per_day??"",onChange:t=>o("max_bookings_per_day",t.target.value?parseInt(t.target.value):null),className:"h-10"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Leave empty for unlimited","radius-booking")})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"min_notice_minutes",children:s("Min Notice (minutes)","radius-booking")}),e.jsx(E,{id:"min_notice_minutes",type:"number",min:0,placeholder:"60",value:i.min_notice_minutes??60,onChange:t=>o("min_notice_minutes",parseInt(t.target.value)||0),className:"h-10"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("How far in advance bookings must be made","radius-booking")})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(v,{htmlFor:"max_advance_days",children:s("Max Advance Days","radius-booking")}),e.jsx(E,{id:"max_advance_days",type:"number",min:1,placeholder:"60",value:i.max_advance_days??60,onChange:t=>o("max_advance_days",parseInt(t.target.value)||1),className:"h-10"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("How far in the future bookings can be made","radius-booking")})]})]}),e.jsxs("div",{className:"space-y-1 pt-4 border-t border-border",children:[e.jsx(v,{children:s("Picture","radius-booking")}),e.jsx(ys,{imagePath:i.picture_full_path,onUpload:m,onRemove:y,title:s("Upload meeting type image","radius-booking"),subtitle:s("PNG, JPG, up to 5MB","radius-booking")})]})]})})}),e.jsx(K,{value:"settings",children:e.jsx(O,{className:"border-border shadow-sm",children:e.jsxs(R,{className:"p-6 divide-y divide-border",children:[e.jsxs("section",{className:"pb-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("div",{className:"h-10 w-10 bg-blue-50 rounded-lg flex items-center justify-center border border-blue-100",children:e.jsx(H,{className:"h-5 w-5 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-title text-base",children:s("Integrations","radius-booking")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Connect with external calendar and video services","radius-booking")})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(W,{icon:e.jsx(xs,{size:"24px"}),title:s("Google Calendar","radius-booking"),description:s("Sync meeting bookings to Google Calendar","radius-booking"),checked:((oe=(ne=i==null?void 0:i.settings)==null?void 0:ne.integrations)==null?void 0:oe.googleCalender)||!1,onCheckedChange:t=>o("settings.integrations.googleCalender",t),isPro:!0}),e.jsx(W,{icon:e.jsx(ps,{size:"24px"}),title:s("Google Meet","radius-booking"),description:s("Auto-create Google Meet links for meetings","radius-booking"),checked:((de=(le=i==null?void 0:i.settings)==null?void 0:le.integrations)==null?void 0:de.googleMeet)||!1,onCheckedChange:t=>o("settings.integrations.googleMeet",t),isPro:!0}),e.jsx(W,{icon:e.jsx(bs,{size:"27px"}),title:s("Zoom","radius-booking"),description:s("Create Zoom meeting rooms automatically","radius-booking"),checked:((me=(ce=i==null?void 0:i.settings)==null?void 0:ce.integrations)==null?void 0:me.zoom)||!1,onCheckedChange:t=>o("settings.integrations.zoom",t),isPro:n})]})]}),e.jsxs("section",{className:"pt-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("div",{className:"h-10 w-10 bg-green-50 rounded-lg flex items-center justify-center border border-green-100",children:e.jsx(Ce,{className:"h-5 w-5 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-title text-base",children:s("Payment Methods","radius-booking")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Choose which payment methods are available for this meeting type","radius-booking")})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(W,{icon:e.jsx(hs,{size:"26px"}),title:s("Stripe","radius-booking"),description:s("Accept credit/debit card payments via Stripe","radius-booking"),checked:((xe=(ue=i==null?void 0:i.settings)==null?void 0:ue.paymentMethods)==null?void 0:xe.stripe)||!1,onCheckedChange:t=>o("settings.paymentMethods.stripe",t),isPro:n}),e.jsx(W,{icon:e.jsx(gs,{size:"26px"}),title:s("PayPal","radius-booking"),description:s("Accept payments via PayPal","radius-booking"),checked:((ge=(he=i==null?void 0:i.settings)==null?void 0:he.paymentMethods)==null?void 0:ge.paypal)||!1,onCheckedChange:t=>o("settings.paymentMethods.paypal",t),isPro:!0}),e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border border-border bg-white",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg flex items-center justify-center bg-gray-50 border border-gray-200",children:e.jsx(Ce,{className:"h-5 w-5 text-gray-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm text-title",children:s("Offline / Pay on Arrival","radius-booking")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Collect payment manually","radius-booking")})]})]}),e.jsx(V,{checked:((be=(pe=i==null?void 0:i.settings)==null?void 0:pe.paymentMethods)==null?void 0:be.offline)!==!1,onCheckedChange:t=>o("settings.paymentMethods.offline",t)})]})]}),parseFloat((i==null?void 0:i.price)||0)===0&&e.jsxs("div",{className:"mt-4 p-3 bg-yellow-50 border border-yellow-200 rounded-lg flex items-center gap-2",children:[e.jsx(Le,{className:"w-4 h-4 text-yellow-600 shrink-0"}),e.jsx("p",{className:"text-xs text-yellow-700",children:s("This meeting type has no price set. Payment methods will only apply when a price is configured in the General tab.","radius-booking")})]})]})]})})})]}),e.jsxs("div",{className:"sticky bottom-0 left-0 right-0 px-6 py-3 bg-white border-t border-border shadow-[0_-2px_8px_rgba(0,0,0,0.04)] flex items-center justify-between gap-3 z-10",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:ee(s("Step %1$d of %2$d","radius-booking"),A+1,q.length)}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(G,{type:"button",variant:"outline",onClick:B,disabled:L||N,children:[e.jsx(_s,{className:"w-4 h-4"}),s("Previous","radius-booking")]}),e.jsx(G,{type:"button",onClick:C,disabled:N,children:T?e.jsxs(e.Fragment,{children:[e.jsx(ae,{className:"w-4 h-4"}),N?s("Saving...","radius-booking"):w?s("Update","radius-booking"):s("Save","radius-booking")]}):e.jsxs(e.Fragment,{children:[N?s("Saving...","radius-booking"):s("Save & Next","radius-booking"),!N&&e.jsx(ws,{className:"w-4 h-4"})]})})]})]})]})}function Is(){var T,B;if(!((B=(T=window.radius_booking_param)==null?void 0:T.active_modules)==null?void 0:B.meeting))return e.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:e.jsxs("div",{className:"text-center",children:[e.jsx(H,{className:"w-12 h-12 mx-auto mb-4 text-gray-400"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-700 mb-2",children:s("Meeting Module is Inactive","radius-booking")}),e.jsx("p",{className:"text-gray-500",children:s("Enable the Meeting module from Settings > Modules to use this feature.","radius-booking")})]})});const d=Ge("/meeting-types"),{mode:l}=d,N=$e(),k=Z(),M=z(C=>C(_).getMeetingType(),[]),w=z(C=>C(_).isMeetingTypeSaving(),[]),[p,b]=x.useState("general");x.useEffect(()=>{l==="create"&&b("general")},[l]);const f=async(C=null)=>{if(window.__meetingTypeValidate){const{isValid:I}=window.__meetingTypeValidate();if(!I)return!1}const i=await k(_).saveMeetingType(M);return i?(l==="create"&&N(`/meeting-types/${i}/edit`),!0):!1},j=()=>{switch(l){case"list":return e.jsx(Ps,{});case"edit":case"create":return e.jsx(Ls,{activeTab:p,onTabChange:b,onSave:f,isSaving:w});default:return null}},L=({list:[{key:"add-meeting-type",label:s("New Meeting","radius-booking"),icon:ie,onClick:d.navigateTo.create,variant:"primary"}],create:[{key:"save-meeting-type",label:s("Save","radius-booking"),icon:ae,onClick:f,loading:w,variant:"primary"},{key:"cancel",label:s("Cancel","radius-booking"),icon:ke,onClick:d.navigateTo.list,variant:"cancel"}],edit:[{key:"update-meeting-type",label:s("Update","radius-booking"),icon:ae,onClick:f,loading:w,variant:"primary"},{key:"cancel",label:s("Cancel","radius-booking"),icon:ke,onClick:d.navigateTo.list,variant:"cancel"}]}[l]||[]).map(C=>e.jsx(Ue,{label:C.label,icon:C.icon,onClick:C.onClick,loading:C.loading||!1,variant:C.variant||"primary"},C.key));return e.jsx(Ve,{title:s("Meeting Types","radius-booking"),description:s("Manage your meeting types for scheduling","radius-booking"),showBack:l!=="list",onBack:d.navigateTo.list,actions:L,icon:e.jsx(H,{className:"w-5 h-5 text-primary-colordefault"}),children:j()})}const Q=x.memo(Is);function Qt(){return e.jsxs(is,{children:[e.jsx(J,{path:"/",element:e.jsx(Q,{})}),e.jsx(J,{path:"create",element:e.jsx(Q,{})}),e.jsx(J,{path:":id",element:e.jsx(Q,{})}),e.jsx(J,{path:":id/edit",element:e.jsx(Q,{})})]})}export{Qt as default};
//# sourceMappingURL=index-DHlp2xb0.js.map
