module.exports=[64831,a=>{"use strict";var b=a.i(72131);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var e={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 f=(0,b.createContext)({}),g=(0,b.forwardRef)(({color:a,size:d,strokeWidth:g,absoluteStrokeWidth:h,className:i="",children:j,iconNode:k,...l},m)=>{let{size:n=24,strokeWidth:o=2,absoluteStrokeWidth:p=!1,color:q="currentColor",className:r=""}=(0,b.useContext)(f)??{},s=h??p?24*Number(g??o)/Number(d??n):g??o;return(0,b.createElement)("svg",{ref:m,...e,width:d??n??e.width,height:d??n??e.height,stroke:a??q,strokeWidth:s,className:c("lucide",r,i),...!j&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(l)&&{"aria-hidden":"true"},...l},[...k.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(j)?j:[j]])});a.s(["default",0,(a,e)=>{let f=(0,b.forwardRef)(({className:f,...h},i)=>(0,b.createElement)(g,{ref:i,iconNode:e,className:c(`lucide-${d(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,f),...h}));return f.displayName=d(a),f}],64831)},74215,a=>{"use strict";let b=(0,a.i(64831).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",0,b],74215)},32636,a=>{"use strict";var b=a.i(35766);a.s(["default",0,function(){return(0,b.useAuthContext)()}])},44451,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["User",0,b],44451)},90195,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["Heart",0,b],90195)},54098,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["MapPin",0,b],54098)},28594,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(64831);let g=(0,f.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 h=a.i(90195),i=a.i(44451),j=a.i(54098);let k=(0,f.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"}]]),l=(0,f.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"}]]),m=(0,f.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var n=a.i(74215),o=a.i(32636);let p=[{key:"dashboard",label:"Dashboard",icon:(0,b.jsx)(g,{size:20}),href:"/dashboard"},{key:"profile",label:"Profile",icon:(0,b.jsx)(i.User,{size:20}),href:"/dashboard/profile"},{key:"wishlist",label:"Wishlist",icon:(0,b.jsx)(h.Heart,{size:20}),href:"/dashboard/wishlist"},{key:"addresses",label:"Addresses",icon:(0,b.jsx)(j.MapPin,{size:20}),href:"/dashboard/addresses"},{key:"change-password",label:"Change Password",icon:(0,b.jsx)(k,{size:20}),href:"/dashboard/change-password"}];a.s(["default",0,function({children:a}){var f;let g=(0,e.usePathname)(),{logout:h}=(0,o.default)(),i=(0,e.useRouter)(),[j,k]=(0,c.useState)("dashboard"),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)({name:"Abhijit Chatterjee",phone:"9942427247",email:"abhijit@example.com",avatar:"/images/user-2.jpg"});return(0,c.useEffect)(()=>{let a=localStorage.getItem("customer");a&&t(JSON.parse(a));let b=g.split("/").pop();b&&p.some(a=>a.key===b)?k(b):"/dashboard"===g&&k("dashboard")},[g]),(0,b.jsxs)("div",{className:"min-h-screen",children:[q&&(0,b.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40 md:hidden",onClick:()=>r(!1)}),(0,b.jsx)("div",{className:"container px-3 mx-auto py-6 md:py-10",children:(0,b.jsxs)("div",{className:"flex flex-wrap -mx-3 xl:-mx-4 2xl:-mx-6",children:[(0,b.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
            ${q?"left-0":"-left-full md:left-0"}
          `,children:(0,b.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,b.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:()=>r(!1),children:(0,b.jsx)(n.X,{size:24})}),(0,b.jsxs)("div",{className:"flex gap-3 items-center mb-6",children:[(0,b.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:[s?.avatar?(0,b.jsx)("img",{src:s?.avatar,alt:s?.name,className:"w-full h-full object-cover",onError:a=>{a.target.src="https://via.placeholder.com/80"}}):(0,b.jsx)("div",{className:"bg-primary w-full h-full flex items-center justify-center text-white",children:(f=s?.name)?f.split(" ").map(a=>a[0]).slice(0,2).join("").toUpperCase():"U"}),(0,b.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,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"w-5 h-5",viewBox:"0 0 16 16",children:[(0,b.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,b.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,b.jsx)("input",{type:"file",className:"hidden",accept:"image/*"})]})]}),(0,b.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,b.jsx)("h3",{className:"text-base xl:text-lg 2xl:text-xl font-bold truncate",children:s?.name}),(0,b.jsx)("p",{className:"text-sm text-gray-500",children:s?.phone})]})]}),(0,b.jsx)("ul",{className:"flex-1 space-y-2",children:p.map(a=>(0,b.jsx)("li",{children:(0,b.jsxs)(d.default,{href:a.href,onClick:()=>{k(a.key),r(!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
                        ${j===a.key?"bg-primary text-white shadow-md":"text-gray-700 hover:bg-primary hover:text-white"}`,children:[a.icon,(0,b.jsx)("span",{children:a.label})]})},a.key))}),(0,b.jsx)("div",{className:"pt-4 border-t border-gray-100 mt-4",children:(0,b.jsxs)(d.default,{href:"/login",onClick:()=>{h(),i.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,b.jsx)(l,{size:20}),(0,b.jsx)("span",{children:"Logout"})]})})]})}),(0,b.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,b.jsxs)("div",{className:"p-6 bg-white h-full 2xl:p-8 md:shadow-lg md:rounded-xl",children:[(0,b.jsxs)("div",{className:"pb-4 flex justify-between items-center md:hidden",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold",children:"Welcome Back 👋"}),(0,b.jsx)("button",{className:"bg-secondary text-white w-10 h-10 rounded-full flex items-center justify-center shadow-md",onClick:()=>r(!0),children:(0,b.jsx)(m,{size:24})})]}),a]})})]})})]})}],28594)}];

//# sourceMappingURL=_020zpaf._.js.map