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