1import{r as o,j as e}from"./vendor-react-CoH7wDUq.js";import{b as N,c as v,P as S,p as m,a as n}from"./PublicFormLayout-B7vwxvbG.js";import{u as C}from"./index-co-p2Yz-.js";import{b as q}from"./formulariosApi-Bdn4wPtd.js";import"./vendor-pdf-DNjb9-t8.js";const k=()=>{const{language:g}=C(),[l,i]=o.useState(!1),[f,h]=o.useState(!1),[c,t]=o.useState(""),d={pt:{title:"Fale conosco",intro:"Se você precisa de alguma ajuda, ou quer tirar alguma dúvida, por favor, fale com a gente preenchendo o formulário abaixo:",nome:"Nome",email:"E-mail",mensagem:"Mensagem",send:"Enviar mensagem",success:"Recebemos sua mensagem. Em breve retornaremos.",required:"Preencha os campos obrigatórios."},en:{title:"Contact us",intro:"If you need help or have any questions, please fill out the form below:",nome:"Name",email:"Email",mensagem:"Message",send:"Send message",success:"We received your message. We will get back to you soon.",required:"Please fill in all required fields."},es:{title:"Contáctanos",intro:"Si necesitas ayuda o tienes dudas, completa el formulario:",nome:"Nombre",email:"Correo",mensagem:"Mensaje",send:"Enviar mensaje",success:"Hemos recibido tu mensaje. Pronto responderemos.",required:"Complete los campos obligatorios."}},s=d[g]||d.pt;async function j(a){a.preventDefault(),t("");const r=new FormData(a.currentTarget),u=String(r.get("nome")||"").trim(),p=String(r.get("email")||"").trim(),x=String(r.get("mensagem")||"").trim();if(!u||!p||!x){t(s.required);return}i(!0);const y=a.currentTarget;try{await q({nome:u,email:p,mensagem:x}),y.reset(),h(!0)}catch(b){t(b instanceof Error?b.message:"Erro")}finally{i(!1)}}return e.jsxs(N,{title:s.title,children:[e.jsx(v,{title:s.title,eyebrow:"Convention Bureau",breadcrumbLabel:s.title,children:e.jsx("p",{className:"text-slate-200/95",children:s.intro})}),f?e.jsx("div",{className:"mb-6 rounded-2xl border border-emerald-200/80 bg-emerald-50 px-4 py-3 text-sm text-emerald-900 sm:px-5 sm:text-base",children:s.success}):null,c?e.jsx("div",{className:"mb-6 rounded-2xl border border-red-200/80 bg-red-50 px-4 py-3 text-sm text-red-800 sm:px-5 sm:text-base",children:c}):null,e.jsx(S,{className:"p-5 sm:p-8 md:p-10",children:e.jsxs("form",{onSubmit:a=>void j(a),className:"space-y-5 sm:space-y-6",children:[e.jsxs("label",{className:m,children:[s.nome," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("input",{name:"nome",required:!0,className:n,autoComplete:"name"})]}),e.jsxs("label",{className:m,children:[s.email," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("input",{name:"email",required:!0,type:"email",className:n,autoComplete:"email"})]}),e.jsxs("label",{className:m,children:[s.mensagem," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("textarea",{name:"mensagem",required:!0,rows:5,className:`${n} min-h-[140px] resize-y`})]}),e.jsx("button",{type:"submit",disabled:l,className:"inline-flex w-full items-center justify-center rounded-xl bg-gradient-to-r from-emerald-600 to-teal-600 py-3.5 text-sm font-semibold text-white shadow-md transition hover:from-emerald-500 hover:to-teal-500 disabled:cursor-not-allowed disabled:opacity-50 sm:text-base",children:l?"â¦":s.send})]})})]})};export{k as FaleConoscoPage,k as default};
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.