upptime/client/rate-limit-exceeded.6482de07.js
2024-06-30 02:02:27 +00:00

2 lines
3.8 KiB
JavaScript

import{S as e,i as a,s as t,r as i,a as s,e as r,m as o,u as n,K as c,f as l,c as d,b as h,d as u,n as m,g as f,h as p,p as E,q as v,o as x,O as w,P as g,C as L,Q as b,D as T}from"./client.8d729a4a.js";function P(e){let a,t,n,c,v,x,w,P,S,y,k,A=i.i18n.rateLimitExceededGitHubPAT+"",H=i.i18n.rateLimitExceededSaveToken+"";return{c(){a=r("form"),t=r("label"),n=r("span"),c=o(A),v=s(),x=r("input"),w=s(),P=r("button"),S=o(H),this.h()},l(e){a=h(e,"FORM",{});var i=u(a);t=h(i,"LABEL",{class:!0});var s=u(t);n=h(s,"SPAN",{class:!0});var r=u(n);c=m(r,A),r.forEach(l),v=d(s),x=h(s,"INPUT",{type:!0,placeholder:!0,class:!0}),s.forEach(l),w=d(i),P=h(i,"BUTTON",{class:!0,type:!0});var o=u(P);S=m(o,H),o.forEach(l),i.forEach(l),this.h()},h(){f(n,"class","svelte-1x7uoin"),f(x,"type","text"),f(x,"placeholder",i.i18n.rateLimitExceededCopyPastePAT),f(x,"class","svelte-1x7uoin"),f(t,"class","svelte-1x7uoin"),f(P,"class","submit-button svelte-1x7uoin"),f(P,"type","submit")},m(i,s){p(i,a,s),E(a,t),E(t,n),E(n,c),E(t,v),E(t,x),g(x,e[0]),E(a,w),E(a,P),E(P,S),y||(k=[L(x,"input",e[4]),L(a,"submit",b(e[2]))],y=!0)},p(e,a){1&a&&x.value!==e[0]&&g(x,e[0])},d(e){e&&l(a),y=!1,T(k)}}}function S(e){let a,t,n,c,x,w,g,b=i.i18n.rateLimitExceededHasSet+"",T=i.i18n.rateLimitExceededRemoveToken+"";return{c(){a=r("p"),t=o(b),n=s(),c=r("button"),x=o(T),this.h()},l(e){a=h(e,"P",{});var i=u(a);t=m(i,b),i.forEach(l),n=d(e),c=h(e,"BUTTON",{class:!0});var s=u(c);x=m(s,T),s.forEach(l),this.h()},h(){f(c,"class","svelte-1x7uoin")},m(i,s){p(i,a,s),E(a,t),p(i,n,s),p(i,c,s),E(c,x),w||(g=L(c,"click",e[3]),w=!0)},p:v,d(e){e&&l(a),e&&l(n),e&&l(c),w=!1,g()}}}function y(e){let a,t,x,w,g,L,b,T,y,k,A,H,I,N,O,B,C,F,M,U,D,G,R,j,q=i.i18n.rateLimitExceededTitle+"",K=i.i18n.rateLimitExceededIntro+"",Q=i.i18n.rateLimitExceededWhatDoesErrorMean+"",W=i.i18n.rateLimitExceededErrorMeaning+"",_=i.i18n.rateLimitExceededErrorHowCanFix+"",z=i.i18n.rateLimitExceededErrorFix+"",J=i.i18n.rateLimitExceededGeneratePAT+"";function V(e,a){return e[1]?S:P}document.title=a=i.i18n.rateLimitExceededTitle;let X=V(e),Y=X(e);return{c(){t=s(),x=r("h1"),w=o(q),g=s(),L=r("p"),b=o(K),T=s(),y=r("h2"),k=o(Q),A=s(),H=r("p"),I=o(W),N=s(),O=r("h2"),B=o(_),C=s(),F=r("p"),M=o(z),U=s(),D=r("a"),G=o(J),R=s(),Y.c(),j=n(),this.h()},l(e){c("svelte-1xny0el",document.head).forEach(l),t=d(e),x=h(e,"H1",{});var a=u(x);w=m(a,q),a.forEach(l),g=d(e),L=h(e,"P",{class:!0});var i=u(L);b=m(i,K),i.forEach(l),T=d(e),y=h(e,"H2",{});var s=u(y);k=m(s,Q),s.forEach(l),A=d(e),H=h(e,"P",{});var r=u(H);I=m(r,W),r.forEach(l),N=d(e),O=h(e,"H2",{});var o=u(O);B=m(o,_),o.forEach(l),C=d(e),F=h(e,"P",{});var f=u(F);M=m(f,z),U=d(f),D=h(f,"A",{href:!0,target:!0});var p=u(D);G=m(p,J),p.forEach(l),f.forEach(l),R=d(e),Y.l(e),j=n(),this.h()},h(){f(L,"class","lead svelte-1x7uoin"),f(D,"href","https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token"),f(D,"target","_blank")},m(e,a){p(e,t,a),p(e,x,a),E(x,w),p(e,g,a),p(e,L,a),E(L,b),p(e,T,a),p(e,y,a),E(y,k),p(e,A,a),p(e,H,a),E(H,I),p(e,N,a),p(e,O,a),E(O,B),p(e,C,a),p(e,F,a),E(F,M),E(F,U),E(F,D),E(D,G),p(e,R,a),Y.m(e,a),p(e,j,a)},p(e,[a]){X===(X=V(e))&&Y?Y.p(e,a):(Y.d(1),Y=X(e),Y&&(Y.c(),Y.m(j.parentNode,j)))},i:v,o:v,d(e){e&&l(t),e&&l(x),e&&l(g),e&&l(L),e&&l(T),e&&l(y),e&&l(A),e&&l(H),e&&l(N),e&&l(O),e&&l(C),e&&l(F),e&&l(R),Y.d(e),e&&l(j)}}}function k(e,a,t){let s="",r=!1;return x((()=>{"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&t(1,r=!0)})),[s,r,()=>{"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.setItem("personal-access-token",s),w(i.path)},()=>{t(0,s=""),t(1,r=!1),"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.removeItem("personal-access-token")},function(){s=this.value,t(0,s)}]}class A extends e{constructor(e){super(),a(this,e,k,y,t,{})}}export{A as default};