PageSourceSearch

https://standupcomedy.com.br/assets/LeadFormCard-DtJnyq5M.js

js standupcomedy.com.br collected 2026-09-25 11:55:37 UTC 3,526 bytes, 1 lines download raw bytes

1import{r as n,j as e,B as y,k as x,l as R,m as L}from"./index-NfOsTjBw.js";import{o as T,s as o,L as s,I as i,a as O}from"./client-DqUuUT_t.js";import{T as C}from"./textarea-BoBofj7t.js";import{S as E,a as P,b as w,c as A,d as $}from"./select-QjaCbvd_.js";import{g as c}from"./index-BRvm93kj.js";import{C as F}from"./circle-check-MTcC_Oqy.js";const I=T({nome:o().trim().min(2,"Informe seu nome").max(100),email:o().trim().email("Email inválido").max(255),telefone:o().trim().min(8,"Telefone inválido").max(30),descricao:o().trim().max(1e3).optional()}),D=["R$ 7.000 a R$ 10.000","Até R$ 20.000","Até R$ 30.000","Até R$ 40.000","Até R$ 50.000","Acima de R$ 50.000","Não se aplica"],G=({artista:p,origem:h,title:u,id:f})=>{const[j,g]=n.useState(!1),[l,m]=n.useState(!1),[d,v]=n.useState(""),b=async a=>{a.preventDefault();const N=new FormData(a.currentTarget),S=Object.fromEntries(N.entries()),t=I.safeParse(S);if(!t.success){c.error(t.error.issues[0].message);return}m(!0);try{const{error:r}=await O.functions.invoke("submit-lead",{body:{...t.data,artista:p??"",origem:h??x(),orcamento:d,pagina:x(),landingPage:R(),trafficSource:L()}});if(r)throw r;g(!0),c.success("Recebemos sua solicitação! Responderemos em até 24 horas.")}catch(r){console.error(r),c.error("Não foi possível enviar agora. Tente novamente em instantes.")}finally{m(!1)}};return e.jsx("div",{id:f,className:"bg-card text-card-foreground rounded-2xl p-8 md:p-10 shadow-elevated",children:j?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"inline-flex p-4 rounded-full bg-secondary/10 text-secondary mb-4",children:e.jsx(F,{className:"h-10 w-10"})}),e.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Obrigado!"}),e.jsx("p",{className:"text-muted-foreground",children:"Recebemos sua solicitação. Nosso time de curadoria responderá em até 24 horas com opções personalizadas para o seu evento."})]}):e.jsxs("form",{onSubmit:b,className:"space-y-5",children:[e.jsx("h3",{className:"text-2xl font-bold",children:u??"Envie os detalhes do evento"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"nome",children:"Nome completo *"}),e.jsx(i,{id:"nome",name:"nome",placeholder:"Maria Silva",required:!0,maxLength:100})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"email",children:"Email corporativo *"}),e.jsx(i,{id:"email",name:"email",type:"email",placeholder:"[email protected]",required:!0,maxLength:255})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"telefone",children:"Telefone / WhatsApp *"}),e.jsx(i,{id:"telefone",name:"telefone",placeholder:"+55 (11) 98765-4321",required:!0,maxLength:30})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{children:"Orçamento médio (opcional)"}),e.jsxs(E,{value:d,onValueChange:v,children:[e.jsx(P,{children:e.jsx(w,{placeholder:"Selecione"})}),e.jsx(A,{children:D.map(a=>e.jsx($,{value:a,children:a},a))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"descricao",children:"Descreva o evento (opcional)"}),e.jsx(C,{id:"descricao",name:"descricao",rows:4,placeholder:"Tipo de evento, data prevista, número de participantes, contexto…",maxLength:1e3})]}),e.jsx(y,{type:"submit",size:"lg",className:"w-full text-base h-12",disabled:l,children:l?"Enviando…":"Receber Proposta Personalizada"}),e.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"Respondemos em até 24 horas. Seus dados estão seguros conforme a LGPD."})]})})};export{G as L,D as O};

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.