Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/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=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),i=_interopRequireWildcard(r("liferay!frontend-js-react-web$react")),o=r("../../../../../DiagramBuilderContext"),l=_interopRequireDefault(r("../../../SidebarPanel"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}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={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}var _default=({actionData:e,actionSectionsIndex:t,setActionSections:r})=>{const{selectedItem:c}=(0,i.useContext)(o.DiagramBuilderContext),[u,d]=(0,i.useState)("");return(0,i.useEffect)((()=>{var t;d((null===(t=c.data.assignments)||void 0===t?void 0:t.resourceAction)||""),e.resourceAction&&d(e.resourceAction)}),[]),i.default.createElement(l.default,{panelTitle:Liferay.Language.get("resource-actions")},i.default.createElement(a.default.Group,null,i.default.createElement("label",{htmlFor:"resource-actions"},Liferay.Language.get("resource-actions"),i.default.createElement("span",{className:"ml-1 mr-1 text-warning"},"*"),i.default.createElement("span",{"data-tooltip-align":"bottom-right",title:Liferay.Language.get("enter-the-comma-separated-resource-actions")},i.default.createElement(n.default,{className:"text-muted",symbol:"question-circle-full"}))),i.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})),d(e)},placeholder:Liferay.Language.get("type-resource-actions-here"),type:"text",value:u})))};t.default=_default}}));
//# sourceMappingURL=ResourceActions.js.map