(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[153],{82609:function(e,a,r){Promise.resolve().then(r.bind(r,18369))},16463:function(e,a,r){"use strict";var n=r(71169);r.o(n,"useParams")&&r.d(a,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(a,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(a,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(a,{useSearchParams:function(){return n.useSearchParams}})},18369:function(e,a,r){"use strict";var n=r(57437),s=r(16463),t=r(2265);a.default=e=>{let{options:a,name:r,label:o,defaultValue:u=""}=e,c=(0,s.useRouter)(),l=(0,s.useSearchParams)(),[i,h]=(0,t.useState)(u);return(0,t.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get(r);e&&h(e)},[r,l]),(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)("select",{value:i,onChange:e=>{let a=e.target.value;h(a);let n=new URLSearchParams(window.location.search);a?n.set(r,a):n.delete(r),n.set("page","1"),c.push("".concat(window.location.pathname,"?").concat(n))},className:"px-3 py-2 text-xs rounded-full border border-gray-300 bg-white text-gray-600 focus:outline-none focus:ring-2 focus:ring-school-green-500 hover:border-school-green-500 transition-colors cursor-pointer min-w-[120px]",children:[(0,n.jsx)("option",{value:"",children:o}),a.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]})})}}},function(e){e.O(0,[2971,7023,1744],function(){return e(e.s=82609)}),_N_E=e.O()}]);