PageSourceSearch

https://culi.app/assets/UiPagination-BY9URqLv.js

js culi.app collected 2026-10-02 16:08:34 UTC 3,966 bytes, 1 lines download raw bytes

1import{N as e,_ as t,c as n,d as r,g as i,h as a,i as o,j as s,k as c,l,mt as u,pt as d,q as f,s as p,t as m,u as h,z as g}from"./_plugin-vue_export-helper-Dwbx0cl6.js";import{T as _}from"./app-BH4C3wqi.js";import{t as v}from"./IconArrowRight-BS6N4MsZ.js";import"./culi-logo-Ux-VwnBD.js";import{t as y}from"./appBackdrop-DIS3hlK8.js";var b={key:0,class:`article-card__hero`},x=[`src`,`alt`],S=[`src`],C={key:2,class:`article-card__hero article-card__hero--fallback`},w={class:`article-card__body`},T={class:`article-card__meta`},E={key:0,class:`article-card__badge`},D={class:`article-card__type`},O=[`datetime`],k={class:`article-card__title`},A={key:0,class:`article-card__excerpt`},j={class:`article-card__cta`},M=m(t({__name:`ArticleCard`,props:{article:{}},setup(t){let o=t;function s(e){return e?new Date(e).toLocaleDateString(`en-US`,{year:`numeric`,month:`short`,day:`numeric`}):``}function p(e){return e.replace(/_/g,` `)}function m(){return _([o.article.hero_image_url])}function M(){return _([o.article.app?.preview_webp,o.article.app?.preview_fallback])}return(o,_)=>{let N=e(`RouterLink`);return c(),l(N,{to:`/articles/${t.article.slug}/`,class:`article-card`},{default:g(()=>[m()?(c(),r(`div`,b,[n(`img`,{src:m()??``,alt:t.article.title,class:`article-card__hero-img`,loading:`lazy`,decoding:`async`,width:`800`,height:`450`},null,8,x)])):M()?(c(),r(`div`,{key:1,class:`article-card__hero article-card__hero--app`,style:d({background:f(y)(t.article.app)})},[n(`img`,{src:M()??``,alt:``,class:`article-card__shot`,loading:`lazy`,decoding:`async`,width:`320`,height:`694`},null,8,S)],4)):(c(),r(`div`,C,[..._[0]||=[n(`img`,{src:`/images/culi-logo.png`,alt:`Culi`,class:`article-card__logo`,loading:`lazy`,decoding:`async`},null,-1)]])),n(`div`,w,[n(`div`,T,[t.article.app?(c(),r(`span`,E,u(t.article.app.name),1)):h(``,!0),n(`span`,D,u(p(t.article.article_type)),1),t.article.published_at?(c(),r(`time`,{key:1,datetime:t.article.published_at},u(s(t.article.published_at)),9,O)):h(``,!0)]),n(`h2`,k,u(t.article.title),1),t.article.excerpt?(c(),r(`p`,A,u(t.article.excerpt),1)):h(``,!0),n(`span`,j,[_[1]||=a(` Read article `,-1),i(v)])])]),_:1},8,[`to`])}}}),[[`__scopeId`,`data-v-150ba9fe`]]),N={key:0,class:`pagination`,"aria-label":`Blog pages`},P={key:1,class:`pagination__edge is-disabled`,"aria-hidden":`true`},F={class:`pagination__pages`},I={key:0,class:`pagination__gap`,"aria-hidden":`true`},L={key:2,class:`pagination__num is-current`,"aria-current":`page`},R={key:3,class:`pagination__edge is-disabled`,"aria-hidden":`true`},z=m(t({__name:`UiPagination`,props:{currentPage:{},lastPage:{},basePath:{default:`/articles`}},setup(t){let d=t;function f(e){return e<=1?`${d.basePath}/`:`${d.basePath}/page/${e}/`}let m=p(()=>d.currentPage>1?d.currentPage-1:null),_=p(()=>d.currentPage<d.lastPage?d.currentPage+1:null),y=p(()=>{let e=d.lastPage,t=d.currentPage;if(e<=7)return Array.from({length:e},(e,t)=>t+1);let n=[1],r=Math.max(2,t-1),i=Math.min(e-1,t+1);r>2&&n.push(null);for(let e=r;e<=i;e++)n.push(e);return i<e-1&&n.push(null),n.push(e),n});return(d,p)=>{let b=e(`RouterLink`);return t.lastPage>1?(c(),r(`nav`,N,[m.value?(c(),l(b,{key:0,to:f(m.value),class:`pagination__edge pagination__edge--prev`,rel:`prev`},{default:g(()=>[i(v),p[0]||=n(`span`,null,`Previous`,-1)]),_:1},8,[`to`])):(c(),r(`span`,P,[i(v),p[1]||=n(`span`,null,`Previous`,-1)])),n(`ul`,F,[(c(!0),r(o,null,s(y.value,(e,n)=>(c(),r(`li`,{key:e??`gap-${n}`},[e===null?(c(),r(`span`,I,`…`)):e===t.currentPage?(c(),r(`span`,L,u(e),1)):(c(),l(b,{key:1,to:f(e),class:`pagination__num`,"aria-label":`Page ${e}`},{default:g(()=>[a(u(e),1)]),_:2},1032,[`to`,`aria-label`]))]))),128))]),_.value?(c(),l(b,{key:2,to:f(_.value),class:`pagination__edge pagination__edge--next`,rel:`next`},{default:g(()=>[p[2]||=n(`span`,null,`Next`,-1),i(v)]),_:1},8,[`to`])):(c(),r(`span`,R,[p[3]||=n(`span`,null,`Next`,-1),i(v)]))])):h(``,!0)}}}),[[`__scopeId`,`data-v-2a9b270f`]]);export{M as n,z 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.