1import{B as e,I as t,w as n,z as r}from"./chunk-6CSD65Y2-D6zLy3dp.js";import{t as i}from"./jsx-runtime-BGLTrfZy.js";import{t as a}from"./nonce-CWOxB_-x.js";import{t as o}from"./route-error-oT57U1b3.js";import{t as s}from"./content-BjTwqayj.js";var c=i();function l({data:e}){let t=e?.post;if(!t)return[{title:`Post Not Found`}];let n=t.seo_description||t.excerpt||``,r=t.og_image||(t.cover_image?`/api/image/stream?key=${encodeURIComponent(t.cover_image)}`:null),i=e?.origin?`${e.origin}/logs/${t.slug}`:``,a=[{title:`${t.title} | Domdhi`},{property:`og:title`,content:t.title}];return n&&(a.push({name:`description`,content:n}),a.push({property:`og:description`,content:n})),r&&a.push({property:`og:image`,content:r}),a.push({property:`og:type`,content:`article`}),a.push({name:`twitter:card`,content:r?`summary_large_image`:`summary`}),a.push({name:`twitter:title`,content:t.title}),n&&a.push({name:`twitter:description`,content:n}),r&&a.push({name:`twitter:image`,content:r}),i&&(a.push({tagName:`link`,rel:`canonical`,href:i}),a.push({property:`og:url`,content:i})),a.push({property:`og:site_name`,content:`Domdhi`}),a.push({name:`robots`,content:`index, follow`}),t.published_at&&a.push({name:`article:published_time`,content:t.published_at}),a}var u=r(function({loaderData:e}){let{post:t,isAdmin:n,readMinutes:r,nextPosts:i,articleJsonLd:o}=e,l=a();return(0,c.jsxs)(c.Fragment,{children:[o?(0,c.jsx)(`script`,{type:`application/ld+json`,nonce:l,dangerouslySetInnerHTML:{__html:JSON.stringify(o).replace(/</g,`\\u003c`)}}):null,(0,c.jsx)(s,{post:t,readMinutes:r,nextPosts:i,isAdmin:n,backPath:`/logs`})]})}),d=e(function(){let e=t(),r=`An unexpected error occurred`,i=``;return n(e)?(r=e.status===404?`Page not found`:`Something went wrong`,i=o(e)):e instanceof Error&&(r=`Error loading Post`,i=``),(0,c.jsxs)(`div`,{className:`bg-panel border-2 border-rose shadow-brutal-rose p-8 relative m-6`,children:[(0,c.jsx)(`div`,{className:`absolute -top-3 left-4 bg-rose text-black text-[10px] font-bold px-2 border-2 border-black`,children:`SYSTEM_ERROR`}),(0,c.jsx)(`h1`,{className:`font-mono font-bold text-2xl text-rose mb-2`,children:r}),i&&(0,c.jsx)(`p`,{className:`text-gray-400 text-sm`,children:i})]})});export{d as ErrorBoundary,u as default,l as meta};
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.