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