status/client/legacy/index.3d1b00ff.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 m,l as f,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.550aac13.js";import{c as C,a as O,h as P,L as x}from"./createOctokit.0bca56b6.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+"",m=e[1],f=[];for(let t=0;t<m.length;t+=1)f[t]=z(F(e,m,t));return{c(){t=r("h2"),a=g(u),o=n();for(let e=0;e<f.length;e+=1)f[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<f.length;t+=1)f[t].l(e);h=D()},m(e,n){d(e,t,n),$(t,a),d(e,o,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(e,n);d(e,h,n)},p(e,t){if(2&t){let a;for(m=e[1],a=0;a<m.length;a+=1){const n=F(e,m,a);f[a]?f[a].p(n,t):(f[a]=z(n),f[a].c(),f[a].m(h.parentNode,h))}for(;a<f.length;a+=1)f[a].d(1);f.length=m.length}},i:E,o:E,d(e){e&&i(t),e&&i(o),_(f,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||(f(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,m,f,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"),m=g(k),f=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);m=v(d,k),d.forEach(i),f=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,m),$(h,f),$(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(m,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){let[r]=n;e[1].length||e[0]?$&&($.d(1),$=null):$?$.p(e,r):($=j(),$.c(),$.m(t.parentNode,t));let s=p;p=D(e),p===s?~p&&w[p].p(e,r):(g&&(h(),u(w[s],1,1,(()=>{w[s]=null})),m()),~p?(g=w[p],g?g.p(e,r):(g=w[p]=E[p](e),g.c()),f(g,1),g.m(a,null)):g=null)},i(e){v||(f(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