1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4964],{4964:(e,t,r)=>{r.d(t,{AuthScreen:()=>N});var a=r(11935),n=r(5011),i=r.n(n),o=r(88791),s=r(96420),l=r(72890),d=r(29609),c=r(96158),u=r(85190),p=r(42774),x=r(59514),f=r(10515),h=r(73442),b=r(32306),g=r(5932),m=r(83346),v=r(22414);let y=r(53808).Yj().trim().min(3).max(254).email();var w=r(31946);let k={signin:{path:"/login",opposite:"signup",headerAction:"Create account",title:"Welcome back",subtitle:"Step back into your curated job search and keep the pipeline moving.",google:"Sign in with Google",passwordPlaceholder:"â¢â¢â¢â¢â¢â¢â¢â¢",primary:"Sign in",loading:"Signing in...",footerLead:"Don't have an account?",footerAction:"Create account"},signup:{path:"/signup",opposite:"signin",headerAction:"Sign in",title:"Get started",subtitle:"Build your search workspace once, then let AI surface the strongest moves.",google:"Sign up with Google",passwordPlaceholder:"At least 8 characters",primary:"Create account",loading:"Creating account...",footerLead:"Already have an account?",footerAction:"Sign in"}};function j(e){let{children:t}=e;return(0,a.jsx)("span",{className:"motion-fade-in inline-block",children:t})}function N(e){let{initialMode:t,initialError:r=null,inviteOnly:n=!1,initialInviteCode:N="",nextPath:A="/feed"}=e,S=(0,s.useRouter)(),[C,_]=(0,o.useState)(t),[z,P]=(0,o.useState)(""),[I,M]=(0,o.useState)(""),[E,W]=(0,o.useState)(!1),[L,R]=(0,o.useState)(N),[F,q]=(0,o.useState)(r),[D,O]=(0,o.useState)(r?"form":null),[B,T]=(0,o.useState)(!1),[U,G]=(0,o.useState)(!1),[H,X]=(0,o.useState)(!1),[V,$]=(0,o.useState)(null),J=(0,w.e)(),Y=(0,o.useRef)(null),Z=(0,o.useRef)(null),K=(0,o.useRef)(null),Q=(0,o.useRef)(null),ee=k[C],et=ee.opposite,er="email"===D,ea=()=>{q(null),O(null)},en=function(e){var t,r,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"form";q(e),O(n),"email"===n?null==(t=Y.current)||t.focus():"password"===n?null==(r=Z.current)||r.focus():"invite"===n?null==(a=K.current)||a.focus():requestAnimationFrame(()=>{var e;return null==(e=Q.current)?void 0:e.focus()})};(0,o.useEffect)(()=>{let e=()=>{var e;let t="/login"===(e=window.location.pathname)?"signin":"/signup"===e?"signup":null;t&&(_(t),ea(),G(!1))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let ei=e=>{if(e===C)return;ea(),G(!1),T(!1),W(!1);let t=k[e].path;window.location.pathname!==t?S.push(t):_(e)},eo=async()=>{if("signup"===C&&n)return void en("Private beta accounts use email signup. You can connect Google later from your settings.");let e=(0,g.createClient)();(0,v.setFreshSigninMarker)("google");try{let{error:t}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:"".concat(m.l5,"/auth/callback?next=").concat(encodeURIComponent(A))}});t&&((0,v.clearFreshSigninMarker)(),en(t.message))}catch(e){(0,v.clearFreshSigninMarker)(),en(e instanceof Error?e.message:"Sign in failed")}},es=async e=>{e.preventDefault(),ea();let t=y.safeParse(z);if(!t.success)return void en("Please enter a valid email address","email");let r=t.data;if(0===I.length)return void en("Please enter your password","password");if("signup"===C&&I.length<8)return void en("Use at least 8 characters for your password","password");if("signup"===C&&n&&""===L.trim())return void en("Invite code required.","invite");T(!0);let a=(0,g.createClient)();if("signup"===C){let e,t={email:r,password:I},a=L.trim();a&&(t.code=a);try{e=await fetch("".concat(m.tE,"/api/auth/signup"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch(e){en(e instanceof Error?e.message:"Sign up failed"),T(!1);return}if(!e.ok){let t="Sign up failed";try{let r=await e.json();"invite_required"===r.error?t="Invite code required.":"invalid_invite"===r.error?t="Invalid invite code.":"invite_used"===r.error?t="This invite code has already been used.":"rate_limited"===r.error?t="Too many tries. Try again in a minute.":"invite_check_unavailable"===r.error?t="Couldnât verify invite right now. Please try again in a minute.":"signup_failed"===r.error&&(t="Sign up failed. Please try again.")}catch(e){}en(t,t.toLowerCase().includes("invite")?"invite":"form"),T(!1);return}P(r),G(!0),T(!1);return}(0,v.setFreshSigninMarker)("email");let i=null;try{i=(await a.auth.signInWithPassword({email:r,password:I})).error}catch(e){(0,v.clearFreshSigninMarker)(),en(e instanceof Error?e.message:"Sign in failed"),T(!1);return}if(i){(0,v.clearFreshSigninMarker)(),en(i.message),T(!1);return}S.replace(A),S.refresh()},el=async()=>{X(!0),$(null);let e=y.safeParse(z);if(!e.success){$("Enter a valid email address before resending."),X(!1);return}try{(await fetch("".concat(m.tE,"/api/auth/signup/resend"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.data})})).ok?$("If the account can receive a confirmation, a new link is on its way."):$("We could not resend the link right now. Please try again shortly.")}catch(e){$("We could not resend the link right now. Please try again shortly.")}finally{X(!1)}};return U?(0,a.jsx)("div",{className:"relative flex min-h-screen flex-col items-center justify-center overflow-hidden bg-canvas px-[24px]",children:(0,a.jsxs)("div",{className:"relative z-10 flex w-full max-w-[500px] flex-col items-center gap-[18px] rounded-[8px] border border-border bg-surface px-[32px] py-[40px] text-center shadow-[0_20px_44px_-36px_rgba(25,28,30,0.28)]",children:[(0,a.jsx)("div",{className:"flex size-[64px] items-center justify-center rounded-[8px] border border-success-border bg-success-bg text-success-dark",children:(0,a.jsx)(l.A,{size:30,strokeWidth:2.1,"aria-hidden":!0})}),(0,a.jsx)("h2",{className:"font-heading text-[32px] font-[800] leading-[38px] tracking-normal text-ink",children:"Check your email"}),(0,a.jsxs)("p",{className:"font-body text-[15px] leading-[24px] text-ink-secondary",children:["We sent a confirmation link to ",(0,a.jsx)("strong",{className:"text-[#191c1e]",children:z}),". Click it to activate your account."]}),V&&(0,a.jsx)("p",{role:"status",className:"font-body text-[13px] leading-[20px] text-ink-secondary",children:V}),(0,a.jsx)(h.$,{type:"button",variant:"quiet",size:"sm",onClick:el,disabled:H,className:"text-primary disabled:opacity-60",children:H?"Sending a new linkâ¦":"Resend confirmation email"}),(0,a.jsx)("button",{type:"button",onClick:()=>ei("signin"),className:"mt-[8px] font-body text-[14px] font-bold text-primary",children:"Back to login"})]})}):(0,a.jsxs)("div",{className:"relative min-h-screen overflow-hidden bg-canvas",children:[(0,a.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute inset-0 opacity-[0.55]",style:{backgroundImage:"linear-gradient(color-mix(in srgb, var(--color-primary) 4.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 4.5%, transparent) 1px, transparent 1px)",backgroundSize:"38px 38px"}}),(0,a.jsx)("header",{className:"fixed left-0 right-0 top-0 z-50 border-b border-border bg-canvas/92 backdrop-blur-[12px]",children:(0,a.jsxs)("div",{className:"mx-auto flex h-[72px] max-w-[1440px] items-center justify-between px-[20px] sm:px-[28px] lg:px-[40px]",children:[(0,a.jsx)(f.R,{href:"/",compact:!0}),(0,a.jsxs)("button",{type:"button",onClick:()=>ei(et),className:"hidden h-[38px] items-center gap-[8px] rounded-[8px] border border-border bg-surface px-[14px] font-body text-[13px] font-[800] text-primary shadow-[0_10px_22px_-20px_rgba(25,28,30,0.32)] transition-colors hover:bg-primary-soft sm:inline-flex",children:[(0,a.jsx)(j,{children:ee.headerAction},"header-".concat(C)),(0,a.jsx)(d.A,{size:14,strokeWidth:2.2,"aria-hidden":!0})]})]})}),(0,a.jsx)("main",{className:"relative z-10 mx-auto flex min-h-screen w-full max-w-[1440px] items-center justify-center px-[20px] pb-[32px] pt-[106px] sm:px-[28px] lg:px-[40px] lg:pb-[42px] lg:pt-[96px]",children:(0,a.jsxs)("section",{className:"mx-auto flex w-full max-w-[500px] flex-col gap-[18px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[9px]",children:[(0,a.jsxs)("div",{className:"inline-flex w-fit items-center gap-[8px] rounded-[8px] border border-success-border bg-success-bg px-[10px] py-[7px] font-body text-[12px] font-[800] leading-[16px] text-success-dark",children:[(0,a.jsx)(c.A,{size:14,strokeWidth:2.2,"aria-hidden":!0}),"AI-powered job search"]}),(0,a.jsx)("h1",{className:"text-center font-heading text-[34px] font-[800] leading-[39px] tracking-normal text-ink sm:text-[38px] sm:leading-[44px]",children:(0,a.jsx)(j,{children:ee.title},"title-".concat(C))}),(0,a.jsx)("p",{className:"max-w-[430px] text-center font-body text-[15px] font-[600] leading-[24px] text-ink-secondary",children:(0,a.jsx)(j,{children:ee.subtitle},"subtitle-".concat(C))})]}),(0,a.jsxs)("div",{className:"relative flex flex-col gap-[20px] rounded-[8px] border border-border bg-surface p-[18px] shadow-[0_24px_50px_-42px_rgba(25,28,30,0.34),0_1px_2px_rgba(25,28,30,0.05)] sm:p-[22px]",children:[(0,a.jsx)(b.t,{label:"Authentication mode",variant:"segmented",stretch:!0,value:"signup"===C?"signup":"signin",onChange:ei,items:[{value:"signin",label:"Sign in",controls:"auth-mode-panel"},{value:"signup",label:"Sign up",controls:"auth-mode-panel"}]}),(0,a.jsxs)("div",{id:"auth-mode-panel",role:"tabpanel","aria-label":"signup"===C?"Sign up":"Sign in",className:"flex flex-col gap-[20px]",children:[("signin"===C||!n)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",onClick:eo,className:"flex w-full items-center justify-center gap-[12px] rounded-[8px] border border-border bg-surface-subtle px-[16px] py-[13px] transition-colors hover:bg-surface-subtle",children:[(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,a.jsx)("path",{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",fill:"#34A853"}),(0,a.jsx)("path",{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",fill:"#FBBC05"}),(0,a.jsx)("path",{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",fill:"#EA4335"})]}),(0,a.jsx)("span",{className:"font-body text-[16px] font-semibold leading-[24px] text-ink",children:(0,a.jsx)(j,{children:ee.google},"google-".concat(C))})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[16px]",children:[(0,a.jsx)("div",{className:"h-px flex-1 bg-surface-muted"}),(0,a.jsx)("span",{className:"font-body text-[10px] font-[850] uppercase leading-[15px] tracking-normal text-ink-muted",children:"OR EMAIL"}),(0,a.jsx)("div",{className:"h-px flex-1 bg-surface-muted"})]})]}),"signup"===C&&n&&(0,a.jsx)("div",{className:"rounded-[8px] border border-focus bg-primary-soft px-[12px] py-[10px] text-[12px] leading-[18px] text-primary-hover",children:"Private beta accounts use email signup. You can connect Google later from your settings."}),(0,a.jsxs)("form",{noValidate:!0,onSubmit:es,"aria-busy":B,className:"flex flex-col gap-[18px]",children:[(0,a.jsx)("p",{id:"auth-client-pending",className:"sr-only","aria-live":"polite",children:J?"Authentication form ready.":"Loading the secure authentication form."}),(0,a.jsx)("noscript",{children:(0,a.jsx)("p",{role:"alert",children:"JavaScript is required to sign in or create an account."})}),(0,a.jsxs)("fieldset",{disabled:!J||B,"aria-describedby":J?void 0:"auth-client-pending",className:"m-0 flex min-w-0 flex-col gap-[18px] border-0 p-0",children:["signup"===C&&n&&(0,a.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,a.jsx)("label",{htmlFor:"auth-invite-code",className:"px-[4px] font-body text-[13px] font-[800] leading-[18px] text-ink-secondary",children:"Invite Code"}),(0,a.jsxs)("div",{className:"relative rounded-[8px] border border-border bg-surface-subtle transition-colors focus-within:border-focus focus-within:bg-surface focus-within:ring-2 focus-within:ring-focus-soft",children:[(0,a.jsx)(c.A,{className:"absolute left-[14px] top-1/2 -translate-y-1/2 text-ink-muted",size:17,strokeWidth:2.1,"aria-hidden":!0}),(0,a.jsx)("input",{ref:K,id:"auth-invite-code",type:"text",required:!0,value:L,onChange:e=>R(e.target.value.toUpperCase()),placeholder:"AIC-XXXXXX",autoComplete:"off",spellCheck:!1,"aria-invalid":"inv
1ite"===D||void 0,"aria-describedby":"invite"===D?"auth-form-error":void 0,className:"h-[50px] w-full bg-transparent px-[44px] font-body text-[15px] font-[700] leading-[22px] tracking-normal text-ink outline-none placeholder:text-ink-faint"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,a.jsx)("label",{htmlFor:"auth-email",className:"px-[4px] font-body text-[13px] font-[800] leading-[18px] text-ink-secondary",children:"Email Address"}),(0,a.jsxs)("div",{className:"relative rounded-[8px] border bg-surface-subtle transition-colors focus-within:bg-surface focus-within:ring-2 focus-within:ring-focus-soft ".concat(er?"border-error":"border-border focus-within:border-focus"),children:[(0,a.jsx)(l.A,{className:"absolute left-[14px] top-1/2 -translate-y-1/2 text-ink-muted",size:17,strokeWidth:2.1,"aria-hidden":!0}),(0,a.jsx)("input",{ref:Y,id:"auth-email",type:"email",required:!0,value:z,onChange:e=>P(e.target.value),placeholder:"[email protected]",autoComplete:"email","aria-invalid":er||void 0,"aria-describedby":er?"auth-email-error":void 0,className:"h-[50px] w-full bg-transparent px-[44px] font-body text-[15px] font-[650] leading-[22px] text-ink outline-none placeholder:text-ink-faint"})]}),er&&(0,a.jsxs)("div",{id:"auth-email-error",role:"alert",className:"mt-[6px] flex items-center gap-[6px] px-[4px]",children:[(0,a.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[(0,a.jsx)("circle",{cx:"6.5",cy:"6.5",r:"6",stroke:"#EF4444",strokeWidth:"1"}),(0,a.jsx)("path",{d:"M6.5 4V7",stroke:"#EF4444",strokeWidth:"1.2",strokeLinecap:"round"}),(0,a.jsx)("circle",{cx:"6.5",cy:"9",r:"0.6",fill:"#EF4444"})]}),(0,a.jsx)("span",{className:"font-body text-[12px] font-semibold leading-[16px] text-error",children:F})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-[4px]",children:[(0,a.jsx)("label",{htmlFor:"auth-password",className:"font-body text-[13px] font-[800] leading-[18px] text-ink-secondary",children:"Password"}),"signup"===C&&(0,a.jsx)("span",{id:"auth-password-help",className:"font-body text-[12px] font-[750] leading-[16px] text-ink-muted",children:"8+ characters"}),"signin"===C&&(0,a.jsx)(i(),{href:"/login/forgot-password",className:"-my-[10px] inline-flex min-h-[44px] items-center px-[4px] font-body text-[12px] font-[800] leading-[16px] text-primary hover:text-primary-hover",children:"Forgot password?"})]}),(0,a.jsxs)("div",{className:"relative rounded-[8px] border border-border bg-surface-subtle transition-colors focus-within:border-focus focus-within:bg-surface focus-within:ring-2 focus-within:ring-focus-soft",children:[(0,a.jsx)(u.A,{className:"absolute left-[14px] top-1/2 -translate-y-1/2 text-ink-muted",size:17,strokeWidth:2.1,"aria-hidden":!0}),(0,a.jsx)("input",{ref:Z,id:"auth-password",type:E?"text":"password",required:!0,minLength:"signup"===C?8:void 0,value:I,onChange:e=>M(e.target.value),placeholder:ee.passwordPlaceholder,autoComplete:"signup"===C?"new-password":"current-password","aria-invalid":"password"===D||void 0,"aria-describedby":"password"===D?"auth-form-error":"signup"===C?"auth-password-help":void 0,className:"h-[50px] w-full bg-transparent pl-[44px] pr-[54px] font-body text-[15px] font-[650] leading-[22px] text-ink outline-none placeholder:text-ink-faint"}),(0,a.jsx)("button",{type:"button","aria-label":E?"Hide password":"Show password","aria-pressed":E,onClick:()=>W(e=>!e),className:"absolute right-[3px] top-1/2 flex size-[44px] -translate-y-1/2 items-center justify-center rounded-[8px] text-ink-muted transition-colors hover:bg-surface-subtle hover:text-primary focus:outline-none focus:ring-2 focus:ring-focus-soft",children:E?(0,a.jsx)(p.A,{size:18,strokeWidth:2.1,"aria-hidden":!0}):(0,a.jsx)(x.A,{size:18,strokeWidth:2.1,"aria-hidden":!0})})]})]}),F&&!er&&(0,a.jsx)("div",{ref:Q,id:"auth-form-error",role:"alert","aria-live":"assertive",tabIndex:-1,className:"rounded-[8px] border border-[rgba(239,68,68,0.25)] bg-[rgba(239,68,68,0.06)] px-[12px] py-[10px] text-[12px] font-semibold text-error outline-none",children:F}),(0,a.jsx)("button",{type:"submit",className:"flex w-full items-center justify-center rounded-[8px] bg-primary py-[14px] shadow-[0_18px_28px_-20px_color-mix(in_srgb,var(--color-primary)_68%,transparent)] transition-colors hover:bg-primary-hover disabled:opacity-60",children:(0,a.jsx)("span",{className:"font-body text-[16px] font-bold leading-[24px] text-white",children:B?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"h-4 w-4 roun
1ded-[9999px] border-2 border-white/30 border-t-white animate-spin"}),ee.loading]}):(0,a.jsxs)("span",{className:"flex items-center gap-[10px]",children:[(0,a.jsx)(j,{children:ee.primary},"primary-".concat(C)),(0,a.jsx)(d.A,{size:18,strokeWidth:2.3,"aria-hidden":!0})]})})})]})]})]})]}),(0,a.jsxs)("p",{className:"text-center font-body text-[14px] leading-[20px] text-ink-secondary",children:[(0,a.jsx)(j,{children:ee.footerLead},"footer-lead-".concat(C))," ",(0,a.jsx)("button",{type:"button",onClick:()=>ei(et),className:"font-bold text-primary",children:(0,a.jsx)(j,{children:ee.footerAction},"footer-action-".concat(C))})]})]})})]})}},8828:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(88791);let n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,a.createContext)({}),l=(0,a.forwardRef)((e,t)=>{var r,i,l;let{color:d,size:c,strokeWidth:u,absoluteStrokeWidth:p,className:x="",children:f,iconNode:h,...b}=e,{size:g=24,strokeWidth:m=2,absoluteStrokeWidth:v=!1,color:y="currentColor",className:w=""}=null!=(r=(0,a.useContext)(s))?r:{},k=(null!=p?p:v)?24*Number(null!=u?u:m)/Number(null!=c?c:g):null!=u?u:m;return(0,a.createElement)("svg",{ref:t,...o,width:null!=(i=null!=c?c:g)?i:o.width,height:null!=(l=null!=c?c:g)?l:o.height,stroke:null!=d?d:y,strokeWidth:k,className:n("lucide",w,x),...!f&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(b)&&{"aria-hidden":"true"},...b},[...h.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(f)?f:[f]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:s,...d}=r;return(0,a.createElement)(l,{ref:o,iconNode:t,className:n("lucide-".concat(i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...d})});return r.displayName=i(e),r}},10515:(e,t,r)=>{r.d(t,{R:()=>l});var a=r(11935),n=r(86975),i=r(5011),o=r.n(i),s=r(19260);function l(e){let{compact:t=!1,className:r="",href:i,linkClassName:l=""}=e,d=(0,a.jsx)("span",{className:"inline-flex ".concat(t?"h-[48px] w-[156px]":"h-[52px] w-[178px]"," max-w-full shrink-0 items-center ").concat(r),children:(0,a.jsx)(n.default,{src:s.default,priority:!0,fetchPriority:"high",unoptimized:!0,alt:"AirCareer",width:178,height:40,className:"block h-auto w-full"})});return i?(0,a.jsx)(o(),{href:i,className:"inline-flex rounded-[8px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 ".concat(l),children:d}):d}},19260:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});let a={src:"/_next/static/media/aircareer-horizontal.a06f6a95.svg",height:40,width:178,blurWidth:0,blurHeight:0}},26628:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let a=r(1219),n=r(71208),i=r(5748),o=a._(r(15948));function s(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=i.Image},29609:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(8828).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},31946:(e,t,r)=>{r.d(t,{e:()=>n});var a=r(65955);function n(){return(0,a.p)()}},32306:(e,t,r)=>{r.d(t,{t:()=>s});var a=r(11935),n=r(88791),i=r(98246),o=r(83346);function s(e){let{items:t,value:r,onChange:s,variant:l="underline",orientation:d="horizontal",label:c,stretch:u=!1,className:p}=e,x=(0,n.useId)(),f=(0,n.useRef)(null),h=(0,n.useMemo)(()=>t.filter(e=>!e.disabled),[t]),b=(0,n.useMemo)(()=>{var e;return h.some(e=>e.value===r)?r:null==(e=h[0])?void 0:e.value},[h,r]);if(!(0,o.Ue)()){let e=t.find(e=>e.value===r);(null==e?void 0:e.disabled)&&console.error('<Tabs label="'.concat(c,'">: value "').concat(r,'" names a DISABLED tab. ')+"aria-selected stays on it (ARIA needs one) while the keyboard tab "+'stop moves to "'.concat(b,'", so focu
1s and selection disagree. ')+"Change `value` when you disable a tab.")}let g=(0,n.useCallback)(e=>{var t,a;let n;if(0===h.length)return;let i=h.findIndex(e=>e.value===b);n="first"===e?0:"last"===e?h.length-1:((-1===i?0:i)+e+h.length)%h.length;let o=h[n];o&&o.value!==r&&(s(o.value),null==(a=f.current)||null==(t=a.querySelector('[data-tab-value="'.concat(CSS.escape(o.value),'"]')))||t.focus())},[h,b,s,r]),m="rail"===l||"menu"===l?"vertical":d,v=(0,n.useCallback)(e=>{let t="vertical"===m?"ArrowUp":"ArrowLeft",r="vertical"===m?"ArrowDown":"ArrowRight";e.key===t?(e.preventDefault(),g(-1)):e.key===r?(e.preventDefault(),g(1)):"Home"===e.key?(e.preventDefault(),g("first")):"End"===e.key&&(e.preventDefault(),g("last"))},[g,m]),y="vertical"===m,w=(0,i.cx)("flex",y?"flex-col items-stretch":"items-center","rail"===l||"menu"===l?"gap-[6px]":"underline"===l?y?"gap-[2px] border-l border-border-subtle pl-[2px]":"gap-[18px] border-b border-border-subtle":"gap-[2px] rounded-control border border-border bg-surface-subtle p-[3px]",u&&!y?"w-full":null,y?null:"min-w-0 max-w-full flex-wrap gap-y-[6px]",p);return(0,a.jsx)("div",{ref:f,role:"tablist","aria-label":c,"aria-orientation":m,onKeyDown:v,className:w,children:t.map(e=>{let t=e.value===r;return(0,a.jsxs)("button",{type:"button",role:"tab",id:"".concat(x,"-tab-").concat(e.value),"data-tab-value":e.value,"aria-selected":t,"aria-controls":e.controls,"aria-label":e.ariaLabel,disabled:e.disabled,tabIndex:e.value===b?0:-1,onClick:()=>!e.disabled&&s(e.value),className:(0,i.cx)("menu"===l?"flex w-full min-h-[44px] items-start gap-[10px] text-left font-body transition-[color,background-color] duration-150":"rail"===l?"flex w-full min-h-[44px] items-center gap-[11px] text-left font-body transition-[color,background-color,border-color,box-shadow] duration-150":"inline-flex items-center gap-[6px] whitespace-nowrap font-body transition-[color,background-color,border-color,box-shadow] duration-150",u&&!y?"flex-1 justify-center":null,i.Ii,"disabled:cursor-not-allowed disabled:text-ink-faint","menu"===l?(0,i.cx)("rounded-[10px] px-[12px] py-[10px] text-[13px] font-[600]",t?"bg-primary-soft text-primary":"text-ink-secondary hover:bg-surface-muted hover:text-ink"):"rail"===l?(0,i.cx)("rounded-[9px] px-[12px] text-[13px] font-[800]",t?"bg-primary text-white shadow-[0_12px_24px_-22px_color-mix(in_srgb,var(--color-primary)_48%,transparent)]":"text-ink-muted hover:bg-canvas hover:text-ink"):"underline"===l?(0,i.cx)("text-[13px] font-[800]",y?"justify-start rounded-r-control px-[12px] py-[8px] border-l-2 -ml-[2px]":"px-[2px] pb-[10px] border-b-2 -mb-px",t?"border-primary text-ink":"border-transparent text-ink-muted hover:text-ink-secondary"):(0,i.cx)("justify-center rounded-[6px] px-[12px] py-[6px] text-[12px] font-[800]",t?"bg-surface text-ink shadow-panel":"text-ink-muted hover:text-ink-secondary")),children:[e.icon,e.label,void 0!==e.badge&&(0,a.jsx)("span",{className:"font-[600] text-ink-faint",children:e.badge})]},e.value)})})}},42774:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(8828).A)("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"}]])},59514:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(8828).A)("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"}]])},65955:(e,t,r)=>{r.d(t,{p:()=>i});var a=r(88791);let n=()=>()=>{};function i(){return(0,a.useSyncExternalStore)(n,()=>!0,()=>!1)}},72890:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(8828).A)("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"}]])},73442:(e,t,r)=>{r.d(t,{$:()=>o});var a=r(11935),n=r(88791),i=r(98246);let o=(0,n.forwardRef)(function(e,t){let{variant:r="secondary",size:n="md",wrap:o=!1,className:s,type:l="button",...d}=e;return(0,a.jsx)("button",{ref:t,type:l,className:(0,i.s)({variant:r,size:n,wrap:o,className:s}),...d})})},85190:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(8828).A)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},86975:(e,t,r)=>{r.d(t,{default:()=>n.a});var a=r(26628),n=r.n(a)},96158:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(8828).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594
11.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},96420:(e,t,r)=>{var a=r(42516);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},98246:(e,t,r)=>{function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}r.d(t,{Ii:()=>c,Nu:()=>l,a2:()=>d,cx:()=>a,s:()=>s});let n={primary:"border-primary-hover bg-primary text-on-primary hover:bg-primary-hover",secondary:"border-border bg-surface text-ink-secondary hover:border-border-strong hover:bg-canvas hover:text-ink",quiet:"border-transparent bg-transparent text-ink-secondary hover:bg-surface-muted hover:text-ink",success:"border-success-border bg-success-bg text-success-dark hover:border-success hover:bg-success-bg",warning:"border-warning-border bg-warning-bg text-warning-text hover:border-warning-text",danger:"border-danger-border bg-error-bg text-error-dark hover:border-error hover:bg-error-bg",ai:"border-ai-hover bg-ai text-on-primary hover:bg-ai-hover"},i={sm:"h-[30px] rounded-control px-[10px] text-[11px]",md:"h-[38px] rounded-control px-[14px] text-[13px]",lg:"h-[42px] rounded-control px-[18px] text-[13px]"},o={sm:"min-h-[30px] rounded-control px-[10px] py-[5px] text-[11px]",md:"min-h-[38px] rounded-control px-[14px] py-[8px] text-[13px]",lg:"min-h-[42px] rounded-control px-[18px] py-[10px] text-[13px]"};function s(){let{variant:e="secondary",size:t="md",wrap:r=!1,className:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a("inline-flex cursor-pointer items-center justify-center gap-[8px] border font-body font-[800] transition-[background-color,border-color,color,box-shadow,transform] duration-150 active:translate-y-[1px] motion-reduce:transform-none",r?"whitespace-normal text-left":"whitespace-nowrap","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:ring-offset-surface","disabled:pointer-events-none disabled:border-border disabled:bg-surface-muted disabled:text-ink-faint disabled:shadow-none",n[e],r?o[t]:i[t],s)}function l(e){return a("rounded-card border border-border bg-surface shadow-panel",e)}function d(e){return a("h-[42px] w-full rounded-control border border-border bg-canvas px-[12px] font-body text-[13px] font-[600] text-ink outline-none transition-[background-color,border-color,box-shadow] duration-150","placeholder:text-ink-faint hover:border-border-strong focus:border-focus focus:bg-surface focus:ring-2 focus:ring-focus-soft","disabled:cursor-not-allowed disabled:bg-surface-muted disabled:text-ink-muted",e)}let c="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:ring-offset-surface"}}]);
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.