1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1365],{7041:(e,t,s)=>{s.d(t,{g:()=>u});var l=s(30295),n=s(42721),a=s(11378),r=s(49991),c=s(24085),i=s(9588),d=s(98878),o=s(99770),h=s(9892),m=s(77044),x=s(30547);function f(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("span",{className:"flex size-5 items-center justify-center rounded-full bg-white text-sm font-bold text-[#1a73e8]",children:"G"}),t[0]=e):e=t[0],e}function u(e){let{configs:t,callbackUrl:s,loading:n=!1,setLoading:u=()=>{}}=e;(0,d.rd)();let p=(0,r.Ym)(),{setIsShowSignModal:g}=(0,m.U)();s&&p!==o.q&&s.startsWith("/")&&!s.startsWith("/".concat(p))&&(s="/".concat(p).concat(s));let j=async e=>{let{provider:t}=e;await i.Jv.social({provider:t,callbackURL:s},{onRequest:e=>{u(!0)},onResponse:e=>{},onSuccess:e=>{g(!1)},onError:e=>{var t;c.oR.error((null==e||null==(t=e.error)?void 0:t.message)||"sign in failed"),u(!1)}})},b=[];if("true"===t.google_auth_enabled&&b.push({name:"google",title:"Continue with Google",icon:(0,l.jsx)(f,{}),onClick:()=>j({provider:"google"})}),!b.length){let e=0===Object.keys(t).length;return(0,l.jsx)("div",{className:"flex min-h-12 w-full items-center justify-center rounded-full border border-white/10 bg-white/[0.04] px-4 text-sm text-white/72",children:e?(0,l.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,l.jsx)(a.A,{className:"h-4 w-4 animate-spin"}),"Loading sign-in options..."]}):(0,l.jsx)("span",{children:"Sign-in options are currently unavailable."})})}return(0,l.jsx)("div",{className:(0,x.cn)("flex w-full items-center gap-2","flex-col justify-between"),children:b.map(e=>(0,l.jsxs)(h.$,{type:"button",className:(0,x.cn)("h-12 w-full gap-3 rounded-full border border-white/10 bg-white/5 text-base font-semibold text-white hover:bg-white/10"),disabled:n,onClick:e.onClick,children:[e.icon,(0,l.jsx)("h3",{children:e.title})]},e.name))})}},11378:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(41244).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},31365:(e,t,s)=>{s.r(t),s.d(t,{SignModal:()=>j});var l=s(30295),n=s(42721),a=s(61142),r=s(76127),c=s(98878),i=s(9892),d=s(98764),o=s(6787),h=s(77044),m=s(96822),x=s(52350),f=s(36274),u=s(78879),p=s(7041);function g(e){let t,s,i,d,o,m,g,j,b,w,y,v=(0,n.c)(16),{callbackUrl:k,className:N}=e;(0,a.c3)("common.sign");let{configs:_,fetchConfigs:S}=(0,h.U)();v[0]!==S?(t=()=>{S()},s=[S],v[0]=S,v[1]=t,v[2]=s):(t=v[1],s=v[2]),(0,r.useEffect)(t,s);let A="w-full md:max-w-md ".concat(N);v[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsxs)("div",{className:"space-y-2 text-center",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Login to create for free!"}),(0,l.jsx)("p",{className:"text-sm text-white/65",children:"Create AI music faster with free starter credits and a saved workspace."})]}),v[3]=i):i=v[3],v[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,l.jsxs)("div",{className:"flex items-center gap-3 text-sm font-medium text-white/90",children:[(0,l.jsx)(x.A,{className:"h-4 w-4 text-[#ffb84d]"}),(0,l.jsx)("span",{children:"Get free credits to start"})]}),v[4]=d):d=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsxs)("div",{className:"flex items-center gap-3 text-sm font-medium text-white/90",children:[(0,l.jsx)(f.A,{className:"h-4 w-4 text-[#8fdfff]"}),(0,l.jsx)("span",{children:"Turn ideas into finished tracks"})]}),v[5]=o):o=v[5],v[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsxs)("div",{className:"mb-6 space-y-5",children:[i,(0,l.jsxs)("div",{className:"space-y-3 rounded-3xl border border-white/8 bg-white/[0.03] p-5",children:[d,o,(0,l.jsxs)("div",{className:"flex items-center gap-3 text-sm font-medium text-white/90",children:[(0,l.jsx)(u.A,{className:"h-4 w-4 text-[#9c40ff]"}),(0,l.jsx)("span",{children:"Save projects in your workspace"})]})]})]}),v[6]=m):m=v[6];let C=(void 0===k?"/":k)||"/";return v[7]!==_||v[8]!==C?(g=(0,l.jsx)("div",{className:"grid gap-4",children:(0,l.jsx)(p.g,{configs:_,callbackUrl:C})}),v[7]=_,v[8]=C,v[9]=g):g=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(j=(0,l.jsx)("p",{className:"text-center text-xs text-neutral-500",children:"By continuing, you agree to our"}),v[10]=j):j=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(b=(0,l.jsx)(c.N_,{href:"/terms-of-service",className:"underline underline-offset-2",children:"Terms of Service"}),v[11]=b):b=v[11],v[12]===Symbol.for("react.memo_cache_sentinel")?(w=(0,l.jsxs)("div",{className:"flex w-full flex-col items-center gap-2 border-t py-4",children:[j,(0,l.jsxs)("p",{className:"text-center text-xs text-neutral-400",children:[b," ","and"," ",(0,l.jsx)(c.N_,{href:"/privacy-policy",className:"underline underline-offset-2",children:"Privacy Policy"})]})]}),v[12]=w):w=v[12],v[13]!==g||v[14]!==A?(y=(0,l.jsxs)("div",{className:A,children:[m,g,w]}),v[13]=g,v[14]=A,v[15]=y):y=v[15],y}function j(e){let t,s,x,f,u,p,j,b,w,y,v,k,N=(0,n.c)(49),{callbackUrl:_}=e,S=void 0===_?"/":_,A=(0,a.c3)("common.sign"),{isShowSignModal:C,setIsShowSignModal:M}=(0,h.U)(),U=(0,c.a8)(),[E,L]=(0,r.useState)(S),z=(0,m.U)("(min-width: 768px)");if(N[0]!==S||N[1]!==U?(t=()=>{if(S&&"/"!==S)return void L(S);U&&L(U)},s=[S,U],N[0]=S,N[1]=U,N[2]=t,N[3]=s):(t=N[2],s=N[3]),(0,r.useEffect)(t,s),z){let e,t,s,n,a,r,c,i;return N[4]!==A?(e=A("sign_in_title"),N[4]=A,N[5]=e):e=N[5],N[6]!==e?(t=(0,l.jsx)(d.L3,{children:e}),N[6]=e,N[7]=t):t=N[7],N[8]!==A?(s=A("sign_in_description"),N[8]=A,N[9]=s):s=N[9],N[10]!==s?(n=(0,l.jsx)(d.rr,{children:s}),N[10]=s,N[11]=n):n=N[11],N[12]!==t||N[13]!==n?(a=(0,l.jsxs)(d.c7,{children:[t,n]}
1),N[12]=t,N[13]=n,N[14]=a):a=N[14],N[15]!==E?(r=(0,l.jsx)(g,{callbackUrl:E}),N[15]=E,N[16]=r):r=N[16],N[17]!==a||N[18]!==r?(c=(0,l.jsxs)(d.Cf,{className:"dark border-white/10 bg-[linear-gradient(145deg,#17131f,#09090c)] text-white sm:max-w-[425px]",children:[a,r]}),N[17]=a,N[18]=r,N[19]=c):c=N[19],N[20]!==C||N[21]!==M||N[22]!==c?(i=(0,l.jsx)(d.lG,{open:C,onOpenChange:M,children:c}),N[20]=C,N[21]=M,N[22]=c,N[23]=i):i=N[23],i}return N[24]!==A?(x=A("sign_in_title"),N[24]=A,N[25]=x):x=N[25],N[26]!==x?(f=(0,l.jsx)(o.gk,{children:x}),N[26]=x,N[27]=f):f=N[27],N[28]!==A?(u=A("sign_in_description"),N[28]=A,N[29]=u):u=N[29],N[30]!==u?(p=(0,l.jsx)(o.I6,{children:u}),N[30]=u,N[31]=p):p=N[31],N[32]!==f||N[33]!==p?(j=(0,l.jsxs)(o.BE,{className:"text-left",children:[f,p]}),N[32]=f,N[33]=p,N[34]=j):j=N[34],N[35]!==E?(b=(0,l.jsx)(g,{callbackUrl:E,className:"mt-8 px-4"}),N[35]=E,N[36]=b):b=N[36],N[37]!==A?(w=A("cancel_title"),N[37]=A,N[38]=w):w=N[38],N[39]!==w?(y=(0,l.jsx)(o.tb,{className:"pt-4",children:(0,l.jsx)(o.cp,{asChild:!0,children:(0,l.jsx)(i.$,{variant:"outline",className:"rounded-full",children:w})})}),N[39]=w,N[40]=y):y=N[40],N[41]!==y||N[42]!==j||N[43]!==b?(v=(0,l.jsxs)(o.zj,{className:"dark border-white/10 bg-[linear-gradient(180deg,#17131f,#09090c)] text-white",children:[j,b,y]}),N[41]=y,N[42]=j,N[43]=b,N[44]=v):v=N[44],N[45]!==C||N[46]!==M||N[47]!==v?(k=(0,l.jsx)(o._s,{open:C,onOpenChange:M,children:v}),N[45]=C,N[46]=M,N[47]=v,N[48]=k):k=N[48],k}},36274:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(41244).A)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},52350:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(41244).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},61142:(e,t,s)=>{s.d(t,{c3:()=>a});var l=s(49991);function n(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=n(0,l.c3);n(0,l.kc)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.