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