"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("lodash/isEqual"),r=require("../../utils/omitKey.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(e),o=i(t);function l(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){n.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.createTempFilterActions=function(e){var t=e.set,i=e.get;return{setTempFilter:function(e,r){var l=i().tempFilters;o.default(l[e],r)||t({tempFilters:c(c({},l),{},n.default({},e,r))})},clearTempFilter:function(e){var n=i().tempFilters;e in n&&t({tempFilters:r.omitKey(n,e)})},clearAllTempFilters:function(){var e=i().tempFilters;0!==Object.keys(e).length&&t({tempFilters:{}})},commitTempFilter:function(e){var t=i().tempFilters[e];void 0!==t&&(i().setFilter(e,t),i().clearTempFilter(e))}}};
//# sourceMappingURL=createTempFilterActions.js.map
