2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{S as be,i as xe,s as Ae,d as s,m as $e,o as me,p as pe,a as H,r as e,z as C,b as de,c as t,q as ze,e as x,f as c,v as Be,h as w,G as z,g as S,j as A,x as Ie,k as b,H as B,t as T,l as ve,u as Me}from"../chunks/DfpL3vsM.js";import"../chunks/IHki7fMi.js";import{E as Le,A as Ce,c as De}from"../chunks/D8zjZoA1.js";import{t as Pe}from"../chunks/CmyxTY1z.js";import{L as Ue}from"../chunks/DBKVvboF.js";import{p as ye}from"../chunks/DIeP6ySR.js";function He(r){let a,o,f,u,v,h,m,l,p,g,I,P,U,ae,k=r[3]("loginWith",{provider:"Google"})+"",J,le,_,$,y,D,F,O,se,R=r[3]("loginWith",{provider:"Twitch"})+"",K,oe,ne,E,W=r[3]("termsAgreement")+"",Q,ie,L,j=r[3]("termsOfService")+"",X,ce,G=r[3]("and")+"",Y,fe,V,q=r[3]("privacyPolicy")+"",Z,d;f=new Ue({props:{size:"lg",hasText:!0}});let ge=Le;return{c(){a=A("div"),o=A("div"),Ie(f.$$.fragment),u=b(),v=A("form"),h=b(),m=A("div"),l=A("a"),p=B("svg"),g=B("path"),I=B("path"),P=B("path"),U=B("path"),ae=b(),J=T(k),le=b(),_=A("a"),$=B("svg"),y=B("path"),D=B("g"),F=B("path"),O=B("path"),se=b(),K=T(R),oe=b(),ne=b(),E=A("p"),Q=T(W),ie=b(),L=A("a"),X=T(j),ce=b(),Y=T(G),fe=b(),V=A("a"),Z=T(q),this.h()},l(i){a=x(i,"DIV",{class:!0});var n=c(a);o=x(n,"DIV",{class:!0});var _e=c(o);Be(f.$$.fragment,_e),_e.forEach(s),u=w(n),v=x(n,"FORM",{class:!0});var Ve=c(v);Ve.forEach(s),h=w(n),m=x(n,"DIV",{class:!0});var ee=c(m);l=x(ee,"A",{href:!0,class:!0});var te=c(l);p=z(te,"svg",{class:!0,viewBox:!0,xmlns:!0});var N=c(p);g=z(N,"path",{d:!0,fill:!0}),c(g).forEach(s),I=z(N,"path",{d:!0,fill:!0}),c(I).forEach(s),P=z(N,"path",{d:!0,fill:!0}),c(P).forEach(s),U=z(N,"path",{d:!0,fill:!0}),c(U).forEach(s),N.forEach(s),ae=w(te),J=S(te,k),te.forEach(s),le=w(ee),_=x(ee,"A",{href:!0,class:!0});var re=c(_);$=z(re,"svg",{class:!0,xmlns:!0,"xml:space":!0,viewBox:!0});var he=c($);y=z(he,"path",{fill:!0,d:!0}),c(y).forEach(s),D=z(he,"g",{fill:!0});var ue=c(D);F=z(ue,"path",{d:!0}),c(F).forEach(s),O=z(ue,"path",{d:!0}),c(O).forEach(s),ue.forEach(s),he.forEach(s),se=w(re),K=S(re,R),re.forEach(s),ee.forEach(s),oe=w(n),ne=w(n),E=x(n,"P",{class:!0});var M=c(E);Q=S(M,W),ie=w(M),L=x(M,"A",{class:!0,href:!0,target:!0});var Ee=c(L);X=S(Ee,j),Ee.forEach(s),ce=w(M),Y=S(M,G),fe=w(M),V=x(M,"A",{class:!0,href:!0,target:!0});var we=c(V);Z=S(we,q),we.forEach(s),M.forEach(s),n.forEach(s),this.h()},h(){e(o,"class","flex justify-center mb-6"),e(v,"class","w-full"),e(g,"d","M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"),e(g,"fill","#4285F4"),e(I,"d","M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"),e(I,"fill","#34A853"),e(P,"d","M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782"),e(P,"fill","#FBBC05"),e(U,"d","M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"),e(U,"fill","#EB4335"),e(p,"class","mr-1 size-5"),e(p,"viewBox","0 0 256 262"),e(p,"xmlns","http://www.w3.org/2000/svg"),e(l,"href",r[2]),e(l,"class","btn btn-lg bg-base-100 w-full text-base"),C(l,"opacity-50",r[0]),C(l,"pointer-events-none",r[0]),e(y,"fill","#fff"),e(y,"d","m2200 1300-400 400h-400l-350 350v-350H600V200h1600z"),e(F,"d","M500 0 0 500v1800h600v500l500-500h400l900-900V0H500zm1700 1300-400 400h-400l-350 350v-350H600V200h1600v1100z"),e(O,"d","M1700 550h200v600h-200zm-550 0h200v600h-200z"),e(D,"fill","#9146ff"),e($,"class","mr-1 size-5"),e($,"xmlns","http://www.w3.org/2000/svg"),e($,"xml:space","preserve"),e($,"viewBox","0 0 2400 2800"),e(_,"href",r[1]),e(_,"class","btn btn-lg bg-base-100 w-full text-base"),C(_,"opacity-50",r[0]),C(_,"pointer-events-none",r[0]),e(m,"class","mt-6 flex flex-col items-center gap-2 w-full"),e(L,"class","font-medium"),e(L,"href","/terms/terms-of-service"),e(L,"target","_blank"),e(V,"class","font-medium"),e(V,"href","/terms/privacy"),e(V,"target","_blank"),e(E,"class","text-base-content/60 mt-6 text-center text-sm"),e(a,"class","flex flex-col items-center max-w-md mx-auto p-6")},m(i,n){de(i,a,n),t(a,o),ze(f,o,null),t(a,u),t(a,v),t(a,h),t(a,m),t(m,l),t(l,p),t(p,g),t(p,I),t(p,P),t(p,U),t(l,ae),t(l,J),t(m,le),t(m,_),t(_,$),t($,y),t($,D),t(D,F),t(D,O),t(_,se),t(_,K),t(a,oe),t(a,ne),t(a,E),t(E,Q),t(E,ie),t(E,L),t(L,X),t(E,ce),t(E,Y),t(E,fe),t(E,V),t(V,Z),d=!0},p(i,[n]){(!d||n&8)&&k!==(k=i[3]("loginWith",{provider:"Google"})+"")&&H(J,k),(!d||n&4)&&e(l,"href",i[2]),(!d||n&1)&&C(l,"opacity-50",i[0]),(!d||n&1)&&C(l,"pointer-events-none",i[0]),(!d||n&8)&&R!==(R=i[3]("loginWith",{provider:"Twitch"})+"")&&H(K,R),(!d||n&2)&&e(_,"href",i[1]),(!d||n&1)&&C(_,"opacity-50",i[0]),(!d||n&1)&&C(_,"pointer-events-none",i[0]),(!d||n&8)&&W!==(W=i[3]("termsAgreement")+"")&&H(Q,W),(!d||n&8)&&j!==(j=i[3]("termsOfService")+"")&&H(X,j),(!d||n&8)&&G!==(G=i[3]("and")+"")&&H(Y,G),(!d||n&8)&&q!==(q=i[3]("privacyPolicy")+"")&&H(Z,q)},i(i){d||(pe(f.$$.fragment,i),pe(ge),d=!0)},o(i){me(f.$$.fragment,i),me(ge),d=!1},d(i){i&&s(a),$e(f)}}}function Se(r,a,o){let f,u,v,h,m;ve(r,De,g=>o(5,h=g)),ve(r,Pe,g=>o(3,m=g));let{redirect:l=void 0}=a;function p(g){let I=`${Ce}/auth/${g}`;return l&&(I+=`?r=${encodeURIComponent(l)}`),I}return r.$$set=g=>{"redirect"in g&&o(4,l=g.redirect)},r.$$.update=()=>{r.$$.dirty&32&&o(0,v=Le)},o(2,f=p("google")),o(1,u=p("twitch")),[v,u,f,m,l,h]}class Te extends be{constructor(a){super(),xe(this,a,Se,He,Ae,{redirect:4})}}function ke(r){let a,o,f,u,v;return u=new Te({props:{redirect:r[0]}}),{c(){a=b(),o=A("div"),f=A("div"),Ie(u.$$.fragment),this.h()},l(h){Me("svelte-8b4dsz",document.head).forEach(s),a=w(h),o=x(h,"DIV",{class:!0});var l=c(o);f=x(l,"DIV",{class:!0});var p=c(f);Be(u.$$.fragment,p),p.forEach(s),l.forEach(s),this.h()},h(){document.title="Login - FurryPlace",e(f,"class","bg-base-100 rounded-box shadow-xl p-8 max-w-md w-full"),e(o,"class","min-h-screen bg-base-200 flex items-center justify-center p-4")},m(h,m){de(h,a,m),de(h,o,m),t(o,f),ze(u,f,null),v=!0},p(h,[m]){const l={};m&1&&(l.redirect=h[0]),u.$set(l)},i(h){v||(pe(u.$$.fragment,h),v=!0)},o(h){me(u.$$.fragment,h),v=!1},d(h){h&&(s(a),s(o)),$e(u)}}}function Fe(r,a,o){let f,u;return ve(r,ye,v=>o(1,u=v)),r.$$.update=()=>{r.$$.dirty&2&&o(0,f=u.url.searchParams.get("r")||void 0)},[f,u]}class Ne extends be{constructor(a){super(),xe(this,a,Fe,ke,Ae,{})}}export{Ne as component};
|