Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/designer/js/definition-builder/diagram-builder/components/sidebar/sections/utils",["module","exports","require","../utils"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.checkLabelErrors=function checkLabelErrors(e,r){return""===r.value.trim()?_objectSpread(_objectSpread({},e),{},{label:!0}):_objectSpread(_objectSpread({},e),{},{label:!1})},r.checkIdErrors=function checkIdErrors(e,r,t){return""===t.value.trim()?_objectSpread(_objectSpread({},r),{},{id:{duplicated:!1,empty:!0}}):(0,o.isIdDuplicated)(e,t.value.trim())?_objectSpread(_objectSpread({},r),{},{id:{duplicated:!0,empty:!1}}):_objectSpread(_objectSpread({},r),{},{id:{duplicated:!1,empty:!1}})},r.getUpdatedLabelItem=function getUpdatedLabelItem(e,r,t){return _objectSpread(_objectSpread({},r),{},{data:_objectSpread(_objectSpread({},r.data),{},{label:_objectSpread(_objectSpread({},r.data.label),{},{[e]:t.value})})})},r.limitValue=function limitValue({defaultValue:e,min:r,value:t}){if(isNaN(t)||t<r)return e;return t},r.sortElements=function sortElements(e,r){e.sort(((e,t)=>e[r]>t[r]?1:-1))};var o=t("../utils");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=utils.js.map