PageSourceSearch

https://www.dantoy.dk/_nuxt/ClLDF8kA.js

js dantoy.dk collected 2026-10-07 14:19:17 UTC 2,077 bytes, 1 lines download raw bytes

1import{d as p,c as m,e as t,F as a,D as i,P as g,E as o,n as l,J as y,K as v,I as f,b,s as h}from"./uCMTlqLf.js";const k={key:0,class:"isolate inline-flex self-center -space-x-px","aria-label":"Pagination"},P={key:0,class:"relative inline-flex items-center px-4 py-2 font-semibold ring-1 ring-inset ring-gray-200"},C=["onClick"],$={key:1,class:"relative inline-flex items-center px-4 py-2 ring-1 ring-inset ring-gray-200"},B=p({__name:"SwPagination",props:{total:{},current:{}},emits:["changePage"],setup(c){const s=c,d=m(()=>{const e=[];for(let r=s.current-3;r<=s.current+3;r++)r>0&&r<=s.total&&e.push(r);return e});return(e,r)=>{const u=h;return e.total>1?(t(),a("nav",k,[i("a",{role:"button",class:o([{"disabled cursor-not-allowed *:text-gray-100":e.current===1,"cursor-pointer hover:bg-gray-50":e.current>1},"relative inline-flex items-center rounded-l-md px-2 py-2 ring-1 ring-inset ring-gray-200"]),onClick:r[0]||(r[0]=n=>e.current!==1&&e.$emit("changePage",e.current-1))},[r[2]||(r[2]=i("span",{class:"sr-only"},"Previous",-1)),g(u,{name:"i-mdi-chevron-left",class:"h-5 w-5","aria-hidden":"true"})],2),e.current>4&&e.total>3?(t(),a("span",P," ... ")):l("",!0),(t(!0),a(y,null,v(b(d),n=>(t(),a("a",{key:n,type:"button","aria-current":"page",class:o(["relative inline-flex items-center px-4 py-2 !no-underline ring-1 ring-inset ring-gray-200",{"disabled !ring-gray-300 text-gray-400 z-20 rounded ring-2":n===e.current,"cursor-pointer hover:bg-gray-50":n!==e.current}]),onClick:w=>e.$emit("changePage",n)},f(n),11,C))),128)),e.total-e.current>2&&e.total>3?(t(),a("span",$," ... ")):l("",!0),i("a",{role:"button",class:o([{"disabled cursor-not-allowed *:text-gray-100":e.current===e.total,"cursor-pointer hover:bg-gray-50":e.total>e.current},"relative inline-flex items-center rounded-e-md px-2 py-2 ring-1 ring-inset ring-gray-200"]),onClick:r[1]||(r[1]=n=>e.current!==e.total&&e.$emit("changePage",e.current+1))},[r[3]||(r[3]=i("span",{class:"sr-only"},"Next",-1)),g(u,{name:"i-mdi-chevron-right",class:"h-5 w-5","aria-hidden":"true"})],2)])):l("",!0)}}});export{B 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.