1import{a as p,b as e}from"/assets/chunk-2NSVEFZM.js";import"/assets/chunk-CHN4SOJY.js";import{a as b,b as f}from"/assets/chunk-DQJ2H2J7.js";import{a as c}from"/assets/chunk-75IOHBDA.js";import{a as d,d as s}from"/assets/chunk-RRSFTEFV.js";import{k as n,n as u}from"/assets/chunk-WECGUXN6.js";import"/assets/chunk-RQKCK5XP.js";import"/assets/chunk-2GSQMO5K.js";import"/assets/chunk-HRMUJI4G.js";import"/assets/chunk-K7GVSPCM.js";import{b as i}from"/assets/chunk-4Z4DMVOV.js";import{a as m}from"/assets/chunk-J3IT7JTE.js";import{c as l}from"/assets/chunk-3P2IUJ3S.js";var t=l(m()),A=({rating:r})=>(0,t.jsx)("div",{className:"inline-flex items-center gap-0.5 text-amber-500",children:Array.from({length:5},(o,a)=>(0,t.jsx)(u,{className:`h-4 w-4 ${a<r?"fill-current":"opacity-30"}`},a))}),R=({review:r})=>{let o=d()==="marketing",a=c(r.source_url);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{title:r.author_name??`Review #${r.id}`,backHref:"/admin/reviews",actions:(0,t.jsx)(s,{asChild:!0,children:(0,t.jsxs)("a",{href:`/admin/reviews/${r.id}/edit`,children:[(0,t.jsx)(n,{className:"h-4 w-4"})," Edit"]})})}),(0,t.jsx)(p,{children:(0,t.jsxs)("dl",{children:[(0,t.jsx)(e,{label:"Quote",children:(0,t.jsx)("blockquote",{className:i("border-l-4 pl-3 italic",o?"border-marketing-border text-marketing-fg":"border-gray-200"),children:r.quote})}),(0,t.jsx)(e,{label:"Author",children:r.author_name}),(0,t.jsx)(e,{label:"Role",children:r.author_role}),(0,t.jsx)(e,{label:"Rating",children:(0,t.jsx)(A,{rating:r.rating})}),(0,t.jsx)(e,{label:"Position",children:r.position}),(0,t.jsx)(e,{label:"Featured",children:r.featured?"Yes":"No"}),(0,t.jsx)(e,{label:"Source URL",children:a?(0,t.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"text-hyperpad-green underline",children:a}):r.source_url?(0,t.jsxs)("span",{className:"text-warning",children:[r.source_url," (invalid URL)"]}):null}),(0,t.jsx)(e,{label:"Author avatar",children:r.author_avatar_url&&(0,t.jsx)("img",{src:r.author_avatar_url,alt:"",className:i("h-20 w-20 rounded-full border object-cover",o?"border-marketing-border":"border-gray-200")})})]})})]})},g=r=>(0,t.jsx)(b,{children:(0,t.jsx)(R,{...r})}),x=g;export{x 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.