1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3265,e=>{"use strict";var t=e.i(43476),s=e.i(22016),r=e.i(71645),a=e.i(26732),o=e.i(49838);let l=[{label:"Carpets",href:"/residential/carpets",image:"/publicimages/carpets.jpg",bg:"bg-stone-200"},{label:"Vinyls",href:"/residential/vinyls",image:"/publicimages/vinyls.jpg",bg:"bg-neutral-200"},{label:"Timber / Cork / Corkwood",href:"/residential/timber-cork",image:"/publicimages/timber-flooring.jpg",bg:"bg-amber-100"},{label:"Laminate",href:"/residential/laminate",image:"/publicimages/Laminate-flooring-v2.jpg",bg:"bg-zinc-200"},{label:"Hybrid / SPC / Rigid",href:"/residential/hybrid-spc-rigid",image:"/publicimages/Hybrid-SPC-Rigid-flooring.jpg",bg:"bg-slate-200"}],i=[{label:"Carpets",href:"/commercial/carpets",image:"/publicimages/carpets.jpg",bg:"bg-stone-200"},{label:"Vinyls",href:"/commercial/vinyls",image:"/publicimages/vinyls.jpg",bg:"bg-neutral-200"},{label:"Timber / Cork / Corkwood",href:"/commercial/timber-cork",image:"/publicimages/timber-flooring.jpg",bg:"bg-amber-100"},{label:"Laminate",href:"/commercial/laminate",image:"/publicimages/Laminate-flooring-v2.jpg",bg:"bg-zinc-200"},{label:"Hybrid / SPC / Rigid",href:"/commercial/hybrid-spc-rigid",image:"/publicimages/Hybrid-SPC-Rigid-flooring.jpg",bg:"bg-slate-200"},{label:"Carpet Tiles",href:"/commercial/carpet-tiles",image:"/publicimages/carpet-tiles.jpg",bg:"bg-gray-200"}];function n({label:e,href:r,image:a,bg:l}){return(0,t.jsxs)(s.default,{href:r,className:"group flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:(0,o.cn)("relative aspect-[4/3] overflow-hidden rounded-sm",l),children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-cover bg-center transition-transform duration-300 group-hover:scale-105",style:{backgroundImage:`url(${a})`}}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-end justify-end p-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,t.jsx)("span",{className:"bg-orange-500 text-white text-xs font-semibold px-2 py-0.5 rounded",children:"View â"})})]}),(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-800 group-hover:text-orange-600 transition-colors leading-tight",children:e})]})}function c(){let{data:e,status:l}=(0,a.useSession)(),[i,n]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null);if((0,r.useEffect)(()=>{if(!e)return void d(!1);try{d(!!localStorage.getItem("floorwise_quote_draft"))}catch{}},[e]),(0,r.useEffect)(()=>{function e(e){h.current&&!h.current.contains(e.target)&&n(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),"loading"===l)return(0,t.jsx)("div",{className:"hidden lg:flex h-8 w-36 bg-gray-100 rounded-lg animate-pulse"});if(!e)return(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-2 shrink-0",children:[(0,t.jsx)(s.default,{href:"/login",className:"text-sm font-medium text-gray-700 hover:text-gray-900 px-3 py-1.5 rounded-lg hover:bg-gray-100 transition-colors",children:"Login"}),(0,t.jsx)(s.default,{href:"/register",className:"text-sm font-semibold text-white bg-[#e85c2b] hover:bg-[#d44f20] px-4 py-1.5 rounded-lg transition-colors",children:"Register"})]});let m=e.user.name?e.user.name.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase():"?";return(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-2 shrink-0",children:["ADMIN"===e.user.role?(0,t.jsxs)(s.default,{href:"/dashboard",className:"flex items-center gap-1.5 bg-[#e85c2b] hover:bg-[#d44f20] text-white text-sm font-semibold px-4 py-2 rounded-lg transition-colors whitespace-nowrap",children:["Dashboard",(0,t.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"})})]}):(0,t.jsxs)(s.default,{href:"/quote",className:"flex items-center gap-1.5 bg-[#e85c2b] hover:bg-[#d44f20] text-white text-sm font-semibold px-4 py-2 rounded-lg transition-colors whitespace-nowrap",children:[c?"Resume Quotation":"Create a Quote",(0,t.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"})})]}),(0,t.jsxs)("div",{ref:h,className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>n(e=>!e),className:"flex items-center gap-2 px-2 py-1.5 rounded-lg hover:bg-gray-100 transition-colors",children:[(0,t.jsx)("div",{className:"h-7 w-7 rounded-full bg-[#e85c2b] flex items-center justify-center text-white text-xs font-bold shrink-0",children:m}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-800 max-w-[120px] truncate",children:e.user.name}),(0,t.jsx)("svg",{className:(0,o.cn)("h-4 w-4 text-gray-400 transition-transform duration-200",i&&"rotate-180"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,t.jsxs)("div",{className:(0,o.cn)("absolute right-0 mt-1 w-52 bg-white rounded-xl border border-gray-200 shadow-lg py-1.5 z-50","transition-all duration-200 origin-top-right",i?"opacity-100 scale-100 translate-y-0 pointer-events-auto":"opacity-0 scale-95 -translate-y-1 pointer-events-none"),children:[(0,t.jsxs)("div",{className:"px-4 py-2.5 border-b border-gray-100",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-gray-900 truncate",children:e.user.name}),(0,t.jsx)("p",{className:"text-xs text-gray-400 truncate",children:e.user.email})]}),(0,t.jsxs)(s.default,{href:"/dashboard",onClick:()=>n(!1),className:"flex items-center gap-2.5 px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 transition-colors",children:[(0,t.jsx)("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"})}),"Dashboard"]}),(0,t.jsx)("div",{className:"border-t border-gray-100 mt-1 pt-1",children:(0,t.jsxs)("button",{onClick:()=>(0,a.signOut)({callbackUrl:"/"}),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-sm text-red-600 hover:bg-red-50 transition-colors",children:[(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75"})}),"Sign out"]})})]})]})]})}function d(){let{data:e,status:o}=(0,a.useSession)(),[l,i]=(0,r.useState)(!1);if((0,r.useEffect)(()=>
1{if(!e)return void i(!1);try{i(!!localStorage.getItem("floorwise_quote_draft"))}catch{}},[e]),"loading"===o)return(0,t.jsx)("div",{className:"lg:hidden h-7 w-7 bg-gray-100 rounded-full animate-pulse"});if(e){let r=e.user.name?e.user.name.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase():"?";return(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0 lg:hidden",children:[(0,t.jsxs)(s.default,{href:"ADMIN"===e.user.role?"/dashboard":"/quote",className:"flex items-center gap-1 bg-[#e85c2b] hover:bg-[#d44f20] text-white text-xs font-bold px-2.5 py-1.5 rounded-lg transition-colors whitespace-nowrap",children:[(0,t.jsx)("span",{className:"sm:hidden",children:"ADMIN"===e.user.role?"Admin":"Quote"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"ADMIN"===e.user.role?"Dashboard":l?"Resume Quotation":"Create a Quote"})]}),(0,t.jsx)("div",{className:"h-7 w-7 rounded-full bg-[#e85c2b] flex items-center justify-center text-white text-xs font-bold shrink-0",children:r})]})}return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0 lg:hidden",children:[(0,t.jsx)(s.default,{href:"/login",className:"text-xs font-semibold text-gray-700 border border-gray-200 bg-white hover:bg-gray-50 px-2 sm:px-3 py-1.5 rounded-lg transition-colors whitespace-nowrap",children:"Login"}),(0,t.jsx)(s.default,{href:"/register",className:"text-xs font-semibold text-white bg-[#e85c2b] hover:bg-[#d44f20] px-2 sm:px-3 py-1.5 rounded-lg transition-colors whitespace-nowrap",children:"Register"})]})}function h({open:e,onClose:n}){let[c,d]=(0,r.useState)(null),[m,x]=(0,r.useState)(!1),{data:u}=(0,a.useSession)();return(0,r.useEffect)(()=>{if(!u)return void x(!1);try{x(!!localStorage.getItem("floorwise_quote_draft"))}catch{}},[u]),(0,r.useEffect)(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,o.cn)("fixed inset-0 z-40 bg-black/40 transition-opacity duration-300",e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:n}),(0,t.jsxs)("div",{style:{backgroundColor:"#ffffff",colorScheme:"light"},className:(0,o.cn)("fixed top-0 left-0 z-50 h-full w-80 max-w-[90vw] shadow-xl transition-transform duration-300 flex flex-col",e?"translate-x-0":"-translate-x-full"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-gray-100",children:[(0,t.jsx)("img",{src:"/floorwise_header.svg",alt:"Floorwise",className:"h-8 w-auto object-contain"}),(0,t.jsx)("button",{onClick:n,className:"p-1 text-gray-500 hover:text-gray-800 transition-colors",children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsxs)("nav",{className:"flex-1 overflow-y-auto px-4 py-4 space-y-0.5",children:[(0,t.jsx)(s.default,{href:"/",onClick:n,className:"block px-3 py-2.5 text-sm font-semibold text-gray-800 rounded-lg hover:bg-gray-50",children:"Home"}),[{key:"residential",label:"Residential",items:l},{key:"commercial",label:"Commercial",items:i}].map(({key:e,label:r,items:a})=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{onClick:()=>d(t=>t===e?null:e),className:"flex w-full items-center justify-between px-3 py-2.5 text-sm font-semibold text-gray-800 rounded-lg hover:bg-gray-50",children:[r,(0,t.jsx)("svg",{className:(0,o.cn)("h-4 w-4 transition-transform duration-200",c===e&&"rotate-180"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,t.jsx)("div",{className:(0,o.cn)("overflow-hidden transition-all duration-300",c===e?"max-h-80 opacity-100":"max-h-0 opacity-0"),children:(0,t.jsx)("div",{className:"mt-1 ml-3 border-l-2 border-orange-200 pl-3 space-y-0.5 pb-1",children:a.map(e=>(0,t.jsx)(s.default,{href:e.href,onClick:n,className:"block py-2 text-sm text-gray-600 hover:text-orange-600 transition-colors",children:e.label},e.href))})})]},e)),[{label:"Sample or Measure",href:"/book-a-measure"},{label:"FAQ",href:"/faq"},{label:"Contact Us",href:"/contact-us"}].map(({label:e,href:r})=>(0,t.jsx)(s.default,{href:r,onClick:n,className:"block px-3 py-2.5 text-sm font-semibold text-gray-800 rounded-lg hover:bg-gray-50",children:e},r))]}),(0,t.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 space-y-2",children:[(0,t.jsx)(s.default,{href:u?.user.role==="ADMIN"?"/dashboard":"/quote",onClick:n,className:"block w-full text-center bg-[#e85c2b] text-white font-semibold text-sm py-3 rounded-lg hover:bg-[#d44f20] transition-colors",children:u?.user.role==="ADMIN"?"Dashboard":m?"Resume Quotation":"Create a Quote"}),u?(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(s.default,{href:"/dashboard",onClick:n,className:"block w-full text-center text-sm font-medium text-gray-700 border border-gray-300 py-2.5 rounded-lg hover:bg-gray-50 transition-colors",children:"Dashboard"}),(0,t.jsx)("button",{onClick:()=>{n(),(0,a.signOut)({callbackUrl:"/"})},className:"w-full text-center text-sm font-medium text-red-600 border border-red-200 py-2.5 rounded-lg hover:bg-red-50 transition-colors",children:"Sign out"})]}):(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.default,{href:"/login",onClick:n,className:"flex-1 text-center text-sm font-medium text-gray-700 border border-gray-300 py-2.5 rounded-lg hover:bg-gray-50 transition-colors",children:"Login"}),(0,t.jsx)(s.default,{href:"/register",onClick:n,className:"flex-1 text-center text-sm font-semibold text-[#e85c2b] border border-[#e85c2b] py-2.5 rounded-lg hover:bg-orange-50 transition-colors",children:"Register"})]})]})]})]})}e.s(["Navbar",0,function(){let[e,a]=(0,r.useState)(null),[m,x]=(0,r.useState)(!1),u="residential"===e?l:"commercial"===e?i:[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sticky top-0 z-40",style:{colorScheme:"light"},onMouseLeave:()=>a(null),children:[(0,t.jsx)("header",{className:"bg-white border-b border-gray-100",style:{backgroundColor:"#ffffff",color:"#111827"},children:(0,t.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex h-16 items-center justify-between gap-2 lg:gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,t.jsx)("button",{className:"lg:hidden p-1.5 -ml-1.5 text-gray-600 hover:text-gray-900 transition-colors shrink-0",onClick:()=>x(!0),"aria-label":"Open menu",children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,t.jsx)(s.default,{href:"/",className:"shrink-0",children:(0,t.jsx)("img",{src:"/floorwise_header.svg",alt:"Floorwise",className:"h-7 sm:h-9 w-auto object-contain"})})]}),(0,t.jsxs)("nav",{className:"hidden lg:flex items-center justify-center gap-6 flex-1",children:[(0,t.jsx)(s.default,{href:"/",className:"text-sm font-medium text-gray-800 hover:text-gray-600 transition-colors py-2",children:"Home"}),["residential","commercial"].map(s=>(0,t.jsxs)("button",{onMouseEnter:()=>a(s),className:(0,o.cn)("flex items-center gap-1 text-sm font-medium transition-colors py-2 capitalize",e===s?"text-orange-600":"text-gray-800 hover:text-gray-600"),children:[s.charAt(0).toUpperCase()+s.slice(1),(0,t.jsx)("svg",{className:(0,o.cn)("h-4 w-4 transition-transform duration-200",e===s&&"rotate-180"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]},s)),[{label:"Sample or Measure",href:"/book-a-measure"},{label:"FAQ",href:"/faq"},{label:"Contact Us",href:"/contact"}].map(e=>(0,t.jsx)(s.default,{href:e.href,onMouseEnter:()=>a(null),className:"text-sm font-medium text-gray-800 hover:text-gray-600 transition-colors py-2",children:e.label},e.href))]}),(0,t.jsx)(c,{}),(0,t.jsx)(d,{})]})})}),(0,t.jsx)("div",{style:{backgroundColor:"#ffffff",colorScheme:"light"},className:(0,o.cn)("absolute left-0 right-0 border-b border-gray-200 shadow-xl overflow-hidden","transition-all duration-250 ease-out",e?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 -translate-y-2 pointer-events-none"),children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-6",children:[(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-widest text-orange-500 mb-4 capitalize",children:e}),(0,t.jsx)("div",{className:(0,o.cn)("grid gap-4",u.length<=5?"grid-cols-3 sm:grid-cols-4 lg:grid-cols-5":"grid-cols-3 sm:grid-cols-4 lg:grid-cols-6"),children:u.map(e=>(0,t.jsx)(n,{...e},e.href))})]})})]}),e&&(0,t.jsx)("div",{className:"fixed inset-0 z-30",onClick:()=>a(null)}),(0,t.jsx)(h,{open:m,onClose:()=>x(!1)})]})}])},16370,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(26732),a=e.i(18566),o=e.i(22016),l=e.i(49838);let i=[{label:"Create a Quotation",href:"/dashboard/create-quotation",icon:(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})})},{label:"Quotations",href:"/dashboard/quotations",badge:"quotes",icon:(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})})},{label:"Sample & Measure",href:"/dashboard/sample-requests",badge:"measure",icon:(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25z"})})},{label:"Contact Enquiries",href:"/dashboard/contact-enquiries",badge:"contact",icon:(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"})})},{label:"Sent Emails",href:"/dashboard/sent-emails",icon:(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25H4.5a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5H4.5a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"})})}];function n({onClose:e}){let c=(0,a.usePathname)(),{data:d}
1=(0,r.useSession)(),[h,m]=(0,s.useState)(!1),[x,u]=(0,s.useState)({measure:0,contact:0,quotes:0});(0,s.useEffect)(()=>{try{let e=localStorage.getItem("floorwise_quote_draft");if(e){let t=JSON.parse(e);m(Array.isArray(t.rooms)&&t.rooms.length>0)}else m(!1)}catch{}},[c]),(0,s.useEffect)(()=>{fetch("/api/dashboard/unread-counts").then(e=>e.ok?e.json():null).then(e=>{e&&u({measure:e.measure??0,contact:e.contact??0,quotes:e.quotes??0})}).catch(()=>{})},[c]);let g=d?.user?.name?d.user.name.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase():"?";return(0,t.jsxs)("div",{className:"flex h-full flex-col bg-slate-900 text-white",children:[(0,t.jsxs)("div",{className:"flex h-16 items-center justify-between px-5 border-b border-slate-700/60 bg-white shrink-0",children:[(0,t.jsx)("img",{src:"/floorwise_header.svg",alt:"Floorwise",className:"h-7 w-auto object-contain"}),e&&(0,t.jsx)("button",{onClick:e,className:"p-1 text-gray-400 hover:text-gray-700 transition-colors lg:hidden",children:(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsxs)("nav",{className:"flex-1 px-3 py-4 space-y-0.5 overflow-y-auto",children:[i.map(s=>{let r=c.startsWith(s.href),a="/dashboard/create-quotation"===s.href&&h?"Resume Quotation":s.label,i="measure"===s.badge?x.measure:"contact"===s.badge?x.contact:"quotes"===s.badge?x.quotes:0,n=r?0:i;return(0,t.jsxs)(o.default,{href:s.href,onClick:e,className:(0,l.cn)("flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors",r?"bg-[#e85c2b] text-white":"text-slate-300 hover:bg-slate-800 hover:text-white"),children:[s.icon,(0,t.jsx)("span",{className:"flex-1",children:a}),n>0&&(0,t.jsx)("span",{className:"inline-flex items-center justify-center h-5 min-w-[1.25rem] px-1.5 rounded-full bg-[#e85c2b] text-white text-[11px] font-bold",children:n})]},s.href)}),(0,t.jsx)("div",{className:"my-2 mx-2 border-t border-slate-700/60"}),(0,t.jsxs)(o.default,{href:"/dashboard/guide",onClick:e,className:(0,l.cn)("flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors",c.startsWith("/dashboard/guide")?"bg-[#e85c2b] text-white":"text-slate-300 hover:bg-slate-800 hover:text-white"),children:[(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"})}),(0,t.jsx)("span",{className:"flex-1",children:"Guide"})]})]}),(0,t.jsxs)("div",{className:"border-t border-slate-700 px-4 py-4 space-y-3 shrink-0",children:[d?.user&&(0,t.jsxs)("div",{className:"flex items-center gap-3 px-1",children:[(0,t.jsx)("div",{className:"h-8 w-8 rounded-full bg-[#e85c2b] flex items-center justify-center text-white text-xs font-bold shrink-0",children:g}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-slate-200 truncate",children:d.user.name}),(0,t.jsx)("p",{className:"text-[10px] text-slate-400 truncate",children:d.user.email})]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(o.default,{href:"/",className:"flex-1 flex items-center justify-center gap-1.5 text-xs text-slate-400 hover:text-white bg-slate-800 hover:bg-slate-700 rounded-lg px-3 py-2 transition-colors",children:[(0,t.jsx)("svg",{className:"h-3.5 w-3.5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"})}),"Site"]}),(0,t.jsxs)("button",{onClick:()=>(0,r.signOut)({callbackUrl:"/login"}),className:"flex-1 flex items-center justify-center gap-1.5 text-xs text-red-400 hover:text-white bg-slate-800 hover:bg-red-600 rounded-lg px-3 py-2 transition-colors",children:[(0,t.jsx)("svg",{className:"h-3.5 w-3.5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})}),"Logout"]})]})]})]})}function c({mobileOpen:e,onMobileClose:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden lg:flex w-64 shrink-0 h-full flex-col",children:(0,t.jsx)(n,{})}),(0,t.jsx)("div",{className:(0,l.cn)("fixed inset-0 z-40 bg-black/50 transition-opacity duration-300 lg:hidden",e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:s}),(0,t.jsx)("div",{className:(0,l.cn)("fixed inset-y-0 left-0 z-50 w-72 max-w-[85vw] transition-transform duration-300 lg:hidden",e?"translate-x-0":"-translate-x-full"),children:(0,t.jsx)(n,{onClose:s})})]})}var d=e.i(3265);e.s(["default",0,function({children:e}
1){let[l,i]=(0,s.useState)(!1),{data:n,status:h}=(0,r.useSession)(),m=(0,a.useRouter)(),x=(0,a.usePathname)(),[u,g]=(0,s.useState)(()=>"1"===sessionStorage.getItem("fw_auth"));return((0,s.useEffect)(()=>{"authenticated"===h?(sessionStorage.setItem("fw_auth","1"),g(!0)):"unauthenticated"===h&&(sessionStorage.removeItem("fw_auth"),g(!1))},[h]),(0,s.useEffect)(()=>{if("loading"===h)return;let e=n?.user?.role,t=n?.user?.status;"ADMIN"===e?m.replace("/admin"):"INSTALLER"===e?m.replace("/installer"):"SUSPENDED"===t?m.replace("/pending-approval"):"PENDING"!==t||x.startsWith("/dashboard/create-quotation")||x.startsWith("/dashboard/guide")||m.replace("/pending-approval")},[n,h,m,x]),"unauthenticated"===h)?(0,t.jsxs)("div",{className:"min-h-screen bg-gray-50 flex flex-col",style:{colorScheme:"light"},children:[(0,t.jsx)(d.Navbar,{}),(0,t.jsxs)("div",{className:"bg-red-600 px-4 sm:px-6 py-2.5 flex items-center gap-2.5",children:[(0,t.jsx)("svg",{className:"h-4 w-4 text-white shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})}),(0,t.jsxs)("p",{className:"text-xs text-white",children:[(0,t.jsx)("span",{className:"font-bold",children:"Demo mode â not saved."})," ","Quotes will not be saved until you"," ",(0,t.jsx)(o.default,{href:"/register",className:"font-bold underline hover:text-red-100",children:"create an account"})," ","or"," ",(0,t.jsx)(o.default,{href:"/login",className:"font-bold underline hover:text-red-100",children:"sign in"}),"."]})]}),(0,t.jsx)("main",{className:"flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8",children:e})]}):("loading"!==h||u)&&n?.user?.role!=="ADMIN"&&n?.user?.role!=="INSTALLER"?(0,t.jsxs)("div",{className:"flex h-screen overflow-hidden bg-gray-50",style:{colorScheme:"light"},children:[(0,t.jsx)(c,{mobileOpen:l,onMobileClose:()=>i(!1)}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden min-w-0",children:[(0,t.jsxs)("header",{className:"flex lg:hidden h-14 items-center gap-3 border-b border-gray-200 bg-white px-4 shrink-0",children:[(0,t.jsx)("button",{onClick:()=>i(!0),className:"p-1.5 text-gray-600 hover:text-gray-900 transition-colors","aria-label":"Open menu",children:(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,t.jsx)("img",{src:"/floorwise_header.svg",alt:"Floorwise",className:"h-6 w-auto object-contain"})]}),(0,t.jsx)("main",{className:"flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8",children:e})]})]}):(0,t.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",style:{colorScheme:"light"},children:(0,t.jsxs)("svg",{className:"h-7 w-7 animate-spin text-[#e85c2b]",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})})}],16370)}]);
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.