PageSourceSearch

https://chesswatch.com/_nuxt/DN3euNfD.js

js chesswatch.com collected 2026-10-04 04:31:04 UTC 2,241 bytes, 1 lines download raw bytes

1import{d as y,u as _,f as s,g as p,F as m,r as P,k as w,x as v,e as r,h as C,n as F,t as M,z as A,_ as N}from"./COr6DqSn.js";const $={key:0,class:"flex flex-wrap items-center justify-center gap-1.5 pt-4","aria-label":"Pagination"},B=["disabled"],L={key:0,class:"flex h-9 items-center px-2 text-sm text-secondary-dark"},O=["aria-label"],V=["aria-current","onClick"],j=["disabled"],z=y({__name:"AppPagination",props:{page:{},totalPages:{},lockedPageFrom:{default:0}},emits:["set-page"],setup(o,{emit:b}){const l=o,x=b,f=A(()=>{const t=l.page,a=l.totalPages;if(a<=7)return Array.from({length:a},(i,k)=>k+1);const n=[1];t>3&&n.push("...");const e=Math.max(2,t-1),g=Math.min(a-1,t+1);for(let i=e;i<=g;i++)n.push(i);return t<a-2&&n.push("..."),n.push(a),n});function d(t){return l.lockedPageFrom>0&&t>=l.lockedPageFrom}function c(t){if(d(t)){u();return}x("set-page",t)}const h=_("contactModalOpen");function u(){h.value=!0}return(t,a)=>{const n=N;return o.totalPages>1?(r(),s("nav",$,[p("button",{type:"button",class:"h-9 rounded-lg bg-row px-3 text-sm font-medium transition-colors hover:bg-secondary-light/40 disabled:cursor-not-allowed disabled:opacity-40",disabled:o.page<=1,"aria-label":"Previous page",onClick:a[0]||(a[0]=e=>c(o.page-1))}," ← ",8,B),(r(!0),s(m,null,P(w(f),e=>(r(),s(m,{key:e},[e==="..."?(r(),s("span",L,"…")):d(e)?(r(),s("button",{key:1,type:"button",class:"h-9 min-w-9 rounded-lg bg-row px-3 text-sm font-medium text-secondary-dark/50 transition-colors","aria-label":`Page ${e} (locked)`,onClick:u},[C(n,{name:"lock-fill",class:"mx-auto h-3 w-3","aria-label":"Locked"})],8,O)):(r(),s("button",{key:2,type:"button",class:F(["h-9 min-w-9 rounded-lg px-3 text-sm font-medium transition-colors",e===o.page?"bg-primary text-white":"bg-row text-black_base hover:bg-secondary-light/40"]),"aria-current":e===o.page?"page":void 0,onClick:g=>c(e)},M(e),11,V))],64))),128)),p("button",{type:"button",class:"h-9 rounded-lg bg-row px-3 text-sm font-medium transition-colors hover:bg-secondary-light/40 disabled:cursor-not-allowed disabled:opacity-40",disabled:o.page>=o.totalPages,"aria-label":"Next page",onClick:a[1]||(a[1]=e=>c(o.page+1))}," → ",8,j)])):v("",!0)}}}),D=Object.assign(z,{__name:"AppPagination"});export{D as _};

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.