PageSourceSearch

https://www.trainning.com.br/assets/Atendimento-CUfMoZKl.js

js trainning.com.br collected 2026-10-01 14:01:31 UTC 5,976 bytes, 1 lines download raw bytes

1import{r,j as e,c as E}from"./index-hZcJ3UF8.js";import{a7 as S,b as w,C as a,I as m,K as A,B as f,Y as C,M as P,Z as b,$ as M,_ as k,F as T,a6 as D}from"./App-BRQ1r2T_.js";import{S as I}from"./Seo-C2Hffg5B.js";function W(){const[l,d]=r.useState(""),[i,c]=r.useState(""),[x,u]=r.useState(""),[h,p]=r.useState(""),[j,g]=r.useState(!1),{toast:t}=S(),N=async s=>{if(s.preventDefault(),!l.trim()){t({title:"Erro",description:"Nome é obrigatório.",variant:"destructive"});return}const y=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;if(!i.trim()||!y.test(i.trim())){t({title:"Erro",description:"Insira um e-mail válido.",variant:"destructive"});return}const n=x.replace(/\D/g,"");if(!n||n.length<10){t({title:"Erro",description:"Insira um WhatsApp válido.",variant:"destructive"});return}g(!0);try{const o=await D(),{error:v}=await E.functions.invoke("submit-public-lead",{body:{name:l.trim(),email:i.trim().toLowerCase(),whatsapp:n,course_title:"Atendimento Geral",source:"atendimento",lead_type:"pf",interest:"informacao",page_url:window.location.href,form_name:"Central de Atendimento",observacoes:h?.trim()||void 0,...o}});if(v)throw v;t({title:"Mensagem Enviada!",description:"Entraremos em contato em breve."}),d(""),c(""),u(""),p("")}catch(o){console.error("Erro ao enviar mensagem:",o),t({title:"Erro",description:"Não foi possível enviar a mensagem. Tente novamente.",variant:"destructive"})}finally{g(!1)}};return e.jsxs(w,{showWhatsApp:!1,children:[e.jsx(I,{title:"Central de Atendimento | Trainning Education",description:"Precisa de ajuda? Entre em contato com a Central de Atendimento da Trainning Education por telefone, e-mail ou WhatsApp e resolva suas dúvidas rapidamente.",canonicalPath:"/atendimento"}),e.jsx("div",{className:"flex-1 py-8 pb-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4 bg-gradient-to-r from-primary to-blue-600 bg-clip-text text-transparent",children:"Central de Atendimento"}),e.jsx("p",{className:"text-xl text-muted-foreground",children:"Estamos aqui para ajudar você. Entre em contato conosco!"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-6xl mx-auto",children:[e.jsxs(a,{className:"p-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Envie sua Mensagem"}),e.jsxs("form",{onSubmit:N,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Nome"}),e.jsx(m,{value:l,onChange:s=>d(s.target.value),placeholder:"Seu nome completo",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Email"}),e.jsx(m,{type:"email",value:i,onChange:s=>c(s.target.value),placeholder:"[email protected]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Telefone"}),e.jsx(m,{type:"tel",value:x,onChange:s=>u(s.target.value),placeholder:"(11) 99999-9999",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Mensagem"}),e.jsx(A,{value:h,onChange:s=>p(s.target.value),placeholder:"Como podemos ajudar?",rows:5,required:!0})]}),e.jsx(f,{type:"submit",className:"w-full",disabled:j,children:j?"Enviando...":"Enviar Mensagem"})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(a,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-full bg-primary/10",children:e.jsx(C,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold mb-2",children:"Telefone"}),e.jsx("p",{className:"text-muted-foreground",children:"+55 (11) 3171-2002"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Segunda a Sexta, 9h às 18h"})]})]})}),e.jsx(a,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-full bg-primary/10",children:e.jsx(P,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold mb-2",children:"Email"}),e.jsx("p",{className:"text-muted-foreground",children:"[email protected]"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Respondemos em até 24 horas"})]})]})}),e.jsx(a,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-full bg-primary/10",children:e.jsx(b,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold mb-2",children:"WhatsApp"}),e.jsx("p",{className:"text-muted-foreground",children:"+55 (11) 3171-2002"}),e.jsxs(f,{className:"mt-3",size:"sm",children:[e.jsx(b,{className:"h-4 w-4 mr-2"}),"Iniciar Conversa"]})]})]})}),e.jsx(a,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-full bg-primary/10",children:e.jsx(M,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold mb-2",children:"Horário de Atendimento"}),e.jsx("p",{className:"text-muted-foreground",children:"Segunda a Sexta: 9h às 18h"}),e.jsx("p",{className:"text-muted-foreground",children:"Sábado: 9h às 13h"}),e.jsx("p",{className:"text-muted-foreground",children:"Domingo: Fechado"})]})]})}),e.jsx(a,{className:"p-6 bg-gradient-to-br from-primary/10 to-blue-600/10 border-primary/20",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-full bg-primary/20",children:e.jsx(k,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold mb-2",children:"Endereço"}),e.jsxs("p",{className:"text-muted-foreground",children:["Av. Paulista, 2006 - 16 ANDAR- Bela Vista São Paulo - SP, 01310-100",e.jsx("br",{}),"São Paulo - SP, 01310-100"]})]})]})})]})]})]})}),e.jsx(T,{})]})}
1export{W 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.