PageSourceSearch

https://apex-ops-delta.vercel.app/assets/Demo-CpphgmbU.js

js apex-ops-delta.vercel.app collected 2026-10-03 06:06:26 UTC 5,585 bytes, 1 lines download raw bytes

1import{r as s,j as e,L as f}from"./vendor-_7wHzwhe.js";import{P as g,aa as y,J as j,t as b,B as N,ab as v}from"./index-BxaSwYnP.js";import{T as w}from"./TurnstileWidget-86Ti--93.js";import{u as k}from"./useScrollToTopWhen-BKFSA_KW.js";import{P as S}from"./plane-Tfp_sx_H.js";import{F as C}from"./file-text-DjQc2uOd.js";import{U as T}from"./users-BTSbnGbG.js";import{C as E}from"./circle-check-Bylf0jyy.js";import{C as P}from"./circle-alert-OeVAsFaJ.js";import{L as D}from"./loader-circle-BUTbyqAc.js";import{M as F}from"./mail-BbHCQz-A.js";import"./framer-motion-BC1ef0HS.js";const O=[{icon:S,title:"Fleet document tracking",text:"Every aircraft, every registration and inspection, with red/amber/green status at a glance."},{icon:C,title:"Safety report workflows",text:"Submit, triage, and resolve squawks, safety reports, and incidents in one place."},{icon:T,title:"Staff currency & sign-offs",text:"Expiring medicals, flight reviews, and policy acknowledgments tracked per person."},{icon:j,title:"Role-based views",text:"Switch between the owner view and the CFI view to see exactly what your team sees."}];function z(){const[a,p]=s.useState(""),[n,o]=s.useState(""),[i,l]=s.useState(!1),[d,c]=s.useState(!1);k(d);const[m,r]=s.useState(null),u=async t=>{t.preventDefault(),r(null),l(!0);try{const x=await fetch("/api/demo-access",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a.trim(),turnstileToken:n})}),h=await x.json();if(!x.ok){r(h.error??"Something went wrong. Please try again.");return}c(!0)}catch{r("Something went wrong. Please try again.")}finally{l(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(g,{title:"Interactive Demo",description:"Explore the Apex Ops Desk portal with sample data. Enter your email and get a private demo link.",canonical:"/demo",noindex:!0}),e.jsx(y,{}),e.jsx("main",{className:"min-h-screen bg-background pt-24 pb-20",children:e.jsx("div",{className:"container mx-auto max-w-5xl px-6",children:e.jsxs("div",{className:"grid gap-12 lg:grid-cols-2 lg:gap-16",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-4 py-1.5 text-xs font-semibold uppercase tracking-widest text-primary",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary animate-pulse"}),"Self-Serve Demo"]}),e.jsxs("h1",{className:"mt-5 font-display text-3xl font-bold text-foreground sm:text-4xl",children:["See The Ops Desk.",e.jsx("br",{}),e.jsx("span",{className:"text-gradient",children:"No call required."})]}),e.jsx("p",{className:"mt-4 text-muted-foreground",children:"Get a private link to a fully interactive sandbox of the Apex Ops Desk, loaded with sample data from a fictional flight school. Click everything. Nothing is saved."}),e.jsx("ul",{className:"mt-8 space-y-5",children:O.map(t=>e.jsxs("li",{className:"flex gap-4",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-primary/10",children:e.jsx(t.icon,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-display text-sm font-bold text-foreground",children:t.title}),e.jsx("p",{className:"mt-0.5 text-sm text-muted-foreground",children:t.text})]})]},t.title))})]}),e.jsx("div",{className:"lg:pt-10",children:e.jsx("div",{className:"rounded-2xl border border-border bg-card p-8 shadow-card",children:d?e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-accent/15",children:e.jsx(E,{className:"h-7 w-7 text-accent"})}),e.jsx("h2",{className:"font-display text-xl font-bold text-foreground",children:"Check your inbox"}),e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["We sent a private demo link to"," ",e.jsx("span",{className:"font-medium text-foreground",children:a}),". Open it on any device. The link expires in 7 days."]}),e.jsxs("p",{className:"mt-4 text-xs text-muted-foreground",children:["No email? Check your spam folder or"," ",e.jsx("button",{onClick:()=>{c(!1),o("")},className:"font-medium text-primary underline-offset-2 hover:underline",children:"try again"}),"."]})]}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-display text-xl font-bold text-foreground",children:"Get your demo link"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Enter your email and we'll send you a private link to the sandbox."}),m&&e.jsxs("div",{className:"mt-5 flex items-start gap-3 rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive",children:[e.jsx(P,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsx("span",{children:m})]}),e.jsxs("form",{onSubmit:u,className:"mt-6 space-y-4",children:[e.jsx(b,{type:"email",placeholder:"[email protected]",value:a,onChange:t=>p(t.target.value),required:!0,disabled:i,className:"h-11 bg-background/50"}),e.jsx(w,{onVerify:o,onError:()=>r("Security verification error. Please refresh the page.")}),e.jsxs(N,{type:"submit",size:"lg",disabled:i||!n||!a.trim(),className:"w-full gap-2 bg-gradient-primary font-display font-semibold shadow-glow hover:opacity-90",children:[i?e.jsx(D,{className:"h-4 w-4 animate-spin"}):e.jsx(F,{className:"h-4 w-4"}),"Send my demo link"]})]}),e.jsxs("p",{className:"mt-5 text-center text-xs text-muted-foreground",children:["Ready to talk instead?"," ",e.jsx(f,{to:"/contact",className:"font-medium text-primary hover:underline",children:"Contact us"})]})]})})})]})})}),e.jsx(v,{})]})}
1export{z 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.