Liferay.Loader.define("commerce-frontend-js@4.0.52/components/mini_cart/Header",["module","exports","require","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react","./MiniCartContext","./util/constants"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r("@frontend-taglib-clay$clayui/icon")),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();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 l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),l=c(r("./MiniCartContext")),i=r("./util/constants");function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){var e;const{cartState:t,closeCart:r,labels:o,toggleable:c}=(0,a.useContext)(l.default),u=(null==t||null===(e=t.cartItems)||void 0===e?void 0:e.length)||0;return a.default.createElement("div",{className:"mini-cart-header"},a.default.createElement("div",{className:"mini-cart-header-block"},a.default.createElement("div",{className:"mini-cart-header-title"},a.default.createElement("h3",null,u?o[i.YOUR_ORDER]:o[i.ORDER_IS_EMPTY])),c&&a.default.createElement("button",{className:"mini-cart-close",onClick:r},a.default.createElement(n.default,{symbol:"times"}))))};t.default=u}}));
//# sourceMappingURL=Header.js.map