1import{j as e}from"./app-C1iegf7Q.js";import{H as w,F as v}from"./inertia-BpyZy4w-.js";import{G as b}from"./google-icon-D0Bgdvvc.js";import{I as c}from"./input-error-DbopxwIP.js";import{T as N,l as I}from"./index-Du8heYdk.js";import{B as f}from"./button-BE4q1_FS.js";import{I as x}from"./input-DJt0nBB3.js";import{L as u}from"./label-Czc25Mye.js";import{P}from"./password-input-DbRinonY.js";import{S as _}from"./spinner-DESk7nuH.js";import{A as k}from"./auth-layout-BPpQUs1y.js";import{q as S}from"./index-C_SHgnPd.js";/* empty css */import"./utils-BiuKVCuu.js";import"./index-CGXdj8xB.js";import"./index-DdRFMukF.js";import"./eye-off-MvQ-AuyG.js";import"./createLucideIcon-wqc1LSWg.js";import"./eye-DoZffUO5.js";import"./loader-circle-C_KBZAGS.js";/* empty css */import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./site-announcement-fVSM8f3a.js";import"./use-funnel-tracking-DZvQDmiU.js";import"./x-DQSeRCcH.js";const r=t=>({url:r.url(t),method:"post"});r.definition={methods:["post"],url:"/register"};r.url=t=>r.definition.url+S(t);r.post=t=>({url:r.url(t),method:"post"});const g=t=>({action:r.url(t),method:"post"});g.post=t=>({action:r.url(t),method:"post"});r.form=g;Object.assign(r,r);function te(){const t=new URLSearchParams(window.location.search),d=t.get("intent")||"",i=d==="provider",a=["skilled_worker","global_talent","settlement"].includes(d)?d:"",n=t.get("return_to")||"",j=t.get("email")||"";let s="Create your account",o="We will draft your application case plan for free. You only pay when you are ready to start building.",l="Create account";return i?(s="Create a provider account",o="Register to offer your services on Borderless"):a==="skilled_worker"?(s="Start finding sponsored roles",o="Every UK employer licensed to sponsor, in one place. Track what you have applied for and get your visa checklist ready.",l="Create account"):a==="global_talent"?(s="Start your Global Talent case",o="We map your profile against what the endorsing body looks for, draft your personal statement, and have a specialist review everything before it goes near the panel.",l="Start my case"):a==="settlement"&&(s="Plan your path to settlement",o="Track your absences, manage your ILR documents, and know exactly where you stand.",l="Get started"),e.jsxs(k,{title:s,description:o,children:[e.jsx(w,{title:"Register"}),e.jsx(v,{...r.form(),resetOnSuccess:["password"],disableWhileProcessing:!0,className:"flex flex-col gap-6",children:({processing:y,errors:p})=>e.jsxs(e.Fragment,{children:[i&&e.jsx("input",{type:"hidden",name:"intent",value:"provider"}),a&&e.jsx("input",{type:"hidden",name:"onboarding_intent",value:a}),n&&e.jsx("input",{type:"hidden",name:"return_to",value:n}),e.jsxs("div",{className:"grid gap-6",children:[e.jsx("a",{href:(()=>{const m=new URLSearchParams;i?m.set("intent","provider"):a&&m.set("onboarding_intent",a),n&&!i&&m.set("return_to",n);const h=m.toString();return`/auth/google/redirect${h?`?${h}`:""}`})(),className:"w-full",children:e.jsxs(f,{type:"button",variant:"outline",className:"w-full",children:[e.jsx(b,{className:"mr-2 h-5 w-5"}),"Sign up with Google"]})}),e.jsxs("div",{className:"m-form-divider",children:[e.jsx("div",{className:"m-form-divider-line"}),e.jsx("div",{className:"m-form-divider-label",children:e.jsx("span",{children:"Or sign up with email"})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(u,{htmlFor:"name",children:"Name"}),e.jsx(x,{id:"name",type:"text",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",name:"name",placeholder:"Full name"}),e.jsx(c,{message:p.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(u,{htmlFor:"email",children:"Email address"}),e.jsx(x,{id:"email",type:"email",required:!0,tabIndex:2,autoComplete:"email",name:"email",placeholder:"[email protected]",defaultValue:j}),e.jsx(c,{message:p.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(u,{htmlFor:"password",children:"Password"}),e.jsx(P,{id:"password",type:"password",required:!0,tabIndex:3,autoComplete:"new-password",name:"password",placeholder:"Password"}),e.jsx(c,{message:p.password})]}),e.jsxs(f,{type:"submit",className:"mt-2 w-full",tabIndex:5,"data-test":"register-user-button",children:[y&&e.jsx(_,{}),l]})]}),e.jsxs("div",{className:"m-text-muted text-center text-sm",children:["Already have an account?"," ",e.jsx(N,{href:I(),tabIndex:6,children:"Log in"})]})]})})]})}export{te as default};
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.