1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-Bn6_BY24.js","assets/index-DelWp-6b.js","assets/index-CEmMupnr.css","assets/useQuery-B9eAwr7I.js","assets/property.service-CKR6m_Ja.js","assets/FmAccessNotice-D2qZ6zw5.js","assets/FmDrillList-CMgvv-py.js","assets/dashboard.service-BZV_vIgp.js","assets/file-warning-4dHurgIf.js","assets/PortfolioPage-CNB4XKNJ.js","assets/useMutation-CwYdRQCa.js","assets/property.types-D1-R2nOY.js","assets/locations.service-C73784oC.js","assets/plus-BjX2r5pd.js","assets/save-BGjsgJl1.js","assets/LeasesPage-3imLjly9.js","assets/crm.service-BloBewIe.js","assets/paymentTerms.service-BSDfgqYf.js","assets/circle-play-CCx9EHMj.js","assets/ban-BU4lv9Ao.js","assets/BookingsPage-DquxXgsD.js","assets/space.types-DDJkElkR.js","assets/calendar-check-DpXJnemZ.js","assets/gauge-SjU8H87B.js","assets/MovesPage-v-mnvX3g.js","assets/services.service-DwldeJz6.js","assets/planning.service-DGv_GIZ-.js","assets/skip-forward-vQGSwfj-.js","assets/circle-dot-yS9W8jSR.js","assets/VisitorsPage-DFNAAss1.js","assets/flame-l-g4r5Pd.js","assets/badge-check-BgzB_OL2.js","assets/phone-BGsHPR-i.js","assets/log-out-CoAVXCyc.js"])))=>i.map(i=>d[i]); 2import{K as u,j as e,bq as j,o as f,aU as y,$ as v,aE as g,W as N,a as _,b as k,Y as P,d as E,O as L,J as w,Q as R,D as C,F as o,N as b,I as D,r as i,_ as d}from"./index-DelWp-6b.js";import{S as F}from"./SidebarLogo-BuybG-VZ.js";import{C as S}from"./calendar-range-RLYm-3VU.js";const A=[{label:"What the estate earns",items:[{label:"The portfolio",path:"/property/portfolio",icon:f},{label:"Leases",path:"/property/leases",icon:y}]},{label:"Who is using it",items:[{label:"Bookings",path:"/property/bookings",icon:S},{label:"Moves",path:"/property/moves",icon:v},{label:"Visitors",path:"/property/visitors",icon:g}]}],T="#070C1F",z={background:"rgba(var(--primary-rgb),0.10)",border:"1px solid rgba(var(--primary-rgb),0.22)",color:"#fff"},O={color:"rgba(255,255,255,0.52)"},I={boxShadow:"0 0 8px rgba(var(--primary-rgb),0.55)"};function V(){const r=u(),n=a=>a==="/property/dashboard"?r.pathname==="/property"||r.pathname.startsWith("/property/dashboard"):r.pathname.startsWith(a),s=a=>t=>{const l=t.currentTarget;l.style.background=a?"rgba(255,255,255,0.05)":"",l.style.color=a?"rgba(255,255,255,0.85)":"rgba(255,255,255,0.52)"},p=({item:a})=>{const t=n(a.path),l=a.icon;return e.jsxs(N,{to:a.path,className:"flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-colors duration-200 relative",style:t?z:O,onMouseEnter:t?void 0:s(!0),onMouseLeave:t?void 0:s(!1),children:[t&&e.jsx("span",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-0.5 h-5 rounded-full",style:{background:"var(--primary-400)",...I}}),e.jsx(l,{className:"w-4 h-4 shrink-0",style:{color:t?"var(--primary-400)":void 0}}),e.jsx("span",{className:"truncate",children:a.label})]})};return e.jsxs("aside",{className:"w-64 flex flex-col h-full shrink-0",style:{background:T},children:[e.jsx(F,{moduleName:"Property",moduleSubtitle:"Portfolio · Leasing · Workplace"}),e.jsxs("nav",{className:"flex-1 px-3 py-4 space-y-0.5 overflow-y-auto",children:[e.jsx("div",{className:"mb-3",children:e.jsx(p,{item:{label:"Dashboard",path:"/property/dashboard",icon:j}})}),A.map(a=>e.jsxs("div",{className:"pt-3",children:[e.jsx("p",{className:"px-3 pb-1.5 text-[10px] font-bold uppercase tracking-wider",style:{color:"rgba(255,255,255,0.3)"},children:a.label}),e.jsx("div",{className:"space-y-0.5",children:a.items.map(t=>e.jsx(p,{item:t},t.path))})]},a.label))]})]})}function B(){var l,x,m,h;const r=_(),n=u(),{user:s}=k(),p=[(l=s==null?void 0:s.firstName)==null?void 0:l[0],(x=s==null?void 0:s.lastName)==null?void 0:x[0]].filter(Boolean).join("").toUpperCase()||"U",a=(s==null?void 0:s.fullName)||`${(s==null?void 0:s.firstName)??""} ${(s==null?void 0:s.lastName)??""}`.trim()||(s==null?void 0:s.userName)||"User",t=((h=(m=n.pathname.split("/property/")[1])==null?void 0:m.split("/")[0])==null?void 0:h.replace(/-/g," "))||"Dashboard";return e.jsxs("header",{className:"h-14 bg-white border-b border-slate-200 flex items-center justify-between px-6 shrink-0 z-10 sticky top-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-slate-800",children:"Property"}),e.jsx("span",{className:"text-slate-300",children:"/"}),e.jsx("span",{className:"text-sm text-slate-500 capitalize",children:t})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm font-medium text-slate-600 hidden sm:block",children:a}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-[var(--primary-500)] flex items-center justify-center shrink-0",children:e.jsx("span",{className:"text-white text-xs font-bold",children:p})}),e.jsxs("button",{onClick:()=>r("/home"),className:"flex items-center gap-1.5 text-sm text-slate-500 hover:text-[var(--primary-600)] font-medium transition-colors px-2 py-1.5 rounded-lg hover:bg-[var(--primary-50)]",children:[e.jsx(P,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Back to Home"})]})]})]})}function W(){const{backgroundStyle:r,isDark:n}=E();return e.jsxs("div",{className:"flex h-screen",style:{background:n?"var(--bg-primary)":"#F5F6FA"},children:[e.jsx(V,{}),e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[e.jsx(B,{}),e.jsx("main",{className:"flex-1 overflow-auto p-6 relative transition-all duration-500",style:{background:r||(n?"var(--bg-primary)":"#F5F6FA")},children:e.jsx(L,{})})]}),e.jsx(w,{position:"top-right",toastOptions:{duration:4e3,style:{fontFamily:"'Plus Jakarta Sans', sans-serif",fontSize:"14px",borderRadius:"12px",padding:"12px 16px"},success:{style:{background:"#f0fdf4",color:"#166534",border:"1px solid #bbf7d0"}},error:{style:{background:"#fef2f2",color:"#991b1b",border:"1px solid #fecaca"}}}})]})}const M=D(),U=i.lazy(()=>d(()=>import("./DashboardPage-Bn6_BY24.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),Q=i.lazy(()=>d(()=>import("./PortfolioPage-CNB4XKNJ.js"),__vite__mapDeps([9,1,2,3,10,4,5,11,12,7,6,13,14]))),$=i.lazy(()=>d(()=>import("./LeasesPage-3imLjly9.js"),__vite__mapDeps([15,1,2,3,10,4,5,11,12,7,16,17,6,13,14,18,19]))),q=i.lazy(()=>d(()=>import("./BookingsPage-DquxXgsD.js"),__vite__mapDeps([20,1,2,3,10,4,5,21,12,7,6,15,11,16,17,13,14,18,19,22,23]))),H=i.lazy(()=>d(()=>import("./MovesPage-v-mnvX3g.js"),__vite__mapDeps([24,1,2,3,10,4,5,21,12,7,25,26,6,15,11,16,17,13,14,18,19,27,28]))),J=i.lazy(()=>d(()=>import("./VisitorsPage-DFNAAss1.js"),__vite__mapDeps([29,1,2,3,10,4,5,21,12,7,6,15,11,16,17,13,14,18,19,30,31,32,33]))),G=()=>e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("div",{className:"w-8 h-8 border-2 border-t-transparent roun
2ded-full animate-spin",style:{borderColor:"var(--primary-500)",borderTopColor:"transparent"}})}),c=({children:r})=>e.jsx(i.Suspense,{fallback:e.jsx(G,{}),children:r});function Z(){return e.jsx(R,{client:M,children:e.jsx(C,{children:e.jsxs(o,{element:e.jsx(W,{}),children:[e.jsx(o,{index:!0,element:e.jsx(b,{to:"dashboard",replace:!0})}),e.jsx(o,{path:"dashboard",element:e.jsx(c,{children:e.jsx(U,{})})}),e.jsx(o,{path:"portfolio",element:e.jsx(c,{children:e.jsx(Q,{})})}),e.jsx(o,{path:"leases",element:e.jsx(c,{children:e.jsx($,{})})}),e.jsx(o,{path:"bookings",element:e.jsx(c,{children:e.jsx(q,{})})}),e.jsx(o,{path:"moves",element:e.jsx(c,{children:e.jsx(H,{})})}),e.jsx(o,{path:"visitors",element:e.jsx(c,{children:e.jsx(J,{})})}),e.jsx(o,{path:"*",element:e.jsx(b,{to:"dashboard",replace:!0})})]})})})}export{Z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.