Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/timers/select-reassignment/ResourceActions",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react","../../../../../DiagramBuilderContext","../../../SidebarPanel"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r("@frontend-taglib-clay$clayui/form")),n=c(r("@frontend-taglib-clay$clayui/icon")),o=s(r("liferay!frontend-js-react-web$react")),i=r("../../../../../DiagramBuilderContext"),l=c(r("../../../SidebarPanel"));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}var f=({actionData:e,actionSectionsIndex:t,setActionSections:r})=>{const{selectedItem:c}=(0,o.useContext)(i.DiagramBuilderContext),[u,s]=(0,o.useState)("");return(0,o.useEffect)((()=>{var t;s((null===(t=c.data.assignments)||void 0===t?void 0:t.resourceAction)||""),e.resourceAction&&s(e.resourceAction)}),[]),o.default.createElement(l.default,{panelTitle:Liferay.Language.get("resource-actions")},o.default.createElement(a.default.Group,null,o.default.createElement("label",{htmlFor:"resource-actions"},Liferay.Language.get("resource-actions"),o.default.createElement("span",{className:"ml-1 mr-1 text-warning"},"*"),o.default.createElement("span",{"data-tooltip-align":"bottom-right",title:Liferay.Language.get("enter-the-comma-separated-resource-actions")},o.default.createElement(n.default,{className:"text-muted",symbol:"question-circle-full"}))),o.default.createElement(a.ClayInput,{component:"textarea",id:"resource-actions",onChange:({target:{value:e}})=>{r((r=>{const a=[...r];return a[t].assignmentType="resourceActions",a[t].resourceAction=e,a})),s(e)},placeholder:Liferay.Language.get("type-resource-actions-here"),type:"text",value:u})))};t.default=f}}));
//# sourceMappingURL=ResourceActions.js.map