PageSourceSearch

https://olfawelfare.com/assets/Pagination-BbMZID-2.js

js olfawelfare.com collected 2026-10-04 05:29:51 UTC 1,597 bytes, 1 lines download raw bytes

1import{j as t}from"./index-C9w33Aes.js";import{c as h}from"./utils-COVZBEwX.js";import{b as u}from"./components-CDzpTtjj.js";import{N as p}from"./icons-cQjuprQW.js";function m(n){const[l,c]=u(),{page:a,pages:e}=n,s=[];if(e>4)a<=3?(s.push(1,2,3,4),e>4&&s.push(-1,e)):a>=e-2?(s.push(1,-1),s.push(e-3,e-2,e-1,e)):(s.push(1,-1),s.push(a-1,a,a+1),s.push(-1,e));else for(let r=1;r<=e;r++)s.push(r);const o=r=>{r>0&&r<=e&&(l.set("page",r.toString()),c(l))};return{pageNumbers:s,handleNextPage:()=>o(a+1),handlePageClick:r=>o(r),handlePrevPage:()=>o(a-1)}}function j({paginationInfo:n}){const{page:l,pages:c}=n,{handleNextPage:a,handlePageClick:e,handlePrevPage:s,pageNumbers:o}=m(n);return c<2?null:t.jsxs("div",{className:"my-8 flex items-center justify-center gap-4",children:[t.jsx("button",{onClick:s,disabled:l===1,className:"flex h-12 w-12 items-center justify-center rounded-full border disabled:opacity-30 ltr:rotate-180",children:t.jsx(p,{})}),o.map((i,d)=>i===-1?t.jsxs("span",{className:"mt-4 flex flex-row gap-1.5",children:[t.jsx("div",{className:"h-1 w-1 rounded-full bg-primaryHover opacity-70"}),t.jsx("div",{className:"h-1 w-1 rounded-full bg-primaryHover opacity-70"})]},`ellipsis-${d}`):t.jsx("button",{onClick:()=>e(i),className:h("h-12 w-12 rounded-full border text-sm font-semibold italic",l!==i?"border border-primary text-primary":"bg-primary text-white"),children:i},`page-${i}-${d}`)),t.jsx("button",{onClick:a,disabled:l===c,className:"flex h-12 w-12 items-center justify-center rounded-full border disabled:opacity-30 rtl:rotate-180",children:t.jsx(p,{})})]})}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.