Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/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 _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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=n?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(a,r,i):a[r]=e[r]}a.default=e,t&&t.set(e,a);return a}(a("@frontend-taglib-clay$clayui/form")),r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),i=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),l=_interopRequireDefault(a("../../../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}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 SelectAssignment=({section:t,setSection:a,setSections:s})=>i.default.createElement(l.default,{panelTitle:Liferay.Language.get("select-assignment")},i.default.createElement(n.default.Group,null,i.default.createElement("label",{htmlFor:"assignment-type"},Liferay.Language.get("assignment-type"),i.default.createElement("span",{className:"ml-2",title:Liferay.Language.get("select-the-assignment-type")},i.default.createElement(r.default,{className:"text-muted",symbol:"question-circle-full"}))),i.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=>i.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=SelectAssignment}}));
//# sourceMappingURL=SelectAssignment.js.map