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