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