import{v as R,e as M,H as S,j,ao as P,K as f,w as o,r as n,N as y,n as E,o as r,a as t,b as i,p as H,l as g,c as L,Q as N,R as $}from"./main-FAzQ_AST.js";import{B as C,a as O}from"./BaseListItem-Dig3e-pU.js";const U={class:"w-full mb-6 select-wrapper xl:hidden"},A={class:"flex"},F={class:"hidden mt-1 xl:block min-w-[240px]"},G={class:"w-full overflow-hidden"},q={__name:"SettingsIndex",setup(K){const{t:B}=R.useI18n();let a=M({});const u=S(),c=y(),d=E(),m=j(()=>u.settingMenu.map(e=>Object.assign({},e,{title:B(e.title)})));P(()=>{c.path==="/admin/settings"&&d.push("/admin/settings/account-settings");const e=m.value.find(l=>l.link===c.path);a.value=e});function v(e){return c.path.indexOf(e)>-1}function h(e){return d.push(e.link)}return(e,l)=>{const p=n("BaseBreadcrumbItem"),b=n("BaseBreadcrumb"),w=n("BasePageHeader"),k=n("BaseMultiselect"),x=n("BaseIcon"),V=n("RouterView"),I=n("BasePage");return r(),f(I,null,{default:o(()=>[t(w,{title:e.$t("settings.setting",1),class:"mb-6"},{default:o(()=>[t(b,null,{default:o(()=>[t(p,{title:e.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),t(p,{title:e.$t("settings.setting",2),to:"/admin/settings/account-settings",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),i("div",U,[t(k,{modelValue:g(a),"onUpdate:modelValue":[l[0]||(l[0]=s=>H(a)?a.value=s:a=s),h],options:m.value,"can-deselect":!1,"value-prop":"title","track-by":"title",label:"title",object:""},null,8,["modelValue","options"])]),i("div",A,[i("div",F,[t(C,null,{default:o(()=>[(r(!0),L(N,null,$(g(u).settingMenu,(s,_)=>(r(),f(O,{key:_,title:e.$t(s.title),to:s.link,active:v(s.link),index:_,class:"py-3"},{icon:o(()=>[t(x,{name:s.icon},null,8,["name"])]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",G,[t(V)])])]),_:1})}}};export{q as default};
