PageSourceSearch

https://app.kalio.ai/assets/free-trial-signup-vYzkAr4a.js

js kalio.ai collected 2026-10-05 15:23:01 UTC 4,459 bytes, 1 lines download raw bytes

1import{r as j,m as T,j as e,C as A,I as l,B as E,v as W,L as k,i as p,k as q,w as D,s as o}from"./index-Yd7ZLfjl.js";import{u as P,a as R,F as U,b as m,c,d,e as u,f as x}from"./form-BWdkXQ_q.js";import{L as B}from"./Logo-mXfm3PwD.js";import{A as C,b as w}from"./alert-B_th6ApT.js";import{C as H,b as K,c as O,d as Y,a as G,e as J}from"./card-BJnU_Ivh.js";import"./label-DfVtU0BN.js";import"./index-DBodiSW6.js";const M=D({email:o().min(1,"Email is required").email("Please enter a valid email address"),fullName:o().min(1,"Full name is required").min(2,"Name must be at least 2 characters"),company:o().min(1,"Company is required").min(2,"Company name must be at least 2 characters"),website:o().optional(),useCase:o().optional()});function Q({onSuccess:r,utmParams:i={}}){const[t,f]=j.useState(!1),[N,F]=j.useState(!1),[g,b]=j.useState(null),S=T(),a=P({resolver:R(M),mode:"onBlur",defaultValues:{email:"",fullName:"",company:"",website:"",useCase:""}}),v=async s=>{b(null),f(!0);try{const h=p(s.email).trim().toLowerCase(),_=p(s.fullName),z=p(s.company),L=s.useCase?p(s.useCase):void 0;let y;if(s.website){let n=s.website.trim();!n.startsWith("http://")&&!n.startsWith("https://")&&(n=`https://${n}`),y=q(n)}const I={email:h,full_name:_,company:z,website:y,use_case:L,referral_source:"free_trial_signup_page",utm_source:i.utm_source,utm_medium:i.utm_medium,utm_campaign:i.utm_campaign};console.info("Waitlist signup:",I),F(!0),r?.(),setTimeout(()=>{S.navigate({to:"/auth/login"})},3e3)}catch(h){console.error("Free trial signup error:",h),b("Failed to submit request. Please try again.")}finally{f(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8",children:e.jsxs(H,{className:"w-full max-w-md",children:[e.jsxs(K,{className:"space-y-1",children:[e.jsx("div",{className:"mb-6 flex justify-center",children:e.jsx(B,{size:"lg"})}),e.jsx(O,{className:"text-center text-2xl",children:"Start Your Free Trial"}),e.jsx(Y,{className:"text-center",children:"Get early access to Kalio's AI SDR agent and convert more website visitors into qualified leads"})]}),e.jsxs(G,{className:"space-y-4",children:[g&&e.jsx(C,{variant:"destructive",children:e.jsx(w,{children:g})}),N&&e.jsxs(C,{className:"border-green-200 bg-green-50 text-green-800",children:[e.jsx(A,{className:"h-4 w-4"}),e.jsx(w,{children:"Success! You've been added to our waitlist. Check your email for next steps."})]}),e.jsx(U,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(v),className:"space-y-4",children:[e.jsx(m,{control:a.control,name:"fullName",render:({field:s})=>e.jsxs(c,{children:[e.jsx(d,{children:"Full Name"}),e.jsx(u,{children:e.jsx(l,{type:"text",placeholder:"John Doe",disabled:t,autoComplete:"name",...s})}),e.jsx(x,{})]})}),e.jsx(m,{control:a.control,name:"email",render:({field:s})=>e.jsxs(c,{children:[e.jsx(d,{children:"Work Email"}),e.jsx(u,{children:e.jsx(l,{type:"email",placeholder:"[email protected]",disabled:t,autoComplete:"email",...s})}),e.jsx(x,{})]})}),e.jsx(m,{control:a.control,name:"company",render:({field:s})=>e.jsxs(c,{children:[e.jsx(d,{children:"Company"}),e.jsx(u,{children:e.jsx(l,{type:"text",placeholder:"Acme Inc.",disabled:t,autoComplete:"organization",...s})}),e.jsx(x,{})]})}),e.jsx(m,{control:a.control,name:"website",render:({field:s})=>e.jsxs(c,{children:[e.jsx(d,{children:"Website (Optional)"}),e.jsx(u,{children:e.jsx(l,{type:"text",placeholder:"acme.com",disabled:t,...s})}),e.jsx(x,{})]})}),e.jsx(m,{control:a.control,name:"useCase",render:({field:s})=>e.jsxs(c,{children:[e.jsx(d,{children:"How do you plan to use Kalio? (Optional)"}),e.jsx(u,{children:e.jsx(l,{type:"text",placeholder:"Qualify leads from website visitors",disabled:t,...s})}),e.jsx(x,{})]})}),e.jsx(E,{type:"submit",className:"w-full",disabled:t,children:t?e.jsxs(e.Fragment,{children:[e.jsx(W,{className:"mr-2 h-4 w-4 animate-spin"}),"Submitting..."]}):"Start Free Trial"})]})})]}),e.jsx(J,{className:"flex justify-center",children:e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Already have an account?"," ",e.jsx(k,{to:"/auth/login",className:"-my-3 py-3 font-medium text-primary hover:text-primary/80",children:"Sign in"})]})})]})})}
1function ae(){const r=new URLSearchParams(window.location.search),i={utm_source:r.get("utm_source")||void 0,utm_medium:r.get("utm_medium")||void 0,utm_campaign:r.get("utm_campaign")||void 0};return e.jsx(Q,{utmParams:i})}export{ae as component};

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.