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