1import{U as m,E as r,j as e,L as o,C as d,I as c}from"./index-D3hGzRGa.js";import{C as i}from"./chevron-right-ChCNb7Af.js";import{U as p}from"./user-qS7fPrEg.js";function b(){const{post:t}=m.useLoaderData(),a=`${r}/blogs/${t.slug}`,l={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:r},{"@type":"ListItem",position:2,name:"Patient Resources",item:`${r}/patient-resources`},{"@type":"ListItem",position:3,name:"Blog",item:`${r}/blogs`},{"@type":"ListItem",position:4,name:t.title,item:a}]},n={"@context":"https://schema.org","@type":"Article",headline:t.title,description:t.metaDescription??t.summary,image:t.image?[t.image]:[],author:{"@type":"Organization",name:t.author},publisher:{"@type":"Organization",name:"MedSurg Urgent Care",logo:{"@type":"ImageObject",url:`${r}/medsurg-logo.png`}},datePublished:t.publishedAt,dateModified:t.updatedAt??t.publishedAt,mainEntityOfPage:{"@type":"WebPage","@id":a}};return e.jsxs(e.Fragment,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),e.jsx("nav",{"aria-label":"Breadcrumb",className:"bg-surface border-b border-border",children:e.jsxs("div",{className:"container-page py-3 text-sm text-muted-foreground flex items-center gap-1.5 flex-wrap",children:[e.jsx(o,{to:"/",className:"hover:text-foreground",children:"Home"}),e.jsx(i,{className:"h-3.5 w-3.5"}),e.jsx(o,{to:"/patient-resources",className:"hover:text-foreground",children:"Patient Resources"}),e.jsx(i,{className:"h-3.5 w-3.5"}),e.jsx(o,{to:"/blogs",className:"hover:text-foreground",children:"Blog"}),e.jsx(i,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"text-foreground font-medium truncate max-w-[200px] sm:max-w-xs",children:t.title})]})}),e.jsxs("article",{className:"container-page py-12 md:py-16 max-w-3xl",children:[e.jsx("span",{className:"pill",children:t.category}),e.jsx("h1",{className:"mt-4 text-3xl md:text-4xl lg:text-5xl font-bold leading-tight",children:t.title}),e.jsxs("div",{className:"mt-5 flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(d,{className:"h-4 w-4"}),x(t.publishedAt)]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(p,{className:"h-4 w-4"}),t.author]})]}),t.image&&e.jsx("img",{src:t.image,alt:t.title,width:1200,height:675,className:"mt-8 w-full rounded-xl border border-border object-cover"}),e.jsx("div",{className:`mt-8 max-w-none text-foreground leading-relaxed 2 [&_h2]:text-xl [&_h2]:font-bold [&_h2]:mt-8 [&_h2]:mb-3 3 [&_p]:mb-4 4 [&_a]:text-primary [&_a]:underline 5 [&_table]:w-full [&_table]:my-6 [&_table]:text-sm [&_table]:border [&_table]:border-border 6 [&_th]:border [&_th]:border-border [&_th]:bg-surface [&_th]:p-2 [&_th]:text-left 7 [&_td]:border [&_td]:border-border [&_td]:p-2 8 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:space-y-1 [&_ul]:mb-4 9 [&_li]:mb-1`,dangerouslySetInnerHTML:{__html:t.content}}),e.jsxs("div",{className:"mt-12 pt-8 border-t border-border",children:[e.jsx("h2",{className:"text-xl font-bold",children:"More from the blog"}),e.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:c.filter(s=>s.slug!==t.slug).slice(0,2).map(s=>e.jsx(o,{to:"/blogs/$slug",params:{slug:s.slug},className:"card-surface p-4 text-sm font-medium hover:border-primary/40",children:s.title},s.slug))})]})]})]})}function x(t){const[a,l,n]=t.split("-").map(Number);return new Date(Date.UTC(a,(l??1)-1,n??1)).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}export{b as component};
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.