Liferay.Loader.define("commerce-organization-web@5.0.37/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,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("@frontend-taglib-clay$clayui/button")),a=n("frontend-js-components-web"),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();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 o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n("liferay!frontend-js-react-web$react")),l=f(n("../ChartContext"));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}var c=function(){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(r.default,{displayType:"secondary",onClick:()=>e.current.collapseAllNodes()},Liferay.Language.get("collapse-all")))))};t.default=c}}));
//# sourceMappingURL=ManagementBar.js.map