"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[25],{275:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n={wrapper:"oFpFGdUh",wrapperTextFields:"C5oMVwyk",wrapperActions:"FBAyTwPj"}},274:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n={wrapper:"n6ZKfDQv",wrapperTextArea:"a_WSNoKO"}},276:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n={wrapper:"QoVMkGAM"}},272:(e,t,a)=>{const n=a(119);(0,a(4).createEntrypoint)("contactForm",n.ContactForm)()},120:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContactFormContent=void 0;const o=a(0),r=(a(1),a(25)),c=a(121),l=n(a(275)),{wrapper:s,wrapperTextFields:m,wrapperActions:i}=l.default;t.ContactFormContent=({fullNameLabel:e,phoneNumberLabel:t,emailAddressLabel:a,orderNumberLabel:n,companyNameLabel:l,commentLabel:u,submitButtonLabel:d})=>{const{state:p,handleChangeState:b,handleFormSubmit:h}=(0,r.useForm)({endpoint:"https://formspree.io/f/mbjqrgga",requestOptions:{method:"POST",headers:{Accept:"application/json"}},initialFormState:{contact_fullname:{content:""},contact_phone:{content:""},contact_email:{content:"",isRequired:!0},contact_orderno:{content:""},contact_companyname:{content:""},contact_question:{content:"",isRequired:!0}},redirectURL:"/thank-you"});return(0,o.jsxs)("form",Object.assign({className:s,onSubmit:h},{children:[(0,o.jsxs)("div",Object.assign({className:m},{children:[(0,o.jsx)(c.FormItem,{type:"text",name:"contact_fullname",label:e,value:p.contact_fullname.content,onChange:b}),(0,o.jsx)(c.FormItem,{type:"text",name:"contact_phone",label:t,value:p.contact_phone.content,onChange:b}),(0,o.jsx)(c.FormItem,{type:"email",name:"contact_email",label:a,value:p.contact_email.content,onChange:b,required:!0}),(0,o.jsx)(c.FormItem,{type:"text",name:"contact_orderno",label:n,value:p.contact_orderno.content,onChange:b}),(0,o.jsx)(c.FormItem,{type:"text",name:"contact_companyname",label:l,value:p.contact_companyname.content,onChange:b})]})),(0,o.jsx)(c.FormItem,{type:"textarea",name:"contact_question",label:u,value:p.contact_question.content,onChange:b,required:!0}),(0,o.jsx)("div",Object.assign({className:i},{children:(0,o.jsx)("button",Object.assign({type:"submit"},{children:d}))}))]}))}},121:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItem=void 0;const o=a(0),r=(a(1),n(a(274))),c=a(2),{wrapper:l,wrapperTextArea:s}=r.default;t.FormItem=({name:e,label:t,value:a,required:n,type:r,onChange:m})=>(0,o.jsxs)("div",Object.assign({className:(0,c.cx)(l,"textarea"===r&&s)},{children:[(0,o.jsxs)("label",Object.assign({for:e},{children:[t,n&&(0,o.jsx)("small",{children:"*"})]})),"textarea"===r?(0,o.jsx)("textarea",{id:e,name:e,value:a,required:n,rows:5,cols:50,onChange:m}):(0,o.jsx)("input",{id:e,type:r,name:e,value:a,required:n,onChange:m})]}))},119:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContactForm=void 0;const o=a(0),r=(a(1),a(120)),c=n(a(276)),{wrapper:l}=c.default;t.ContactForm=({title:e,fullNameLabel:t,phoneNumberLabel:a,emailAddressLabel:n,orderNumberLabel:c,companyNameLabel:s,commentLabel:m,submitButtonLabel:i})=>(0,o.jsxs)("section",Object.assign({className:l},{children:[(0,o.jsx)("h1",{children:e}),(0,o.jsx)(r.ContactFormContent,{fullNameLabel:t,phoneNumberLabel:a,emailAddressLabel:n,orderNumberLabel:c,companyNameLabel:s,commentLabel:m,submitButtonLabel:i})]}))}},e=>{e.O(0,[1,2,3,14],(()=>(272,e(e.s=272)))),e.O()}]);