(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56420,e=>{"use strict";var t=e.i(71645);let a=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim(),s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let r=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:s,strokeWidth:i,absoluteStrokeWidth:d,className:o="",children:h,iconNode:c,...n},x)=>{let{size:m=24,strokeWidth:u=2,absoluteStrokeWidth:p=!1,color:f="currentColor",className:y=""}=(0,t.useContext)(r)??{},g=d??p?24*Number(i??u)/Number(s??m):i??u;return(0,t.createElement)("svg",{ref:x,...l,width:s??m??l.width,height:s??m??l.height,stroke:e??f,strokeWidth:g,className:a("lucide",y,o),...!h&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(n)&&{"aria-hidden":"true"},...n},[...c.map(([e,a])=>(0,t.createElement)(e,a)),...Array.isArray(h)?h:[h]])});e.s(["default",0,(e,l)=>{let r=(0,t.forwardRef)(({className:r,...d},o)=>(0,t.createElement)(i,{ref:o,iconNode:l,className:a(`lucide-${s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...d}));return r.displayName=s(e),r}],56420)},63676,e=>{"use strict";let t=(0,e.i(56420).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],63676)},54338,e=>{"use strict";var t=e.i(171);e.s(["default",0,function(){return(0,t.useAuthContext)()}])},1279,e=>{"use strict";let t=(0,e.i(56420).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],1279)},68109,e=>{"use strict";let t=(0,e.i(56420).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["Heart",0,t],68109)},20865,e=>{"use strict";let t=(0,e.i(56420).default)("map-pin",[["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"}]]);e.s(["MapPin",0,t],20865)},23045,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(22016),l=e.i(18566),r=e.i(56420);let i=(0,r.default)("layout-dashboard",[["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"}]]);var d=e.i(68109),o=e.i(1279),h=e.i(20865);let c=(0,r.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),n=(0,r.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),x=(0,r.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var m=e.i(63676),u=e.i(54338);let p=[{key:"dashboard",label:"Dashboard",icon:(0,t.jsx)(i,{size:20}),href:"/dashboard"},{key:"profile",label:"Profile",icon:(0,t.jsx)(o.User,{size:20}),href:"/dashboard/profile"},{key:"wishlist",label:"Wishlist",icon:(0,t.jsx)(d.Heart,{size:20}),href:"/dashboard/wishlist"},{key:"addresses",label:"Addresses",icon:(0,t.jsx)(h.MapPin,{size:20}),href:"/dashboard/addresses"},{key:"change-password",label:"Change Password",icon:(0,t.jsx)(c,{size:20}),href:"/dashboard/change-password"}];e.s(["default",0,function({children:e}){var r;let i=(0,l.usePathname)(),{logout:d}=(0,u.default)(),o=(0,l.useRouter)(),[h,c]=(0,a.useState)("dashboard"),[f,y]=(0,a.useState)(!1),[g,b]=(0,a.useState)({name:"Abhijit Chatterjee",phone:"9942427247",email:"abhijit@example.com",avatar:"/images/user-2.jpg"});return(0,a.useEffect)(()=>{let e=localStorage.getItem("customer");e&&b(JSON.parse(e));let t=i.split("/").pop();t&&p.some(e=>e.key===t)?c(t):"/dashboard"===i&&c("dashboard")},[i]),(0,t.jsxs)("div",{className:"min-h-screen",children:[f&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40 md:hidden",onClick:()=>y(!1)}),(0,t.jsx)("div",{className:"container px-3 mx-auto py-6 md:py-10",children:(0,t.jsxs)("div",{className:"flex flex-wrap -mx-3 xl:-mx-4 2xl:-mx-6",children:[(0,t.jsx)("aside",{className:`
            2xl:w-3/12 xl:w-3/12 lg:w-3/12 md:w-5/12 sm:w-[320px] w-[280px]
            px-0 md:px-3 xl:px-4 2xl:px-6
            fixed md:static top-0 bottom-0 z-50 md:z-0
            transition-all duration-300 ease-in-out
            ${f?"left-0":"-left-full md:left-0"}
          `,children:(0,t.jsxs)("div",{className:"w-full h-full bg-white flex flex-col p-6 2xl:p-8 md:shadow-lg md:rounded-xl overflow-y-auto",children:[(0,t.jsx)("button",{className:"absolute top-4 right-4 md:hidden text-gray-500 hover:text-gray-700 p-2 rounded-full hover:bg-gray-100",onClick:()=>y(!1),children:(0,t.jsx)(m.X,{size:24})}),(0,t.jsxs)("div",{className:"flex gap-3 items-center mb-6",children:[(0,t.jsxs)("div",{className:"group relative rounded-full min-w-12 xl:min-w-16 2xl:min-w-20 h-12 xl:h-16 2xl:h-20 overflow-hidden bg-gray-200",children:[g?.avatar?(0,t.jsx)("img",{src:g?.avatar,alt:g?.name,className:"w-full h-full object-cover",onError:e=>{e.target.src="https://via.placeholder.com/80"}}):(0,t.jsx)("div",{className:"bg-primary w-full h-full flex items-center justify-center text-white",children:(r=g?.name)?r.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase():"U"}),(0,t.jsxs)("label",{className:"opacity-0 group-hover:opacity-100 absolute inset-0 flex items-center justify-center bg-black bg-opacity-50 text-white cursor-pointer transition duration-300",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"w-5 h-5",viewBox:"0 0 16 16",children:[(0,t.jsx)("path",{d:"M15 12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.172a3 3 0 0 0 2.12-.879l.83-.828A1 1 0 0 1 6.827 3h2.344a1 1 0 0 1 .707.293l.828.828A3 3 0 0 0 12.828 5H14a1 1 0 0 1 1 1z"}),(0,t.jsx)("path",{d:"M8 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7M3 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0"})]}),(0,t.jsx)("input",{type:"file",className:"hidden",accept:"image/*"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("h3",{className:"text-base xl:text-lg 2xl:text-xl font-bold truncate",children:g?.name}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:g?.phone})]})]}),(0,t.jsx)("ul",{className:"flex-1 space-y-2",children:p.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(s.default,{href:e.href,onClick:()=>{c(e.key),y(!1)},className:`flex items-center gap-3 px-4 py-2.5 font-semibold text-sm xl:text-base rounded-lg transition-all duration-300
                        ${h===e.key?"bg-primary text-white shadow-md":"text-gray-700 hover:bg-primary hover:text-white"}`,children:[e.icon,(0,t.jsx)("span",{children:e.label})]})},e.key))}),(0,t.jsx)("div",{className:"pt-4 border-t border-gray-100 mt-4",children:(0,t.jsxs)(s.default,{href:"/login",onClick:()=>{d(),o.refresh()},className:"flex items-center gap-3 px-4 py-2.5 font-semibold text-sm xl:text-base rounded-lg text-gray-700 hover:bg-primary hover:text-white transition-all duration-300",children:[(0,t.jsx)(n,{size:20}),(0,t.jsx)("span",{children:"Logout"})]})})]})}),(0,t.jsx)("main",{className:"2xl:w-9/12 xl:w-9/12 lg:w-9/12 md:w-7/12 w-full px-3 xl:px-4 2xl:px-6",children:(0,t.jsxs)("div",{className:"p-6 bg-white h-full 2xl:p-8 md:shadow-lg md:rounded-xl",children:[(0,t.jsxs)("div",{className:"pb-4 flex justify-between items-center md:hidden",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold",children:"Welcome Back 👋"}),(0,t.jsx)("button",{className:"bg-secondary text-white w-10 h-10 rounded-full flex items-center justify-center shadow-md",onClick:()=>y(!0),children:(0,t.jsx)(x,{size:24})})]}),e]})})]})})]})}],23045)}]);