Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/core/utils/fieldDeletedHandler",["module","exports","require","../../utils/FormSupport.es","../../utils/fieldSupport","../../utils/rulesSupport"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.handleFieldDeleted=c,r.default=void 0;var o=t("../../utils/FormSupport.es"),n=t("../../utils/fieldSupport"),u=t("../../utils/rulesSupport");function i(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 l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){s(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(e,r,{activePage:t,editRule:i=!0,fieldName:s,removeEmptyRows:c=!0}){const{pages:p}=r;void 0===t&&(t=r.activePage);const a=p.map(((r,u)=>{if(t===u){const t=(0,n.removeField)(e,p,s,c);return l(l({},r),{},{rows:c?(0,o.removeEmptyRows)(t,u):t[u].rows})}return r}));return{focusedField:{},pages:a,rules:i?(0,u.formatRules)(a,r.rules):r.rules}}var p=c;r.default=p}}));
//# sourceMappingURL=fieldDeletedHandler.js.map