import{B as h,a as v}from"./BaseListItem-DphfbcQF.js";import{v as j,j as B,e as b,I as H,bp as I,bq as N,an as q,r as c,o as s,K as i,w as o,a as n,b as a,c as w,Q as k,a4 as y,P as x}from"./main-DYvSVgaj.js";import{u as A}from"./global-k08fizIi.js";import"./auth-CpllBiH5.js";const D={class:"w-full mb-6 select-wrapper xl:hidden"},F={class:"pb-3 lg:col-span-3"},G={class:"space-y-1"},K={class:"flex"},O={class:"hidden mt-1 xl:block min-w-[240px]"},Q={class:"w-full overflow-hidden"},W={__name:"SettingsIndex",setup(U){const{t:p}=j.useI18n(),{useRoute:S,useRouter:$}=window.VueRouter,d=S(),P=$(),r=A(),_=B(()=>r.companySlug);let R=b({});b();const u=H([{link:`/${r.companySlug}/customer/settings/customer-profile`,title:p("settings.account_settings.account_settings"),icon:I},{link:`/${r.companySlug}/customer/settings/address-info`,title:p("settings.menu_title.address_information"),icon:N}]);q(()=>{d.path===`/${r.companySlug}/customer/settings`&&P.push({name:"customer.profile"});const t=u.find(g=>g.link===d.path);R.value={...t}}),B(()=>u);function m(t){return d.path.indexOf(t)>-1}return(t,g)=>{const f=c("BaseBreadcrumbItem"),V=c("BaseBreadcrumb"),C=c("BasePageHeader"),E=c("RouterView"),L=c("BasePage");return s(),i(L,null,{default:o(()=>[n(C,{title:t.$t("settings.setting",2),class:"pb-6"},{default:o(()=>[n(V,null,{default:o(()=>[n(f,{title:t.$t("general.home"),to:`/${_.value}/customer/dashboard`},null,8,["title","to"]),n(f,{title:t.$t("settings.setting",2),to:`/${_.value}/customer/settings/customer-profile`,active:""},null,8,["title","to"])]),_:1})]),_:1},8,["title"]),a("div",D,[a("aside",F,[a("nav",G,[n(v,null,{default:o(()=>[(s(!0),w(x,null,k(u,(e,l)=>(s(),i(h,{key:l,title:e.title,to:e.link,active:m(e.link),index:l,class:"py-3"},{icon:o(()=>[(s(),i(y(e.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})])])]),a("div",K,[a("div",O,[n(v,null,{default:o(()=>[(s(!0),w(x,null,k(u,(e,l)=>(s(),i(h,{key:l,title:e.title,to:e.link,active:m(e.link),index:l,class:"py-3"},{icon:o(()=>[(s(),i(y(e.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),a("div",Q,[n(E)])])]),_:1})}}};export{W as default};
