1import{r as a,u as L,j as l,F as y,a as e,H as F,d as v,s as E}from"./app-37bede16.js";import{p as M,L as S,H as A,I as p,e as Z,B as j}from"./Layout-93db6cde.js";import{C,a as I,b as T}from"./card-8bcce8ae.js";import{u as H,a as P,F as _,b as o,c,d as m,e as d,f as i,o as k,s as u}from"./types-bf288dd8.js";import{r as B,t as U,T as z}from"./textarea-4223849d.js";import{e as R}from"./Info.es-8020b7ea.js";const V=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M246.15,65.46l-.07-.08L222.15,41.85a20,20,0,0,0-28.23-.05l-90,88.83L70.06,97.78a20,20,0,0,0-28.21.08l-24,24a20,20,0,0,0,0,28.26l71.62,72a20,20,0,0,0,28.29,0L246.15,93.74A20,20,0,0,0,246.15,65.46ZM103.61,202.33,37.64,136,56,117.61,95.65,156a12,12,0,0,0,16.78-.08L208,61.61l18.32,18Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M237.66,85.26l-128.4,128.4a8,8,0,0,1-11.32,0l-71.6-72a8,8,0,0,1,0-11.31l24-24a8,8,0,0,1,11.32,0L104,147.43l98.34-97.09a8,8,0,0,1,11.32,0l24,23.6A8,8,0,0,1,237.66,85.26Z",opacity:"0.2"}),a.createElement("path",{d:"M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M243.31,90.91l-128.4,128.4a16,16,0,0,1-22.62,0l-71.62-72a16,16,0,0,1,0-22.61l20-20a16,16,0,0,1,22.58,0L104,144.22l96.76-95.57a16,16,0,0,1,22.59,0l19.95,19.54A16,16,0,0,1,243.31,90.91Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M241.87,69.66l-24-23.56a14,14,0,0,0-19.77,0L104,139,65.9,102.1a14,14,0,0,0-19.8,0l-24,24a14,14,0,0,0,0,19.79l71.62,72a14,14,0,0,0,19.8,0L241.91,89.5A14,14,0,0,0,241.87,69.66ZM233.42,81,105,209.41a2,2,0,0,1-2.81,0l-71.62-72a2,2,0,0,1,0-2.82l24-24A2,2,0,0,1,56,110a2.12,2.12,0,0,1,1.5.64l42.35,41.08a6,6,0,0,0,8.39,0l98.37-97.11a2,2,0,0,1,2.87,0l24,23.56A2,2,0,0,1,233.42,81Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M240.47,71.09l-24-23.58a12,12,0,0,0-17,0L104,141.83l-39.5-38.32a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l71.61,72a12,12,0,0,0,17,0L240.49,88.08A12,12,0,0,0,240.47,71.09Zm-5.63,11.34L106.43,210.83a4,4,0,0,1-5.65,0l-71.61-72a4,4,0,0,1,0-5.66l24-24A3.94,3.94,0,0,1,56,108a4.11,4.11,0,0,1,2.89,1.21l42.35,41.08a4,4,0,0,0,5.59,0l98.37-97.1a4,4,0,0,1,5.68,0l24,23.58A4,4,0,0,1,234.84,82.43Z"}))]]),b=a.forwardRef((f,g)=>a.createElement(M,{ref:g,...f,weights:V}));b.displayName="CheckFatIcon";const W=k({name:u().min(2,{message:"Name must be at least 2 characters."}),phone:u().min(5,{message:"Phone number must be at least 5 characters."}),email:u().email({message:"Please enter a valid email address."}),subject:u().min(2,{message:"Subject must be at least 2 characters."}),message:u().min(10,{message:"Message must be at least 10 characters."})});function O(f){const x=L().props.settings.website,[s,w]=a.useState(!1),[n,h]=a.useState(!1),r=H({resolver:P(W),defaultValues:{name:"",phone:"",email:"",subject:"",message:""}}),N=t=>{h(!0),v.patch(E("contact.form"),t,{onSuccess:()=>{r.reset(),w(!0),h(!1)},onError:()=>{h(!1)},onFinish:()=>{h(!1)}})};return l(y,{children:[e(F,{title:"Contact Us"}),l(S,{children:[e(A,{title:"Contact Us"}),e("section",{className:"flex grow py-10 bg-slate-100",children:l("div",{className:"max-w-7xl w-full mx-auto flex flex-wrap md:flex-nowrap space-y-5 md:space-x-10 px-6 md:px-0",children:[e("div",{className:"flex flex-col space-y-3 text-slate-600 mt-4 w-full md:w-1/4",children:e("div",{dangerouslySetInnerHTML:{__html:x.contact_text}})}),e(_,{...r,children:e("form",{onSubmit:r.handleSubmit(N),className:"w-full md:w-3/4",children:l(C,{className:"w-full",children:[l(I,{
1className:"space-y-4 pt-6",children:[s&&l("div",{id:":r4:",role:"alert",className:"flex gap-x-3 w-full text-sm px-3 py-2.5 border-l-2 rounded-md shadow-none text-green-600 bg-green-100/50 border-green-500",children:[e("span",{className:"self-start",children:e(b,{size:24,weight:"duotone"})}),l("div",{className:"flex flex-col w-full gap-y-1",children:[e("span",{className:"font-medium text-base",children:"Thank you!"}),e("span",{className:"",children:"Your message has been sent. We will get back to you as soon as possible."})]})]}),!s&&l("div",{className:"flex flex-col gap-4",children:[e(o,{control:r.control,name:"name",render:({field:t})=>l(c,{children:[e(m,{children:"Full name"}),l("div",{className:"relative",children:[e(B,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground",weight:"duotone"}),e(d,{children:e(p,{...t,disabled:n||s,className:"pl-9"})})]}),e(i,{})]})}),e(o,{control:r.control,name:"phone",render:({field:t})=>l(c,{children:[e(m,{children:"Phone number"}),l("div",{className:"relative",children:[e(Z,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground",weight:"duotone"}),e(d,{children:e(p,{...t,disabled:n||s,className:"pl-9"})})]}),e(i,{})]})}),e(o,{control:r.control,name:"email",render:({field:t})=>l(c,{children:[e(m,{children:"Email Address"}),l("div",{className:"relative",children:[e(U,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground",weight:"duotone"}),e(d,{children:e(p,{...t,disabled:n||s,className:"pl-9",type:"email"})})]}),e(i,{})]})}),e(o,{control:r.control,name:"subject",render:({field:t})=>l(c,{children:[e(m,{children:"Subject"}),l("div",{className:"relative",children:[e(R,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground",weight:"duotone"}),e(d,{children:e(p,{...t,disabled:n||s,className:"pl-9"})})]}),e(i,{})]})}),e(o,{control:r.control,name:"message",render:({field:t})=>l(c,{children:[e(m,{children:"Message"}),e(d,{children:e(z,{...t,disabled:n||s,rows:10})}),e(i,{})]})})]})]}),e(T,{className:"flex justify-end space-x-2",children:e(j,{type:"submit",variant:"destructive",disabled:n||s,children:s?"Submitted":n?"Submitting...":"Submit"})})]})})})]})})]})]})}export{O 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.