1import{j as e,u as N}from"./index-CIbXxtIw.js";import{r as s}from"./vendor-CkeEzXvl.js";import{S}from"./SEO-CBm3akUp.js";import{R}from"./RealScarcityBar-BaHEMvEI.js";import"./router-CRN6_QoM.js";function k({score:a}){if(a<75)return null;const r=a>=90?"Top 5%":a>=82?"Top 10%":"Top 15%";return e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-cyan-400/40 bg-cyan-400/10 text-cyan-200 text-sm font-medium",children:[e.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-cyan-300 animate-pulse","aria-hidden":!0}),"Perfil prioritário · ",r," das respostas desta semana"]})}const l=[{id:"leads",label:"Quantos leads qualificados sua operação recebe por semana?",options:[{value:5,label:"Menos de 20"},{value:15,label:"20 a 80"},{value:25,label:"80 a 200"},{value:30,label:"Mais de 200"}]},{id:"conv",label:"Qual a taxa de conversão lead â cliente hoje?",options:[{value:5,label:"Não sei medir"},{value:10,label:"Abaixo de 5%"},{value:20,label:"Entre 5% e 15%"},{value:25,label:"Acima de 15%"}]},{id:"stack",label:"Como está sua operação comercial?",options:[{value:5,label:"Sem CRM, planilha solta"},{value:12,label:"CRM básico, sem cadência"},{value:20,label:"CRM + SDR humano"},{value:25,label:"Stack completo com automação"}]},{id:"ticket",label:"Faixa de faturamento mensal:",options:[{value:5,label:"Até R$ 80 mil"},{value:12,label:"R$ 80 a 300 mil"},{value:20,label:"R$ 300 mil a 1 milhão"},{value:25,label:"Acima de R$ 1 milhão"}]}];function $(){const[a,r]=s.useState(0),[d,x]=s.useState({}),[b,h]=s.useState(!1),m=s.useRef(null),u=s.useRef(null),[c,p]=s.useState(!1),[f,v]=s.useState(!1),i=s.useMemo(()=>Object.values(d).reduce((t,o)=>t+o,0),[d]);function g(t,o){x(n=>({...n,[t.id]:o})),setTimeout(()=>{a+1<l.length?r(a+1):h(!0)},220)}async function j(t){if(t.preventDefault(),c)return;const o=m.current?.value.trim(),n=u.current?.value.trim();if(!(!o||!n)){p(!0);try{await N("expertos2_leads",{name:o,whatsapp:n,source:"quiz-receita-invisivel",referrer:typeof document<"u"?document.referrer:"",notes:`score=${i} answers=${JSON.stringify(d)} url=${typeof window<"u"?window.location.href:""}`}),v(!0)}finally{p(!1)}}}const y=i>=75?"15% a 22%":i>=50?"22% a 30%":"30% a 45%",w=i>=75?"Operação madura com gargalo de leverage. A perda é menor em percentual, mas absoluta é alta.":i>=50?"Operação em consolidação. Existe receita invisÃvel no funil sem cadência adequada.":"Operação reativa. Maior parte do faturamento possÃvel ainda não é capturada.";return e.jsxs("main",{className:"min-h-screen bg-black text-white",children:[e.jsx(S,{title:"Quiz: Diagnóstico de Receita InvisÃvel em 90s",description:"Quatro perguntas. Você descobre a faixa de receita invisÃvel que sua operação está deixando na mesa toda semana.",path:"/quiz/diagnostico-receita-invisivel"}),e.jsxs("section",{className:"max-w-2xl mx-auto px-5 py-16 md:py-24",children:[e.jsxs("header",{className:"mb-10",children:[e.jsx("p",{className:"text-xs tracking-widest text-cyan-300 uppercase",children:"Diagnóstico Receita InvisÃvel"}),e.jsx("h1",{className:"text-3xl md:text-5xl font-semibold mt-3 leading-tight",children:"Quanto sua operação deixa na mesa toda semana, sem ver?"}),e.jsx("p",{className:"text-white/70 mt-4",children:"Quatro perguntas. Trinta segundos. Faixa real estimada com base em mediana do nosso histórico."})]}),b?e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-6 md:p-10 space-y-6 animate-in fade-in",children:[e.jsx(k,{score:i}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-white/60",children:"Estimativa de receita invisÃvel semanal"}),e.jsx("div",{className:"text-4xl md:text-6xl font-semibold mt-2 text-cyan-300",children:y}),e.jsx("div",{className:"text-sm text-white/50 mt-2",children:"Faixa baseada em mediana histórica de operações com perfil semelhante. Não é promessa de recuperação."})]}),e.jsx("p",{className:"text-white/85 text-base md:text-lg",children:w}),f?e.jsxs("div",{className:"rounded-xl border border-cyan-400/40 bg-cyan-400/10 p-5",children:[e.jsx("div",{className:"text-cyan-200 font-semibold",children:"Recebido."}),e.jsx("p",{className:"text-white/80 mt-1",children:"Em até 1h útil você recebe o detalhamento pelo WhatsApp informado. Se entrar fora do horário comercial, chega no inÃcio do próximo turno."})]}):e.jsxs("form",{onSubmit:j,className:"space-y-3 pt-2",children:[e.jsx("input",{ref:m,required:!0,placeholder:"Seu nome",className:"w-full px-4 py-3 rounded-lg bg-black border border-white/15 focus:border-cyan-400 outline-none"}),e.jsx("input",{ref:u,required:!0,inputMode:"tel",placeholder:"WhatsApp com DDD",className:"w-full px-4 py-3 rounded-lg bg-black border border-white/15 focus:border-cyan-400 outline-none"}
1),e.jsx("button",{disabled:c,className:"w-full px-5 py-4 rounded-lg bg-cyan-400 text-black font-semibold hover:bg-cyan-300 transition disabled:opacity-60",children:c?"Liberando análise...":"Liberar análise completa"}),e.jsx("p",{className:"text-xs text-white/45 text-center",children:"Você recebe o detalhamento no WhatsApp. Sem disparo automático sem você responder."})]}),e.jsx("div",{className:"pt-4",children:e.jsx(R,{})})]}):e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"h-1 w-full bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-cyan-400 transition-all",style:{width:`${(a+1)/l.length*100}%`}})}),e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-6 md:p-8 animate-in fade-in slide-in-from-bottom-2",children:[e.jsxs("div",{className:"text-xs text-white/50 mb-2",children:["Pergunta ",a+1," de ",l.length]}),e.jsx("h2",{className:"text-xl md:text-2xl font-medium",children:l[a].label}),e.jsx("div",{className:"mt-6 grid gap-3",children:l[a].options.map(t=>e.jsx("button",{type:"button",onClick:()=>g(l[a],t.value),className:"text-left px-4 py-4 rounded-xl border border-white/10 hover:border-cyan-400/60 hover:bg-cyan-400/5 transition",children:t.label},t.label))})]},l[a].id)]})]})]})}export{$ 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.