Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/assignments/select-assignment/SelectAssignment",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react","../../../SidebarPanel"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.options=t.SelectAssignment=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var r=n?Object.getOwnPropertyDescriptor(e,l):null;r&&(r.get||r.set)?Object.defineProperty(a,l,r):a[l]=e[l]}a.default=e,t&&t.set(e,a);return a}(a("@frontend-taglib-clay$clayui/form")),l=s(a("@frontend-taglib-clay$clayui/icon")),r=s(a("liferay!frontend-js-react-web$react")),i=s(a("../../../SidebarPanel"));function s(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}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",label:Liferay.Language.get("role-type")},{assignmentType:"scriptedAssignment",label:Liferay.Language.get("scripted-assignment")}];t.options=e;const c=({section:t,setSection:a,setSections:s})=>r.default.createElement(i.default,{panelTitle:Liferay.Language.get("select-assignment")},r.default.createElement(n.default.Group,null,r.default.createElement("label",{htmlFor:"assignment-type"},Liferay.Language.get("assignment-type"),r.default.createElement("span",{className:"ml-2",title:Liferay.Language.get("select-the-assignment-type")},r.default.createElement(l.default,{className:"text-muted",symbol:"question-circle-full"}))),r.default.createElement(n.ClaySelect,{"aria-label":"Select",id:"assignment-type",onChange:e=>{a(e.target.value),s([{identifier:"".concat(Date.now(),"-0")}])}},e.map((e=>r.default.createElement(n.ClaySelect.Option,{disabled:null==e?void 0:e.disabled,key:e.assignmentType,label:e.label,selected:e.assignmentType===t,value:e.assignmentType}))))));t.SelectAssignment=c}}));
//# sourceMappingURL=SelectAssignment.js.map