Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.92/designer/js/definition-builder/diagram-builder/components/sidebar/sections/assignments/AssignmentsSummary",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../DiagramBuilderContext","../../SidebarPanel","./CurrentAssignments"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),a=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),i=r("../../../../DiagramBuilderContext"),u=_interopRequireDefault(r("../../SidebarPanel")),l=_interopRequireDefault(r("./CurrentAssignments"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=({setContentName:e})=>{var t;const{selectedItem:r}=(0,a.useContext)(i.DiagramBuilderContext);return a.default.createElement(u.default,{panelTitle:Liferay.Language.get("assignments")},(null==r||null===(t=r.data)||void 0===t?void 0:t.assignments)?a.default.createElement(l.default,{assignments:r.data.assignments,setContentName:e}):a.default.createElement(n.default,{className:"mr-3",displayType:"secondary",onClick:()=>e("assignments")},Liferay.Language.get("new")))};t.default=_default}}));
//# sourceMappingURL=AssignmentsSummary.js.map