{"id":37,"date":"2024-12-24T01:49:45","date_gmt":"2024-12-24T01:49:45","guid":{"rendered":"https:\/\/mensagensqueinspiram.com.br\/?page_id=37"},"modified":"2024-12-24T01:50:13","modified_gmt":"2024-12-24T01:50:13","slug":"contact-form","status":"publish","type":"page","link":"https:\/\/mensagensqueinspiram.com.br\/en\/formulario-de-contato\/","title":{"rendered":"Contact Form"},"content":{"rendered":"<h2 class=\"wp-block-heading\"><strong>Get in Touch<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We at <a href=\"https:\/\/mensagensqueinspiram.com.br\/en\/\">Messages that Inspire<\/a> We want to hear from you! Fill out the form below to send us your message, question, or suggestion. We will be happy to respond as soon as possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer, you can also contact us directly by email: <strong><a>mensagensqueinspiram04@gmail.com<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your message is important to us! \ud83d\udc8c<\/p>\n\n\n    <div class=\"fwx-contact-wrapper\">\n        <form class=\"fwx-contact-form\" id=\"fwx-contact-form-primary\" onsubmit=\"fwxSubmitContact(event)\"\n              data-sending=\"Enviando...\"\n              data-submit=\"Enviar Mensagem\"\n              data-conn-error=\"Erro de conex\u00e3o. Tente mais tarde.\" action=\"\">\n            <input type=\"hidden\" id=\"fwx_contact_nonce\" value=\"09b4ad150c\">\n            <input type=\"hidden\" id=\"fwx_contact_ajax_url\" value=\"https:\/\/mensagensqueinspiram.com.br\/wp-admin\/admin-ajax.php\">\n            <!-- Honeypot field -->\n            <input type=\"text\" id=\"fwx_contact_hp\" style=\"display:none !important;\" tabindex=\"-1\" autocomplete=\"off\">\n            \n            <div class=\"fwx-form-row\">\n                <div class=\"fwx-input-group\">\n                    <label for=\"fwx_contact_name\">Full Name <span class=\"fwx-required\">*<\/span><\/label>\n                    <input type=\"text\" id=\"fwx_contact_name\" required placeholder=\"Your name\" autocomplete=\"name\" \/>\n                <\/div>\n                <div class=\"fwx-input-group\">\n                    <label for=\"fwx_contact_email\">Email <span class=\"fwx-required\">*<\/span><\/label>\n                    <input type=\"email\" id=\"fwx_contact_email\" required placeholder=\"seu@email.com\" autocomplete=\"email\" \/>\n                <\/div>\n            <\/div>\n\n            <div class=\"fwx-input-group\">\n                <label for=\"fwx_contact_subject\">Subject<\/label>\n                <input type=\"text\" id=\"fwx_contact_subject\" placeholder=\"What is it about?\" autocomplete=\"off\" \/>\n            <\/div>\n\n            <div class=\"fwx-input-group\">\n                <label for=\"fwx_contact_message\">Message <span class=\"fwx-required\">*<\/span><\/label>\n                <textarea id=\"fwx_contact_message\" rows=\"5\" required placeholder=\"Write your message here...\"><\/textarea>\n            <\/div>\n            \n            <div class=\"fwx-action-group\">\n                <button type=\"submit\" id=\"fwx_contact_btn\" class=\"fwx-btn-submit\">Send Message<\/button>\n            <\/div>\n\n            <div id=\"fwx_contact_msg\" class=\"fwx-form-msg\"><\/div>\n        <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n    <\/div>\n\n    <script>\n        function fwxSubmitContact(e) {\n            e.preventDefault();\n            const form = document.getElementById('fwx-contact-form-primary');\n            const btn = document.getElementById('fwx_contact_btn');\n            const msg = document.getElementById('fwx_contact_msg');\n            const nonce = document.getElementById('fwx_contact_nonce').value;\n            const ajaxUrl = document.getElementById('fwx_contact_ajax_url').value;\n            const hp = document.getElementById('fwx_contact_hp').value;\n\n            const txtSending = form.getAttribute('data-sending') || 'Enviando...';\n            const txtSubmit = form.getAttribute('data-submit') || 'Enviar Mensagem';\n            const txtConnError = form.getAttribute('data-conn-error') || 'Erro de conex\u00e3o. Tente mais tarde.';\n\n            btn.disabled = true;\n            btn.innerHTML = txtSending;\n            msg.innerHTML = '';\n            msg.className = 'fwx-form-msg';\n\n            const data = new URLSearchParams();\n            data.append('action', 'fwx_submit_contact');\n            data.append('nonce', nonce);\n            data.append('fwx_hp', hp);\n            data.append('name', document.getElementById('fwx_contact_name').value);\n            data.append('email', document.getElementById('fwx_contact_email').value);\n            data.append('subject', document.getElementById('fwx_contact_subject').value);\n            data.append('message', document.getElementById('fwx_contact_message').value);\n\n            fetch(ajaxUrl, {\n                method: 'POST',\n                body: data\n            })\n            .then(res => res.json())\n            .then(res => {\n                btn.disabled = false;\n                btn.innerHTML = txtSubmit;\n                if(res.success) {\n                    msg.innerHTML = res.data;\n                    msg.classList.add('fwx-success');\n                    form.reset();\n                } else {\n                    msg.innerHTML = res.data;\n                    msg.classList.add('fwx-error');\n                }\n            })\n            .catch(err => {\n                btn.disabled = false;\n                btn.innerHTML = txtSubmit;\n                msg.innerHTML = txtConnError;\n                msg.classList.add('fwx-error');\n            });\n        }\n    <\/script>","protected":false},"excerpt":{"rendered":"<p>Contact Us We at Mensagens que Inspiram want to hear from you! Fill out the form below to send us your message, question\u2026<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"facebook_122186298128049666_540220039169035":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":"","rank_math_title":"","rank_math_description":"","rank_math_canonical_url":"","rank_math_focus_keyword":"Formul\u00e1rio de Contato"},"class_list":["post-37","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/pages\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/pages\/37\/revisions"}],"wp:attachment":[{"href":"https:\/\/mensagensqueinspiram.com.br\/en\/wp-json\/wp\/v2\/media?parent=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}