PageSourceSearch

https://hazlo.ai/assets/ContactPage-K1RdWF0t.js

js hazlo.ai collected 2026-10-05 12:02:19 UTC 6,481 bytes, 1 lines download raw bytes

1import{r as h,u as f,j as e,n as N,H as b,M as y,C as v,a1 as w,a2 as S,a3 as C,I as F,b as p,E as k,F as q,g as T}from"./index-BnaYeSvb.js";import{u as M,F as E,a as t,b as r,c as i,d as n,e as l,t as I}from"./form-vX0IXxf_.js";import{I as c}from"./input-C7TyQeHs.js";import{T as H}from"./textarea-DcLVmfwQ.js";import{M as A}from"./mail-Bw7_012T.js";import{G}from"./globe-DBH7e_zS.js";import{C as P}from"./circle-check-BrnRFuUj.js";import{L as D}from"./loader-circle-CHDp-7rX.js";import{ar as L,aF as o}from"./types-TjQ6qzEV.js";import"./label-D5qoqX6E.js";const O=L({name:o().min(1,"Name is required"),email:o().email("Valid email is required"),company:o().optional(),phone:o().optional(),message:o().min(5,"Please provide a message")});function X(){const[d,m]=h.useState(!1),[u,x]=h.useState(!1),{toast:j}=f(),a=M({resolver:I(O),defaultValues:{name:"",email:"",company:"",phone:"",message:""}}),g=async s=>{m(!0);try{await T("POST","/api/leads",{...s,leadType:"contact",source:window.location.href}),x(!0)}catch{j({title:"Error",description:"Failed to send message. Please try again or email us directly.",variant:"destructive"})}finally{m(!1)}};return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(N,{title:"Contact Hazlo.ai — Domain Acquisitions & Support",description:"Get in touch with the Hazlo team for domain acquisition inquiries, marketplace support, or general questions about AI domain valuation.",canonical:"/contact"}),e.jsx(b,{}),e.jsx("main",{className:"flex-1 container max-w-5xl mx-auto px-4 py-16",children:e.jsxs("div",{className:"grid md:grid-cols-[1fr_1.4fr] gap-12 items-start",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-3",children:"Get in Touch"}),e.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"Questions about a domain, partnership opportunities, or just want to say hello? We'd love to hear from you."})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:e.jsx(A,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Email us directly"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline text-sm",children:"[email protected]"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:e.jsx(G,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Browse domains"}),e.jsx("a",{href:"/domains",className:"text-primary hover:underline text-sm",children:"View our full inventory →"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:e.jsx(y,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Domain appraisal"}),e.jsx("a",{href:"/appraisal",className:"text-primary hover:underline text-sm",children:"Get an instant AI valuation →"})]})]})]}),e.jsx("div",{className:"rounded-xl border border-border bg-muted/30 p-5",children:e.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:[e.jsx("span",{className:"font-semibold text-foreground",children:"Typically respond within 24 hours."})," ","For urgent domain acquisition inquiries, email directly or use the Make an Offer button on any domain listing."]})})]}),e.jsxs(v,{className:"border-border bg-card shadow-xl",children:[e.jsxs(w,{children:[e.jsx(S,{children:"Send a Message"}),e.jsx(C,{children:"All fields marked required will help us respond faster."})]}),e.jsx(F,{children:u?e.jsxs("div",{className:"py-10 flex flex-col items-center gap-4 text-center",children:[e.jsx(P,{className:"h-14 w-14 text-primary"}),e.jsx("h3",{className:"text-lg font-bold",children:"Message Sent!"}),e.jsx("p",{className:"text-muted-foreground text-sm max-w-xs",children:"Thanks for reaching out. We'll get back to you within 24 hours."}),e.jsx(p,{variant:"outline",onClick:()=>{x(!1),a.reset()},"data-testid":"button-send-another",children:"Send another message"})]}):e.jsx(E,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(g),className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(t,{control:a.control,name:"name",render:({field:s})=>e.jsxs(r,{children:[e.jsxs(i,{children:["Name ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(n,{children:e.jsx(c,{placeholder:"Jane Smith",...s,className:"bg-muted/50","data-testid":"input-contact-name"})}),e.jsx(l,{})]})}),e.jsx(t,{control:a.control,name:"email",render:({field:s})=>e.jsxs(r,{children:[e.jsxs(i,{children:["Email ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(n,{children:e.jsx(c,{type:"email",placeholder:"[email protected]",...s,className:"bg-muted/50","data-testid":"input-contact-email"})}),e.jsx(l,{})]})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(t,{control:a.control,name:"company",render:({field:s})=>e.jsxs(r,{children:[e.jsx(i,{children:"Company"}),e.jsx(n,{children:e.jsx(c,{placeholder:"Acme Corp",...s,className:"bg-muted/50","data-testid":"input-contact-company"})}),e.jsx(l,{})]})}),e.jsx(t,{control:a.control,name:"phone",render:({field:s})=>e.jsxs(r,{children:[e.jsx(i,{children:"Phone"}),e.jsx(n,{children:e.jsx(c,{type:"tel",placeholder:"+1 555 000 0000",...s,className:"bg-muted/50","data-testid":"input-contact-phone"})}),e.jsx(l,{})]})})]}),e.jsx(t,{control:a.control,name:"message",render:({field:s})=>e.jsxs(r,{children:[e.jsxs(i,{children:["Message ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(n,{children:e.jsx(H,{placeholder:"What can we help you with?",className:"bg-muted/50 min-h-[120px]",...s,"data-testid":"input-contact-message"})}),e.jsx(l,{})]})}),e.jsx(p,{type:"submit",className:"w-full gap-2",disabled:d,"data-testid":"button-contact-submit",children:d?e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"h-4 w-4 animate-spin"}),"Sending…"]}):e.jsxs(e.Fragment,{children:[e.jsx(k,{className:"h-4 w-4"}),"Send Message"]})})]})})})]})]})}),e.jsx(q,{})]})}
1export{X 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.