PageSourceSearch

https://hooandja.ee/assets/Paginator-MdNoR6UQ.js

js hooandja.ee collected 2026-10-02 07:20:41 UTC 649 bytes, 1 lines download raw bytes

1import{g as m,r as i,j as P}from"./index-DB1uCt0m.js";import{a3 as l}from"./index-CIpd-Oln.js";import{D as h}from"./pagination-BkhKLdbt.js";import{u as C}from"./useTranslation-D9fYHQVN.js";const j=t=>{const{t:n}=C("public"),[o,r]=m(),s=a=>{o.set("page",a.toString()),r(o)},e=t.pageSize||h,g=i.useMemo(()=>{let a;if(t.totalCount){const u=Math.min(t.currentPage*e+1,t.totalCount),c=Math.min((t.currentPage+1)*e,t.totalCount);a=n("general.pagination.total",{from:u,to:c,total:t.totalCount})}return a},[t.totalCount,t.currentPage,e,n]);return P.jsx(l,{currentPage:t.currentPage,onPageChange:s,totalCountText:g,totalPages:t.totalPages})};export{j 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.