1import{r as x,j as e}from"./react-BoPr1yjH.js";import{u as f,H as b,h as N,i as r,j as o,k as i,l as m,I as c,m as l,T as v,B as y,F as w,s as F}from"./index-AyuttgAc.js";import{D as S}from"./DeckDownloadModal-B-fOyILT.js";import{a as D}from"./react-hook-form-CIeLFd_4.js";import{S as E}from"./SEO-DD1qLxpy.js";import{a as C}from"./react-router-8kbBbRMs.js";import{L as M,c as _,d as k,a as I}from"./lucide-react-Dy5dDxJP.js";import"./@supabase-D9VVd71y.js";import"./react-dom-oPhaD6rJ.js";import"./scheduler-CzFDRTuY.js";import"./@radix-ui-uPnaQNgx.js";import"./@floating-ui-B3T_IbQx.js";import"./react-remove-scroll-DUOJNfth.js";import"./tslib-CDuPK5Eb.js";import"./react-remove-scroll-bar-xMAqS-HS.js";import"./react-style-singleton-Bmo2mwzG.js";import"./get-nonce-C-Z93AgS.js";import"./use-sidecar-CmYptSlY.js";import"./use-callback-ref-CDfTGrR-.js";import"./aria-hidden-DQ5UC2Eg.js";import"./class-variance-authority-Dp3B9jqt.js";import"./clsx-B-dksMZM.js";import"./tailwind-merge-Dnoi3Axr.js";import"./next-themes-D2i0MUJ6.js";import"./sonner-Cu3kxFY5.js";import"./@tanstack-Co7gEp7O.js";import"./react-router-dom-CBJBY5ZW.js";import"./@remix-run-Br25Cn4W.js";import"./react-helmet-async-B6H6Ruhg.js";import"./react-fast-compare-DFNOQxth.js";import"./invariant-C1CP3kcu.js";import"./shallowequal-Bda6gaBQ.js";window.dataLayer=window.dataLayer||[];const L=()=>{window.gtag("event","contact_form")},xe=()=>{const[t,d]=x.useState(!1),[p,j]=x.useState(!1),{toast:h}=f(),u=C(),a=D({defaultValues:{nome_completo:"",email_corporativo:"",nome_empresa:"",telefone:"",mensagem:""}}),g=async s=>{d(!0);try{const{error:n}=await F.from("demo_requests").insert([{...s,origem:"contato"}]);if(n)throw n;a.reset(),L(),u("/agradecimento")}catch(n){console.error("Error submitting contact form:",n),h({title:"Erro ao enviar mensagem",description:"Tente novamente ou entre em contato diretamente.",variant:"destructive"})}finally{d(!1)}};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(E,{title:"Contato | Vibe Saúde - Conformidade NR-1 e Saúde Mental Corporativa",description:"Entre em contato com a Vibe Saúde para mais informações sobre nossas soluções em saúde mental corporativa e conformidade com a NR-1.",keywords:"contato Vibe Saúde, saúde mental corporativa, NR-1, COPSOQ II-Br, compliance trabalhista",url:"https://vibesaude.com/contato"}),e.jsx(b,{}),e.jsxs("main",{className:"pt-20",children:[e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8",children:e.jsx(N,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(g),className:"space-y-6",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-gray-900 mb-6",children:"Entre em Contato"}),e.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:"Para mais informações sobre o produto, preencha o formulário abaixo e nosso time entrará em contato."})]}),e.jsx(r,{control:a.control,name:"nome_completo",rules:{required:"Nome completo é obrigatório"},render:({field:s})=>e.jsxs(o,{children:[e.jsx(i,{children:"Nome completo *"}),e.jsx(m,{children:e.jsx(c,{placeholder:"Seu nome completo",...s,disabled:t})}),e.jsx(l,{})]})}),e.jsx(r,{control:a.control,name:"email_corporativo",rules:{required:"E-mail corporativo é obrigatório",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"E-mail inválido"}},render:({field:s})=>e.jsxs(o,{children:[e.jsx(i,{children:"E-mail corporativo *"}),e.jsx(m,{children:e.jsx(c,{type:"email",placeholder:"[email protected]",...s,disabled:t})}),e.jsx(l,{})]})}),e.jsx(r,{control:a.control,name:"nome_empresa",rules:{required:"Nome da empresa é obrigatório"},render:({field:s})=>e.jsxs(o,{children:[e.jsx(i,{children:"Nome da empresa *"}),e.jsx(m,{children:e.jsx(c,{placeholder:"Nome da sua empresa",...s,disabled:t})}),e.jsx(l,{})]})}),e.jsx(r,{control:a.control,name:"telefone",render:({field:s})=>e.jsxs(o,{children:[e.jsx(i,{children:"Telefone"}),e.jsx(m,{children:e.jsx(c,{type:"tel",placeholder:"(11) 99999-9999",...s,disabled:t})}),e.jsx(l,{})]})}),e.jsx(r,{control:a.control,name:"mensagem",render:({field:s})=>e.jsxs(o,{children:[e.jsx(i,{children:"Mensagem"}),e.jsx(m,{children:e.jsx(v,{placeholder:"Conte-nos mais sobre suas necessidades...",className:"min-h-[120px]",...s,disabled:t})}),e.jsx(l,{})]})}),e.jsx(y,{type:"submit",disabled:t,className:"w-full text-white py-3",style:{backgroundColor:"#DF5D6F"},children:t?e.jsxs(e.Fragment,{children:[e.jsx(M,{className:"w-4 h-4 mr-2 animate-spin"}),"Enviando..."]}):"Enviar Mensagem"})]})})})})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-6xl mx-auto",children:e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"text-center md:text-left",children:[e.jsxs("div",{className:"flex items-center justify-center md:justify-start mb-4",children:[e.jsx(_,{className:"w-8 h-8 mr-3",style:{color:"#DF5D6F"}}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Email"})]}),e.jsx("p",{className:"text-gray-600",children:"[email protected]"})]}),e.jsxs("div",{className:"text-center md:text-left",children:[e.jsxs("div",{className:"flex items-center justify-center md:justify-start mb-4",children:[e.jsx(k,{className:"w-8 h-8 mr-3",style:{color:"#DF5D6F"}}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Localização"})]}),e.jsx("p",{className:"text-gray-600",children:"São Paulo, SP"})]}),e.jsxs("div",{className:"text-center md:text-left",children:[e.jsxs("div",{className:"flex items-center justify-center md:justify-start mb-4",children:[e.jsx(I,{className:"w-8 h-8 mr-3",style:{color:"#DF5D6F"}}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Segurança"})]}),e.jsx("p",{className:"text-gray-600",children:"Seus dados estão protegidos"})]})]})})})})]}),e.jsx(w,{}),e.jsx(S,{isOpen:p,onClose:()=>j(!1)})]})};export{xe 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.