Liferay.Loader.define("commerce-organization-web@5.0.52/js/ManagementBar/ManagementBar",["module","exports","require","@frontend-taglib-clay$clayui/button","frontend-js-components-web","liferay!frontend-js-react-web$react","../ChartContext"],(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=r("frontend-js-components-web"),o=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 o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),l=_interopRequireDefault(r("../ChartContext"));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 u=function ManagementBar(){const{chartInstanceRef:e}=(0,o.useContext)(l.default);return o.default.createElement(a.ManagementToolbar.Container,null,o.default.createElement(a.ManagementToolbar.ItemList,null,o.default.createElement(a.ManagementToolbar.Item,null,o.default.createElement(n.default,{displayType:"secondary",onClick:()=>e.current.collapseAllNodes()},Liferay.Language.get("collapse-all")))))};t.default=u}}));
//# sourceMappingURL=ManagementBar.js.map