import{Q as x,aY as M,aZ as b}from"./index-Dqv5IkpS.js";import{K as v,P as s,M as e,b as a,l as w,B,S as _,L as h,V as d,a7 as I,T as r,N as y,O as V,R as k,aR as N}from"./vendor-bSWkQivH.js";import{_ as S}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-DTA7PgWI.js";import{_ as z}from"./link-lists.vue_vue_type_script_setup_true_lang-CzNrFwRN.js";import{_ as A}from"./link-orders.vue_vue_type_script_setup_true_lang-4lhCE05q.js";const L=v({__name:"link-default",props:{item:{}},setup(C){return(n,c)=>(e(),s(S,{"format-text-function":a(w.capitalize),item:n.item},null,8,["format-text-function","item"]))}}),D={class:"space-y-6"},E=v({__name:"account-navigation",setup(C){const{isCorporateMember:n}=x(),{desktopAccountMenuItems:c,desktopCorporateMenuItems:p}=M(),{customLinkComponents:i,registerCustomLinkComponent:m}=b();m({id:"orders",component:A}),m({id:"lists",component:z});function u(t){return!(t.id==="addresses"&&n.value)}const $=B(()=>{var t,f;return(t=c.value)!=null&&t.children?(f=c.value)==null?void 0:f.children.filter(u):[]});return(t,f)=>{const g=_("VcWidget");return e(),h("div",D,[d(g,{title:t.$t("shared.account.navigation.main_title"),size:"sm"},{default:r(()=>[(e(!0),h(y,null,V($.value,o=>(e(),s(k(o.id&&a(i)[o.id]||L),{key:o.id,item:o},null,8,["item"]))),128))]),_:1},8,["title"]),a(n)?(e(),s(g,{key:0,title:t.$t("shared.account.navigation.corporate_title"),size:"sm"},{default:r(()=>{var o;return[(e(!0),h(y,null,V((o=a(p))==null?void 0:o.children,l=>(e(),s(k(l.id&&a(i)[l.id]||L),{key:l.id,item:l},null,8,["item"]))),128))]}),_:1},8,["title"])):I("",!0)])}}}),P=v({__name:"account-shell",setup(C){return(n,c)=>{const p=_("router-view"),i=_("VcLayout"),m=_("VcContainer");return e(),s(m,null,{default:r(()=>{var u;return[d(i,null,N({default:r(()=>[d(p,{class:"relative flex flex-col gap-y-5"})]),_:2},[(u=n.$route.meta)!=null&&u.hideLeftSidebar?void 0:{name:"sidebar",fn:r(()=>[d(E,{class:"max-md:hidden"})]),key:"0"}]),1024)]}),_:1})}}});export{P as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-C1twTRTh.js.map
