Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/assignments/select-assignment/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 n=s(r("@frontend-taglib-clay$clayui/form")),a=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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function f(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=()=>{const{selectedItem:e,setSelectedItem:t}=(0,o.useContext)(i.DiagramBuilderContext),[r,c]=(0,o.useState)("");return(0,o.useEffect)((()=>{var t;c((null===(t=e.data.assignments)||void 0===t?void 0:t.resourceAction)||"")}),[]),o.default.createElement(l.default,{panelTitle:Liferay.Language.get("resource-actions")},o.default.createElement(n.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(a.default,{className:"text-muted",symbol:"question-circle-full"}))),o.default.createElement(n.ClayInput,{component:"textarea",id:"resource-actions",onChange:({target:{value:e}})=>{t((t=>d(d({},t),{},{data:d(d({},t.data),{},{assignments:e?{assignmentType:["resourceActions"],resourceAction:e}:null})}))),c(e)},placeholder:Liferay.Language.get("type-resource-actions-here"),type:"text",value:r})))};t.default=g}}));
//# sourceMappingURL=ResourceActions.js.map