import{c as k,b as A,r as m,j as e,H as x,a as f,B as p,L as l}from"./index-03O7FlLK.js";import{F as y}from"./Footer-CpKEhY2n.js";import{c as $,u as L,i as C}from"./useBlogArticles-DH-rjr3t.js";import{s as N}from"./prerender-ready-BtFGQ0-H.js";import{L as D,E as O}from"./loader-circle-C6aPZEby.js";import{A as S}from"./arrow-left-B4NjmvYK.js";import{U as E}from"./user-CaA1JvJk.js";import{C as P}from"./calendar-Ce1WMB0w.js";import{C as R}from"./clock-CzYVv4ox.js";import{M as I}from"./index-B2tvPeuF.js";import"./map-pin-C7uVMHt5.js";import"./useQuery-BPBYh37X.js";import"./client-DO0WN1kq.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q=k("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),M=12e3;function F(a){return a.replace(/```[\s\S]*?```/g," ").replace(/`([^`]+)`/g,"$1").replace(/!?\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/^#{1,6}\s+/gm,"").replace(/^[-*_]{3,}\s*$/gm,"").replace(/^>\s?/gm,"").replace(/^[ \t]*[-*+]\s+/gm,"").replace(/^[ \t]*\d+\.\s+/gm,"").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/__([^_]+)__/g,"$1").replace(/\*([^*]+)\*/g,"$1").replace(/_([^_]+)_/g,"$1").replace(/\r\n?/g,`
`).replace(/\n{2,}/g,`

`).replace(/[ \t]+/g," ").trim()}function H(a,t=M){if(a.length<=t)return a;const s=a.slice(0,t),i=Math.max(s.lastIndexOf(" "),s.lastIndexOf(`
`));return i>0?s.slice(0,i):s}function z(a){return H(F(a))}const G=a=>new Date(a).toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"}),ae=()=>{var u,b,j;const{slug:a}=A(),{data:t,isLoading:s,error:i}=$(a||""),{data:c}=L(4);m.useEffect(()=>{t!=null&&t.id&&C(t.id)},[t==null?void 0:t.id]),m.useEffect(()=>{N(!1)},[]),m.useEffect(()=>{(t||i)&&N(!0)},[t,i]);const v=()=>{navigator.share&&t?navigator.share({title:t.title,text:t.excerpt,url:window.location.href}):(navigator.clipboard.writeText(window.location.href),alert("Link copiado para a área de transferência!"))},g=(c==null?void 0:c.filter(r=>r.id!==(t==null?void 0:t.id)).slice(0,3))||[];if(s)return e.jsxs(e.Fragment,{children:[e.jsxs(x,{children:[e.jsx("title",{children:"Carregando artigo... | Dra. Nathalia Brito"}),e.jsx("meta",{name:"robots",content:"noindex"}),e.jsx("link",{rel:"canonical",href:`https://nathaliabrito.adv.br/blog/${a||""}`})]}),e.jsx("div",{className:"min-h-screen bg-muted flex items-center justify-center",children:e.jsx(D,{className:"w-8 h-8 animate-spin text-primary"})})]});if(i||!t)return e.jsxs(e.Fragment,{children:[e.jsxs(x,{children:[e.jsx("title",{children:"Artigo não encontrado | Dra. Nathalia Brito"}),e.jsx("meta",{name:"description",content:"Este artigo não está disponível ou foi removido. Explore outros conteúdos sobre Direito Previdenciário no blog da Dra. Nathalia Brito."}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"}),e.jsx("link",{rel:"canonical",href:`https://nathaliabrito.adv.br/blog/${a||""}`})]}),e.jsxs("div",{className:"min-h-screen bg-muted",children:[e.jsx(f,{}),e.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-20 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:"Artigo não encontrado"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"O artigo que você procura não existe ou foi removido."}),e.jsx(p,{asChild:!0,children:e.jsx(l,{to:"/blog",children:"Voltar ao Blog"})})]}),e.jsx(y,{})]})]});const h=`https://nathaliabrito.adv.br/blog/${t.slug}`,w=z(t.content),n=Array.isArray(t.citations)?t.citations:[],o=((u=t.tldr)==null?void 0:u.trim())||null,B={"@context":"https://schema.org","@type":"Article",headline:t.title,description:t.meta_description||o||t.excerpt,abstract:o||t.excerpt,url:h,image:t.image_url||"https://nathaliabrito.adv.br/og-image.jpg",author:{"@type":"Person",name:"Dra. Nathália Brito",alternateName:"Nathalia Brito de Macedo",jobTitle:"Advogada Previdenciária",url:"https://nathaliabrito.adv.br/sobre",memberOf:{"@type":"Organization",name:"Ordem dos Advogados do Brasil - Seção Rio Grande do Norte",alternateName:"OAB/RN",identifier:"15220"},sameAs:["https://www.instagram.com/dranathaliabrito","https://www.linkedin.com/in/nathaliabritomacedo","http://lattes.cnpq.br/0967658056905716"]},datePublished:t.published_at,dateModified:t.updated_at,publisher:{"@type":"LegalService",name:"Dra. Nathalia Brito - Advocacia Previdenciária",url:"https://nathaliabrito.adv.br",logo:{"@type":"ImageObject",url:"https://nathaliabrito.adv.br/logo.png"}},mainEntityOfPage:{"@type":"WebPage","@id":h},isPartOf:{"@type":"Blog","@id":"https://nathaliabrito.adv.br/blog",name:"Blog Jurídico - Dra. Nathalia Brito"},articleSection:((b=t.category)==null?void 0:b.name)||"Direito Previdenciário",articleBody:w,keywords:((j=t.keywords)==null?void 0:j.join(", "))||"",wordCount:t.content.split(/\s+/).filter(Boolean).length,inLanguage:"pt-BR",...n.length>0&&{citation:n.map(r=>({"@type":r.type,name:r.name,url:r.url}))}},_={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://nathaliabrito.adv.br"},{"@type":"ListItem",position:2,name:"Blog",item:"https://nathaliabrito.adv.br/blog"},...t.category?[{"@type":"ListItem",position:3,name:t.category.name,item:`https://nathaliabrito.adv.br/blog/categoria/${t.category.slug}`}]:[],{"@type":"ListItem",position:t.category?4:3,name:t.title,item:`https://nathaliabrito.adv.br/blog/${t.slug}`}]};return e.jsxs(e.Fragment,{children:[e.jsxs(x,{children:[e.jsxs("title",{children:[t.title," | Dra. Nathalia Brito"]}),e.jsx("meta",{name:"description",content:t.meta_description||o||t.excerpt}),t.keywords&&e.jsx("meta",{name:"keywords",content:t.keywords.join(", ")}),e.jsx("link",{rel:"canonical",href:`https://nathaliabrito.adv.br/blog/${t.slug}`}),e.jsx("meta",{property:"og:title",content:t.title}),e.jsx("meta",{property:"og:description",content:t.meta_description||t.excerpt}),e.jsx("meta",{property:"og:type",content:"article"}),e.jsx("meta",{property:"og:url",content:`https://nathaliabrito.adv.br/blog/${t.slug}`}),t.image_url&&e.jsx("meta",{property:"og:image",content:t.image_url}),e.jsx("meta",{property:"article:published_time",content:t.published_at}),e.jsx("meta",{property:"article:modified_time",content:t.updated_at}),e.jsx("meta",{property:"article:author",content:t.author}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(B)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(_)})]}),e.jsxs("div",{className:"min-h-screen bg-muted",children:[e.jsx(f,{}),e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary/90 to-primary text-primary-foreground py-12",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(l,{to:"/blog",className:"inline-flex items-center text-primary-foreground/80 hover:text-primary-foreground mb-6 transition-colors",children:[e.jsx(S,{className:"w-4 h-4 mr-2"}),"Voltar ao Blog"]}),t.category&&e.jsx(l,{to:`/blog/categoria/${t.category.slug}`,className:"inline-block bg-accent text-accent-foreground px-3 py-1 rounded-full text-sm font-medium mb-4",children:t.category.name}),e.jsx("h1",{className:"text-3xl lg:text-4xl font-bold mb-6 leading-tight",children:t.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-primary-foreground/80",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(E,{className:"w-4 h-4"}),e.jsx("span",{children:t.author})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(P,{className:"w-4 h-4"}),e.jsx("span",{children:G(t.published_at)})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(R,{className:"w-4 h-4"}),e.jsxs("span",{children:[t.read_time_minutes," min de leitura"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(O,{className:"w-4 h-4"}),e.jsxs("span",{children:[t.views," visualizações"]})]})]})]})}),e.jsx("article",{className:"py-12",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"bg-card rounded-2xl shadow-xl p-8 lg:p-12",children:[o&&e.jsxs("aside",{"aria-label":"Resumo do artigo",className:"mb-8 rounded-lg bg-primary/5 border-l-4 border-primary p-5",children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-primary mb-2",children:"Resumo"}),e.jsx("p",{className:"text-base text-card-foreground leading-relaxed",children:o})]}),!o&&e.jsx("p",{className:"text-lg text-muted-foreground mb-8 leading-relaxed border-l-4 border-primary pl-4 italic",children:t.excerpt}),e.jsx("div",{className:"prose prose-lg max-w-none prose-headings:text-card-foreground prose-p:text-muted-foreground prose-a:text-primary prose-strong:text-card-foreground prose-li:text-muted-foreground",children:e.jsx(I,{components:{h2:({children:r})=>e.jsx("h2",{className:"text-2xl font-bold text-card-foreground mt-8 mb-4",children:r}),h3:({children:r})=>e.jsx("h3",{className:"text-xl font-bold text-card-foreground mt-6 mb-3",children:r}),p:({children:r})=>e.jsx("p",{className:"text-muted-foreground mb-4 leading-relaxed",children:r}),ul:({children:r})=>e.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-2",children:r}),ol:({children:r})=>e.jsx("ol",{className:"list-decimal pl-6 mb-4 space-y-2",children:r}),li:({children:r})=>e.jsx("li",{className:"text-muted-foreground",children:r}),a:({href:r,children:d})=>e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:d}),strong:({children:r})=>e.jsx("strong",{className:"font-bold text-card-foreground",children:r}),blockquote:({children:r})=>e.jsx("blockquote",{className:"border-l-4 border-primary bg-primary/5 pl-4 py-2 my-4 italic",children:r})},children:t.content})}),n.length>0&&e.jsxs("section",{className:"mt-12 pt-8 border-t border-border","aria-labelledby":"post-sources-heading",children:[e.jsx("h2",{id:"post-sources-heading",className:"text-xl font-bold text-card-foreground mb-4",children:"Fontes"}),e.jsx("ol",{className:"list-decimal pl-6 space-y-2",children:n.map((r,d)=>e.jsx("li",{className:"text-muted-foreground",children:e.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"text-primary hover:underline",children:r.name})},`${r.url}-${d}`))})]}),e.jsx("div",{className:"mt-12 pt-8 border-t border-border",children:e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Gostou do artigo? Compartilhe!"}),e.jsxs(p,{onClick:v,variant:"outline",size:"sm",children:[e.jsx(q,{className:"w-4 h-4 mr-2"}),"Compartilhar"]})]}),e.jsx(p,{asChild:!0,className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground",children:e.jsx(l,{to:"/consulta",children:"Agende sua Consulta Gratuita"})})]})})]}),e.jsx("div",{className:"bg-card rounded-xl shadow-lg p-6 mt-8",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:e.jsx("span",{className:"text-2xl font-bold text-primary",children:"NB"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-card-foreground",children:t.author}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Advogada especialista em Direito Previdenciário, dedicada a ajudar pessoas a conquistarem seus direitos junto ao INSS."})]})]})}),g.length>0&&e.jsxs("div",{className:"mt-12",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-6",children:"Artigos Relacionados"}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:g.map(r=>e.jsxs(l,{to:`/blog/${r.slug}`,className:"bg-card rounded-lg shadow p-4 hover:shadow-lg transition-shadow",children:[e.jsx("h3",{className:"font-bold text-card-foreground mb-2 line-clamp-2",children:r.title}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:r.excerpt})]},r.id))})]})]})}),e.jsx(y,{})]})]})};export{ae as default};