PageSourceSearch

https://sabhia.ai/assets/index-CV1PBKwI.js

js sabhia.ai collected 2026-10-05 12:33:00 UTC 27,149 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-motion-CPxq9Xvn.js";import{r as k}from"./vendor-i18n-CO3kK2bH.js";import{a3 as X,ai as Y,u as P,a6 as N,a7 as p,aH as C,$ as Z,k as ee,a4 as se,aJ as ae,B as f,S as K,C as B,f as te,N as ie,as as D,an as v}from"./index-CFAvyuXu.js";import{K as ne}from"./knowledge-base-CMYZ0tCn.js";import{C as O}from"./card-CkkuFnhL.js";import{T as ce,a as le,b as re,c as oe}from"./tabs-DIYA7-w6.js";import{A as de}from"./arrow-left-DY50GvQQ.js";import{T as me}from"./trash-2-BF2rPJAw.js";import{U as xe}from"./upload-BKNIN1AN.js";import{F as pe}from"./funnel-hT24ByFs.js";import{C as q}from"./circle-alert-CixghSwT.js";import{M as he}from"./megaphone-CJoAWoYP.js";import{M as ue}from"./mail-B6oT_qrq.js";import{I as je}from"./instagram-BJB2Fjof.js";import{R as ge}from"./rotate-ccw-yv6DhBa4.js";import"./vendor-react-CQmBMThG.js";import"./badge-B9GAfHbC.js";import"./scroll-area-nONWKjQR.js";import"./index-BdQq_4o_.js";import"./progress-C8e5qZ5Y.js";import"./audio-waveform-player-CIVAPqgh.js";import"./square-BbghycB9.js";import"./file-text-DjkUcFVd.js";import"./globe-D0MKCb1Y.js";import"./brain-circuit-BiacJsPX.js";import"./save-QXxXVhhp.js";import"./arrow-up-VV5eJn02.js";import"./arrow-down-CKXfmsWg.js";const $=["foundation","instagram","messaging","ads"],F={foundation:"Curso, Oferta & Página de Vendas",instagram:"Conteúdo de Instagram",messaging:"Mensagens de aquecimento e vendas",ads:"Criativos / Anúncios"},V="Nova base de conhecimento",_=3,be=1,Ne=["Nome do curso","Promessa e grande dominó","Argumentos de vendas + definição da comunicação","Módulos, aulas e tópicos das aulas","Oferta completa (empilhamento de valor)","Texto da sua página de vendas","Passo a passo de validação orgânica","10 posts + 10 carrosséis + 10 Reels (Instagram)","10 e-mails (sequência de 10 dias)","10 mensagens de WhatsApp","10 anúncios estáticos + 10 em vídeo (≤40s)"];function U(n){const c=n.output?.foundation?.courseName?.trim();return c||(n.title&&n.title!==V?n.title:V)}const H={foundation:te,instagram:je,messaging:ue,ads:he};function J(n,c){return n?.sections?.[c]||"pending"}function Xe(){const{toast:n}=X(),c=Y(),[s,a]=k.useState(null),[t,l]=k.useState(!1),[x,g]=k.useState({audience:"",notes:""}),y=P({queryKey:["/api/course/access"]}),w=P({queryKey:["/api/course/projects"],enabled:!!y.data?.hasAccess}),L=P({queryKey:[`/api/course/projects/${s}`],enabled:!!s,refetchInterval:i=>i.state.data?.status==="generating"?4e3:!1}),R=L.data?.bookId,A=(P({queryKey:[`/api/books/${R}/sources`],enabled:!!R}).data?.length||0)>0,h=N({mutationFn:async()=>(await v("POST","/api/course/projects",{})).json(),onSuccess:i=>{c.invalidateQueries({queryKey:["/api/course/projects"]}),a(i.id)},onError:i=>n({title:"Erro ao criar",description:i?.message,variant:"destructive"})}),E=N({mutationFn:async({id:i,patch:d})=>(await v("PATCH",`/api/course/projects/${i}`,d)).json(),onSuccess:()=>{c.invalidateQueries({queryKey:[`/api/course/projects/${s}`]}),n({title:"Ajustes salvos"})},onError:i=>n({title:"Erro",description:i?.message,variant:"destructive"})}),M=N({mutationFn:async i=>(await v("POST",`/api/course/projects/${i}/generate`,{})).json(),onSuccess:()=>{c.invalidateQueries({queryKey:[`/api/course/projects/${s}`]}),n({title:"Geração iniciada",description:"Seu curso está sendo criado. Acompanhe o progresso abaixo."})},onError:i=>n({title:"Erro",description:i?.message,variant:"destructive"})}),G=N({mutationFn:async({id:i,section:d})=>(await v("POST",`/api/course/projects/${i}/regenerate/${d}`,{})).json(),onSuccess:()=>c.invalidateQueries({queryKey:[`/api/course/projects/${s}`]}),onError:i=>n({title:"Não foi possível regenerar",description:i?.message,variant:"destructive"})}),S=N({mutationFn:async i=>(await v("DELETE",`/api/course/projects/${i}`,{})).json(),onSuccess:()=>{c.invalidateQueries({queryKey:["/api/course/projects"]}),a(null),n({title:"Base apagada"})},onError:i=>n({title:"Não foi possível apagar",description:i?.message,variant:"destructive"})});if(y.isLoading)return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-zinc-950",children:e.jsx(p,{className:"h-8 w-8 animate-spin text-amber-400"})});if(!y.data?.hasAccess)return e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center bg-zinc-950 text-center px-6",children:[e.jsx(C,{className:"h-12 w-12 text-zinc-700 mb-4"}),e.jsx("h1",{className:"text-xl font-semibold text-zinc-200","data-testid":"text-no-access",children:"Recurso indisponível"}),e.jsx("p",{className:"text-zinc-500 mt-2 max-w-sm",children:"Este recurso está disponível apenas para alunos da mentoria."})]});const m=L.data,T=m?.jobState||null,I=m?.output||{},u=m?.status==="generating",j=Object.keys(I).length>0;if(s&&m)return e.jsx("div",{className:"min-h-screen bg-zinc-950 text-zinc-100 pb-20 md:pb-10",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 md:px-6 py-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-5",children:[e.jsxs("button",{onClick:()=>a(null),className:"flex items-center gap-2 text-zinc-400 hover:text-zinc-200 text-sm","data-testid":"button-back",children:[e.jsx(de,{className:"h-4 w-4"})," Meus cursos"]}),m.status==="draft"&&!j&&e.jsxs("button",{onClick:()=>{window.confirm("Apagar esta base de conhecimento? Esta ação não pode ser desfeita.")&&S.mutate(m.id)},disabled:S.isPending,className:"flex items-center gap-1.5 text-zinc-500 hover:text-red-400 text-sm disabled:opacity-50","data-testid":"button-delete-project",children:[S.isPending?e.jsx(p,{className:"h-4 w-4 animate-spin"}):e.jsx(me,{className:"h-4 w-4"})," Apagar base"]})]}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl md:text-3xl font-bold flex items-center gap-2","data-testid":"text-project-title",children:[e.jsx(C,{className:"h-7 w-7 text-amber-400 shrink-0"}),e.jsx("span",{className:j?"":"text-zinc-300",children:U(m)})]}),e.jsx("p",{className:"text-zinc-400 mt-1",children:j?"Seu curso e toda a campanha de vendas, gerados a partir do seu material.":"Suba todo o seu material abaixo e a IA cria o curso inteiro — começando pelo nome."})]}),e.jsxs(O,{className:"mt-6 bg-zinc-900/60 border-zinc-800 p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-amber-500 text-zinc-950 text-sm font-bold shrink-0",children:"1"}),e.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[e.jsx(xe,{className:"h-4 w-4 text-amber-400"})," Base de Conhecimento"]})]}),e.jsxs("p",{className:"text-sm text-zinc-400 mb-4 pl-8",children:["Suba ",e.jsx("span",{className:"text-zinc-200 font-medium",children:"tudo"})," que você tem sobre o assunto — textos, áudios, PDFs, transcrições. Quanto mais material, mais completo e fiel fica o curso. ",e.jsx("span",{className:"text-zinc-300",children:"Não precisa nomear nada: a IA cria o nome do curso pra você."})]}),e.jsx(ne,{bookId:m.bookId}),e.jsxs("div",{className:"mt-5 pt-4 border-t border-zinc-800",children:[e.jsxs("button",{onClick:()=>{t||g({audience:m.audience||"",notes:m.notes||""}),l(i=>!i)},className:"flex items-center gap-2 text-sm text-zinc-400 hover:text-zinc-200","data-testid":"button-toggle-adjust",children:[e.jsx(pe,{className:"h-4 w-4"})," Ajustes opcionais",t?e.jsx(Z,{className:"h-4 w-4"}):e.jsx(ee,{className:"h-4 w-4"})]}),t&&e.jsxs("div",{className:"mt-3 space-y-3",children:[e.jsx(se,{placeholder:"Público-alvo (opcional)",value:x.audience,onChange:i=>g({...x,audience:i.target.value}),className:"bg-zinc-800 border-zinc-700","data-testid":"input-audience"}),e.jsx(ae,{placeholder:"Observações para a IA (opcional) — ex: tom de voz, preço alvo, foco do curs
1o",value:x.notes,onChange:i=>g({...x,notes:i.target.value}),className:"bg-zinc-800 border-zinc-700","data-testid":"input-notes"}),e.jsx("div",{className:"flex justify-end",children:e.jsx(f,{size:"sm",variant:"outline",onClick:()=>E.mutate({id:m.id,patch:x}),disabled:E.isPending,className:"border-zinc-700 text-zinc-300","data-testid":"button-save-adjust",children:E.isPending?e.jsx(p,{className:"h-4 w-4 animate-spin"}):"Salvar ajustes"})})]})]})]}),e.jsxs(O,{className:"mt-4 bg-gradient-to-br from-amber-500/10 to-zinc-900/60 border-amber-500/30 p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-amber-500 text-zinc-950 text-sm font-bold shrink-0",children:"2"}),e.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[e.jsx(K,{className:"h-4 w-4 text-amber-400"})," Gerar curso"]})]}),!j&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-zinc-400 mb-4 pl-8",children:"Com um clique, a IA gera tudo isto a partir do seu material:"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 pl-8 mb-5",children:Ne.map(i=>e.jsxs("div",{className:"flex items-center gap-2 text-sm text-zinc-300",children:[e.jsx(B,{className:"h-4 w-4 text-amber-400 shrink-0"})," ",i]},i))})]}),e.jsxs("div",{className:"pl-8 flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsxs(f,{onClick:()=>M.mutate(m.id),disabled:u||M.isPending||!A,className:"bg-amber-500 hover:bg-amber-400 text-zinc-950 font-semibold disabled:opacity-50","data-testid":"button-generate",children:[u?e.jsx(p,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(K,{className:"h-4 w-4 mr-2"}),u?"Gerando...":j?"Gerar novamente":"Gerar curso"]}),!A&&e.jsxs("span",{className:"text-sm text-amber-300/90 flex items-center gap-1.5","data-testid":"text-need-material",children:[e.jsx(q,{className:"h-4 w-4 shrink-0"})," Adicione ao menos um material acima para liberar a geração."]}),A&&!u&&e.jsx("span",{className:"text-xs text-zinc-500",children:"Leva alguns minutos. Você pode acompanhar o progresso abaixo."})]})]}),(u||Object.keys(I).length>0)&&e.jsx("div",{className:"mt-6 grid grid-cols-2 md:grid-cols-4 gap-3",children:$.map(i=>{const d=J(T,i),b=H[i];return e.jsxs("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg p-3 flex items-center gap-3","data-testid":`status-section-${i}`,children:[e.jsx(b,{className:"h-5 w-5 text-amber-400 shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-medium truncate",children:F[i]}),e.jsxs("div",{className:"text-xs flex items-center gap-1",children:[d==="done"&&e.jsxs("span",{className:"text-emerald-400 flex items-center gap-1",children:[e.jsx(B,{className:"h-3 w-3"})," Pronto"]}),d==="running"&&e.jsxs("span",{className:"text-amber-400 flex items-center gap-1",children:[e.jsx(p,{className:"h-3 w-3 animate-spin"})," Gerando"]}),d==="error"&&e.jsxs("span",{className:"text-red-400 flex items-center gap-1",children:[e.jsx(q,{className:"h-3 w-3"})," Erro"]}),d==="pending"&&e.jsx("span",{className:"text-zinc-500",children:"Aguardando"})]})]})]},i)})}),j&&e.jsx(O,{className:"mt-6 bg-zinc-900/60 border-zinc-800 p-4 md:p-6",children:e.jsxs(ce,{defaultValue:"foundation",children:[e.jsx(le,{className:"bg-zinc-800/60 flex-wrap h-auto",children:$.map(i=>{const d=H[i];return e.jsxs(re,{value:i,"data-testid":`tab-${i}`,className:"data-[state=active]:bg-amber-500 data-[state=active]:text-zinc-950",children:[e.jsx(d,{className:"h-4 w-4 mr-1"})," ",F[i]]},i)})}),$.map(i=>{const d=J(T,i),b=T?.regenCounts?.[i]??0,W=d==="done"&&b>=be;return e.jsxs(oe,{value:i,className:"mt-4",children:[e.jsx("div",{className:"flex justify-end mb-3",children:W?e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-zinc-500 bg-zinc-800/60 border border-zinc-700 rounded-md px-2.5 py-1.5","data-testid":`text-regen-exhausted-${i}`,children:[e.jsx(ie,{className:"h-3 w-3 shrink-0"})," Limite de regeneração atingido — fale com a equipe Sábhia para ajustes."]}):e.jsxs(f,{size:"sm",variant:"outline",onClick:()=>G.mutate({id:m.id,section:i}),disabled:u||G.isPending,className:"border-zinc-700 text-zinc-300","data-testid":`button-regen-${i}`,children:[e.jsx(ge,{className:"h-3 w-3 mr-1"})," Regenerar esta seção"]})}),e.jsx(ve,{section:i,output:I})]},i)})]})})]})});const Q=(w.data?.length??0)>=_;return e.jsx("div",{className:"min-h-screen bg-zinc-950 text-zinc-100 pb-20 md:pb-10",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 md:px-6 py-8",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl md:text-3xl font-bold flex items-center gap-2",children:[e.jsx(C,{className:"h-7 w-7 text-amber-400"})," Gerador de Curso Online"]}),e.jsx("p",{className:"text-zinc-400 mt-1",children:"Suba seu material numa base de conhecimento e a IA cria o curso completo — do conteúdo à campanha de vendas."})]}),e.jsxs("div",{className:"flex flex-col items-stretch sm:items-end gap-1",children:[e.jsxs(f,{onClick:()=>h.mutate(),disabled:h.isPending||Q,className:"bg-amber-500 hover:bg-amber-400 text-zinc-950 font-semibold disabled:opacity-50","data-testid":"button-new-course",children:[h.isPending?e.jsx(p,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(D,{className:"h-4 w-4 mr-2"}),"Nova base de conhecimento"]}),Q&&e.jsxs("span",{className:"text-xs text-amber-300/90 flex items-center gap-1 sm:max-w-[280px] sm:text-right","data-testid":"text-max-projects",children:[e.jsx(q,{className:"h-3 w-3 shrink-0"})," Limite de ",_," bases atingido. Apague uma base em rascunho para criar outra."]})]})]}),e.jsxs("div",{className:"mt-6 grid gap-3",children:[w.isLoading&&e.jsx(p,{className:"h-6 w-6 animate-spin text-amber-400 mx-auto mt-8"}),w.data?.length===0&&e.jsxs("div",{className:"text-center text-zinc-500 mt-12 flex flex-col items-center",children:[e.jsx(C,{className:"h-10 w-10 mb-3 text-zinc-700"}),e.jsx("p",{className:"max-w-sm",children:"Você ainda não tem nenhuma base de conhecimento. Crie uma, suba seu material e gere o curso inteiro com um clique."}),e.jsxs(f,{onClick:()=>h.mutate(),disabled:h.isPending,className:"mt-5 bg-amber-500 hover:bg-amber-400 text-zinc-950 font-semibold","data-testid":"button-new-course-empty",children:[h.isPending?e.jsx(p,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(D,{className:"h-4 w-4 mr-2"}),"Nova base de conhecimento"]})]}),w.data?.map(i=>e.jsx("button",{onClick:()=>a(i.id),className:"text-left bg-zinc-900/60 border border-zinc-800 hover:border-amber-500/50 rounded-lg p-4 transition-colors","data-testid":`card-course-${i.id}`,children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-semibold truncate",children:U(i)}),i.topic&&e.jsx("div",{className:"text-sm text-zinc-400 mt-0.5 truncate",children:i.topic})]}),e.jsx(fe,{status:i.status})]})},i.id))]})]})})}function fe({status:n}){const c={draft:{label:"Rascunho",cls:"bg-zinc-700 text-zinc-200"},generating:{label:"Gerando",cls:"bg-amber-500/20 text-amber-300"},completed:{label:"Pronto",cls:"bg-emerald-500/20 text-emerald-300"},partial:{label:"Parcial",cls:"bg-orange-500/20 text-orange-300"},error:{label:"Erro",cls:"bg-red-500/20 text-red-300"}},s=c[n]||c.draft;return e.jsx("span",{className:`text-xs px-2 py-1 rounded-full shrink-0 ${s.cls}`,children:s.label})}function r({title:n,children:c}){return e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-amber-400 font-semibold text-sm uppercase tracking-wide mb-2",children:n}),e.jsx("div",{className:"space-y-3 text-zinc-200 text-sm leading-relaxed",children:c})]})}function o({label:n,value:c}){return c?e.jsxs("p",{children:[e.jsxs("span",{className:"text-zinc-500",children:[n,": "]}),c]}):null}function ve({section:n,output:c}){if(n==="foundation"){const s=c.foundation;return s?e.jsxs("div",{children:[e.jsxs(r,{title:"Visão geral",children:[e.jsx(o,{label:"Curso",value:s.courseName}),e.jsx(o,{label:"Promessa",value:s.promise})]}),(s.bigDomino||s.salesArguments?.length||s.communication)&&e.jsxs(r,{title:"Argumentos de vendas e definição da comunicação",children:[s.bigDomino&&e.jsxs("p",{children:[e.jsx("span",{className:"text-zinc-500",children:"Crença central (grande dominó): "}),s.bigDomino]}),s.salesArguments?.length?e.jsxs("div",{children:[e.jsx("span",{className:"text-zinc-500",children:"Argumentos de vendas:"}),e.jsx("ul",{className:"list-disc list-inside mt-1",children:s.salesArguments.map((a,t)=>e.jsx("li",{children:a},t))})]}
1):null,s.communication&&e.jsxs("p",{children:[e.jsx("span",{className:"text-zinc-500",children:"Comunicação: "}),s.communication]})]}),e.jsx(r,{title:"Títulos e organização dos assuntos a serem abordados nas aulas",children:s.modules?.map((a,t)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3",children:[e.jsx("div",{className:"font-semibold text-zinc-100",children:a.title}),a.outcome&&e.jsx("div",{className:"text-xs text-zinc-400 mb-1",children:a.outcome}),e.jsx("ul",{className:"list-disc list-inside text-zinc-300",children:a.lessons?.map((l,x)=>e.jsxs("li",{children:[l.title,l.topics?.length?e.jsxs("span",{className:"text-zinc-500",children:[" — ",l.topics.join("; ")]}):null]},x))})]},t))}),s.offer&&e.jsxs(r,{title:"Oferta",children:[e.jsx(o,{label:"Nome",value:s.offer.name}),s.offer.stack?.length?e.jsx("ul",{className:"list-disc list-inside",children:s.offer.stack.map((a,t)=>e.jsxs("li",{children:[a.item," ",e.jsxs("span",{className:"text-zinc-500",children:["(",a.value,")"]})]},t))}):null,s.offer.bonuses?.length?e.jsxs("div",{children:[e.jsx("span",{className:"text-zinc-500",children:"Bônus:"}),e.jsx("ul",{className:"list-disc list-inside",children:s.offer.bonuses.map((a,t)=>e.jsxs("li",{children:[a.item," ",e.jsxs("span",{className:"text-zinc-500",children:["(",a.value,")"]})]},t))})]}):null,e.jsx(o,{label:"Valor total",value:s.offer.totalValue}),e.jsx(o,{label:"Preço",value:s.offer.price}),e.jsx(o,{label:"Garantia",value:s.offer.guarantee}),e.jsx(o,{label:"Urgência",value:s.offer.urgency}),e.jsx(o,{label:"Escassez",value:s.offer.scarcity})]}),s.salesPage&&e.jsxs(r,{title:"Texto para sua página de vendas",children:[e.jsx("p",{className:"text-lg font-semibold text-zinc-100",children:s.salesPage.headline}),e.jsx("p",{className:"text-zinc-400",children:s.salesPage.subheadline}),s.salesPage.topo||s.salesPage.problema||s.salesPage.historia||s.salesPage.apresentacao||s.salesPage.deliverables?.length||s.salesPage.socialProof?.length||s.salesPage.objections?.length||s.salesPage.faq?.length?e.jsxs("div",{className:"space-y-3 mt-2",children:[s.salesPage.topo&&e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"Topo (abertura)"}),e.jsx("p",{className:"whitespace-pre-wrap",children:s.salesPage.topo})]}),s.salesPage.problema&&e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"O problema"}),e.jsx("p",{className:"whitespace-pre-wrap",children:s.salesPage.problema})]}),s.salesPage.historia&&e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"A virada"}),e.jsx("p",{className:"whitespace-pre-wrap",children:s.salesPage.historia})]}),s.salesPage.apresentacao&&e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"Apresentação do curso"}),e.jsx("p",{className:"whitespace-pre-wrap",children:s.salesPage.apresentacao})]}),s.salesPage.deliverables?.length?e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"O que você recebe"}),e.jsx("ul",{className:"list-disc list-inside",children:s.salesPage.deliverables.map((a,t)=>e.jsx("li",{children:a},t))})]}):null,s.salesPage.socialProof?.length?e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"Prova social"}),e.jsx("ul",{className:"list-disc list-inside",children:s.salesPage.socialProof.map((a,t)=>e.jsx("li",{children:a},t))})]}):null,s.salesPage.objections?.length?e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"Quebra de objeções"}),e.jsx("div",{className:"space-y-2 mt-1",children:s.salesPage.objections.map((a,t)=>e.jsxs("div",{children:[e.jsxs("div",{className:"text-zinc-300",children:["“",a.objection,"”"]}),e.jsx("p",{className:"whitespace-pre-wrap text-zinc-400",children:a.response})]},t))})]}):null,s.salesPage.faq?.length?e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200",children:"Perguntas frequentes"}),e.jsx("div",{className:"space-y-2 mt-1",children:s.salesPage.faq.map((a,t)=>e.jsxs("div",{children:[e.jsx("div",{className:"text-zinc-300",children:a.question}),e.jsx("p",{className:"whitespace-pre-wrap text-zinc-400",children:a.answer})]},t))})]}):null]}):s.salesPage.sections?.map((a,t)=>e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-zinc-200 mt-2",children:a.heading}),e.jsx("p",{className:"whitespace-pre-wrap",children:a.body})]},t)),s.salesPage.cta&&e.jsx("p",{className:"text-amber-400 font-semibold mt-2",children:s.salesPage.cta})]}
1),s.validationPlan?.steps?.length?e.jsxs(r,{title:"Passo a passo de validação orgânica",children:[s.validationPlan.intro&&e.jsx("p",{className:"text-zinc-400",children:s.validationPlan.intro}),e.jsx("ol",{className:"space-y-3",children:s.validationPlan.steps.map((a,t)=>e.jsxs("li",{className:"flex gap-3","data-testid":`validation-step-${t}`,children:[e.jsx("span",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-amber-500/20 text-amber-400 text-sm font-bold shrink-0",children:t+1}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-semibold text-zinc-100",children:a.title}),a.what&&e.jsx("div",{className:"text-sm text-zinc-300",children:a.what}),a.how&&e.jsx("div",{className:"text-sm text-zinc-500 mt-0.5",children:a.how})]})]},t))})]}):s.funnel?.length?e.jsx(r,{title:"Estrutura do funil",children:e.jsx("ol",{className:"space-y-3",children:s.funnel.map((a,t)=>e.jsxs("li",{className:"flex gap-3","data-testid":`funnel-stage-${t}`,children:[e.jsx("span",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-amber-500/20 text-amber-400 text-sm font-bold shrink-0",children:t+1}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-semibold text-zinc-100",children:a.stage}),a.goal&&e.jsx("div",{className:"text-sm text-zinc-400",children:a.goal}),(a.page||a.offer)&&e.jsxs("div",{className:"text-sm text-zinc-500 mt-0.5",children:[a.page&&e.jsxs("span",{children:[e.jsx("span",{className:"text-zinc-400",children:"Página:"})," ",a.page]}),a.page&&a.offer&&e.jsx("span",{children:" · "}),a.offer&&e.jsxs("span",{children:[e.jsx("span",{className:"text-zinc-400",children:"Oferta:"})," ",a.offer]})]})]})]},t))})}):null]}):e.jsx(z,{})}if(n==="instagram"){const s=c.instagram;return s?s.posts?.length||s.carousels?.length||s.reels?.length?e.jsxs("div",{children:[s.posts?.length?e.jsx(r,{title:"Posts (10)",children:s.posts.map((t,l)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3","data-testid":`ig-post-${l}`,children:[e.jsx("div",{className:"font-semibold",children:t.title}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.content}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-zinc-700/60",children:[e.jsx("span",{className:"text-zinc-500 text-xs",children:"Legenda pronta:"}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.caption}),t.hashtags&&e.jsx("p",{className:"text-amber-400/80 text-xs mt-1",children:t.hashtags})]})]},l))}):null,s.carousels?.length?e.jsx(r,{title:"Carrosséis (10)",children:s.carousels.map((t,l)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3","data-testid":`ig-carousel-${l}`,children:[e.jsx("div",{className:"font-semibold",children:t.title}),e.jsx("ol",{className:"list-decimal list-inside text-zinc-300 mt-1",children:t.slides?.map((x,g)=>e.jsx("li",{className:"whitespace-pre-wrap",children:x},g))}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-zinc-700/60",children:[e.jsx("span",{className:"text-zinc-500 text-xs",children:"Legenda pronta:"}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.caption})]})]},l))}):null,s.reels?.length?e.jsx(r,{title:"Reels (10) — roteiros ≤40s",children:s.reels.map((t,l)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3","data-testid":`ig-reel-${l}`,children:[e.jsx("div",{className:"font-semibold",children:t.title}),e.jsx(o,{label:"Gancho (0-3s)",value:t.hook}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.script}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-zinc-700/60",children:[e.jsx("span",{className:"text-zinc-500 text-xs",children:"Legenda pronta:"}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.caption})]})]},l))}):null]}):e.jsxs("div",{children:[e.jsx(r,{title:"Roteiros de vídeo (Reels)",children:s.videoScripts?.map((t,l)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3",children:[e.jsx("div",{className:"font-semibold",children:t.title}),e.jsx(o,{label:"Gancho",value:t.hook}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.body}),e.jsx(o,{label:"CTA",value:t.cta})]},l))}),e.jsx(r,{title:"Calendário de conteúdo (30 dias)",children:s.contentCalendar?.map((t,l)=>e.jsxs("p",{children:[e.jsxs("span",{className:"text-zinc-500",children:["Dia ",t.day," (",t.format,"):"]})," ",e.jsx("span",{className:"font-medium",children:t.theme})," — ",t.idea]},l))})]}):e.jsx(z,{})}if(n==="messaging"){const s=c.messaging;return s?e.jsxs("div",{children:[e.jsx(r,{title:"E-mails",children:s.emails?.map((a,t)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3",children:[e.jsxs("div",{className:"text-xs text-zinc-500",children:["Dia ",a.day," · ",a.type]}),e.jsx("div",{className:"font-semibold",children:a.subject}),e.jsx("p",{className:"whitespace-pre-wrap",children:a.body})]},t))}),e.jsx(r,{title:"Mensagens de WhatsApp",children:s.whatsapp?.map((a,t)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3",children:[e.jsxs("div",{className:"text-xs text-zinc-500",children:["Dia ",a.day," · ",a.type]}),e.jsx("p",{className:"whitespace-pre-wrap",children:a.message})]},t))})]}):e.jsx(z,{})}if(n==="ads"){const s=c.ads;return s?e.jsxs("div",{children:[e.jsx(r,{title:"Anúncios estáticos",children:s.staticAds?.map((a,t)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3",children:[e.jsx(o,{label:"Ângulo",value:a.angle}),e.jsx("div",{className:"font-semibold",children:a.headline}),e.jsx("p",{className:"whitespace-pre-wrap",children:a.primaryText}),e.jsx(o,{label:"CTA",value:a.cta})]},t))}),e.jsxs(r,{title:"Anúncios em vídeo (≤40s)",children:[e.jsx("p",{className:"text-xs text-zinc-500",children:"Roteiros curtos para Reels/anúncios: gancho 0-3s → problema → solução/prova → CTA, no máximo 40 segundos."}),s.videoAds?.map((a,t)=>e.jsxs("div",{className:"bg-zinc-800/40 rounded-lg p-3",children:[e.jsx(o,{label:"Ângulo",value:a.angle}),e.jsx(o,{label:"Gancho",value:a.hook}),e.jsx("p",{className:"whitespace-pre-wrap",children:a.script}),e.jsx(o,{label:"CTA",value:a.cta})]},t))]})]}):e.jsx(z,{})}return e.jsx(z,{})}function z(){return e.jsx("p",{className:"text-zinc-500 text-sm",children:"Esta seção ainda não foi gerada."})}export{Xe 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.