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ldNotice.js"],"sourcesContent":["import React from 'react';\r\nimport { useState, useRef } from 'react';\r\n\r\nimport { Formik } from 'formik';\r\nimport * as yup from 'yup';\r\n\r\nimport { Form, Stack, Row, Col, Button } from 'react-bootstrap';\r\n\r\nimport Alert from '../helper/Alert';\r\nimport useRequest from '../helper/useRequest';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { subject, email, requiredPhoneNo, requiresRadioOrganisationType, contactText } from '../helper/Schema';\r\n\r\nimport MandatoryFieldNotice from '../helper/MandatoryFieldNotice';\r\n\r\nconst schema = yup.object().shape({\r\n subject: subject,\r\n email: email,\r\n phoneno: requiredPhoneNo,\r\n organisationType: requiresRadioOrganisationType,\r\n message: contactText,\r\n});\r\n\r\nfunction PublicContact() {\r\n const { request } = useRequest();\r\n\r\n const [message, setMessage] = useState(\"\");\r\n const [loading, setLoading] = useState(false);\r\n const [submitted, setSubmitted] = useState(false);\r\n const formRef = useRef(null);\r\n const editorRef = useRef(null);\r\n\r\n const sendMail = async (values) => {\r\n setLoading(true);\r\n var data = { ...values };\r\n const result = await request(\"/SendContactMail\", data);\r\n //const result = await request(\"/SendContactMail\", { email: data.email, phoneno: data.phoneno, organisationType: data.organisationType, subject: data.subject, message: data.message });\r\n //let result = await request(\"/Operator/GetRegistration\", { id: id });\r\n\r\n const json = result.data;\r\n\r\n setLoading(false);\r\n if (json.r == 1) {\r\n toast.success(\"Nachricht wurde erfolgreich versandt.\");\r\n formRef.current.setFieldValue(\"subject\", \"\");\r\n formRef.current.setFieldValue(\"message\", \"\");\r\n setSubmitted(true);\r\n }\r\n else {\r\n setMessage(json.message);\r\n }\r\n }\r\n\r\n if (submitted) {\r\n return (\r\n <>\r\n
Vielen Dank für Ihre Anfrage.
\r\nWir werden Ihre Anfrage schnellstmöglich bearbeiten und uns dann bei Ihnen melden.
\r\nIhr bovest Team
\r\n >\r\n );\r\n }\r\n\r\n return (\r\n