PageSourceSearch

https://vgtopup.com/_nuxt/BQn-dgTq.js

js vgtopup.com collected 2026-10-04 14:22:01 UTC 2,057 bytes, 1 lines download raw bytes

1import{_ as d}from"./BGvDbrPL.js";import{d as y,a as b,g as l,l as c,m as g,k as m,F as f,r as k,i as v,q as L,o,j as P,t as A,n as _}from"./D95BS4l-.js";const x=18;function $(t){const e=Array.isArray(t)?t[0]:t;if(e==null||e==="")return 1;const u=String(e);return/^[1-9]\d*$/.test(u)?Number(u):null}function j(t){return(Array.isArray(t)?t[0]:t)==="1"}function p(t,e){return e>1?`${t}/${e}`:t}function B(t,e=x){return Math.ceil((t||0)/e)}function E(t,e,u=x){if(!Number.isInteger(t)||t<1)return!0;if(t===1)return!1;const i=B(e,u);return i<1||t>i}const C={key:0,class:"flex items-center justify-center gap-2 mt-4"},N={key:0,class:"px-2 text-gray-light"},S=y({__name:"Pagination",props:{currentPage:{},totalPages:{},basePath:{}},setup(t){const e=t,u=b();function i(r){return u.$localePath(p(e.basePath,r))}const h=L(()=>{const r=[],a=e.totalPages,s=e.currentPage;if(a<=7){for(let n=1;n<=a;n++)r.push(n);return r}r.push(1),s>3&&r.push("...");for(let n=Math.max(2,s-1);n<=Math.min(a-1,s+1);n++)r.push(n);return s<a-2&&r.push("..."),r.push(a),r});return(r,a)=>{const s=d;return t.totalPages>1&&t.currentPage>=1&&t.currentPage<=t.totalPages?(o(),l("nav",C,[t.currentPage>1?(o(),c(s,{key:0,to:i(t.currentPage-1),external:!0,class:"rounded-lg bg-gray-dark px-3 py-2 text-sm text-white transition hover:bg-bg-hover"},{default:g(()=>[...a[0]||(a[0]=[P(" ← ",-1)])]),_:1},8,["to"])):m("",!0),(o(!0),l(f,null,k(v(h),n=>(o(),l(f,{key:n},[n==="..."?(o(),l("span",N,"...")):(o(),c(s,{key:1,to:i(n),external:!0,class:_(["rounded-lg px-3 py-2 text-sm transition",n===t.currentPage?"bg-main text-white":"bg-gray-dark text-white hover:bg-bg-hover"])},{default:g(()=>[P(A(n),1)]),_:2},1032,["to","class"]))],64))),128)),t.currentPage<t.totalPages?(o(),c(s,{key:1,to:i(t.currentPage+1),external:!0,class:"rounded-lg bg-gray-dark px-3 py-2 text-sm text-white transition hover:bg-bg-hover"},{default:g(()=>[...a[1]||(a[1]=[P(" → ",-1)])]),_:1},8,["to"])):m("",!0)])):m("",!0)}}}),F=Object.assign(S,{__name:"SharedPagination"});export{x as B,F as _,E as a,j as i,B as l,$ as p};

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.