import{a4 as C,bG as V}from"./index-DtNTt4xe.js";import{F as f,_ as s,R as t,e as p,l as M,m as $,P as c,Q as d,X as a,W as k,a1 as n,a6 as g,a7 as x,aU as b}from"./vendor-d3O24IFR.js";import{_ as w}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-D5Vpy2rM.js";const y=f({__name:"link-default",props:{item:{}},setup(u){return(o,r)=>(t(),s(w,{"format-text-function":p(M.capitalize),item:u.item},null,8,["format-text-function","item"]))}}),E={class:"space-y-6"},I=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 _=$(()=>r.value?.children?r.value?.children.filter(l):[]);return(i,L)=>{const h=c("ExtensionPoint"),v=c("VcWidget");return t(),d("div",E,[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"])):k("",!0)])}}}),P=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,b({default:n(()=>[a(m,{class:"relative flex flex-col gap-y-5"})]),_:2},[o.$route.meta?.hideLeftSidebar?void 0:{name:"sidebar",fn:n(()=>[a(I,{class:"max-md:hidden"})]),key:"0"}]),1024)]),_:1})}}});export{P as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-DlfybRHI.js.map
