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AACD,EAAKK,EAAQ5B,EAAO,KAAMyB,EAAkB,QACxD,IAAII,EAAU,CACVD,SACAE,QAAS,CACL,yBAA0BC,KAAKC,UAC3BC,OAAOC,SAASC,iBAGxBC,YAAa,WAKjB,GAHIX,IACAI,EAAQQ,OAASZ,EAAgBY,QAEtB,QAAXT,EAAkB,CAClBC,EAAU,IACHA,EACHS,KAAMtC,EAAO+B,KAAKC,UAAUhC,GAAQ,KACpC8B,QAAS,IACFD,EAAQC,QACX,eAAgB,qBAIxB,MAAMS,EAAQN,OAAOO,aAAaC,QAAQ,4BACtCF,IACAV,EAAU,IACHA,EACHC,QAAS,IACFD,EAAQC,QACXY,yBAA0BH,IAI1C,CAGA,OADuB,WAAY,IAAII,QAAQ,IAAMV,OAAOW,MAAQA,EAAAA,IAC9CrB,EAAKM,GAASzB,KAAKyC,EAAa,EAGpDA,EAAgBxC,IAClB,GAAIA,EAASyC,QAAU,KAAOzC,EAASyC,OAAS,IAC5C,OAAOzC,EACJ,CACH,IAAI0C,EAAQ,IAAIC,MAAM3C,EAAS4C,YAE/B,MADAF,EAAM1C,SAAWA,EACX0C,CACV,E","sources":["webpack:///./Scripts/Components/Blocks/ContactBlock.js","webpack:///./Scripts/Services/Contact.service.js","webpack:///./Scripts/Services/http.js"],"sourcesContent":["import React, { useState } from 'react';\nimport { useForm, SubmitHandler } from 'react-hook-form';\nimport { translate } from '../../Services/translation';\nimport { submitContactForm } from '../../Services/Contact.service';\n\nconst ContactBlock = ({\n id,\n title,\n text,\n fineprint,\n successTitle,\n successText,\n contactBlockBackgroundColor,\n contactBlockSuccessTitleTextColor,\n contactBlockSuccessTextColor,\n contactBlockTitleColor,\n contactBlockTextColor,\n contactBlockHeaderTextColor,\n contactBlockTextInputBackgroundColor,\n contactBlockTextInputTextColor,\n contactBlockButtonBackgroundColor,\n contactBlockButtonTextColor,\n }) => {\n const [success, setSuccess] = useState(false);\n const [loading, setLoading] = useState(false);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm();\n\n const onSubmit = (data) => {\n setLoading(true);\n submitContactForm(data).then(response => {\n setSuccess(true);\n }).catch(() => {\n alert(translate('blocks.contact.submit.error'));\n }).finally(() => {\n setLoading(false);\n });\n };\n\n useForm({\n defaultValues: {\n subject: '',\n email: '',\n name: '',\n phone: '',\n id: id,\n message: '',\n },\n });\n\n return (\n
{successText}
\n{text}
\n