status/client/rate-limit-exceeded.793d5503.js
2024-06-30 01:29:00 +00:00

2 lines
3.8 KiB
JavaScript

import{S as e,i as t,s as a,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.d66845a7.js";function P(e){let t,a,n,c,v,x,w,P,S,y,k,A=i.i18n.rateLimitExceededGitHubPAT+"",H=i.i18n.rateLimitExceededSaveToken+"";return{c(){t=r("form"),a=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){t=h(e,"FORM",{});var i=u(t);a=h(i,"LABEL",{class:!0});var s=u(a);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(a,"class","svelte-1x7uoin"),f(P,"class","submit-button svelte-1x7uoin"),f(P,"type","submit")},m(i,s){p(i,t,s),E(t,a),E(a,n),E(n,c),E(a,v),E(a,x),g(x,e[0]),E(t,w),E(t,P),E(P,S),y||(k=[L(x,"input",e[4]),L(t,"submit",b(e[2]))],y=!0)},p(e,t){1&t&&x.value!==e[0]&&g(x,e[0])},d(e){e&&l(t),y=!1,T(k)}}}function S(e){let t,a,n,c,x,w,g,b=i.i18n.rateLimitExceededHasSet+"",T=i.i18n.rateLimitExceededRemoveToken+"";return{c(){t=r("p"),a=o(b),n=s(),c=r("button"),x=o(T),this.h()},l(e){t=h(e,"P",{});var i=u(t);a=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,t,s),E(t,a),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(t),e&&l(n),e&&l(c),w=!1,g()}}}function y(e){let t,a,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,t){return e[1]?S:P}document.title=t=i.i18n.rateLimitExceededTitle;let X=V(e),Y=X(e);return{c(){a=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),a=d(e),x=h(e,"H1",{});var t=u(x);w=m(t,q),t.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,t){p(e,a,t),p(e,x,t),E(x,w),p(e,g,t),p(e,L,t),E(L,b),p(e,T,t),p(e,y,t),E(y,k),p(e,A,t),p(e,H,t),E(H,I),p(e,N,t),p(e,O,t),E(O,B),p(e,C,t),p(e,F,t),E(F,M),E(F,U),E(F,D),E(D,G),p(e,R,t),Y.m(e,t),p(e,j,t)},p(e,[t]){X===(X=V(e))&&Y?Y.p(e,t):(Y.d(1),Y=X(e),Y&&(Y.c(),Y.m(j.parentNode,j)))},i:v,o:v,d(e){e&&l(a),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,t,a){let s="",r=!1;return x((()=>{"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&a(1,r=!0)})),[s,r,()=>{"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.setItem("personal-access-token",s),w(i.path)},()=>{a(0,s=""),a(1,r=!1),"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.removeItem("personal-access-token")},function(){s=this.value,a(0,s)}]}class A extends e{constructor(e){super(),t(this,e,k,y,a,{})}}export{A as default};