1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,909996,e=>{"use strict";let t=(0,e.i(103790).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],909996)},805752,e=>{"use strict";let t=(0,e.i(103790).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,t],805752)},134893,e=>{"use strict";let t=(0,e.i(103790).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],134893)},218662,e=>{"use strict";var t=e.i(338778),s=e.i(130527),i=e.i(82570),n=e.i(703286),a=e.i(24188);function r(){let e=(0,i.useSearchParams)(),s=(0,a.safeNextPath)(e.get("next")),r="/sermons/app"===s?"/sermons/signup":`/sermons/signup?next=${encodeURIComponent(s)}`;return(0,t.jsx)(n.SigninForm,{appName:"SermonWise",callbackUrl:"/auth/callback",forgotPasswordUrl:"/sermons/forgot-password",redirectAfterLogin:s,signupUrl:r,showMagicLink:!0,accentColor:"gold"})}e.s(["default",0,function(){return(0,t.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-stone-900 to-stone-800 flex items-center justify-center px-4",children:(0,t.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 max-w-md w-full",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-serif font-bold text-stone-900",children:"SermonWise AI"}),(0,t.jsx)("p",{className:"text-stone-500 mt-1",children:"Sign in to your account"})]}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(n.SigninForm,{appName:"SermonWise",callbackUrl:"/auth/callback",forgotPasswordUrl:"/sermons/forgot-password",redirectAfterLogin:"/sermons/app",signupUrl:"/sermons/signup",showMagicLink:!0,accentColor:"gold"}),children:(0,t.jsx)(r,{})})]})})}])},703286,e=>{"use strict";var t=e.i(338778),s=e.i(130527),i=e.i(511795),n=e.i(929811),a=e.i(82570),r=e.i(134893),l=e.i(805752),o=e.i(909996);e.i(481440);var d=e.i(767584);let c={link_expired:"This link has already been used or has expired. If you already confirmed your email, just sign in below â otherwise request a new link.",missing_code:"Authentication failed â no code received. Please try again.",auth:"Authentication failed. Please try again.",auth_callback_failed:"Something went wrong during sign-in. Please try again.",confirmation_failed:"Email confirmation failed. The link may have expired â please try again."};function u({appName:e,callbackUrl:m,forgotPasswordUrl:h,signupUrl:g,showMagicLink:x=!0,accentColor:f="amber",redirectAfterLogin:p,existingAccountsOnly:b=!1}){let w=(0,a.useSearchParams)(),j=w.get("error"),y=w.get("confirmed"),v=w.get("message"),N=j?c[j]??"Authentication failed. Please try again.":null,[k,S]=(0,s.useState)(""),[C,P]=(0,s.useState)(""),[A,F]=(0,s.useState)(!1),[U,$]=(0,s.useState)(N),[M]=(0,s.use
1State)(y?"Email confirmed! Sign in to continue.":"password_reset"===v?"Password updated successfully. Please sign in.":null),[E,I]=(0,s.useState)(!1),[W,R]=(0,s.useState)(!1),[D,L]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=new URL(window.location.href),t=!1;for(let s of["confirmed","error","message"])e.searchParams.has(s)&&(e.searchParams.delete(s),t=!0);t&&window.history.replaceState({},"",e.toString())},[]);let T=`${window.location.origin}${m}?next=${encodeURIComponent(p)}`,z="gold"===f?{bg:"bg-[#D4AF37]",hover:"hover:bg-[#c9a432]",text:"text-stone-900",ring:"focus:ring-[#D4AF37]",link:"text-[#D4AF37]"}:{bg:"bg-[#1B365D]",hover:"hover:bg-[#152c4d]",text:"text-white",ring:"focus:ring-[#D4AF37]",link:"text-[#D4AF37] hover:underline"};async function B(){$(null),R(!0);let e=(0,i.createClient)(),{error:t}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:T}});t&&($(t.message),R(!1))}async function H(e){e.preventDefault(),$(null),I(!0);let t=(0,i.createClient)(),{data:s,error:n}=await t.auth.signInWithPassword({email:k,password:C});if(n){$(n.message),I(!1);return}s.user&&d.posthog?.identify(s.user.id,{email:s.user.email??k}),window.location.href=p}async function O(){if(!k)return void $("Enter your email first");$(null),I(!0);let e=(0,i.createClient)(),{error:t}=await e.auth.signInWithOtp({email:k,options:{emailRedirectTo:T,shouldCreateUser:!b}});if(t){$(t.message),I(!1);return}L(!0),I(!1)}return D?(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-4xl mb-4",children:"â"}),(0,t.jsx)("h2",{className:"text-2xl font-serif font-bold text-stone-900 mb-2",children:"Check your email"}),(0,t.jsxs)("p",{className:"text-stone-600",children:["We sent a magic link to ",(0,t.jsx)("strong",{children:k}),". Click the link to sign in."]})]}):(0,t.jsxs)(t.Fragment,{children:[M&&(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"mb-6 flex items-start gap-3 rounded-lg border-2 border-green-300 bg-green-50 p-4 shadow-sm",children:[(0,t.jsx)(o.CheckCircle2,{className:"h-6 w-6 flex-shrink-0 text-green-600 mt-0.5","aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-base font-bold text-green-900 leading-snug",children:M})]}),!b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{"data-testid":"sw-signin-auth-google",onClick:B,disabled:W,className:"w-full flex items-center justify-center gap-3 border border-stone-300 rounded-lg py-2.5 px-4 text-stone-700 font-medium hover:bg-stone-50 transition-colors disabled:opacity-50",children:[(0,t.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"}),(0,t.jsx)("path",{fill:"#34A853",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"}),(0,t.jsx)("path",{fill:"#FBBC05",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"}),(0,t.jsx)("path",{fill:"#EA4335",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"})]}),W?"Redirecting...":"Continue with Google"]}),(0,t.jsxs)("div",{className:"relative my-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-stone-200"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"bg-white px-4 text-stone-400",children:"or sign in with email"})})]})]}),(0,t.jsxs)("form",{onSubmit:H,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"signin-email",className:"block text-sm font-medium text-stone-700 mb-1",children:"Email"}),(0,t.jsx)("input",{"data-testid":"sw-signin-auth-email",id:"signin-email",type:"email",required:!0,"aria-required":"true","aria-invalid":!!U,value:k,onChange:e=>S(e.target.value),className:`w-full rounded-lg border border-stone-300 px-4 py-2.5 text-stone-900 ${z.ring} focus:border-transparent outline-none`,placeholder:"[email protected]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"signin-password",className:"block text-sm font-medium text-stone-700 mb-1",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{"data-testid":"sw-signin-auth-password",id:"signin-password",type:A?"text":"password",required:!0,"aria-required":"true","aria-invalid":!!U,value:C,onChange:e=>P(e.target.value),className:`w-full rounded-lg border border-stone-300 px-4 py-2.5 pr-10 text-stone-900 ${z.ring} focus:border-transparent outline-none`}),(0,t.jsx)("button",{"data-testid":"sw-signin-auth-toggle-password",type:"button",onClick:()=>F(!A),"aria-label":A?"Hide password":"Show password",className:"absolute right-3 top-1/2 -translate-y-1/2 text-stone-400 hover:text-stone-600",children:A?(0,t.jsx)(l.EyeOff,{className:"h-4 w-4"}):(0,t.jsx)(r.Eye,{className:"h-4 w-4"})})]})]}),h&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(n.default,{href:h,className:"text-sm text-amber-600 hover:text-amber-700",children:"Forgot your password?"})}),U&&(0,t.jsx)("div",{className:"rounded-lg bg-red-50 p-3 text-sm text-red-600",children:U}),(0,t.jsx)("button",{"data-testid":"sw-signin-auth-submit",type:"submit",disabled:E,className:`w-full ${z.bg} ${z.text} font-semibold py-2.5 rounded-lg ${z.hover} transition-colors disabled:opacity-50`,children:E?"Signing in...":"Sign In"})]}),x&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)("button",{"data-testid":"sw-signin-auth-magic-link",onClick:O,disabled:E,className:"w-full border border-stone-300 text-stone-700 font-medium py-2.5 rounded-lg hover:bg-stone-50 transition-colors disabled:opacity-50",children:"Send Magic Link Instead"})}),(0,t.jsxs)("p",{className:"text-center text-sm text-stone-500 mt-6",children:["Don't have an account?"," ",(0,t.jsx)(n.default,{href:g,className:`font-semibold ${z.link}`,children:"Sign up free"})]})]})}e.s(["SigninForm",0,function(e){return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)("div",{className:"h-64 flex items-center justify-center text-stone-400",children:"Loading..."}),children:(0,t.jsx)(u,{...e})})}])},24188,e=>{"use strict";let t="/sermons/app/new";function s(e={}){let i=new URLSearchParams,n=e.scripture?.trim(),a=e.theme?.trim(),r
1=e.tradition?.trim();n&&i.set("scripture",n),a&&i.set("theme",a),r&&i.set("tradition",r),e.source&&i.set("from",e.source);let l=i.toString();return l?`${t}?${l}`:t}e.s(["buildGeneratorHref",0,s,"buildSignupHref",0,function(e={}){return`/sermons/signup?next=${encodeURIComponent(s(e))}`},"safeNextPath",0,function(e,t="/sermons/app"){return!e||!e.startsWith("/")||e.startsWith("//")||!e.startsWith("/sermons/")||function(e){for(let t of e){let e=t.codePointAt(0);if(e<=32||127===e||"\\"===t)return!0}return!1}(e)?t:e}])}]);
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.