1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98783],{98783:function(i,n,e){"use strict";e.r(n),e.d(n,{Pagination:function(){return x}});var a=e(74512),t=e(32735),r=e(45399),l=e(10921),o=e(44466),s=e(22467);e(17584);let d=function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.pv)("/","".concat(n).concat(i))},c=i=>{let{children:n,kind:e,action:t,...r}=i;return(0,a.jsx)(o.Button,{variant:"ghost",..."link"===e?{...r,type:"link",href:t()}:{...r,type:"button",onClick:t},children:n})},h=i=>{let{mode:n}=i;return(0,a.jsx)(o.Button,{type:"button",title:"eclipse indicator",mode:n,variant:"ghost",fixed:!0,size:"small",disabled:!0,children:"..."})},x=i=>{let{totalPages:n,currentPage:e,offset:o=5,genLinkFn:x=d,kind:p="link",size:u="small",withLabels:m=!1,mobile:g=!1,linkPrefix:j="",mode:f,...b}=i,k=(0,s.DH)("pagination",b),z=(0,t.useMemo)(()=>Math.min(o,n),[o,n]),v=(0,r.uZ)(0,n-z,Math.floor(e-z/2)),M=v+z,w=(0,t.useMemo)(()=>(0,a.jsx)("li",{children:(0,a.jsx)(c,{rel:"prev",title:"Poprzednia strona","aria-label":"Poprzednia strona",kind:p,mode:f,size:u,icon:l.ArrowFacedLeftIcon,iconPosition:"leading",disabled:e<=1,action:()=>x(Math.max(1,e-1),j),children:m&&"Poprzednia"})}),[p,f,u,e,m,x,j]),N=(0,t.useMemo)(()=>(0,a.jsx)("li",{children:(0,a.jsx)(c,{rel:"next",title:"NastÄpna strona","aria-label":"NastÄpna strona",kind:p,mode:f,size:u,icon:l.ArrowFacedRightIcon,iconPosition:"trailing",disabled:e>=n,action:()=>x(Math.min(n,e+1),j),children:m&&"NastÄpna"})}),[p,f,u,e,n,m,x,j]),P=(0,t.useMemo)(()=>(0,a.jsx)("li",{children:(0,a.jsx)(c,{title:"pierwsza strona","aria-label":"pierwsza strona",kind:p,mode:f,size:u,fixed:!0,action:()=>x(1,j),children:"1"},"pagination-first-page")}),[p,f,u,x,j]),F=(0,a.jsxs)(a.Fragment,{children:[v>=1&&P,v>1&&(0,a.jsx)("li",{children:(0,a.jsx)(h,{mode:f})})]}),y=(0,t.useMemo)(()=>(0,a.jsx)("li",{children:(0,a.jsx)(c,{title:"ostatnia strona","aria-label":"ostatnia strona",kind:p,mode:f,size:u,fixed:!0,action:()=>x(n,j),children:n},"pagination-last-page")}),[p,f,u,n,x,j]),_=(0,a.jsxs)(a.Fragment,{children:[M<n-1&&(0,a.jsx)("li",{children:(0,a.jsx)(h,{mode:f})}),M<n&&y]}),A=Array.from({length:z},(i,n)=>{let t=v+1+n,r="Strona ".concat(t);return(0,a.jsx)("li",{children:(0,a.jsx)(c,{title:r,"aria-label":r,"aria-current":e===t||void 0,mode:f,kind:p,size:u,fixed:!0,selected:t===e,action:()=>x(t,j),children:t})},"pagination-page-".concat(t))});return(0,a.jsx)("nav",{role:"navigation","aria-label":"pagination navigation",...k,...b,children:(0,a.jsxs)("ul",{className:"ids-pagination",children:[w,!g&&(0,a.jsxs)(a.Fragment,{children:[F,A,_]}),N]})})}},17584:function(){}}]);
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.