Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/admin/js/reducers/formInfoReducer.es",["module","exports","require","../eventTypes.es"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function formInfoReducer(e,r){switch(r.type){case o.EVENT_TYPES.FORM_INFO.DESCRIPTION_CHANGE:{const{editingLanguageId:t,localizedDescription:o}=e;return{localizedDescription:_objectSpread(_objectSpread({},o),{},{[t]:r.payload})}}case o.EVENT_TYPES.FORM_INFO.NAME_CHANGE:{const{editingLanguageId:t,localizedName:o}=e;return{localizedName:_objectSpread(_objectSpread({},o),{},{[t]:r.payload})}}case o.EVENT_TYPES.FORM_INFO.LANGUAGE_DELETE:{const{languageId:r,localizedDescription:t,localizedName:o}=e;return delete o[r],delete t[r],{localizedDescription:_objectSpread({},t),localizedName:_objectSpread({},o)}}default:return e}};var o=t("../eventTypes.es");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}}}));
//# sourceMappingURL=formInfoReducer.es.js.map