import{a4 as C,bF as V}from"./index-BZco6cza.js";import{F as p,_ as s,R as t,e as d,l as M,m as $,P as r,Q as _,X as o,W as k,a1 as n,a6 as g,a7 as y,aU as b}from"./vendor-DJC-2VPc.js";import{_ as w}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-Y8N15Qbw.js";const x=p({__name:"link-default",props:{item:{}},setup(f){return(a,c)=>(t(),s(w,{"format-text-function":d(M.capitalize),item:a.item},null,8,["format-text-function","item"]))}}),E={class:"space-y-6"},I=p({__name:"account-navigation",setup(f){const{isCorporateMember:a}=C(),{desktopAccountMenuItems:c,desktopCorporateMenuItems:u}=V();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",E,[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)])}}}),N=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,b({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{N as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-CHmP6F9O.js.map
