PageSourceSearch

https://app.atsresumechecker.ai/_next/static/chunks/2396-d8c681f13b75eb8b.js

js atsresumechecker.ai collected 2026-09-24 14:07:51 UTC 49,211 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2396],{13226:(e,t,a)=>{a.d(t,{JD:()=>p,Km:()=>m,Q$:()=>g,default:()=>u,kk:()=>c});var n=a(95155),s=a(12115),r=a(14011),i=a(20640),o=a(66713);let l=["de","en","es","fr","it","ja","ko","pt","zh"];function d(){if("u"<typeof document)return"en";let e=document.cookie.match(/brand-default-locale=([^;]*)/);return e&&l.includes(e[1])?e[1]:"en"}function c(){{let e=window.location.pathname.split("/")[1];if(e&&l.includes(e)&&"en"!==e)return"/"+e}return""}function p(){{let e=window.location.pathname.split("/")[1];if(e&&l.includes(e))return e}return d()}function m(e,t){let a=p(),n=e.split("/")[1]||"";a!==(l.includes(n)?n:d())?window.location.href=e:t?t.push(e):window.location.href=e}function u({locale:e}){return(0,s.useEffect)(()=>{document.cookie=`lingo-locale=${e}; path=/; max-age=31536000; SameSite=Lax`},[e]),null}let x=[{code:"en",name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8",nativeName:"English"},{code:"de",name:"German",flag:"\uD83C\uDDE9\uD83C\uDDEA",nativeName:"Deutsch"},{code:"es",name:"Spanish",flag:"\uD83C\uDDEA\uD83C\uDDF8",nativeName:"Espa\xf1ol"},{code:"fr",name:"French",flag:"\uD83C\uDDEB\uD83C\uDDF7",nativeName:"Fran\xe7ais"},{code:"it",name:"Italian",flag:"\uD83C\uDDEE\uD83C\uDDF9",nativeName:"Italiano"},{code:"ja",name:"Japanese",flag:"\uD83C\uDDEF\uD83C\uDDF5",nativeName:"日本語"},{code:"ko",name:"Korean",flag:"\uD83C\uDDF0\uD83C\uDDF7",nativeName:"한국어"},{code:"pt",name:"Portuguese",flag:"\uD83C\uDDF5\uD83C\uDDF9",nativeName:"Portugu\xeas"},{code:"zh",name:"Chinese",flag:"\uD83C\uDDE8\uD83C\uDDF3",nativeName:"中文"}];function g({showFullName:e=!1,className:t="",align:a="top-full",onLocaleChange:d,initialLocale:c}){let[p,m]=(0,s.useState)(!1),u=(0,r.usePathname)(),h=u?u.split("/")[1]:"",[f,y]=(0,s.useState)(c||(x.some(e=>e.code===h)?h:"")||"en"),[b,w]=(0,s.useState)(!0),v=(0,s.useRef)(null),j=(0,s.useRef)(null),$=x.find(e=>e.code===f)||x[0];(0,s.useEffect)(()=>{w(!1)},[]),(0,s.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&j.current&&!j.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&p&&m(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[p]);let _=(0,s.useCallback)(async e=>{if(e===f)return void m(!1);try{let t;y(e),d?.(e),m(!1),document.cookie=`lingo-locale=${e}; path=/; max-age=31536000; SameSite=Lax`;let a=/^\/([a-z]{2})(\/|$)/,n=window.location.pathname,s=n.match(a),r=s&&l.includes(s[1]);t="en"===e?r?n.replace(a,"/").replace(/^\/\/+/,"/")||"/":n:r?n.replace(a,`/${e}$2`):`/${e}${n}`,window.location.assign(t+window.location.search+window.location.hash)}catch(e){console.error("Failed to change locale:",e),y(f)}},[f,d]);return(0,n.jsxs)("li",{className:`relative ${t}`,children:[(0,n.jsxs)("button",{ref:j,onClick:()=>m(!p),disabled:b,className:`group flex gap-x-3 w-full rounded-md p-2 text-sm/6 cursor-pointer items-center transition-colors ${p?"bg-[#F2F2F2] text-black font-medium":"text-gray-700 font-normal hover:bg-[#F2F2F2] hover:text-black"}`,"aria-label":b?"Loading language options":`Current language: ${$.name}. Click to change`,"aria-expanded":p,"aria-haspopup":"true","aria-controls":"locale-dropdown",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:"w-[18px] h-[18px] ml-0.5",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"})}),(0,n.jsxs)("span",{className:"flex items-center gap-2 flex-1",children:[(0,n.jsx)("span",{"aria-hidden":"true",children:$.flag}),(0,n.jsx)("span",{children:e?$.nativeName:$.name})]}),(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`,"aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),p&&(0,n.jsx)(i.LingoAttributeComponent,{ref:v,id:"locale-dropdown",className:`absolute z-50 bg-white border border-gray-200 rounded-lg shadow-lg w-full ${a} mt-1`,role:"menu","aria-label":"Language selection menu",$attrAs:"div",$fileKey:"../libs/lingo.tsx",$attributes:{"aria-label":"17/declaration/body/13/argument/7/expression/right-aria-label"},children:(0,n.jsx)("div",{className:"py-1 px-1 max-h-[250px] overflow-y-auto",children:x.map(e=>(0,n.jsxs)("button",{onClick:()=>_(e.code),onKeyDown:t=>{var a;return a=e.code,void(("Enter"===t.key||" "===t.key)&&(t.preventDefault(),_(a)))},className:`text-left px-3 py-2 w-full text-sm rounded-md flex items-center gap-3 transition-colors focus:outline-none ${f===e.code?"bg-gray-100 text-gray-900 font-medium":"text-gray-700 hover:bg-[#F2F2F2] hover:text-black"}`,role:"menuitem","aria-current":f===e.code?"true":"false",tabIndex:0,children:[(0,n.jsx)("span",{className:"text-base","aria-hidden":"true",children:e.flag}),(0,n.jsx)(o.LingoComponent,{className:"flex-1",$as:"span",$fileKey:"../libs/lingo.tsx",$entryKey:"17/declaration/body/13/argument/7/expression/right/1/1/ex
1pression/0/body/3",$variables:{"option.nativeName":e.nativeName},$functions:{"option.code.toUpperCase":[e.code.toUpperCase()]}}),f===e.code&&(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"w-4 h-4",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})})]},e.code))})})]})}"u">typeof document&&d()},22396:(e,t,a)=>{a.d(t,{A:()=>P});var n=a(95155),s=a(12115),r=a(30581),i=a(68293),o=a(52566),l=a(14011),d=a(22656),c=a(59439),p=a(70562),m=a(26778),u=a(81600),x=a(47883),g=a(68368),h=a(37787),f=a(69905),y=a(47003),b=a(51829),w=a(48134),v=a(83820),j=a(13226),$=a(85505),_=a(92423),k=a(20640),N=a(66713);let C=(0,y.A)({breakpoints:{values:{xs:0,sm:640,md:1024,lg:1280,xl:1536}}});function S(e){let{children:t,value:a,index:s,...r}=e;return(0,n.jsx)("div",{role:"tabpanel",hidden:a!==s,id:`auth-tabpanel-${s}`,"aria-labelledby":`auth-tab-${s}`,...r,children:a===s&&(0,n.jsx)(f.A,{children:t})})}function L(e){return{id:`auth-tab-${e}`,"aria-controls":`auth-tabpanel-${e}`}}function P({appsumoText:e=null,showSignup:t}
1){let a=(0,o.UK)(),y=(0,r.createClient)(),[A,I]=(0,s.useState)(""),[K,F]=(0,s.useState)(!1),[U,T]=(0,s.useState)(!0),[E,R]=(0,s.useState)(""),[O,D]=(0,s.useState)(!1),[M,z]=(0,s.useState)(!1),[W,H]=(0,s.useState)(""),[B,J]=(0,s.useState)(t?"register":"login"),[V,G]=(0,s.useState)(""),[X,q]=(0,s.useState)(+!!t),[Q,Y]=(0,s.useState)(!1),[Z,ee]=(0,s.useState)(!1),[et,ea]=(0,s.useState)(!1),[en,es]=(0,s.useState)(!0),[er,ei]=(0,s.useState)(!1),[eo,el]=(0,s.useState)(""),[ed,ec]=(0,s.useState)(""),[ep,em]=(0,s.useState)(60),[eu,ex]=(0,s.useState)(!1),[eg,eh]=(0,s.useState)(!1),ef=_.Ii.isNativePlatform(),ey=(0,d.wA)(),eb=(0,l.useRouter)(),ew=(0,l.useSearchParams)(),ev=(0,s.useRef)(!1),ej=(0,s.useRef)(!1),e$=(0,s.useRef)(!1),e_=e=>{window.postMessage({type:"AUTH_SESSION",session:e,action:"LOGIN"},window.location.origin)},ek=()=>"upgrade"===ew.get("task")&&"mock-interview"===ew.get("type"),eN=()=>{let e=ew.get("returnTo");if((0,$.v)(e))return void eb.push(e);let t=ew.get("create_chat"),a=ew.get("build_resume_with_template"),n=ew.get("task"),s=ew.get("tools"),r=ew.get("input"),i=ew.get("ref"),o=ew.get("run"),l=ew.get("step"),d=ew.get("anon");if(s){let e=new URLSearchParams({tools:s});r&&e.set("input",r),i&&e.set("ref",i),o&&e.set("run",o),l&&e.set("step",l),d&&e.set("anon",d),eb.push((0,j.kk)()+"/dashboard/tools?"+e.toString())}else if(t)eb.push((0,j.kk)()+"/dashboard/resumeup-gpt?create_chat="+t);else if(a)eb.push((0,j.kk)()+"/dashboard?build_resume_with_template="+a);else if("open_jobtracker"===n)eb.push((0,j.kk)()+"/dashboard/job-tracker");else if("jobs_matching"===n)eb.push((0,j.kk)()+"/dashboard/jobs");else if("open_resumegpt"===n)eb.push((0,j.kk)()+"/resumeup-gpt");else if(ek())eb.push((0,j.kk)()+"/dashboard/mock-interview?task=upgrade&type=mock-interview");else if(n){let e=ew.get("plan"),t=ew.get("price_id"),a=ew.get("upload_id"),s=ew.get("file_name"),r=ew.get("scan_id"),i=ew.get("type"),l=new URLSearchParams({task:n});e&&l.set("plan",e),t&&l.set("price_id",t),a&&l.set("upload_id",a),s&&l.set("file_name",s),r&&l.set("scan_id",r),o&&l.set("run",o),d&&l.set("anon",d),i&&l.set("type",i),eb.push((0,j.kk)()+"/dashboard?"+l.toString())}else eb.push((0,j.kk)()+"/dashboard")},eC=async()=>{let e=ew.get("task"),t=ew.get("price_id"),n=ew.get("plan");if(!("upgrade"===e&&!ek()&&(t||"monthly"===n||"yearly"===n||"lifetime"===n)))return void eN();ei(!0);try{let e=await fetch("/api/stripe/create-checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t?{priceId:t,agencyId:a?.agencyId,customer_data:{metadata:{price_id:t}}}:{plan:n,agencyId:a?.agencyId,customer_data:{metadata:{plan:n}}})}),s=await e.json();if(e.ok&&s?.url){window.location.href=s.url;return}}catch(e){console.error("Plan checkout failed",e)}eN()};(0,s.useEffect)(()=>{J(t?"register":"login"),q(+!!t)},[t]),(0,s.useEffect)(()=>{if(ew.get("signinerror")&&!ev.current){H("Registration with Google failed. Try again or use email password registration."),ev.current=!0;let e=new URL(window.location.href);e.searchParams.delete("signinerror"),e.searchParams.delete("error"),window.history.replaceState({},"",e)}},[ew]),(0,s.useEffect)(()=>{(async()=>{try{let{data:{session:t}}=await y.auth.getSession();if(t?.user){let t=window.location.pathname;if(!e&&!t.startsWith("/partners/appsumo")&&!t.startsWith("/partners/dealfuel"))return void await eC()}ew.get("token")&&eh(!0),es(!1)}catch(e){console.error("Error checking session:",e),es(!1)}})()},[y,e]),(0,s.useEffect)(()=>{(async()=>{let e=ew.get("token");if(e&&!ej.current&&!en){ej.current=!0,eh(!0),H("");try{let t,a=await fetch("/api/auth/sso",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`,"X-Domain":(0,v.A)()}}),n=await a.json();if(!n.success){H(n.message||"SSO authentication failed"),eh(!1);let e=new URL(window.location.href);e.searchParams.delete("token"),window.history.replaceState({},"",e);return}let{magic_link:s}=n;if(!s){H("Invalid SSO response"),eh(!1);let e=new URL(window.location.href);e.searchParams.delete("token"),window.history.replaceState({},"",e);return}try{t=new URL(s)}catch{H("Invalid magic link format"),eh(!1);let e=new URL(window.location.href);e.searchParams.delete("token"),window.history.replaceState({},"",e);return}let r=t.searchParams.get("token"),o=t.searchParams.get("type")||"magiclink",l=t.searchParams.get("redirect_to");if(r){let{data:e,error:t}=await y.auth.verifyOtp({token_hash:r,type:o});if(t){H(t.message),eh(!1);let e=new URL(window.location.href);e.searchParams.delete("token"),window.history.replaceState({},"",e);return}if(e?.user&&e?.session){let t=new URL(window.location.href);t.searchParams.delete("token"),window.history.replaceState({},"",t),e_(e.session),ey((0,c.iD)(e.user)),(0,p.s)({auth_method:"sso",domain:(0,v.A)()},"signin_success","signin_success event error"),x.A.set("sso-login","true",{secure:!0,sameSite:"strict",expires:365});let a={data:await (0,w.U)(e.user.id)};
1x.A.set("subscription-details",JSON.stringify({details:a.data,expiryTime:new Date(Date.now()+864e5).getTime()}),{secure:!0,sameSite:"strict",expires:1}),i.default.success("Successfully signed in!",{duration:3e3}),l?eb.push(l):await eC()}}else{H("Invalid magic link format"),eh(!1);let e=new URL(window.location.href);e.searchParams.delete("token"),window.history.replaceState({},"",e)}}catch(t){console.error("SSO login error:",t),H(t instanceof Error?t.message:"SSO authentication failed"),eh(!1);let e=new URL(window.location.href);e.searchParams.delete("token"),window.history.replaceState({},"",e)}}})()},[ew,en,y,ey]);let eS=async()=>{J("verify"),em(60),ex(!0);let e=setInterval(()=>{em(e=>e-1)},1e3);setTimeout(()=>{clearInterval(e),ex(!1)},6e4)},eL=()=>{let e=ew.get("create_chat"),t=ew.get("build_resume_with_template"),a=ew.get("task"),n=ew.get("tools"),s=ew.get("input"),r=ew.get("ref"),i=ew.get("run"),o=ew.get("step"),l=ew.get("anon");if(n){let e=new URLSearchParams({tools:n});return s&&e.set("input",s),r&&e.set("ref",r),i&&e.set("run",i),o&&e.set("step",o),l&&e.set("anon",l),e.toString()}if(e)return"create_chat="+e;if(t)return"build_resume_with_template="+t;{if(!a)return"";let e=ew.get("plan"),t=ew.get("price_id"),n=ew.get("upload_id"),s=ew.get("file_name"),r=ew.get("scan_id"),o=ew.get("type"),d=new URLSearchParams({task:a});return e&&d.set("plan",e),t&&d.set("price_id",t),n&&d.set("upload_id",n),s&&d.set("file_name",s),r&&d.set("scan_id",r),i&&d.set("run",i),l&&d.set("anon",l),o&&d.set("type",o),d.toString()}},eP=async e=>(await fetch("/api/auth/send-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:A.trim().toLowerCase(),brand_domain:(0,v.A)(),...e})})).json(),eA=async()=>(await fetch("/api/enterprise/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:A.trim().toLowerCase(),password:E,brand_domain:(0,v.A)(),agency_id:a?.agencyId||null})})).json(),eI=async()=>(await fetch("/api/enterprise/resend-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:A.trim().toLowerCase(),brand_domain:(0,v.A)()})})).json(),eK=async(e,t)=>{if(e.preventDefault(),H(""),G(""),F(!0),ea(!1),"password"===t.type){if(!A&&!E){D(!A),z(!E),F(!1);return}if(!A){D(!A),F(!1);return}if(!E){z(!E),F(!1);return}}else if(!A&&"oauth"!==t.type){D(!A),F(!1);return}try{let e,{type:a,provider:n}=t,s=window.location.pathname,r=ew.get("code");if(s.startsWith("/partners/appsumo"))e=window.location.origin+"/api/auth/callback?redirect_to=/partners/appsumo?code="+r;else if(s.startsWith("/partners/dealfuel"))e=window.location.origin+"/api/auth/callback?redirect_to=/partners/dealfuel";else{let t=(0,j.kk)(),a=eL(),n=ew.get("task"),s=ew.get("returnTo");if((0,$.v)(s))e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(s)}`;else if("open_jobtracker"===n){let a=`${t}/dashboard/job-tracker`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(a)}`}else if("jobs_matching"===n){let a=`${t}/dashboard/jobs`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(a)}`}else if("open_resumegpt"===n){let a=`${t}/resumeup-gpt`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(a)}`}else if(ek()){let n=`${t}/dashboard/mock-interview?${a}`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(n)}`}else if(a){let n=ew.get("create_chat"),s=ew.get("tools"),r=n?`${t}/dashboard/resumeup-gpt?${a}`:s?`${t}/dashboard/tools?${a}`:`${t}/dashboard?${a}`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(r)}`}else e=window.location.origin+`/api/auth/callback?redirect_to=${encodeURIComponent(t+"/dashboard")}`}if("oauth"===a)await y.auth.signInWithOAuth({provider:n,options:{redirectTo:e}});else if("password"===a){let e=await fetch("/api/enterprise/signin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:A.trim().toLowerCase(),password:E})}),t=await e.json();if(!t.status){if(t.message?.includes("Email not confirmed")){let e=await eP({template_code:"verify_email"});if(!e.status)return void H(e.message||"Failed to send verification code");e$.current=!1,await eS(),ea(!0);return}H(t.message||"Sign-in failed");return}if(!t.session)return void H("Sign-in failed");let{data:a,error:n}=await y.auth.setSession({access_token:t.session.access_token,refresh_token:t.session.refresh_token});if(n)return void H(n.message||"Session could not be established");let r=a?.user,i=a?.session;if(r){let{error:e}=await y.auth.updateUser({data:{source_domain:(0,v.A)()}});e&&console.error("Error updating user metadata:",e),i&&e_(i),ey((0,c.iD)(r)),(0,p.s)({auth_method:"password",domain:(0,v.A)()},"signin_success","signin_success event error");let t={data:await (0,w.U)(r.id)};
1x.A.set("subscription-details",JSON.stringify({details:t.data,expiryTime:new Date(Date.now()+864e5).getTime()}),{secure:!0,sameSite:"strict",expires:1}),s.startsWith("/partners/appsumo")||s.startsWith("/partners/dealfuel")||await eC()}}else if("reset"===a){let e=await eP({template_code:"reset_password"});if(!e.status)return void H(e.message||"Failed to send reset code");await eS();return}}catch(e){console.error(e)}finally{F(!1)}},eF=async(e,t)=>{if(e.preventDefault(),H(""),G(""),F(!0),ea(!1),"password"===t.type){if(!A&&!E){D(!A),z(!E),F(!1);return}if(!A){D(!A),F(!1);return}if(!E){z(!E),F(!1);return}if(E.length<6){z(!0),H("Password should be at least 6 characters."),F(!1);return}}else if(!A&&"oauth"!==t.type){D(!A),F(!1);return}try{let e,{type:a,provider:n}=t,s=window.location.pathname,r=ew.get("code");if(s.startsWith("/partners/appsumo"))e=window.location.origin+"/api/auth/callback?redirect_to=/partners/appsumo?code="+r;else if(s.startsWith("/partners/dealfuel"))e=window.location.origin+"/api/auth/callback?redirect_to=/partners/dealfuel";else{let t=(0,j.kk)(),a=eL(),n=ew.get("task"),s=ew.get("returnTo");if((0,$.v)(s))e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(s)}`;else if("open_jobtracker"===n){let a=`${t}/dashboard/job-tracker`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(a)}`}else if("jobs_matching"===n){let a=`${t}/dashboard/jobs`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(a)}`}else if("open_resumegpt"===n){let a=`${t}/resumeup-gpt`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(a)}`}else if(ek()){let n=`${t}/dashboard/mock-interview?${a}`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(n)}`}else if(a){let n=ew.get("create_chat"),s=ew.get("tools"),r=n?`${t}/dashboard/resumeup-gpt?${a}`:s?`${t}/dashboard/tools?${a}`:`${t}/dashboard?${a}`;e=`${window.location.origin}/api/auth/callback?redirect_to=${encodeURIComponent(r)}`}else e=window.location.origin+`/api/auth/callback?redirect_to=${encodeURIComponent(t+"/dashboard")}`}if("oauth"===a)await y.auth.signInWithOAuth({provider:n,options:{redirectTo:e}});else if("password"===a){let e=await eA();if(!e.status)return void H(e.message||"Failed to send verification code");if(!1===e.email_verification_required){let{data:e,error:t}=await y.auth.signInWithPassword({email:A.trim().toLowerCase(),password:E});if(t)return void H(t.message);if(e?.user){e?.session&&e_(e.session),ey((0,c.iD)(e.user)),(0,p.s)({auth_method:"password",domain:(0,v.A)()},"signup_success","signup_success event error");let t={data:await (0,w.U)(e.user.id)};x.A.set("subscription-details",JSON.stringify({details:t.data,expiryTime:new Date(Date.now()+864e5).getTime()}),{secure:!0,sameSite:"strict",expires:1}),i.default.success("Signup successful!",{duration:3e3}),await eC()}return}e$.current=!0,await eS(),ea(!0)}}catch(e){console.error(e)}finally{F(!1)}},eU=async(e,t)=>{e.preventDefault(),H(""),ec(""),G(""),F(!0);try{let e=t.template_code||"verify_email",a="verify_email"===e?await eI():await eP({template_code:e});if(!a.status)return void H(a.message||"Failed to resend code");i.default.success("We've resent the verification code to your inbox. Please check your email",{duration:4e3}),await eS();return}catch(e){console.error(e)}finally{F(!1)}},eT=async t=>{if(t.preventDefault(),""===eo.trim())return void ec("Please enter the code");F(!0);try{let{data:t,error:a}=await y.auth.verifyOtp({email:A.trim().toLowerCase(),token:eo,type:"email"});if(a)return void ec(a.message);if(t?.user){t?.session&&e_(t?.session),ey((0,c.iD)(t?.user));let a={data:await (0,w.U)(t?.user?.id)};x.A.set("subscription-details",JSON.stringify({details:a.data,expiryTime:new Date(Date.now()+864e5).getTime()}),{secure:!0,sameSite:"strict",expires:1});let n=window.location.pathname;if(i.default.success("Email verified successfully!",{duration:3e3}),et){if(e$.current?(0,p.s)({auth_method:"password",domain:(0,v.A)()},"signup_success","signup_success event error"):(0,p.s)({auth_method:"password",domain:(0,v.A)()},"signin_success","signin_success event error"),e||n.startsWith("/partners/appsumo")||n.startsWith("/partners/dealfuel"))return;await eC()}
1else eb.push((0,j.kk)()+"/reset-password")}}catch(e){console.error(e),ec(e instanceof Error?e.message:"Something went wrong")}finally{F(!1)}};return en||eg||er?(0,n.jsx)(b.A,{theme:C,children:(0,n.jsx)("div",{className:"min-h-screen bg-[#f9f7ff] flex items-center justify-center py-4 px-4",children:(0,n.jsxs)("div",{className:"max-w-lg mx-auto min-h-[75vh]",children:[(0,n.jsx)("div",{className:"flex justify-center mb-6 md:mb-8",children:(0,n.jsx)("div",{className:"w-[150px] sm:w-[200px] h-8 bg-gray-200 rounded animate-pulse"})}),(0,n.jsxs)("div",{className:"bg-transparent min-w-[300px] md:min-w-[400px] max-w-[400px] p-6",children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-6",children:[(0,n.jsx)("div",{className:"flex-1 h-10 bg-gray-200 rounded animate-pulse"}),(0,n.jsx)("div",{className:"flex-1 h-10 bg-gray-200 rounded animate-pulse"})]}),(0,n.jsx)("div",{className:"h-10 bg-gray-200 rounded animate-pulse mb-4"}),(0,n.jsx)("div",{className:"h-4 w-8 bg-gray-200 rounded animate-pulse mx-auto mb-4"}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"h-4 w-12 bg-gray-200 rounded animate-pulse mb-2"}),(0,n.jsx)("div",{className:"h-10 bg-gray-200 rounded animate-pulse"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"h-4 w-16 bg-gray-200 rounded animate-pulse mb-2"}),(0,n.jsx)("div",{className:"h-10 bg-gray-200 rounded animate-pulse"})]}),(0,n.jsx)("div",{className:"h-10 bg-gray-300 rounded animate-pulse mt-6"})]})]})]})})}):(0,n.jsx)(b.A,{theme:C,children:(0,n.jsxs)("div",{className:`${e?"":"min-h-screen bg-[#f9f7ff] flex items-center justify-center py-4 px-4 relative"}`,children:[(0,n.jsx)(i.Toaster,{}),(0,n.jsxs)("div",{className:`${e?"":"max-w-lg mx-auto min-h-[75vh]"}`,children:[!e&&(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(m.default,{src:a?.appLogo||u.A,alt:`${a?.appName} logo`,className:"w-[150px] sm:w-[200px] mb-6 md:mb-8",priority:!0,width:192,height:32})}),(0,n.jsxs)("main",{className:"z-10 bg-white mx-auto h-auto shadow-[0_5px_12px_#0000001f] border border-solid rounded-[6px] min-w-[300px] 1.5xs:min-w-[300px] xsm:min-w-[320px]  md:min-w-[400px] max-w-[400px]",children:["reset"!==B&&"verify"!==B&&(0,n.jsx)(f.A,{sx:{borderBottom:1,borderColor:"divider",mb:0},children:(0,n.jsxs)(k.LingoAttributeComponent,{value:X,onChange:(e,t)=>
1{q(t),J(0===t?"login":"register"),H(""),D(!1),z(!1)},"aria-label":"auth tabs",sx:{"& .MuiTab-root":{textTransform:"none",fontWeight:450,fontFamily:"var(--font-inter)",fontSize:{xs:"14px",md:"15px",lg:"15px"},letterSpacing:"0.5px",height:"57px",paddingTop:"24px",paddingBottom:"24px",color:"#626a7a",flex:"1 1 50%",maxWidth:"50%"},"& .MuiTabs-indicator":{backgroundColor:"rgb(var(--brand-primary))"},"& .Mui-selected":{color:"rgb(var(--brand-primary)) !important",fontWeight:"600 !important"},"& .MuiTabs-flexContainer":{display:"flex",justifyContent:"space-between"}},$attrAs:g.A,$fileKey:"../components/SignInPage.tsx",$attributes:{"aria-label":"28/declaration/body/48/argument/1/5/3/1/expression/right/1-aria-label"},children:[(0,n.jsx)(h.A,{label:(0,n.jsx)(N.LingoComponent,{$as:s.Fragment,$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/1/expression/right/1/1/openingElement/0/value"}),...L(0)}),(0,n.jsx)(h.A,{label:(0,n.jsx)(N.LingoComponent,{$as:s.Fragment,$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/1/expression/right/1/3/openingElement/0/value"}),...L(1)})]})}),(0,n.jsxs)("div",{className:"p-4 md:p-5 lg:p-6 xl:p-8 w-full",children:["reset"!==B&&"verify"!==B&&(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(S,{value:X,index:0,children:(0,n.jsxs)("div",{children:[!a?.hideGoogleOAuth&&!ef&&(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(N.LingoComponent,{className:"w-full flex items-center justify-center gap-2 text-[15px] font-medium md:leading-[26px] text-[#000000d9] rounded-md bg-white border border-[#6c7c93] hover:border-brand-primary hover:text-brand-primary shadow-[0_2px_0_rgba(0,0,0,0.02)] py-2.5 px-4",onClick:e=>eK(e,{type:"oauth",provider:"google"}),disabled:K,$as:"button",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/1/expression/right/1",$elements:[({children:e})=>(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}),({children:e})=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-[18px] h-[18px] mb-[1px]",viewBox:"0 0 48 48",children:e}),({children:e})=>(0,n.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),({children:e})=>(0,n.jsx)("path",{fill:"#FF3D00",d:"m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),({children:e})=>(0,n.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),({children:e})=>(0,n.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})],$expressions:[K?(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-[18px] h-[18px] mb-[1px]",viewBox:"0 0 48 48",children:[(0,n.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),(0,n.jsx)("path",{fill:"#FF3D00",d:"m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),(0,n.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),(0,n.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]})]}),(0,n.jsx)(N.LingoComponent,{className:"divider text-xs text-[#2b323b] font-normal mt-4 md:mt-6 mb-3.5 md:mb-[18px]",$as:"div",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/1/expression/right/3"})]}),(0,n.jsxs)("form",{className:"form-control w-full space-y-3 md:space-y-4",onSubmit:e=>eK(e,{type:"password"}),children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(N.LingoComponent,{htmlFor:"email-signin",className:"text-sm font-medium text-[#000000d9] mb-0.5",$as:"label",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/1/1",$elements:[({children:e})=>(0,n.jsx)("span",{className:"text-red-500 me-[1px]",children:e})]}),(0,n.jsx)(k.LingoAttributeComponent,{type:"email",value:A,id:"email-signin",autoComplete:"email",placeholder:"[email protected]",className:"border border-[#6c7c93]/60 p-1 rounded-md focus:outline-none text-sm text-gray-600 h-8 sm:h-[39px] pl-4 placeholder:text-gray-500 placeholder:text-[13px] placeholder:font-[300]",onChange:e=>{I(e.target.value),D(!1),H("")},$attrAs:"input",$fileKey:"../components/SignInPage.tsx",$attributes:{placeholder:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/1/3-placeholder"}}),O&&(0,n.jsx)(N.LingoComponent,{className:"text-[13px] text-red-500 mt-[3px] !mb-[-6px] md:!mb-[-8px]",$as:"span",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/1/5/expression/right"})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(N.LingoComponent,{htmlFor:"password-signin",className:"text-sm font-medium text-[#000000d9] mb-0.5",$as:"label",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/3/1",$elements:[({children:e})=>(0,n.jsx)("span",{className:"text-red-500 me-[1px]",children:e})]}),(0,n.jsxs)("div",{className:"flex items-center border border-[#6c7c93]/60 p-1 rounded-md focus:outline-none text-sm text-gray-600 h-8 sm:h-[39px] pl-4 w-full ",children:[(0,n.jsx)(k.LingoAttributeComponent,{type:Q?"text":"password",id:"password-signin",value:E,autoComplete:"current-password",placeholder:"password",className:"placeholder:text-gray-500 placeholder:text-[13px] placeholder:font-[300] w-full focus:outline-none",onChange:e=>{R(e.target.value),z(!1),H("")},$attrAs:"input",$fileKey:"../components/SignInPage.tsx",$attributes:{placeholder:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/3/3/1-placeholder"}}),(0,n.jsx)("button",{type:"button",className:"ml-2 me-1",onClick:()=>Y(!Q),children:Q?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 text-gray-500",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}):(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 text-gray-500",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]}),M&&(0,n.jsx)(N.LingoComponent,{className:"text-[13px] text-red-500 mt-[3px] !mb-[-1px] md:!mb-[-2px]",$as:"span",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/3/5/expression/right"}),(0,n.jsx)(N.LingoComponent,{className:"text-[12px] text-brand-primary font-normal mt-2 w-fit",type:"button",onClick:()=>{J("reset"),H(""),q(0)},$as:"button",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/3/7"})]}),(0,n.jsxs)("div",{className:"!mt-5 md:!mt-6",children:[W&&(0,n.jsx)("span",{className:"text-red-500 text-sm",children:W}),V&&(0,n.jsx)("span",{className:"text-green-500 text-sm",children:V}),(0,n.jsx)("button",{className:"!mt-1.5 bg-brand-primary w-full border-none outline-none text-center text-white text-[15px] md:leading-[26px] font-semibold !rounded-md !py-1.5 md:!py-2.5 disabled:opacity-50",disabled:K,type:"submit",children:K?(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,n.jsx)(N.LingoComponent,{$as:s.Fragment,$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/1/1/3/5/5/1/expression/alternate"})})]})]})]})}),(0,n.jsx)(S,{value:X,index:1,children:(0,n.jsxs)("div",{className:"space-y-4 md:space-y-5 max-w-xl mx-auto",children:[!a?.hideGoogleOAuth&&!ef&&(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(N.LingoComponent,{className:"w-full flex items-center justify-center gap-2 text-[15px] font-medium md:leading-[26px] text-[#000000d9] rounded-md bg-white border border-[#6c7c93] hover:border-brand-primary hover:text-brand-primary shadow-[0_2px_0_rgba(0,0,0,0.02)] py-2.5 px-4",onClick:e=>eF(e,{type:"oauth",provider:"google"}),disabled:K,$as:"button",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/1/expression/right/1",$elements:[({children:e})=>(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}),({children:e})=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-[18px] h-[18px] mb-[1px]",viewBox:"0 0 48 48",children:e}),({children:e})=>(0,n.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),({children:e})=>(0,n.jsx)("path",{fill:"#FF3D00",d:"m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 
112c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),({children:e})=>(0,n.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),({children:e})=>(0,n.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})],$expressions:[K?(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-[18px] h-[18px] mb-[1px]",viewBox:"0 0 48 48",children:[(0,n.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),(0,n.jsx)("path",{fill:"#FF3D00",d:"m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),(0,n.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),(0,n.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]})]}),(0,n.jsx)(N.LingoComponent,{className:"divider text-xs text-[#2b323b] font-normal mt-4 md:mt-6 mb-3.5 md:mb-[18px]",$as:"div",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/1/expression/right/3"})]}),(0,n.jsxs)("form",{className:"form-control w-full space-y-4",onSubmit:e=>eF(e,{type:"password"}),children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(N.LingoComponent,{htmlFor:"email-signup",className:"text-sm font-medium text-[#000000d9] mb-0.5",$as:"label",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/1/1",$elements:[({children:e})=>(0,n.jsx)("span",{className:"text-red-500 me-[1px]",children:e})]}),(0,n.jsx)(k.LingoAttributeComponent,{type:"email",id:"email-signup",value:A,autoComplete:"email",placeholder:"[email protected]",className:"border border-[#6c7c93]/60 p-1 rounded-md focus:outline-none text-sm text-gray-600 h-8 sm:h-[39px] pl-4 placeholder:text-gray-500 placeholder:text-[13px] placeholder:font-[300]",onChange:e=>{I(e.target.value),D(!1),H("")},$attrAs:"input",$fileKey:"../components/SignInPage.tsx",$attributes:{placeholder:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/1/3-placeholder"}}),O&&(0,n.jsx)(N.LingoComponent,{className:"text-[13px] text-red-500 mt-[3px] !mb-[-6px] md:!mb-[-8px]",$as:"span",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/1/5/expression/right"})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(N.LingoComponent,{htmlFor:"password-signup",className:"text-sm font-medium text-[#000000d9] mb-0.5",$as:"label",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/3/1",$elements:[({children:e})=>(0,n.jsx)("span",{className:"text-red-500 me-[1px]",children:e})]}),(0,n.jsxs)("div",{className:"flex items-center border border-[#6c7c93]/60 p-1 rounded-md focus:outline-none text-sm text-gray-600 h-8 sm:h-[39px] pl-4 w-full",children:[(0,n.jsx)(k.LingoAttributeComponent,{type:Z?"text":"password",id:"password-signup",value:E,autoComplete:"new-password",placeholder:"password",className:"placeholder:text-gray-500 placeholder:text-[13px] placeholder:font-[300] w-full focus:outline-none",onChange:e=>{R(e.target.value),z(!1),H("")},$attrAs:"input",$fileKey:"../components/SignInPage.tsx",$attributes:{placeholder:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/3/3/1-placeholder"}}),(0,n.jsx)("button",{type:"button",className:"ml-2 me-1",onClick:()=>ee(!Z),children:Z?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 text-gray-500",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}):(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 text-gray-500",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]}),M&&(0,n.jsx)(N.LingoComponent,{className:"text-[13px] text-red-500 mt-[3px] !mb-[-1px] md:!mb-[-2px]",$as:"span",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/3/5/expression/right"})]}),(0,n.jsxs)("label",{htmlFor:"terms_accepted",className:"flex items-start mt-2 mb-3 cursor-pointer select-none",children:[(0,n.jsx)("input",{type:"checkbox",name:"terms_accepted",checked:!U,id:"terms_accepted",className:"mr-1.5 cursor-pointer mt-[2px]",onChange:e=>T(!e.target.checked)}),(0,n.jsx)(N.LingoComponent,{className:"text-[12px] text-gray-700",$as:"span",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/5/3",$elements:[({children:e})=>(0,n.jsx)("a",{href:a.termsOfServiceUrl,target:"_blank",className:"font-bold text-[12px] text-gray-600",children:e}),({children:e})=>(0,n.jsx)("a",{href:a.privacyPolicyUrl,target:"_blank",className:"font-bold text-[12px] text-gray-600",children:e})],$expressions:[a?.termsOfServiceUrl?(0,n.jsx)("a",{href:a.termsOfServiceUrl,target:"_blank",className:"font-bold text-[12px] text-gray-600",children:"Terms"}):"Terms",a?.privacyPolicyUrl?(0,n.jsx)("a",{href:a.privacyPolicyUrl,target:"_blank",className:"font-bold text-[12px] text-gray-600",children:"Privacy policy"}):"Privacy policy"]})]}),(0,n.jsxs)("div",{className:"!mt-5 md:!mt-6",children:[W&&(0,n.jsx)("span",{className:"text-red-500 text-sm",children:W}),V&&(0,n.jsx)("span",{className:"text-green-500 text-sm",children:V}),(0,n.jsx)("button",{className:"!mt-1.5 bg-brand-primary w-full border-none outline-none text-center text-white text-[15px] md:leading-[26px] font-semibold !rounded-md !py-1.5 md:!py-2.5 disabled:opacity-50",disabled:K||U,type:"submit",children:K?(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,n.jsx)(N.LingoComponent,{$as:s.Fragment,$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/1/expression/right/3/1/3/7/5/1/expression/alternate"})})]})]})]})})]}),"reset"===B&&(0,n.jsxs)("div",{children:[(0,n.jsx)(N.LingoComponent,{className:"text-center text-[#000000d9] text-base 2xl:text-[17px] font-[600] mb-2 md:mb-3",$as:"h4",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/3/expression/right/1"}),(0,n.jsx)(N.LingoComponent,{className:"text-gray-600 text-[14px] font-[380] mb-2.5 xl:mb-3",$as:"p",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/3/expression/right/3"}),(0,n.jsx)("div",{className:"space-y-3 md:space-y-4 max-w-xl mx-auto",children:(0,n.jsxs)("form",{className:"form-control w-full space-y-4",onSubmit:e=>eK(e,{type:"reset"}),children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(k.LingoAttributeComponent,{type:"email",id:"email-reset",value:A,autoComplete:"email",placeholder:"[email protected]",className:"border border-[#6c7c93]/60 p-1 rounded-md focus:outline-none text-sm text-gray-600 h-8 sm:h-[39px] pl-4 placeholder:text-gray-500 placeholder:text-[13px] placeholder:font-[300]",onChange:e=>{I(e.target.value),D(!1),H("")},$attrAs:"input",$fileKey:"../components/SignInPage.tsx",$attributes:{placeholder:"28/declaration/body/48/argument/1/5/3/3/3/expression/right/5/1/1/3-placeholder"}}),O&&(0,n.jsx)(N.LingoComponent,{className:"text-[13px] text-red-500 mt-[3px] !mb-[-6px] md:!mb-[-8px]",$as:"span",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/3/expression/right/5/1/1/5/expression/right"}),(0,n.jsx)(N.LingoComponent,{className:"text-[12px] text-brand-primary font-normal mt-2 w-fit",type:"button",onClick:()=>{J("login"),q(0),H("")},$as:"button",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/3/expression/right/5/1/1/7"})]}),(0,n.jsxs)("div",{className:"!mt-5 md:!mt-6",children:[W&&(0,n.jsx)("span",{className:"text-red-500 text-sm",children:W}),V&&(0,n.jsx)("span",{className:"text-green-500 text-sm",children:V}),(0,n.jsx)("button",{className:"!mt-1.5 bg-brand-primary w-full border-none outline-none text-center text-white text-[15px] md:leading-[26px] font-semibold !rounded-md !py-1.5 md:!py-2.5 disabled:opacity-50",disabled:K,type:"submit",children:K?(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,n.jsx)(N.LingoComponent,{$as:s.Fragment,$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/3/expression/right/5/1/3/5/1/expression/alternate"})})]})]})})]}),"verify"===B&&(0,n.jsxs)("div",{children:[(0,n.jsx)(N.LingoComponent,{className:"text-center text-[#000000d9] text-base 2xl:text-[17px] font-[600] mb-2 md:mb-3",$as:"h4",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/5/expression/right/1"}),(0,n.jsx)(N.LingoComponent,{className:"text-gray-600 text-[14px] font-[380]",$as:"p",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/5/expression/right/3"}),(0,n.jsx)("p",{className:"text-gray-700 text-[14px] font-[450] mb-2.5 xl:mb-3",children:A}),(0,n.jsx)("div",{className:"space-y-4 md:space-y-5 max-w-xl mx-auto",children:(0,n.jsxs)("form",{className:"form-control w-full space-y-4",onSubmit:e=>eT(e),children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(k.LingoAttributeComponent,{type:"text",id:"email-verify",value:eo,autoComplete:"code",placeholder:"code",className:"border border-[#6c7c93]/60 p-1 rounded-md focus:outline-none text-sm text-gray-600 h-8 sm:h-[39px] pl-4 placeholder:text-gray-500 placeholder:text-[13px] placeholder:font-[300]",onChange:e=>{el(e.target.value),ec("")},$attrAs:"input",$fileKey:"../components/SignInPage.tsx",$attributes:{placeholder:"28/declaration/body/48/argument/1/5/3/3/5/expression/right/7/1/1/3-placeholder"}}),(0,n.jsx)(N.LingoComponent,{className:"text-[12px] text-brand-primary font-normal mt-2 w-fit underline underline-offset-2",type:"button",disabled:eu||K,onClick:e=>{eU(e,{type:"password",template_code:et?"verify_email":"reset_password"})},$as:"button",$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/5/expression/right/7/1/1/5",$expressions:[eu?`in ${ep}s`:""]})]}),(0,n.jsxs)("div",{className:"!mt-5 md:!mt-6",children:[ed&&(0,n.jsx)("span",{className:"text-red-500 text-sm",children:ed}),V&&(0,n.jsx)("span",{className:"text-green-500 text-sm",children:V}),(0,n.jsx)("button",{className:"!mt-1.5 bg-brand-primary w-full border-none outline-none text-center text-white text-[15px] md:leading-[26px] font-semibold !rounded-md !py-1.5 md:!py-2.5 disabled:opacity-50",disabled:K,type:"submit",children:K?(0,n.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,n.jsx)(N.LingoComponent,{$as:s.Fragment,$fileKey:"../components/SignInPage.tsx",$entryKey:"28/declaration/body/48/argument/1/5/3/3/5/expression/right/7/1/3/5/1/expression/alternate"})})]})]})})]})]})]})]})]})})}},24652:(e,t,a)=>{a.d(t,{s:()=>l});var n=a(59439),s=a(42599),r=a(83820),i=a(47883);let o=null,l=async(e=!1)=>{try{let{user:t,userDetails:a}=s.M.getState().auth;if(!t?.id)return console.warn("No user found in Redux state"),null;if(a&&!e)return a;
1if(o&&!e)return o;o=d(t.id);try{return await o}finally{o=null}}catch(e){return console.error("Error retrieving user details:",e),o=null,null}},d=async e=>{try{let t=await fetch(`/api/user/details?user_id=${e}&brand_domain=${(0,r.A)()}`),a=await t.json();if(a.success&&a.data){let e=a.data;s.M.dispatch((0,n.m5)(e));let t={user_type:e.user_type,agency_id:e.agency_id,agency_name:e.agency_name,agency_is_our_platform:e.agency_is_our_platform,is_subscribed:e.is_subscribed,plan_name:e.plan_name,plan_id:e.plan_id};return i.A.set("user-details",JSON.stringify(t),{expires:7}),e}throw Error(a?.message||"Failed to fetch user details")}catch(e){return console.error("Error fetching user details from API:",e),null}}},48134:(e,t,a)=>{a.d(t,{U:()=>r});var n=a(47883),s=a(24652);let r=async(e,t=!1,a=!1)=>{try{let s=n.A.get("subscription-details");if(s&&!t&&!a){let t=JSON.parse(s);if(!(t?.details?.is_paid!==void 0&&Array.isArray(t?.details?.subscriptions)))return await i(e);{let{details:e,expiryTime:a}=t;if(Date.now()<a)return e}}return await i(e,a)}catch(t){return console.error("Error retrieving subscription details:",t),await i(e,a)}},i=async(e,t=!1)=>{try{let e=await (0,s.s)(t),a={is_paid:e?.is_subscribed,plan_caps:e?.plan_caps??void 0,subscriptions:[{end_date:e?.subscription_end_date,plan_description:e?.plan_name,plan_billing_model:e?.plan_billing_model??null,plan_billing_interval:e?.plan_billing_interval??null,plan_billing_interval_count:e?.plan_billing_interval_count??null,plan_currency:e?.plan_currency??null,plan_id:e?.plan_id,plan_name:e?.plan_name,plan_price_in_usd:e?.plan_price,start_date:e?.subscription_start_date,status:e?.is_subscribed?"active":"inactive"}]},r=Date.now()+864e5;return n.A.set("subscription-details",JSON.stringify({details:a,expiryTime:r}),{expires:1}),a}catch(e){throw console.error("Error fetching subscription details from API:",e),e}}},52566:(e,t,a)=>{a.d(t,{BX:()=>c,UK:()=>d,f7:()=>o,sG:()=>l});var n=a(95155),s=a(12115);let r=(0,s.createContext)(null),i=null,o=()=>i;function l({config:e,children:t}){let[a,o]=(0,s.useState)(e);i=a;let d=(0,s.useCallback)(e=>{o(t=>{let a={...t,...e};return i=a,a})},[]);return(0,n.jsx)(r.Provider,{value:{config:a,updateConfig:d},children:t})}function d(){let e=(0,s.useContext)(r);if(!e)throw Error("useConfig must be used within ConfigProvider");return e.config}function c(){let e=(0,s.useContext)(r);if(!e)throw Error("useConfigUpdater must be used within ConfigProvider");return e.updateConfig}},70562:(e,t,a)=>{a.d(t,{s:()=>r});var n=a(98580),s=a(30581);let r=async(e={},t,a)=>{try{let a=(0,s.createClient)(),{data:{session:r}}=await a.auth.getSession();n.Ay.capture(t,{...r?.user,...e})}catch(e){console.error(a,e)}}},81600:(e,t,a)=>{a.d(t,{A:()=>n});let n={src:"/_next/static/media/logo.83ef6764.svg",height:320,width:1947,blurWidth:0,blurHeight:0}},83820:(e,t,a)=>{a.d(t,{A:()=>n});let n=()=>{let e=window.location.hostname;return"test.resumeup.ai"===e||"localhost"===e?"app.resumeup.ai":e}},85505:(e,t,a)=>{a.d(t,{v:()=>n});let n=e=>!!e&&e.startsWith("/")&&"/"!==e[1]&&"\\"!==e[1]}}]);

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.