PageSourceSearch

https://sellpilothub.com/assets/contact-8Funpuwe.js

js sellpilothub.com collected 2026-10-08 02:05:00 UTC 7,858 bytes, 1 lines download raw bytes

1import{e as P,f as B,u as w,r as i,o as E,g as n,j as e,B as u,b as l,c as T,t as y}from"./index-Byr3-ZG9.js";import{u as k}from"./useServerFn-B7pgqgaZ.js";import{u as M}from"./use-calendly-Dy_FK70h.js";import{I as d}from"./input-Bhe-H49g.js";import{T as A}from"./textarea-BP-vEU8u.js";import{C as x,a as h}from"./card-D-hti0MG.js";import{B as I}from"./badge-Co1U19Ka.js";import{S as L,b as R,a as _}from"./site-footer-DKoSZSAJ.js";import{C as q}from"./circle-check-B4IvvZS4.js";import{S as D}from"./send-C_x47_dV.js";import{B as O}from"./building-2-DBPQE0-E.js";import{M as z}from"./mail-D-cAtug0.js";import{P as G}from"./phone-94BuFALx.js";import{M as H}from"./map-pin-CgUnnG_h.js";import{C as W}from"./calendar-Dqa0_L-7.js";import"./language-selector-B42rg1nM.js";import"./dropdown-menu-DAjk-uLk.js";import"./chevron-right-81HbrJ12.js";import"./circle-CWrBtUtn.js";import"./arrow-right-CgsOVmOD.js";import"./menu-DnNA61AI.js";import"./shield-check-1WVeR1vJ.js";const Y=P({method:"POST"}).handler(B("f50465920e3d91dca73185e0708dd36c4d02be868845f2cc5d8ab491e48dc451"));function ue(){const{t:s}=w(),p=k(Y),[t,f]=i.useState({name:"",email:"",company:"",phone:"",message:"",website:""}),[c,j]=i.useState({}),[g,N]=i.useState(!1),[C,b]=i.useState(!1),S=E({name:n().trim().min(1,s("contact.form.errorRequired")).max(120),email:n().trim().email(s("contact.form.errorEmail")).max(255),company:n().trim().max(200).optional(),phone:n().trim().max(50).optional(),message:n().trim().min(5,s("contact.form.errorMessage")).max(4e3)});function o(a,r){f(m=>({...m,[a]:r}))}async function F(a){a.preventDefault(),j({});const r=S.safeParse(t);if(!r.success){const m={};for(const v of r.error.issues)m[v.path[0]]=v.message;j(m);return}N(!0);try{await p({data:{...r.data,website:t.website}}),T.contactFormSubmitted({has_company:!!r.data.company,has_phone:!!r.data.phone}),b(!0),f({name:"",email:"",company:"",phone:"",message:"",website:""}),y.success(s("contact.form.successToast"))}catch(m){y.error(m?.message||s("contact.form.errorGeneric"))}finally{N(!1)}}return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(L,{}),e.jsxs("main",{className:"flex-1",children:[e.jsxs("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 pt-20 md:pt-28 pb-10 text-center",children:[e.jsx(I,{variant:"secondary",className:"rounded-full",children:s("contact.badge")}),e.jsxs("h1",{className:"mt-6 text-4xl md:text-6xl font-bold tracking-tight",children:[s("contact.titleStart")," ",e.jsx("span",{className:"brand-gradient-text",children:s("contact.titleAccent")})]}),e.jsx("p",{className:"mt-5 text-lg text-muted-foreground max-w-2xl mx-auto",children:s("contact.subtitle")})]}),e.jsxs("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 pb-20 grid lg:grid-cols-5 gap-8",children:[e.jsx(x,{className:"lg:col-span-3 border-border/70",children:e.jsx(h,{className:"p-6 md:p-8",children:C?e.jsxs("div",{className:"text-center py-10",children:[e.jsx("div",{className:"mx-auto h-14 w-14 rounded-full bg-success/10 text-success flex items-center justify-center",children:e.jsx(q,{className:"h-7 w-7"})}),e.jsx("h2",{className:"mt-4 text-2xl font-bold",children:s("contact.form.doneTitle")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("contact.form.doneBody")}),e.jsx(u,{className:"mt-6",variant:"outline",onClick:()=>b(!1),children:s("contact.form.sendAnother")})]}):e.jsxs("form",{onSubmit:F,className:"space-y-5",children:[e.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",width:1,height:1,overflow:"hidden"},children:[e.jsx("label",{htmlFor:"website",children:"Website"}),e.jsx("input",{id:"website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",value:t.website,onChange:a=>o("website",a.target.value)})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(l,{htmlFor:"name",children:s("contact.form.fullName")}),e.jsx(d,{id:"name",value:t.name,onChange:a=>o("name",a.target.value),placeholder:s("contact.form.namePh")}),c.name&&e.jsx("p",{className:"text-xs text-destructive",children:c.name})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(l,{htmlFor:"email",children:s("contact.form.
1workEmail")}),e.jsx(d,{id:"email",type:"email",value:t.email,onChange:a=>o("email",a.target.value),placeholder:s("contact.form.emailPh")}),c.email&&e.jsx("p",{className:"text-xs text-destructive",children:c.email})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(l,{htmlFor:"company",children:s("contact.form.company")}),e.jsx(d,{id:"company",value:t.company,onChange:a=>o("company",a.target.value),placeholder:s("contact.form.companyPh")})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(l,{htmlFor:"phone",children:s("contact.form.phone")}),e.jsx(d,{id:"phone",value:t.phone,onChange:a=>o("phone",a.target.value),placeholder:s("contact.form.phonePh")})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(l,{htmlFor:"message",children:s("contact.form.message")}),e.jsx(A,{id:"message",rows:6,value:t.message,onChange:a=>o("message",a.target.value),placeholder:s("contact.form.messagePh")}),c.message&&e.jsx("p",{className:"text-xs text-destructive",children:c.message})]}),e.jsx(u,{type:"submit",size:"lg",variant:"premium",className:"w-full sm:w-auto",disabled:g,children:g?s("contact.form.sending"):e.jsxs(e.Fragment,{children:[s("contact.form.send")," ",e.jsx(D,{className:"h-4 w-4 ml-1"})]})}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[s("contact.form.privacy")," ",e.jsx("a",{href:"/privacy",className:"underline",children:s("contact.form.privacyLink")}),"."]})]})})}),e.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[e.jsx(x,{className:"border-border/70",children:e.jsxs(h,{className:"p-6 space-y-5",children:[e.jsx("h3",{className:"font-semibold",children:s("contact.sidebar.company")}),e.jsxs("div",{className:"space-y-3 text-sm",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(O,{className:"h-4 w-4 text-primary mt-0.5"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium",children:R}),e.jsx("div",{className:"text-muted-foreground",children:s("contact.sidebar.makerOf")})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(z,{className:"h-4 w-4 text-primary mt-0.5"}),e.jsx("a",{href:"mailto:[email protected]",className:"hover:text-primary",children:"[email protected]"})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(G,{className:"h-4 w-4 text-primary mt-0.5"}),e.jsx("span",{className:"text-muted-foreground",children:s("contact.sidebar.onRequest")})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(H,{className:"h-4 w-4 text-primary mt-0.5"}),e.jsx("span",{className:"text-muted-foreground",children:s("contact.sidebar.location")})]})]})]})}),e.jsx(x,{className:"border-border/70 overflow-hidden",children:e.jsx("div",{className:"aspect-video bg-muted relative",children:e.jsx("iframe",{title:"Office location",src:"https://www.google.com/maps?q=Cairo,Egypt&output=embed",className:"absolute inset-0 w-full h-full border-0",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),e.jsx(x,{className:"border-primary/40 bg-primary/5",children:e.jsxs(h,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[e.jsx(W,{className:"h-4 w-4"}),e.jsx("h3",{className:"font-semibold",children:s("contact.sidebar.demoTitle")})]}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:s("contact.sidebar.demoBody")}),e.jsx(J,{})]})})]})]})]}),e.jsx(_,{})]})}function J(){const{t:s}=w(),{openPopup:p}=M();return e.jsx(u,{className:"mt-4 w-full",variant:"premium",onClick:p,children:s("contact.sidebar.demoCta")})}export{ue 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.