PageSourceSearch

https://canyon.eu/_nuxt/J3zjBU8n.js

js canyon.eu collected 2026-09-25 03:05:13 UTC 2,196 bytes, 2 lines download raw bytes

1import{K as N,g as R,h as y,o as i,c as l,d as p,k as f,j as v,e as C,b as g,x as P,f as d,F as k,m as x,l as V,t as q,D as w,E as B}from"./Cs01i0Be.js";const L={key:0,class:"cn-pagination"},D={class:"cn-pagination__block"},E={class:"cn-pagination__nav","aria-label":"Pagination"},I=N({__name:"UiPagination",props:{pageCount:{},currentPage:{default:1},marginPages:{default:1},pageRange:{default:3}},setup(_){const e=_,m=R(),o=y(()=>{const r=Number(e.currentPage);return Number.isInteger(r)&&r>0?r:1}),b=y(()=>{const r=[],s=a=>{const n={index:a,content:a+1,selected:a===o.value-1};r[a]=n};if(e.pageCount<=e.pageRange)for(let a=0;a<e.pageCount;a+=1)s(a);else{const a=Math.floor(e.pageRange/2),n=t=>{const h={index:t,disabled:!0,breakView:!0};r[t]=h};for(let t=0;t<e.marginPages;t+=1)s(t);let u=0;o.value-a>0&&(u=o.value-1-a);let c=u+e.pageRange-1;c>=e.pageCount&&(c=e.pageCount-1,u=c-e.pageRange+1);for(let t=u;t<=c&&t<=e.pageCount-1;t+=1)s(t);u>e.marginPages&&n(u-1),c+1<e.pageCount-e.marginPages&&n(c+1);for(let t=e.pageCount-1;t>=e.pageCount-e.marginPages;t-=1)s(t)}return r});return(r,s)=>{const a=B;return _.pageCount>1?(i(),l("div",L,[p("div",D,[p("nav",E,[o.value!==1?(i(),f(a,{key:0,class:"cn-pagination__prev",to:{query:{...g(m).query,...o.value>2?{page:o.value-1}:{page:void 0}}}},{default:v(()=>[s[0]||(s[0]=p("span",{class:"sr-only"},"Previous",-1)),C(g(P),{name:"chevron-left","aria-hidden":"true"})]),_:1},8,["to"])):d("",!0),(i(!0),l(k,null,x(b.value,n=>(i(),l(k,null,[n?(i(),l(k,{key:0},[n.breakView?(i(),l("span",{key:`${n.content} separator`,class:"cn-pagination__separator"}," ... ")):(i(),f(a,{key:n.content,class:w(["cn-pagination__page",[{"cn-pagination__page--selected":n.selected}]]),to:{query:{...g(m).query,page:n.index>0?n.index+1:void 0}}},{default:v(()=>[V(q(n.content),1)]),_:2},1032,["class","to"]))],64)):d("",!0)],64))),256)),o.value<_.pageCount?(i(),f(a,{key:1,class:"cn-pagination__next",tabindex:"0",to:{query:{...g(m).query,page:o.value+1}}},{default:v(()=>[s[1]||(s[1]=p("span",{class:"sr-only"},"Next",-1)),C(g(P),{name:"chevron-right","aria-hidden":"true"})]),_:1},8,["to"])):d("",!0)])])])):d("",!0)}}});export{I as _};
2//# sourceMappingURL=J3zjBU8n.js.map

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.