import{C as w}from"./Container-D5KFPVjs.js";import{aw as z,bL as M,J as S,i as B,aN as o,a3 as N,aG as u,ay as r,aE as e,o as a,aD as T,ax as f,aF as _,ag as C,aQ as D,aC as E,aH as v,aK as h,bf as l,aL as c,bQ as k,az as F,aJ as d,bC as x,aT as J,aB as y,_ as Q}from"./index-Dj6UKNsX.js";import"./index-kQIztB-E.js";const A=z({__name:"SystemConfig",setup(G){const m=E(),{t:i}=M(),p=S([]),V=[{domain:"logging",name:"settings.system_logging",description:"settings.system_logging_description",icon:"mdi-text-box-search",route:"/settings/serverlogs"}],I=B(()=>[...p.value].sort((t,n)=>o.providerManifests[t.domain].name.localeCompare(o.providerManifests[n.domain].name))),b=t=>{const n=i(`settings.core_module.${t.domain}.name`);return n!==`settings.core_module.${t.domain}.name`?n:o.providerManifests[t.domain].name},$=t=>{const n=i(`settings.core_module.${t.domain}.description`);return n!==`settings.core_module.${t.domain}.description`?n:o.providerManifests[t.domain].description},g=function(t){t.route?m.push(t.route):m.push(`/settings/editcore/${t.domain}`)};return N(async()=>{p.value=await o.getCoreConfigs()}),(t,n)=>(r(),u(w,{variant:"comfortable",class:"settings-overview"},{default:e(()=>[a(D,{class:"settings-main-card"},{default:e(()=>[a(T,{class:"settings-list"},{default:e(()=>[(r(!0),f(C,null,_(I.value,s=>(r(),u(v,{key:s.domain,ripple:!0,class:"settings-list-item",onClick:L=>g(s)},{prepend:e(()=>[a(x,{color:"blue",size:"48"},{default:e(()=>[a(J,{domain:s.domain,size:24,color:"white"},null,8,["domain"])]),_:2},1024)]),append:e(()=>[s.last_error?(r(),u(d,{key:0,color:"red",icon:"mdi-alert-circle",class:"mr-2",title:s.last_error},null,8,["title"])):F("",!0),a(d,{icon:"mdi-chevron-right"})]),default:e(()=>[a(h,{class:"text-h6"},{default:e(()=>[l(c(b(s)),1)]),_:2},1024),a(k,null,{default:e(()=>[l(c($(s)),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),(r(),f(C,null,_(V,s=>a(v,{key:s.domain,ripple:!0,class:"settings-list-item",onClick:L=>g(s)},{prepend:e(()=>[a(x,{color:"purple",size:"48"},{default:e(()=>[a(d,{icon:s.icon,size:"24",color:"white"},null,8,["icon"])]),_:2},1024)]),append:e(()=>[a(d,{icon:"mdi-chevron-right"})]),default:e(()=>[a(h,{class:"text-h6"},{default:e(()=>[l(c(y(i)(s.name)),1)]),_:2},1024),a(k,null,{default:e(()=>[l(c(y(i)(s.description)),1)]),_:2},1024)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1})]),_:1}))}}),j=Q(A,[["__scopeId","data-v-fe538fe8"]]);export{j as default};
