PageSourceSearch

https://fahswe.com/_next/static/chunks/320to_0f86xg1.js

js fahswe.com collected 2026-10-02 01:29:11 UTC 25,059 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,580860,491507,519087,e=>{"use strict";let t=(0,e.i(456420).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],580860);var a=e.i(843476),l=e.i(741120),i=e.i(271645);e.s(["HumanCaptchaStep",0,function({onVerified:e,submitLabel:t,submitting:s=!1,onSubmitVerified:r,className:c}){let[n,o]=(0,i.useState)(null),[d,h]=(0,i.useState)(""),[u,x]=(0,i.useState)(""),[f,p]=(0,i.useState)(!0),[y,m]=(0,i.useState)(!1),g=(0,i.useCallback)(async()=>{p(!0),x(""),h("");try{let e=await fetch("/api/auth/human-captcha",{cache:"no-store"}),t=await e.json().catch(()=>({}));if(!e.ok){x("string"==typeof t.error?t.error:"Could not load captcha."),o(null);return}o(t)}catch{x("Could not load captcha. Check your connection."),o(null)}finally{p(!1)}},[]);async function j(t){if(t.preventDefault(),n&&!y&&!s){x(""),m(!0);try{let t=await fetch("/api/auth/human-captcha",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({challengeId:n.challengeId,answer:d})}),a=await t.json().catch(()=>({}));if(!t.ok){x("string"==typeof a.error?a.error:"Captcha failed."),m(!1),await g();return}e?.(),await r()}catch{x("Verification failed. Try again."),await g()}finally{m(!1)}}}(0,i.useEffect)(()=>{g()},[g]);let b=f||y||s;return(0,a.jsxs)("form",{onSubmit:j,className:c??"space-y-4","aria-label":"Human verification",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-border/70 bg-background/80 p-4 sm:p-5",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-foreground",children:"Quick security check"}),(0,a.jsxs)("p",{className:"mt-1 text-xs leading-5 text-muted",children:[n?.prompt??"Loading a short check…"," One easy step — keeps bots out of your client portal."]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>void g(),disabled:b,className:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-border text-muted transition hover:bg-surface hover:text-foreground disabled:opacity-50","aria-label":"Refresh captcha",title:"New code",children:(0,a.jsx)(l.RefreshCw,{className:`h-4 w-4 ${f?"animate-spin":""}`})})]}),(0,a.jsx)("div",{className:"mt-4 flex min-h-[4.5rem] items-center justify-center rounded-xl border border-dashed border-border/80 bg-[color-mix(in_srgb,var(--surface)_55%,var(--background))] px-3 py-4 sm:min-h-[5.25rem]",children:f||!n?(0,a.jsx)("span",{className:"text-sm text-muted",children:"Loading…"}):"math"===n.kind?(0,a.jsxs)("p",{className:"text-center text-2xl font-bold tracking-wide text-foreground sm:text-3xl",children:[n.prompt.replace(/\?$/,""),(0,a.jsx)("span",{className:"text-muted",children:" = ?"})]}):(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-1.5 sm:gap-2","aria-hidden":!0,children:(n.display||"").split("").map((e,t)=>(0,a.jsx)("span",{className:"inline-flex h-11 w-9 items-center justify-center rounded-lg border border-border/50 bg-surface text-xl font-black text-foreground shadow-sm sm:h-12 sm:w-10 sm:text-2xl",style:{transform:`rotate(${(t%3-1)*4}deg) translateY(${t%2*2}px)`,letterSpacing:"0.02em"},children:e},`${n.challengeId}-${t}`))})}),n?.kind==="code"?(0,a.jsx)("p",{className:"mt-2 text-center text-[11px] text-muted sm:text-xs",children:"Enter the letters and numbers exactly as shown (case does not matter)."}):null]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"human-captcha-answer",className:"mb-1.5 block text-sm font-medium",children:"Your answer"}),(0,a.jsx)("input",{id:"human-captcha-answer",type:"text",inputMode:n?.kind==="math"?"numeric":"text",autoComplete:"off",autoCapitalize:"characters",spell
1Check:!1,value:d,onChange:e=>h(n?.kind==="math"?e.target.value.replace(/[^\d]/g,"").slice(0,3):e.target.value.toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,8)),required:!0,disabled:b||!n,className:"w-full rounded-xl border border-border bg-background px-4 py-3 text-center text-base font-semibold tracking-[0.2em] outline-none ring-brand-orange/30 transition focus:ring-2 sm:text-lg",placeholder:n?.kind==="math"?"e.g. 7":"CODE","aria-describedby":u?"human-captcha-error":void 0})]}),u?(0,a.jsx)("p",{id:"human-captcha-error",className:"rounded-lg bg-red-500/10 px-3 py-2 text-sm text-red-500",children:u}):null,(0,a.jsx)("button",{type:"submit",disabled:b||!n||d.trim().length<1,className:"w-full rounded-full bg-brand-gradient-slide py-3 text-sm font-semibold text-white shadow-brand disabled:opacity-60",children:y||s?"Checking…":t})]})}],491507);var s=e.i(526732),r=e.i(618566),c=e.i(810382),n=e.i(975157);function o(){return(0,a.jsxs)("svg",{className:"h-5 w-5 shrink-0",viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,a.jsx)("path",{fill:"#4285F4",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"}),(0,a.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,a.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,a.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"})]})}function d(){return(0,a.jsx)("svg",{className:"h-5 w-5 shrink-0",viewBox:"0 0 24 24","aria-hidden":!0,children:(0,a.jsx)("path",{fill:"#1877F2",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}e.s(["OAuthButtons",0,function({callbackUrl:e="/dashboard",mode:t="login",beforeStart:l,className:h}){let{t:u}=(0,c.useLocale)(),x=(0,r.useSearchParams)(),[f,p]=(0,i.useState)({google:!1,facebook:!1}),[y,m]=(0,i.useState)(null),[g,j]=(0,i.useState)("");async function b(a){if(j(""),!l||await l(a)){m(a);try{let l=await fetch("/api/auth/oauth-intent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({intent:t,referId:"register"===t&&x.get("ref")||void 0})});if(!l.ok){let e=await l.json().catch(()=>({}));m(null),j("string"==typeof e.error?e.error:"Complete the security check first, then try again.");return}await (0,s.signIn)(a,{callbackUrl:e,redirect:!0})}catch{m(null),j("login"===t?"Google sign-in could not start. Use email and password, or create an account first.":"Sign-up could not start. Complete the security check, then try again.")}}}return((0,i.useEffect)(()=>{fetch("/api/settings/oauth").then(e=>e.json()).then(p).catch(()=>{})},[]),f.google||f.facebook)?(0,a.jsxs)("div",{className:(0,n.cn)("auth-clay-oauth space-y-3",h),children:[f.google?(0,a.jsxs)("button",{type:"button",disabled:null!==y,onClick:()=>b("google"),className:"auth-clay-oauth-btn",children:[(0,a.jsx)(o,{}),(0,a.jsx)("span",{children:u("google"===y?"auth.login.googleRedirect":"auth.login.google")})]}):null,f.facebook?(0,a.jsxs)("button",{type:"button",disabled:null!==y,onClick:()=>b("facebook"),className:"auth-clay-oauth-btn",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{children:u("facebook"===y?"auth.login.facebookRedirect":"auth.login.facebook")})]}):null,g?(0,a.jsx)("p",{className:"text-center text-xs text-red-500",children:g}):null]}):null}],519087)},772382,e=>{"use strict";let t=(0,e.i(456420).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],772382)},806537,e=>{"use strict";
1let t=(0,e.i(456420).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",0,t],806537)},96315,e=>{"use strict";let t=(0,e.i(456420).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],96315)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},47840,e=>{"use strict";var t=e.i(843476),a=e.i(522016);function l({variant:e="login"}){return(0,t.jsxs)("svg",{className:"auth-clay-scene",viewBox:"0 0 560 420",role:"img","aria-label":"Cheerful 3D-style illustration of a person working at a desk",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"clayWall",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#F7F1E8"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#EDE4D6"})]}),(0,t.jsxs)("linearGradient",{id:"claySky",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#9ED7FF"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#D6F0FF"})]}),(0,t.jsxs)("linearGradient",{id:"clayHair",x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#6B3F2A"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#3E2316"})]}),(0,t.jsxs)("linearGradient",{id:"claySweater",x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#B9A4F5"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#8B74E8"})]}),(0,t.jsxs)("linearGradient",{id:"clayDesk",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#E8C9A0"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#C99762"})]}),(0,t.jsx)("filter",{id:"claySoft",x:"-20%",y:"-20%",width:"140%",height:"140%",children:(0,t.jsx)("feDropShadow",{dx:"0",dy:"10",stdDeviation:"10",floodColor:"#5B4A8A",floodOpacity:"0.12"})})]}),(0,t.jsx)("rect",{x:"0",y:"0",width:"560",height:"420",fill:"url(#clayWall)",rx:"28"}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("path",{d:"M78 188 V108 A70 70 0 0 1 218 108 V188 Z",fill:"#F4EBDD",stroke:"#D9C8B0",strokeWidth:"10"}),(0,t.jsx)("path",{d:"M92 180 V112 A56 56 0 0 1 204 112 V180 Z",fill:"url(#claySky)"}),(0,t.jsx)("ellipse",{cx:"118",cy:"128",rx:"18",ry:"10",fill:"#fff",opacity:"0.9"}),(0,t.jsx)("ellipse",{cx:"148",cy:"122",rx:"24",ry:"12",fill:"#fff",opacity:"0.85"}),(0,t.jsx)("ellipse",{cx:"176",cy:"134",rx:"16",ry:"9",fill:"#fff",opacity:"0.8"}),(0,t.jsx)("ellipse",{cx:"130",cy:"168",rx:"22",ry:"14",fill:"#7BC47F"}),(0,t.jsx)("ellipse",{cx:"158",cy:"172",rx:"26",ry:"16",fill:"#5EAE66"}),(0,t.jsx)("ellipse",{cx:"186",cy:"166",rx:"18",ry:"12",fill:"#8FD18F"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("rect",{x:"248",y:"78",width:"110",height:"14",rx:"7",fill:"#CFA57A"}),(0,t.jsx)("path",{d:"M268 78 C268 48 288 42 288 64 C288 42 308 48 308 78 Z",fill:"#6FBF73"}),(0,t.jsx)("path",{d:"M298 78 C298 52 318 46 318 66 C318 46 338 54 338 78 Z",fill:"#57A85C"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("rect",{x:"392",y:"72",width:"58",height:"78",rx:"12",fill:"#B9A4F5"}),(0,t.jsx)("rect",{x:"402",y:"88",width:"38",height:"48",rx:"8",fill:"#FFF7FB"}),(0,t.jsx)("circle",{cx:"421",cy:"108",r:"8",fill:"#F4A7C3"}),(0,t.jsx)("rect",{x:"410",y:"122",width:"22",height:"5",rx:"2.5",fill:"#E8DDF8"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("ellipse",{cx:"292",cy:"168",rx:"62",ry:"58",fill:"url(#clayHair)"}),(0,t.jsx)("ellipse",{cx:"292",cy:"178",rx:"42",ry:"40",fill:"#F3C7A8"}
1),(0,t.jsx)("path",{d:"M252 168 C258 128 292 118 332 148 C318 128 278 124 252 168 Z",fill:"url(#clayHair)"}),(0,t.jsx)("path",{d:"M248 190 C236 230 250 268 268 274 C258 240 252 210 248 190 Z",fill:"url(#clayHair)"}),(0,t.jsx)("path",{d:"M336 188 C348 228 338 268 318 276 C330 240 336 210 336 188 Z",fill:"url(#clayHair)"}),(0,t.jsx)("ellipse",{cx:"276",cy:"178",rx:"7",ry:"8",fill:"#2B1B14"}),(0,t.jsx)("ellipse",{cx:"308",cy:"178",rx:"7",ry:"8",fill:"#2B1B14"}),(0,t.jsx)("circle",{cx:"274",cy:"175",r:"2.2",fill:"#fff"}),(0,t.jsx)("circle",{cx:"306",cy:"175",r:"2.2",fill:"#fff"}),(0,t.jsx)("ellipse",{cx:"262",cy:"192",rx:"8",ry:"5",fill:"#F2A0B8",opacity:"0.55"}),(0,t.jsx)("ellipse",{cx:"322",cy:"192",rx:"8",ry:"5",fill:"#F2A0B8",opacity:"0.55"}),(0,t.jsx)("path",{d:"M278 198 Q292 210 306 198",fill:"none",stroke:"#C47A6A",strokeWidth:"3",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M222 286 C230 236 260 228 292 228 C324 228 354 236 362 286 C368 322 348 348 292 348 C236 348 216 322 222 286 Z",fill:"url(#claySweater)"}),(0,t.jsx)("path",{d:"M268 236 C280 252 304 252 316 236 C304 244 280 244 268 236 Z",fill:"#7C66D8"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("ellipse",{cx:"280",cy:"348",rx:"210",ry:"36",fill:"url(#clayDesk)"}),(0,t.jsx)("ellipse",{cx:"280",cy:"340",rx:"200",ry:"28",fill:"#F0D2AE"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("rect",{x:"218",y:"268",width:"118",height:"78",rx:"10",fill:"#9AA3B5"}),(0,t.jsx)("rect",{x:"228",y:"278",width:"98",height:"58",rx:"6",fill:"#DDE3EF"}),(0,t.jsx)("circle",{cx:"277",cy:"308",r:"10",fill:"#FFF"}),(0,t.jsx)("path",{d:"M277 300 C281 304 281 310 277 314 C273 310 273 304 277 300 Z",fill:"#B9A4F5"}),(0,t.jsx)("rect",{x:"208",y:"344",width:"138",height:"12",rx:"6",fill:"#7E8798"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("rect",{x:"150",y:"318",width:"52",height:"18",rx:"5",fill:"#F2C94C",transform:"rotate(-8 176 327)"}),(0,t.jsx)("rect",{x:"156",y:"332",width:"52",height:"18",rx:"5",fill:"#9B82F0",transform:"rotate(-4 182 341)"})]}),(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("ellipse",{cx:"392",cy:"336",rx:"18",ry:"10",fill:"#A78BFA"}),(0,t.jsx)("path",{d:"M382 328 C378 300 392 292 392 312 C392 292 410 300 402 328 Z",fill:"#62B86A"}),(0,t.jsx)("path",{d:"M388 328 C392 304 410 300 406 322",fill:"#7CCD82"})]}),"login"===e?(0,t.jsxs)("g",{filter:"url(#claySoft)",transform:"translate(330 250)",children:[(0,t.jsx)("path",{d:"M0 28 C0 8 10 0 24 0 C38 0 48 8 48 28 L44 58 C42 70 30 76 24 76 C18 76 6 70 4 58 Z",fill:"#F4A7C3"}),(0,t.jsx)("ellipse",{cx:"24",cy:"8",rx:"18",ry:"7",fill:"#FFE3EE"}),(0,t.jsx)("path",{d:"M48 22 C62 22 66 34 58 42 C52 48 48 44 48 38",fill:"none",stroke:"#F4A7C3",strokeWidth:"8",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M18 38 C22 34 28 34 32 38 C28 42 22 42 18 38 Z",fill:"#fff",opacity:"0.9"}),(0,t.jsx)("path",{d:"M16 -6 C14 -18 22 -22 24 -10",fill:"none",stroke:"#F4A7C3",strokeWidth:"4",strokeLinecap:"round",opacity:"0.7"}),(0,t.jsx)("path",{d:"M30 -4 C28 -16 36 -20 38 -8",fill:"none",stroke:"#F4A7C3",strokeWidth:"4",strokeLinecap:"round",opacity:"0.55"})]}):(0,t.jsxs)("g",{filter:"url(#claySoft)",transform:"translate(430 300)",children:[(0,t.jsx)("path",{d:"M0 18 C0 6 8 0 18 0 C28 0 36 6 36 18 L34 40 C32 48 24 52 18 52 C12 52 4 48 2 40 Z",fill:"#F4A7C3"}),(0,t.jsx)("ellipse",{cx:"18",cy:"6",rx:"14",ry:"5",fill:"#FFE3EE"}),(0,t.jsx)("path",{d:"M14 26 C17 23 21 23 24 26 C21 29 17 29 14 26 Z",fill:"#fff",opacity:"0.9"}),(0,t.jsx)("path",{d:"M12 -4 C10 -12 16 -14 18 -6",fill:"none",stroke:"#F4A7C3",strokeWidth:"3",strokeLinecap:"round",opacity:"0.65"})]}),"register"===e?(0,t.jsxs)("g",{filter:"url(#claySoft)",children:[(0,t.jsx)("rect",{x:"348",y:"318",width:"54",height:"40",rx:"6",fill:"#FFF8F0",transform:"rotate(-12 375 338)"}),(0,t.jsx)("rect",{x:"356",y:"326",width:"30",height:"3",rx:"1.5",fill:"#E8DDF8",transform:"rotate(-12 371 327)"}),(0,t.jsx)("rect",{x:"358",y:"334",width:"24",height:"3",rx:"1.5",fill:"#E8DDF8",transform:"rotate(-12 370 335)"}
1),(0,t.jsx)("rect",{x:"400",y:"310",width:"8",height:"42",rx:"4",fill:"#8B74E8",transform:"rotate(18 404 331)"})]}):null]})}var i=e.i(622159),s=e.i(894013),r=e.i(772562),c=e.i(975157);e.s(["AuthClayShell",0,function({mode:e,children:n,heroTitle:o,heroLead:d,className:h}){return(0,t.jsxs)("div",{className:(0,c.cn)("auth-clay-page",h),children:[(0,t.jsxs)("div",{className:"auth-clay-toolbar","aria-label":"Language and theme",children:[(0,t.jsx)(i.LanguageSwitcher,{compact:!0}),(0,t.jsx)(s.ThemeToggle,{})]}),(0,t.jsxs)("div",{className:"auth-clay-frame",children:[(0,t.jsxs)("aside",{className:"auth-clay-hero",children:[(0,t.jsx)(a.default,{href:"/",className:"auth-clay-brand","aria-label":"Fah Swe home",children:(0,t.jsx)(r.Logo,{size:"sm",className:"auth-clay-logo"})}),(0,t.jsxs)("div",{className:"auth-clay-hero-copy",children:[(0,t.jsx)("h1",{className:"auth-clay-hero-title",children:o}),(0,t.jsx)("p",{className:"auth-clay-hero-lead",children:d})]}),(0,t.jsx)("div",{className:"auth-clay-scene-wrap",children:(0,t.jsx)(l,{variant:"login"===e?"login":"register"})})]}),(0,t.jsx)("section",{className:"auth-clay-panel",children:n})]})]})}],47840)},828420,e=>{"use strict";var t=e.i(843476),a=e.i(522016),l=e.i(772382),i=e.i(580860),s=e.i(806537),r=e.i(96315),c=e.i(526732),n=e.i(618566),o=e.i(271645),d=e.i(47840),h=e.i(491507),u=e.i(519087),x=e.i(810382),f=e.i(623534);e.s(["LoginForm",0,function(){let{t:e}=(0,x.useLocale)(),p=(0,n.useRouter)(),y=(0,n.useSearchParams)(),m=y.get("callbackUrl")??"/dashboard",g=y.get("error"),j="NoAccount"===g,[b,C]=(0,o.useState)("account"),[w,k]=(0,o.useState)(null),[v,N]=(0,o.useState)(""),[S,F]=(0,o.useState)(""),[A,M]=(0,o.useState)(!1),[E,B]=(0,o.useState)(""),[D,L]=(0,o.useState)(!1),[T,O]=(0,o.useState)(()=>(function(e){if(!e)return"";switch(e){case"NoAccount":return"";case"OAuthAccountNotLinked":return"This email already has a password account. Sign in with email/password, then go to Dashboard → Settings → Linked logins to connect Google safely.";case"OAuthCallback":case"OAuthSignin":case"OAuthCreateAccount":return"Google sign-in could not finish. If this email already exists, sign in with your password and connect Google from Dashboard → Settings → Linked logins.";case"AccessDenied":return"Google sign-in was cancelled. You can use email and password below, or try Google again.";case"Configuration":return"Google sign-in is temporarily unavailable. Use email and password below — your account is safe.";case"HumanRequired":return"Complete the security check, then try Google again.";default:return"Google sign-in could not finish. Use email and password below, or try Google again."}})(g)),[G,H]=(0,o.useState)(!1);async function Z(e){if(e.preventDefault(),O(""),D){H(!0);let e=await (0,c.signIn)("credentials",{email:v,password:S,totp:E.trim(),redirect:!1});if(H(!1),e?.error){let t=String(e.code??e.error??"");return"totp_invalid"===t||t.includes("totp_invalid")?void O("Invalid authenticator code. Try again."):(O("Sign-in failed. Try again."),void L(!1))}return p.push(m),void p.refresh()}v.trim()&&S?(k(null),C("captcha")):O("Enter email and password.")}async function I(){H(!0),O("");try{if(w){let e=await fetch("/api/auth/oauth-intent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({intent:"login"})});if(!e.ok){let t=await e.json().catch(()=>({}));O("string"==typeof t.error?t.error:"Security check expired. Try again."),H(!1),C("account");return}await (0,c.signIn)(w,{callbackUrl:m,redirect:!0});return}let e=await (0,c.signIn)("credentials",{email:v,password:S,totp:D?E.trim():void 0,redirect:!1});if(H(!1),e?.error){let t=String(e.code??e.error??"");if("account_locked"===t||t.includes("account_locked")){O("Account locked for 15 minutes after too many failed attempts. Wait, then try again."),C("account");return}if("totp_required"===t||t.includes("totp_required")){L(!0),B(""),O("Enter your Google Authenticator code to continue."),C("account");return}if("totp_invalid"===t||t.includes("totp_invalid")){L(!0),O("Invalid authenticator code. Try again."),C("account");return}L(!1),B(""),O("Invalid email or password. Use the password from Sign up (not your Google account password)."),C("account");return}p.push(m),p.refresh()}catch{H(!1),O("Sign-in failed. Try again."),C("account")}}return(0,t.jsx)(d.AuthClayShell,{mode:"login",heroTitle:e("auth.login.heroTitle"),heroLead:e("auth.login.heroLead"),children:(0,t.jsxs)("div",{className:"auth-clay-card",children:[(0,t.jsx)("h2",{className:"auth-clay-card-title",children:e("auth.login.cardTitle")}),(0,t.jsx)("p",{className:"auth-clay-card-lead",children:e("captcha"===b?"auth.login.cardLeadCaptcha":"auth.login.cardLead")}),D?null:(0,t.jsxs)("div",{className:"auth-clay-steps","aria-hidden":!0,
1children:[(0,t.jsx)("span",{"data-active":"account"===b,children:e("auth.login.step1")}),(0,t.jsx)("span",{children:"→"}),(0,t.jsx)("span",{"data-active":"captcha"===b,children:e("auth.login.step2")})]}),j&&"account"===b?(0,t.jsxs)("div",{className:"auth-clay-info",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[var(--auth-ink)]",children:e("auth.login.noAccountTitle")}),(0,t.jsx)("p",{className:"mt-1.5 text-sm leading-6 text-[var(--auth-muted)]",children:e("auth.login.noAccountBody")}),(0,t.jsx)(a.default,{href:"/register",className:"auth-clay-btn mt-4 inline-flex items-center justify-center no-underline",children:e("auth.login.createAccount")})]}):null,T?(0,t.jsx)("p",{className:"auth-clay-error",children:T}):null,"account"===b?(0,t.jsxs)(t.Fragment,{children:[D?null:(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)(u.OAuthButtons,{callbackUrl:m,mode:"login",beforeStart:e=>(O(""),k(e),L(!1),C("captcha"),!1)}),(0,t.jsx)("p",{className:"auth-clay-hint mt-3",children:e("auth.login.oauthHint")})]}),D?(0,t.jsx)("p",{className:"mt-5 text-sm text-[var(--auth-muted)]",children:e("auth.login.totpHint")}):(0,t.jsx)("div",{className:"auth-clay-divider",children:e("auth.login.or")}),(0,t.jsxs)("form",{onSubmit:Z,className:"space-y-4","aria-label":"Login form",children:[D?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"totp",className:"auth-clay-label",children:e("auth.login.totp")}),(0,t.jsx)("input",{id:"totp",type:"text",inputMode:"numeric",value:E,onChange:e=>B(e.target.value),autoComplete:"one-time-code",autoFocus:!0,required:!0,maxLength:8,className:"auth-clay-input auth-clay-input--plain",placeholder:e("auth.login.totpPh")}),(0,t.jsx)("button",{type:"button",className:"auth-clay-back mt-2",onClick:()=>{L(!1),B(""),O("")},children:e("auth.login.backCreds")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"auth-clay-label",children:e("auth.login.email")}),(0,t.jsxs)("div",{className:"auth-clay-field",children:[(0,t.jsx)(r.Mail,{className:"auth-clay-field-icon","aria-hidden":!0}),(0,t.jsx)("input",{id:"email",type:"email",value:v,onChange:e=>N(e.target.value),autoComplete:"email",required:!0,className:"auth-clay-input",placeholder:e("auth.login.emailPh")})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"auth-clay-label",children:e("auth.login.password")}),(0,t.jsxs)("div",{className:"auth-clay-field",children:[(0,t.jsx)(s.Lock,{className:"auth-clay-field-icon","aria-hidden":!0}),(0,t.jsx)("input",{id:"password",type:A?"text":"password",value:S,onChange:e=>F(e.target.value),autoComplete:"current-password",required:!0,className:"auth-clay-input pr-12",placeholder:e("auth.login.passwordPh")}),(0,t.jsx)("button",{type:"button",className:"auth-clay-eye",onClick:()=>M(e=>!e),"aria-label":A?"Hide password":"Show password",children:A?(0,t.jsx)(i.EyeOff,{className:"h-4 w-4"}):(0,t.jsx)(l.Eye,{className:"h-4 w-4"})})]}),(0,t.jsx)("p",{className:"mt-2 text-right",children:(0,t.jsx)(a.default,{href:"/forgot-password",className:"text-xs font-semibold text-brand-orange hover:underline",children:e("auth.login.forgot")})})]})]}),(0,t.jsx)("button",{type:"submit",disabled:G||D&&E.trim().length<6,className:"auth-clay-btn",children:e(G?"auth.login.signingIn":D?"auth.login.verify":"auth.login.submit")})]})]}):(0,t.jsxs)("div",{className:"mt-5 space-y-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{C("account"),k(null),O("")},className:"auth-clay-back",children:e("auth.login.back")}),(0,t.jsx)(h.HumanCaptchaStep,{className:"auth-clay-captcha space-y-4",submitLabel:w?`Verify & continue with ${"facebook"===w?"Facebook":"Google"}`:e(G?"auth.login.signingIn":"auth.login.verify"),submitting:G,onSubmitVerified:I})]}),(0,t.jsxs)("p",{className:"auth-clay-foot",children:[e("auth.login.noAccount")," ",(0,t.jsx)(a.default,{href:"/register",children:e("auth.login.signUp")})]}),(0,t.jsx)("p",{className:"mt-3 text-center text-xs text-[var(--auth-muted)]",children:e("auth.login.protected",{name:f.siteConfig.name})})]})})}])}]);

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.