1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9420],{23009:(e,s,a)=>{a.d(s,{A:()=>l,O:()=>n});var t=a(95155),r=a(86831);function l(){let e=(0,r.wV)(),s=()=>r.yK.signOut();return{user:function(e){var s;let a;if(!e)return null;let{givenName:t,familyName:r}={givenName:(a=(e.name??"").trim().split(/\s+/).filter(Boolean))[0]??null,familyName:a.length>1?a.slice(1).join(" "):null},l=(s=e.createdAt)?s instanceof Date?s.toISOString():s:null;return{...e,userName:e.name??null,google_sub:e.id??null,given_name:t,family_name:r,picture:e.image??null,email_verified:e.emailVerified??null,created_at:l,google_user_data:{sub:e.id??null,name:e.name??null,given_name:t,family_name:r,email:e.email??null,picture:e.image??null,email_verified:e.emailVerified??null}}}(e.data?.user),isPending:e.isPending,loading:e.isPending,error:e.error??null,signOut:s,logout:s,refetch:e.refetch,fetchUser:e.refetch,redirectToLogin:()=>{window.location.href="/account/signin"},exchangeCodeForSessionToken:async()=>{}}}function n({children:e}){return(0,t.jsx)(t.Fragment,{children:e})}},24211:(e,s,a)=>{a.d(s,{D:()=>o,N:()=>n});var t=a(95155),r=a(12115);let l=(0,r.createContext)(void 0);function n({children:e}){let[s,a]=(0,r.useState)(()=>{{let e=localStorage.getItem("theme");return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}});return(0,r.useEffect)(()=>{let e=document.documentElement;"dark"===s?e.classList.add("dark"):e.classList.remove("dark"),localStorage.setItem("theme",s)},[s]),(0,t.jsx)(l.Provider,{value:{theme:s,toggleTheme:()=>{a(e=>"dark"===e?"light":"dark")},isDark:"dark"===s},children:e})}function o(){let e=(0,r.useContext)(l);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}},49420:(e,s,a)=>{a.r(s),a.d(s,{default:()=>H});var t=a(95155),r=a(12115),l=a(57030),n=a(81258),o=a(65213),i=a(10349),d=a(50049),c=a(67899),m=a(80429),x=a(1709),h=a(53961),u=a(6296),b=a(13545),p=a(20232),g=a(127),f=a(4066),j=a(21362),y=a(80723),N=a(41585),v=a(42869),w=a(41159),C=a(96035),A=a(44071),E=a(67514),F=a(48368),S=a(997),k=a(84217),B=a(96909),M=a(56204),P=a(33210),D=a(51058),O=a(31885),$=a(52484),R=a(90718),T=a(94290),I=a(62791),V=a(89123),z=a(91958);let L=[{id:"padaria",name:"Dono de Padaria",icon:n.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/9750d374-42ca-4b61-9d67-9b10c9fcbe4e.png",difficulty:"Dif\xedcil",difficultyColor:"text-red-400 bg-red-500/20",description:"Consumo alto com fornos e refrigera\xe7\xe3o, funciona de madrugada",consumption:"Alto",decisionMaker:"Decide sozinho",typicalObjections:["isso \xe9 pegadinha?","e se faltar luz minha produ\xe7\xe3o para?","capital de giro apertado","e a multa se eu quiser sair?"]},{id:"farmacia",name:"Dono de Farm\xe1cia",icon:o.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/fa4e4d93-e9ee-4b9a-ad75-33c0e0f6bc81.png",difficulty:"M\xe9dio",difficultyColor:"text-amber-400 bg-amber-500/20",description:"Consumo m\xe9dio-alto com ar-condicionado e geladeiras 24h",consumption:"M\xe9dio-Alto",decisionMaker:"Decide sozinho ou com s\xf3cio",typicalObjections:["margem apertada","medo de fidelidade longa","j\xe1 n\xe3o tenho desconto com a distribuidora?"]},{id:"igreja",name:"Igreja / Templo",icon:i.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/17fdc62b-43b3-494f-b69f-05f5b727a958.png",difficulty:"M\xe9dio",difficultyColor:"text-amber-400 bg-amber-500/20",description:"Consumo de eventos e climatiza\xe7\xe3o em cultos",consumption:"M\xe9dio",decisionMaker:"Conselho/Pastor",typicalObjections:["preciso levar pra reuni\xe3o do conselho","or\xe7amento vem de doa\xe7\xf5es","burocracia de aprova\xe7\xe3o"]},{id:"condominio",name:"S\xedndico de Condom\xednio",icon:d.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/1f70dbbb-8baa-4ce6-b1c0-43457a1a3d8f.png",difficulty:"Dif\xedcil",difficultyColor:"text-red-400 bg-red-500/20",description:"\xc1reas comuns: elevador, bomba d'\xe1gua, portaria, ilumina\xe7\xe3o",consumption:"Alto",decisionMaker:"Assembleia",typicalObjections:["tenho que levar pros moradores","medo de complicar com moradores","e se der problema quem responde?"]},{id:"mercadinho",name:"Dono de Mercadinho",icon:c.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/932604a0-f3b5-4faa-a8bd-7b607e9a3aab.png",difficulty:"M\xe9dio",difficultyColor:"text-amber-400 bg-amber-500/20",description:"Refrigera\xe7\xe3o 24/7, dor real de conta alta",consumption:"Alto",decisionMaker:"Decide sozinho",typicalObjections:["desconfian\xe7a","n\xe3o entendo de energia","quer ver o desconto na pr\xe1tica"]},{id:"restaurante",name:"Dono de Restaurante",icon:m.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/cc9ef57c-2572-404b-9fb8-7a0c4924cbe5.png",difficulty:"M\xe9dio",difficultyColor:"text-amber-400 bg-amber-500/20",description:"Cozinha + refrigera\xe7\xe3o, alto consumo, rotina corrida",consumption:"Alto",decisionMaker:"Decide sozinho",typicalObjections:["falta de tempo pra burocracia","ceticismo"]},{id:"salao",name:"Dona de Sal\xe3o de Beleza",icon:x.A,image:"https://dtvoeevhaseb5.cloudfront.net/uploads/mocha-import/0696108f-bd4f-4294-b0fd-d96cadb9467f/ae64eb8a-f94f-4b01-9d22-c8364e5f56d8.png",difficulty:"F\xe1cil",difficultyColor:"text-green-400 bg-green-500/20",description:"Consumo m\xe9dio com secadores e climatiza\xe7\xe3o",consumption:"M\xe9dio",decisionMaker:"Decide sozinha",typicalObjections:["sens\xedvel a pre\xe7o","medo de amarra\xe7\xe3o contratual"]}];
1function _(){let[e]=(0,l.ok)(),s=e.get("c"),[a,n]=(0,r.useState)("registration"),[o,i]=(0,r.useState)(null),[d,c]=(0,r.useState)(null),[m,x]=(0,r.useState)(!1),[_,q]=(0,r.useState)(null),[G,H]=(0,r.useState)(null),[J,K]=(0,r.useState)(""),[U,Q]=(0,r.useState)(""),[Z,W]=(0,r.useState)(""),[X,Y]=(0,r.useState)(!!s),[ee,es]=(0,r.useState)(null),[ea,et]=(0,r.useState)([]),[er,el]=(0,r.useState)(50),[en,eo]=(0,r.useState)(""),[ei,ed]=(0,r.useState)(!1),[ec,em]=(0,r.useState)(null),[ex,eh]=(0,r.useState)(null),[eu,eb]=(0,r.useState)(null),[ep,eg]=(0,r.useState)(!1),ef=(0,r.useRef)(null),[ej,ey]=(0,r.useState)(!1),[eN,ev]=(0,r.useState)(!1),[ew,eC]=(0,r.useState)(""),eA=(0,r.useRef)(null),[eE,eF]=(0,r.useState)(!1),[eS,ek]=(0,r.useState)(""),[eB,eM]=(0,r.useState)("Confort"),[eP,eD]=(0,r.useState)("12 meses"),[eO,e$]=(0,r.useState)(15),[eR,eT]=(0,r.useState)(""),[eI,eV]=(0,r.useState)(!1),[ez,eL]=(0,r.useState)(null),[e_,eq]=(0,r.useState)(!1),[eG,eH]=(0,r.useState)(15),[eJ,eK]=(0,r.useState)("nao"),[eU,eQ]=(0,r.useState)("nao"),[eZ,eW]=(0,r.useState)(!1);(0,r.useEffect)(()=>{s&&fetch(`/api/soul-arena/campaign/${s}`).then(e=>e.json()).then(e=>{e.valid?H(e.campaign):es("Link inv\xe1lido ou campanha encerrada.")}).catch(()=>es("Erro ao carregar campanha.")).finally(()=>Y(!1))},[s]);let eX=(0,r.useRef)(""),eY=(0,r.useRef)(!1);(0,r.useEffect)(()=>{eY.current=ej},[ej]),(0,r.useEffect)(()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(e){ev(!0);let s=new e;s.continuous=!0,s.interimResults=!0,s.lang="pt-BR",s.onresult=e=>{let s="";for(let a=0;a<e.results.length;a++){let t=e.results[a],r=t[0].transcript;t.isFinal?eX.current=eX.current?eX.current+" "+r:r:s+=r}eC((eX.current?eX.current+(s?" "+s:""):s)||"...")},s.onerror=e=>{console.log("Speech recognition error:",e)},s.onend=()=>{if(eY.current&&eA.current)try{eA.current.start()}catch{}},eA.current=s}return()=>{eA.current&&eA.current.abort()}},[]);let e0=e=>{i(e),c(null),q(null),n("briefing")};(0,r.useEffect)(()=>{"briefing"===a&&o&&!d&&e5()},[a,o]);let e5=async()=>{if(o){x(!0),q(null);try{let e=await fetch("/api/soul-arena/briefing",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({personaId:o.id,personaName:o.name,description:o.description,consumption:o.consumption,decisionMaker:o.decisionMaker,typicalObjections:o.typicalObjections})}),s=await e.json();s.error?q(s.error):c(s.briefing)}catch(e){q("Erro ao gerar cen\xe1rio. Tente novamente.")}finally{x(!1)}}},e4=async()=>{if(d&&o){try{let e=await fetch("/api/soul-arena/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({personaId:o.id,personaName:o.name,buyerName:d.buyerName,businessName:d.businessName,briefing:d,campaignId:G?.id||null,playerName:J.trim()||null,playerEmail:U.trim()||null,playerPhone:Z.trim()||null})}),s=await e.json();s.simulationId&&eh(s.simulationId)}catch(e){console.error("Failed to start simulation tracking:",e)}et([{role:"buyer",content:d.openingLine,mood:"neutral"}]),el(50),em(null),eo(""),n("conversation")}};(0,r.useEffect)(()=>{ef.current?.scrollIntoView({behavior:"smooth"})},[ea]),(0,r.useEffect)(()=>{if(ec&&ex){let e=ea.filter(e=>"seller"===e.role).length;fetch("/api/soul-arena/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({simulationId:ex,finalConviction:er,result:ec,messageCount:ea.length,turnCount:e,conversation:ea,proposalData:ez})}).catch(e=>console.error("Failed to save simulation:",e))}},[ec]);let e1=async()=>{if(o&&d&&ea.length){eg(!0);try{let e=await fetch("/api/soul-arena/debrief",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:o,briefing:d,messages:ea,finalConviction:er,result:ec,proposalData:ez})}),s=await e.json();s.analysis&&(eb(s.analysis),n("debrief"))}catch(e){console.error("Failed to fetch debrief:",e)}finally{eg(!1)}}},e2=async()=>{if(!en.trim()||ei||!o||!d)return;let e=en.trim();eo("");let s=[...ea,{role:"seller",content:e}];et(s),ed(!0);try{let a=await fetch("/api/soul-arena/respond",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:o,briefing:d,conversationHistory:s,userMessage:e,currentConviction:er})}),t=await a.json();if(t.error)et([...s,{role:"buyer",content:"Hmm, me d\xea um momento...",mood:"neutral"}]);else{let e=Math.max(0,Math.min(100,er+t.convictionDelta));el(e),et([...s,{role:"buyer",content:t.buyerResponse,mood:t.buyerMood,convictionChange:t.convictionDelta}]),e>=100?(em("won"),n("outcome")):e<=0&&(em("lost"),n("outcome"))}}catch(e){et([...s,{role:"buyer",content:"Desculpa, pode repetir?",mood:"neutral"}])}finally{ed(!1)}};(0,r.useEffect)(()=>
1{d?.buyerName&&ek(d.buyerName)},[d?.buyerName]);let e6=()=>{let e=parseFloat(eR.replace(/[^\d,.-]/g,"").replace(",","."))||0,s=.8*e,a=eO/100*s;return{billValue:e,baseCompensavel:s,economiaMensal:a,economiaAnual:12*a,novaContaEstimada:e-a}},e3=e=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e),e8=async()=>{let e=e6();if(e.billValue<=0)return;eV(!0);let s=`[PROPOSTA FORMAL APRESENTADA PELO VENDEDOR: Plano ${eB}, fidelidade ${eP}, desconto ${eO}%, conta de ${e3(e.billValue)}, economia mensal ${e3(e.economiaMensal)}, economia anual ${e3(e.economiaAnual)}.]`,a=[...ea,{role:"seller",content:s}];et(a),eF(!1),eL({clientName:eS,plan:eB,fidelity:eP,discount:eO/100,billValue:e.billValue,economiaMensal:e.economiaMensal,economiaAnual:e.economiaAnual,novaContaEstimada:e.novaContaEstimada,messageIndex:a.length});try{let t=await fetch("/api/soul-arena/respond",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:o,briefing:d,conversationHistory:a,userMessage:s,currentConviction:er,isProposal:!0,proposalData:{clientName:eS,plan:eB,fidelity:eP,discount:eO,billValue:e.billValue,economiaMensal:e.economiaMensal,economiaAnual:e.economiaAnual,novaContaEstimada:e.novaContaEstimada}})}),r=await t.json();if(!r.error){let e=Math.max(0,Math.min(100,er+r.convictionDelta));el(e),et([...a,{role:"buyer",content:r.buyerResponse,mood:r.buyerMood,convictionChange:r.convictionDelta}]),e>=100?(em("won"),n("outcome")):e<=0&&(em("lost"),n("outcome"))}}catch(e){et([...a,{role:"buyer",content:"Hmm, deixa eu ver essa proposta com calma...",mood:"neutral"}])}finally{eV(!1)}},e9=async()=>{eW(!0);let e="24"===eJ?"com fidelidade de 24 meses":"12"===eJ?"com fidelidade de 12 meses":"sem fidelidade",s=`[CONTRATO FORMAL APRESENTADO PELO VENDEDOR: Gera\xe7\xe3o Distribu\xedda (GD) com compensa\xe7\xe3o de at\xe9 80% da conta de luz, desconto de ${eG}%, ${e}, ${"sim"===eU?"com multa de rescis\xe3o":"sem multa de rescis\xe3o"}. O contrato segue as normas da ANEEL para microgera\xe7\xe3o e minigera\xe7\xe3o distribu\xedda.]`,a=[...ea,{role:"seller",content:s}];et(a),eq(!1);try{let e=await fetch("/api/soul-arena/respond",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:o,briefing:d,conversationHistory:a,userMessage:s,currentConviction:er,isContract:!0,contractData:{discount:eG,hasFidelity:eJ,hasPenalty:"sim"===eU}})}),t=await e.json();if(!t.error){let e=Math.max(0,Math.min(100,er+t.convictionDelta));el(e),et([...a,{role:"buyer",content:t.buyerResponse,mood:t.buyerMood,convictionChange:t.convictionDelta}]),e>=100?(em("won"),n("outcome")):e<=0&&(em("lost"),n("outcome"))}}catch(e){et([...a,{role:"buyer",content:"Deixa eu analisar esse contrato com calma...",mood:"neutral"}])}finally{eW(!1)}};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0f1a]",children:[(0,t.jsx)("header",{className:"border-b border-[#6B6FE0]/20 bg-[#0d1424]/80 backdrop-blur-sm sticky top-0 z-50",children:(0,t.jsx)("div",{className:"max-w-6xl mx-auto px-4 h-16 flex items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-[#6B6FE0] to-[#5558C8] flex items-center justify-center shadow-lg shadow-[#6B6FE0]/20",children:(0,t.jsx)(h.A,{className:"w-5 h-5 text-white"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-lg font-bold text-white",children:"Soul Arena"}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Simulador de Vendas"})]})]})})}),"registration"===a&&(0,t.jsxs)("main",{className:"max-w-lg mx-auto px-4 py-12",children:[s&&X&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,t.jsx)(u.A,{className:"w-8 h-8 text-[#6B6FE0] animate-spin mb-4"}),(0,t.jsx)("p",{className:"text-gray-400",children:"Carregando campanha..."})]}),s&&ee&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,t.jsx)("div",{className:"p-4 rounded-full bg-red-500/10 mb-4",children:(0,t.jsx)(b.A,{className:"w-8 h-8 text-red-500"})}),(0,t.jsx)("p",{className:"text-red-400 mb-4",children:ee}),(0,t.jsx)(l.N_,{to:"/",className:"text-[#6B6FE0] hover:underline",children:"Ir para a p\xe1gina inicial"})]}),(!s||G&&!X&&!ee)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-gradient-to-br from-[#6B6FE0] to-[#5558C8] flex items-center justify-center shadow-lg shadow-[#6B6FE0]/30 mb-6",children:(0,t.jsx)(h.A,{className:"w-8 h-8 text-white"})}),(0,t.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:G?G.title:"Soul Arena"}),(0,t.jsx)("p",{className:"text-gray-400",children:G?.description||"Simulador de vendas com IA"})]}),(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-[#111827] border border-gray-800",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-white mb-6 text-center",children:"Identifique-se para come\xe7ar"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"Seu nome completo *"}),(0,t.jsx)("input",{type:"text",value:J,onChange:e=>K(e.target.value),placeholder:"Digite seu nome...",className:"w-full px-4 py-3 rounded-xl bg-[#0d1424] border border-gray-700 text-white placeholder-gray-500 focus:border-[#6
1B6FE0] focus:outline-none focus:ring-1 focus:ring-[#6B6FE0] transition-all"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"Seu e-mail *"}),(0,t.jsx)("input",{type:"email",value:U,onChange:e=>Q(e.target.value),placeholder:"[email protected]",className:"w-full px-4 py-3 rounded-xl bg-[#0d1424] border border-gray-700 text-white placeholder-gray-500 focus:border-[#6B6FE0] focus:outline-none focus:ring-1 focus:ring-[#6B6FE0] transition-all"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"Seu telefone *"}),(0,t.jsx)("input",{type:"tel",value:Z,onChange:e=>W(e.target.value),placeholder:"(11) 99999-9999",className:"w-full px-4 py-3 rounded-xl bg-[#0d1424] border border-gray-700 text-white placeholder-gray-500 focus:border-[#6B6FE0] focus:outline-none focus:ring-1 focus:ring-[#6B6FE0] transition-all"})]})]}),(0,t.jsxs)("button",{onClick:()=>n("selection"),disabled:!J.trim()||!U.trim()||!U.includes("@")||!Z.trim(),className:"w-full mt-6 px-6 py-3 rounded-xl bg-gradient-to-r from-[#6B6FE0] to-[#5558C8] text-white font-medium hover:shadow-lg hover:shadow-[#6B6FE0]/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:[(0,t.jsx)(p.A,{className:"w-5 h-5"}),"Come\xe7ar Simula\xe7\xe3o"]})]}),(0,t.jsx)("p",{className:"text-center text-gray-600 text-sm mt-6",children:"Seus dados ser\xe3o usados apenas para acompanhar seu desempenho"})]})]}),"selection"===a&&(0,t.jsxs)("main",{className:"max-w-6xl mx-auto px-4 py-12",children:[(0,t.jsxs)("div",{className:"text-center mb-12",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-[#6B6FE0]/10 border border-[#6B6FE0]/30 text-[#6B6FE0] text-sm font-medium mb-6",children:[(0,t.jsx)(g.A,{className:"w-4 h-4"}),"Treinamento de Vendas com IA"]}),(0,t.jsxs)("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:["Treine venda de"," ",(0,t.jsx)("span",{className:"bg-gradient-to-r from-[#6B6FE0] to-[#8B8FFF] bg-clip-text text-transparent",children:"Soul Energy"})]}),(0,t.jsx)("p",{className:"text-gray-400 max-w-xl mx-auto text-lg",children:"Converse com compradores reais
1simulados por IA. Supere obje\xe7\xf5es, construa confian\xe7a e feche vendas."}),G&&(0,t.jsxs)("div",{className:"mt-4 p-4 rounded-xl bg-[#6B6FE0]/10 border border-[#6B6FE0]/30 max-w-md mx-auto",children:[(0,t.jsx)("p",{className:"text-[#8B8FFF] font-medium",children:G.title}),G.description&&(0,t.jsx)("p",{className:"text-gray-400 text-sm mt-1",children:G.description})]})]}),(0,t.jsx)("div",{className:"flex justify-center mb-8",children:(0,t.jsxs)("button",{onClick:()=>{let e=Math.floor(Math.random()*L.length);e0(L[e])},className:"group flex items-center gap-3 px-6 py-3 rounded-xl bg-gradient-to-r from-[#6B6FE0]/20 to-[#8B8FFF]/20 border border-[#6B6FE0]/40 text-[#8B8FFF] hover:border-[#6B6FE0] hover:shadow-lg hover:shadow-[#6B6FE0]/20 transition-all",children:[(0,t.jsx)(f.A,{className:"w-5 h-5 group-hover:rotate-180 transition-transform duration-500"}),(0,t.jsx)("span",{className:"font-medium",children:"\uD83C\uDFB2 Surpreenda-me"})]})}),(0,t.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:L.filter(e=>!G?.personaFilter||G.personaFilter.includes(e.id)).map(e=>(0,t.jsxs)("button",{onClick:()=>e0(e),className:"group text-left p-5 rounded-2xl bg-[#111827] border border-gray-800 hover:border-[#6B6FE0]/50 hover:bg-[#151d2e] transition-all hover:-translate-y-1 hover:shadow-xl hover:shadow-[#6B6FE0]/10",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,t.jsx)("img",{src:e.image,alt:e.name,className:"w-16 h-16 rounded-xl object-cover border-2 border-gray-700 group-hover:border-[#6B6FE0]/50 transition-colors"}),(0,t.jsx)("span",{className:`px-2 py-1 rounded-md text-xs font-medium ${e.difficultyColor}`,children:e.difficulty})]}),(0,t.jsx)("h3",{className:"text-white font-semibold mb-2 group-hover:text-[#8B8FFF] transition-colors",children:e.name}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mb-3 line-clamp-2",children:e.description}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,t.jsxs)("span",{className:"text-gray-600",children:["Consumo: ",(0,t.jsx)("span",{className:"text-gray-400",children:e.consumption})]}),(0,t.jsx)(j.A,{className:"w-4 h-4 text-gray-600 group-hover:text-[#6B6FE0] group-hover:translate-x-1 transition-all"})]})]},e.id))}),(0,t.jsx)("div",{className:"mt-12 text-center",children:(0,t.jsx)("p",{className:"text-gray-600 text-sm",children:"Cada simula\xe7\xe3o \xe9 \xfanica â a IA gera conversas diferentes a cada rodada"})})]}),"briefing"===a&&o&&(0,t.jsxs)("main",{className:"max-w-3xl mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-8",children:[(0,t.jsx)("button",{onClick:()=>{n("selection"),c(null)},className:"p-2 rounded-lg text-gray-400 hover:text-white hover:bg-white/5 transition-all",children:(0,t.jsx)(y.A,{className:"w-5 h-5"})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-[#1e293b] flex items-center justify-center",children:(0,t.jsx)(o.icon,{className:"w-6 h-6 text-[#6B6FE0]"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-bold text-white",children:o.name}),(0,t.jsx)("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${o.difficultyColor}`,children:o.difficulty})]})]})]}),m&&(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-[#6B6FE0]/20 flex items-center justify-center mb-6",children:(0,t.jsx)(u.A,{className:"w-8 h-8 text-[#6B6FE0] animate-spin"})}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"Preparando cen\xe1rio..."}),(0,t.jsx)("p",{className:"text-gray-500",children:"A IA est\xe1 criando uma situa\xe7\xe3o \xfanica de venda"})]}),_&&!m&&(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-red-500/20 flex items-center justify-center mb-6",children:(0,t.jsx)(N.A,{className:"w-8 h-8 text-red-400"})}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"Erro ao gerar cen\xe1rio"}),(0,t.jsx)("p",{className:"text-gray-500 mb-6",children:_}),(0,t.jsx)("button",{onClick:e5,className:"px-6 py-3 rounded-xl bg-[#6B6FE0] text-white font-medium hover:bg-[#5558C8] transition-all",children:"Tentar novamente"})]}),d&&!m&&(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-gradient-to-br from-[#111827] to-[#0d1424] border border-gray-800",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4 mb-6",children:[(0,t.jsx)("div",{className:"w-14 h-14 roun
1ded-xl bg-[#6B6FE0]/20 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(v.A,{className:"w-7 h-7 text-[#6B6FE0]"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-xl font-bold text-white",children:d.buyerName}),(0,t.jsx)("p",{className:"text-[#6B6FE0] font-medium",children:d.businessName})]})]}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"p-4 rounded-xl bg-[#1e293b]/50",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-gray-400 text-sm mb-2",children:[(0,t.jsx)(w.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Sobre o Neg\xf3cio"})]}),(0,t.jsx)("p",{className:"text-white text-sm",children:d.businessDetails})]}),(0,t.jsxs)("div",{className:"p-4 rounded-xl bg-[#1e293b]/50",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-gray-400 text-sm mb-2",children:[(0,t.jsx)(g.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Quem Decide"})]}),(0,t.jsx)("p",{className:"text-white text-sm",children:o.decisionMaker})]})]})]}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"p-5 rounded-xl bg-[#111827] border border-gray-800",children:[(0,t.jsx)("h4",{className:"text-sm font-medium text-amber-400 mb-2",children:"\uD83D\uDCCD Situa\xe7\xe3o Atual"}),(0,t.jsx)("p",{className:"text-gray-300 text-sm leading-relaxed",children:d.currentSituation})]}),(0,t.jsxs)("div",{className:"p-5 rounded-xl bg-[#111827] border border-gray-800",children:[(0,t.jsx)("h4",{className:"text-sm font-medium text-blue-400 mb-2",children:"\uD83D\uDD14 Evento Recente"}),(0,t.jsx)("p",{className:"text-gray-300 text-sm leading-relaxed",children:d.recentEvents})]})]}),(0,t.jsxs)("div",{className:"p-5 rounded-xl bg-red-500/10 border border-red-500/30",children:[(0,t.jsx)("h4",{className:"text-sm font-medium text-red-400 mb-2",children:"â ï¸ Principal Preocupa\xe7\xe3o"}),(0,t.jsx)("p",{className:"text-gray-300 text-sm leading-relaxed",children:d.mainConcern})]}),(0,t.jsxs)("div",{className:"p-5 rounded-xl bg-[#6B6FE0]/10 border border-[#6B6FE0]/30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[#8B8FFF] text-sm mb-3",children:[(0,t.jsx)(C.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"font-medium",children:"Primeira rea\xe7\xe3o do comprador"})]}),(0,t.jsxs)("p",{className:"text-white italic",children:['"',d.openingLine,'"']})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 pt-4",children:[(0,t.jsxs)("button",{onClick:e5,className:"flex-1 px-6 py-3.5 rounded-xl border border-gray-700 text-gray-400 hover:border-[#6B6FE0] hover:text-white transition-all flex items-center justify-center gap-2",children:[(0,t.jsx)(f.A,{className:"w-5 h-5"}),"Gerar Outro Cen\xe1rio"]}),(0,t.jsxs)("button",{onClick:e4,className:"flex-1 px-6 py-3.5 rounded-xl bg-gradient-to-r from-[#6B6FE0] to-[#5558C8] text-white font-semibold hover:shadow-lg hover:shadow-[#6B6FE0]/30 transition-all flex items-center justify-center gap-2",children:[(0,t.jsx)(p.A,{className:"w-5 h-5"}),"Come\xe7ar Simula\xe7\xe3o"]})]})]})]}),"conversation"===a&&o&&d&&(0,t.jsxs)("main",{className:"max-w-3xl mx-auto px-2 sm:px-4 py-2 sm:py-4 flex flex-col h-[calc(100vh-64px)]",children:[(0,t.jsxs)("div",{className:"mb-2 sm:mb-4 p-3 sm:p-4 rounded-xl sm:rounded-2xl bg-[#111827] border border-gray-800",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)("img",{src:o.image,alt:o.name,className:"w-8 h-8 sm:w-10 sm:h-10 rounded-lg sm:rounded-xl object-cover border border-gray-700"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-white font-medium text-xs sm:text-sm",children:d.buyerName}),(0,t.jsx)("p",{className:"text-gray-500 text-[10px] sm:text-xs",children:d.businessName})]})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("p",{className:"text-gray-500 text-[10px] sm:text-xs mb-0.5 sm:mb-1",children:"Convic\xe7\xe3o"}),(0,t.jsxs)("p",{className:"text-xl sm:text-2xl font-bold text-white",children:[er,(0,t.jsx)("span",{className:"text-gray-500 text-xs sm:text-sm",children:"%"})]})]})]}),(0,t.jsx)("div",{className:"h-3 rounded-full bg-[#1e293b] overflow-hidden",children:(0,t.jsx)("div",{className:`h-full rounded-full bg-gradient-to-r ${er>=70?"from-green-500 to-emerald-400":er>=40?"from-amber-500 to-yellow-400":"from-red-500 to-orange-400"} transition-all duration-500 ease-out`,style:{width:`${er}%`}})}),(0,t.jsxs)("div",{className:"flex justify-between text-xs mt-1",children:[(0,t.jsx)("span",{className:"text-red-400",children:"Desistiu"}),(0,t.jsx)("span",{className:"text-green-400",children:"Fechou!"})]})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto space-y-2 sm:space-y-3 mb-2 sm:mb-4 pr-1 sm:pr-2",children:[ea.map((e,s)=>(0,t.jsx)("div",{className:`flex ${"seller"===e.role?"justify-end":"justify-start"}`,children:(0,t.jsxs)("div",{className:`max-w-[85%] sm:max-w-[80%] ${"seller"===e.role?"order-1":""}`,children:["buyer"===e.role&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 mb-1",children:[(0,t.jsx)("span",{className:"text-[10px] sm:text-xs text-gray-500",children:d.buyerName}),e.mood&&(0,t.jsx)("span",{className:"text-xs sm:text-sm",children:(e=>{switch(e){case"interested":return"\uD83D\uDE0A";case"warming":return"\uD83E\uDD14";case"skeptical":default:return"\uD83D\uDE10";case"annoyed":return"\uD83D\uDE12"}})(e.mood)}),void 0!==e.convictionChange&&0!==e.convictionChange&&(0,t.jsxs)("span",{className:`flex items-center gap-0.5 text-[10px] sm:text-xs font-medium ${e.convictionChange>0?"text-green-400":"text-red-400"}`,children:[e.convictionChange>0?(0,t.jsx)(A.A,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3"}):(0,t.jsx)(E.A,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3"}),e.convictionChange>0?"+":"",e.convictionChange]})]}),(0,t.jsx)("div",{className:`px-3 sm:px-4 py-2 sm:py-3 rounded-xl sm:rounded-2xl ${"seller"===e.role?"bg-[#6B6FE0] text-white rounded-br-sm sm:rounded-br-md":"bg-[#1e293b] text-gray-200 rounded-bl-sm sm:rounded-bl-md"}`,children:(0,t.jsx)("p",{className:"text-xs sm:text-sm leading-relaxed",children:e.content})}),"seller"===e.role&&(0,t.jsx)("p",{className:"text-[10px] sm:text-xs text-gray-600 text-right mt-0.5 sm:mt-1",children:"Voc\xea"})]})},s)),ei&&(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)("div",{className:"bg-[#1e293b] px-4 py-3 rounded-2xl rounded-bl-md",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-gray-500 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),(0,t.jsx)("div",{className:"w-2 h-2 bg-gray-500 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),(0,t.jsx)("div",{className:"w-2 h-2 bg-gray-500 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})})}),(0,t.jsx)("div",{ref:ef})]}
1),(0,t.jsxs)("div",{className:"p-2 sm:p-4 rounded-xl sm:rounded-2xl bg-[#111827] border border-gray-800",children:[(0,t.jsxs)("div",{className:"flex gap-1.5 sm:gap-3",children:[(0,t.jsxs)("button",{onClick:()=>eF(!0),disabled:ei||eI||eZ,className:"px-2 sm:px-4 rounded-lg sm:rounded-xl bg-emerald-500/20 border border-emerald-500/50 text-emerald-400 hover:bg-emerald-500/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 shrink-0",title:"Apresentar Proposta",children:[(0,t.jsx)(F.A,{className:"w-4 h-4 sm:w-5 sm:h-5"}),(0,t.jsx)("span",{className:"hidden sm:inline text-sm font-medium",children:"Proposta"})]}),(0,t.jsxs)("button",{onClick:()=>eq(!0),disabled:ei||eI||eZ,className:"px-2 sm:px-4 rounded-lg sm:rounded-xl bg-amber-500/20 border border-amber-500/50 text-amber-400 hover:bg-amber-500/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 shrink-0",title:"Mostrar Contrato",children:[(0,t.jsx)(S.A,{className:"w-4 h-4 sm:w-5 sm:h-5"}),(0,t.jsx)("span",{className:"hidden sm:inline text-sm font-medium",children:"Contrato"})]}),(0,t.jsx)("textarea",{value:ej?ew||"...":en,onChange:e=>!ej&&eo(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),e2())},placeholder:ej?"\uD83C\uDFA4 Gravando... aperte novamente para parar":"Digite ou fale...",rows:1,disabled:ei||eI,readOnly:ej,className:`flex-1 min-w-0 px-3 sm:px-4 py-2 sm:py-3 rounded-lg sm:rounded-xl bg-[#1e293b] border text-white placeholder-gray-500 resize-none focus:outline-none transition-colors disabled:opacity-50 text-sm sm:text-base ${ej?"border-red-500 bg-red-500/10":"border-gray-700 focus:border-[#6B6FE0]"}`}),eN&&(0,t.jsx)("button",{onClick:()=>{if(eA.current)if(ej){eA.current.stop(),ey(!1);let e=ew.trim();e&&"..."!==e&&eo(s=>s?s+" "+e:e),eC(""),eX.current=""}else{eC("..."),eX.current="";try{eA.current.start(),ey(!0)}catch{}}}
1,disabled:ei||eI,className:`px-2 sm:px-4 rounded-lg sm:rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center shrink-0 ${ej?"bg-red-500 text-white animate-pulse":"bg-[#1e293b] border border-gray-700 text-gray-400 hover:text-white hover:border-[#6B6FE0]"}`,title:ej?"Parar grava\xe7\xe3o":"Falar mensagem",children:ej?(0,t.jsx)(k.A,{className:"w-4 h-4 sm:w-5 sm:h-5"}):(0,t.jsx)(B.A,{className:"w-4 h-4 sm:w-5 sm:h-5"})}),(0,t.jsx)("button",{onClick:e2,disabled:!en.trim()||ei||eI,className:"px-3 sm:px-5 rounded-lg sm:rounded-xl bg-gradient-to-r from-[#6B6FE0] to-[#5558C8] text-white font-medium hover:shadow-lg hover:shadow-[#6B6FE0]/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center shrink-0",children:(0,t.jsx)(M.A,{className:"w-4 h-4 sm:w-5 sm:h-5"})})]}),(0,t.jsx)("p",{className:"text-[10px] sm:text-xs text-gray-600 mt-1.5 sm:mt-2 text-center hidden sm:block",children:eN?"Enter para enviar ⢠\uD83C\uDFA4 Aperte para gravar, aperte novamente para parar":"Pressione Enter para enviar"})]}),eE&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50",onClick:()=>eF(!1)}),(0,t.jsxs)("div",{className:"fixed inset-y-0 right-0 w-full sm:w-[420px] bg-[#0d1424] border-l border-gray-800 z-50 flex flex-col overflow-hidden animate-in slide-in-from-right duration-300",children:[(0,t.jsxs)("div",{className:"p-3 sm:p-4 border-b border-gray-800 flex items-center justify-between bg-[#111827]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-lg sm:rounded-xl bg-emerald-500/20 flex items-center justify-center",children:(0,t.jsx)(F.A,{className:"w-4 h-4 sm:w-5 sm:h-5 text-emerald-400"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-white font-semibold text-sm sm:text-base",children:"Apresentar Proposta"}),(0,t.jsx)("p",{className:"text-gray-500 text-[10px] sm:text-xs",children:"Monte a proposta comercial"})]})]}),(0,t.jsx)("button",{onClick:()=>eF(!1),className:"p-1.5 sm:p-2 rounded-lg text-gray-400 hover:text-white hover:bg-white/5 transition-all",children:(0,t.jsx)(P.A,{className:"w-5 h-5"})})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 sm:p-4 space-y-3 sm:space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-1.5 sm:mb-2",children:"Nome do Cliente"}),(0,t.jsx)("input",{type:"text",value:eS,onChange:e=>ek(e.target.value),className:"w-full px-3 sm:px-4 py-2.5 sm:py-3 rounded-lg sm:rounded-xl bg-[#1e293b] border border-gray-700 text-white text-sm sm:text-base placeholder-gray-500 focus:border-emerald-500 focus:outline-none transition-colors"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-1.5 sm:mb-2",children:"Plano"}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-1.5 sm:gap-2",children:["Start","Confort","Premium"].map(e=>(0,t.jsx)("button",{onClick:()=>eM(e),className:`px-2 sm:px-4 py-2.5 sm:py-3 rounded-lg sm:rounded-xl border text-xs sm:text-sm font-medium transition-all ${eB===e?"bg-emerald-500/20 border-emerald-500 text-emerald-400":"bg-[#1e293b] border-gray-700 text-gray-400 hover:border-gray-600"}`,children:e},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-1.5 sm:mb-2",children:"Fidelidade"}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-1.5 sm:gap-2",children:["Sem fidelidade","12 meses","24 meses"].map(e=>(0,t.jsx)("button",{onClick:()=>eD(e),className:`px-2 sm:px-3 py-2.5 sm:py-3 rounded-lg sm:rounded-xl border text-xs sm:text-sm font-medium transition-all ${eP===e?"bg-emerald-500/20 border-emerald-500 text-emerald-400":"bg-[#1e293b] border-gray-700 text-gray-400 hover:border-gray-600"}`,children:"Sem fidelidade"===e?"Sem":e},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-1.5 sm:mb-2",children:"Desconto Aplicado (%)"}),(0,t.jsx)("div",{className:"grid grid-cols-4 gap-1.5 sm:gap-2",children:[10,15,17,20].map(e=>(0,t.jsxs)("button",{onClick:()=>e$(e),className:`px-2 sm:px-4 py-2.5 sm:py-3 rounded-lg sm:rounded-xl border text-xs sm:text-sm font-bold transition-all ${eO===e?"bg-emerald-500/20 border-emerald-500 text-emerald-400":"bg-[#1e293b] border-gray-700 text-gray-400 hover:border-gray-600"}`,children:[e,"%"]},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-1.5 sm:mb-2",children:"Valor da Conta de Luz (R$)"}),(0,t.jsx)("input",{type:"text",value:eR,onChange:e=>eT(e.target.value),placeholder:"Ex: 1500,00",className:"w-full px-3 sm:px-4 py-2.5 sm:py-3 rounded-lg sm:rounded-xl bg-[#1e293b] border border-gray-700 text-white placeholder-gray-500 focus:border-emerald-500 focus:outline-none transition-colors text-base sm:text-lg font-semibold"}),(0,t.jsx)("p",{className:"text-[10px] sm:text-xs text-gray-600 mt-1",children:"Informe o valor mensal da conta de energia do cliente"})]}),parseFloat(eR.replace(/[^\d,.-]/g,"").replace(",","."))>
10&&(0,t.jsxs)("div",{className:"p-3 sm:p-4 rounded-lg sm:rounded-xl bg-gradient-to-br from-emerald-500/10 to-green-500/10 border border-emerald-500/30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3 sm:mb-4",children:[(0,t.jsx)(D.A,{className:"w-4 h-4 sm:w-5 sm:h-5 text-emerald-400"}),(0,t.jsx)("span",{className:"text-emerald-400 font-semibold text-xs sm:text-sm",children:"C\xe1lculo Autom\xe1tico"})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:space-y-3",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{className:"text-gray-400 text-xs sm:text-sm",children:"Economia Mensal"}),(0,t.jsx)("span",{className:"text-white font-bold text-base sm:text-lg",children:e3(e6().economiaMensal)})]}),(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{className:"text-gray-400 text-xs sm:text-sm",children:"Economia Anual"}),(0,t.jsx)("span",{className:"text-emerald-400 font-bold text-lg sm:text-xl",children:e3(e6().economiaAnual)})]}),(0,t.jsx)("div",{className:"pt-2 sm:pt-3 border-t border-emerald-500/20",children:(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{className:"text-gray-400 text-xs sm:text-sm",children:"Nova Conta Estimada"}),(0,t.jsx)("span",{className:"text-white font-bold text-base sm:text-lg",children:e3(e6().novaContaEstimada)})]})})]}),(0,t.jsxs)("p",{className:"text-[10px] sm:text-xs text-gray-500 mt-2 sm:mt-3",children:["F\xf3rmula: Economia = ",eO,"% \xd7 80% \xd7 conta"]})]})]}),(0,t.jsx)("div",{className:"p-3 sm:p-4 border-t border-gray-800 bg-[#111827]",children:(0,t.jsx)("button",{onClick:e8,disabled:eI||0>=parseFloat(eR.replace(/[^\d,.-]/g,"").replace(",",".")),className:"w-full px-4 sm:px-6 py-3 sm:py-4 rounded-lg sm:rounded-xl bg-gradient-to-r from-emerald-500 to-green-500 text-white font-semibold hover:shadow-lg hover:shadow-emerald-500/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 text-sm sm:text-base",children:eI?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.A,{className:"w-5 h-5 animate-spin"}),"Enviando..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.A,{className:"w-5 h-5"}),"Enviar Proposta para o Cliente"]})})})]})]}),e_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50",onClick:()=>eq(!1)}),(0,t.jsxs)("div",{className:"fixed inset-y-0 right-0 w-full sm:w-[420px] bg-[#0d1424] border-l border-gray-800 z-50 flex flex-col overflow-hidden animate-in slide-in-from-right duration-300",children:[(0,t.jsxs)("div",{className:"p-3 sm:p-4 border-b border-gray-800 flex items-center justify-between bg-[#111827]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-lg sm:rounded-xl bg-amber-500/20 flex items-center justify-center",children:(0,t.jsx)(S.A,{className:"w-4 h-4 sm:w-5 sm:h-5 text-amber-400"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-white font-semibold text-sm sm:text-base",children:"Mostrar Contrato"}),(0,t.jsx)("p",{className:"text-gray-500 text-[10px] sm:text-xs",children:"Apresente os termos do contrato"})]})]}),(0,t.jsx)("button",{onClick:()=>eq(!1),className:"p-1.5 sm:p-2 rounded-lg text-gray-400 hover:text-white hover:bg-white/5 transition-all",children:(0,t.jsx)(P.A,{className:"w-5 h-5"})})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 sm:p-4 space-y-4",children:[(0,t.jsxs)("div",{className:"p-4 rounded-xl bg-gradient-to-br from-amber-500/10 to-orange-500/10 border border-amber-500/30",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,t.jsx)(O.A,{className:"w-5 h-5 text-amber-400 shrink-0 mt-0.5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-amber-400 font-semibold text-sm mb-2",children:"O que \xe9 Gera\xe7\xe3o Distribu\xedda (GD)?"}),(0,t.jsxs)("p",{className:"text-gray-300 text-xs leading-relaxed",children:["A Gera\xe7\xe3o Distribu\xedda permite que consumidores produzam energia atrav\xe9s de fontes renov\xe1veis (como usinas solares remotas) e compensem na conta de luz. Com a Soul, voc\xea pode compensar",(0,t.jsx)("span",{className:"text-amber-400 font-semibold",children:" at\xe9 80% da sua conta de energia"}),", sem obras ou investimento inicial."]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-400 mt-3 pt-3 border-t border-amber-500/20",children:[(0,t.jsx)(h.A,{className:"w-4 h-4 text-amber-400"}),(0,t.jsx)("span",{children:"Regulamentado pela ANEEL (Resolu\xe7\xe3o Normativa 1.000/2021)"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-2",children:"Desconto Oferecido (%)"}),(0,t.jsx)("div",{className:"grid grid-cols-4 gap-2",children:[10,15,17,20].map(e=>(0,t.jsxs)("button",{onClick:()=>eH(e),className:`px-3 py-3 rounded-xl border text-sm font-bold transition-all ${eG===e?"bg-amber-500/20 border-amber-500 text-amber-400":"bg-[#1e293b] border-gray-700 text-gray-400 hover:border-gray-600"}`,children:[e,"%"]},e))}),(0,t.jsx)("p",{className:"text-[10px] text-gray-600 mt-1.5",children:"Percentual de economia sobre a parte compens\xe1vel da conta"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-2",children:"Fidelidade"}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2",children:[{value:"nao",label:"Sem",desc:"Cancele quando quiser"},{value:"12",label:"12 meses",desc:"Bom desconto"},{value:"24",label:"24 meses",desc:"Maior desconto"}].map(e=>(0,t.jsxs)("button",{onClick:()=>eK(e.value),className:`p-3 rounded-xl border text-left transition-all ${eJ===e.value?"bg-amber-500/20 border-amber-500":"bg-[#1e293b] border-gray-700 hover:border-gray-600"}`,children:[(0,t.jsx)("span",{className:`block text-sm font-medium ${eJ===e.value?"text-amber-400":"text-gray-300"}`,children:e.label}),(0,t.jsx)("span",{className:"text-[10px] text-gray-500",children:e.desc})]},e.value))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-xs sm:text-sm mb-2",children:"Multa de Rescis\xe3o"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2",children:[{value:"nao",label:"Sem multa",de
1sc:"Mais flexibilidade"},{value:"sim",label:"Com multa",desc:"Proporcional ao prazo"}].map(e=>(0,t.jsxs)("button",{onClick:()=>eQ(e.value),className:`p-3 rounded-xl border text-left transition-all ${eU===e.value?"bg-amber-500/20 border-amber-500":"bg-[#1e293b] border-gray-700 hover:border-gray-600"}`,children:[(0,t.jsx)("span",{className:`block text-sm font-medium ${eU===e.value?"text-amber-400":"text-gray-300"}`,children:e.label}),(0,t.jsx)("span",{className:"text-[10px] text-gray-500",children:e.desc})]},e.value))})]}),(0,t.jsxs)("div",{className:"p-4 rounded-xl bg-[#1e293b] border border-gray-700",children:[(0,t.jsx)("h4",{className:"text-white font-semibold text-sm mb-3",children:"Resumo do Contrato"}),(0,t.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,t.jsxs)("li",{className:"flex items-center gap-2 text-gray-300",children:[(0,t.jsx)($.A,{className:"w-4 h-4 text-emerald-400"}),(0,t.jsx)("span",{children:"Compensa\xe7\xe3o de at\xe9 80% da conta"})]}),(0,t.jsxs)("li",{className:"flex items-center gap-2 text-gray-300",children:[(0,t.jsx)($.A,{className:"w-4 h-4 text-emerald-400"}),(0,t.jsxs)("span",{children:["Desconto de ",eG,"%"]})]}),(0,t.jsx)("li",{className:"flex items-center gap-2 text-gray-300",children:"nao"!==eJ?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.A,{className:"w-4 h-4 text-amber-400"}),(0,t.jsxs)("span",{children:["Fidelidade de ",eJ," meses"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.A,{className:"w-4 h-4 text-emerald-400"}),(0,t.jsx)("span",{children:"Sem fidelidade"})]})}),(0,t.jsx)("li",{className:"flex items-center gap-2 text-gray-300",children:"sim"===eU?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.A,{className:"w-4 h-4 text-amber-400"}),(0,t.jsx)("span",{children:"Com multa proporcional"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.A,{className:"w-4 h-4 text-emerald-400"}),(0,t.jsx)("span",{children:"Sem multa de rescis\xe3o"})]})})]})]})]}),(0,t.jsx)("div",{className:"p-3 sm:p-4 border-t border-gray-800 bg-[#111827]",children:(0,t.jsx)("button",{onClick:e9,disabled:eZ,className:"w-full px-4 sm:px-6 py-3 sm:py-4 rounded-lg sm:rounded-xl bg-gradient-to-r from-amber-500 to-orange-500 text-white font-semibold hover:shadow-lg hover:shadow-amber-500/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 text-sm sm:text-base",children:eZ?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.A,{className:"w-5 h-5 animate-spin"}),"Enviando..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.A,{className:"w-5 h-5"}),"Enviar Contrato para o Cliente"]})})})]})]})]}),"outcome"===a&&o&&d&&(0,t.jsxs)("main",{className:"max-w-2xl mx-auto px-4 py-12 text-center",children:[(0,t.jsx)("div",{className:`w-24 h-24 mx-auto rounded-3xl flex items-center justify-center mb-6 ${"won"===ec?"bg-gradient-to-br from-green-500/20 to-emerald-500/20 border-2 border-green-500/50":"bg-gradient-to-br from-red-500/20 to-orange-500/20 border-2 border-red-500/50"}`,children:"won"===ec?(0,t.jsx)(A.A,{className:"w-12 h-12 text-green-400"}):(0,t.jsx)(E.A,{className:"w-12 h-12 text-red-400"})}),(0,t.jsx)("h2",{className:`text-3xl font-bold mb-3 ${"won"===ec?"text-green-400":"text-red-400"}`,children:"won"===ec?"Venda Fechada! \uD83C\uDF89":"Cliente Perdido \uD83D\uDE14"}),(0,t.jsx)("p",{className:"text-gray-400 mb-4 max-w-md mx-auto",children:"won"===ec?`Parab\xe9ns! Voc\xea convenceu ${d.buyerName} a assinar Soul Energy.`:`${d.buyerName} decidiu n\xe3o continuar a conversa.`}),(0,t.jsx)("div",{className:`p-4 rounded-xl mb-8 max-w-md mx-auto ${"won"===ec?"bg-green-500/10 border border-green-500/30":"bg-amber-500/10 border border-amber-500/30"}`,children:(0,t.jsx)("p",{className:`text-sm font-medium ${"won"===ec?"text-green-300":"text-amber-300"}`,children:"won"===ec?["\uD83D\uDCAA Excelente trabalho! Voc\xea demonstrou dom\xednio das t\xe9cnicas de venda consultiva.","\uD83C\uDF1F Vendedor nato! Sua capacidade de construir rapport fez toda a diferen\xe7a.","\uD83D\uDE80 Impressionante! Voc\xea soube conduzir a conversa e fechar no momento certo.","\uD83C\uDFC6 Performance de campe\xe3o! Continue assim e o sucesso \xe9 garantido.","⨠Brilhante! Voc\xea transformou obje\xe7\xf5es em oportunidades."][Math.floor(5*Math.random())]:["\uD83D\uDCA1 Cada '
1n\xe3o' \xe9 um aprendizado. Reveja a conversa e identifique novas abordagens!","\uD83D\uDD04 Os melhores vendedores aprendem com cada intera\xe7\xe3o. Tente novamente!","\uD83D\uDCC8 Persist\xeancia \xe9 a chave! Ajuste sua estrat\xe9gia e volte mais forte.","\uD83C\uDFAF Nem sempre acertamos de primeira. O importante \xe9 evoluir a cada tentativa!","\uD83C\uDF31 Todo vendedor top j\xe1 perdeu muitas vendas. \xc9 assim que se cresce!"][Math.floor(5*Math.random())]})}),(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-[#111827] border border-gray-800 mb-8",children:[(0,t.jsx)("h3",{className:"text-white font-semibold mb-4",children:"Resumo da Conversa"}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-4 text-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold text-[#6B6FE0]",children:ea.filter(e=>"seller"===e.role).length}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Suas mensagens"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-2xl font-bold text-white",children:[er,"%"]}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Convic\xe7\xe3o final"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold text-amber-400",children:Math.round(ea.length/2)}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Turnos"})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[(0,t.jsx)("button",{onClick:()=>{c(null),n("briefing")},className:"px-6 py-3 rounded-xl border border-gray-700 text-gray-400 hover:text-white hover:border-[#6B6FE0] transition-all",children:"Tentar Novamente"}),(0,t.jsx)("button",{onClick:e1,disabled:ep,className:"px-6 py-3 rounded-xl bg-gradient-to-r from-amber-500 to-orange-500 text-white font-medium hover:shadow-lg hover:shadow-amber-500/30 transition-all disabled:opacity-50 flex items-center justify-center gap-2",children:ep?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.A,{className:"w-5 h-5 animate-spin"}),"Analisando..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R.A,{className:"w-5 h-5"}),"Ver Debrief"]})}),s?(0,t.jsxs)("div",{className:"px-6 py-3 rounded-xl bg-green-500/10 border border-green-500/30 text-green-400 text-sm flex items-center gap-2",children:[(0,t.jsx)($.A,{className:"w-5 h-5"}),"Simula\xe7\xe3o registrada!"]}):(0,t.jsx)("button",{onClick:()=>{i(null),c(null),n("selection")},className:"px-6 py-3 rounded-xl bg-gradient-to-r from-[#6B6FE0] to-[#5558C8] text-white font-medium hover:shadow-lg hover:shadow-[#6B6FE0]/30 transition-all",children:"Escolher Outro Comprador"})]})]}),"debrief"===a&&eu&&o&&d&&(0,t.jsxs)("main",{className:"max-w-4xl mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-gradient-to-br from-amber-500/20 to-orange-500/20 border border-amber-500/50 flex items-center justify-center mb-4",children:(0,t.jsx)(R.A,{className:"w-8 h-8 text-amber-400"})}),(0,t.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:"Debrief da Conversa"}),(0,t.jsxs)("p",{className:"text-gray-400",children:["An\xe1lise detalhada do seu desempenho com ",d.buyerName]})]}),(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-gradient-to-br from-[#111827] to-[#0d1117] border border-gray-800 mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2",children:[(0,t.jsx)(T.A,{className:"w-5 h-5 text-amber-400"}),"Pontua\xe7\xe3o Geral"]}),(0,t.jsx)("span",{className:`text-4xl font-bold ${eu.overallScore>=80?"text-green-400":eu.overallScore>=60?"text-amber-400":"text-red-400"}`,children:eu.overallScore})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex justify-between text-sm mb-1",children:[(0,t.jsx)("span",{className:"text-gray-400",children:"Intelig\xeancia Emocional"}),(0,t.jsxs)("span",{className:"text-white",children:[eu.emotionalIntelligence,"%"]})]}),(0,t.jsx)("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-gradient-to-r from-purple-500 to-pink-500 rounded-full transition-all duration-500",style:{width:`${eu.emotionalIntelligence}%`}})})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex justify-between text-sm mb-1",children:[(0,t.jsx)("span",{className:"text-gray-400",children:"Conhecimento do Produto"}),(0,t.jsxs)("span",{className:"text-white",children:[eu.productKnowledge,"%"]})]}),(0,t.jsx)("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-gradient-to-r from-blue-500 to-cyan-500 rounded-full transition-all duration-500",style:{width:`${eu.productKnowledge}%`}})})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex justify-between text-sm mb-1",children:[(0,t.jsx)("span",{className:"text-gray-400",children:"Tratamento de Obje\xe7\xf5es"}),(0,t.jsxs)("span",{className:"text-white",children:[eu.objectionHandling,"%"]})]}),(0,t.jsx)("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-gradient-to-r from-amber-500 to-orange-500 rounded-full transition-all duration-500",style:{width:`${eu.objectionHandling}%`}})})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-[#111827] border border-green-500/30",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2 mb-4",children:[(0,t.jsx)($.A,{className:"w-5 h-5 text-green-400"}),"Pontos Fortes"]}),(0,t.jsx)("ul",{className:"space-y-3",children:eu.strengths.map((e,s)=>(0,t.jsxs)("li",{className:"flex items-start gap-3 text-gray-300",children:[(0,t.jsx)("span",{className:"w-6 h-6 rounded-full bg-green-500/20 text-green-400 flex items-center justify-center text-xs font-bold flex-shrink-0 mt-0.5",children:s+1}),e]},s))})]}),(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-[#111827] border border-amber-500/30",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2 mb-4",children:[(0,t.jsx)(I.A,{className:"w-5 h-5 text-amber-400"}),"Pontos a Melhorar"]}),(0,t.jsx)("ul",{className:"space-y-3",children:eu.improvements.map((e,s)=>(0,t.jsxs)("li",{className:"flex items-start gap-3 text-gray-300",children:[(0,t.jsx)("span",{className:"w-6 h-6 rounded-full bg-amber-500/20 text-amber-400 flex items-center justify-center text-xs font-bold flex-shrink-0 mt-0.5",children:s+1}),e]},s))})]})]}),(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-[#111827] border border-[#6
1B6FE0]/30 mb-6",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2 mb-3",children:[(0,t.jsx)(V.A,{className:"w-5 h-5 text-[#6B6FE0]"}),"Momento-Chave"]}),(0,t.jsx)("p",{className:"text-gray-300 leading-relaxed",children:eu.keyMoment})]}),eu.proposalAnalysis&&(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-[#111827] border border-green-500/30 mb-6",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2 mb-4",children:[(0,t.jsx)(F.A,{className:"w-5 h-5 text-green-400"}),"An\xe1lise da Proposta"]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-400",children:"Timing da Apresenta\xe7\xe3o"}),(0,t.jsx)("p",{className:"text-gray-300 mt-1",children:eu.proposalAnalysis.timing})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-400",children:"Precis\xe3o dos C\xe1lculos"}),(0,t.jsx)("p",{className:"text-gray-300 mt-1",children:eu.proposalAnalysis.accuracy})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-400",children:"Impacto na Negocia\xe7\xe3o"}),(0,t.jsx)("p",{className:"text-gray-300 mt-1",children:eu.proposalAnalysis.impact})]}),(0,t.jsxs)("div",{className:"pt-3 border-t border-gray-700",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-green-400",children:"Sugest\xe3o"}),(0,t.jsx)("p",{className:"text-green-300 mt-1",children:eu.proposalAnalysis.suggestion})]})]})]}),(0,t.jsxs)("div",{className:"p-6 rounded-2xl bg-gradient-to-r from-[#6B6FE0]/10 to-[#5558C8]/10 border border-[#6B6FE0]/30 mb-8",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2 mb-3",children:[(0,t.jsx)(O.A,{className:"w-5 h-5 text-[#6B6FE0]"}),"Dica para Pr\xf3ximas Vendas"]}),(0,t.jsx)("p",{className:"text-[#6B6FE0] leading-relaxed",children:eu.tip})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[(0,t.jsxs)("button",{onClick:()=>{eb(null),c(null),n("briefing")},className:"px-6 py-3 rounded-xl border border-gray-700 text-gray-400 hover:text-white hover:border-[#6B6FE0] transition-all flex items-center justify-center gap-2",children:[(0,t.jsx)(z.A,{className:"w-5 h-5"}),"Tentar Novamente"]}),s?(0,t.jsxs)("div",{className:"px-6 py-3 rounded-xl bg-green-500/10 border border-green-500/30 text-green-400 text-sm flex items-center gap-2",children:[(0,t.jsx)($.A,{className:"w-5 h-5"}),"Simula\xe7\xe3o registrada!"]}):(0,t.jsx)("button",{onClick:()=>{eb(null),i(null),c(null),n("selection")},className:"px-6 py-3 rounded-xl bg-gradient-to-r from-[#6B6FE0] to-[#5558C8] text-white font-medium hover:shadow-lg hover:shadow-[#6B6FE0]/30 transition-all",children:"Escolher Outro Comprador"})]})]})]})}var q=a(24211),G=a(23009);function H(){return(0,t.jsx)(q.N,{children:(0,t.jsx)(G.O,{children:(0,t.jsx)(_,{})})})}},57030:(e,s,a)=>{a.d(s,{N_:()=>i,Zp:()=>d,g:()=>c,ok:()=>m});var t=a(95155),r=a(98500),l=a.n(r),n=a(73321),o=a(12115);function i({to:e,href:s,children:a,state:r,...n}){return(0,t.jsx)(l(),{href:s??e??"#",...n,children:a})}function d(){let e=(0,n.useRouter)();return(0,o.useCallback)((s,a)=>{"number"==typeof s?window.history.go(s):a?.replace?e.replace(s):e.push(s)},[e])}function c(){return(0,n.useParams)()??{}}function m(){let e=(0,n.useSearchParams)(),s=(0,n.useRouter)(),a=(0,n.usePathname)();return[new URLSearchParams(e?.toString()??""),(e,t)=>{let r=(e instanceof URLSearchParams?e:new URLSearchParams(e)).toString(),l=r?`${a}?${r}`:a??"/";t?.replace?s.replace(l):s.push(l)}]}},86831:(e,s,a)=>{a.d(s,{wV:()=>o,yK:()=>t});let t=(0,a(56112).M)(),{signIn:r,signUp:l,signOut:n,useSession:o}=t}}]);
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.