import{E as e,H as t,Q as n,R as r,W as i,Z as a,_ as o,b as s,f as c,g as l,ut as u,v as d,w as f}from"./vue.runtime.esm-bundler-56z_v_HH.js";import{a as p,i as m}from"./vue-router-_izWfDzq.js";import{n as h}from"./vue-i18n-DhldrKy8.js";var g={class:`w-full mb-6 select-wrapper xl:hidden`},_={class:`flex gap-8`},v={class:`hidden mt-1 xl:block min-w-[240px] sticky top-20 self-start`},y={class:`w-full overflow-visible`},b=e({__name:`UserSettingsLayoutView`,setup(e){let{t:b}=h(),x=m(),S=p(),C=u(void 0),w=l(()=>[{title:b(`settings.account_settings.general`),link:`/admin/account-settings/general`,icon:`UserIcon`},{title:b(`settings.account_settings.profile_picture`),link:`/admin/account-settings/profile-photo`,icon:`PhotoIcon`},{title:b(`settings.account_settings.security`),link:`/admin/account-settings/security`,icon:`LockClosedIcon`}]);a(()=>{x.path===`/admin/account-settings`&&S.push(`/admin/account-settings/general`),C.value=w.value.find(e=>e.link===x.path)});function T(e){return x.path.indexOf(e)>-1}function E(e){S.push(e.link)}return(e,a)=>{let l=i(`BaseBreadcrumbItem`),u=i(`BaseBreadcrumb`),p=i(`BasePageHeader`),m=i(`BaseMultiselect`),h=i(`BaseIcon`),b=i(`BaseListItem`),x=i(`BaseList`),S=i(`RouterView`),D=i(`BasePage`);return r(),d(D,null,{default:n(()=>[f(p,{title:e.$t(`settings.account_settings.account_settings`),class:`mb-6`},{default:n(()=>[f(u,null,{default:n(()=>[f(l,{title:e.$t(`general.home`),to:`/admin/dashboard`},null,8,[`title`]),f(l,{title:e.$t(`settings.account_settings.account_settings`),to:`#`,active:``},null,8,[`title`])]),_:1})]),_:1},8,[`title`]),o(`div`,g,[f(m,{modelValue:C.value,"onUpdate:modelValue":[a[0]||=e=>C.value=e,E],options:w.value,"can-deselect":!1,"value-prop":`title`,"track-by":`title`,label:`title`,object:``},null,8,[`modelValue`,`options`])]),o(`div`,_,[o(`div`,v,[f(x,null,{default:n(()=>[(r(!0),s(c,null,t(w.value,(e,t)=>(r(),d(b,{key:t,title:e.title,to:e.link,active:T(e.link),index:t,class:`py-3`},{icon:n(()=>[f(h,{name:e.icon},null,8,[`name`])]),_:2},1032,[`title`,`to`,`active`,`index`]))),128))]),_:1})]),o(`div`,y,[f(S)])])]),_:1})}}});export{b as default};