(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[457],{1422:function(e,t,r){Promise.resolve().then(r.t.bind(r,5250,23)),Promise.resolve().then(r.bind(r,3832))},3832:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(7437),o=r(4033),u=r(2265);function s(){let e=(0,o.useRouter)(),[t,r]=(0,u.useState)(null),[s,l]=(0,u.useState)("");(0,u.useEffect)(()=>{var e;return r(null===(e=window)||void 0===e?void 0:e.location),()=>{}},[]);let i=()=>{let r=new URLSearchParams(null==t?void 0:t.search);r.set("q",s);let n="".concat(t.origin).concat(t.pathname,"?").concat(r.toString());return e.push(n)};return(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("input",{type:"text",className:"border w-full rounded-l py-2 px-4",placeholder:"Cari kategori disini",onKeyDown:e=>{let{key:t}=e;return"Enter"==t?i():null},value:s,onChange:e=>l(e.target.value)}),(0,n.jsx)("button",{onClick:i,className:"bg-secondary text-white px-2 rounded-r font-semibold",children:"Cari"})]})}},622:function(e,t,r){"use strict";var n=r(2265),o=Symbol.for("react.element"),u=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,r){var n,u={},a=null,c=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,n)&&!i.hasOwnProperty(n)&&(u[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===u[n]&&(u[n]=t[n]);return{$$typeof:o,type:e,key:a,ref:c,props:u,_owner:l.current}}t.Fragment=u,t.jsx=a,t.jsxs=a},7437:function(e,t,r){"use strict";e.exports=r(622)},4033:function(e,t,r){e.exports=r(5313)}},function(e){e.O(0,[250,971,938,744],function(){return e(e.s=1422)}),_N_E=e.O()}]);