1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5949],{65949:function(e,t,n){n.r(t),n.d(t,{default:function(){return ContactForm}});var s=n(85893),a=n(72178),l=n(67294),i=n(89249),r=n(22269),c=n(32458),d=n(5152),o=n.n(d);function ContactForm(e){var t,d,p;let{form:x}=e,m=(0,r.Z)(e=>e),[u,h]=(0,l.useState)(!1),v=(0,c.Z)(e=>e.captcha),f=(0,c.Z)(e=>e.showLazy),j=(null==x?void 0:null===(p=x.fields)||void 0===p?void 0:null===(d=p.blueprint)||void 0===d?void 0:null===(t=d.schema)||void 0===t?void 0:t.sections)||[],[b,F]=(0,l.useState)([]),findClass=e=>"message"===e?"!min-h-[150px]":"",g=o()(()=>n.e(7416).then(n.bind(n,47101)).then(e=>e.default),{loadableGenerated:{webpack:()=>[47101]}}),findWrapperClass=e=>"message"===e?"col-span-2":"",[w,y]=(0,l.useState)();return(0,s.jsxs)(s.Fragment,{children:[j.map(e=>{var t;let n=(null==e?void 0:e.fields)||[];return(0,s.jsx)(l.Fragment,{children:(0,s.jsxs)("form",{onSubmit:e=>{(0,i.Gz)({e,formId:x.id,setToken:y,token:w,captcha:v,sections:j,setErrors:F,formData:m})},children:[(0,s.jsx)("div",{className:"flex flex-col",children:n.map(t=>(0,s.jsx)(l.Fragment,{children:(0,s.jsx)(a.Z,{...t,className:"border-[1px] border-[#ddd] w-full px-[10px] py-[5px] min-h-[45px] ".concat(findClass(null==t?void 0:t.state_name)),wrapperclassname:"".concat(findWrapperClass(null==t?void 0:t.state_name)," mb-[16px]"),error:(0,i.VZ)(b,null==e?void 0:e.state_name,null==t?void 0:t.state_name)})},null==t?void 0:t.state_name))}),(null==x?void 0:null===(t=x.attributes)||void 0===t?void 0:t.uses_captcha)&&(0,s.jsx)(s.Fragment,{children:f?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.fi,{setToken:y}),(null==b?void 0:b.captcha_token)&&(0,s.jsx)("div",{className:"text-[12px] mt-[2px] text-red-600",children:null==b?void 0:b.captcha_token})]})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"animate-pulse bg-[#ddd] min-h-[50px] w-full max-w-[250px] mb-[30px] p-[20px] flex items-center justify-center text-[#000] pointer-events-none select-none",children:"Loading captcha"})})}),(0,s.jsx)("div",{className:"mt-[18px]",children:m.uploading||m.submitLoading?(0,s.jsxs)("button",{type:"button",className:"bg-primary py-[10px] text-[#FFFFFF] text-[15px] flex justify-center items-center min-w-[95px] px-[15px] uppercase opacity-[.5]",disabled:!0,children:[(0,s.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Sending..."]}):(0,s.jsx)("button",{type:"submit",className:"bg-primary py-[10px] text-[#FFFFFF] text-[15px] flex justify-center items-center min-w-[95px] px-[15px] uppercase",children:"Send"})})]})},null==e?void 0:e.state_name)}),(null==m?void 0:m.formSuccessInfo)&&!m.submitLoading&&(0,s.jsx)(g,{})]})}}}]);
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.