mirror of
https://github.com/ethanrusz/status.git
synced 2024-11-22 17:47:46 -05:00
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,a as r,e as s,m as n,u as o,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 x,o as v,O as w,P as g,C as L,Q as b,D as T}from"./client.7802cf1d.js";function P(e){let t,a,o,c,x,v,w,P,S,y,k,A=i.i18n.rateLimitExceededGitHubPAT+"",H=i.i18n.rateLimitExceededSaveToken+"";return{c(){t=s("form"),a=s("label"),o=s("span"),c=n(A),x=r(),v=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),x=d(r),v=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(v,"type","text"),f(v,"placeholder",i.i18n.rateLimitExceededCopyPastePAT),f(v,"class","svelte-1x7uoin"),f(a,"class","svelte-1x7uoin"),f(P,"class","submit-button svelte-1x7uoin"),f(P,"type","submit")},m(i,r){p(i,t,r),E(t,a),E(a,o),E(o,c),E(a,x),E(a,v),g(v,e[0]),E(t,w),E(t,P),E(P,S),y||(k=[L(v,"input",e[4]),L(t,"submit",b(e[2]))],y=!0)},p(e,t){1&t&&v.value!==e[0]&&g(v,e[0])},d(e){e&&l(t),y=!1,T(k)}}}function S(e){let t,a,o,c,v,w,g,b=i.i18n.rateLimitExceededHasSet+"",T=i.i18n.rateLimitExceededRemoveToken+"";return{c(){t=s("p"),a=n(b),o=r(),c=s("button"),v=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);v=m(r,T),r.forEach(l),this.h()},h(){f(c,"class","svelte-1x7uoin")},m(i,r){p(i,t,r),E(t,a),p(i,o,r),p(i,c,r),E(c,v),w||(g=L(c,"click",e[3]),w=!0)},p:x,d(e){e&&l(t),e&&l(o),e&&l(c),w=!1,g()}}}function y(e){let t,a,v,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=r(),v=s("h1"),w=n(q),g=r(),L=s("p"),b=n(K),T=r(),y=s("h2"),k=n(Q),A=r(),H=s("p"),I=n(W),N=r(),O=s("h2"),B=n(_),C=r(),F=s("p"),M=n(z),U=r(),D=s("a"),G=n(J),R=r(),Y.c(),j=o(),this.h()},l(e){c("svelte-1xny0el",document.head).forEach(l),a=d(e),v=h(e,"H1",{});var t=u(v);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 r=u(y);k=m(r,Q),r.forEach(l),A=d(e),H=h(e,"P",{});var s=u(H);I=m(s,W),s.forEach(l),N=d(e),O=h(e,"H2",{});var n=u(O);B=m(n,_),n.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=o(),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,v,t),E(v,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,[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(j.parentNode,j)))},i:x,o:x,d(e){e&&l(a),e&&l(v),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 r="",s=!1;return v((()=>{"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)}]}class A extends e{constructor(e){super(),t(this,e,k,y,a,{})}}export{A as default};
|