import{c as b,b as f,r as y,j as e,a as d,B as o,L as a,H as N}from"./index-CdG8kR3s.js";import{F as m}from"./Footer-Dk4ZFtbI.js";import{c as v,u as w,i as k}from"./useBlogArticles-DCXVoj4d.js";import{L,E as _}from"./loader-circle-DdalTZYf.js";import{A}from"./arrow-left-CC_9TxHG.js";import{U as B}from"./user-BtiG8vtA.js";import{C}from"./calendar-BUuw8VQz.js";import{C as P}from"./clock-CMT4KK2C.js";import{M as S}from"./index-CbQ5s2q0.js";import"./map-pin-7Jd8nbT_.js";import"./useQuery-C67zgcbK.js";import"./client-hnwrjGz7.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 D=b("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"}]]),E=s=>new Date(s).toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"}),T=()=>{var n,c;const{slug:s}=f(),{data:t,isLoading:x,error:p}=v(s||""),{data:i}=w(4);y.useEffect(()=>{t!=null&&t.id&&k(t.id)},[t==null?void 0:t.id]);const g=()=>{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!"))},l=(i==null?void 0:i.filter(r=>r.id!==(t==null?void 0:t.id)).slice(0,3))||[];if(x)return e.jsx("div",{className:"min-h-screen bg-muted flex items-center justify-center",children:e.jsx(L,{className:"w-8 h-8 animate-spin text-primary"})});if(p||!t)return e.jsxs("div",{className:"min-h-screen bg-muted",children:[e.jsx(d,{}),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(o,{asChild:!0,children:e.jsx(a,{to:"/blog",children:"Voltar ao Blog"})})]}),e.jsx(m,{})]});const h={"@context":"https://schema.org","@type":"Article",headline:t.title,description:t.meta_description||t.excerpt,image:t.image_url||"https://nathaliabrito.adv.br/og-image.jpg",author:{"@type":"Person",name:t.author,jobTitle:"Advogada Previdenciária",url:"https://nathaliabrito.adv.br"},datePublished:t.published_at,dateModified:t.updated_at,publisher:{"@type":"Organization",name:"Dra. Nathalia Brito - Advogada Previdenciária",url:"https://nathaliabrito.adv.br",logo:{"@type":"ImageObject",url:"https://nathaliabrito.adv.br/logo.png"}},mainEntityOfPage:{"@type":"WebPage","@id":`https://nathaliabrito.adv.br/blog/${t.slug}`},articleSection:((n=t.category)==null?void 0:n.name)||"Direito Previdenciário",keywords:((c=t.keywords)==null?void 0:c.join(", "))||"",wordCount:t.content.split(/\s+/).length,inLanguage:"pt-BR"},u={"@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(N,{children:[e.jsxs("title",{children:[t.title," | Dra. Nathalia Brito"]}),e.jsx("meta",{name:"description",content:t.meta_description||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(h)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(u)})]}),e.jsxs("div",{className:"min-h-screen bg-muted",children:[e.jsx(d,{}),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(a,{to:"/blog",className:"inline-flex items-center text-primary-foreground/80 hover:text-primary-foreground mb-6 transition-colors",children:[e.jsx(A,{className:"w-4 h-4 mr-2"}),"Voltar ao Blog"]}),t.category&&e.jsx(a,{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(B,{className:"w-4 h-4"}),e.jsx("span",{children:t.author})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(C,{className:"w-4 h-4"}),e.jsx("span",{children:E(t.published_at)})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(P,{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(_,{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:[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(S,{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:j})=>e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:j}),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})}),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(o,{onClick:g,variant:"outline",size:"sm",children:[e.jsx(D,{className:"w-4 h-4 mr-2"}),"Compartilhar"]})]}),e.jsx(o,{asChild:!0,className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground",children:e.jsx(a,{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."})]})]})}),l.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:l.map(r=>e.jsxs(a,{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(m,{})]})]})};export{T as default};