status/client/index.8828a75f.js

2 lines
26 KiB
JavaScript
Raw Normal View History

import{S as e,i as t,s as a,a as n,e as r,c as s,b as l,d as c,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.7a3c2201.js";import{c as C,a as O,h as P,L as x}from"./createOctokit.8bf1f255.js";function F(e,t,a){const n=e.slice();return n[5]=t[a],n}function j(e){let t,a,n,s=w.i18n.allSystemsOperational+"";return{c(){t=r("article"),a=g("✅   "),n=g(s),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var r=c(t);a=v(r,"✅   "),n=v(r,s),r.forEach(i),this.h()},h(){o(t,"class","up")},m(e,r){d(e,t,r),$(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=r("h2"),a=g(u),o=n();for(let e=0;e<m.length;e+=1)m[e].c();h=D()},l(e){t=l(e,"H2",{});var n=c(t);a=v(n,u),n.forEach(i),o=s(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=r("article"),a=r("div"),h=r("div"),u=r("h4"),f=g(k),m=n(),p=r("div"),E=g(q),D=n(),_=r("div"),y=r("a"),T=g(R),S=n(),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var n=c(t);a=l(n,"DIV",{class:!0});var r=c(a);h=l(r,"DIV",{});var o=c(h);u=l(o,"H4",{});var d=c(u);f=v(d,k),d.forEach(i),m=s(o),p=l(o,"DIV",{});var g=c(p);E=v(g,q),g.forEach(i),o.forEach(i),D=s(r),_=l(r,"DIV",{class:!0});var $=c(_);y=l($,"A",{href:!0});var w=c(y);T=v(w,R),w.forEach(i),$.forEach(i),r.forEach(i),S=s(n),n.forEach(i),this.h()},h(){o(y,"href",I=`${w.path}/incident/${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=`${w.path}/incident/${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=r("section"),g&&g.c(),this.h()},l(e){$&&$.l(e),t=s(e),a=l(e,"SECTION",{class:!0});var n=c(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]){e[1].length||e[0]?$&&($.d(1),$=null):$?$.p(e,n):($=j(),$.c(),$.m(t.parentNode,t));let r=p;p=D(e),p===r?~p&&w[p].p(e,n):(g&&(h(),u(w[r],1,1,(()=>{w[r]=null})),f()),~p?(g=w[p],g?g.p(e,n):(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 r=C(),s=w.owner,l=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`issues-${s}-${l}`,(()=>r.issues.listForRepo({owner:s,repo:l,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data),a(1,c