Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/utils",["module","exports","require","../utils"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.checkLabelErrors=function(e,t){return""===t.value.trim()?o(o({},e),{},{label:!0}):o(o({},e),{},{label:!1})},t.checkIdErrors=function(e,t,r){return""===r.value.trim()?o(o({},t),{},{id:{duplicated:!1,empty:!0}}):(0,n.isIdDuplicated)(e,r.value.trim())?o(o({},t),{},{id:{duplicated:!0,empty:!1}}):o(o({},t),{},{id:{duplicated:!1,empty:!1}})},t.getUpdatedLabelItem=function(e,t,r){return o(o({},t),{},{data:o(o({},t.data),{},{label:o(o({},t.data.label),{},{[e]:r.value})})})},t.limitValue=function({defaultValue:e,min:t,value:r}){if(isNaN(r)||r<t)return e;return r},t.sortElements=function(e,t){e.sort(((e,r)=>e[t]>r[t]?1:-1))};var n=r("../utils");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=utils.js.map