Liferay.Loader.define("commerce-organization-web@5.0.37/js/ManagementBar/ViewSelector",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","liferay!frontend-js-react-web$react","../ChartContext","../utils/constants"],(function(e,t,n){var r;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("@frontend-taglib-clay$clayui/button"),o=n("@frontend-taglib-clay$clayui/drop-down"),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();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")),i=(r=n("../ChartContext"))&&r.__esModule?r:{default:r},u=n("../utils/constants");function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}var f=function(){const{currentView:e,updateCurrentView:t}=(0,l.useContext)(i.default),n=u.VIEWS.map((n=>({active:n.id===e.id,label:n.label,onClick:()=>t(n),symbolLeft:n.symbol})));return l.default.createElement(o.ClayDropDownWithItems,{items:n,trigger:l.default.createElement(a.ClayButtonWithIcon,{className:"nav-link nav-link-monospaced",displayType:"unstyled",monospaced:!0,symbol:e.symbol})})};t.default=f}}));
//# sourceMappingURL=ViewSelector.js.map