import{u as v}from"./ViewFunctions-Bspdb8wp.js";import{P as h}from"./PageHeader-Bl5o5qxR.js";import{_ as g,g as w,o as p,c as _,a as e,F as b,k as y,q as l,t as u,z as $,H as S,e as k,b as d,r as m}from"./app-DWPMZhx6.js";/* empty css            */const x={props:{viewstate:{type:Object}},setup(i){const s=$(),c=S();w(()=>{Object.entries(i.viewstate.menubar).forEach(([r,n])=>n.pathname===s.path?n.active=!0:n.active=!1)});function a(r,n){Object.entries(i.viewstate.menubar).forEach(([t,o])=>o.active=!1),i.viewstate.menubar[n].active=!0,c.push({path:r.pathname})}return{settingsMenuSelect:a}}},C={class:"pf-c-menu"},M={class:"pf-c-menu__content"},O={class:"pf-c-menu__list"},V=["onClick"],j={class:"pf-c-menu__item-main"},z={class:"pf-c-menu__item-icon"},B={class:"pf-c-menu__item-text"},E={class:"pf-c-menu__item-description",style:{"white-space":"pre-wrap","word-break":"keep-all"}};function F(i,s,c,a,r,n){return p(),_("div",C,[e("div",M,[e("ul",O,[(p(!0),_(b,null,y(c.viewstate.menubar,(t,o)=>(p(),_("li",{class:"pf-c-menu__list-item",key:t.name},[e("button",{class:l(["pf-c-menu__item",t.active?"activeMenuItem":""]),type:"button",onClick:f=>a.settingsMenuSelect(t,o)},[e("span",j,[e("span",z,[e("i",{class:l(t.icon),"aria-hidden":"true"},null,2)]),e("span",B,u(t.name),1)]),e("span",E,[e("span",null,u(t.description),1)])],10,V)]))),128))])])])}const N=g(x,[["render",F]]),D={props:{},components:{PageHeader:h,SettingsMenu:N},setup(i){const s=k({pagename:"System Settings",pagedesc:"Manage system settings and configuration",menubar:{0:{name:"System Overview",pathname:"/settings/overview",icon:"fas fa-fw fa-search",description:"View system information and statistics",active:!1},1:{name:"System Settings",pathname:"/settings/system",icon:"fas fa-fw fa-cogs",description:"Configure system banner, email and timezone settings",active:!1},2:{name:"Security",pathname:"/settings/security",icon:"fas fa-fw fa-shield-alt",description:"View security settings",active:!1},3:{name:"About",pathname:"/settings/about",icon:"pf pf-icon-help",description:"rConfig application information and support",active:!1}}}),{isLoading:c}=v(s,s.modelName,s.modelObject);return{viewstate:s,isLoading:c}}},H={class:"pf-c-page__main",tabindex:"-1"},L=e("div",{class:"pf-c-divider",role:"separator"},null,-1),P={class:"pf-c-page__main-section pf-m-no-padding"},R={class:"pf-c-drawer__main"},q={class:"pf-c-drawer__content pf-m-no-background"},A={class:"pf-c-drawer__body pf-m-padding"},I={class:"pf-l-grid pf-m-gutter"},G={class:"pf-l-grid__item pf-m-3-col"},J={class:"pf-l-grid__item pf-m-9-col"};function K(i,s,c,a,r,n){const t=m("page-header"),o=m("settings-menu"),f=m("router-view");return p(),_("main",H,[d(t,{pagename:a.viewstate.pagename,desc:a.viewstate.pagedesc},null,8,["pagename","desc"]),L,e("section",P,[e("div",{class:l(["pf-c-drawer",{"pf-m-expanded":a.viewstate.openDrawerState}])},[e("div",R,[e("div",q,[e("div",A,[e("div",I,[e("div",G,[d(o,{viewstate:a.viewstate},null,8,["viewstate"])]),e("div",J,[d(f)])])])])])],2)])])}const X=g(D,[["render",K]]);export{X as default};
