import{a3 as C,cn as V}from"./index-BZGh_npj.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,a5 as g,a6 as x,aN as w}from"./vendor-D0AQuxPe.js";import{_ as E}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-Cs99TA-_.js";const y=f({__name:"link-default",props:{item:{}},setup(u){return(o,r)=>(t(),s(E,{"format-text-function":p(M.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 _=$(()=>r.value?.children?r.value?.children.filter(l):[]);return(i,N)=>{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"])):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,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{P as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-Dk5knG-v.js.map
