youtuber-blog-frontend/build/client/_app/immutable/nodes/2.DO__qnQ5.js

3 lines
115 KiB
JavaScript
Raw Normal View History

2024-07-21 13:35:30 +00:00
import{s as Ee,y as P,z as Te,c as re,u as ae,g as ue,a as fe,F as ie,k as E,n as ce,i as g,E as de,ac as xt,S as ve,G as Se,H as Ne,f as H,p as _,I as wt,l as Z,w as X,x as mt,N as jt,ae as Mi,o as ut,L as dt,e as W,d as U,T as _n,v as Ct,D as je,W as an,b as Q,j as $,r as Tt,af as Ii,q as Ue,K as vi,B as Bi,A as Ai,M as Et,t as et,h as tt,m as At,ab as Pi,C as un}from"../chunks/scheduler.Nb9dF4RD.js";import{S as Oe,i as Le,c as F,b as K,m as R,t as C,a as k,d as z,g as Ve,e as He,h as Ci,j as ki,k as gn}from"../chunks/index.aIvb1r_w.js";import{e as vt,u as Di,o as Si}from"../chunks/each.DmwFL-7U.js";/* empty css */import{g as me,a as Ye}from"../chunks/spread.CgU5AtxT.js";import{I as fn}from"../chunks/Icon.Bv1fUSKH.js";import{c as Ni,w as xe,m as lt,s as Kt,p as Vi,e as gt,i as G,a as bt,d as oe,F as hn,k as Je,S as Qt,u as Hi,n as Zt,f as pt,g as bn,h as Vt,j as It,l as nn,o as yi,q as Fi}from"../chunks/index.CnPkSA2E.js";import{w as $e,d as Xt}from"../chunks/index.275uym8j.js";import{a as Yt,o as Jt,c as Ri,r as zi,g as Ki,b as cn,d as Zi,e as ft,u as Wi,f as wi}from"../chunks/Toaster.svelte_svelte_type_style_lang.BVlHgIyE.js";import{c as Ui,g as pn,d as vn,u as Cn,a as kn,h as Qe,b as ji,s as Ht,r as Nt,e as Xi,f as Yi,i as Gi,j as qi,k as Ji,l as Qi,m as $i,D as xi,n as el,o as tl,p as nl,q as yn,t as il,X as ll,v as sl,w as ol}from"../chunks/x.Dp5nscGL.js";import{d as rl,M as al,t as Ti}from"../chunks/mode-watcher.By69KWzR.js";import{c as $t}from"../chunks/config.C93xSGbu.js";import{c as st,f as ul,B as Ft}from"../chunks/button.Hx4R_eXH.js";const fl=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function cl(i){let e;const n=i[2].default,t=re(n,i,i[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&ae(t,n,s,s[3],e?fe(n,s[3],l,null):ue(s[3]),null)},i(s){e||(C(t,s),e=!0)},o(s){k(t,s),e=!1},d(s){t&&t.d(s)}}}function dl(i){let e,n;const t=[{name:"menu"},i[1],{iconNode:i[0]}];let s={$$slots:{default:[cl]},$$scope:{ctx:i}};for(let l=0;l<t.length;l+=1)s=P(s,t[l]);return e=new fn({props:s}),{c(){F(e.$$.fragment)},l(l){K(e.$$.fragment,l)},m(l,o){R(e,l,o),n=!0},p(l,[o]){const r=o&3?me(t,[t[0],o&2&&Ye(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(r.$$scope={dirty:o,ctx:l}),e.$set(r)},i(l){n||(C(e.$$.fragment,l),n=!0)},o(l){k(e.$$.fragment,l),n=!1},d(l){z(e,l)}}}function ml(i,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["line",{x1:"4",x2:"20",y1:"12",y2:"12"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18"}]];return i.$$set=o=>{n(1,e=P(P({},e),Te(o))),"$$scope"in o&&n(3,s=o.$$scope)},e=Te(e),[l,e,t,s]}let _l=class extends Oe{constructor(e){super(),Le(this,e,ml,dl,Ee,{})}};function gl(i){let e;const n=i[2].default,t=re(n,i,i[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&ae(t,n,s,s[3],e?fe(n,s[3],l,null):ue(s[3]),null)},i(s){e||(C(t,s),e=!0)},o(s){k(t,s),e=!1},d(s){t&&t.d(s)}}}function hl(i){let e,n;const t=[{name:"package-2"},i[1],{iconNode:i[0]}];let s={$$slots:{default:[gl]},$$scope:{ctx:i}};for(let l=0;l<t.length;l+=1)s=P(s,t[l]);return e=new fn({props:s}),{c(){F(e.$$.fragment)},l(l){K(e.$$.fragment,l)},m(l,o){R(e,l,o),n=!0},p(l,[o]){const r=o&3?me(t,[t[0],o&2&&Ye(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(r.$$scope={dirty:o,ctx:l}),e.$set(r)},i(l){n||(C(e.$$.fragment,l),n=!0)},o(l){k(e.$$.fragment,l),n=!1},d(l){z(e,l)}}}function bl(i,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["path",{d:"M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z"}],["path",{d:"m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9"}],["path",{d:"M12 3v6"}]];return i.$$set=o=>{n(1,e=P(P({},e),Te(o))),"$$scope"in o&&n(3,s=o.$$scope)},e=Te(e),[l,e,t,s]}class Ei extends Oe{constructor(e){super(),Le(this,e,bl,hl,Ee,{})}}function pl(i){let e;const n=i[2].default,t=re(n,i,i[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&ae(t,n,s,s[3],e?fe(n,s[3],l,null):ue(s[3]),null)},i(s){e||(C(t,s),e=!0)},o(s){k(t,s),e=!1},d(s){t&&t.d(s)}}}function vl(i){let e,n;const t=
To manage your articles and signups, please update your billing information or resubscribe.`,o,r,a,u,f,c,h='Need help? <a href="mailto:info@omersabic.com?Subject=Youpage.ai support" class="text-blue-500 underline">Contact support</a>',d;return r=new Ft({props:{href:$t.api_url+"/me/subscribe",$$slots:{default:[Sr]},$$scope:{ctx:i}}}),u=new Ft({props:{href:$t.api_url+"/me/billing",$$slots:{default:[Nr]},$$scope:{ctx:i}}}),{c(){e=W("div"),n=Q(),t=W("div"),s=W("p"),s.innerHTML=l,o=Q(),F(r.$$.fragment),a=Q(),F(u.$$.fragment),f=Q(),c=W("p"),c.innerHTML=h,this.h()},l(p){e=U(p,"DIV",{class:!0}),H(e).forEach(g),n=$(p),t=U(p,"DIV",{class:!0});var T=H(t);s=U(T,"P",{"data-svelte-h":!0}),Tt(s)!=="svelte-cxgmz"&&(s.innerHTML=l),o=$(T),K(r.$$.fragment,T),a=$(T),K(u.$$.fragment,T),f=$(T),c=U(T,"P",{class:!0,"data-svelte-h":!0}),Tt(c)!=="svelte-h3miay"&&(c.innerHTML=h),T.forEach(g),this.h()},h(){_(e,"class","fixed left-0 top-0 z-40 h-screen w-screen bg-black opacity-30"),_(c,"class","text-md text-center text-gray-500"),_(t,"class","fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:max-w-[750px] sm:rounded-lg md:w-full")},m(p,T){E(p,e,T),E(p,n,T),E(p,t,T),Z(t,s),Z(t,o),R(r,t,null),Z(t,a),R(u,t,null),Z(t,f),Z(t,c),d=!0},i(p){d||(C(r.$$.fragment,p),C(u.$$.fragment,p),d=!0)},o(p){k(r.$$.fragment,p),k(u.$$.fragment,p),d=!1},d(p){p&&(g(e),g(n),g(t)),z(r),z(u)}}}function Sr(i){let e;return{c(){e=et("Resubscribe")},l(n){e=tt(n,"Resubscribe")},m(n,t){E(n,e,t)},d(n){n&&g(e)}}}function Nr(i){let e;return{c(){e=et("Manage Billing")},l(n){e=tt(n,"Manage Billing")},m(n,t){E(n,e,t)},d(n){n&&g(e)}}}function Vr(i){let e,n,t,s,l,o,r,a,u,f,c,h=i[0].me.name+"",d,p,T,v,V,O,L,m,M,le,N,ge,Me=i[0].me.tokens+"",he,Ae,S,q,be,Pe,nt,ze;e=new pr({}),t=new al({}),u=new Ei({props:{class:"h-6 w-6"}});let Ge=vt(i[1]),Ce=[];for(let A=0;A<Ge.length;A+=1)Ce[A]=bi(hi(i,Ge,A));v=new co({props:{$$slots:{default:[wr]},$$scope:{ctx:i}}}),m=new Ft({props:{variant:"outline",size:"icon",$$slots:{default:[Tr]},$$scope:{ctx:i}}}),m.$on("click",Ti),S=new Js({props:{$$slots:{default:[Pr]},$$scope:{ctx:i}}});const ot=i[3].default,Ie=re(ot,i,i[4],null);let Fe=!i[2]&&Dr(i);return{c(){F(e.$$.fragment),n=Q(),F(t.$$.fragment),s=Q(),l=W("div"),o=W("header"),r=W("nav"),a=W("a"),F(u.$$.fragment),f=Q(),c=W("span"),d=et(h),p=Q();for(let A=0;A<Ce.length;A+=1)Ce[A].c();T=Q(),F(v.$$.fragment),V=Q(),O=W("div"),L=W("div"),F(m.$$.fragment),M=Q(),le=W("div"),N=et("Tokens: "),ge=W("span"),he=et(Me),Ae=Q(),F(S.$$.fragment),q=Q(),be=W("main"),Ie&&Ie.c(),Pe=Q(),Fe&&Fe.c(),nt=ie(),this.h()},l(A){K(e.$$.fragment,A),n=$(A),K(t.$$.fragment,A),s=$(A),l=U(A,"DIV",{class:!0});var te=H(l);o=U(te,"HEADER",{class:!0});var b=H(o);r=U(b,"NAV",{class:!0});var Ke=H(r);a=U(Ke,"A",{href:!0,class:!0});var Ze=H(a);K(u.$$.fragment,Ze),f=$(Ze),c=U(Ze,"SPAN",{class:!0});var ke=H(c);d=tt(ke,h),ke.forEach(g),Ze.forEach(g),p=$(Ke);for(let rt=0;rt<Ce.length;rt+=1)Ce[rt].l(Ke);Ke.forEach(g),T=$(b),K(v.$$.fragment,b),V=$(b),O=U(b,"DIV",{class:!0});var Xe=H(O);L=U(Xe,"DIV",{class:!0});var ht=H(L);K(m.$$.fragment,ht),ht.forEach(g),M=$(Xe),le=U(Xe,"DIV",{class:!0});var at=H(le);N=tt(at,"Tokens: "),ge=U(at,"SPAN",{});var kt=H(ge);he=tt(kt,Me),kt.forEach(g),at.forEach(g),Ae=$(Xe),K(S.$$.fragment,Xe),Xe.forEach(g),b.forEach(g),q=$(te),be=U(te,"MAIN",{class:!0});var We=H(be);Ie&&Ie.l(We),We.forEach(g),te.forEach(g),Pe=$(A),Fe&&Fe.l(A),nt=ie(),this.h()},h(){_(c,"class","sr-only"),_(a,"href","##"),_(a,"class","flex items-center gap-2 text-lg font-semibold md:text-base"),_(r,"class","hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-sm lg:gap-6"),_(L,"class","ml-auto hidden md:block"),_(le,"class","ml-auto md:ml-0"),_(O,"class","flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4"),_(o,"class","sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6"),_(be,"class","flex flex-1 flex-col gap-4 p-4 md:gap-8 md:p-8"),_(l,"class","flex min-h-screen w-full flex-col")},m(A,te){R(e,A,te),E