Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/reducers/rulesReducer",["module","exports","require","../eventTypes"],(function(e,r,u){window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,r){switch(r.type){case t.EVENT_TYPES.RULE.ADD:{const{rules:u}=e;return{rules:[...u,r.payload]}}case t.EVENT_TYPES.RULE.CHANGE:{const{rules:u}=e,{loc:t,rule:l}=r.payload;return u.splice(t,1,l),{rules:u}}case t.EVENT_TYPES.RULE.DELETE:{const{rules:u}=e;return{rules:u.filter(((e,u)=>u!==r.payload))}}default:return e}};var t=u("../eventTypes")}));
//# sourceMappingURL=rulesReducer.js.map