"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(e);exports.useDebouncedValues=function(e){var r=e.searchText,n=e.filters,o=t.useState((function(){return r.trim().toLowerCase()})),i=u.default(o,2),c=i[0],a=i[1],f=t.useState(n),s=u.default(f,2),l=s[0],d=s[1];return t.useEffect((function(){var e=setTimeout((function(){d(n)}),500);return function(){return clearTimeout(e)}}),[n]),t.useEffect((function(){var e=setTimeout((function(){a(r.trim().toLowerCase())}),300);return function(){return clearTimeout(e)}}),[r]),{debouncedSearchText:c,debouncedFilters:l}};
//# sourceMappingURL=useDebouncedValues.js.map
