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