import{G as e,U as t,V as n,Wt as r,bt as i,d as a,f as o,i as s,l as c,nt as l,p as u,qt as d,u as f,v as p,z as m}from"./runtime-core.esm-bundler.v79eHMSw.js";import{r as h}from"./vue-router.0AKJd9cX.js";import{a as g}from"./navigation.DSClhgoO.js";import{t as _}from"./ProPill.0OWcl6Bl.js";import{t as v}from"./_plugin-vue_export-helper.BDNMzG2s.js";var y={class:`smb2b-settings`},b={class:`smb2b-settings__sidebar`},x={class:`smb2b-settings__title`},S={class:`smb2b-settings__section-label`},C={class:`smb2b-settings__item-label`},w={class:`smb2b-settings__content`},T=v({__name:`SettingsLayout`,setup(v){let T=h(),E=c(()=>!!window.smb2bAdmin?.tier?.is_pro),D=c(()=>g.map(e=>({...e,items:e.items.filter(e=>!e.proOnly||E.value)})).filter(e=>e.items.length>0));return(c,h)=>{let g=t(`router-link`),v=t(`router-view`);return m(),u(`div`,y,[f(`aside`,b,[f(`h2`,x,d(c.$t(`Settings`)),1),(m(!0),u(s,null,n(D.value,t=>(m(),u(`div`,{key:t.label,class:`smb2b-settings__section`},[f(`span`,S,d(t.label),1),(m(!0),u(s,null,n(t.items,t=>(m(),a(g,{key:t.path,to:t.path,class:r([`smb2b-settings__item`,{"is-active":i(T).path===t.path}])},{default:l(()=>[(m(),a(e(t.icon),{size:17,"stroke-width":2})),f(`span`,C,d(t.label),1),t.pro&&!E.value?(m(),a(_,{key:0})):o(``,!0)]),_:2},1032,[`to`,`class`]))),128))]))),128))]),f(`div`,w,[p(v)])])}}},[[`__scopeId`,`data-v-210c4d6c`]]);export{T as default};