1import{j as e}from"./vendor-motion-CPxq9Xvn.js";import{r as b}from"./vendor-i18n-CO3kK2bH.js";import{n as de,a3 as te,ai as L,j as B,dJ as ce,ao as ae,S as O,ap as me,a7 as I,C as y,X as R,an as se,az as xe,a1 as ue,u as q,ar as U,f as pe,T as he,K as ie,l as fe,Z as be,F as H,p as ge,N as ve}from"./index-CFAvyuXu.js";import{S as z,P as M}from"./publication-pipeline-DFwPsRBR.js";import{M as Q}from"./mobile-pipeline-bar-wnI4Ws72.js";import{H as W}from"./isbn-checkout-modal-_kHz7p1I.js";import{a as Ne,P as je}from"./pdf-preview-DAjEMCVx.js";import{C as we}from"./circle-alert-CixghSwT.js";import{F as _}from"./file-text-DjkUcFVd.js";import{S as ye}from"./stamp-BZO_gJDT.js";import{D as G}from"./download-B7FtiUYJ.js";import{A as X}from"./arrow-left-DY50GvQQ.js";import{G as oe}from"./globe-D0MKCb1Y.js";import{C as Z}from"./circle-x-DhBMAj3Y.js";import{F as re}from"./fingerprint-D5-6a3FO.js";import{H as ke}from"./heart-handshake-CL0zKLCP.js";import"./vendor-react-CQmBMThG.js";import"./alert-dialog-C9feqA9b.js";import"./book-marked-3-KNVwiq.js";import"./select-B26x0xAv.js";import"./index-BdQq_4o_.js";import"./barcode-DlYH0ciP.js";import"./megaphone-CJoAWoYP.js";import"./pix-qr-image-D45mJvPS.js";import"./smartphone-B4uVuS8T.js";import"./maximize-2-BDHmjU2g.js";const Ce=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],Se=de("gavel",Ce);function Fe(a,t){if(t||a==="completed"||a==="delivered")return{kind:"done",label:"Registro concluÃdo",title:"Seu Registro de Direito Autoral foi concluÃdo!",subtitle:"A Equipe Sábhia protocolou sua obra junto à Fundação Biblioteca Nacional. Seu certificado está disponÃvel abaixo.",progress:1};switch(a){case"pending_submission":case"paid":return{kind:"paid",label:"Pagamento confirmado",title:"Pedido recebido com sucesso",subtitle:"A Equipe Sábhia já está organizando o protocolo do seu registro junto à FBN/EDA.",progress:.15};case"submitted":return{kind:"queued",label:"Protocolo em andamento",title:"Seu pedido entrou na fila da Equipe Sábhia",subtitle:"Nossa equipe recebeu todos os dados e está iniciando o protocolo junto à Fundação Biblioteca Nacional.",progress:.35};case"in_progress":return{kind:"working",label:"Processando na FBN/EDA",title:"Protocolo em andamento na Biblioteca Nacional",subtitle:"A Equipe Sábhia está protocolando seu registro junto ao EDA (Escritório de Direitos Autorais) da FBN.",progress:.65};case"awaiting_response":case"awaiting_author_review":return{kind:"review",label:"Aguardando a Biblioteca Nacional",title:"Aguardando resposta oficial da FBN/EDA",subtitle:"O protocolo foi enviado. Aguardamos a emissão do número oficial pela Fundação Biblioteca Nacional â pode levar até 30 dias úteis.",progress:.85};case"cancelled":case"refunded":return{kind:"issue",label:"Pedido cancelado",title:"Pedido cancelado",subtitle:"Esse pedido foi cancelado. Se foi engano, fale com o suporte.",progress:0};case"failed_to_submit":return{kind:"issue",label:"Falha no envio",title:"Tivemos uma falha técnica ao enviar seu pedido",subtitle:"Sua compra está confirmada, mas houve uma falha ao encaminhar o registro à nossa equipe. Fale com o suporte para resolvermos rapidamente â nenhum valor foi perdido.",progress:0};default:return{kind:"paid",label:a,title:"Pedido em andamento",subtitle:"A Equipe Sábhia está cuidando do seu Registro de Direito Autoral.",progress:.2}}}const J=[{key:"paid",label:"Pagamento confirmado",matches:()=>!0},{key:"queued",label:"Enviado à Equipe Sábhia",matches:a=>a!=="paid"},{key:"working",label:"Protocolo na FBN/EDA",matches:a=>a==="working"||a==="review"||a==="done"},{key:"review",label:"Aguardando Biblioteca Nacional",matches:a=>a==="review"||a==="done"},{key:"done",label:"Registro concluÃdo",matches:a=>a==="done"}];function Y(a){if(!a)return"â";try{return new Date(a).toLocaleDateString("pt-BR",{day:"2-digit",month:"short",year:"numeric"})}catch{return"â"}}function Ae(a){return!a||a<=0?"":a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(1)} KB`:`${(a/1024/1024).toFixed(1)} MB`}
1function De(a){const t=(a?.trim()||"").toLowerCase();return!t||t==="arquivo"||t==="file"||t==="document"||t==="download"||/^da-documento-/.test(t)?"Certificado-Registro-Direito-Autoral.pdf":/\.[a-zA-Z0-9]{2,5}$/.test(t)?a?.trim()||t:(a?.trim()||t)+".pdf"}function Pe(a){const t=(a?.trim()||"").toLowerCase();return!t||t==="arquivo"||t==="file"||t==="document"||t==="download"||/^da-documento-/.test(t)?"Certificado de Registro â FBN/EDA":/^certificado-direito-autoral-/.test(t)?"Certificado Digital Sábhia de Autoria":a?.trim()||"Documento Oficial"}function Ee(a){if(!a||!a.trim())return!1;const t=a.trim();return t.startsWith("/")||t.startsWith("http")||t.startsWith("object")||t.includes("/objects/")||t.includes("/uploads/")||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)?!1:t.length>=4}function qe(a){const t=a.replace(/\D/g,"").slice(0,11);return t.length<=3?t:t.length<=6?`${t.slice(0,3)}.${t.slice(3)}`:t.length<=9?`${t.slice(0,3)}.${t.slice(3,6)}.${t.slice(6)}`:`${t.slice(0,3)}.${t.slice(3,6)}.${t.slice(6,9)}-${t.slice(9)}`}function $e(a){if(a.length!==11)return"Preencha os 11 dÃgitos do CPF.";if(/^(.)\1+$/.test(a))return"CPF inválido â sequências repetidas como 111.111.111-11 não são CPFs reais.";let t=0;for(let r=0;r<9;r++)t+=+a[r]*(10-r);let d=t*10%11;if(d>=10&&(d=0),d!==+a[9])return"CPF inválido â verifique os números e use seu CPF real (Receita Federal).";t=0;for(let r=0;r<10;r++)t+=+a[r]*(11-r);return d=t*10%11,d>=10&&(d=0),d!==+a[10]?"CPF inválido â verifique os números e use seu CPF real (Receita Federal).":null}function Be({orderId:a,onSaved:t}){const{toast:d}=te(),r=L(),[g,v]=b.useState(""),[l,x]=b.useState(!1),[N,h]=b.useState(null),o=async()=>{const m=g.replace(/\D/g,""),u=$e(m);if(u){h(u);return}x(!0),h(null);try{await se("POST",`/api/human-services/${a}/collect-cpf`,{cpf:m}),r.invalidateQueries({queryKey:["/api/human-services"]}),d({title:"CPF confirmado!",description:"Seu registro foi enviado à Equipe Sábhia."}),t()}catch(c){const p=c?.body?.message||c?.message||"";p.toLowerCase().includes("inválido")||p.toLowerCase().includes("invalido")?h("CPF inválido â os dÃgitos verificadores não conferem. Use o CPF impresso no seu RG, CNH ou Passaporte."):h(p||"Não foi possÃvel salvar o CPF agora. Tente novamente em instantes.")}finally{x(!1)}};return e.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-rose-500/40 bg-gradient-to-br from-rose-950/60 via-orange-950/30 to-rose-950/50","data-testid":"section-da-cpf-collection",children:[e.jsxs("div",{className:"absolute top-5 right-5 flex items-center gap-2",children:[e.jsx("span",{className:"text-[10px] font-black text-rose-300 uppercase tracking-widest hidden sm:block",children:"Ação necessária"}),e.jsx("div",{className:"w-3 h-3 rounded-full bg-rose-400 animate-pulse shadow-[0_0_8px_rgba(248,113,113,0.6)]"})]}),e.jsxs("div",{className:"p-6 sm:p-8 space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-4 pr-16 sm:pr-24",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-rose-500/20 border border-rose-400/30 flex items-center justify-center shrink-0",children:e.jsx(R,{className:"w-6 h-6 text-rose-300"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-black text-white leading-tight",children:"Seu pedido está aguardando o CPF"}),e.jsx("p",{className:"text-sm text-rose-200/80 mt-1 leading-snug font-medium",children:"Sem o CPF, não conseguimos protocolar seu Registro de Direito Autoral na Biblioteca Nacional."})]})]}),e.jsxs("div",{className:"rounded-2xl bg-white/[0.04] border border-white/10 p-4 flex items-start gap-3",children:[e.jsx(z,{className:"w-4 h-4 text-violet-300 shrink-0 mt-0.5"}),e.jsxs("p",{className:"text-xs text-white/65 leading-snug",children:["A ",e.jsx("strong",{className:"text-white",children:"Fundação Biblioteca Nacional (FBN/EDA)"})," exige o CPF do titular dos direitos autorais para protocolar o registro. Este CPF ficará vinculado legalmente à autoria da sua obra â use o mesmo do seu RG, CNH ou Passaporte."]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("label",{className:"block text-sm font-black text-white",children:"Seu CPF â titular dos direitos autorais"}),e.jsx("input",{type:"text",inputMode:"numeric",value:g,onChange:m=>{h(null),v(qe(m.target.value))},onKeyDown:m=>{m.key==="Enter"&&o()},placeholder:"000.000.000-00",maxLength:14,"data-testid":"input-da-cpf-dashboard",className:`w-full px-4 py-3.5 rounded-2xl bg-white/5 border text-white placeholder:text-white/30 text-base font-mono focus:outline-none focus:ring-2 transition-colors ${N?"border-rose-400/60 focus:ring-rose-400/30":"border-white/20 hover:border-violet-400/40 focu
1s:border-violet-400/60 focus:ring-violet-400/25"}`}),N?e.jsxs("div",{className:"flex items-start gap-2 p-3 rounded-xl bg-rose-500/10 border border-rose-400/30",children:[e.jsx(R,{className:"w-3.5 h-3.5 text-rose-300 shrink-0 mt-0.5"}),e.jsx("p",{className:"text-xs text-rose-200 leading-snug","data-testid":"text-da-cpf-error-dashboard",children:N})]}):e.jsx("p",{className:"text-xs text-white/35 px-1",children:"Ex.: 012.345.678-90 â mesmo número da Receita Federal."}),e.jsxs("button",{onClick:o,disabled:l||g.replace(/\D/g,"").length<11,"data-testid":"button-da-submit-cpf-dashboard",className:"w-full py-4 rounded-2xl text-base font-black text-white bg-gradient-to-r from-violet-600 to-purple-600 shadow-xl shadow-violet-500/30 hover:scale-[1.02] active:scale-[0.98] transition-all disabled:opacity-50 disabled:cursor-not-allowed disabled:scale-100 flex items-center justify-center gap-2",children:[l&&e.jsx(I,{className:"w-5 h-5 animate-spin"}),l?"Confirmando e enviando para a equipe...":"â Confirmar CPF e enviar registro"]})]})]})]})}function Re({order:a,bookTitle:t,bookAuthor:d,onCpfSaved:r}){const{toast:g}=te(),v=L(),[l,x]=b.useState(!1),[N,h]=b.useState(!1),[o,m]=b.useState(null),[u,c]=b.useState({}),p=a.deliverables||[],k=b.useMemo(()=>(a.deliverableFields||[]).filter(i=>{if(!i.valor)return!1;const n=(i.tipo||"").toUpperCase();return(n==="LINK"||n==="URL"||n==="FILE"||n==="FILE_LINK"||n==="DOWNLOAD"||/^https?:\/\//i.test(i.valor))&&/^https?:\/\//i.test(i.valor)}),[a.deliverableFields]),j=p.length>0,w=p.find(i=>i.fileName?.startsWith("certificado-direito-autoral-")),P=p.filter(i=>!i.fileName?.startsWith("certificado-direito-autoral-")),s=Fe(a.status,j),f=s.kind==="done",F=s.kind==="issue",T=f||j,K=a.input?.registrationNumber||a.metadata?.daRegistrationNumber,V=Ee(K)?K:null,A=!(!!a.input?.cpf||N)&&a.status==="pending_submission"&&!a.metadata?.externalPedidoId,le=b.useMemo(()=>f&&a.completedAt?Y(a.completedAt):Y(a.slaDueAt),[f,a.completedAt,a.slaDueAt]),ne=a.status!=="cancelled"&&a.status!=="refunded"&&!!a.bookId,D=async()=>{if(!l){x(!0);try{const n=await(await se("POST",`/api/human-services/${a.id}/resync`)).json();
1await Promise.all([v.invalidateQueries({queryKey:["/api/human-services"]}),v.invalidateQueries({queryKey:[`/api/human-services/${a.id}`]})]),g({title:n.updated?"Status atualizado":"Tudo em dia",description:n.updated?"Buscamos o status mais recente do seu pedido.":"Seu pedido já está sincronizado com a Equipe Sábhia."})}catch(i){g({title:"Não foi possÃvel atualizar agora",description:i?.message||"Tente novamente em alguns instantes.",variant:"destructive"})}finally{x(!1)}}};b.useEffect(()=>{c({})},[p.map(i=>i.downloadUrl).join(",")]);const E=t?`"${t}"`:"Registro de Direito Autoral";return e.jsxs("div",{className:"space-y-6","data-testid":"da-dashboard",children:[A&&e.jsx(Be,{orderId:a.id,onSaved:()=>{h(!0),r?.()}}),e.jsxs("section",{className:`rounded-3xl p-6 sm:p-10 border-2 shadow-2xl space-y-6 ${f?"border-violet-400/50 bg-gradient-to-br from-violet-500/15 via-purple-500/10 to-violet-500/5 shadow-violet-500/20":F?"border-rose-500/40 bg-gradient-to-br from-rose-500/15 via-red-500/10 to-rose-500/5 shadow-rose-500/15":"border-indigo-400/40 bg-gradient-to-br from-indigo-500/15 via-violet-500/10 to-indigo-500/5 shadow-indigo-500/20"}`,"data-testid":"section-da-status-hero",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:`w-14 h-14 rounded-2xl ring-1 flex items-center justify-center shrink-0 ${f?"bg-violet-500/25 ring-violet-400/40":F?"bg-rose-500/25 ring-rose-400/40":"bg-indigo-500/25 ring-indigo-400/40"}`,children:f?e.jsx(B,{className:"w-7 h-7 text-violet-300"}):F?e.jsx(we,{className:"w-7 h-7 text-rose-300"}):e.jsx(z,{className:"w-7 h-7 text-indigo-300 animate-pulse"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:`text-[11px] font-bold uppercase tracking-widest mb-1 ${f?"text-violet-300":F?"text-rose-300":"text-indigo-300"}`,children:A?"Aguardando seu CPF":s.label}),e.jsx("h1",{className:"text-2xl sm:text-3xl font-black text-white leading-tight mb-2","data-testid":"text-da-status-title",children:A?"Pagamento confirmado â só falta o CPF":s.title}),e.jsx("p",{className:"text-sm sm:text-base text-white/75 leading-relaxed",children:A?"Seu pagamento foi confirmado. Informe o CPF acima para que a Equipe Sábhia possa protocolar o registro junto à FBN/EDA.":s.subtitle}),t&&e.jsxs("p",{className:"text-xs text-white/45 mt-2 flex items-center gap-1.5",children:[e.jsx(_,{className:"w-3 h-3 shrink-0"}),t,d?` · ${d}`:""]})]})]}),!f&&!F&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-2 rounded-full bg-white/5 overflow-hidden",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-indigo-400 to-violet-400 transition-all duration-700 shadow-lg shadow-indigo-500/30",style:{width:`${Math.round(s.progress*100)}%`},"data-testid":"bar-da-progress"})}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsxs("span",{className:"text-white/55 flex items-center gap-1.5",children:[e.jsx(ce,{className:"w-3 h-3 text-indigo-300"}),"Previsão: ",e.jsx("span",{className:"text-white font-semibold",children:le})]}),e.jsxs("span",{className:"text-white/55 tabular-nums",children:[Math.round(s.progress*100),"%"]})]})]}),ne&&e.jsx("div",{className:"pt-1",children:e.jsxs("button",{onClick:D,disabled:l,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[11px] font-semibold bg-white/[0.06] hover:bg-white/[0.10] border border-white/15 hover:border-white/25 text-white/85 hover:text-white transition-colors disabled:opacity-60 disabled:cursor-not-allowed","data-testid":"button-da-resync",children:[e.jsx(ae,{className:`w-3.5 h-3.5 ${l?"animate-spin":""}`}),l?"Atualizando...":"Verificar status agora"]})})]}),V&&e.jsx("section",{className:"rounded-3xl border border-violet-400/30 bg-gradient-to-br from-violet-950/60 to-purple-950/60 p-6 sm:p-8","data-testid":"section-da-reg-number",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-violet-500/20 border border-violet-400/30 flex items-center justify-center shrink-0",children:e.jsx(B,{className:"w-6 h-6 text-violet-300"})}),e.jsxs("div",{className:"space-y-1 flex-1",children:[e.jsx("p",{className:"text-xs font-bold text-violet-400 uppercase tracking-widest",children:"Número de Registro Oficial â FBN/EDA"}),e.jsx("p",{className:"text-2xl sm:text-3xl font-black text-white tracking-tight break-all","data-testid":"text-da-reg-number",children:V}),e.jsx("p",{className:"text-xs text-white/50",children:"Emitido pela Fundação Biblioteca Nacional · Escritório de Direitos Autorais (EDA)"})]})]})}),T&&e.jsxs("section",{className:"rounded-3xl border border-violet-400/25 bg-gradient-to-br from-violet-950/20 via-zinc-950/40 to-zinc-950/20 p-6 sm:p-8 space-y-5","data-testid":"section-da-deliverables",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-violet-500/15 ring-1 ring-violet-400/30 flex items-center justify-center",children:e.jsx(O,{className:"w-5 h-5 text-violet-300"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-black text-white",children:"Seus documentos de direito autoral"}),e.jsx("p",{className:"text-xs text-white/55",children:"Clique para visualizar e baixar os arquivos"})]})]}),P.map((i,n)=>e.jsx($,{url:i.downloadUrl,fileName:i.fileName,fileSize:i.fileSize,title:"Documento Oficial â FBN/EDA",subtitle:"Certificado emitido pela Fundação Biblioteca Nacional após o protocolo.",bookSubtitle:E,thumbErrorKey:`official-${n}`,thumbError:u,setThumbError:c,setPdfPreview:m,testId:`deliverable-official-${n}`,resync:D,resyncing:l},i.id)),w&&e.jsx($,{url:w.downloadUrl,fileName:w.fileName,fileSize:w.fileSize,title:"Certificado Digital Sábhia de Autoria",subtitle:"PDF personalizado com capa do livro, número oficial e dados do registro. Pronto para compartilhar.",bookSubtitle:E,thumbErrorKey:"sabhia-cert",thumbError:u,setThumbError:c,setPdfPreview:m,testId:"deliverable-sabhia-cert",resync:D,resyncing:l,badge:"Certificado Sábhia"}),!j&&f&&k.map((i,n)=>{const C=i.valor,S=i.label?`${i.label.replace(/[^a-z0-9]/gi,"_")}.pdf`:"certificado-da.pdf";return e.jsx($,{url:C,fileName:S,fileSize:null,title:i.label||"Documento Oficial â FBN/EDA",subtitle:"Certificado emitido pela Fundação Biblioteca Nacional.",bookSubtitle:E,thumbErrorKey:`lc-${n}`,thumbError:u,setThumbError:c,setPdfPreview:m,testId:`deliverable-link-${n}`,resync:D,resyncing:l},i.fieldId||`lc-${n}`)}),!j&&!f&&a.proxyDownloadUrl&&e.jsx($,{url:a.proxyDownloadUrl,fileName:"certificado-da-proxy.pdf",fileSize:null,title:"Documento Oficial â FBN/EDA",subtitle:"Certificado emitido pela Fundação Biblioteca Nacional.",bookSubtitle:E,thumbErrorKey:"proxy",thumbError:u,setThumbError:c,setPdfPreview:m,testId:"deliverable-proxy",resync:D,resyncing:l})]}),!T&&!A&&e.jsxs("section",{className:"rounded-3xl border border-white/10 bg-white/[0.02] p-6 sm:p-8 space-y-5","data-testid":"section-da-timeline",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-2xl bg-indigo-500/15 ring-1 ring-indigo-400/30 flex items-center justify-center",children:e.jsx(O,{className:"w-4 h-4 text-indigo-300"})}),e.jsx("h2",{className:"text-lg font-black text-white",children:"Acompanhamento do processo"})]}),e.jsx("div",{className:"space-y-1",children:J.map((i,n)=>{const C=i.matches(s.kind),S=!C&&(n===0||J[n-1].matches(s.kind));return e.jsxs("div",{className:`flex items-center gap-4 py-3 px-3 rounded-xl transition-colors ${S?"bg-indigo-500/5 ring-1 ring-indigo-400/20":""}`,"data-testid":`step-da-${i.key}`,children:[e.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center shrink-0 transition-all ${C?"bg-violet-500/25 ring-1 ring-violet-400/40":S?"bg-indigo-500/25 ring-1 ring-indigo-400/40":"bg-white/5 ring-1 ring-white/10"}`,children:C?e.jsx(me,{className:"w-4 h-4 text-violet-300"}):S?e.jsx(I,{className:"w-3.5 h-3.5 text-indigo-300 animate-spin"}):e.jsx("span",{className:"text-[10px] text-white/40 tabular-nums",children:n+1})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("p",{className:`text-sm font-semibold ${C||S?"text-white":"text-white/45"}`,children:i.label})}),C&&e.jsx(y,{className:"w-4 h-4 text-violet-400/60 shrink-0"})]},i.key)})}),e.jsx("p",{className:"text-[11px] text-white/25 leading-snug",children:"Prazo: até 30 dias úteis após o protocolo. A Equipe Sábhia atualiza quando houver novidades."})]}),e.jsx(Ne,{open:!!o,onOpenChange:i=>{i||m(null)},url:o?.url??null,title:o?.title??"Documento",subtitle:o?.subtitle,fileName:o?.fileName})]})}function $({url:a,fileName:t,fileSize:d,title:r,subtitle:g,bookSubtitle:v,thumbErrorKey:l,thumbError:x,setThumbError:N,setPdfPreview:h,testId:o,resync:m,resyncing:u,badge:c}){const p=x[l],k=De(t),j=Pe(t);return e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-4 roun
1ded-2xl border border-violet-400/25 bg-violet-950/15 p-4","data-testid":o,children:[e.jsx(je,{url:a,label:`Abrir ${r}`,initialRatio:.707,onLoadError:()=>N(w=>({...w,[l]:!0})),onOpen:()=>{p||h({url:a,title:r,subtitle:v,fileName:k})},className:"mx-auto sm:mx-0 w-full max-w-[160px] sm:w-36","data-testid":`thumbnail-${o}`}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-sm font-bold text-white flex items-center gap-2 flex-wrap",children:[e.jsx(ye,{className:"w-4 h-4 text-white/40 shrink-0"}),j,c&&e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-violet-500/15 px-2 py-0.5 text-[10px] font-bold text-violet-300 ring-1 ring-violet-400/30",children:[e.jsx(y,{className:"w-3 h-3"})," ",c]}),e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/15 px-2 py-0.5 text-[10px] font-bold text-emerald-300 ring-1 ring-emerald-400/30",children:[e.jsx(y,{className:"w-3 h-3"})," Pronto"]})]}),e.jsx("p",{className:"text-[12px] text-white/55 mt-0.5 break-words leading-snug",children:g}),d&&e.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:Ae(d)}),p?e.jsxs("div",{className:"mt-3 rounded-xl border border-violet-400/20 bg-violet-950/15 px-4 py-3.5 space-y-2.5",children:[e.jsxs("p",{className:"text-[12px] font-bold text-violet-200 flex items-center gap-2",children:[e.jsx(y,{className:"w-3.5 h-3.5 shrink-0 text-violet-400"}),"Documento pronto!"]}),e.jsx("p",{className:"text-[11px] text-white/55 leading-relaxed",children:'O arquivo está disponÃvel para download. Clique em "Verificar agora" ou baixe diretamente.'}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs("button",{type:"button",onClick:m,disabled:u,className:"inline-flex items-center gap-1.5 rounded-lg bg-violet-500/15 hover:bg-violet-500/25 ring-1 ring-violet-400/30 px-3 py-1.5 text-[11px] font-bold text-violet-200 transition-colors disabled:opacity-60","data-testid":`button-recover-${o}`,children:[e.jsx(ae,{className:`w-3 h-3 ${u?"animate-spin":""}`}),u?"Verificandoâ¦":"Verificar agora"]}),e.jsxs("a",{href:a,download:k,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg bg-white/[0.04] hover:bg-white/[0.08] ring-1 ring-white/10 px-3 py-1.5 text-[11px] font-bold text-white/80 transition-colors","data-testid":`download-recover-${o}`,children:[e.jsx(G,{className:"w-3 h-3"})," Baixar"]})]})]}):e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[e.jsxs("button",{type:"button",onClick:()=>h({url:a,title:r,subtitle:v,fileName:k}),className:"inline-flex items-center gap-1.5 rounded-xl bg-violet-500/15 hover:bg-violet-500/25 ring-1 ring-violet-400/30 px-3.5 py-2 text-xs font-bold text-violet-200 transition-colors","data-testid":`button-view-${o}`,children:[e.jsx(_,{className:"w-3.5 h-3.5"})," Visualizar"]}),e.jsxs("a",{href:a,download:k,className:"inline-flex items-center gap-1.5 rounded-xl bg-white/[0.04] hover:bg-white/[0.08] ring-1 ring-white/10 px-3.5 py-2 text-xs font-bold text-white/80 transition-colors","data-testid":`button-download-${o}`,children:[e.jsx(G,{className:"w-3.5 h-3.5"})," Baixar"]})]})]})]})}const ee=[{icon:Se,title:"Plágio sem defesa",body:"Alguém copia sua obra e publica com nome dele. Você vai a juÃzo. O juiz pergunta: qual é a data de criação? Sem o número de protocolo FBN, você depende só da sua palavra â e a outra parte também."},{icon:oe,title:"Editoras internacionais fechadas",body:"Editoras da Europa, EUA e plataformas de licenciamento como Bookwire e Ingram pedem comprovante de autoria. Sem o registro, sua obra fica de fora de contratos, traduções e royalties internacionais."},{icon:he,title:"Herança em risco",body:"O direito autoral dura 70 anos após sua morte â mas sem documentação formal, seus herdeiros podem enfrentar disputas custosas para provar que a obra é sua. O registro é seu legado protegido."}],ze=[{icon:re,title:"Data e hora de protocolo federal",body:"A FBN registra o momento exato do protocolo. Em qualquer disputa, esse carimbo é soberano â ninguém pode alegar que criou antes de você."},{icon:ie,title:"Escudo irrefutável em caso de plágio",body:"O número oficial, emitido pelo governo federal, é a prova mais robusta de autoria que existe no Brasil â reconhecida por juÃzes, árbitros e plataformas digitais."},{icon:oe,title:"Portas que se abrem no exterior",body:"Contratos de tradução, licenciamento e plataformas internacionais de distribuição aceitam o número FBN como prova válida de autoria."},{icon:B,title:"Certificado Digital personalizado",body:"Você recebe um Certificado Digital com capa do livro, número oficial e dados do registro â para compartilhar, publicar e apresentar onde quiser."}];function ct(){const[,a]=xe("/direito-autoral/:bookId"),t=a?.bookId||"",[,d]=ue(),r=L(),[g,v]=b.useState(!1),l=q({queryKey:["/api/human-services/catalog"],enabled:!!t}),{data:x}=q({queryKey:[`/api/books/${t}`],enabled:!!t}),{data:N,refetch:h}=q({queryKey:["/api/human-services"],enabled:!!t,staleTime:15e3,refetchInterval:3e4}),o=(N||[]).find(s=>s?.bookId===t&&s?.serviceSlug==="direito_autoral"&&s?.status!=="pending_payment"&&s?.status!=="c
1ancelled"&&s?.status!=="refunded")||null,{data:m}=q({queryKey:[`/api/human-services/${o?.id}`],enabled:!!o?.id,staleTime:15e3,refetchInterval:3e4}),u=m??o,c=l.data?.services.find(s=>s.slug==="direito_autoral")||null,p=c?.gate?.canPurchase??l.data?.gate.canPurchase??!1,k=c?.priceFormatted||"R$ 299,99",j=c?.slaBusinessDays||30,w=b.useRef(null);b.useEffect(()=>{const s=o?.id??null;s&&w.current!==String(s)&&(w.current=String(s),typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"}))},[o?.id]);const P=()=>{r.invalidateQueries({queryKey:["/api/human-services"]}),r.invalidateQueries({queryKey:[`/api/books/${t}/next-upsell`]})};return o&&u?e.jsxs(U,{children:[e.jsx("div",{className:`min-h-screen ${t?"lg:pr-[316px]":""}`,children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-8 sm:py-12 pb-32 md:pb-20 space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("button",{onClick:()=>d(t?`/book/${t}`:"/dashboard"),className:"flex items-center gap-2 text-muted-foreground hover:text-white transition-colors text-sm","data-testid":"button-back-book",children:[e.jsx(X,{className:"w-4 h-4"}),e.jsx("span",{children:"Voltar ao livro"})]}),e.jsx("span",{className:"px-3 py-1 rounded-full bg-violet-500/15 border border-violet-400/30 text-[11px] font-bold text-violet-300 uppercase tracking-wider",children:"âï¸ Direito Autoral"})]}),e.jsx(Re,{order:u,bookTitle:x?.title,bookAuthor:x?.author,onCpfSaved:()=>{h(),o?.id&&r.invalidateQueries({queryKey:[`/api/human-services/${o.id}`]})}})]})}),t&&e.jsx("div",{className:"hidden md:block fixed right-4 top-20 w-[280px] max-h-[calc(100vh-6rem)] overflow-y-auto z-30",children:e.jsx(M,{bookId:t,currentStep:"direitoAutoral"})}),t&&e.jsx(Q,{bookId:t,currentStep:"direitoAutoral"}),c&&e.jsx(W,{open:g,onClose:()=>{v(!1),P()},bookId:t,serviceSlug:"direito_autoral"})]}):e.jsxs(U,{children:[e.jsxs("div",{className:`min-h-screen ${t?"lg:pr-[316px]":""}`,children:[e.jsx("div",{className:"sticky top-0 z-40 border-b border-white/10 bg-background/80 backdrop-blur-xl",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-3 flex items-center justify-between gap-3",children:[e.jsxs("button",{onClick:()=>d(t?`/book/${t}`:"/dashboard"),className:"flex items-center gap-2 text-muted-foreground hover:text-white transition-colors text-sm","data-testid":"button-back-book",children:[e.jsx(X,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Voltar ao livro"}),e.jsx("span",{className:"sm:hidden",children:"Voltar"})]}),e.jsx("span",{className:"px-3 py-1 rounded-full bg-violet-500/15 border border-violet-400/30 text-[11px] font-bold text-violet-300 uppercase tracking-wider",children:"âï¸ Registro de Direito Autoral"})]})}),e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-8 sm:py-12 space-y-14 pb-32 md:pb-20",children:[e.jsxs("section",{className:"text-center space-y-6",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-to-r from-amber-500/20 to-orange-500/20 border border-amber-400/40",children:[e.jsx(R,{className:"w-3.5 h-3.5 text-amber-400 shrink-0"}),e.jsx("span",{className:"text-xs font-bold text-amber-200 uppercase tracking-wider",children:"Sem registro, qualquer um pode afirmar que escreveu antes de você"})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-black text-white leading-tight tracking-tight",children:["Você escreveu.",e.jsx("br",{}),"Agora"," ",e.jsx("span",{className:"bg-gradient-to-r from-violet-300 via-purple-300 to-violet-400 bg-clip-text text-transparent",children:"prove que é seu"})," ","â para sempre."]}),e.jsxs("p",{className:"text-base sm:text-lg text-white/70 max-w-2xl mx-auto leading-relaxed",children:["No Brasil, sua autoria nasce com a criação â mas sem o ",e.jsx("strong",{className:"text-white",children:"número oficial da Fundação Biblioteca Nacional"}),","," ","você depende só da sua palavra em caso de plágio, disputa ou licenciamento."," ","O Registro de Direito Autoral é a prova documental mais robusta que existe â e a Equipe Sábhia cuida de tudo."]}),x?.title&&e.jsxs("div",{className:"inline-flex items-center gap-2.5 px-5 py-2.5 rounded-2xl bg-violet-500/10 border border-violet-400/25",children:[e.jsx(pe,{className:"w-4 h-4 text-violet-400 shrink-0"}),e.jsxs("p",{className:"text-sm text-white/80",children:["Protegendo: ",e.jsxs("span",{className:"text-white font-bold",children:['"',x.title,'"']})]})]})]}),e.jsxs("section",{className:"space-y-4","data-testid":"section-pain",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-rose-500/15 border border-rose-400/30 flex items-center justify-center shrink-0",children:e.jsx(R,{className:"w-3.5 h-3.5 text-rose-400"})}),e.jsx("p",{className:"text-xs font-black text-rose-400 uppercase tracking-wider",children:"O risco que você está correndo agora"})]}),e.jsx("div",{className:"rounded-3xl border border-rose-500/20 bg-gradient-to-br from-rose-950/40 via-zinc-950/60 to-zinc-950/40 p-1 space-y-0.5",children:ee.map((s,f)=>e.jsxs("div",{className:`flex items-start gap-4 p-5 ${f<ee.length-1?"border-b border-rose-500/10":""}`,children:[e.jsx("div",{className:"w-9 h-9 rounded-2xl bg-rose-500/10 border border-rose-400/20 flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(s.icon,{className:"w-4 h-4 text-rose-400"})}),e.jsxs("div",{className:"space-y-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Z,{className:"w-3.5 h-3.5 text-rose-500 shrink-0"}),e.jsx("h3",{className:"text-sm font-black text-white",children:s.title})]}),e.jsx("p",{className:"text-xs text-white/60 leading-relaxed",children:s.body})]})]},s.title))})]}),e.jsxs("section",{className:"space-y-4","data-testid":"section-benefits",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-emerald-500/15 border border-emerald-400/30 flex items-center justify-center shrink-0",children:e.jsx(ie,{className:"w-3.5 h-3.5 text-emerald-400"})}),e.jsx("p",{className:"text-xs font-black text-emerald-400 uppercase tracking-wider",children:"Com o número oficial, você tem"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:ze.map(s=>e.jsxs("div",{className:"rounded-3xl border border-emerald-500/15 bg-emerald-950/20 hover:bg-emerald-950/30 transition-colors p-5 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-emerald-500/15 border border-emerald-400/25 flex items-center justify-center shrink-0",children:e.jsx(s.icon,{className:"w-4 h-4 text-emerald-400"})}),e.jsx(y,{className:"w-4 h-4 text-emerald-400 shrink-0"})]}),e.jsx("h3",{className:"text-sm font-black text-white",children:s.title}),e.jsx("p",{className:"text-xs text-white/60 leading-relaxed",children:s.body})]},s.title))})]}),e.jsxs("section",{className:"rounded-3xl border border-violet-500/25 bg-gradient-to-br from-violet-950/50 to-purple-950/50 p-6 sm:p-8 space-y-6","data-testid":"section-deliverables",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-xs font-bold text-violet-400 uppercase tracking-wider mb-1 flex items-center gap-1.5",children:[e.jsx(O,{className:"w-3.5 h-3.5"})," O que você recebe"]}),e.jsx("h2",{className:"text-xl sm:text-2xl font-black text-white",children:"Tudo incluso no registro"}),e.jsx("p",{className:"text-sm text-white/50 mt-1",children:"Entregue pela Equipe Sábhia. Você não preenche nenhum formulário."})]}),e.jsx("ul",{className:"space-y-4",children:[{icon:re,text:"Número oficial de Registro de Direito Autoral (FBN/EDA)",detail
1:"Com data e hora de protocolo federal â válido para sempre"},{icon:B,text:"Certificado Digital Sábhia de Autoria (PDF com capa e número oficial)",detail:"Compartilhe em redes, apresente a editoras, use em contratos"},{icon:_,text:"Comprovante de protocolo junto à Biblioteca Nacional",detail:"Documento federal com número de processo â aceito em qualquer instância"}].map(s=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-violet-500/20 border border-violet-400/25 flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(s.icon,{className:"w-3.5 h-3.5 text-violet-300"})}),e.jsxs("div",{className:"space-y-0.5 min-w-0",children:[e.jsx("span",{className:"text-sm text-white font-semibold",children:s.text}),e.jsx("p",{className:"text-xs text-white/45",children:s.detail})]})]},s.text))}),e.jsxs("div",{className:"pt-2 flex items-center gap-3 text-xs text-white/40 border-t border-white/8 pt-4",children:[e.jsx(fe,{className:"w-3.5 h-3.5 shrink-0"}),e.jsxs("span",{children:["Prazo: até ",j," dias úteis após o protocolo na FBN/EDA"]})]})]}),e.jsxs("section",{className:"space-y-4","data-testid":"section-comparison",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{className:"rounded-3xl border border-rose-500/20 bg-rose-950/20 p-5 space-y-3",children:[e.jsx("p",{className:"text-xs font-black text-rose-400 uppercase tracking-wider",children:"Sem o registro"}),e.jsx("ul",{className:"space-y-2.5",children:["Depende da sua palavra em disputas","Advogado de plágio: R$ 5.000âR$ 15.000","Herança sem documentação formal","Fora de contratos internacionais","Processo judicial sem prova de data"].map(s=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(Z,{className:"w-3.5 h-3.5 text-rose-500 shrink-0 mt-0.5"}),e.jsx("span",{className:"text-xs text-white/60",children:s})]},s))})]}),e.jsxs("div",{className:"rounded-3xl border border-violet-400/30 bg-gradient-to-br from-violet-950/40 to-purple-950/40 p-5 space-y-3",children:[e.jsx("p",{className:"text-xs font-black text-violet-300 uppercase tracking-wider",children:"⦠Com o Registro Sábhia"}),e.jsx("ul",{className:"space-y-2.5",children:["Número federal com data de protocolo","Pagamento único de R$ 299,99","Herança legalmente protegida por 70 anos","Aceito por editoras e plataformas internacionais","Escudo irrefutável em qualquer instância"].map(s=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-emerald-400 shrink-0 mt-0.5"}),e.jsx("span",{className:"text-xs text-white/80",children:s})]},s))})]})]}),e.jsx("div",{className:"rounded-2xl border border-white/8 bg-white/[0.02] p-4 sm:p-5",children:e.jsxs("p",{className:"text-sm text-white/60 leading-relaxed italic",children:['"Um advogado para representar você numa disputa de plágio custa'," ",e.jsx("strong",{className:"text-white not-italic",children:"entre R$ 5.000 e R$ 15.000"})," â sem garantia de vitória. O Registro na FBN custa"," ",e.jsx("strong",{className:"text-violet-300 not-italic",children:"R$ 299,99 e elimina a disputa antes que ela comece."}),'"']})})]}),e.jsxs("section",{className:"space-y-4","data-testid":"section-how",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-violet-500/15 border border-violet-400/30 flex items-center justify-center shrink-0",children:e.jsx(be,{className:"w-3.5 h-3.5 text-violet-400"})}),e.jsx("p",{className:"text-xs font-black text-violet-400 uppercase tracking-wider",children:"Como funciona â sem burocracia pra você"})]}),e.jsx("div",{className:"space-y-0.5",children:[{step:"01",title:"Você paga uma única vez",desc:"PIX, cartão ou créditos Sábhia. Sem surpresas."},{step:"02",title:"A Equipe Sábhia prepara tudo",desc:"Usando os dados do seu livro na plataforma: capa, manuscrito, tÃtulo, autor. Você não preenche nenhum formulário externo."},{step:"03",title:"Protocolo junto à FBN/EDA",desc:"Submetemos seu registro à Fundação Biblioteca Nacional. O número oficial é emitido pelo governo federal."},{step:"04",title:"Você recebe seu número + certificado",desc:"Em até 30 dias úteis. Tudo disponÃvel aqui na plataforma para download."}].map((s,f)=>e.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-2xl hover:bg-white/[0.02] transition-colors",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-violet-500/15 border border-violet-400/25 flex items-center justify-center shrink-0 text-xs font-black text-violet-300",children:s.step}),e.jsxs("div",{className:"space-y-0.5 min-w-0 pt-0.5",children:[e.jsx("p",{className:"text-sm font-bold text-white",children:s.title}),e.jsx("p",{className:"text-xs text-white/50",children:s.desc})]})]},s.step))})]}),e.jsx("section",{className:"space-y-4","data-testid":"section-cta",children:e.jsxs("div",{className:"rounded-3xl border border-violet-400/40 bg-gradient-to-br from-violet-900/40 to-purple-900/40 p-6 sm:p-8 space-y-6",children:[e.jsxs("div",{className:"text-center space-y-1",children:[e.jsxs("p",{className:"text-xs font-bold text-violet-400 uppercase tracking-wider flex items-center justify-center gap-1.5",children:[e.jsx(H,{className:"w-3.5 h-3.5"}),"Proteja sua autoria ainda hoje"]}),e.jsx("h2",{className:"text-xl sm:text-2xl font-black text-white leading-tight",children:x?.title?e.jsxs(e.Fragment,{children:['"',x.title,'" merece o escudo oficial.']}):e.jsx(e.Fragment,{children:"Sua obra merece o escudo oficial."})})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs font-bold text-violet-400 uppercase tracking-wider",children:"Registro de Direito Autoral â Pagamento único"}),e.jsx("p",{className:"text-5xl font-black text-white tracking-tight",children:k}),e.jsx("p",{className:"text-sm text-white/50",children:"PIX · Cartão · Créditos Sábhia"})]}),e.jsxs("div",{className:"space-y-1.5 text-left sm:text-right",children:[e.jsxs("div",{className:"flex sm:justify-end items-center gap-1.5",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-emerald-400"}),e.jsx("p",{className:"text-xs text-white/60",children:"Número oficial FBN incluso"})]}),e.jsxs("div",{className:"flex sm:justify-end items-center gap-1.5",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-emerald-400"}),e.jsx("p",{className:"text-xs text-white/60",children:"Certificado Digital Sábhia incluso"})]}),e.jsxs("div",{className:"flex sm:justify-end items-center gap-1.5",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-emerald-400"}),e.jsxs("p",{className:"text-xs text-white/60",children:["Prazo: ",j," dias úteis"]})]})]})]}),p?e.jsxs("button",{type:"button",onClick:()=>v(!0),"data-testid":"button-buy-da",className:"w-full py-4 rounded-2xl text-base font-black text-white bg-gradient-to-r from-violet-600 to-purple-600 shadow-xl shadow-violet-500/30 hover:scale-[1.02] hover:shadow-violet-500/40 active:scale-[0.98] transition-all inline-flex items-center justify-center gap-2",children:[e.jsx(z,{className:"w-5 h-5"}),"Blindar minha obra agora",e.jsx(ge,{className:"w-4 h-4"})]}):l.isLoading?e.jsxs("div",{className:"w-full py-4 rounded-2xl bg-white/5 flex items-center justify-center gap-2 text-white/40 text-sm",children:[e.jsx(I,{className:"w-4 h-4 animate-spin"}),"Verificando disponibilidadeâ¦"]}):e.jsxs("div",{className:"w-full py-4 rounded-2xl bg-white/5 border border-white/10 flex items-center justify-center gap-2 text-white/50 text-sm",children:[e.jsx(ve,{className:"w-4 h-4"}),c?.gate?.uiLabel||l.data?.gate?.uiLabel||"Em breve para todos os autores"]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 pt-2 border-t border-white/8",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[e.jsx(ke,{className:"w-4 h-4 text-violet-400"}),e.jsx("p",{className:"text-[10px] text-white/40 leading-tight",children:"Equipe especializada"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[e.jsx(H,{className:"w-4 h-4 text-violet-400"}),e.jsx("p",{className:"text-[10px] text-white/40 leading-tight",children:"Número federal oficial"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[e.jsx(z,{className:"w-4 h-4 text-violet-400"}),e.jsx("p",{className:"text-[10px] text-white/40 leading-tight",children:"Lei nº 9.610/1998"})]})]}),e.jsx("p",{className:"text-[11px] text-center text-white/30 leading-snug",children:"Ao pagar, você autoriza a Equipe Sábhia a protocolar o registro junto à FBN/EDA em seu nome. O número oficial é emitido pela Fundação Biblioteca Nacional â órgão federal."})]})})]})]}),t&&e.jsx("div",{className:"hidden md:block fixed right-4 top-20 w-[280px] max-h-[calc(100vh-6rem)] overflow-y-auto z-30",children:e.jsx(M,{bookId:t,currentStep:"direitoAutoral"})}),t&&e.jsx(Q,{bookId:t,currentStep:"direitoAutoral"}),c&&e.jsx(W,{open:g,onClose:()=>
1{v(!1),P()},bookId:t,serviceSlug:"direito_autoral"})]})}export{ct 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.