1import{t as e}from"./jsx-runtime-DUAcabCT.js";import{t}from"./navigation-Yl6DPjLe.js";import{n,r}from"./react-B2zFo2ZA.js";import{t as i}from"./arrow-right-BgP9bWOU.js";import{t as a}from"./arrow-up-right-YG1RWsbc.js";import{s as o,t as s}from"./header-Bk924Ei-.js";import{t as c}from"./music-2-BVIUpcIU.js";import{t as l}from"./config-CHg89e9d.js";var u=e();function d({article:e,labels:n,featured:r=!1}){return(0,u.jsxs)(t,{href:e.href,locale:e.locale,className:`blog-card group ${r?`blog-card-featured`:``}`,children:[e.image?(0,u.jsx)(`img`,{src:e.image,alt:e.imageAlt,className:`blog-card-image`,loading:`lazy`}):(0,u.jsxs)(`div`,{className:`blog-card-art`,"aria-hidden":`true`,children:[(0,u.jsx)(c,{size:56,strokeWidth:1}),(0,u.jsx)(`span`,{children:e.category})]}),(0,u.jsxs)(`div`,{className:`blog-card-copy`,children:[(0,u.jsxs)(`div`,{className:`blog-meta`,children:[(0,u.jsx)(`span`,{children:e.category}),(0,u.jsx)(`time`,{dateTime:e.date,children:e.date}),e.locale===`en`&&(0,u.jsx)(`span`,{children:n.english})]}),(0,u.jsx)(`h2`,{children:e.title}),(0,u.jsx)(`p`,{children:e.description}),(0,u.jsxs)(`span`,{className:`blog-read`,children:[n.read,(0,u.jsx)(a,{size:18})]})]})]})}function f({articles:e,labels:t}){return(0,u.jsx)(`main`,{className:`blog-shell`,children:(0,u.jsxs)(`div`,{className:`blog-container`,children:[(0,u.jsxs)(`header`,{className:`blog-index-header`,children:[(0,u.jsx)(`span`,{className:`blog-eyebrow`,children:t.eyebrow}),(0,u.jsx)(`h1`,{children:t.title}),(0,u.jsx)(`p`,{children:t.description})]}),e.length?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d,{article:e[0],labels:t,featured:!0}),e.length>1&&(0,u.jsxs)(`section`,{className:`blog-latest`,children:[(0,u.jsx)(`h2`,{children:t.latest}),(0,u.jsx)(`div`,{className:`blog-grid`,children:e.slice(1).map(e=>(0,u.jsx)(d,{article:e,labels:t},e.href))})]})]}):(0,u.jsx)(`p`,{className:`blog-empty`,children:t.empty})]})})}function p({article:e,related:n,labels:r}){return(0,u.jsx)(`main`,{className:`blog-shell`,children:(0,u.jsxs)(`div`,{className:`blog-container`,children:[(0,u.jsxs)(t,{href:`/blog`,className:`blog-back`,children:[`â `,r.back]}),(0,u.jsxs)(`header`,{className:`blog-article-header`,children:[(0,u.jsx)(`span`,{className:`blog-eyebrow`,children:e.category}),(0,u.jsx)(`h1`,{children:e.title}),(0,u.jsx)(`p`,{children:e.description}),(0,u.jsxs)(`div`,{className:`blog-meta`,children:[(0,u.jsx)(`span`,{children:e.author||r.team}),(0,u.jsx)(`time`,{dateTime:e.date,children:e.date}),e.updatedAt&&e.updatedAt!==e.date&&(0,u.jsxs)(`span`,{children:[r.updated,` `,e.updatedAt]})]})]}),e.image&&(0,u.jsx)(`img`,{className:`blog-cover`,src:e.image,alt:e.imageAlt,fetchPriority:`high`}),(0,u.jsxs)(`div`,{className:`blog-reading-layout`,children:[(0,u.jsx)(`aside`,{className:`blog-toc`,children:(0,u.jsxs)(`details`,{open:!0,children:[(0,u.jsx)(`summary`,{children:r.contents}),(0,u.jsx)(`nav`,{"aria-label":r.contents,children:e.toc.map(e=>(0,u.jsx)(`a`,{href:`#${e.id}`,className:e.depth===3?`blog-toc-nested`:``,children:e.text},e.id))})]})}),(0,u.jsx)(`article`,{className:`blog-prose`,dangerouslySetInnerHTML:{__html:e.html}})]}),(0,u.jsxs)(`section`,{className:`blog-cta`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`h2`,{children:r.ctaTitle}),(0,u.jsx)(`p`,{children:r.ctaDescription})]}),(0,u.jsxs)(t,{href:`/create`,children:[r.cta,(0,u.jsx)(i,{size:18})]})]}),n.length>0&&(0,u.jsxs)(`section`,{className:`blog-latest`,children:[(0,u.jsx)(`h2`,{children:r.related}),(0,u.jsx)(`div`,{className:`blog-grid`,children:n.map(e=>(0,u.jsx)(d,{article:e,labels:r},e.href))})]})]})})}function m({articles:e,article:t,related:i=[]}){let a=r(`blog`),c=n(),d={eyebrow:a(`eyebrow`),title:a(`title`),description:a(`description`),latest:a(`latest`),read:a(`read`),empty:a(`empty`),back:a(`back`),contents:a(`contents`),related:a(`related`),team:`${l.app_name} Team`,ctaTitle:a(`ctaTitle`),ctaDescription:a(`ctaDescription`),cta:a(`cta`),english:c===`zh`?`è±æ`:`English`,updated:a(`updated`)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s,{}),t?(0,u.jsx)(p,{article:t,related:i,labels:d}):(0,u.jsx)(f,{articles:e||[],labels:d}),(0,u.jsx)(o,{})]})}
1export{m as t};
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.