1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./rWd48Ryu.js","./DlAUqK2U.js","./yOJj5uNE.js"])))=>i.map(i=>d[i]); 2import{f as P,r as k,s as T,m as B,v as V,o as n,c as a,a as t,t as m,j as f,b as o,w,n as h,F as A,l as L,z as M,k as D,h as j,I as F,C as O,_ as R}from"./yOJj5uNE.js";import{d as U,_ as G}from"./Cu1SbFGT.js";import{_ as W}from"./SNJcfoqu.js";import{_ as q}from"./CYwy5q5M.js";import I from"./DMzx58iQ.js";import J from"./HwnBYUaz.js";import{_ as K}from"./DlAUqK2U.js";import"./BZUBiNE_.js";import"./DN5B0QRB.js";import"./J9lKKJ93.js";import"./VSNg6JR7.js";import"./DJIia-oI.js";const Q={class:"w-full lg:px-0 px-5"},X={class:"flex items-center justify-between mb-4 lg:mb-8"},Y={class:"text-lg lg:text-2xl font-medium"},Z=t("p",null,"Setting",-1),ee={class:"mb-4 relative"},te={class:"flex items-center space-x-2.5 text-sm font-medium"},se={key:1,class:"p-2.5 bg-white shadow-[0px_0px_15.4px_rgba(0,0,0,0.1)] absolute w-full z-20 translate-y-0.5"},oe={class:"flex items-center space-x-2.5 text-sm"},ne={key:1,class:"lg:pl-5"},ce=t("p",null,"Logout",-1),re=P({__name:"Sidebar",setup(i){const r=k(!1),g=k("order_history"),x=T(),u=B(()=>x.path),{data:_,signOut:b}=V(),$=async()=>{try{await b({callbackUrl:"/"})}catch{console.log("Error logging out")}},v=s=>{r.value=!1,g.value=s},p=s=>u.value===s.href?!0:s.children&&s.children.length>0?s.children.some(c=>u.value===c.href):!1,C=B(()=>z.find(s=>s.href===u.value?!0:s.children&&s.children.length>0?s.children.some(c=>c.href===u.value):!1)),z=[{name:"order_history",href:"/account/orders",icon:"/icons/ic-account-order-history.svg",text:"Order History",children:[],show:!0},{name:"notifications",href:"/account/notifications",icon:"/icons/ic-account-notification.svg",text:"Notifications",children:[],show:!0},{name:"membership",href:"/account/membership",icon:"/icons/ic-account-membership.svg",text:"Membership",children:[],show:!0},{name:"gift_cards",href:"/account/gift-cards",icon:"/icons/ic-account-gift-card.svg",text:"Gift Cards",children:[],show:!0},{name:"wishlist",href:"/account/wishlist",icon:"/icons/ic-account-wishlist.svg",text:"Wishlist",children:[],show:!0},{name:"account-settings",href:"/account/profile",icon:"/icons/ic-account-settings.svg",text:"Account Settings",children:[{name:"profile",href:"/account/profile",icon:"/icons/ic-account-profile.svg",text:"Profile"},{name:"address-book",href:"/account/address-book",icon:"/icons/ic-account-address-book.svg",text:"Address Book"},{name:"change-password",href:"/account/change-password",icon:"/icons/ic-account-change-password.svg",text:"Change Password"}],show:!0}];return(s,c)=>{var N;const d=W,y=q,E=I;return n(),a("div",Q,[t("div",X,[t("h2",Y," Hello, "+m((N=f(_).data)==null?void 0:N.fullName),1),o(y,{to:"/account/profile",class:"flex lg:hidden items-center space-x-1 text-xs uppercase"},{default:w(()=>[Z,o(d,{src:"/icons/ic-account-settings.svg",alt:"ico",class:"size-4"})]),_:1})]),t("div",ee,[f(C)?(n(),a("div",{key:0,class:"flex lg:hidden items-center justify-between px-5 py-3 shadow-[0px_0px_15.4px_rgba(0,0,0,0.1)] relative z-10",onClick:c[0]||(c[0]=e=>r.value=!f(r))},[t("div",te,[o(d,{src:f(C).icon,alt:"ico",class:"size-6"},null,8,["src"]),t("p",null,m(f(C).text),1)]),t("div",null,[o(E,{name:"heroicons:chevron-down",class:"size-5"})])])):h("",!0),f(r)?(n(),a("div",se,[(n(),a(A,null,L(z,(e,S)=>o(y,{key:S,class:M(["w-full p-2.5 block",{"bg-gray-100 text-gray-500 cursor-default":p(e)}]),to:e.href,name:e.name,onClick:c[1]||(c[1]=l=>r.value=!1)},{default:w(()=>[t("div",oe,[o(d,{src:e.icon,alt:"ico",class:"size-6"},null,8,["src"]),t("p",null,m(e.text),1)])]),_:2},1032,["to","name","class"])),64))])):h("",!0)]),(n(),a(A,null,L(z,(e,S)=>t("div",{key:S,class:"hidden lg:block"},[e.show?(n(),D(y,{key:0,onClick:l=>v(e.name),class:M(["flex items-center space-x-2 py-3 px-4 rounded transition hover:bg-cstm-dark-8 group",{"bg-cstm-dark-8":p(e)}]),to:e.href,name:e.name},{default:w(()=>[o(d,{src:e.icon,alt:"ico",class:"size-6"},null,8,["src"]),t("p",null,m(e.text),1)]),_:2},1032,["onClick","class","to","name"])):h("",!0),e.children.length>0?(n(),a("div",ne,[(n(!0),a(A,null,L(e.children,(l,H)=>(n(),a("div",{key:H},[o(y,{onClick:_e=>v(l.name),to:l.href,name:l.name,class:M(["flex items-center space-x-2 py-3 px-4 roun
2ded transition hover:bg-cstm-dark-8 group",{"bg-cstm-dark-8":p(l)}])},{default:w(()=>[o(d,{src:l.icon,alt:"ico",class:"size-6"},null,8,["src"]),t("p",null,m(l.text),1)]),_:2},1032,["onClick","to","name","class"])]))),128))])):h("",!0)])),64)),t("div",{onClick:c[2]||(c[2]=e=>$()),class:"lg:flex hidden items-center space-x-2 py-3 px-4 cursor-pointer text-red-500"},[o(d,{src:"/icons/ic-account-logout.svg",alt:"ico",class:"size-6"}),ce])])}}}),ae=O(()=>R(()=>import("./rWd48Ryu.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(i=>i.default||i)),ie={async setup(){const i=k(!1),r=k(!1);function g(){i.value=!0}return j(()=>{const u=U()?5e3:2500,_=async()=>{setTimeout(g,u)};document.readyState==="complete"?_():window.addEventListener("load",_)}),{idleTrigger:i,loadDeferred:r,onHydrated:()=>{r.value=!0}}}},le={class:"max-w-[1376px] mx-auto lg:px-8 py-8 lg:py-16 flex lg:flex-row flex-col lg:min-h-auto min-h-[70vh]"},ue={class:"w-full lg:w-[260px] relative"},de={class:"lg:w-[calc(100%-260px)] lg:pl-8 w-full"};function fe(i,r,g,x,u,_){const b=G,$=re,v=J,p=ae;return n(),a("div",null,[o(b,{"with-category":!1,events:!1,"my-events":!1,raffle:!1}),t("div",le,[t("div",ue,[o($)]),t("div",de,[F(i.$slots,"default")])]),o(v),x.loadDeferred?(n(),D(p,{key:0})):h("",!0)])}const ze=K(ie,[["render",fe]]);export{ze 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.