import{a6 as k,cv as I}from"./index-CiAiYnez.js";import{F as V,_ as o,R as t,e as c,l as z,P as u,Q as r,X as a,W as x,a1 as n,T as p,a5 as f,a6 as h,m as w,aM as B}from"./vendor-D8NNcBCx.js";import{_ as E}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-CvqHmD8v.js";const v=V({__name:"link-default",props:{item:{}},setup(g){return(s,y)=>(t(),o(E,{"format-text-function":c(z.capitalize),item:g.item},null,8,["format-text-function","item"]))}}),L={class:"account-navigation"},N={class:"account-navigation__container"},P={class:"account-navigation__container"},b={class:"account-navigation__container"},S={class:"account-navigation__container"},U=V({__name:"account-navigation",setup(g){const{isCorporateMember:s}=k(),{desktopPurchasingMenuItems:y,desktopMarketingMenuItems:m,desktopUserMenuItems:l,desktopCorporateMenuItems:M}=I();function C(i){return!(i.id==="addresses"&&s.value)}const $=w(()=>l.value?.children?l.value.children.filter(C):[]);return(i,W)=>{const _=u("ExtensionPoint"),d=u("VcWidget");return t(),r("div",L,[a(d,{title:i.$t("shared.account.navigation.purchasing_title"),size:"sm"},{"default-container":n(()=>[p("div",N,[(t(!0),r(f,null,h(c(y)?.children,e=>(t(),o(_,{key:e.id,item:e,category:"accountMenu",name:e.id},{default:n(()=>[a(v,{item:e},null,8,["item"])]),_:2},1032,["item","name"]))),128))])]),_:1},8,["title"]),c(m)?.children?.length?(t(),o(d,{key:0,title:i.$t("shared.account.navigation.marketing_title"),size:"sm"},{"default-container":n(()=>[p("div",P,[(t(!0),r(f,null,h(c(m)?.children,e=>(t(),o(_,{key:e.id,item:e,category:"accountMenu",name:e.id},{default:n(()=>[a(v,{item:e},null,8,["item"])]),_:2},1032,["item","name"]))),128))])]),_:1},8,["title"])):x("",!0),c(s)?(t(),o(d,{key:1,title:i.$t("shared.account.navigation.corporate_title"),size:"sm"},{"default-container":n(()=>[p("div",b,[(t(!0),r(f,null,h(c(M)?.children,e=>(t(),o(_,{key:e.id,item:e,category:"accountMenu",name:e.id},{default:n(()=>[a(v,{item:e},null,8,["item"])]),_:2},1032,["item","name"]))),128))])]),_:1},8,["title"])):x("",!0),a(d,{title:i.$t("shared.account.navigation.user_title"),size:"sm"},{"default-container":n(()=>[p("div",S,[(t(!0),r(f,null,h($.value,e=>(t(),o(_,{key:e.id,item:e,category:"accountMenu",name:e.id},{default:n(()=>[a(v,{item:e},null,8,["item"])]),_:2},1032,["item","name"]))),128))])]),_:1},8,["title"])])}}}),R=V({__name:"account-shell",setup(g){return(s,y)=>{const m=u("router-view"),l=u("VcLayout"),M=u("VcContainer");return t(),o(M,null,{default:n(()=>[a(l,null,B({default:n(()=>[a(m,{class:"relative flex flex-col gap-y-5"})]),_:2},[s.$route.meta?.hideLeftSidebar?void 0:{name:"sidebar",fn:n(()=>[a(U,{class:"max-md:hidden"})]),key:"0"}]),1024)]),_:1})}}});export{R as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-rjH9n9Nu.js.map
