PageSourceSearch

https://www.visitecamposdojordao.org.br/assets/AssocieSePage-BELuqllv.js

js visitecamposdojordao.org.br collected 2026-09-25 09:01:02 UTC 3,988 bytes, 1 lines download raw bytes

1import{r as m,j as e}from"./vendor-react-CoH7wDUq.js";import{b as E,c as v,P as S,p as o,a as r}from"./PublicFormLayout-B7vwxvbG.js";import{u as w}from"./index-co-p2Yz-.js";import{p as P}from"./formulariosApi-Bdn4wPtd.js";import"./vendor-pdf-DNjb9-t8.js";const L=()=>{const{language:f}=w(),[i,l]=m.useState(!1),[h,y]=m.useState(!1),[c,n]=m.useState(""),d={pt:{title:"Associe-se",eyebrow:"Convention Bureau",intro:"Para ser um associado, preencha a ficha abaixo e nos envie uma mensagem. Em breve, entraremos em contato com você.",nomeEmp:"Nome do empreendimento",nomeCont:"Nome do contato",tel:"Telefone",email:"E-mail",msg:"Mensagem",send:"Enviar solicitação",success:"Recebemos sua solicitação. Obrigado!",fillRequired:"Preencha os campos obrigatórios."},en:{title:"Become a partner",eyebrow:"Convention Bureau",intro:"Fill in the form below and send us a message. We will contact you shortly.",nomeEmp:"Business name",nomeCont:"Contact name",tel:"Phone",email:"Email",msg:"Message",send:"Submit request",success:"We have received your request. Thank you!",fillRequired:"Please fill in the required fields."},es:{title:"Asóciate",eyebrow:"Convention Bureau",intro:"Para ser socio, complete el formulario y envíenos un mensaje. Nos pondremos en contacto pronto.",nomeEmp:"Nombre del emprendimiento",nomeCont:"Nombre de contacto",tel:"Teléfono",email:"Correo electrónico",msg:"Mensaje",send:"Enviar solicitud",success:"Hemos recibido su solicitud. ¡Gracias!",fillRequired:"Complete los campos obligatorios."}},s=d[f]||d.pt;async function j(t){t.preventDefault(),n("");const a=new FormData(t.currentTarget),u=String(a.get("nomeEmpreendimento")||"").trim(),p=String(a.get("nomeContato")||"").trim(),b=String(a.get("telefone")||"").trim(),x=String(a.get("email")||"").trim(),N=String(a.get("mensagem")||"").trim();if(!u||!p||!b||!x){n(s.fillRequired);return}l(!0);const C=t.currentTarget;try{await P({nomeEmpreendimento:u,nomeContato:p,telefone:b,email:x,mensagem:N}),C.reset(),y(!0)}catch(g){n(g instanceof Error?g.message:"Erro")}finally{l(!1)}}return e.jsxs(E,{title:s.title,children:[e.jsx(v,{title:s.title,eyebrow:s.eyebrow,breadcrumbLabel:s.title,children:e.jsx("p",{className:"text-slate-200/95",children:s.intro})}),h?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:t=>void j(t),className:"space-y-5 sm:space-y-6",children:[e.jsxs("label",{className:o,children:[s.nomeEmp," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("input",{name:"nomeEmpreendimento",required:!0,className:r,autoComplete:"organization"})]}),e.jsxs("label",{className:o,children:[s.nomeCont," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("input",{name:"nomeContato",required:!0,className:r,autoComplete:"name"})]}),e.jsxs("label",{className:o,children:[s.tel," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("input",{name:"telefone",required:!0,type:"tel",className:r,autoComplete:"tel"})]}),e.jsxs("label",{className:o,children:[s.email," ",e.jsx("span",{className:"text-red-500",children:"*"}),e.jsx("input",{name:"email",required:!0,type:"email",className:r,autoComplete:"email"})]}),e.jsxs("label",{className:o,children:[s.msg,e.jsx("textarea",{name:"mensagem",rows:5,className:`${r} min-h-[140px] resize-y`})]}),e.jsx("button",{type:"submit",disabled:i,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:i?"…":s.send})]})})]})};export{L as AssocieSePage,L 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.