import{a as _,b as v}from"./index-d0O549A6.js";import{a as g,b}from"./index-DuYKT2fG.js";import{s as h}from"./index-sajUJTT_.js";import{p as x,y as r,ag as y,f as w,o as N,c as S,h as t,w as s,a as i,F as k,t as C,H as l}from"./index-fLiXr-6R.js";import"./index-BVo32YJZ.js";const I={class:"card justify-center"},V={class:"flex justify-end"},M={class:"font-semibold text-primary underline underline-offset-2 hover:decoration-2"},T={class:"relative flex h-3 w-3"},A=x({__name:"ServicesIndex",setup(D){const n=r({global:{value:null,matchMode:y.CONTAINS}}),c=r([{name:"telegraf",description:"telegraf service",active_state:!0,file_state:!0},{name:"mbusd",description:"mbusd service",active_state:!1,file_state:!0},{name:"influxdb",description:"influxdb service",active_state:!0,file_state:!0},{name:"mosquitto",description:"mosquitto service",active_state:!1,file_state:!0},{name:"snmpd",description:"snmpd service",active_state:!0,file_state:!0},{name:"nginx",description:"Nginx service",active_state:!1,file_state:!0},{name:"cron",description:"Regular background program processing daemon",active_state:!0,file_state:!0},{name:"NetworkManager",description:"Network Manager",active_state:!0,file_state:!0},{name:"systemd-timesyncd",description:"Network Time Synchronization",active_state:!0,file_state:!0}]);return(F,a)=>{const u=g,d=h,m=b,p=w("router-link"),o=_,f=v;return N(),S("div",I,[t(f,{filters:n.value,"onUpdate:filters":a[1]||(a[1]=e=>n.value=e),value:c.value,tableStyle:"min-width: 50rem",stripedRows:"",paginator:"",rows:5,rowsPerPageOptions:[5,10,20,50]},{header:s(()=>[i("div",V,[t(m,null,{default:s(()=>[t(u,null,{default:s(()=>a[2]||(a[2]=[i("i",{class:"pi pi-search"},null,-1)])),_:1}),t(d,{modelValue:n.value.global.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value.global.value=e),placeholder:"Keyword Search"},null,8,["modelValue"])]),_:1})])]),empty:s(()=>a[3]||(a[3]=[k(" No customers found. ")])),default:s(()=>[t(o,{field:"name",header:"Name"},{body:s(({data:e})=>[t(p,{to:{name:"ServiceDetails",params:{serviceName:e.name}}},{default:s(()=>[i("span",M,C(e.name),1)]),_:2},1032,["to"])]),_:1}),t(o,{field:"description",header:"Description"}),t(o,{field:"active_state",header:"Active State"},{body:s(({data:e})=>[i("span",T,[i("span",{class:l(["absolute inline-flex h-full w-full rounded-full opacity-75",{"animate-ping":e.active_state,"bg-rose-400":!e.active_state,"bg-emerald-400":e.active_state}])},null,2),i("span",{class:l(["relative inline-flex rounded-full h-3 w-3",{"bg-rose-500":!e.active_state,"bg-emerald-500":e.active_state}])},null,2)])]),_:1}),t(o,{field:"file_state",header:"File State"})]),_:1},8,["filters","value"])])}}});export{A as default};
