"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[37],{360:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});const n={wrapper:"DzpSRuGq",wrapperContainer:"WoL23rHn",wrapperHeading:"oI0ZYHro",wrapperForm:"LH1HxMnz",wrapperFormRow:"VCnWdiI7",wrapperFormSplitFields:"DdIbvQGJ",wrapperFormField:"f0QW0r9x",wrapperFormLabel:"NBSjNuKU",wrapperFormInput:"JB9rgSVc",wrapperFormActions:"esBHoz5o",wrapperButton:"MLQx8lK0",wrapperFormFieldComments:"wbFKjEwf"}},359:(e,a,t)=>{const n=t(156);(0,t(4).createEntrypoint)("quoteForm",n.QuoteForm)()},156:function(e,a,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.QuoteForm=void 0;const s=t(0),c=(t(1),t(25)),o=n(t(360)),r=t(2),{wrapper:l,wrapperContainer:i,wrapperHeading:m,wrapperForm:p,wrapperFormRow:u,wrapperFormField:d,wrapperFormFieldComments:h,wrapperFormLabel:j,wrapperFormInput:b,wrapperFormActions:F,wrapperButton:x}=o.default;a.QuoteForm=({title:e,content:a,phoneNumberLabel:t,emailAddressLabel:n,companyNameLabel:o,commentLabel:_})=>{const{state:w,handleChangeState:N,handleFormSubmit:g}=(0,c.useForm)({endpoint:"https://formspree.io/f/mjvjjwrl",requestOptions:{method:"POST",headers:{Accept:"application/json"}},initialFormState:{contact_fullname:{content:""},contact_phone:{content:""},contact_email:{content:"",isRequired:!0},contact_companyname:{content:""},contact_question:{content:"",isRequired:!0}},redirectURL:"/thank-you"});return(0,s.jsx)("main",Object.assign({className:l},{children:(0,s.jsxs)("div",Object.assign({className:i},{children:[(0,s.jsx)("h1",Object.assign({className:m},{children:e})),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),(0,s.jsxs)("form",Object.assign({className:p,onSubmit:g},{children:[(0,s.jsxs)("div",Object.assign({className:u},{children:[(0,s.jsxs)("div",Object.assign({className:d},{children:[(0,s.jsx)("label",Object.assign({className:j,htmlFor:"contact_fullname"},{children:"Full Name"})),(0,s.jsx)("input",{className:b,type:"text",id:"contact_fullname",name:"contact_fullname",defaultValue:"",value:w.contact_fullname.content,onChange:N})]})),(0,s.jsxs)("div",Object.assign({className:d},{children:[(0,s.jsx)("label",Object.assign({className:j,htmlFor:"contact_phone"},{children:t})),(0,s.jsx)("input",{className:b,type:"text",id:"contact_phone",name:"contact_phone",defaultValue:"",value:w.contact_phone.content,onChange:N})]})),(0,s.jsxs)("div",Object.assign({className:d},{children:[(0,s.jsxs)("label",Object.assign({className:j,htmlFor:"contact_email"},{children:[n,(0,s.jsx)("small",{children:"*"})]})),(0,s.jsx)("input",{className:b,type:"email",id:"contact_email",name:"contact_email",required:!0,defaultValue:"",value:w.contact_email.content,onChange:N})]})),(0,s.jsxs)("div",Object.assign({className:d},{children:[(0,s.jsx)("label",Object.assign({className:j,htmlFor:"contact_companyname"},{children:o})),(0,s.jsx)("input",{className:b,type:"text",id:"contact_companyname",name:"contact_companyname",defaultValue:"",value:w.contact_companyname.content,onChange:N})]}))]})),(0,s.jsxs)("div",Object.assign({className:(0,r.cx)(d,h)},{children:[(0,s.jsxs)("label",Object.assign({className:j,htmlFor:"contact_question"},{children:[_,(0,s.jsx)("small",{children:"*"})]})),(0,s.jsx)("textarea",{name:"contact_question",id:"contact_question",rows:5,cols:50,className:b,required:!0,defaultValue:"",value:w.contact_question.content,onChange:N})]})),(0,s.jsx)("div",Object.assign({className:F},{children:(0,s.jsx)("input",{className:x,type:"submit",value:"Submit Form","aria-label":"Submit Form"})}))]}))]}))}))}}},e=>{e.O(0,[1,2,3,14],(()=>(359,e(e.s=359)))),e.O()}]);