PageSourceSearch

https://socq.ai/_next/static/chunks/631-07ac253e79ddfc97.js

js socq.ai collected 2026-10-05 12:39:28 UTC 23,403 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[631],{631:(e,a,t)=>{t.r(a),t.d(a,{default:()=>P});var r=t(95155),s=t(12115),i=t(93053),o=t(61723),l=t(66609),n=t(31691),c=t(91337),d=t(5772),u=t(74350),m=t(4474),f=t(39658),h=t(79792),p=t(61991),g=t(50910);let x={enableUtm:!0,enableReferrer:!0};function v(e){return e?e.source:function(e={}){let a,t,r={...x,...e};if(r.enableUtm){let e,a,t,r,s=(a=(e=new URLSearchParams(window.location.search)).get("utm_source"),t=e.get("utm_medium"),r=e.get("utm_campaign"),a?{source:a,utmSource:a,utmMedium:t||void 0,utmCampaign:r||void 0,detectionMethod:"utm"}:null);if(s)return s}let s=(t=(a=new URLSearchParams(window.location.search)).get("source")||a.get("ref"))?{source:t,detectionMethod:"query_param"}:null;if(s)return s;if(r.enableReferrer){let e=function(e){if("u"<typeof document||!document.referrer)return null;let a=document.referrer,t=new URL(a).hostname;if(e){for(let[r,s]of Object.entries(e))if(t.includes(r.toLowerCase()))return{source:s,rawReferrer:a,detectionMethod:"referrer"}}return t===window.location.hostname?null:{source:t,rawReferrer:a,detectionMethod:"referrer"}}(r.customDomainMapping);if(e)return e}return{source:"direct_visit",detectionMethod:"default"}}().source}function w(){try{if(document.referrer){let e=new URL(document.referrer);if(e.hostname===window.location.hostname)return`${e.pathname}${e.search}`}return`${window.location.pathname}${window.location.search}`}catch(e){console.error("Error detecting internal source:",e);return}}function _(){let e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source")||void 0,utm_medium:e.get("utm_medium")||void 0,utm_campaign:e.get("utm_campaign")||void 0,registration_page:window.location.pathname}}var j=t(42726),y=t(64929),b=t(92289),N=t(25777),C=t(6296),k=t(80723),R=t(42869);let S=({className:e})=>(0,r.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),A=({className:e})=>(0,r.jsxs)("svg",{className:e,viewBox:"0 0 23 23","aria-hidden":"true",children:[(0,r.jsx)("path",{fill:"#f25022",d:"M1 1h10v10H1z"}),(0,r.jsx)("path",{fill:"#7fba00",d:"M12 1h10v10H12z"}),(0,r.jsx)("path",{fill:"#00a4ef",d:"M1 12h10v10H1z"}),(0,r.jsx)("path",{fill:"#ffb900",d:"M12 12h10v10H12z"})]}),P=({app_name:e,onLoginSuccess:a,reloadOnSuccess:t=!0,open:x,onOpenChange:P,defaultView:E="login",defaultAffiliateCode:$=""})=>{let I,F,M=(0,g.c)("Global.Common.modals.login"),{isLoggedIn:U}=(0,y.u)(),z=M("affiliateCode.label"),J=M("affiliateCode.placeholder"),L=$.trim(),G="Ov23liqjxT0IIbQtnWzb",H="f4870574-dd42-459f-bf5a-6cc55fac869d",q="0x4AAAAAAA6_qfnIxrMqqUjG",B=`${window.location.origin}/auth/github/callback`,D=`${window.location.origin}/auth/microsoft/callback`,[T,V]=(0,s.useState)(!1),[O,W]=(0,s.useState)(E),[K,Q]=(0,s.use
1State)(""),[X,Y]=(0,s.useState)(""),[Z,ee]=(0,s.useState)(""),[ea,et]=(0,s.useState)(""),[er,es]=(0,s.useState)(L),[ei,eo]=(0,s.useState)(""),[el,en]=(0,s.useState)(""),[ec,ed]=(0,s.useState)(!1),[eu,em]=(0,s.useState)(0),[ef,eh]=(0,s.useState)("idle"),[ep,eg]=(0,s.useState)(""),[ex,ev]=(0,s.useState)(null),[ew,e_]=(0,s.useState)(!1),[ej,ey]=(0,s.useState)(null),eb=(0,s.useRef)(null),eN=(0,s.useRef)(0),eC=(0,s.useRef)(null),ek=(0,s.useCallback)(()=>{en(""),eC.current?.reset()},[]),eR=(0,s.useCallback)(()=>{eN.current+=1,eb.current?.abort(),eb.current=null},[]),eS=(0,s.useCallback)((e,a=!1)=>{eR(),eh("idle"),eg(""),ev(null),e_(a&&e.length>0),ey(null)},[eR]),eA=(0,s.useCallback)(e=>{switch(e){case"affiliate_code_invalid":default:return M("affiliateCode.errors.affiliate_code_invalid");case"affiliate_code_inactive":return M("affiliateCode.errors.affiliate_code_inactive");case"affiliate_code_vendor_mismatch":return M("affiliateCode.errors.affiliate_code_vendor_mismatch");case"affiliate_code_not_allowed":return M("affiliateCode.errors.affiliate_code_not_allowed");case"vendor_not_found":return M("affiliateCode.errors.vendor_not_found")}},[M]),eP=(0,s.useCallback)(e=>{switch(e){case"affiliate_code_invalid":case"affiliate_code_inactive":case"affiliate_code_vendor_mismatch":case"affiliate_code_not_allowed":case"vendor_not_found":return eA(e);case"social_email_not_verified":return"This social account email is not verified. Please verify it first.";case"social_account_conflict":return"This social account is already linked to another account.";default:return null}},[eA]),eE=(0,s.useCallback)(async a=>{let t=a.trim();if(!t||!x||"register"!==O||U)return"skipped";eR();let r=new AbortController,s=eN.current+1;eN.current=s,eb.current=r,eh("checking"),eg(""),ev(null),ey(M("affiliateCode.checking"));try{let a=await n.apiService.checkAffiliateCode({affiliate_code:t,slug:e},{signal:r.signal});if(eN.current!==s)return"skipped";if(200===a.code&&!0===a.data.valid)return eh("valid"),eg(t),ev("valid"),e_(!1),ey(M("affiliateCode.valid")),"valid";if(200===a.code&&!1===a.data.valid)return eh("invalid"),eg(t),ev("invalid"),e_(!1),ey(a.data.message||eA(a.data.reason)||M("affiliateCode.errors.affiliate_code_invalid")),"invalid";return eh("idle"),eg(t),ev(null),e_(!1),ey(null),"unavailable"}catch(e){if((e instanceof DOMException?"AbortError"===e.name:!!(e&&"object"==typeof e&&"name"in e&&"AbortError"===e.name))||eN.current!==s)return"skipped";return eh("idle"),eg(t),ev(null),e_(!1),ey(null),"unavailable"}finally{eb.current===r&&(eb.current=null)}},[e,eR,eA,U,x,M,O]),e$=(0,s.useCallback)(r=>{localStorage.setItem(`${e}_token`,r.data.access_token),a&&a(),t&&window.location.reload()},[e,a,t]),eI=()=>{Q(""),Y(""),ee(""),et(""),es(L),eo(""),ek(),ed(!1),em(0),eS(L,!1)};(0,s.useEffect)(()=>{x&&(Q(""),Y(""),ee(""),et(""),es(L),eo(""),ek(),ed(!1),em(0),W(E),eS(L,!1))},[E,L,x,eS,ek]),(0,s.useEffect)(()=>()=>{eR()},[eR]);let eF=(0,s.useCallback)((e,a)=>{let t=("string"==typeof e?.message?e.message:"").trim(),r=t.toLowerCase();if(r.includes("device security")||r.includes("device is not supported")||r.includes("device fingerprint"))return void l.oR.error(M("deviceNotSupported")||"Device initialization failed. Please refresh the page and try again.");let s=eP(t);s?l.oR.error(s):l.oR.error("Login Failed",{description:`Unable to log in with ${a}. Please try again.`})},[eP,M]),eM=(0,s.useCallback)((e,a)=>{e.data?.user_info?.is_new_user&&(0,j.wJ)(a),e$(e)},[e$]),eU=(0,s.useCallback)(async a=>{try{V(!0);let t=v(),r=w(),s=_(),i=er.trim(),o=await n.apiService.loginWithGoogle(a,e,t,r,i||void 0,{first_utm_source:s.utm_source,first_utm_campaign:s.utm_campaign,first_utm_medium:s.utm_medium,registration_page:s.registration_page});eM(o,"google")}catch(e){eF(e,"Google")}finally{V(!1)}},[er,e,eF,eM]),ez=(0,s.useCallback)(()=>{if(!G)return void l.oR.error("GitHub login is not configured");let a=Math.random().toString(36).substring(7),t=er.trim();sessionStorage.setItem("github_oauth_state",a),sessionStorage.setItem("github_oauth_app_name",e),sessionStorage.setItem("github_oauth_source",v()),sessionStorage.setItem("github_oauth_internal_source",w()||window.location.pathname),t?sessionStorage.setItem("github_oauth_affiliate_code",t):sessionStorage.removeItem("github_oauth_affiliate_code");let r=`https://github.com/login/oauth/authorize?client_id=${G}&redirect_uri=${encodeURIComponent(B)}&scope=${encodeURIComponent("read:user user:email")}&state=${a}`;window.location.href=r},[er,e,G,B]),eJ=(0,s.useCallback)(()=>
1{if(!H)return void l.oR.error("Microsoft login is not configured");let a=Math.random().toString(36).substring(7),t=er.trim();sessionStorage.setItem("microsoft_oauth_state",a),sessionStorage.setItem("microsoft_oauth_app_name",e),sessionStorage.setItem("microsoft_oauth_source",v()),sessionStorage.setItem("microsoft_oauth_internal_source",w()||window.location.pathname),sessionStorage.setItem("microsoft_oauth_redirect_uri",D),t?sessionStorage.setItem("microsoft_oauth_affiliate_code",t):sessionStorage.removeItem("microsoft_oauth_affiliate_code");let r=`https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${H}&response_type=code&redirect_uri=${encodeURIComponent(D)}&response_mode=query&scope=${encodeURIComponent("openid profile email User.Read")}&state=${a}`;window.location.href=r},[er,e,H,D]),eL=(0,s.useCallback)(e=>(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsxs)("div",{className:"w-full max-w-[320px] space-y-3",children:[(0,r.jsx)(i.j,{onSuccess:async e=>{await eU(e.credential||"")},onError:()=>{l.oR.error("Login Failed",{description:"Unable to log in with Google. Please try again."})},theme:"filled_blue",size:"large",width:"320",text:"register"===e?"continue_with":"signin_with"}),G&&(0,r.jsxs)(m.$,{variant:"outline",className:"w-full h-10 flex items-center justify-center gap-2",onClick:ez,disabled:T,children:[(0,r.jsx)(S,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:"register"===e?"Continue with GitHub":"Sign in with GitHub"})]}),H&&(0,r.jsxs)(m.$,{variant:"outline",className:"w-full h-10 flex items-center justify-center gap-2",onClick:eJ,disabled:T,children:[(0,r.jsx)(A,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:"register"===e?"Continue with Microsoft":"Sign in with Microsoft"})]})]})}),[G,ez,eU,eJ,T,H]);(0,s.useEffect)(()=>{let e=er.trim();x&&"register"===O&&!U&&"checking"!==ef&&!ew&&e&&e===L&&ep!==e&&eE(e)},[er,ef,ew,U,ep,L,x,eE,O]);let eG=(0,s.useCallback)(e=>{let a=e.currentTarget.value.trim();!x||"register"!==O||U||"checking"===ef||!a||(a!==ep||null===ex||ew)&&eE(a)},[ef,ew,U,ep,ex,x,eE,O]),eH=()=>{em(60);let e=setInterval(()=>{em(a=>a<=1?(clearInterval(e),0):a-1)},1e3)},eq=async a=>{if(!K)return void l.oR.error("Please enter your email");if("register"===a){if(!q)return void l.oR.error("Human verification is not configured");if(!el)return void l.oR.error("Please complete human verification first")}try{V(!0),await n.apiService.sendVerificationCode(K,a,e,"register"===a?el:void 0),ed(!0),eH(),l.oR.success("Verification code sent to your email"),"register"===a&&ek()}catch(e){l.oR.error(e.message||"Failed to send verification code"),"register"===a&&ek()}finally{V(!1)}},eB=async()=>{if(!K||!X)return void l.oR.error("Please enter email and password");try{V(!0);let a=await n.apiService.loginWithEmail({username:K,password:X},e);e$(a)}catch(e){l.oR.error(e.message||"Login failed")}finally{V(!1)}},eD=async a=>{let t=v(),r=w(),s=_();return n.apiService.registerWithEmail({email:K,password:X,verification_code:ei,user_name:ea,slug:e,cf_turnstile_token:el,...a?{affiliate_code:a}:{},source:t,internal_source:r,first_utm_source:s.utm_source,first_utm_campaign:s.utm_campaign,first_utm_medium:s.utm_medium,registration_page:s.registration_page})},eT=async()=>{if(!K||!X||!ea||!ei)return void l.oR.error("Please fill in all fields");
1if(X.length<8)return void l.oR.error("Password must be at least 8 characters");if(X!==Z)return void l.oR.error("Passwords do not match");if(!q)return void l.oR.error("Human verification is not configured");if(!el)return void l.oR.error("Please complete human verification first");let e=er.trim(),a=e.length>0,t=a&&e===ep&&!ew&&null!==ex;if(!t||"invalid"!==ex)try{if(V(!0),a&&!t){let a=await eE(e);if("invalid"===a)return}let r=await eD(e);(0,j.wJ)("email"),e$(r)}catch(a){ek();let e=(a.message||"").toLowerCase();e.includes("device security")||e.includes("device is not supported")||e.includes("device fingerprint")?l.oR.error(M("deviceNotSupported")||"Device initialization failed. Please refresh the page and try again."):l.oR.error(a.message||"Registration failed")}finally{V(!1)}},eV=async()=>{if(!K)return void l.oR.error("Please enter your email");try{V(!0),await n.apiService.forgotPassword(K,e),ed(!0),eH(),W("reset-password"),l.oR.success("Verification code sent to your email")}catch(e){l.oR.error(e.message||"Failed to send reset code")}finally{V(!1)}},eO=async()=>{if(!K||!ei||!X)return void l.oR.error("Please fill in all fields");
1if(X.length<8)return void l.oR.error("Password must be at least 8 characters");if(X!==Z)return void l.oR.error("Passwords do not match");try{V(!0),await n.apiService.resetPassword({email:K,verification_code:ei,new_password:X,slug:e}),l.oR.success("Password reset successfully"),eI(),W("login")}catch(e){l.oR.error(e.message||"Password reset failed")}finally{V(!1)}};return(0,r.jsx)(u.lG,{open:x,onOpenChange:e=>{e||(eI(),W(E)),P(e)},children:(0,r.jsx)(u.Cf,{className:"left-1/2 top-1/2 w-[calc(100vw-2rem)] max-w-[420px] translate-x-[-50%] translate-y-[-50%] overflow-x-hidden p-5 sm:p-6",children:(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)(d.default,{src:"/brand/socq-logo-icon-10-transparent.png",width:48,height:48,alt:"Logo",className:"mb-4 rounded-lg",priority:!0}),(0,r.jsx)(u.L3,{className:"text-2xl font-bold tracking-tight mb-6",children:(()=>{switch(O){case"register":return"Create Account";case"forgot-password":return"Forgot Password";case"reset-password":return"Reset Password";default:return M("title")}})()}),(0,r.jsxs)("div",{className:(0,c.cn)("w-full transition-opacity duration-200",T?"opacity-50 pointer-events-none":"opacity-100"),children:["login"===O&&(0,r.jsxs)("div",{className:"space-y-4",children:[eL("login"),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,r.jsx)(p.w,{className:"w-full"})}),(0,r.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,r.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"or continue with email"})})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"email",children:"Email"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(b.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"email",type:"email",placeholder:"Enter your email",value:K,onChange:e=>Q(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"password",children:"Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(N.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"password",type:"password",placeholder:"Enter your password",value:X,onChange:e=>Y(e.target.value),className:"pl-9",onKeyDown:e=>"Enter"===e.key&&eB()})]})]}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)("button",{type:"button",className:"text-sm text-primary hover:underline",onClick:()=>{eI(),W("forgot-password")},children:"Forgot password?"})}),(0,r.jsxs)(m.$,{className:"w-full",onClick:eB,disabled:T,children:[T?(0,r.jsx)(C.A,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Sign In"]}),(0,r.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:["Don't have an account?"," ",(0,r.jsx)("button",{type:"button",className:"text-primary hover:underline",onClick:()=>{eI(),W("register")},children:"Sign up"})]})]})]}),"register"===O&&(I=er.trim().length>0&&"idle"!==ef,F="valid"===ef?"text-emerald-600":"invalid"===ef?"text-destructive":"text-muted-foreground",(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("button",{type:"button",className:"flex items-center text-sm text-muted-foreground hover:text-foreground",onClick:()=>{eI(),W("login")},children:[(0,r.jsx)(k.A,{className:"mr-1 h-4 w-4"}),"Back to login"]}),eL("register"),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,r.jsx)(p.w,{className:"w-full"})}),(0,r.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,r.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"or continue with email"})})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"reg-email",children:"Email"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(b.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"reg-email",type:"email",placeholder:"Enter your email",value:K,onChange:e=>Q(e.target.value),className:"pl-9"})]})]}),q?(0,r.jsx)(o.Xs,{ref:eC,siteKey:q,className:"w-full overflow-hidden",options:{action:"email_register",size:"flexible",theme:"auto",refreshExpired:"auto"},onSuccess:en,onExpire:()=>en(""),onError:()=>en(""),onUnsupported:()=>en(""),onTimeout:()=>en("")}):null,(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"verification-code",children:"Verification Code"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(f.p,{id:"verification-code",type:"text",placeholder:"Enter 6-digit code",value:ei,onChange:e=>eo(e.target.value),maxLength:6}),(0,r.jsx)(m.$,{variant:"outline",onClick:()=>eq("register"),disabled:T||eu>0,className:"whitespace-nowrap",children:eu>0?`${eu}s`:"Send Code"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"username",children:"Username"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(R.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"username",type:"text",placeholder:"Enter your username",value:ea,onChange:e=>et(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"reg-password",children:"Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(N.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"reg-password",type:"password",placeholder:"At least 8 characters",value:X,onChange:e=>Y(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"confirm-password",children:"Confirm Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(N.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"confirm-password",type:"password",placeholder:"Confirm your password",value:Z,onChange:e=>ee(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"affiliate-code",children:z}),(0,r.jsx)(f.p,{id:"affiliate-code",type:"text",name:"affiliateCode",autoComplete:"off",autoCapitalize:"none",spellCheck:!1,placeholder:J,value:er,onCh
1ange:e=>{let a=e.target.value;es(a),eS(a.trim(),!0)},onBlur:eG,"aria-invalid":"invalid"===ef}),I?(0,r.jsxs)("p",{className:(0,c.cn)("flex items-center gap-1.5 text-sm",F),children:["checking"===ef?(0,r.jsx)(C.A,{className:"h-3.5 w-3.5 animate-spin"}):null,(0,r.jsx)("span",{children:ej})]}):null]}),(0,r.jsxs)(m.$,{className:"w-full",onClick:eT,disabled:T,children:[T?(0,r.jsx)(C.A,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Create Account"]})]})]})),"forgot-password"===O&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("button",{type:"button",className:"flex items-center text-sm text-muted-foreground hover:text-foreground",onClick:()=>{eI(),W("login")},children:[(0,r.jsx)(k.A,{className:"mr-1 h-4 w-4"}),"Back to login"]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Enter your email address and we'll send you a verification code to reset your password."}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"forgot-email",children:"Email"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(b.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"forgot-email",type:"email",placeholder:"Enter your email",value:K,onChange:e=>Q(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)(m.$,{className:"w-full",onClick:eV,disabled:T,children:[T?(0,r.jsx)(C.A,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Send Reset Code"]})]})]}),"reset-password"===O&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("button",{type:"button",className:"flex items-center text-sm text-muted-foreground hover:text-foreground",onClick:()=>{eI(),W("login")},children:[(0,r.jsx)(k.A,{className:"mr-1 h-4 w-4"}),"Back to login"]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"reset-code",children:"Verification Code"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(f.p,{id:"reset-code",type:"text",placeholder:"Enter 6-digit code",value:ei,onChange:e=>eo(e.target.value),maxLength:6}),(0,r.jsx)(m.$,{variant:"outline",onClick:()=>eq("reset_password"),disabled:T||eu>0,className:"whitespace-nowrap",children:eu>0?`${eu}s`:"Resend"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"new-password",children:"New Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(N.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"new-password",type:"password",placeholder:"At least 8 characters",value:X,onChange:e=>Y(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(h.J,{htmlFor:"confirm-new-password",children:"Confirm New Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(N.A,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(f.p,{id:"confirm-new-password",type:"password",placeholder:"Confirm your password",value:Z,onChange:e=>ee(e.target.value),className:"pl-9"})]})]}),(0,r.jsxs)(m.$,{className:"w-full",onClick:eO,disabled:T,children:[T?(0,r.jsx)(C.A,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Reset Password"]})]})]})]})]})})})}},39658:(e,a,t)=>{t.d(a,{p:()=>o});var r=t(95155),s=t(12115),i=t(91337);let o=s.forwardRef(({className:e,type:a,...t},s)=>(0,r.jsx)("input",{type:a,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...t}));o.displayName="Input"},61991:(e,a,t)=>{t.d(a,{w:()=>l});var r=t(95155),s=t(12115),i=t(89803),o=t(91337);let l=s.forwardRef(({className:e,orientation:a="horizontal",decorative:t=!0,...s},l)=>(0,r.jsx)(i.b,{ref:l,decorative:t,orientation:a,className:(0,o.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",e),...s}));l.displayName=i.b.displayName},79792:(e,a,t)=>{t.d(a,{J:()=>c});var r=t(95155),s=t(12115),i=t(91760),o=t(18460),l=t(91337);let n=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(i.b,{ref:t,className:(0,l.cn)(n(),e),...a}));c.displayName=i.b.displayName}}]);

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.