Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/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 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 i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(i,a,o):i[a]=e[a]}i.default=e,t&&t.set(e,i);return i}(i("liferay!frontend-js-react-web$react")),a=i("../../../../DiagramBuilderContext"),o=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,r,l,d,u,c,s,f,p,v,g,m,y,b,_,w,D;const{selectedItem:j,setSelectedItem:O}=(0,n.useContext)(a.DiagramBuilderContext);return n.default.createElement(o.default,{defaultFieldValue:{id:(null===(t=j.data.notifications)||void 0===t||null===(i=t.recipients)||void 0===i||null===(r=i[e])||void 0===r||null===(l=r[0])||void 0===l||null===(d=l.sectionsData)||void 0===d?void 0:d.id)||(null===(u=j.data.notifications)||void 0===u||null===(c=u.recipients)||void 0===c||null===(s=c[e])||void 0===s||null===(f=s.sectionsData)||void 0===f?void 0:f.id)||"",name:(null===(p=j.data.notifications)||void 0===p||null===(v=p.recipients)||void 0===v||null===(g=v[e])||void 0===g||null===(m=g[0])||void 0===m||null===(y=m.sectionsData)||void 0===y?void 0:y.name)||(null===(b=j.data.notifications)||void 0===b||null===(_=b.recipients)||void 0===_||null===(w=_[e])||void 0===w||null===(D=w.sectionsData)||void 0===D?void 0:D.name)||""},inputLabel:Liferay.Language.get("role-id"),selectLabel:Liferay.Language.get("role-name"),updateSelectedItem:t=>{O((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