(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3714],{33346:function(e,r,a){Promise.resolve().then(a.t.bind(a,38173,23)),Promise.resolve().then(a.bind(a,18369))},16463:function(e,r,a){"use strict";var n=a(71169);a.o(n,"useParams")&&a.d(r,{useParams:function(){return n.useParams}}),a.o(n,"usePathname")&&a.d(r,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(r,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(r,{useSearchParams:function(){return n.useSearchParams}})},18369:function(e,r,a){"use strict";var n=a(57437),s=a(16463),t=a(2265);r.default=e=>{let{options:r,name:a,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(a);e&&h(e)},[a,l]),(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)("select",{value:i,onChange:e=>{let r=e.target.value;h(r);let n=new URLSearchParams(window.location.search);r?n.set(a,r):n.delete(a),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}),r.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]})})}}},function(e){e.O(0,[8173,2971,7023,1744],function(){return e(e.s=33346)}),_N_E=e.O()}]);