import{a3 as C,ck as V}from"./index-D8gWJXbr.js";import{F as f,_ as s,R as t,e as p,l as k,m as M,P as c,Q as d,X as a,W as $,a1 as n,a6 as g,a7 as x,aW as w}from"./vendor-3e8OGtgt.js";import{_ as E}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-BoUOBAEZ.js";const y=f({__name:"link-default",props:{item:{}},setup(u){return(o,r)=>(t(),s(E,{"format-text-function":p(k.capitalize),item:u.item},null,8,["format-text-function","item"]))}}),I={class:"space-y-6"},L=f({__name:"account-navigation",setup(u){const{isCorporateMember:o}=C(),{desktopAccountMenuItems:r,desktopCorporateMenuItems:m}=V();function l(i){return!(i.id==="addresses"&&o.value)}const _=M(()=>r.value?.children?r.value?.children.filter(l):[]);return(i,W)=>{const h=c("ExtensionPoint"),v=c("VcWidget");return t(),d("div",I,[a(v,{title:i.$t("shared.account.navigation.main_title"),size:"sm"},{default:n(()=>[(t(!0),d(g,null,x(_.value,e=>(t(),s(h,{key:e.id,item:e,category:"accountMenu",name:e.id},{default:n(()=>[a(y,{item:e},null,8,["item"])]),_:2},1032,["item","name"]))),128))]),_:1},8,["title"]),p(o)?(t(),s(v,{key:0,title:i.$t("shared.account.navigation.corporate_title"),size:"sm"},{default:n(()=>[(t(!0),d(g,null,x(p(m)?.children,e=>(t(),s(h,{key:e.id,item:e,category:"accountMenu",name:e.id},{default:n(()=>[a(y,{item:e},null,8,["item"])]),_:2},1032,["item","name"]))),128))]),_:1},8,["title"])):$("",!0)])}}}),N=f({__name:"account-shell",setup(u){return(o,r)=>{const m=c("router-view"),l=c("VcLayout"),_=c("VcContainer");return t(),s(_,null,{default:n(()=>[a(l,null,w({default:n(()=>[a(m,{class:"relative flex flex-col gap-y-5"})]),_:2},[o.$route.meta?.hideLeftSidebar?void 0:{name:"sidebar",fn:n(()=>[a(L,{class:"max-md:hidden"})]),key:"0"}]),1024)]),_:1})}}});export{N as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-D9JKX28O.js.map
