PageSourceSearch

https://account.ilmessaggero.it/assets/Paginator-Bi6ARBma.js

js ilmessaggero.it collected 2026-09-24 08:32:48 UTC 1,377 bytes, 1 lines download raw bytes

1import{r as e,j as t}from"./index-r-KClxtY.js";const s=s=>{const[a,i]=e.useState(0),[l,n]=e.useState(1),[c,r]=e.useState(0),[h,m]=e.useState(0),o=e=>{i(e)};return e.useEffect((()=>{const e=Math.ceil(s.items.length/s.itemsPerPage);m(e),i(0)}),[s.items]),e.useEffect((()=>{const e=a*s.itemsPerPage,t=e+s.itemsPerPage,i=s.items.slice(e,t);let l=Math.max(0,a-2),c=Math.min(h,a+3);0===l&&(c=Math.min(h,5)),c===h&&(l=Math.max(0,h-5)),n(l),r(c),s.setItems(i)}),[a,h,s.items]),t.jsx(t.Fragment,{children:h>1&&t.jsxs("div",{className:"Paginator-wrapper",children:[0!==a&&t.jsx("button",{onClick:()=>o(0),className:"first-page",children:t.jsx("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.95457 4.00023L4.5 6.54568L3.77273 7.27295L0.5 4.00023L3.77273 0.727555L4.5 1.45482L1.95457 4.00023Z",fill:"black"})})}),Array.from({length:c-l},((e,t)=>l+t)).map((e=>t.jsx("button",{onClick:()=>o(e),className:"Paginator-page ".concat(a==e?"active":""),children:e+1},e))),a!==h-1&&t.jsx("button",{onClick:()=>o(h-1),className:"last-page",children:t.jsx("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.04543 4.00026L0.5 1.45481L1.22727 0.727539L4.5 4.00026L1.22727 7.27293L0.5 6.54567L3.04543 4.00026Z",fill:"black"})})})]})})};export{s as default};

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.