youtuber-blog-frontend/build/client/_app/immutable/nodes/8.CQp6Sddr.js
2024-07-22 22:12:35 +02:00

2 lines
6.0 KiB
JavaScript

import{s as I,c as T,y as v,G as U,F as P,H as W,f as w,i as _,I as S,k as z,l as p,u as X,g as Y,a as Z,C as x,E as K,z as B,b as A,e as N,j,d as y,r as $,p as k,n as ee}from"../chunks/scheduler.Nb9dF4RD.js";import{S as H,i as V,t as C,a as E,c as G,b as q,m as D,d as F}from"../chunks/index.aIvb1r_w.js";/* empty css */import{c as te}from"../chunks/config.zd1Rqlxu.js";import"../chunks/index.CnPkSA2E.js";import{M as le}from"../chunks/mode-watcher.By69KWzR.js";import{g as J,a as se}from"../chunks/spread.CgU5AtxT.js";import{e as L}from"../chunks/each.DmwFL-7U.js";const ne={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}},O=ne;function Q(r,e,a){const l=r.slice();return l[10]=e[a][0],l[11]=e[a][1],l}function M(r){let e,a=[r[11]],l={};for(let t=0;t<a.length;t+=1)l=v(l,a[t]);return{c(){e=U(r[10]),this.h()},l(t){e=W(t,r[10],{}),w(e).forEach(_),this.h()},h(){S(e,l)},m(t,s){z(t,e,s)},p(t,s){S(e,l=J(a,[s&32&&t[11]]))},d(t){t&&_(e)}}}function R(r){let e=r[10],a,l=r[10]&&M(r);return{c(){l&&l.c(),a=P()},l(t){l&&l.l(t),a=P()},m(t,s){l&&l.m(t,s),z(t,a,s)},p(t,s){t[10]?e?I(e,t[10])?(l.d(1),l=M(t),e=t[10],l.c(),l.m(a.parentNode,a)):l.p(t,s):(l=M(t),e=t[10],l.c(),l.m(a.parentNode,a)):e&&(l.d(1),l=null,e=t[10])},d(t){t&&_(a),l&&l.d(t)}}}function ae(r){let e,a,l,t,s=L(r[5]),i=[];for(let n=0;n<s.length;n+=1)i[n]=R(Q(r,s,n));const m=r[9].default,u=T(m,r,r[8],null);let g=[O[r[0]],r[6],{width:r[3]},{height:r[3]},{class:l=`tabler-icon tabler-icon-${r[1]} ${r[7].class??""}`},r[0]==="filled"?{fill:r[2]}:{"stroke-width":r[4],stroke:r[2]}],h={};for(let n=0;n<g.length;n+=1)h=v(h,g[n]);return{c(){e=U("svg");for(let n=0;n<i.length;n+=1)i[n].c();a=P(),u&&u.c(),this.h()},l(n){e=W(n,"svg",{width:!0,height:!0,class:!0});var f=w(e);for(let o=0;o<i.length;o+=1)i[o].l(f);a=P(),u&&u.l(f),f.forEach(_),this.h()},h(){S(e,h)},m(n,f){z(n,e,f);for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(e,null);p(e,a),u&&u.m(e,null),t=!0},p(n,[f]){if(f&32){s=L(n[5]);let o;for(o=0;o<s.length;o+=1){const c=Q(n,s,o);i[o]?i[o].p(c,f):(i[o]=R(c),i[o].c(),i[o].m(e,a))}for(;o<i.length;o+=1)i[o].d(1);i.length=s.length}u&&u.p&&(!t||f&256)&&X(u,m,n,n[8],t?Z(m,n[8],f,null):Y(n[8]),null),S(e,h=J(g,[f&1&&O[n[0]],f&64&&n[6],(!t||f&8)&&{width:n[3]},(!t||f&8)&&{height:n[3]},(!t||f&130&&l!==(l=`tabler-icon tabler-icon-${n[1]} ${n[7].class??""}`))&&{class:l},f&21&&(n[0]==="filled"?{fill:n[2]}:{"stroke-width":n[4],stroke:n[2]})]))},i(n){t||(C(u,n),t=!0)},o(n){E(u,n),t=!1},d(n){n&&_(e),x(i,n),u&&u.d(n)}}}function oe(r,e,a){const l=["type","name","color","size","stroke","iconNode"];let t=K(e,l),{$$slots:s={},$$scope:i}=e,{type:m}=e,{name:u}=e,{color:g="currentColor"}=e,{size:h=24}=e,{stroke:n=2}=e,{iconNode:f}=e;return r.$$set=o=>{a(7,e=v(v({},e),B(o))),a(6,t=K(e,l)),"type"in o&&a(0,m=o.type),"name"in o&&a(1,u=o.name),"color"in o&&a(2,g=o.color),"size"in o&&a(3,h=o.size),"stroke"in o&&a(4,n=o.stroke),"iconNode"in o&&a(5,f=o.iconNode),"$$scope"in o&&a(8,i=o.$$scope)},e=B(e),[m,u,g,h,n,f,t,e,i,s]}class re extends H{constructor(e){super(),V(this,e,oe,ae,I,{type:0,name:1,color:2,size:3,stroke:4,iconNode:5})}}function ie(r){let e;const a=r[2].default,l=T(a,r,r[3],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,s){l&&l.m(t,s),e=!0},p(t,s){l&&l.p&&(!e||s&8)&&X(l,a,t,t[3],e?Z(a,t[3],s,null):Y(t[3]),null)},i(t){e||(C(l,t),e=!0)},o(t){E(l,t),e=!1},d(t){l&&l.d(t)}}}function fe(r){let e,a;const l=[{type:"outline"},{name:"brand-google"},r[1],{iconNode:r[0]}];let t={$$slots:{default:[ie]},$$scope:{ctx:r}};for(let s=0;s<l.length;s+=1)t=v(t,l[s]);return e=new re({props:t}),{c(){G(e.$$.fragment)},l(s){q(e.$$.fragment,s)},m(s,i){D(e,s,i),a=!0},p(s,[i]){const m=i&3?J(l,[l[0],l[1],i&2&&se(s[1]),i&1&&{iconNode:s[0]}]):{};i&8&&(m.$$scope={dirty:i,ctx:s}),e.$set(m)},i(s){a||(C(e.$$.fragment,s),a=!0)},o(s){E(e.$$.fragment,s),a=!1},d(s){F(e,s)}}}function ue(r,e,a){let{$$slots:l={},$$scope:t}=e;const s=[["path",{d:"M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945z"}]];return r.$$set=i=>{a(1,e=v(v({},e),B(i))),"$$scope"in i&&a(3,t=i.$$scope)},e=B(e),[s,e,l,t]}class ce extends H{constructor(e){super(),V(this,e,ue,fe,I,{})}}function me(r){let e,a,l,t,s,i,m,u="Google",g,h,n,f,o;return e=new le({}),s=new ce({props:{class:"h-4 w-4 text-neutral-800 dark:text-neutral-300"}}),{c(){G(e.$$.fragment),a=A(),l=N("div"),t=N("a"),G(s.$$.fragment),i=A(),m=N("span"),m.textContent=u,g=A(),h=N("span"),n=A(),f=N("span"),this.h()},l(c){q(e.$$.fragment,c),a=j(c),l=y(c,"DIV",{class:!0});var b=w(l);t=y(b,"A",{href:!0,class:!0});var d=w(t);q(s.$$.fragment,d),i=j(d),m=y(d,"SPAN",{class:!0,"data-svelte-h":!0}),$(m)!=="svelte-1x4tmgu"&&(m.textContent=u),g=j(d),h=y(d,"SPAN",{class:!0}),w(h).forEach(_),n=j(d),f=y(d,"SPAN",{class:!0}),w(f).forEach(_),d.forEach(_),b.forEach(_),this.h()},h(){k(m,"class","text-sm text-neutral-700 dark:text-neutral-300"),k(h,"class","absolute inset-x-0 -bottom-px block h-px w-full bg-gradient-to-r from-transparent via-cyan-500 to-transparent opacity-0 transition duration-500 group-hover/btn:opacity-100"),k(f,"class","absolute inset-x-10 -bottom-px mx-auto block h-px w-1/2 bg-gradient-to-r from-transparent via-indigo-500 to-transparent opacity-0 blur-sm transition duration-500 group-hover/btn:opacity-100"),k(t,"href",te.api_url+"/auth/google"),k(t,"class","group/btn relative flex h-10 w-full items-center justify-start space-x-2 rounded-md bg-gray-50 px-4 font-medium text-black shadow-input dark:bg-zinc-900 dark:shadow-[0px_0px_1px_1px_var(--neutral-800)]"),k(l,"class","mx-auto flex h-screen w-screen max-w-64 items-center justify-center")},m(c,b){D(e,c,b),z(c,a,b),z(c,l,b),p(l,t),D(s,t,null),p(t,i),p(t,m),p(t,g),p(t,h),p(t,n),p(t,f),o=!0},p:ee,i(c){o||(C(e.$$.fragment,c),C(s.$$.fragment,c),o=!0)},o(c){E(e.$$.fragment,c),E(s.$$.fragment,c),o=!1},d(c){c&&(_(a),_(l)),F(e,c),F(s)}}}class we extends H{constructor(e){super(),V(this,e,null,me,I,{})}}export{we as component};