1import{c as n,M as o,r as i,j as r,L as c,A as d}from"./index-gxJdLg_6.js";import{M as l,r as m}from"./index-DIx27tTy.js";const x=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],p=n("external-link",x);function h(e){try{const t=new URL(e);return t.host==="stopantisemitism.org"||t.host==="www.stopantisemitism.org"?`/api/public/media/${t.host}${t.pathname}`:e}catch{return e}}function u(e){return e.replace(/!\[([^\]]*)\]\((https?:\/\/[^)\s]+)\)/g,(t,s,a)=>`})`)}function g(e){return e.replace(/^(\s*[\\*]+){3,}\s*$/gm,` 2 3`)}function j(){const{page:e}=o.useLoaderData(),t=i.useMemo(()=>e.markdown?g(u(e.markdown)):null,[e.markdown]);return r.jsxs("main",{className:"mx-auto max-w-3xl px-4 py-10",children:[r.jsxs(c,{to:"/archive",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-brand-red hover:underline",children:[r.jsx(d,{className:"h-4 w-4"})," Archive index"]}),r.jsxs("article",{className:"mt-6",children:[r.jsx("h1",{className:"text-3xl font-bold leading-tight md:text-4xl",children:e.title||e.path||"Untitled"}),e.description&&r.jsx("p",{className:"mt-3 text-base text-muted-foreground",children:e.description}),t?r.jsx("div",{className:"prose prose-neutral mt-8 max-w-none dark:prose-invert prose-img:rounded-lg prose-a:text-brand-red",children:r.jsx(l,{remarkPlugins:[m],children:t})}):r.jsx("p",{className:"mt-8 text-muted-foreground",children:"No content was captured for this page."}),r.jsxs("div",{className:"mt-10 border-t border-border pt-6 text-xs text-muted-foreground",children:[r.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 font-semibold text-brand-red hover:underline",children:["Original source ",r.jsx(p,{className:"h-3.5 w-3.5"})]}),r.jsxs("span",{className:"ml-3",children:["Mirrored ",new Date(e.scraped_at).toLocaleDateString()]})]})]})]})}export{j 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.