PageSourceSearch

https://production.assets.hyperpad.com/assets/AdminBlogPostShow-JI3TEFIW.js

js hyperpad.com collected 2026-09-24 19:51:21 UTC 3,557 bytes, 2 lines download raw bytes

1import{b as A}from"/assets/chunk-6BXJWALJ.js";import{a as w,b as a}from"/assets/chunk-FYRF7FWI.js";import{b as _}from"/assets/chunk-7L5LGEZY.js";import{a as o}from"/assets/chunk-7AE2KGNK.js";import"/assets/chunk-CHN4SOJY.js";import{a as c,b as p}from"/assets/chunk-7WSJ55YL.js";import{j as u,r as b,u as f}from"/assets/chunk-YGNFM6WR.js";import"/assets/chunk-RQKCK5XP.js";import"/assets/chunk-2GSQMO5K.js";import"/assets/chunk-HRMUJI4G.js";import"/assets/chunk-K7GVSPCM.js";import{b as m}from"/assets/chunk-4Z4DMVOV.js";import{a as g}from"/assets/chunk-J3IT7JTE.js";import{c as s}from"/assets/chunk-3P2IUJ3S.js";var e=s(g()),h=(t,i)=>t?.languages?.find(l=>l.value===i)?.label??i,R=(t,i)=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("bdi",{children:t}),` (#${i})`]}),y=({blog_post:t,options:i})=>{let l=b()==="marketing",n=t.language_versions??[],d=n.find(r=>r.original);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{title:t.title,backHref:"/admin/blog_posts",actions:(0,e.jsx)(f,{asChild:!0,children:(0,e.jsxs)("a",{href:`/admin/blog_posts/${t.id}/edit`,children:[(0,e.jsx)(u,{className:"h-4 w-4"})," Edit"]})})}),(0,e.jsx)(w,{children:(0,e.jsxs)("dl",{children:[(0,e.jsx)(a,{label:"Title",children:t.title}),(0,e.jsx)(a,{label:"Slug",children:(0,e.jsx)("code",{className:"text-xs",children:t.slug})}),(0,e.jsx)(a,{label:"Excerpt",children:t.excerpt}),(0,e.jsx)(a,{label:"User",children:t.user_name??"\u2014"}),(0,e.jsx)(a,{label:"Category",children:t.category_name??"None"}),(0,e.jsx)(a,{label:"Labels",children:(0,e.jsx)(A,{labels:t.labels??[],emptyText:"None"})}),(0,e.jsx)(a,{label:"Language",children:h(i,t.language??"en")}),(0,e.jsx)(a,{label:"Translation of",children:t.translation_of_id!=null?(0,e.jsx)("a",{href:`/admin/blog_posts/${t.translation_of_id}`,className:"text-hyperpad-green underline",children:d?R(d.title,d.id):`Post #${t.translation_of_id}`}):"None. This post isn't a translation."}),(0,e.jsx)(a,{label:"Other versions",children:n.length>0?(0,e.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(r=>(0,e.jsxs)("li",{children:[`${h(i,r.language)}: `,(0,e.jsx)("a",{href:`/admin/blog_posts/${r.id}`,className:"text-hyperpad-green underline",children:R(r.title,r.id)}),r.original&&" (original)"]},r.id))}):"None"}),(0,e.jsx)(a,{label:"Read time",children:t.read_time_minutes?`${t.read_time_minutes} min`:null}),(0,e.jsx)(a,{label:"Status",children:t.published_at?(0,e.jsx)(o,{children:"Published"}):(0,e.jsx)(o,{variant:"secondary",children:"Draft"})}),(0,e.jsx)(a,{label:"Featured",children:t.featured?"Yes":"No"}),(0,e.jsx)(a,{label:"Published at",children:_(t.published_at)}),(0,e.jsx)(a,{label:"Redirect",children:t.redirect_url?(0,e.jsxs)("span",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)(o,{variant:"secondary",children:t.redirect_status===302?"302 (temporary)":"301 (permanent)"}),(0,e.jsx)("a",{href:t.redirect_url,target:"_blank",rel:"noreferrer",className:"break-all text-hyperpad-green underline",children:t.redirect_url})]}):"None. The post shows its own page."}),(0,e.jsx)(a,{label:"Featured image",children:t.featured_image?.original&&(0,e.jsx)("img",{src:t.featured_image.original,alt:"",className:m("max-w-xs rounded border",l?"border-marketing-border":"border-gray-200")})}),(0,e.jsx)(a,{label:"Body",children:t.body&&(0,e.jsx)("pre",{className:m("max-h-96 overflow-auto whitespace-pre-wrap rounded p-3 font-mono text-xs",l?"bg-marketing-surface text-marketing-fg":"bg-gray-50"),children:t.body})})]})})]})},x=t=>(0,e.jsx)(c,{children:(0,e.jsx)(y,{...t})}),v=x;export{v as default};
2

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.