1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2402],{6653:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var a=r(83731),s=r(12115);function n(){let e=(0,a.sf)(),t=(0,s.useCallback)((t,r)=>{e&&e.capture(t,r),window.clarity&&(window.clarity("event",t),r&&Object.entries(r).forEach(e=>{let[t,r]=e;window.clarity("set",t,String(r))}))},[e]),r=(0,s.useCallback)((t,r)=>{e&&e.identify(t,r),window.clarity&&(window.clarity("identify",t),r&&Object.entries(r).forEach(e=>{let[t,r]=e;window.clarity("set",t,String(r))}))},[e]),n=(0,s.useCallback)(()=>{e&&e.reset()},[e]),i=(0,s.useCallback)(t=>{e&&e.people.set(t),window.clarity&&Object.entries(t).forEach(e=>{let[t,r]=e;window.clarity("set",t,String(r))})},[e]);return{posthog:e,trackEvent:t,identifyUser:r,resetUser:n,setUserProperties:i,upgradeSession:(0,s.useCallback)(e=>{window.clarity&&window.clarity("upgrade",e||"important_action")},[])}}},30285:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var a=r(95155),s=r(12115),n=r(74466),i=r(89612),o=r(59434);let l=(0,n.F)("inline-flex items-center justify-center rounded-full text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background cursor-pointer",{variants:{variant:{primary:"bg-primary-500 text-neutral-black hover:bg-primary-400 focus:bg-primary-400",secondary:"bg-neutral-white text-neutral-black border border-neutral-300 hover:bg-neutral-50 focus:bg-neutral-50 focus:ring-neutral-400",tertiary:"bg-transparent text-neutral-black hover:bg-neutral-black/10 focus:bg-neutral-black/10",destructive:"bg-negative-500 text-neutral-white hover:bg-negative-600 focus:bg-negative-600 focus:ring-neutral-400","secondary-destructive":"bg-neutral-white text-negative-500 border border-negative-300 hover:bg-negative-100 hover:text-negative-600 focus:bg-negative-50 focus:text-negative-600 focus:ring-negative-400","tertiary-destructive":"bg-transparent text-negative-500 hover:bg-negative-100 hover:text-negative-600 focus:bg-transparent focus:text-negative-600 focus:ring-negative-400"},size:{default:"h-[40px] py-[10px] px-xl text-base-medium",sm:"h-[32px] py-xs px-md text-base-medium",icon:"h-3xl w-3xl p-sm"}},defaultVariants:{variant:"primary",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,loading:c,disabled:d,children:u,...g}=e;return(0,a.jsx)("button",{className:(0,o.cn)(l({variant:s,size:n,className:r}),c&&("sm"===n?"w-[76px]":"w-[92px]")),ref:t,disabled:d||c,...g,children:c?(0,a.jsx)(i.E,{className:"animate-spin",size:"sm"===n?16:20,weight:"bold"}):u})});c.displayName="Button"},59434:(e,t,r)=>{"use strict";r.d(t,{IM:()=>o,Sp:()=>l,cn:()=>n,xH:()=>i});var a=r(52596);let s=(0,r(39688).zu)({extend:{classGroups:{"font-size":["text-H1","text-H2","text-H3","text-xlg-regular","text-xlg-medium","text-xlg-semibold","text-lg-regular","text-lg-medium","text-lg-semibold","text-base-regular","text-base-medium","text-base-semibold","text-small-regular","text-small-medium","text-small-semibold"]}}});function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s((0,a.$)(t))}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=new Date().getFullYear();return Array.from({length:e+1},(e,r)=>t+r)}function o(e,t){var r,a;return e?((null==(r=e[0])?void 0:r.toUpperCase())||"")+((null==t||null==(a=t[0])?void 0:a.toUpperCase())||""):"U"}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://chat.whatsapp.com/HkGYEvM0Yq31QpciIQ0zbc";window.open(e,"_blank","noopener,noreferrer")}},62523:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var a=r(95155),s=r(12115),n=r(74466),i=r(59434);let o=(0,n.F)("flex h-10 w-full rounded-md border bg-white px-3 py-2 text-sm r
1ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-450 transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",{variants:{error:{false:["border-neutral-300","hover:border-neutral-450","focus-visible:border-neutral-450"],true:["border-negative-300","hover:border-negative-500","focus-visible:border-negative-600"]},disabled:{false:"",true:["cursor-not-allowed opacity-50","bg-neutral-100","border-neutral-300","hover:border-neutral-300","focus:outline-none focus:ring-0 focus:ring-offset-0","focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus-within:outline-none focus-within:ring-0 focus-within:ring-offset-0"]}},compoundVariants:[{error:!0,disabled:!0,class:["border-negative-300","hover:border-negative-300","focus:outline-none focus:ring-0 focus:ring-offset-0","focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus-within:outline-none focus-within:ring-0 focus-within:ring-offset-0"]}],defaultVariants:{error:!1,disabled:!1}}),l=s.forwardRef((e,t)=>{let{className:r,type:s,error:n,disabled:l,tabIndex:c,...d}=e;return(0,a.jsx)("input",{type:s,className:(0,i.cn)(o({error:n,disabled:!!l,className:r})),ref:t,disabled:l,tabIndex:l?-1:c,...d})});l.displayName="Input"},63767:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(95155),s=r(66766);let n=function(e){let{children:t,showBackButton:r=!0,onBack:n,backLabel:i="Back",currentStep:o,totalSteps:l,progressPercentOverride:c,showTopGradient:d=!1,hideHeaderBorder:u=!1,showProgressBar:g=!0,backButtonStyle:f="back"}=e,x="number"==typeof c?Math.min(100,Math.max(0,c)):"number"==typeof o&&"number"==typeof l&&l>0?Math.min(100,Math.max(0,o/l*100)):void 0;return(0,a.jsx)("div",{className:"h-screen bg-neutral-200 flex justify-center items-start p-sm",children:(0,a.jsxs)("div",{className:"relative w-full h-full rounded-md border border-neutral-400 bg-neutral-white shadow-sm overflow-hidden flex flex-col",children:[d?(0,a.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[45%] bg-gradient-to-b from-blush-100 to-transparent","aria-hidden":!0}):null,(0,a.jsxs)("div",{className:"sticky top-0 z-10 h-5xl ".concat(d?"bg-transparent":"bg-neutral-white"," ").concat(u?"":"border-b border-neutral-200"),children:[(0,a.jsxs)("div",{className:"grid grid-cols-3 items-center p-sm h-full",children:[(0,a.jsx)("div",{className:"flex justify-start"}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(s.default,{src:"/logos/dashboard-logo.svg",alt:"Mande",width:84,height:24,priority:!0})}),(0,a.jsx)("div",{})]}),g?(0,a.jsx)("div",{className:"absolute bottom-0 left-0 h-[2px] bg-teal-400 transition-[width,opacity] duration-500 ease-out",style:{width:"number"==typeof x?"".concat(x,"%"):"0%",opacity:+("number"==typeof x&&x>0),boxShadow:"number"==typeof x&&x>0?"0 0 10px hsla(184,60%,44%,0.6)":"none"},role:"progressbar","aria-label":"Onboarding progress","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":"number"==typeof x?Math.round(x):0}):null]}),(0,a.jsx)("div",{className:"relative px-lg md:px-4xl lg:px-5xl py-14 md:py-6xl flex-1 overflow-y-auto",children:(0,a.jsx)("div",{className:"relative",children:t})})]})})}},74387:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});var a=r(87358);let s={google:{authUrl:"https://accounts.google.com/o/oauth2/v2/auth",clientId:"1027398361969-q63cfu3fe1bje8ekv46569hf96gf3tu0.apps.googleusercontent.com",scope:"openid email profile",responseType:"code"}};function n(){let e=s.google,t=a.env.NEXT_PUBLIC_OAUTH_REDIRECT_URI||"".concat(window.location.origin,"/auth/callback");if(!e.clientId)return void console.error("Google Client ID not configured");let r=localStorage.getItem("onboardingSessionId");r&&sessionStorage.setItem("pendingSessionId",r);let n=crypto.randomUUID(),i=new URLSearchParams({client_id:e.clientId,redirect_uri:t,response_type:e.responseType,scope:e.scope,state:n,access_type:"offline",prompt:"consent"});sessionStorage.setItem("oauth_state",n),sessionStorage.setItem("oauth_provider","google");let o="".concat(e.authUrl,"?").concat(i.toString());window.location.href=o}},84188:(e,t,r)=>{Promise.resolve().then(r.bind(r,95132))},85057:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var a=r(95155),s=r(12115),n=r(59434);let i=s.forwardRef((e,t)=>
1{let{className:r,...s}=e;return(0,a.jsx)("label",{ref:t,className:(0,n.cn)("text-base-regular text-neutral-500 block mb-2xs",r),...s})});i.displayName="Label"},95132:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var a=r(95155),s=r(12115),n=r(35695),i=r(66766),o=r(63767),l=r(30285),c=r(62523),d=r(85057),u=r(28440),g=r(6653),f=r(74387),x=r(6874),m=r.n(x);function b(){let[e,t]=(0,s.useState)(""),[r,x]=(0,s.useState)(""),[b,p]=(0,s.useState)(!1),h=(0,n.useRouter)(),{trackEvent:v}=(0,g.s)(),[w,{loading:y}]=(0,u.DH)(),j=async()=>{x(""),p(!1);let t=e.trim().toLowerCase();if(!t||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return void x("Please enter a valid email address");try{var r,a;let{data:e}=await w({variables:{email:t}});if(null==e||null==(r=e.sendLoginMagicLink)?void 0:r.success)v("Login Started",{email:t}),localStorage.setItem("loginEmail",t),h.push("/career-check/login/verify-email");else{let t=(null==e||null==(a=e.sendLoginMagicLink)?void 0:a.message)||"Failed to send email";t.toLowerCase().includes("no account found")||t.toLowerCase().includes("user not found")||t.toLowerCase().includes("please sign up")?(p(!0),x("Oops! You would have to complete our career check first to sign up.")):x(t)}}catch(e){console.error("Error sending login magic link:",e),x(e instanceof Error?e.message:"An error occurred. Please try again.")}};return(0,a.jsx)(o.A,{showBackButton:!0,children:(0,a.jsxs)("div",{className:"max-w-[320px] mx-auto",children:[(0,a.jsx)("h1",{className:"text-center font-semibold text-[20px] leading-[28px] tracking-[-0.4px] text-[#0F1010]",children:"Welcome back"}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsxs)("button",{type:"button",onClick:f.y,className:"w-full h-10 flex items-center justify-center gap-2 bg-white border border-[#DFE2E2] rounded-[52px] px-4 py-2.5 text-[14px] font-medium leading-5 tracking-[-0.01em] text-[#0F1010] hover:bg-gray-50 transition-colors",children:[(0,a.jsx)(i.default,{src:"/google-icon.svg",alt:"Google",width:20,height:20}),"Continue with Google"]})}),(0,a.jsxs)("div",{className:"my-6 flex items-center gap-2",children:[(0,a.jsx)("div",{className:"h-px bg-[#EFEDEB] flex-1"}),(0,a.jsx)("span",{className:"text-[12px] leading-[18px] text-[#BCBDBD]",children:"OR"}),(0,a.jsx)("div",{className:"h-px bg-[#EFEDEB] flex-1"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(d.J,{htmlFor:"email",className:"text-[14px] leading-5 tracking-[-0.01em] text-[#606262] font-normal",children:"Email address"}),(0,a.jsx)(c.p,{id:"email",type:"email",placeholder:"Personal email address",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j()}})]}),r&&(0,a.jsx)("div",{className:"mt-2 flex flex-col gap-2",children:(0,a.jsx)("div",{className:"text-[12px] leading-[18px] text-red-600",children:r})}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(l.$,{type:"button",onClick:j,disabled:y,className:"w-full h-10 bg-[#C6EB52] hover:bg-[#b8dc4a] text-[#0F1010] rounded-[40px] px-5 py-2.5 text-[14px] font-medium leading-5 tracking-[-0.01em] disabled:opacity-50 disabled:cursor-not-allowed",children:y?"Sending...":"Continue"})}),(0,a.jsxs)("div",{className:"mt-6 text-center",children:[(0,a.jsxs)("span",{className:"text-[12px] leading-[18px] text-[#606262]",children:["Don't have an account?"," "]}),(0,a.jsx)(m(),{href:"/career-check",className:"text-[12px] leading-[18px] text-[#0F1010] font-medium underline hover:text-[#606262] transition-colors",children:"Start your journey"})]})]})})}}},e=>{e.O(0,[8120,6766,8094,4808,7181,6874,8440,8441,5964,7358],()=>e(e.s=84188)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.