import h from"./BasicLayout-9cd8c2f1.js";import v from"./MonitorStatusEntry-864782dd.js";import y from"./CollapseToggle-20fb6e15.js";import b from"./IconState-43ed03bd.js";import k from"./StatsFooter-b38d5951.js";import O from"./Divider-c2f33bab.js";import x from"./AlertList-4269d51b.js";import N from"./Footer-abe2469f.js";import w from"./CategorySkeleton-45cc94e7.js";import S from"./CategoryPlaceholder-9c75cae4.js";import{bL as T,i as r,o as n,c as L,w as a,b as s,e as B,a as o,n as i,t as l,f as C,g as m}from"./app-503ba199.js";import I from"./CategoryList-13a9930f.js";import{_ as E}from"./_plugin-vue_export-helper-c27b6911.js";import"./DefaultLayout-137177ed.js";import"./Banner-f4bf3ec7.js";import"./PrimaryButton-984bcebb.js";import"./Spinner-29b0a3df.js";import"./transition-40284e53.js";import"./env-b77982db.js";import"./NavbarHeader-e2e5a5cd.js";import"./ToggleMode-e2000a87.js";import"./DialogModal-4bccc366.js";import"./SubscriptionDialog-b1b243d1.js";import"./SecondaryButton-88de3e49.js";import"./Button-2cd26942.js";import"./Input-73905e83.js";import"./InputError-5f2fb9c3.js";import"./InputLabel-e6389ead.js";import"./InformationTooltip-8650801b.js";import"./StatsFooterSkeleton-25773643.js";import"./AlertEntry-ad86b1b5.js";import"./AlertSkeleton-b37466bc.js";import"./AlertPlaceholder-473800aa.js";import"./MonitorStatusEntrySkeleton-0dee688b.js";import"./CategoryItem-435b4b15.js";const F={components:{BasicLayout:h,CategoryList:I,CategoryPlaceholder:S,CategorySkeleton:w,LVKFooter:N,AlertList:x,Divider:O,StatsFooter:k,IconState:b,CollapseToggle:y,MonitorStatusEntry:v},data(){return{timerState:null,state:null}},created(){this.fetchState(),this.timerState=setInterval(this.fetchState,this.$page.props.lvk.data.monitor_refresh_interval*1e3)},unmounted(){this.timerState&&clearInterval(this.timerState)},methods:{fetchState(){T.get(route("api.state")).then(t=>this.state=t.data)}}},P={key:0,class:"mt-24 bar:mt-0 h-full bar:hidden space-y-6 text-center"},V={class:"h-4 w-4 flex justify-center mx-auto"},M={class:"relative"},A={class:"dark:text-gray-200 text-gray-900 outline-none font-semibold"},D={class:"flex flex-col max-w-6xl md:max-w-4xl mx-auto py-14 sm:px-6 lg:px-8 mb-0 sm:mb-20"},R={class:"mt-2.5 text-sm"},Y=o("div",{class:"mt-32 mb-32"},null,-1);function $(t,j,z,H,e,K){const p=r("category-list"),d=r("divider"),c=r("inertia-link"),_=r("alert-list"),f=r("l-v-k-footer"),u=r("stats-footer"),g=r("basic-layout");return n(),L(g,null,{footer:a(()=>[s(u,{state:e.state,class:"transition duration-500 ease-in-out"},null,8,["state"])]),default:a(()=>[e.state?(n(),B("div",P,[o("div",V,[o("div",M,[o("span",{class:i(["absolute inline-flex h-full w-full rounded-full",{"bg-green-400":e.state.data.state==="ONLINE","bg-yellow-400":e.state.data.state==="PARTLY","bg-red-400":e.state.data.state==="OFFLINE"}])},null,2),o("span",{class:i(["animate-ping relative inline-flex rounded-full h-4 w-4",{"bg-green-500":e.state.data.state==="ONLINE","bg-yellow-500":e.state.data.state==="PARTLY","bg-red-500":e.state.data.state==="OFFLINE"}])},null,2)])]),o("span",A,l(e.state.data.subtitle),1)])):C("",!0),o("div",D,[o("div",{class:i({"order-1":t.$page.props.lvk.data.order_of_news==="ON_BOTTOM","order-3":t.$page.props.lvk.data.order_of_news==="ON_TOP"})},[s(p)],2),s(d,{class:i(["mb-2.5",{"mt-2.5 mb-2.5 order-2":t.$page.props.lvk.data.order_of_news==="ON_BOTTOM","mb-2.5 order-1":t.$page.props.lvk.data.order_of_news==="ON_TOP"}])},{default:a(()=>[m(l(t.__("News")),1)]),_:1},8,["class"]),s(_,{class:i({"order-3":t.$page.props.lvk.data.order_of_news==="ON_BOTTOM","order-2 mb-2.5":t.$page.props.lvk.data.order_of_news==="ON_TOP"})},{footer:a(()=>[o("div",R,[s(c,{class:"dark:text-gray-200 text-gray-900 dark:hover:text-gray-200 hover:text-gray-900 hover:opacity-75",href:t.route("incidents.list")},{default:a(()=>[m(l(t.__("News History")),1)]),_:1},8,["href"])])]),_:1},8,["class"]),s(f)]),Y]),_:1})}const Tt=E(F,[["render",$]]);export{Tt as default};
