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