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,st as u,vt as d,y as f,z as p}from"./vue.runtime.esm-bundler-DAWRyTnP.js";import{a as m,i as h}from"./vue-router-Bna4o8ws.js";import{t as g}from"./global-BGJPTjg4.js";import{n as _}from"./vue-i18n-C4HYJWrq.js";import{n as v,t as y}from"./BaseListItem-B3eIMs2-.js";var b={class:`w-full mb-6 select-wrapper xl:hidden`},x={class:`flex`},S={class:`hidden mt-1 xl:block min-w-[240px]`},C={class:`w-full overflow-hidden`},w={__name:`SettingsIndex`,setup(w){let{t:T}=_(),E=s({}),D=g(),O=h(),k=m(),A=l(()=>D.settingMenu.map(e=>Object.assign({},e,{title:T(e.title)})));r(()=>{O.path===`/admin/settings`&&k.push(`/admin/settings/account-settings`);let e=A.value.find(e=>e.link===O.path);E.value=e});function j(e){return O.path.indexOf(e)>-1}function M(e){return k.push(e.link)}return(r,s)=>{let l=n(`BaseBreadcrumbItem`),m=n(`BaseBreadcrumb`),h=n(`BasePageHeader`),g=n(`BaseMultiselect`),_=n(`BaseIcon`),w=n(`RouterView`),T=n(`BasePage`);return p(),a(T,null,{default:e(()=>[t(h,{title:r.$t(`settings.setting`,1),class:`mb-6`},{default:e(()=>[t(m,null,{default:e(()=>[t(l,{title:r.$t(`general.home`),to:`/admin/dashboard`},null,8,[`title`]),t(l,{title:r.$t(`settings.setting`,2),to:`/admin/settings/account-settings`,active:``},null,8,[`title`])]),_:1})]),_:1},8,[`title`]),c(`div`,b,[t(g,{modelValue:d(E),"onUpdate:modelValue":[s[0]||=e=>u(E)?E.value=e:E=e,M],options:A.value,"can-deselect":!1,"value-prop":`title`,"track-by":`title`,label:`title`,object:``},null,8,[`modelValue`,`options`])]),c(`div`,x,[c(`div`,S,[t(v,null,{default:e(()=>[(p(!0),f(o,null,i(d(D).settingMenu,(n,i)=>(p(),a(y,{key:i,title:r.$t(n.title),to:n.link,active:j(n.link),index:i,class:`py-3`},{icon:e(()=>[t(_,{name:n.icon},null,8,[`name`])]),_:2},1032,[`title`,`to`,`active`,`index`]))),128))]),_:1})]),c(`div`,C,[t(w)])])]),_:1})}}};export{w as default};