PageSourceSearch

https://optraflow.com/assets/PilotProgram-DfwrgAlJ.js

js optraflow.com collected 2026-09-24 14:50:06 UTC 6,624 bytes, 5 lines download raw bytes

1import{j as e,r as i}from"./vendor-_ezZoJiD.js";import{L as S}from"./LandingLayout-dmgb-oP9.js";import{B as C}from"./button-DatArJX-.js";import{f as E,L as q}from"./index-DJLK6UyP.js";import{C as m,a as T}from"./custom-textarea-CTcD_cUF.js";import{p as g}from"./icons-BvJ5U55O.js";import"./router-ToXy81Ol.js";import"./animation-DJYEBcdM.js";import"./radix-ui-CF92MDW-.js";import"./tanstack-CMznP40l.js";import"./pdf-utils-B8cFOiHv.js";import"./security-BzU2OnB1.js";const c="https://ik.imagekit.io/optraflow/PilotHero.webp";function L(){return e.jsxs("section",{className:"relative w-full overflow-hidden bg-gradient-to-br from-[#136fb0] via-[#0a355c] to-[#061f36]",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-30",children:e.jsxs("svg",{className:"h-full w-full",viewBox:"0 0 1200 600",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"g",x1:"0",y1:"0",x2:"1",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#3aa0ff",stopOpacity:"0.6"}),e.jsx("stop",{offset:"100%",stopColor:"#00e5ff",stopOpacity:"0.2"})]})}),[...Array(18)].map((t,r)=>e.jsx("line",{x1:Math.random()*1200,y1:Math.random()*600,x2:Math.random()*1200,y2:Math.random()*600,stroke:"url(#g)",strokeWidth:"1"},r)),[...Array(22)].map((t,r)=>e.jsx("circle",{cx:Math.random()*1200,cy:Math.random()*600,r:"3",fill:"#4fc3f7"},`c-${r}`))]})}),e.jsx("div",{className:"relative mx-auto max-w-7xl px-6 py-20",children:e.jsxs("div",{className:"grid items-center gap-12 md:grid-cols-2",children:[e.jsxs("div",{className:"text-white",children:[e.jsx("p",{className:"mb-4 text-sm font-semibold tracking-widest text-[#ffffff]",children:"JOIN THE PILOT PROGRAM"}),e.jsxs("h1",{className:"text-4xl font-bold leading-tight md:text-4xl lg:text-4xl",children:["Power Up Testing Efficiency",e.jsx("br",{}),e.jsx("span",{className:"text-white",children:"by 60% in just 4 weeks."})]})]}),e.jsx("div",{className:"flex justify-center md:justify-end",children:e.jsx("div",{className:"relative w-full max-w-lg rounded-2xl bg-slate-50 p-1 shadow-2xl",children:e.jsx("img",{src:`${c}?tr=w-600,f-webp,q-80`,srcSet:`
2                    ${c}?tr=w-400,f-webp,q-80 400w,
3                    ${c}?tr=w-700,f-webp,q-80 700w,
4                    ${c}?tr=w-1000,f-webp,q-80 1000w
5                      `,sizes:"(max-width: 768px) 100vw, 50vw",alt:"Testing efficiency illustration",loading:"lazy",decoding:"async",width:600,height:400,className:"w-full rounded-xl"})})})]})})]})}async function M(t){const r=await fetch(`${E}/pilot-program`,{method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw await r.json();return r.json()}const b={fullName:"",email:"",role:"",phone:"",challenges:""};function k(){const[t,r]=i.useState(b),[s,x]=i.useState({}),[w,j]=i.useState(!1),[h,p]=i.useState(!1),[f,d]=i.useState(null),o=a=>{const{name:l,value:n}=a.target;l==="phone"&&!/^\d*$/.test(n)||(r(u=>({...u,[l]:n})),x(u=>({...u,[l]:void 0})))},y=()=>{const a={};return t.fullName.trim()||(a.fullName="Full name is required"),t.email.trim()?/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,6}$/.test(t.email)||(a.email="Enter a valid email address"):a.email="Company email is required",t.role.trim()||(a.role="Role is required"),t.phone.trim()||(a.phone="Phone number is required"),t.challenges.trim()||(a.challenges="Please describe your challenges"),x(a),Object.keys(a).length===0},[N,v]=i.useState(0),P=async a=>{if(a.preventDefault(),!y())return;const l=Date.now();if(l-N<3e4){d("Please wait before submitting again.");return}p(!0),d(null);try{await M({name:t.fullName,email:t.email,role:t.role,phone:t.phone,challenges:t.challenges}),v(l),r(b),j(!0)}catch(n){console.error("Submission failed:",n),d("Something went wrong. Please try again.")}finally{p(!1)}};return e.jsx("section",{className:"w-full bg-white py-20",children:e.jsx("div",{className:"mx-auto max-w-7xl px-20",children:e.jsxs("div",{className:"mx-auto max-w-4xl rounded-2xl bg-gradient-to-b from-[#16213e] to-[#0f172a] px-10 py-14 shadow-2xl",children:[e.jsx("div",{className:"mb-10 flex justify-center",children:e.jsx("img",{src:q,alt:"OptraFlow",width:200,height:60,loading:"lazy",decoding:"async",className:"mx-auto w-1/4 rounded-md"})}),e.jsx("h1",{className:"mb-2 text-3xl font-bold text-white",children:"Sign up for Pilot Program."}),e.jsx("p",{className:"mb-3 text-lg text-white max-w-2xl",children:'"The pilot program is designed to help teams integrate with optraflow and explore the tool."'}),e.jsxs("div",{className:"space-y-2 mb-10",children:[e.jsxs("p",{className:"flex items-start gap-2 text-sm text-slate-300",children:[e.jsx(g,{className:"mt-0.5 h-4 w-4 text-emerald-400"}
5),e.jsx("span",{children:"Implement API automation with guidance and confidentially transition to the product."})]}),e.jsxs("p",{className:"flex items-start gap-2 text-sm text-slate-300",children:[e.jsx(g,{className:"mt-0.5 h-4 w-4 text-emerald-400"}),e.jsx("span",{children:"Get 1 month trial period to explore the product. No credit card required."})]})]}),e.jsxs("form",{className:"space-y-6",onSubmit:P,children:[e.jsx(m,{label:"Full Name",name:"fullName",value:t.fullName,onChange:o,error:s.fullName,maxLength:100,required:!0,placeholder:"Enter your full name"}),e.jsx(m,{label:"Company Email",name:"email",value:t.email,onChange:o,error:s.email,maxLength:254,required:!0,placeholder:"Enter company email",type:"email"}),e.jsx(m,{label:"Phone Number",name:"phone",type:"tel",inputMode:"numeric",pattern:"[0-9]*",maxLength:10,value:t.phone,onChange:o,error:s.phone,required:!0,placeholder:"Enter your phone number"}),e.jsx(m,{label:"Role",name:"role",value:t.role,onChange:o,error:s.role,maxLength:100,required:!0,placeholder:"Enter your role"}),e.jsx(T,{label:"Current Testing Challenges",name:"challenges",value:t.challenges,onChange:o,error:s.challenges,maxLength:2e3,required:!0,placeholder:"Describe your current testing challenges"}),e.jsx(C,{type:"submit",disabled:h,className:"mt-4 w-full rounded-full bg-[#136fb0] py-6 text-base font-semibold text-white hover:bg-[#136fb0] disabled:opacity-60",children:h?"Submitting...":"Join Pilot Program"})]}),f&&e.jsx("p",{className:"mt-4 text-center text-sm text-red-400",children:f}),w&&e.jsx("p",{className:"mt-4 text-center text-sm text-green-400",children:'"Thank you for joining our pilot program! Our team will get back to you within 5 business days. To speed up your onboarding, you can register and begin setting up your User Profile today."'})]})})})}const J=()=>e.jsx(S,{children:e.jsxs("div",{children:[e.jsx(L,{}),e.jsx(k,{})]})});export{J 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.