import e from"@babel/runtime/helpers/defineProperty";import t from"lodash/isEqual";import{omitKey as r}from"../../utils/omitKey.js";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var o=function(i){var o=i.set,p=i.get;return{setTempFilter:function(r,i){var c=p().tempFilters;t(c[r],i)||o({tempFilters:n(n({},c),{},e({},r,i))})},clearTempFilter:function(e){var t=p().tempFilters;e in t&&o({tempFilters:r(t,e)})},clearAllTempFilters:function(){var e=p().tempFilters;0!==Object.keys(e).length&&o({tempFilters:{}})},commitTempFilter:function(e){var t=p().tempFilters[e];void 0!==t&&(p().setFilter(e,t),p().clearTempFilter(e))}}};export{o as createTempFilterActions};
//# sourceMappingURL=createTempFilterActions.js.map
