Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/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){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectReassignment=void 0;var r=_interopRequireWildcard(a("@frontend-taglib-clay$clayui/form")),n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("@frontend-taglib-clay$clayui/icon")),i=_interopRequireWildcard(a("liferay!frontend-js-react-web$react"));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 a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}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")}],SelectReassignment=({currentAssignmentType:t,setSection:a,setSubSections:l})=>((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(n.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),l([{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=SelectReassignment}}));
//# sourceMappingURL=SelectReassignment.js.map