1import{r as m,j as e,i as C}from"./vendor-v5DjFkRP.js";import{S as le}from"./SEOHead-C7IzoEQX.js";import{S as A,E as p,H as O,P as L,a as oe}from"./SyberWorldShell-DO0wn36d.js";import{d as S,i as ce}from"./app-BWFUgF-i.js";import{S as w,D as de,V as me,E as Z,a as ee}from"./syberworldEvent-DCYxk0cR.js";import{u as xe,P as ue,I as pe,E as he,F as be,A as fe,t as ge}from"./usePrivateTourForm-CHZDrbQx.js";import"./phone-DTUGA0BY.js";const K=()=>typeof window>"u"?"":(new URLSearchParams(window.location.search).get("code")??"").trim();function ye({onVerified:t}){const[a,s]=m.useState(K),[l,r]=m.useState(!1),[i,n]=m.useState(null),[c,h]=m.useState(()=>K()!==""),u=m.useRef(!1),b=m.useCallback(async y=>{const f=y.trim();if(f){r(!0),n(null);try{const N=await fetch("/api/syberworld-verify-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:f})}),k=await N.json().catch(()=>({}));if(!N.ok){n(k.error||"Code could not be verified."),h(!1);return}t(f,k.invitee)}catch(N){console.error("Code verification error:",N),n("Something went wrong. Please try again."),h(!1)}finally{r(!1)}}},[t]);m.useEffect(()=>{if(u.current||typeof window>"u")return;const f=new URLSearchParams(window.location.search).get("code");f&&f.trim()&&(u.current=!0,b(f))},[b]);const v=y=>{y.preventDefault(),b(a)};return c?e.jsx(A,{footerLeft:"SyberJet World 2026 · By Invitation",children:e.jsxs("div",{className:"fade-up max-w-[560px] w-full",children:[e.jsx(p,{children:"Invitation Access"}),e.jsx("h1",{className:"mt-5 text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[36px] md:text-[52px]",children:"Opening your invitation."}),e.jsx("p",{className:"mt-5 text-white/90 font-light text-[15px] md:text-[16px] leading-[1.6] max-w-[480px]",children:"One moment while we check your link."}),e.jsx(O,{className:"mt-8"}),e.jsx(S,{className:"mt-8 h-6 w-6 animate-spin text-syberred-600"})]})}):e.jsx(A,{footerLeft:"SyberJet World 2026 · By Invitation",children:e.jsxs("div",{className:"fade-up max-w-[560px] w-full",children:[e.jsx(p,{children:"Invitation Access"}),e.jsx("h1",{className:"mt-5 text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[36px] md:text-[52px]",children:"Enter your access code."}),e.jsx("p",{className:"mt-5 text-white/90 font-light text-[15px] md:text-[16px] leading-[1.6] max-w-[480px]",children:"Your invitation includes a private access code. Enter it below to view your RSVP."}),e.jsx(O,{className:"mt-8"}),e.jsxs("form",{onSubmit:v,className:"mt-8 max-w-[420px]",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] block mb-2",style:{color:i?"var(--sj-red)":"var(--sj-grey)"},children:["Access code",i?" *":""]}),e.jsx("input",{type:"text",value:a,onChange:y=>s(y.target.value),autoFocus:!0,disabled:l,className:"w-full bg-transparent text-white text-[15px] font-light py-2 border-0 border-b border-sj-grey focus:outline-none transition-colors duration-200 ease-out placeholder:text-zinc-500 focus:border-syberred-600 disabled:opacity-50",style:{borderBottomColor:i?"var(--sj-red)":void 0,borderBottomWidth:"1px"}}),i&&e.jsx("span",{className:"block mt-1.5 text-[11px] font-semibold tracking-[0.15em] uppercase text-syberred-600",children:i})]}),e.jsx("div",{className:"mt-7",children:e.jsx(L,{type:"submit",disabled:l||!a.trim(),children:l?e.jsx(S,{className:"w-4 h-4 animate-spin"}):"Continue"})})]})]})})}const je="SJ36 UNVEILING",we=`${w.date} · ${de}`,ve=me,X="October 10, 2026",Ne=["The light jet category has a ceiling. The SJ36 intends to shatter it â engineered to push range further than the class has ever allowed.","Join SyberJet and a select group of owners, operators, partners, and press for the unveiling. An evening on the ramp â flight crew briefings, aircraft access, and a first look at what comes next."],Se=t=>(t.trim().split(/\s+/)[0]||"").trim();function ke({invitee:t,onRsvp:a}){const[s,l]=m.useState(null),r=async n=>{l(n);try{await a(n)}finally{l(null)}},i=Se(t.name)||"Hello";return e.jsx(A,{footerLeft:`Kindly respond by ${X}`,children:e.jsxs("div",{className:"fade-up max-w-[560px]",children:[e.jsx("h1",{className:"text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[44px] md:text-[64px]",children:je}),e.jsxs("p",{className:"mt-5 text-syberred-500 italic font-semibold text-[17px] md:text-[19px] leading-snug",children:[we," · ",ve]}),e.jsx("div",{className:"mt-7 max-w-[500px] space-y-4",children:Ne.map((n,c)=>e.jsx("p",{className:"text-white/90 font-light text-[15px] md:text-[17px] leading-[1.6]",children:n},c))}),e.jsx(O,{className:"mt-9"}),e.jsxs("p",{className:"mt-6 text-white text-[14px] md:text-[15px] font-light italic",children:[i,", we want you on the tarmac with us."]}),e.jsxs("div",{className:"mt-5 flex flex-wrap gap-3",children:[e.jsx(L,{onClick:()=>r("accept"),disabled:s!==null,children:s==="accept"?e.jsx(S,{className:"w-4 h-4 animate-spin"}):"Accept"}),e.jsx(oe,{onClick:()=>r("decline"),disabled:s!==null,children:s==="decline"?e.jsx(S,{className:"w-4 h-4 animate-spin"}):"Decline"})]}),e.jsxs("div",{className:"mt-7 inline-flex items-center gap-3 border-l-2 border-syberred-600 pl-4 py-1",children:[e.jsx("span",{"aria-hidden":"true",className:"block w-2 h-2 bg-syberred-600 rounded-full"}),e.jsxs("span",{className:"text-white font-semibold tracking-[0.2em] uppercase text-[12px] md:text-[13px]",children:["Kindly respond by ",X]})]})]})})}const _=5,Ee="October 10, 2026",Ce=t=>`https://calendar.google.com/calendar/render?${new URLSearchParams({action:"TEMPLATE",text:t.title,dates:`${t.startUTC}/${t.endUTC}`,details:t.description,location:t.location}).toString()}`,Re=t=>{const a=new Date().toISOString().replace(/[-:]/g,"").split(".")[0]+"Z",s=l=>String(l).replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/,/g,"\\,").replace(/;/g,"\\;");return["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//SyberJet//SJ36
1Unveiling//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","BEGIN:VEVENT","UID:[email protected]",`DTSTAMP:${a}`,`DTSTART:${t.startUTC}`,`DTEND:${t.endUTC}`,`SUMMARY:${s(t.title)}`,`DESCRIPTION:${s(t.description)}`,`LOCATION:${s(t.location)}`,"BEGIN:VALARM","ACTION:DISPLAY","DESCRIPTION:SyberJet World 2026 â SJ36 Unveiling begins in 1 hour","TRIGGER:-PT1H","END:VALARM","END:VEVENT","END:VCALENDAR"].join(`\r 2`)},Te=()=>{const t=new Blob([Re(ee)],{type:"text/calendar;charset=utf-8"}),a=URL.createObjectURL(t),s=document.createElement("a");s.href=a,s.download="sj36-unveiling.ics",document.body.appendChild(s),s.click(),document.body.removeChild(s),setTimeout(()=>URL.revokeObjectURL(a),1e3)};function z({label:t,value:a,note:s}){return e.jsxs("div",{className:"flex items-baseline gap-4 py-5 border-b border-white/10",children:[e.jsx("div",{className:"md:w-[130px] md:shrink-0 pt-px",children:e.jsx(p,{children:t})}),e.jsxs("div",{className:"ml-auto md:ml-0 text-right md:text-left",children:[e.jsx("div",{className:"text-white font-light text-[14px] md:text-[15px]",children:a}),s&&e.jsx("div",{className:"mt-1 text-zinc-400 font-light text-[13px] leading-[1.45]",children:s})]})]})}function Ae({onChange:t}){return e.jsxs("div",{className:"mt-6 flex flex-wrap items-baseline gap-x-3 gap-y-2",children:[e.jsxs("span",{className:"text-zinc-400 font-light italic text-[13px] leading-[1.5]",children:["You can change your response until ",Ee,"."]}),t&&e.jsx("button",{type:"button",onClick:t,className:"text-[11px] tracking-[0.2em] uppercase font-semibold text-white hover:text-syberred-500 transition-colors",children:"Change Response â"})]})}function Oe(){const[t,a]=m.useState(!1),s=m.useRef(null);return m.useEffect(()=>{if(!t)return;const l=i=>{i.key==="Escape"&&a(!1)},r=i=>{s.current&&!s.current.contains(i.target)&&a(!1)};return document.addEventListener("keydown",l),document.addEventListener("mousedown",r),()=>{document.removeEventListener("keydown",l),document.removeEventListener("mousedown",r)}},[t]),e.jsxs("div",{className:"relative inline-block",ref:s,children:[e.jsxs("button",{type:"button",onClick:()=>a(l=>!l),"aria-expanded":t,"aria-haspopup":"menu",className:"inline-flex items-center gap-3 px-5 py-3 border border-white text-white font-semibold tracking-[0.18em] text-[11px] md:text-[12px] uppercase transition-colors duration-200 ease-out hover:bg-white hover:text-[#252729]",children:["Add to Calendar",e.jsx("span",{"aria-hidden":"true",className:"text-[10px] tracking-widest",children:"â¾"})]}),t&&e.jsxs("div",{role:"menu",className:"absolute left-0 mt-2 z-30 min-w-[240px] border border-white/20 bg-black/85 backdrop-blur-md",children:[e.jsxs("a",{role:"menuitem",href:Ce(ee),target:"_blank",rel:"noopener noreferrer",onClick:()=>a(!1),className:"flex items-center justify-between px-5 py-4 text-[12px] tracking-[0.16em] uppercase font-semibold text-white hover:bg-white hover:text-[#252729] transition-colors border-b border-white/10",children:[e.jsx("span",{children:"Google Calendar"}),e.jsx("span",{"aria-hidden":"true",className:"text-[10px] tracking-widest opacity-60",children:"â"})]}),e.jsxs("button",{role:"menuitem",type:"button",onClick:()=>{Te(),a(!1)},className:"w-full flex items-center justify-between px-5 py-4 text-[12px] tracking-[0.16em] uppercase font-semibold text-white hover:bg-white hover:text-[#252729] transition-colors",children:[e.jsx("span",{children:"Apple / iCal (.ics)"}),e.jsx("span",{"aria-hidden":"true",className:"text-[10px] tracking-widest opacity-60",children:"â"})]})]})]})}function W({id:t,label:a,value:s,onChange:l,type:r="text",disabled:i,invalid:n,describedBy:c}){return e.jsxs("div",{children:[e.jsx("label",{htmlFor:t,className:"block text-[11px] font-semibold uppercase tracking-[0.2em] text-zinc-300",children:a}),e.jsx("input",{id:t,type:r,value:s,onChange:l,disabled:i,autoComplete:"off","aria-invalid":n||void 0,"aria-describedby":c,className:"mt-1.5 w-full bg-transparent text-white text-[15px] font-light py-2 border-0 border-b transition-colors duration-200 ease-out placeholder:text-zinc-500 focus:outline-none focus:border-syberred-600 disabled:opacity-50",style:{borderBottomColor:"#828282",borderBottomWidth:"1px"}})]})}function Pe({guests:t,overflowNote:a,onAddGuest:s,onRemoveGuest:l,onAddOverflowNote:r}){const i=t??[],[n,c]=m.useState({first:"",last:"",email:""}),[h,u]=m.useState(!1),[b,v]=m.useState(!1),[y,f]=m.useState(null),[N,k]=m.useState(null),[$,P]=m.useState(!1),[E,J]=m.useState(""),[D,q]=m.useState(""),[R,d]=m.useState(!1),o=!!(a&&a.trim()),g=i.length>=_,T=(n.email??"").trim(),G=n.first.trim().length>0&&n.last.trim().length>0,B=T.length===0,ae=!B&&!ce(T),Y=!B&&!ae,F=h&&!Y,re=async()=>
2{if(!(!s||!G)&&(u(!0),!!Y)){v(!0);try{await s({first:n.first.trim(),last:n.last.trim(),email:T}),c({first:"",last:"",email:""}),u(!1)}finally{v(!1)}}},ne=async x=>{if(l){if(N!==x){k(x);return}f(x);try{await l(x)}finally{k(null),f(null)}}},ie=async()=>{if(!(!E.trim()||!r)){d(!0);try{const x=D.trim()?`Requesting ${E.trim()} additional: ${D.trim()}`:`Requesting ${E.trim()} additional seats`;await r(x),P(!1),J(""),q("")}finally{d(!1)}}};return e.jsxs("div",{className:"mt-9",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-4 max-w-[600px]",children:[e.jsx(p,{children:"Guest List · Optional"}),e.jsxs("span",{className:"text-[11px] tracking-[0.18em] uppercase font-semibold text-zinc-400",children:[i.length," / ",_]})]}),e.jsxs("p",{className:"mt-3 text-white/80 font-light text-[14px] leading-[1.55] max-w-[500px]",children:["Bringing someone? Add up to ",_," guests to your reservation. Names will be on the manifest at arrival."]}),i.length>0&&e.jsx("div",{className:"mt-2 max-w-[600px] divide-y divide-white/10",children:i.map((x,j)=>{const H=N===j,M=y===j;return e.jsxs("div",{className:"pt-5 pb-1",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx(p,{children:`Guest ${String(j+1).padStart(2,"0")}`}),l&&e.jsxs("div",{className:"flex items-center gap-3",children:[H&&!M&&e.jsx("button",{type:"button",onClick:()=>k(null),className:"text-[10px] tracking-[0.22em] uppercase font-semibold text-zinc-400 hover:text-white transition-colors",children:"Cancel"}),e.jsx("button",{type:"button",onClick:()=>ne(j),disabled:M,className:`text-[10px] tracking-[0.22em] uppercase font-semibold transition-colors disabled:opacity-50 ${H?"text-syberred-500":"text-zinc-400 hover:text-syberred-500"}`,children:M?e.jsx(S,{className:"w-3 h-3 animate-spin"}):H?"Confirm Remove":"Remove"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-x-5 gap-y-2 pb-4",children:[e.jsx("div",{className:"text-white text-[15px] font-light",children:x.first}),e.jsx("div",{className:"text-white text-[15px] font-light",children:x.last}),e.jsx("div",{className:"text-zinc-400 text-[14px] font-light truncate",children:x.email||"â"})]})]},`${x.first}-${x.last}-${j}`)})}),!g&&s&&e.jsxs("div",{className:"mt-6 max-w-[600px] border-t border-white/10 pt-5",children:[e.jsx(p,{children:`Add Guest ${String(i.length+1).padStart(2,"0")}`}),e.jsxs("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-3 gap-x-5 gap-y-5 items-start",children:[e.jsx(W,{id:"syberworld-guest-first",label:"First name",value:n.first,onChange:x=>c(j=>({...j,first:x.target.value})),disabled:b}),e.jsx(W,{id:"syberworld-guest-last",label:"Last name",value:n.last,onChange:x=>c(j=>({...j,last:x.target.value})),disabled:b}),e.jsxs("div",{children:[e.jsx(W,{id:"syberworld-guest-email",label:"Email",type:"email",value:n.email??"",onChange:x=>c(j=>({...j,email:x.target.value})),disabled:b,invalid:F,describedBy:F?"syberworld-guest-email-error":void 0}),F&&e.jsx("p",{id:"syberworld-guest-email-error",role:"alert",className:"mt-2 text-[12px] font-light text-syberred-500",children:B?"Please enter an email address.":"Please enter a valid email address."})]})]}),e.jsx("div",{className:"mt-5",children:e.jsxs("button",{type:"button",onClick:re,disabled:!G||b,className:"inline-flex items-center gap-3 text-[11px] tracking-[0.22em] uppercase font-semibold text-white hover:text-syberred-500 transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:text-white",children:[e.jsx("span",{"aria-hidden":"true",className:"inline-flex items-center justify-center w-5 h-5 border border-current text-[14px] leading-none",children:b?e.jsx(S,{className:"w-3 h-3 animate-spin"}):"+"}),"Add Guest"]})})]}),g&&r&&e.jsxs("div",{className:"mt-6 max-w-[600px]",children:[!$&&!o&&e.jsxs("div",{className:"max-w-[500px]",children:[e.jsxs("p",{className:"text-[13px] text-white/80 font-light leading-[1.55]",children:["Need to bring more than ",_,"?"]}),e.jsx("button",{type:"button",onClick:()=>P(!0),className:"mt-2 text-[11px] tracking-[0.22em] uppercase font-semibold text-syberred-500 hover:text-white transition-colors",children:"Request Additional Seats â"})]}),$&&!o&&e.jsxs("div",{className:"border-t border-syberred-600/60 pt-6",children:[e.jsx(p,{children:"Additional Seats Request"}),e.jsx("p",{className:"mt-3 text-white/80 font-light text-[13px] leading-[1.55]",children:"We'll review with the program team and follow up to confirm."}),e.jsxs("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-[160px_1fr] gap-x-5 gap-y-5",children:[e.jsx(W,{id:"syberworld-overflow-count",label:"How many more?",value:E,onChange:x=>J(x.target.value),disabled:R}),e.jsx(W,{id:"syberworld-overflow-note",label:"Note (optional)",value:D,onChange:x=>q(x.target.value),disabled:R})]}),e.jsxs("div",{className:"mt-5 flex flex-wrap gap-3 items-center",children:[e.jsx(L,{onClick:ie,disabled:!E.trim()||R,children:R?e.jsx(S,{className:"w-4 h-4 animate-spin"}):"Submit Request"}),e.jsx("button",{type:"button",onClick:()=>P(!1),disabled:R,className:"text-[11px] tracking-[0.2em] uppercase text-zinc-400 hover:text-white transition-colors font-semibold py-3 px-2 disabled:opacity-50",children:"Cancel"})]})]}),o&&e.jsxs("div",{className:"max-w-[500px] border-t border-syberred-600/60 pt-5",children:[e.jsx(p,{children:"Request Sent"}),e.jsx("p",{className:"mt-3 text-white/80 font-light text-[14px] leading-[1.55]",children:"Thanks â our team has your request for additional seats and will be in touch to confirm."})]})]})]})}function Ie({guests:t,overflowNote:a,onAddGuest:s,onRemoveGuest:l,onAddOverflowNote:r,onRequestPrivateAccess:i,onChangeResponse:n}){return e.jsx(A,{footerLeft:"Reference · SyberJet World 2026",children:e.jsxs("div",{className:"fade-up max-w-[640px] w-full",children:[e.jsx(p,{children:"RSVP Confirmed"}),e.jsx("h1",{className:"mt-5 text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[34px] md:text-[44px]",children:"We look forward to welcoming you."}),e.jsxs("p",{className:"mt-6 text-white/90 font-light text-[15px] md:text-[16
2px] leading-[1.6] max-w-[560px]",children:["Your attendance is confirmed. Doors open at ",w.doorsTime,", with the reveal program starting at ",w.programTime," ",Z,"."]}),e.jsxs("div",{className:"mt-7 max-w-[480px] border-t border-white/10",children:[e.jsx(z,{label:"Date",value:w.date}),e.jsx(z,{label:"Time",value:`${w.doorsTime} doors · ${w.programTime} program start`,note:`Event closes at ${w.closeTime} ${Z}`}),e.jsx(z,{label:"Venue",value:w.venue,note:w.booth}),e.jsx(z,{label:"Attire",value:w.attire})]}),e.jsx("div",{className:"mt-6 max-w-[480px] border border-white/10 bg-white/[0.045] px-5 py-5",children:e.jsx("p",{className:"text-white/90 font-light text-[14px] leading-[1.55]",children:w.hospitality})}),e.jsx("p",{className:"mt-4 text-zinc-400 font-light italic text-[13px] leading-[1.5] max-w-[480px]",children:"Full schedule, arrival details, and transportation will be sent in the weeks leading up to the event."}),e.jsx("div",{className:"mt-6",children:e.jsx(Oe,{})}),e.jsx(Pe,{guests:t,overflowNote:a,onAddGuest:s,onRemoveGuest:l,onAddOverflowNote:r}),e.jsx(Ae,{onChange:n}),e.jsx(O,{className:"mt-9"}),e.jsxs("div",{className:"mt-6",children:[e.jsx(p,{children:"NBAA · By Invitation"}),e.jsx("h2",{className:"mt-3 text-white font-bold uppercase tracking-[0.04em] text-[20px] md:text-[24px] leading-tight",children:"The full SyberJet experience"}),e.jsx("p",{className:"mt-3 text-white/90 font-light text-[14px] md:text-[15px] leading-[1.6] max-w-[500px]",children:"During NBAA-BACE week, SyberJet is offering a limited number of private tours â an extended look at the SJ36 program, the aircraft, and the team behind it. Schedule by request."}),i&&e.jsx("div",{className:"mt-5",children:e.jsx(L,{onClick:i,children:"Request Private Tour"})})]})]})})}const Le="October 10, 2026";function De({onRequestPrivateAccess:t,onChangeResponse:a}){return e.jsx(A,{footerLeft:"Reference · SyberJet World 2026",children:e.jsxs("div",{className:"fade-up max-w-[560px] w-full",children:[e.jsx(p,{children:"RSVP Declined"}),e.jsx("h1",{className:"mt-5 text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[34px] md:text-[44px]",children:"Thank you for letting us know."}),e.jsx("p",{className:"mt-6 text-white/90 font-light text-[15px] md:text-[16px] leading-[1.6]",children:"We're sorry to miss you. You'll still receive program updates and a recap from the unveiling in the days following the event, and our team will follow up regarding future SyberJet briefings in your area."}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-baseline gap-x-3 gap-y-2",children:[e.jsxs("span",{className:"text-zinc-400 font-light italic text-[13px] leading-[1.5]",children:["You can change your response until ",Le,"."]}),a&&e.jsx("button",{type:"button",onClick:a,className:"text-[11px] tracking-[0.2em] uppercase font-semibold text-white hover:text-syberred-500 transition-colors",children:"Change Response â"})]}),e.jsx(O,{className:"mt-9"}),e.jsxs("div",{className:"mt-6",children:[e.jsx(p,{children:"NBAA · By Invitation"}),e.jsx("h2",{className:"mt-3 text-white font-bold uppercase tracking-[0.04em] text-[20px] md:text-[24px] leading-tight",children:"The full SyberJet experience, at your convenience"}),e.jsx("p",{className:"mt-3 text-white/90 font-light text-[14px] md:text-[15px] leading-[1.6] max-w-[500px]",children:"Whether or not you can join us for the unveiling, we'd welcome the chance to host you privately during NBAA-BACE week in Las Vegas. Tell us what works."}),t&&e.jsx("div",{className:"mt-5",children:e.jsx(L,{onClick:t,children:"Request Private Tour"})})]})]})})}function te({children:t,error:a,required:s}){return e.jsxs("span",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] block mb-2",style:{color:a?"var(--sj-red)":"var(--sj-grey)"},children:[t,s&&e.jsx("span",{className:"text-syberred-500 ml-1",children:"*"})]})}function se({children:t}){return e.jsx("span",{className:"block mt-1.5 text-[11px] font-semibold tracking-[0.15em] uppercase text-syberred-600",children:t})}
2function I({label:t,name:a,type:s="text",value:l,onChange:r,onBlur:i,autoComplete:n,disabled:c,required:h,error:u}){return e.jsxs("label",{className:"block",children:[e.jsx(te,{error:u,required:h,children:t}),e.jsx("input",{name:a,type:s,value:l,onChange:r,onBlur:i,autoComplete:n,disabled:c,className:"w-full bg-transparent text-white text-[15px] font-light py-2 border-0 border-b border-sj-grey transition-colors duration-200 ease-out placeholder:text-zinc-500 focus:outline-none focus:border-syberred-600 disabled:opacity-50",style:{borderBottomColor:u?"var(--sj-red)":void 0,borderBottomWidth:"1px"}}),u&&e.jsx(se,{children:u})]})}function U({label:t,name:a,value:s,onChange:l,options:r,placeholder:i="Selectâ¦",disabled:n,required:c,error:h}){return e.jsxs("label",{className:"block",children:[e.jsx(te,{error:h,required:c,children:t}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{name:a,value:s,onChange:l,disabled:n,className:"w-full appearance-none bg-transparent text-[15px] font-light py-2 pr-8 border-0 border-b border-sj-grey transition-colors duration-200 ease-out focus:outline-none focus:border-syberred-600 cursor-pointer disabled:opacity-50",style:{borderBottomColor:h?"var(--sj-red)":void 0,borderBottomWidth:"1px",color:s?"var(--sj-white)":"var(--sj-grey)"},children:[e.jsx("option",{value:"",disabled:!0,style:{color:"var(--sj-grey)",background:"var(--sj-black)"},children:i}),r.map(u=>e.jsx("option",{value:u.value,style:{color:"var(--sj-white)",background:"var(--sj-black)"},children:u.label},u.value))]}),e.jsx("span",{className:"pointer-events-none absolute right-1 top-1/2 -translate-y-1/2 text-zinc-400 text-[10px] tracking-widest",children:"â¾"})]}),h&&e.jsx(se,{children:h})]})}function Be({label:t,values:a,onToggle:s,options:l,disabled:r}){return e.jsxs("div",{className:"block",children:[e.jsx(p,{children:t}),e.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:l.map(i=>{const n=a.includes(i.value);return e.jsx("button",{type:"button",onClick:()=>s(i.value),"aria-pressed":n,disabled:r,className:`px-3.5 py-2 text-[12px] tracking-[0.08em] uppercase font-semibold transition-colors duration-150 ease-out border disabled:opacity-50 ${n?"bg-syberred-600 border-syberred-600 text-white":"bg-transparent border-zinc-500/60 text-white/80 hover:border-white hover:text-white"}`,children:i.label},i.value)})})]})}function We({context:t,defaults:a,onSubmit:s,onBack:l}){const{fields:r,errors:i,submitting:n,update:c,handlePhoneBlur:h,toggleAircraft:u,submit:b}=xe({defaults:a,onSubmit:s}),v=t==="confirmed"?"Request a private tour.":"Tell us when works.";return e.jsx(A,{footerLeft:"Private Tour Request",children:e.jsxs("div",{className:"fade-up max-w-[680px] w-full",children:[e.jsx(p,{children:"Private Tour Request"}),e.jsx("h1",{className:"mt-5 text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[30px] md:text-[40px]",children:v}),e.jsx("p",{className:"mt-4 text-white/90 font-light text-[14px] md:text-[15px] leading-[1.6] max-w-[520px]",children:"We'd be glad to host you during NBAA-BACE in Las Vegas. While our scheduled tour times are currently full, availability may change. As a SyberJet World guest, we encourage you to submit your preferred date and time below. If a spot becomes available, our team will be in touch to confirm your tour."}),e.jsx(O,{className:"mt-8"}),e.jsxs("form",{onSubmit:f=>f.preventDefault(),noValidate:!0,className:"mt-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-6",children:[e.jsx(I,{label:"First Name",name:"firstName",value:r.firstName,onChange:c("firstName"),error:i.firstName,required:!0,autoComplete:"given-name",disabled:n}),e.jsx(I,{label:"Last Name",name:"lastName",value:r.lastName,onChange:c("lastName"),error:i.lastName,required:!0,autoComplete:"family-name",disabled:n}),e.jsx(I,{label:"Company",name:"company",value:r.company,onChange:c("company"),error:i.company,required:!0,autoComplete:"organization",disabled:n}),e.jsx(I,{label:"Phone",name:"phone",type:"tel",value:r.phone,onChange:c("phone"),onBlur:h,error:i.phone,required:!0,autoComplete:"tel",disabled:n}
2),e.jsx(I,{label:"Email",name:"email",type:"email",value:r.email,onChange:c("email"),error:i.email,required:!0,autoComplete:"email",disabled:n}),e.jsx(U,{label:"Preferred Date & Time",name:"preferred",value:r.preferred,onChange:c("preferred"),options:ue,error:i.preferred,required:!0,disabled:n})]}),e.jsxs("div",{className:"mt-10 pt-8 border-t border-white/10",children:[e.jsx(p,{children:"About You · Optional"}),e.jsxs("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-6",children:[e.jsx("div",{className:"md:col-span-2",children:e.jsx(U,{label:"Aircraft or topic of interest",name:"interest",value:r.interest,onChange:c("interest"),options:pe,disabled:n})}),e.jsx("div",{className:"md:col-span-2",children:e.jsx(U,{label:"How do you anticipate engaging with the SyberJet program?",name:"engagement",value:r.engagement,onChange:c("engagement"),options:he,disabled:n})}),e.jsx("div",{className:"md:col-span-2",children:e.jsx(U,{label:"Approximate size of your fleet",name:"fleetSize",value:r.fleetSize,onChange:c("fleetSize"),options:be,disabled:n})}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(Be,{label:"Types of aircraft you operate (select all that apply)",values:r.aircraftTypes,onToggle:u,options:fe,disabled:n}),r.aircraftTypes.includes("Other")&&e.jsx("div",{className:"mt-5",children:e.jsx(I,{label:"Please specify",name:"aircraftOther",value:r.aircraftOther,onChange:c("aircraftOther"),disabled:n})})]})]})]}),e.jsxs("div",{className:"mt-10 flex flex-wrap gap-3 items-center",children:[e.jsx(L,{onClick:b,disabled:n,children:n?e.jsx(S,{className:"w-4 h-4 animate-spin"}):"Submit Request"}),e.jsx("button",{type:"button",onClick:l,disabled:n,className:"text-[11px] tracking-[0.2em] uppercase text-zinc-400 hover:text-white transition-colors font-semibold py-3 px-2 disabled:opacity-50",children:"â Back"})]})]})]})})}function Ve(){return e.jsx(A,{footerLeft:"Reference · SyberJet World 2026",children:e.jsxs("div",{className:"fade-up max-w-[560px] w-full",children:[e.jsx(p,{children:"Request Received"}),e.jsx("h1",{className:"mt-5 text-white font-extrabold uppercase leading-[1.05] tracking-[-0.01em] text-[32px] md:text-[42px]",children:"You're on the availability list."}),e.jsx("p",{className:"mt-6 text-white/90 font-light text-[15px] md:text-[16px] leading-[1.6]",children:"Our scheduled tour times are currently full. If a meeting time becomes available, you will receive a calendar invitation. Requested times are not guaranteed."}),e.jsx(O,{className:"mt-9"}),e.jsx("p",{className:"mt-6 text-[11px] font-semibold uppercase tracking-[0.2em] text-zinc-300",children:"SyberJet Sales · [email protected]"})]})})}const V=async(t,a)=>{const s=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!s.ok){const l=await s.text().catch(()=>"");throw new Error(`${s.status} ${l}`)}return s},Q=t=>t==="accepted"?"confirmed":t==="declined"?"declined":"invite";function Fe(){const[t,a]=m.useState("code"),[s,l]=m.useState(""),[r,i]=m.useState(null),[n,c]=m.useState([]),[h,u]=m.useState(null),[b,v]=m.useState("loading");m.useEffect(()=>{let d=!1;return(async()=>{try{const o=await fetch("/api/pages/visibility");if(!o.ok)throw new Error(`status ${o.status}`);const g=await o.json();if(d)return;v(g.SyberWorld===!1?"disabled":"enabled")}catch(o){console.error("Page visibility fetch failed; defaulting to enabled:",o),d||v("enabled")}})(),()=>{d=!0}},[]);const y=(d,o)=>{l(d),i(o),c(o.guests??[]),u(o.overflowNote??null),a(Q(o.rsvpStatus))},f=async d=>{try{await V("/api/syberworld-rsvp",{code:s,response:d})}catch(o){console.error("RSVP submit failed:",o),C.error("We could not save your response. Please try again.");return}a(d==="accept"?"confirmed":"declined")},N=async d=>{try{await V("/api/syberworld-add-guest",{code:s,guest:d}),c(o=>[...o,d]),C.success("Guest added")}catch(o){throw console.error("Add guest failed:",o),C.error("We could not add that guest. Please try again."),o}},k=async d=>{const o=n;c(g=>g.slice(0,d).concat(g.slice(d+1)));try{await V("/api/syberworld-remove-guest",{code:s,index:d}),C.success("Guest removed")}catch(g){console.error("Remove guest failed:",g),c(o),C.error("We could not remove that guest. Please try again.")}},$=async d=>{try{await V("/api/syberworld-overflow-note",{code:s,note:d}),u(d),C.success("Thanks â we'll be in touch about your party.")}catch(o){throw console.error("Overflow note failed:",o),C.error("We could not save your note. Please try again."),o}},P=()=>{a("invite")},E=()=>{a("walkthrough")},J=async d=>{const{firstName:o,lastName:g,...T}=ge(d),G=`${o} ${g}`.trim();try{await V("/api/syberworld-private-access-request",{code:s,fullName:G,...T}),a("submitted")}catch(B){console.error("Private access request failed:",B),C.error("We could not submit your request. Please try again.");return}},D=()=>{a(Q((r==null?void 0:r.rsvpStatus)??"accepted"))},q=(r==null?void 0:r.rsvpStatus)==="declined"?"declined":"confirmed",R=r?(()=>{const d=r.name.trim().replace(/\s+/g," "),o=d.indexOf(" "),g=o===-1?d:d.slice(0,o),T=o===-1?"":d.slice(o+1);return{firstName:g,lastName:T,email:r.email,company:r.company??""}})():void 0;return e.jsxs(e.Fragment,{children:[e.jsx(le,{title:"SyberWorld | SyberJet Aircraft",description:"You've been granted access to SyberWorld â a private unveiling of new aircraft by SyberJet.",keywords:"SyberWorld, SyberJet event, NBAA, aviation invitation"}),b==="loading"&&e.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:e.jsx(S,{className:"w-8 h-8 animate-spin text-syberred-500","aria-label":"Loading"})}),b==="disabled"&&e.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center px-6",children:e.jsxs("div",{className:"text-center max-w-xl space-y-4 text-white",children:[e.jsx("h1",{className:"text-3xl font-bold",children:"SyberWorld"}),e.jsx("p",{className:"text-zinc-400 leading-relaxed",children:"This page is currently unavailable. If you were expecting to RSVP, please reach out to your SyberJet contact and we'll get you back in."})]})}),b==="enabled"&&e.jsxs(e.Fragment,{children:[t==="code"&&e.jsx(ye,{onVerified:y}),t==="invite"&&r&&e.jsx(ke,{invitee:r,onRsvp:f}),t==="confirmed"&&e.jsx(Ie,{guests:n,overflowNote:h,onAddGuest:N,onRemoveGuest:k,onAddOverflowNote:$,onRequestPrivateAccess:E,onChangeResponse:P}),t==="declined"&&e.jsx(De,{onRequestPrivateAccess:E,onChangeResponse:P}),t==="walkthrough"&&e.jsx(We,{context:q,defaults:R,onSubmit:J,onBack:D}),t==="submitted"&&e.jsx(Ve,{})]})]})}export{Fe 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.