import{v as M,f as R,G as S,L,e as P,k as j,an as y,r as n,o as r,m as f,w as o,a as t,b as i,l as g,n as N,c as O,O as $,N as C}from"./main-B9dpPbRR.js";import{B as E,a as G}from"./BaseListItem-XB18biZ-.js";const H={class:"w-full mb-6 select-wrapper xl:hidden"},U={class:"flex"},A={class:"hidden mt-1 xl:block min-w-[240px]"},F={class:"w-full overflow-hidden"},D={__name:"SettingsIndex",setup(T){const{t:B}=M.useI18n();let a=R({});const u=S(),c=L(),d=P(),m=j(()=>u.settingMenu.map(e=>Object.assign({},e,{title:B(e.title)})));y(()=>{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"),k=n("BasePageHeader"),w=n("BaseMultiselect"),V=n("BaseIcon"),x=n("RouterView"),I=n("BasePage");return r(),f(I,null,{default:o(()=>[t(k,{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",H,[t(w,{modelValue:g(a),"onUpdate:modelValue":[l[0]||(l[0]=s=>N(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",U,[i("div",A,[t(G,null,{default:o(()=>[(r(!0),O(C,null,$(g(u).settingMenu,(s,_)=>(r(),f(E,{key:_,title:e.$t(s.title),to:s.link,active:v(s.link),index:_,class:"py-3"},{icon:o(()=>[t(V,{name:s.icon},null,8,["name"])]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",F,[t(x)])])]),_:1})}}};export{D as default};
