import{y as F,K as u,G as O,J as e,d,o as S,s as V,A as H,a as T,B as L,u as q,W as G,v as B,U as W}from"./index-DLMsdH5y.js";import{t as Q,b as U,s as Z,a as K}from"./mautic-CeOJmnm0.js";import{G as A}from"./globe-DKspWLEo.js";import{C as b}from"./circle-alert-CGKZzOIC.js";import{Z as C}from"./zap-DhoXTOzT.js";import{C as J}from"./chevron-right-CScwuYlx.js";import{D as X}from"./database-BgQRoSQU.js";const Y=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],ee=F("smartphone",Y),p=[{id:1,titulo:"Sobre sua empresa",icone:e.jsx(L,{className:"w-5 h-5"})},{id:2,titulo:"Infraestrutura",icone:e.jsx(q,{className:"w-5 h-5"})},{id:3,titulo:"Internet e Rede",icone:e.jsx(G,{className:"w-5 h-5"})},{id:4,titulo:"Segurança",icone:e.jsx(B,{className:"w-5 h-5"})},{id:5,titulo:"Gestão de TI",icone:e.jsx(W,{className:"w-5 h-5"})},{id:6,titulo:"Contato",icone:e.jsx(X,{className:"w-5 h-5"})}],se=["Contabilidade","Advocacia","Indústria","Comércio","Serviços","Saúde","Educação","Construção","Tecnologia","Condomínio","Outro"],ae=["1-5","6-15","16-30","31-50","51-100","100+"],j=[{value:"sim",label:"Sim"},{value:"nao",label:"Não"},{value:"naosei",label:"Não sei"}],te=[{value:"pago",label:"Pago (corporativo)"},{value:"gratuito",label:"Gratuito"},{value:"nao",label:"Não utiliza"}],re=[{value:"diario",label:"Diário"},{value:"semanal",label:"Semanal"},{value:"eventual",label:"Eventual"},{value:"nao",label:"Não existe"},{value:"naosei",label:"Não sei"}],ie=[{value:"interno",label:"Funcionário interno"},{value:"terceirizado",label:"Empresa terceirizada"},{value:"eventual",label:"Técnico eventual"},{value:"nenhum",label:"Ninguém definido"}],le=[{value:"lentidao",label:"Lentidão nos sistemas"},{value:"internet",label:"Quedas de internet"},{value:"seguranca",label:"Insegurança dos dados"},{value:"suporte",label:"Falta de suporte"},{value:"servidores",label:"Servidores antigos"},{value:"wifi",label:"Wi-Fi ruim"},{value:"backup",label:"Problemas com backup"},{value:"custos",label:"Custos altos com TI"}],pe=()=>{const[t,m]=u.useState(1),[a,h]=u.useState({nome:"",email:"",whatsapp:"",empresa:"",segmento:"",funcionarios:"",temSite:"",urlSite:"",computadores:"",notebooks:"",servidores:"",equipamentosAntigos:"",windowsAtualizados:"",windowsAntigos:"",linksInternet:"",operadoras:"",failover:"",equipamentoInternet:"",wifiVisitantes:"",antivirus:"",antivirusNome:"",backup:"",backupTestado:"",nobreak:"",controleAcesso:"",senhasIndividuais:"",mfa:"",responsavelTI:"",chamadosRegistrados:"",documentacao:"",dorPrincipal:""}),[g,o]=u.useState(!1),[x,N]=u.useState(!1),[l,w]=u.useState(null),[k,I]=u.useState(null),f=u.useRef(null);u.useEffect(()=>{f.current&&O.fromTo(f.current,{opacity:0,y:20},{opacity:1,y:0,duration:.4})},[t]);const i=(s,r)=>{h(c=>({...c,[s]:r})),s==="urlSite"&&w(null)},$=async()=>{if(!a.urlSite)return;N(!0),await new Promise(v=>setTimeout(v,2e3));const r=a.urlSite.toLowerCase().includes("https"),c=Math.floor(Math.random()*55)+30,n={score:c,checks:{hasTitle:Math.random()>.3,hasDescription:Math.random()>.4,hasHttps:r||Math.random()>.5,isResponsive:Math.random()>.3,loadSpeed:c>70?"fast":c>50?"medium":"slow"},recommendations:[]};n.checks.hasTitle||n.recommendations.push("Adicionar título otimizado nas páginas"),n.checks.hasDescription||n.recommendations.push("Incluir meta descrição para melhor indexação"),n.checks.hasHttps||n.recommendations.push("Migrar para HTTPS para maior segurança"),n.checks.isResponsive||n.recommendations.push("Tornar o site responsivo para dispositivos móveis"),n.checks.loadSpeed==="slow"&&n.recommendations.push("Otimizar velocidade de carregamento"),n.recommendations.length===0&&n.recommendations.push("Manter as boas práticas atuais"),w(n),N(!1)},E=()=>{let s=100;const r=parseInt(a.computadores)||0,c=parseInt(a.notebooks)||0,n=r+c;a.equipamentosAntigos==="sim"&&(s-=10);const v=parseInt(a.windowsAntigos)||0;return n>0&&v/n>.3&&(s-=10),(parseInt(a.linksInternet)||1)===1&&(s-=15),a.failover==="nao"&&(s-=10),a.wifiVisitantes==="nao"&&(s-=10),a.antivirus==="gratuito"&&(s-=10),a.antivirus==="nao"&&(s-=20),a.backup==="nao"&&(s-=20),a.backup==="eventual"&&(s-=10),a.backupTestado==="nao"&&(s-=10),a.nobreak==="nao"&&(s-=5),a.senhasIndividuais==="nao"&&(s-=5),a.mfa==="nao"&&(s-=5),a.responsavelTI==="nenhum"&&(s-=15),a.responsavelTI==="eventual"&&(s-=10),a.documentacao==="nao"&&(s-=5),Math.max(0,Math.min(100,s))},z=s=>s>=80?{label:"Bem estruturado",cor:"text-green-400",bg:"bg-green-400/10",border:"border-green-400/30"}:s>=60?{label:"Estrutura intermediária",cor:"text-yellow-400",bg:"bg-yellow-400/10",border:"border-yellow-400/30"}:s>=40?{label:"Estrutura frágil",cor:"text-orange-400",bg:"bg-orange-400/10",border:"border-orange-400/30"}:{label:"Alto risco",cor:"text-red-400",bg:"bg-red-400/10",border:"border-red-400/30"},R=s=>{const r=[];return console.log("Score calculado:",s),parseInt(a.linksInternet)===1&&r.push({area:"Internet",status:"crítico",texto:"Sua empresa depende de um único link de internet. Em caso de falha, a operação para completamente."}),a.failover==="nao"&&r.push({area:"Contingência",status:"alto",texto:"Não há troca automática de internet em caso de falha, exigindo intervenção manual."}),(a.antivirus==="nao"||a.antivirus==="gratuito")&&r.push({area:"Segurança",status:"alto",texto:"A proteção contra ameaças digitais está abaixo do ideal para um ambiente corporativo."}),a.backup==="nao"&&r.push({area:"Backup",status:"crítico",texto:"Não há rotina de backup. Em caso de falha, os dados podem ser perdidos permanentemente."}),a.wifiVisitantes==="nao"&&r.push({area:"Rede",status:"médio",texto:"Visitantes compartilham a mesma rede dos funcionários, criando risco de segurança."}),(a.responsavelTI==="nenhum"||a.responsavelTI==="eventual")&&r.push({area:"Gestão",status:"alto",texto:"Não há gestão estruturada de TI, o que pode levar a problemas acumulados."}),r},M=(s,r)=>{Q(),U("Lead",{content_name:"Avaliacao Maturidade TI",content_category:"lead_avaliacao_ti",value:s}),Z("avaliacaoTI",{nome:a.nome,email:a.email,whatsapp:a.whatsapp,empresa:a.empresa,segmento:a.segmento,computadores:a.computadores,notebooks:a.notebooks,servidores:a.servidores,funcionarios:a.funcionarios,links_internet:a.linksInternet,failover:a.failover,antivirus:a.antivirus,backup:a.backup,backup_testado:a.backupTestado,wifi_visitantes:a.wifiVisitantes,responsavel_ti:a.responsavelTI,dor_principal:a.dorPrincipal,score_tecnologia:String(s),nivel_maturidade:r,origem_lead:"avaliador_tecnologico"})||K({nome:a.nome,email:a.email}),console.log("[Mautic] Score enviado:",s,r)},P=async()=>{o(!0);const s=E(),r=z(s),c=R(s);await M(s,r.label),I({score:s,nivel:r.label,diagnostico:c,seo:l||void 0}),o(!1)},_=()=>{t{t>1&&m(t-1)},y=()=>{switch(t){case 1:return a.empresa&&a.segmento&&a.funcionarios&&a.temSite;case 2:return a.computadores&&a.notebooks&&a.equipamentosAntigos;case 3:return a.linksInternet&&a.failover&&a.wifiVisitantes;case 4:return a.antivirus&&a.backup&&a.backupTestado;case 5:return a.responsavelTI&&a.dorPrincipal;case 6:return a.nome&&a.email&&a.whatsapp;default:return!1}};return k?e.jsx(oe,{resultado:k,formData:a}):e.jsx("div",{className:"bg-[#0e0e0e] min-h-screen pt-24 pb-12",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-[#cbf400]/10 text-[#cbf400] text-sm font-semibold mb-4 border border-[#cbf400]/20",children:"Avaliação Gratuita"}),e.jsxs("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-black text-white mb-4",children:["Descubra o nível ",e.jsx("span",{className:"text-gradient",children:"tecnológico"})," da sua empresa"]}),e.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Responda algumas perguntas simples e receba um diagnóstico personalizado em poucos minutos."})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"flex items-center justify-between mb-4",children:p.map((s,r)=>e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold transition-all ${s.id===t?"bg-[#cbf400] text-[#0e0e0e]":s.idi("empresa",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"Ex: Empresa XYZ"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Segmento *"}),e.jsxs("select",{value:a.segmento,onChange:s=>i("segmento",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",children:[e.jsx("option",{value:"",children:"Selecione"}),se.map(s=>e.jsx("option",{value:s,children:s},s))]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Quantidade de funcionários *"}),e.jsx("div",{className:"grid grid-cols-3 md:grid-cols-6 gap-3",children:ae.map(s=>e.jsx("button",{onClick:()=>i("funcionarios",s),className:`px-4 py-3 rounded-xl border transition-all ${a.funcionarios===s?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s},s))})]}),e.jsxs("div",{className:"pt-4 border-t border-white/5",children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Sua empresa tem site? *"}),e.jsx("div",{className:"flex gap-4",children:[{value:"sim",label:"Sim, temos site"},{value:"nao",label:"Não temos site"},{value:"desatualizado",label:"Tem, mas está desatualizado"}].map(s=>e.jsx("button",{onClick:()=>i("temSite",s.value),className:`flex-1 px-4 py-3 rounded-xl border transition-all ${a.temSite===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]}),a.temSite==="sim"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Endereço do site"}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("input",{type:"text",value:a.urlSite,onChange:s=>i("urlSite",s.target.value),className:"flex-1 bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"www.suaempresa.com.br"}),e.jsx("button",{onClick:$,disabled:!a.urlSite||x,className:`px-4 py-3 rounded-xl font-medium transition-all flex items-center gap-2 ${a.urlSite&&!x?"bg-[#cbf400] text-[#0e0e0e] hover:bg-[#d4ff1a]":"bg-gray-700 text-gray-500 cursor-not-allowed"}`,children:x?e.jsxs(e.Fragment,{children:[e.jsx(S,{className:"w-4 h-4 animate-spin"})," Analisando..."]}):e.jsxs(e.Fragment,{children:[e.jsx(V,{className:"w-4 h-4"})," Analisar SEO"]})})]})]}),l&&e.jsxs("div",{className:"bg-[#0e0e0e] rounded-xl p-5 border border-white/10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h4",{className:"text-white font-semibold flex items-center gap-2",children:[e.jsx(A,{className:"w-5 h-5 text-[#cbf400]"}),"Análise de SEO do Site"]}),e.jsxs("div",{className:`text-2xl font-black ${l.score>=70?"text-green-400":l.score>=50?"text-yellow-400":"text-red-400"}`,children:[l.score,"/100"]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[e.jsxs("div",{className:`flex items-center gap-2 text-sm ${l.checks.hasTitle?"text-green-400":"text-red-400"}`,children:[l.checks.hasTitle?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),"Título otimizado"]}),e.jsxs("div",{className:`flex items-center gap-2 text-sm ${l.checks.hasDescription?"text-green-400":"text-red-400"}`,children:[l.checks.hasDescription?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),"Meta descrição"]}),e.jsxs("div",{className:`flex items-center gap-2 text-sm ${l.checks.hasHttps?"text-green-400":"text-red-400"}`,children:[l.checks.hasHttps?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),"HTTPS ativo"]}),e.jsxs("div",{className:`flex items-center gap-2 text-sm ${l.checks.isResponsive?"text-green-400":"text-red-400"}`,children:[l.checks.isResponsive?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),e.jsx(ee,{className:"w-3 h-3"})," Responsivo"]}),e.jsxs("div",{className:`flex items-center gap-2 text-sm col-span-2 ${l.checks.loadSpeed==="fast"?"text-green-400":l.checks.loadSpeed==="medium"?"text-yellow-400":"text-red-400"}`,children:[e.jsx(C,{className:"w-4 h-4"}),"Velocidade: ",l.checks.loadSpeed==="fast"?"Rápida":l.checks.loadSpeed==="medium"?"Média":"Lenta"]})]}),l.recommendations.length>0&&e.jsxs("div",{className:"border-t border-white/5 pt-3",children:[e.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"Recomendações:"}),e.jsx("ul",{className:"space-y-1",children:l.recommendations.map((s,r)=>e.jsxs("li",{className:"text-gray-300 text-sm flex items-start gap-2",children:[e.jsx("span",{className:"text-[#cbf400]",children:"•"}),s]},r))})]}),e.jsx("div",{className:"mt-4 pt-3 border-t border-white/5",children:e.jsxs("p",{className:"text-gray-400 text-xs",children:[e.jsx("span",{className:"text-[#cbf400]",children:"💡 Dica:"})," Um site bem otimizado aparece melhor no Google e atrai mais clientes. A Avanzato oferece serviços de SEO e otimização de sites."]})})]})]}),a.temSite==="nao"&&e.jsx("div",{className:"bg-[#cbf400]/5 border border-[#cbf400]/20 rounded-xl p-4",children:e.jsxs("p",{className:"text-gray-300 text-sm",children:[e.jsx("span",{className:"text-[#cbf400] font-semibold",children:"Dica:"})," Ter um site profissional aumenta a credibilidade da sua empresa e pode gerar novos negócios. A Avanzato também desenvolve sites corporativos."]})}),a.temSite==="desatualizado"&&e.jsx("div",{className:"bg-[#cbf400]/5 border border-[#cbf400]/20 rounded-xl p-4",children:e.jsxs("p",{className:"text-gray-300 text-sm",children:[e.jsx("span",{className:"text-[#cbf400] font-semibold",children:"Dica:"})," Um site desatualizado pode afastar clientes. A Avanzato oferece serviços de modernização e gestão de sites."]})})]}),t===2&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Computadores *"}),e.jsx("input",{type:"number",value:a.computadores,onChange:s=>i("computadores",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"0"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Notebooks *"}),e.jsx("input",{type:"number",value:a.notebooks,onChange:s=>i("notebooks",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"0"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Servidores"}),e.jsx("input",{type:"number",value:a.servidores,onChange:s=>i("servidores",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"0"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Existem equipamentos muito antigos em operação? *"}),e.jsx("div",{className:"flex gap-4",children:j.map(s=>e.jsx("button",{onClick:()=>i("equipamentosAntigos",s.value),className:`flex-1 px-4 py-3 rounded-xl border transition-all ${a.equipamentosAntigos===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]})]}),t===3&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Quantos links de internet? *"}),e.jsx("div",{className:"flex gap-4",children:["1","2","3+"].map(s=>e.jsxs("button",{onClick:()=>i("linksInternet",s),className:`flex-1 px-4 py-3 rounded-xl border transition-all ${a.linksInternet===s?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:[s," link",s!=="1"?"s":""]},s))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Quando uma internet cai, a outra assume automaticamente? *"}),e.jsx("div",{className:"flex gap-4",children:[{value:"sim",label:"Sim, automático"},{value:"nao",label:"Não, precisa trocar"},{value:"naosei",label:"Não sei"}].map(s=>e.jsx("button",{onClick:()=>i("failover",s.value),className:`flex-1 px-4 py-3 rounded-xl border transition-all ${a.failover===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Existe Wi-Fi separado para visitantes? *"}),e.jsx("div",{className:"flex gap-4",children:j.map(s=>e.jsx("button",{onClick:()=>i("wifiVisitantes",s.value),className:`flex-1 px-4 py-3 rounded-xl border transition-all ${a.wifiVisitantes===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]})]}),t===4&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"A empresa usa antivírus? *"}),e.jsx("div",{className:"flex gap-3 flex-wrap",children:te.map(s=>e.jsx("button",{onClick:()=>i("antivirus",s.value),className:`px-4 py-3 rounded-xl border transition-all ${a.antivirus===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]}),a.antivirus==="pago"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Qual antivírus?"}),e.jsx("input",{type:"text",value:a.antivirusNome,onChange:s=>i("antivirusNome",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"Ex: Kaspersky, Bitdefender..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Há rotina de backup? *"}),e.jsx("div",{className:"flex gap-3 flex-wrap",children:re.map(s=>e.jsx("button",{onClick:()=>i("backup",s.value),className:`px-4 py-3 rounded-xl border transition-all ${a.backup===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]}),a.backup!=="nao"&&a.backup!=="naosei"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"O backup é testado regularmente? *"}),e.jsx("div",{className:"flex gap-4",children:j.map(s=>e.jsx("button",{onClick:()=>i("backupTestado",s.value),className:`flex-1 px-4 py-3 rounded-xl border transition-all ${a.backupTestado===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]})]}),t===5&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Quem resolve os problemas de TI? *"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-3",children:ie.map(s=>e.jsx("button",{onClick:()=>i("responsavelTI",s.value),className:`px-4 py-3 rounded-xl border transition-all text-left ${a.responsavelTI===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Qual é a maior dor tecnológica hoje? *"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-3",children:le.map(s=>e.jsx("button",{onClick:()=>i("dorPrincipal",s.value),className:`px-4 py-3 rounded-xl border transition-all text-left ${a.dorPrincipal===s.value?"bg-[#cbf400] text-[#0e0e0e] border-[#cbf400]":"bg-[#0e0e0e] text-gray-400 border-white/10 hover:border-[#cbf400]/50"}`,children:s.label},s.value))})]})]}),t===6&&e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"bg-[#cbf400]/10 border border-[#cbf400]/30 rounded-xl p-4 mb-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(b,{className:"w-5 h-5 text-[#cbf400] flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-gray-300 text-sm",children:"Preencha seus dados para receber o diagnóstico completo e um especialista entrará em contato."})]})}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"Seu nome *"}),e.jsx("input",{type:"text",value:a.nome,onChange:s=>i("nome",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"Nome completo"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"WhatsApp *"}),e.jsx("input",{type:"tel",value:a.whatsapp,onChange:s=>i("whatsapp",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"(11) 99999-9999"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-white font-medium mb-2",children:"E-mail corporativo *"}),e.jsx("input",{type:"email",value:a.email,onChange:s=>i("email",s.target.value),className:"w-full bg-[#0e0e0e] border border-white/10 rounded-xl px-4 py-3 text-white focus:border-[#cbf400] focus:outline-none transition-colors",placeholder:"seu@email.com"})]})]}),e.jsxs("div",{className:"flex justify-between mt-10",children:[e.jsxs("button",{onClick:D,disabled:t===1,className:`flex items-center gap-2 px-6 py-3 rounded-xl font-medium transition-all ${t===1?"opacity-0 pointer-events-none":"text-gray-400 hover:text-white"}`,children:[e.jsx(H,{className:"w-5 h-5"}),"Voltar"]}),e.jsx("button",{onClick:_,disabled:!y()||g,className:`flex items-center gap-2 px-8 py-4 rounded-xl font-bold transition-all ${y()&&!g?"bg-[#cbf400] text-[#0e0e0e] hover:bg-[#d4ff1a]":"bg-gray-700 text-gray-500 cursor-not-allowed"}`,children:g?e.jsxs(e.Fragment,{children:[e.jsx(S,{className:"w-5 h-5 animate-spin"})," Processando..."]}):t===p.length?e.jsxs(e.Fragment,{children:[e.jsx(d,{className:"w-5 h-5"})," Ver resultado"]}):e.jsxs(e.Fragment,{children:["Próximo ",e.jsx(T,{className:"w-5 h-5"})]})})]})]}),e.jsx("div",{className:"mt-12 grid grid-cols-2 md:grid-cols-4 gap-4",children:[{valor:"1.247",label:"Empresas avaliadas"},{valor:"68%",label:"Sem backup adequado"},{valor:"54%",label:"Sem contingência de internet"},{valor:"4.8",label:"Nota média de satisfação"}].map((s,r)=>e.jsxs("div",{className:"bg-[#1a1a1a] rounded-xl p-4 text-center border border-white/5",children:[e.jsx("div",{className:"text-2xl font-black text-[#cbf400]",children:s.valor}),e.jsx("div",{className:"text-gray-500 text-xs",children:s.label})]},r))})]})})},oe=({resultado:t,formData:m})=>{const a=t.score,h=a>=80?{label:"Bem estruturado",cor:"text-green-400",bg:"bg-green-400/10"}:a>=60?{label:"Estrutura intermediária",cor:"text-yellow-400",bg:"bg-yellow-400/10"}:a>=40?{label:"Estrutura frágil",cor:"text-orange-400",bg:"bg-orange-400/10"}:{label:"Alto risco",cor:"text-red-400",bg:"bg-red-400/10"},g=[{nome:"Infraestrutura",score:Math.min(100,a+10)},{nome:"Internet",score:parseInt(m.linksInternet)>1?80:40},{nome:"Segurança",score:m.antivirus==="pago"?80:30},{nome:"Backup",score:m.backup==="diario"&&m.backupTestado==="sim"?90:30},{nome:"Gestão",score:m.responsavelTI==="terceirizado"?75:40}];return e.jsx("div",{className:"bg-[#0e0e0e] min-h-screen pt-24 pb-12",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-[#cbf400]/10 text-[#cbf400] text-sm font-semibold mb-4 border border-[#cbf400]/20",children:"Diagnóstico Completo"}),e.jsx("h1",{className:"text-3xl md:text-4xl font-black text-white mb-2",children:"Resultado da Avaliação"}),e.jsx("p",{className:"text-gray-400",children:m.empresa})]}),e.jsx("div",{className:"bg-[#1a1a1a] rounded-2xl p-8 border border-white/5 mb-8",children:e.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("svg",{className:"w-40 h-40 transform -rotate-90",children:[e.jsx("circle",{cx:"80",cy:"80",r:"70",stroke:"#1a1a1a",strokeWidth:"12",fill:"none"}),e.jsx("circle",{cx:"80",cy:"80",r:"70",stroke:"currentColor",strokeWidth:"12",fill:"none",strokeDasharray:`${a*4.4} 440`,className:h.cor,strokeLinecap:"round"})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[e.jsx("span",{className:`text-4xl font-black ${h.cor}`,children:a}),e.jsx("span",{className:"text-gray-500 text-sm",children:"/100"})]})]}),e.jsxs("div",{className:"flex-1 text-center md:text-left",children:[e.jsx("div",{className:`inline-block px-4 py-2 rounded-full ${h.bg} ${h.cor} text-sm font-semibold mb-4`,children:h.label}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Com base nas informações fornecidas, identificamos oportunidades de melhoria na estrutura tecnológica da sua empresa."}),e.jsxs("a",{href:`https://api.whatsapp.com/send?phone=551148101704&text=Olá!%20Fiz%20a%20avaliação%20e%20gostaria%20de%20conversar%20sobre%20meu%20resultado%20(${a}/100)`,target:"_blank",rel:"noopener noreferrer",className:"btn-primary inline-flex items-center gap-2",children:["Falar com especialista",e.jsx(J,{className:"w-5 h-5"})]})]})]})}),e.jsxs("div",{className:"bg-[#1a1a1a] rounded-2xl p-6 border border-white/5 mb-8",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-6",children:"Análise por área"}),e.jsx("div",{className:"space-y-4",children:g.map((o,x)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-2",children:[e.jsx("span",{className:"text-gray-300",children:o.nome}),e.jsxs("span",{className:o.score>=70?"text-green-400":o.score>=50?"text-yellow-400":"text-red-400",children:[o.score,"%"]})]}),e.jsx("div",{className:"h-2 bg-[#0e0e0e] rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-1000 ${o.score>=70?"bg-green-400":o.score>=50?"bg-yellow-400":"bg-red-400"}`,style:{width:`${o.score}%`}})})]},x))})]}),t.diagnostico.length>0&&e.jsxs("div",{className:"bg-[#1a1a1a] rounded-2xl p-6 border border-white/5 mb-8",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-6",children:"Pontos de atenção"}),e.jsx("div",{className:"space-y-4",children:t.diagnostico.map((o,x)=>e.jsxs("div",{className:"flex gap-4 p-4 bg-[#0e0e0e] rounded-xl",children:[e.jsx("div",{className:`w-2 h-full rounded-full ${o.status==="crítico"?"bg-red-400":o.status==="alto"?"bg-orange-400":"bg-yellow-400"}`}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-white font-semibold mb-1",children:o.area}),e.jsx("p",{className:"text-gray-400 text-sm",children:o.texto})]})]},x))})]}),t.seo&&e.jsxs("div",{className:"bg-[#1a1a1a] rounded-2xl p-6 border border-white/5 mb-8",children:[e.jsxs("h3",{className:"text-xl font-bold text-white mb-4 flex items-center gap-2",children:[e.jsx(A,{className:"w-5 h-5 text-[#cbf400]"}),"Análise de SEO do Site"]}),e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:`text-4xl font-black ${t.seo.score>=70?"text-green-400":t.seo.score>=50?"text-yellow-400":"text-red-400"}`,children:t.seo.score}),e.jsx("div",{className:"text-gray-400",children:"/100"})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 mb-6",children:[e.jsxs("div",{className:`p-4 rounded-xl ${t.seo.checks.hasTitle?"bg-green-400/10 text-green-400":"bg-red-400/10 text-red-400"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.seo.checks.hasTitle?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),e.jsx("span",{className:"font-medium",children:"Título"})]}),e.jsx("p",{className:"text-xs opacity-80",children:t.seo.checks.hasTitle?"Otimizado":"Não encontrado"})]}),e.jsxs("div",{className:`p-4 rounded-xl ${t.seo.checks.hasDescription?"bg-green-400/10 text-green-400":"bg-red-400/10 text-red-400"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.seo.checks.hasDescription?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),e.jsx("span",{className:"font-medium",children:"Descrição"})]}),e.jsx("p",{className:"text-xs opacity-80",children:t.seo.checks.hasDescription?"Presente":"Ausente"})]}),e.jsxs("div",{className:`p-4 rounded-xl ${t.seo.checks.hasHttps?"bg-green-400/10 text-green-400":"bg-red-400/10 text-red-400"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.seo.checks.hasHttps?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),e.jsx("span",{className:"font-medium",children:"HTTPS"})]}),e.jsx("p",{className:"text-xs opacity-80",children:t.seo.checks.hasHttps?"Seguro":"Não seguro"})]}),e.jsxs("div",{className:`p-4 rounded-xl ${t.seo.checks.isResponsive?"bg-green-400/10 text-green-400":"bg-red-400/10 text-red-400"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.seo.checks.isResponsive?e.jsx(d,{className:"w-4 h-4"}):e.jsx(b,{className:"w-4 h-4"}),e.jsx("span",{className:"font-medium",children:"Responsivo"})]}),e.jsx("p",{className:"text-xs opacity-80",children:t.seo.checks.isResponsive?"Sim":"Não"})]}),e.jsxs("div",{className:`p-4 rounded-xl col-span-2 md:col-span-1 ${t.seo.checks.loadSpeed==="fast"?"bg-green-400/10 text-green-400":t.seo.checks.loadSpeed==="medium"?"bg-yellow-400/10 text-yellow-400":"bg-red-400/10 text-red-400"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(C,{className:"w-4 h-4"}),e.jsx("span",{className:"font-medium",children:"Velocidade"})]}),e.jsx("p",{className:"text-xs opacity-80",children:t.seo.checks.loadSpeed==="fast"?"Rápida":t.seo.checks.loadSpeed==="medium"?"Média":"Lenta"})]})]}),t.seo.recommendations.length>0&&e.jsxs("div",{className:"bg-[#0e0e0e] rounded-xl p-4",children:[e.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"Recomendações de SEO:"}),e.jsx("ul",{className:"space-y-2",children:t.seo.recommendations.map((o,x)=>e.jsxs("li",{className:"text-gray-300 text-sm flex items-start gap-2",children:[e.jsx("span",{className:"text-[#cbf400]",children:"→"}),o]},x))})]}),e.jsx("div",{className:"mt-4 p-4 bg-[#cbf400]/5 border border-[#cbf400]/20 rounded-xl",children:e.jsxs("p",{className:"text-gray-300 text-sm",children:[e.jsx("span",{className:"text-[#cbf400] font-semibold",children:"💡 Oportunidade:"})," Um site bem otimizado para SEO aparece melhor no Google e atrai mais clientes. A Avanzato oferece serviços de otimização de sites e SEO técnico."]})})]}),e.jsxs("div",{className:"bg-gradient-to-r from-[#cbf400]/10 to-transparent rounded-2xl p-8 text-center border border-[#cbf400]/20",children:[e.jsx("h3",{className:"text-2xl font-bold text-white mb-4",children:"Receba um relatório completo"}),e.jsx("p",{className:"text-gray-400 mb-6",children:"Um especialista da Avanzato vai analisar seu caso e preparar recomendações personalizadas para sua empresa."}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsxs("a",{href:`https://api.whatsapp.com/send?phone=551148101704&text=Olá!%20Fiz%20a%20avaliação%20(${a}/100)%20e%20gostaria%20de%20receber%20o%20relatório%20completo`,target:"_blank",rel:"noopener noreferrer",className:"btn-primary inline-flex items-center gap-2",children:["Receber relatório",e.jsx(T,{className:"w-5 h-5"})]}),e.jsx("a",{href:"tel:+551148101704",className:"btn-secondary",children:"Ligar agora"})]})]})]})})};export{pe as default};