import{d as M,f as b,a as h}from"../chunks/tr3w0TjV.js";import{b as T,E,j as w,J as A,K as N,h as R,k as S,M as O,u as m,N as L,O as l,Q as d,R as P,T as x,V as n,x as C,W as F,A as y}from"../chunks/DnREidt8.js";import{D as U,g as o,s as $}from"../chunks/aS5cBG8K.js";function j(t,s,...r){var v=t,a=A,e;T(()=>{a!==(a=s())&&(e&&(N(e),e=null),e=w(()=>a(v,...r)))},E),R&&(v=S)}var z=(t,s)=>s(t),B=b('<div class="navbar svelte-1vylv99"><div id="Logo" class="svelte-1vylv99"><a href="/"><span class="svelte-1vylv99">SOLID</span> <span class="svelte-1vylv99">BOARD</span></a></div> <div id="Status" class="svelte-1vylv99"><div class="row svelte-1vylv99"><div class="title svelte-1vylv99">Last updated</div> <div><!></div></div></div></div> <button id="Login" class="svelte-1vylv99">.</button>',1);function J(t,s){O(s,!0);function r(i){i.preventDefault(),window.document.body.classList.toggle("dark")}function v(){o.LoggedIn=!o.LoggedIn}let a=F(!1);function e(){let i=new Date;i.setMinutes(i.getMinutes()-1),o.LastMonitorUpdate<i?y(a,!0):y(a,!1)}m(()=>{e()}),m(()=>{const i=setInterval(()=>{e()},1e4);return()=>{clearInterval(i)}});var p=B(),c=L(p),f=l(c),D=l(f);D.__click=[z,r],n(f);var g=d(f,2),_=l(g),u=d(l(_),2),k=l(u);U(k,{get item(){return o.LastMonitorUpdate}}),n(u),n(_),n(g),n(c);var I=d(c,2);I.__click=v,P(()=>$(u,1,`value ${C(a)?" Error":""}`,"svelte-1vylv99")),h(t,p),x()}M(["click"]);var K=b('<!>   <div id="MainContainer" class="svelte-1bz6n08"><!></div>',1);function q(t,s){var r=K(),v=L(r);J(v,{});var a=d(v,2),e=l(a);j(e,()=>s.children),n(a),h(t,r)}export{q as component};
