import{Q as x,bd as b,be as M}from"./index-CRze-aDK.js";import{C as v,K as a,E as e,u as s,l as w,q as I,N as _,D as h,Q as d,a3 as N,O as r,F as y,J as k,M as L,aL as z}from"./vendor-BGtMsOoo.js";import{_ as A}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-BXhNrOOe.js";import{_ as B}from"./link-lists.vue_vue_type_script_setup_true_lang-DpuWsZWw.js";import{_ as D}from"./link-orders.vue_vue_type_script_setup_true_lang-DZc70qZd.js";const V=v({__name:"link-default",props:{item:{}},setup(C){return(n,c)=>(e(),a(A,{"format-text-function":s(w.capitalize),item:n.item},null,8,["format-text-function","item"]))}}),E={class:"space-y-6"},S=v({__name:"account-navigation",setup(C){const{isCorporateMember:n}=x(),{desktopAccountMenuItems:c,desktopCorporateMenuItems:p}=b(),{customLinkComponents:i,registerCustomLinkComponent:m}=M();m({id:"orders",component:D}),m({id:"lists",component:B});function u(t){return!(t.id==="addresses"&&n.value)}const $=I(()=>{var t,f;return(t=c.value)!=null&&t.children?(f=c.value)==null?void 0:f.children.filter(u):[]});return(t,f)=>{const g=_("VcWidget");return e(),h("div",E,[d(g,{title:t.$t("shared.account.navigation.main_title"),size:"sm"},{default:r(()=>[(e(!0),h(y,null,k($.value,o=>(e(),a(L(o.id&&s(i)[o.id]||V),{key:o.id,item:o},null,8,["item"]))),128))]),_:1},8,["title"]),s(n)?(e(),a(g,{key:0,title:t.$t("shared.account.navigation.corporate_title"),size:"sm"},{default:r(()=>{var o;return[(e(!0),h(y,null,k((o=s(p))==null?void 0:o.children,l=>(e(),a(L(l.id&&s(i)[l.id]||V),{key:l.id,item:l},null,8,["item"]))),128))]}),_:1},8,["title"])):N("",!0)])}}}),K=v({__name:"account-shell",setup(C){return(n,c)=>{const p=_("router-view"),i=_("VcLayout"),m=_("VcContainer");return e(),a(m,null,{default:r(()=>{var u;return[d(i,null,z({default:r(()=>[d(p,{class:"relative flex flex-col gap-y-5"})]),_:2},[(u=n.$route.meta)!=null&&u.hideLeftSidebar?void 0:{name:"sidebar",fn:r(()=>[d(S,{class:"max-md:hidden"})]),key:"0"}]),1024)]}),_:1})}}});export{K as _};
//# sourceMappingURL=account-shell.vue_vue_type_script_setup_true_lang-CnelwPvD.js.map
