Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/designer/js/definition-builder/diagram-builder/components/sidebar/sections/actions/Actions",["module","exports","require","liferay!frontend-js-react-web$react","../../../../DiagramBuilderContext","./ActionsInfo"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),i=r("../../../../DiagramBuilderContext"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("./ActionsInfo"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var _default=e=>{const{selectedItem:t}=(0,n.useContext)(i.DiagramBuilderContext),{actions:r}=null==t?void 0:t.data,[a,c]=(0,n.useState)([{identifier:"".concat(Date.now(),"-0")}]);return(0,n.useEffect)((()=>{const e=[];if(r){for(let t=0;t<r.name.length;t++)e.push({description:r.description[t],executionType:r.executionType[t],identifier:"".concat(Date.now(),"-").concat(t),name:r.name[t],priority:r.priority[t],script:r.script[t],scriptLanguage:r.scriptLanguage[t],status:null==r?void 0:r.status[t]});c(e)}}),[]),a.map((({identifier:t},r)=>n.default.createElement(o.default,_extends({},e,{identifier:t,index:r,key:"section-".concat(t),sectionsLength:null==a?void 0:a.length,setSections:c}))))};t.default=_default}}));
//# sourceMappingURL=Actions.js.map