Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/timers/select-reassignment/SelectReassignment",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react"],(function(e,t,a){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectReassignment=void 0;var r=o(a("@frontend-taglib-clay$clayui/form")),l=(n=a("@frontend-taglib-clay$clayui/icon"))&&n.__esModule?n:{default:n},i=o(a("liferay!frontend-js-react-web$react"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=e[r]}return a.default=e,t&&t.set(e,a),a}const e=[{assignmentType:"assetCreator",label:Liferay.Language.get("asset-creator")},{assignmentType:"resourceActions",label:Liferay.Language.get("resource-actions")},{assignmentType:"roleId",label:Liferay.Language.get("role")},{assignmentType:"user",label:Liferay.Language.get("user")},{assignmentType:"roleType",disabled:!0,label:Liferay.Language.get("role-type")},{assignmentType:"scriptedReassignment",label:Liferay.Language.get("scripted-reassignment")}],c=({currentAssignmentType:t,setSection:a,setSubSections:n})=>((0,i.useEffect)((()=>{t||a("assetCreator")}),[]),i.default.createElement(r.default.Group,null,i.default.createElement("label",{htmlFor:"reassignment-type"},Liferay.Language.get("reassignment-type"),i.default.createElement("span",{className:"ml-2",title:Liferay.Language.get("select-the-reassignment-type")},i.default.createElement(l.default,{className:"text-muted",symbol:"question-circle-full"}))),i.default.createElement(r.ClaySelect,{"aria-label":"Select",defaultValue:t,id:"reassignment-type",onChange:e=>{a(e.target.value),n([{identifier:"".concat(Date.now(),"-0")}])}},e.map((({assignmentType:e,disabled:t,label:a})=>i.default.createElement(r.ClaySelect.Option,{disabled:t,key:e,label:a,value:e}))))));t.SelectReassignment=c}}));
//# sourceMappingURL=SelectReassignment.js.map