PageSourceSearch

https://trueth.io/assets/Inquiry-CpJpFh86.js

js trueth.io collected 2026-09-30 06:37:46 UTC 5,449 bytes, 1 lines download raw bytes

1import{r as s,j as e,S as R,B as b,L as y,e as a,s as I,q as P}from"./index-cvSkj9Gc.js";import{R as z}from"./recaptcha-wrapper-DsG6q2I5.js";import{I as o}from"./input-D3lfeLZA.js";import{T as B}from"./textarea-Di3UPXhW.js";import{C as O}from"./checkbox-CyP_ifK1.js";import{C as W}from"./check-CPGULxQ-.js";import{L as _}from"./loader-circle-BHdvxr0p.js";import{A as H}from"./arrow-right-D7KtaLpO.js";import"./index-LflXr1CT.js";const X="6LfXLRwsAAAAAPmsZp31855OX8LdaJLwb0IiezGo";function Q(){const[l,v]=s.useState(""),[m,S]=s.useState(""),[c,C]=s.useState(""),[d,w]=s.useState(""),[n,T]=s.useState(""),[u,L]=s.useState(""),[h,r]=s.useState(null),[x,k]=s.useState(!1),p=s.useRef(null),[g,f]=s.useState(!1),[F,A]=s.useState(!1),E=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(c.trim()),j=l.trim().length>0&&m.trim().length>0&&E&&n.trim().length>=5&&!!h&&x&&!g,q=async t=>{var N;if(t.preventDefault(),!!j){f(!0);try{const{error:i}=await I.functions.invoke("submit-studio-inquiry",{body:{firstName:l.trim(),lastName:m.trim(),email:c.trim(),phone:d.trim()||null,message:n.trim(),sourcePage:"/studio/inquiry",honeypot:u,recaptchaToken:h}});if(i)throw i;A(!0)}catch(i){console.error(i),(N=p.current)==null||N.reset(),r(null),P.error("Something went wrong sending your request. Please try again.")}finally{f(!1)}}};return e.jsxs("div",{className:"min-h-screen bg-[#f2f0ec] font-body",children:[e.jsx(R,{title:"Schedule a Studio Consult | Trueth Studio",description:"Tell us about your content needs and we'll follow up to schedule a consult for your custom Trueth Studio shoot."}),e.jsx("section",{className:"py-16 md:py-24",children:e.jsx("div",{className:"max-w-xl mx-auto px-4 sm:px-6",children:F?e.jsxs("div",{className:"bg-brand-cream rounded-2xl p-8 sm:p-12 shadow-lg text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full bg-brand-green/10 mb-6",children:e.jsx(W,{className:"h-6 w-6 text-brand-green"})}),e.jsx("h1",{className:"font-heading text-2xl sm:text-3xl font-normal text-brand-text mb-3",children:"Consult scheduled"}),e.jsxs("p",{className:"text-[#2a241f]/70 leading-relaxed mb-8",children:["Thanks, ",l.trim(),". Our studio team will reach out shortly."]}),e.jsx(b,{asChild:!0,variant:"outline",className:"rounded-full",children:e.jsx(y,{to:"/studio",children:"Back to Studio"})})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("h1",{className:"font-heading text-[30px] sm:text-[38px] font-normal text-brand-text mb-4 leading-tight",children:["Schedule a ",e.jsx("span",{className:"accent-italic",children:"consult"})]}),e.jsx("p",{className:"text-base text-[#2a241f]/70 leading-relaxed max-w-md mx-auto",children:"Tell us a little about what you need. We'll follow up to schedule a short call and map out the shoot."})]}),e.jsxs("form",{onSubmit:q,className:"bg-brand-cream rounded-2xl p-6 sm:p-8 shadow-lg space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{htmlFor:"si-first",children:"First name"}),e.jsx(o,{id:"si-first",value:l,onChange:t=>v(t.target.value),maxLength:60,placeholder:"First name",autoComplete:"given-name",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{htmlFor:"si-last",children:"Last name"}),e.jsx(o,{id:"si-last",value:m,onChange:t=>S(t.target.value),maxLength:60,placeholder:"Last name",autoComplete:"family-name",required:!0})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{htmlFor:"si-email",children:"Email"}),e.jsx(o,{id:"si-email",type:"email",value:c,onChange:t=>C(t.target.value),maxLength:255,placeholder:"[email protected]",autoComplete:"email",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(a,{htmlFor:"si-phone",children:["Phone ",e.jsx("span",{className:"text-[#2a241f]/50 font-normal",children:"(optional)"})]}),e.jsx(o,{id:"si-phone",type:"tel",value:d,onChange:t=>w(t.target.value),maxLength:30,placeholder:"(555) 555-5555",autoComplete:"tel"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{htmlFor:"si-message",children:"Tell us about your content needs"}),e.jsx(B,{id:"si-message",value:n,onChange:t=>T(t.target.value),maxLength:4e3,rows:6,placeholder:"What are you shooting, where will it run, and when do you need it?",className:"resize-none",required:!0}),e.jsxs("p",{className:"text-[11px] text-[#2a241f]/50",children:[n.length,"/4000"]})]}),e.jsx("input",{type:"text",value:u,onChange:t=>L(t.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden"}),e.jsx("div",{className:"flex justify-center",children:e.jsx(z,{ref:p,sitekey:X,onChange:t=>r(t),onExpired:()=>r(null),onErrored:()=>r(null)})}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(O,{id:"studio-terms",checked:x,onCheckedChange:t=>k(t===!0),className:"mt-0.5"}),e.jsxs(a,{htmlFor:"studio-terms",className:"text-xs font-normal leading-relaxed text-[#2a241f]/70",children:["I agree to the"," ",e.jsx(y,{to:"/terms",target:"_blank",className:"underline hover:text-[#2a241f]",children:"Terms and Conditions"}),"."]})]}),e.jsx(b,{type:"submit",size:"lg",disabled:!j,className:"w-full rounded-full gap-2",children:g?e.jsxs(e.Fragment,{children:[e.jsx(_,{className:"w-4 h-4 animate-spin"})," Sending…"]}):e.jsxs(e.Fragment,{children:["Schedule a consult ",e.jsx(H,{className:"w-4 h-4"})]})})]})]})})})]})}export{Q 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.