import{s as setData}from"./js-core.esm4.js";function _array_like_to_array(r,t){(null==t||t>r.length)&&(t=r.length);for(var a=0,e=new Array(t);a<t;a++)e[a]=r[a];return e}function _array_without_holes(r){if(Array.isArray(r))return _array_like_to_array(r)}function _iterable_to_array(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _to_consumable_array(r){return _array_without_holes(r)||_iterable_to_array(r)||_unsupported_iterable_to_array(r)||_non_iterable_spread()}function _unsupported_iterable_to_array(r,t){var a;if(r)return"string"==typeof r?_array_like_to_array(r,t):"Map"===(a="Object"===(a=Object.prototype.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:a)||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_array_like_to_array(r,t):void 0}function getDataModule(){return{id:"data",reducerMap:{data:function(r,t){var a=t.type,e=t.payload;return a===setData({}).type?_to_consumable_array(r.filter(function(r){return r.id!==e.id})).concat([e]):r||[]}},sagas:[],initialActions:[]}}export{getDataModule};
