Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.98/designer/js/definition-builder/diagram-builder/components/sidebar/sections/notifications/Role",["module","exports","require","liferay!frontend-js-react-web$react","../../../../DiagramBuilderContext","../shared-components/BaseRole"],(function(e,t,i){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=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 i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=r?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(i,n,a):i[n]=e[n]}i.default=e,t&&t.set(e,i);return i}(i("liferay!frontend-js-react-web$react")),n=i("../../../../DiagramBuilderContext"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(i("../shared-components/BaseRole"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}var _default=({notificationIndex:e})=>{var t,i,o,l,d,u,c,s;const{selectedItem:f,setSelectedItem:p}=(0,r.useContext)(n.DiagramBuilderContext);return r.default.createElement(a.default,{defaultFieldValue:{id:(null===(t=f.data.notifications)||void 0===t||null===(i=t.recipients)||void 0===i||null===(o=i[e])||void 0===o||null===(l=o.sectionsData)||void 0===l?void 0:l.id)||"",name:(null===(d=f.data.notifications)||void 0===d||null===(u=d.recipients)||void 0===u||null===(c=u[e])||void 0===c||null===(s=c.sectionsData)||void 0===s?void 0:s.name)||""},inputLabel:Liferay.Language.get("role-id"),selectLabel:Liferay.Language.get("role-name"),updateSelectedItem:t=>{p((i=>(i.data.notifications.recipients[e]={assignmentType:["roleId"],roleId:t.id,sectionsData:{id:t.id,name:t.name,roleType:t.roleType}},i)))}})};t.default=_default}}));
//# sourceMappingURL=Role.js.map