(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2557],{66697:function(e,t,n){Promise.resolve().then(n.t.bind(n,231,23)),Promise.resolve().then(n.bind(n,41423))},16463:function(e,t,n){"use strict";var s=n(71169);n.o(s,"useParams")&&n.d(t,{useParams:function(){return s.useParams}}),n.o(s,"usePathname")&&n.d(t,{usePathname:function(){return s.usePathname}}),n.o(s,"useRouter")&&n.d(t,{useRouter:function(){return s.useRouter}}),n.o(s,"useSearchParams")&&n.d(t,{useSearchParams:function(){return s.useSearchParams}})},60291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return s}});let s=n(99920)._(n(2265)).default.createContext(null)},41423:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var s=n(57437),a=n(16463),r=e=>{let{page:t,count:n}=e,r=(0,a.useRouter)(),o=e=>{let t=new URLSearchParams(window.location.search);t.set("page",e.toString()),r.push("".concat(window.location.pathname,"?").concat(t))};return(0,s.jsxs)("div",{className:"p-4 flex items-center justify-between text-gray-500",children:[(0,s.jsx)("button",{disabled:!(10*(t-1)>0),className:"py-2 px-4 rounded-md bg-slate-200 text-xs font-semibold disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>{o(t-1)},children:"Prev"}),(0,s.jsx)("div",{className:"flex items-center gap-2 text-sm",children:Array.from({length:Math.ceil(n/10)},(e,n)=>{let a=n+1;return(0,s.jsx)("button",{className:"px-2 rounded-sm ".concat(t===a?"bg-lamaSky":""),onClick:()=>{o(a)},children:a},a)})}),(0,s.jsx)("button",{className:"py-2 px-4 rounded-md bg-slate-200 text-xs font-semibold disabled:opacity-50 disabled:cursor-not-allowed",disabled:!(10*(t-1)+10<n),onClick:()=>{o(t+1)},children:"Next"})]})}}},function(e){e.O(0,[231,2971,7023,1744],function(){return e(e.s=66697)}),_N_E=e.O()}]);