(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9066,6129,6618,1952,9381],{87237:function(e,t,s){Promise.resolve().then(s.bind(s,41423))},16463:function(e,t,s){"use strict";var n=s(71169);s.o(n,"useParams")&&s.d(t,{useParams:function(){return n.useParams}}),s.o(n,"usePathname")&&s.d(t,{usePathname:function(){return n.usePathname}}),s.o(n,"useRouter")&&s.d(t,{useRouter:function(){return n.useRouter}}),s.o(n,"useSearchParams")&&s.d(t,{useSearchParams:function(){return n.useSearchParams}})},41423:function(e,t,s){"use strict";s.d(t,{default:function(){return r}});var n=s(57437),a=s(16463),r=e=>{let{page:t,count:s}=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,n.jsxs)("div",{className:"p-4 flex items-center justify-between text-gray-500",children:[(0,n.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,n.jsx)("div",{className:"flex items-center gap-2 text-sm",children:Array.from({length:Math.ceil(s/10)},(e,s)=>{let a=s+1;return(0,n.jsx)("button",{className:"px-2 rounded-sm ".concat(t===a?"bg-lamaSky":""),onClick:()=>{o(a)},children:a},a)})}),(0,n.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<s),onClick:()=>{o(t+1)},children:"Next"})]})}}},function(e){e.O(0,[2971,7023,1744],function(){return e(e.s=87237)}),_N_E=e.O()}]);