PageSourceSearch

https://briqjournal.com/assets/HomeArticleSearch-B81cUhJx.js

js briqjournal.com collected 2026-09-24 21:58:56 UTC 2,126 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";var r=e(t(),1),i=n();function a({articles:e,locale:t=`tr`}){let[n,a]=(0,r.useState)(``),o=(0,r.useMemo)(()=>{let r=n.trim().toLocaleLowerCase(t===`tr`?`tr-TR`:`en-US`);return r?e.filter(e=>{let n=t===`tr`?e.titleTr:e.titleEn,i=t===`tr`?e.typeTr:e.typeEn;return`${n} ${e.author} ${i}`.toLocaleLowerCase(t===`tr`?`tr-TR`:`en-US`).includes(r)}).slice(0,6):e.slice(0,5)},[e,t,n]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(`div`,{className:`section-heading split-heading`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`section-kicker`,children:t===`tr`?`Arşivden yeni yayınlar`:`Latest from the archive`}),(0,i.jsx)(`h2`,{children:t===`tr`?`Son Makaleler`:`Latest Articles`})]}),(0,i.jsxs)(`label`,{className:`article-search`,children:[(0,i.jsx)(`span`,{className:`sr-only`,children:t===`tr`?`Makalelerde ara`:`Search articles`}),(0,i.jsx)(`input`,{value:n,onChange:e=>a(e.target.value),placeholder:t===`tr`?`Başlık veya yazar ara`:`Search title or author`}),(0,i.jsx)(`span`,{"aria-hidden":`true`,children:`⌕`})]})]}),(0,i.jsxs)(`div`,{className:`article-list`,children:[o.map((e,n)=>(0,i.jsxs)(`a`,{className:`article-row`,href:`${t===`tr`?`/tr/makaleler`:`/en/articles`}/${t===`en`?e.slugEn:e.slug}`,children:[(0,i.jsx)(`span`,{className:`article-number`,children:String(n+1).padStart(2,`0`)}),(0,i.jsxs)(`span`,{className:`article-meta`,children:[(0,i.jsx)(`small`,{children:t===`tr`?e.typeTr:e.typeEn}),(0,i.jsx)(`b`,{children:e.author})]}),(0,i.jsx)(`span`,{className:`article-title`,children:t===`tr`?e.titleTr:e.titleEn}),(0,i.jsx)(`span`,{className:`article-arrow`,children:`↗︎`})]},e.slug)),o.length===0&&(0,i.jsx)(`p`,{className:`empty-state`,children:t===`tr`?`Bu aramayla eşleşen içerik bulunamadı.`:`No article matches this search.`})]}),(0,i.jsxs)(`a`,{className:`underlined-link`,href:t===`tr`?`/tr/makaleler`:`/en/articles`,children:[t===`tr`?`Tüm makaleleri görüntüle`:`View all articles`,` `,(0,i.jsx)(`span`,{children:`→︎`})]})]})}export{a as HomeArticleSearch};

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.