import{j as e}from"./ui-vendor-4PEuZeLa.js";import{H as s}from"./Header-BagX3W4V.js";import{S as a}from"./SEOBreadcrumb-BX1P4b_V.js";import{F as r}from"./Footer-BHW0W5Ca.js";import{u as i,B as o}from"./index-CEyz5j5K.js";import{I as t}from"./input-CUcmjOJI.js";import{L as d}from"./label-DN7TcvbF.js";import{T as l}from"./textarea-DQ1plH3D.js";import{W as n}from"./WhatsAppFormDialog-Bhg9TNQV.js";import{r as c}from"./react-vendor-SJkaNtXX.js";import{f as m,v as x,a as h,b as p}from"./validators-B6ObMgjW.js";import{S as u}from"./SEOHead-DrCBGMRL.js";import{a9 as j,H as g,p as f,U as b,g as v,A as N,L as w}from"./icons-DwRt140y.js";import"./logo-oficial-BW9aD_Pb.js";import"./supabase-vendor-CdxEYpYJ.js";import"./dialog-DXeJuyyc.js";import"./useMutation-C8MOy-9v.js";const y=()=>{const[y,C]=c.useState("client"),[S,k]=c.useState({nome:"",email:"",telefone:"",cidade:"",estado:"",pix:"",mensagem:""}),{toast:E}=i(),[F,A]=c.useState(!1);c.useEffect(()=>{window.scrollTo(0,0)},[]);return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(u,{title:"Programa de Afiliados - Ganhe Comissões Indicando Clientes",description:"Seja um afiliado Sempre Comigo. Ganhe comissões atrativas indicando clientes. Suporte dedicado e materiais de marketing inclusos.",url:"/afiliados",keywords:"programa afiliados, ganhar dinheiro indicando, comissões rastreamento, parceiro comercial"}),e.jsx(s,{viewMode:y,onViewModeChange:C,showViewModeToggle:!1}),e.jsx(a,{items:[{label:"Afiliados"}]}),e.jsxs("main",{className:"flex-grow",children:[e.jsx("section",{className:"relative bg-gradient-to-br from-primary via-primary/90 to-primary/80 pt-28 pb-20 text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-6",children:"Programa de Afiliados Sempre Comigo"}),e.jsx("p",{className:"text-lg md:text-xl mb-8 text-white/90",children:"Seja um parceiro e faça parte de uma rede de proteção veicular que está transformando o mercado brasileiro"})]})})}),e.jsx("section",{className:"py-16 bg-background",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12 text-foreground",children:"Vantagens de Ser um Afiliado"}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(j,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:"Comissões Atrativas"}),e.jsx("p",{className:"text-muted-foreground",children:"Receba comissões competitivas por cada cliente indicado que contratar nossos serviços"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(g,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:"Suporte Dedicado"}),e.jsx("p",{className:"text-muted-foreground",children:"Conte com nossa equipe especializada para tirar dúvidas e auxiliar nas vendas"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(f,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:"Crescimento Conjunto"}),e.jsx("p",{className:"text-muted-foreground",children:"Faça parte de uma empresa em expansão com mais de 3.000 clientes ativos"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(b,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:"Materiais de Marketing"}),e.jsx("p",{className:"text-muted-foreground",children:"Acesso a materiais promocionais e treinamentos para potencializar suas vendas"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(v,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:"Flexibilidade"}),e.jsx("p",{className:"text-muted-foreground",children:"Trabalhe no seu ritmo e gerencie suas indicações de forma independente"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(N,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:"Marca Consolidada"}),e.jsx("p",{className:"text-muted-foreground",children:"Represente uma marca confiável com mais de 10 anos de experiência no mercado"})]})]})]})})}),e.jsx("section",{className:"py-16 bg-background",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-4 text-foreground",children:"Níveis de Comissão"}),e.jsx("p",{className:"text-center text-muted-foreground mb-12",children:"Sistema escalonado de comissões baseado no desempenho"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gradient-to-br from-primary to-primary/80 text-white rounded-lg p-6 shadow-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-2xl font-bold",children:"NÍVEL 1"}),e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-full p-3",children:e.jsx(N,{className:"w-6 h-6"})})]}),e.jsx("p",{className:"text-4xl font-bold mb-2",children:"50%"}),e.jsx("p",{className:"text-white/90",children:"do valor destinado à comissão"})]}),e.jsxs("div",{className:"bg-gradient-to-br from-primary/90 to-primary/70 text-white rounded-lg p-6 shadow-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-2xl font-bold",children:"NÍVEL 2"}),e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-full p-3",children:e.jsx(N,{className:"w-6 h-6"})})]}),e.jsx("p",{className:"text-4xl font-bold mb-2",children:"30%"}),e.jsx("p",{className:"text-white/90",children:"do valor destinado à comissão"})]}),e.jsxs("div",{className:"bg-gradient-to-br from-primary/80 to-primary/60 text-white rounded-lg p-6 shadow-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-2xl font-bold",children:"NÍVEL 3"}),e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-full p-3",children:e.jsx(N,{className:"w-6 h-6"})})]}),e.jsx("p",{className:"text-4xl font-bold mb-2",children:"20%"}),e.jsx("p",{className:"text-white/90",children:"do valor destinado à comissão"})]}),e.jsxs("div",{className:"bg-gradient-to-br from-primary/70 to-primary/50 text-white rounded-lg p-6 shadow-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-2xl font-bold",children:"NÍVEL 4"}),e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-full p-3",children:e.jsx(N,{className:"w-6 h-6"})})]}),e.jsx("p",{className:"text-4xl font-bold mb-2",children:"10%"}),e.jsx("p",{className:"text-white/90",children:"do valor destinado à comissão"})]})]})]})})}),e.jsx("section",{className:"py-16 bg-muted/30",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12 text-foreground",children:"Como Funciona"}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold",children:"1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold mb-2 text-foreground",children:"Cadastro"}),e.jsx("p",{className:"text-muted-foreground",children:"Preencha o formulário abaixo com seus dados e informações sobre como pretende atuar como afiliado"})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold",children:"2"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold mb-2 text-foreground",children:"Aprovação"}),e.jsx("p",{className:"text-muted-foreground",children:"Nossa equipe analisará sua inscrição e entrará em contato em até 48 horas úteis"})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold",children:"3"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold mb-2 text-foreground",children:"Treinamento"}),e.jsx("p",{className:"text-muted-foreground",children:"Receba todo o material e treinamento necessário para começar a indicar clientes"})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold",children:"4"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold mb-2 text-foreground",children:"Comece a Ganhar"}),e.jsx("p",{className:"text-muted-foreground",children:"Indique clientes e receba suas comissões de forma transparente e pontual"})]})]})]})]})})}),e.jsx("section",{className:"py-16 bg-background",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsxs("div",{className:"bg-card border border-border rounded-lg p-8",children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-2 text-center text-foreground",children:"Cadastre-se Agora"}),e.jsx("p",{className:"text-muted-foreground text-center mb-8",children:"Preencha o formulário e dê o primeiro passo para se tornar um parceiro Sempre Comigo"}),e.jsxs("form",{onSubmit:e=>{if(e.preventDefault(),!(S.nome&&S.email&&S.telefone&&S.cidade&&S.estado&&S.pix))return void E({title:"Campos obrigatórios",description:"Por favor, preencha todos os campos obrigatórios.",variant:"destructive"});const s=x(S.nome);if(!s.valid)return void E({title:"Nome inválido",description:s.message,variant:"destructive"});const a=h(S.email);if(!a.valid)return void E({title:"E-mail inválido",description:a.message,variant:"destructive"});const r=p(S.telefone);r.valid?(E({title:"Formulário enviado!",description:"Em breve entraremos em contato para discutir a oportunidade de parceria."}),k({nome:"",email:"",telefone:"",cidade:"",estado:"",pix:"",mensagem:""}),A(!1)):E({title:"Telefone inválido",description:r.message,variant:"destructive"})},className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"nome",children:"Nome Completo *"}),e.jsx(t,{id:"nome",value:S.nome,onChange:e=>k({...S,nome:e.target.value}),placeholder:"Seu nome completo",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"email",children:"Email *"}),e.jsx(t,{id:"email",type:"email",value:S.email,onChange:e=>k({...S,email:e.target.value}),placeholder:"seu@email.com",required:!0})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"telefone",children:"Telefone *"}),e.jsx(t,{id:"telefone",value:S.telefone,onChange:e=>k({...S,telefone:e.target.value}),onBlur:e=>k({...S,telefone:m(e.target.value)}),placeholder:"(84) 99999-9999",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"cidade",children:"Cidade *"}),e.jsx(t,{id:"cidade",value:S.cidade,onChange:e=>k({...S,cidade:e.target.value}),placeholder:"Sua cidade",required:!0})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"estado",children:"Estado *"}),e.jsx(t,{id:"estado",value:S.estado,onChange:e=>k({...S,estado:e.target.value}),placeholder:"Seu estado",required:!0,maxLength:2})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"pix",children:"Chave Pix *"}),e.jsx(t,{id:"pix",value:S.pix,onChange:e=>k({...S,pix:e.target.value}),placeholder:"Sua chave Pix",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"mensagem",children:"Mensagem (opcional)"}),e.jsx(l,{id:"mensagem",value:S.mensagem,onChange:e=>k({...S,mensagem:e.target.value}),placeholder:"Conte-nos um pouco sobre você e como pretende atuar como afiliado...",rows:4})]}),e.jsx(o,{type:"submit",className:"w-full",size:"lg",disabled:F,children:F?e.jsxs(e.Fragment,{children:[e.jsx(w,{className:"animate-spin"})," Enviando..."]}):"Enviar Cadastro"}),e.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Ao enviar este formulário, você concorda com nossa política de privacidade e aceita receber comunicações sobre o programa de afiliados."})]})]})})})}),e.jsx("section",{className:"py-16 bg-gradient-to-br from-primary via-primary/90 to-primary/80 text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Tem Dúvidas?"}),e.jsx("p",{className:"text-lg mb-8 text-white/90",children:"Entre em contato conosco e fale com nossa equipe de parcerias"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(n,{whatsappUrl:"https://wa.me/558001118686?text=Olá! Gostaria de saber mais sobre o programa de afiliados.",message:"Antes de falar conosco pelo WhatsApp, precisamos de algumas informações.",children:e.jsx(o,{size:"lg",variant:"secondary",children:"WhatsApp"})}),e.jsx(o,{size:"lg",variant:"outline",className:"bg-white/10 hover:bg-white/20 text-white border-white/30",onClick:()=>window.location.href="mailto:comercial@semprecomigo.com",children:"Email: comercial@semprecomigo.com"})]})]})})})]}),e.jsx(r,{})]})};export{y as default};