1import{o as y,s as i,j as e,ay as C,c1 as b,bI as v}from"./vendor-B5KZbkSs.js";import{u as w,I as u,T as z,B as F}from"./index-DS57U4Yv.js";import{u as L}from"./useSEOHead-Bnj37yBc.js";import{u as I,F as N,a as m,b as l,c as p,d as _,e as q}from"./Form-2-ZGlGts.js";const H="_mainContent_11mqw_102",B="_pageHeader_11mqw_108",R="_contactGrid_11mqw_126",S="_formContainer_11mqw_132",T="_form_11mqw_132",V="_submitButton_11mqw_145",k="_infoContainer_11mqw_156",E="_infoList_11mqw_169",G="_supportInfo_11mqw_201",o={mainContent:H,pageHeader:B,contactGrid:R,formContainer:S,form:T,submitButton:V,infoContainer:k,infoList:E,supportInfo:G},O=()=>{const{t,regionCode:f}=w(),r=L(),c=r.getCanonical("/contact"),h=r.getHreflangTags("/contact"),d=f==="FR_FR",j=y({name:i().min(2,{message:t("contact_form_validation_name")}),email:i().email({message:t("contact_form_validation_email")}),company:i().optional(),message:i().min(10,{message:t("contact_form_validation_message")})}),x={name:"",email:"",company:"",message:""},a=I({schema:j,defaultValues:x});function g(n){console.log("Form submitted:",n),alert(t("contact_form_success")),a.setValues(x)}return e.jsxs(e.Fragment,{children:[e.jsxs(C,{children:[e.jsx("title",{children:`${t("contact_page_title")} | Horizon CRM Construction`}),e.jsx("meta",{name:"description",content:t("contact_page_subtitle")}),e.jsx("meta",{property:"og:title",content:`${t("contact_page_title")} | Horizon CRM Construction`}),e.jsx("meta",{property:"og:description",content:t("contact_page_subtitle")}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:c}),e.jsx("meta",{property:"og:image",content:"https://www.horizoncrm.ca/_cdn/static/horizon-crm-og-image.jpg"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("link",{rel:"canonical",href:c}),e.jsx("link",{rel:"alternate",hrefLang:r.currentLocale,href:h.current}),e.jsx("link",{rel:"alternate",hrefLang:r.altLocale,href:h.alt}),e.jsx("link",{rel:"alternate",hrefLang:"x-default",href:h.xDefault}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify([{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Accueil",item:`${r.baseDomain}/`},{"@type":"ListItem",position:2,name:"Contact",item:c}]},{"@context":"https://schema.org","@type":"ContactPage",name:t("contact_page_title"),description:t("contact_page_subtitle"),url:c}])})]}),e.jsxs("main",{className:o.mainContent,children:[e.jsxs("div",{className:o.pageHeader,children:[e.jsx("h1",{children:t("contact_page_title")}),e.jsx("p",{children:t("contact_page_subtitle")})]}),e.jsxs("div",{className:o.contactGrid,children:[e.jsx("div",{className:o.formContainer,children:e.jsx(N,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(g),className:o.form,children:[e.jsxs(m,{name:"name",children:[e.jsx(l,{children:t("contact_form_name")}
1),e.jsx(p,{children:e.jsx(u,{placeholder:t("contact_form_name_placeholder"),value:a.values.name,onChange:n=>a.setValues(s=>({...s,name:n.target.value}))})}),e.jsx(_,{})]}),e.jsxs(m,{name:"email",children:[e.jsx(l,{children:t("contact_form_email")}),e.jsx(p,{children:e.jsx(u,{type:"email",placeholder:t("contact_form_email_placeholder"),value:a.values.email,onChange:n=>a.setValues(s=>({...s,email:n.target.value}))})}),e.jsx(_,{})]}),e.jsxs(m,{name:"company",children:[e.jsx(l,{children:t("contact_form_company")}),e.jsx(p,{children:e.jsx(u,{placeholder:t("contact_form_company_placeholder"),value:a.values.company,onChange:n=>a.setValues(s=>({...s,company:n.target.value}))})}),e.jsx(_,{})]}),e.jsxs(m,{name:"message",children:[e.jsx(l,{children:t("contact_form_message")}),e.jsx(p,{children:e.jsx(z,{placeholder:t("contact_form_message_placeholder"),rows:5,value:a.values.message,onChange:n=>a.setValues(s=>({...s,message:n.target.value}))})}),e.jsx(q,{children:t("contact_form_message_description")}),e.jsx(_,{})]}),e.jsx(F,{type:"submit",size:"lg",className:o.submitButton,children:t("contact_form_submit")})]})})}),e.jsxs("div",{className:o.infoContainer,children:[e.jsx("h2",{children:t("contact_info_title")}),e.jsx("p",{children:t("contact_info_subtitle")}),e.jsxs("ul",{className:o.infoList,children:[e.jsxs("li",{children:[e.jsx(b,{size:20}),d?e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}):e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),e.jsxs("li",{children:[e.jsx(v,{size:20}),d?e.jsx("a",{href:"tel:+33756960855",children:"07 56 96 08 55"}):e.jsx("a",{href:"tel:+14509443123",children:"(450) 944-3123"})]})]}),e.jsxs("div",{className:o.supportInfo,children:[e.jsx("h3",{children:t("contact_support_title")}),e.jsxs("p",{children:[t("contact_support_text")," ",d?e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}):e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})]})]})]})};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.