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