mirror of
https://github.com/TheSL18/upptime.git
synced 2024-11-20 10:31:46 -06:00
2 lines
26 KiB
JavaScript
2 lines
26 KiB
JavaScript
|
import{S as e,i as t,s as a,a as n,e as c,c as r,b as s,d as l,f as i,g as o,h as d,j as h,t as u,k as f,l as m,o as p,m as g,n as v,p as $,q as E,r as w,u as D,v as _,w as y,x as T,y as I,z as S,A as b,B as L,C as k,D as q,E as R,H as M,F as N,G as A,I as H,J as V,K as U,L as B}from"./client.dbc810f0.js";import{c as C,a as O,h as P,L as x}from"./createOctokit.33e8d1b9.js";function F(e,t,a){const n=e.slice();return n[5]=t[a],n}function j(e){let t,a,n,r=w.i18n.allSystemsOperational+"";return{c(){t=c("article"),a=g("✅ "),n=g(r),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var c=l(t);a=v(c,"✅ "),n=v(c,r),c.forEach(i),this.h()},h(){o(t,"class","up")},m(e,c){d(e,t,c),$(t,a),$(t,n)},p:E,d(e){e&&i(t)}}}function Y(e){let t,a,o,h,u=w.i18n.activeIncidents+"",f=e[1],m=[];for(let t=0;t<f.length;t+=1)m[t]=z(F(e,f,t));return{c(){t=c("h2"),a=g(u),o=n();for(let e=0;e<m.length;e+=1)m[e].c();h=D()},l(e){t=s(e,"H2",{});var n=l(t);a=v(n,u),n.forEach(i),o=r(e);for(let t=0;t<m.length;t+=1)m[t].l(e);h=D()},m(e,n){d(e,t,n),$(t,a),d(e,o,n);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(e,n);d(e,h,n)},p(e,t){if(2&t){let a;for(f=e[1],a=0;a<f.length;a+=1){const n=F(e,f,a);m[a]?m[a].p(n,t):(m[a]=z(n),m[a].c(),m[a].m(h.parentNode,h))}for(;a<m.length;a+=1)m[a].d(1);m.length=f.length}},i:E,o:E,d(e){e&&i(t),e&&i(o),_(m,e),e&&i(h)}}}function W(e){let t,a;return t=new x({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function z(e){let t,a,h,u,f,m,p,E,D,_,y,T,I,S,L,k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString()).replace(/\$POSTS/g,e[5].comments)+"",R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"";return{c(){t=c("article"),a=c("div"),h=c("div"),u=c("h4"),f=g(k),m=n(),p=c("div"),E=g(q),D=n(),_=c("div"),y=c("a"),T=g(R),S=n(),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var n=l(t);a=s(n,"DIV",{class:!0});var c=l(a);h=s(c,"DIV",{});var o=l(h);u=s(o,"H4",{});var d=l(u);f=v(d,k),d.forEach(i),m=r(o),p=s(o,"DIV",{});var g=l(p);E=v(g,q),g.forEach(i),o.forEach(i),D=r(c),_=s(c,"DIV",{class:!0});var $=l(_);y=s($,"A",{href:!0});var w=l(y);T=v(w,R),w.forEach(i),$.forEach(i),c.forEach(i),S=r(n),n.forEach(i),this.h()},h(){o(y,"href",I="".concat(w.path,"/incident/").concat(e[5].number)),o(_,"class","f r"),o(a,"class","f"),o(t,"class",L="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))},m(e,n){d(e,t,n),$(t,a),$(a,h),$(h,u),$(u,f),$(h,m),$(h,p),$(p,E),$(a,D),$(a,_),$(_,y),$(y,T),$(t,S)},p(e,a){2&a&&k!==(k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(f,k),2&a&&q!==(q=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString()).replace(/\$POSTS/g,e[5].comments)+"")&&b(E,q),2&a&&R!==(R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(T,R),2&a&&I!==(I="".concat(w.path,"/incident/").concat(e[5].number))&&o(y,"href",I),2&a&&L!==(L="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))&&o(t,"class",L)},d(e){e&&i(t)}}}function G(e){let t,a,p,g,v,$=!e[1].length&&!e[0]&&j();const E=[W,Y],w=[];function D(e,t){return e[0]?0:e[1].length?1:-1}return~(p=D(e))&&(g=w[p]=E[p](e)),{c(){$&&$.c(),t=n(),a=c("section"),g&&g.c(),this.h()},l(e){$&&$.l(e),t=r(e),a=s(e,"SECTION",{class:!0});var n=l(a);g&&g.l(n),n.forEach(i),this.h()},h(){o(a,"class","svelte-8lnl4f")},m(e,n){$&&$.m(e,n),d(e,t,n),d(e,a,n),~p&&w[p].m(a,null),v=!0},p(e,n){let[c]=n;e[1].length||e[0]?$&&($.d(1),$=null):$?$.p(e,c):($=j(),$.c(),$.m(t.parentNode,t));let r=p;p=D(e),p===r?~p&&w[p].p(e,c):(g&&(h(),u(w[r],1,1,(()=>{w[r]=null})),f()),~p?(g=w[p],g?g.p(e,c):(g=w[p]=E[p](e),g.c()),m(g,1),g.m(a,null)):g=null)},i(e){v||(m(g),v=!0)},o(e){u(g),v=!1},d(e){$&&$.d(e),e&&i(t),e&&i(a),~p&&w[p].d()}}}function J(e,t,a){let n=!0;const c=C(),r=w.owner,s=w.repo;let l=[];return p((async()=>{try{a(1,l=(await O("issues-".concat(r,"-").concat(s),(()=>c.issues.listForRepo({owner:r,repo:s,state:"open",filter:"all",sort:"create
|