1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{63:(e,a,s)=>{"use strict";var r=s(7260);s.o(r,"useParams")&&s.d(a,{useParams:function(){return r.useParams}}),s.o(r,"usePathname")&&s.d(a,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(a,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(a,{useSearchParams:function(){return r.useSearchParams}})},963:(e,a,s)=>{"use strict";function r(e,a){switch(e&&"object"==typeof e&&"code"in e?String(e.code):""){case"auth/invalid-credential":case"auth/wrong-password":case"auth/user-not-found":return"Incorrect email or password.";case"auth/invalid-email":return"That email address doesn't look right.";case"auth/user-disabled":return"This account has been disabled. Please contact support.";case"auth/too-many-requests":return"Too many attempts. Please wait a moment and try again.";case"auth/email-already-in-use":return"An account with this email already exists. Try signing in instead.";case"auth/weak-password":return"Password must be at least 6 characters.";case"auth/network-request-failed":return"Network error. Check your connection and try again.";case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":case"auth/user-cancelled":return null;default:return a}}s.d(a,{C:()=>r})},4632:(e,a,s)=>{"use strict";s.d(a,{default:()=>u});var r=s(5155),t=s(2115),n=s(63),l=s(3885),i=s(5354),o=s(963);function u(){var e;let a=(0,n.useRouter)(),s=null!=(e=(0,n.useSearchParams)().get("redirect"))?e:"/generate",[u,c]=(0,t.useState)(""),[d,p]=(0,t.useState)(""),[h,m]=(0,t.useState)(!1),[b,g]=(0,t.useState)(!1),[f,x]=(0,t.useState)(null);async function y(e){await fetch("/api/auth/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:e})})}async function w(e){e.preventDefault(),x(null),m(!0);try{let e=await (0,l.x9)(i.j2,u,d),r=await e.user.getIdToken();await y(r),e.user.emailVerified?a.push(s):a.push("/verify-email")}catch(e){x((0,o.C)(e,"Sign in failed. Please try again."))}finally{m(!1)}}async function k(){x(null),g(!0);try{let e=new l.HF,r=await (0,l.df)(i.j2,e),t=await r.user.getIdToken();await y(t),a.push(s)}catch(e){x((0,o.C)(e,"Google sign in failed."))}finally{g(!1)}}return(0,r.jsxs)("div",{className:"rounded-3xl p-8 space-y-5",style:{background:"rgba(10,18,32,0.80)",border:"1px solid rgba(123,196,240,0.10)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[f&&(0,r.jsx)("p",{id:"auth-error",role:"alert",className:"rounded-2xl px-4 py-3 text-sm text-center",style:{background:"rgba(248,113,113,0.10)",border:"1px solid rgba(248,113,113,0.30)",color:"rgba(252,165,165,0.95)"},children:f}),(0,r.jsxs)("button",{onClick:k,disabled:b||h,className:"w-full flex items-center justify-center gap-3 px-4 py-3 rounded-full transition-colors disabled:opacity-50 font-medium text-sm",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.10)",color:"rgba(214,232,247,0.85)"},children:[(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,r.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,r.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,r.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),b?"Signing inâ¦":"Continue with Google"]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex-1 h-px",style:{background:"rgba(123,196,240,0.10)"}}),(0,r.jsx)("span",{className:"text-xs",style:{color:"rgba(120,160,200,0.75)"},children:"or"}),(0,r.jsx)("div",{className:"flex-1 h-px",style:{background:"rgba(123,196,240,0.10)"}})]}),(0,r.jsxs)("form",{onSubmit:w,className:"space-y-3",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("label",{htmlFor:"email",className:"text-sm font-medium pl-1",style:{color:"rgba(160,209,255,0.6)"},children:"Email"}),(0,r.jsx)("input",{id:"email",type:"email",autoComplete:"email",required:!0,"aria-invalid":!!f,"aria-describedby":f?"auth-error":void 0,value:u,onChange:e=>c(e.target.value),className:"w-full px-4 py-3 rounded-full text-base focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background",style:{background:"rgba(7,13,24,0.7)",border:"1px solid rgba(123,196,240,0.15)",color:"rgba(214,232,247,0.9)"},placeholder:"[email protected]"})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("label",{htmlFor:"password",className:"text-sm font-medium pl-1",style:{color:"rgba(160,209,255,0.6)"},children:"Password"}),(0,r.jsx)("input",{id:"password",type:"password",autoComplete:"current-password",required:!0,"aria-invalid":!!f,"aria-describedby":f?"auth-error":void 0,value:d,onChange:e=>p(e.target.value),className:"w-full px-4 py-3 rounded-full text-base focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background",style:{background:"rgba(7,13,24,0.7)",border:"1px solid rgba(123,196,240,0.15)",color:"rgba(214,232,247,0.9)"},placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),(0,r.jsx)("div",{className:"pt-1",children:(0,r.jsx)("button",{type:"submit",disabled:h||b,className:"w-full py-3 rounded-full text-white font-semibold text-sm hover:scale-[1.02] transition-all duration-200 disabled:opacity-50",style:{background:"linear-gradient(135deg, #2b5f88 0%, #4a9fd4 100%)",boxShadow:"0 8px 32px rgba(74,159,212,0.25)"},children:h?"Signing inâ¦":"Sign In"})})]})]})}},5354:(e,a,s)=>{"use strict";s.d(a,{IG:()=>p,db:()=>d,j2:()=>c});var r=s(2078),t=s(3885),n=s(9708),l=s(8134),i=s(3484);let o={apiKey:"AIzaSyDmnNsjO74ZAkKEYJhI7JqDvXfMH_uhZkE",authDomain:"storystork.firebaseapp.com",projectId:"storystork",storageBucket:"storystork.firebasestorage.app",messagingSenderId:"124162161299",appId:"1:124162161299:web:a0cb2eaa355c000c7f6b66",measurementId:s(5704).env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID},u=(0,r.Dk)().length>0?(0,r.Sx)():(0,r.Wp)(o),c=(0,t.xI)(u),d=(0,n.aU)(u),p=(0,l.c7)(u);(0,i.Uz)(u,"us-central1")},5779:(e,a,s)=>{Promise.resolve().then(s.bind(s,4632)),Promise.resolve().then(s.t.bind(s,2619,23))}},e=>{e.O(0,[2992,7811,5e3,2497,8441,1255,7358],()=>e(e.s=5779)),_N_E=e.O()}]);
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.