{"version":3,"file":"vendor.use-debounce.d3c5b928070e518b.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAA0F,kBAAkB,aAAa,6CAAC,SAAS,6CAAC,MAAM,6CAAC,SAAS,6CAAC,OAAO,6CAAC,KAAK,6CAAC,KAAK,6CAAC,MAAM,6CAAC,KAAK,YAAY,gDAAgD,mEAAmE,QAAQ,gBAAgB,8IAA8I,gDAAC,YAAY,+BAA+B,cAAc,KAAK,MAAM,8CAAC,YAAY,kBAAkB,4BAA4B,2EAA2E,iBAAiB,wFAAwF,eAAe,uBAAuB,kBAAkB,+CAA+C,eAAe,6EAA6E,gBAAgB,iBAAiB,oBAAoB,cAAc,wDAAwD,QAAQ,cAAc,SAAS,wBAAwB,iEAAiE,oFAAoF,gCAAgC,qCAAqC,2BAA2B,gIAAgI,wBAAwB,kBAAkB,oBAAoB,yCAAyC,GAAG,oBAAoB,SAAS,gBAAgB,aAAa,kBAAkB,sCAAsC,uBAAuB,gBAAgB,EAAE,kBAAkB,wDAAwD,kBAAkB,mBAAmB,4BAA4B,cAAc,uDAAuD,EAA+E;AAC5hE","sources":["webpack://admin/./node_modules/use-debounce/dist/index.module.js"],"sourcesContent":["import{useRef as r,useEffect as n,useMemo as t,useState as e,useCallback as u}from\"react\";function c(e,u,c){var i=this,a=r(null),o=r(0),f=r(null),l=r([]),v=r(),m=r(),d=r(e),g=r(!0);d.current=e;var p=\"undefined\"!=typeof window,w=!u&&0!==u&&p;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");u=+u||0;var s=!!(c=c||{}).leading,x=!(\"trailing\"in c)||!!c.trailing,h=\"maxWait\"in c,y=\"debounceOnServer\"in c&&!!c.debounceOnServer,F=h?Math.max(+c.maxWait||0,u):null;n(function(){return g.current=!0,function(){g.current=!1}},[]);var A=t(function(){var r=function(r){var n=l.current,t=v.current;return l.current=v.current=null,o.current=r,m.current=d.current.apply(t,n)},n=function(r,n){w&&cancelAnimationFrame(f.current),f.current=w?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!g.current)return!1;var n=r-a.current;return!a.current||n>=u||n<0||h&&r-o.current>=F},e=function(n){return f.current=null,x&&l.current?r(n):(l.current=v.current=null,m.current)},c=function r(){var c=Date.now();if(t(c))return e(c);if(g.current){var i=u-(c-a.current),f=h?Math.min(i,F-(c-o.current)):i;n(r,f)}},A=function(){if(p||y){var e=Date.now(),d=t(e);if(l.current=[].slice.call(arguments),v.current=i,a.current=e,d){if(!f.current&&g.current)return o.current=a.current,n(c,u),s?r(a.current):m.current;if(h)return n(c,u),r(a.current)}return f.current||n(c,u),m.current}};return A.cancel=function(){f.current&&(w?cancelAnimationFrame(f.current):clearTimeout(f.current)),o.current=0,l.current=a.current=v.current=f.current=null},A.isPending=function(){return!!f.current},A.flush=function(){return f.current?e(Date.now()):m.current},A},[s,h,u,F,x,w,p,y]);return A}function i(r,n){return r===n}function a(n,t,a){var o=a&&a.equalityFn||i,f=r(n),l=e({})[1],v=c(u(function(r){f.current=r,l({})},[l]),t,a),m=r(n);return o(m.current,n)||(v(n),m.current=n),[f.current,v]}function o(r,n,t){var e=void 0===t?{}:t,u=e.leading,i=e.trailing;return c(r,n,{maxWait:n,leading:void 0===u||u,trailing:void 0===i||i})}export{a as useDebounce,c as useDebouncedCallback,o as useThrottledCallback};\n//# sourceMappingURL=index.module.js.map\n"],"names":[],"sourceRoot":""}