Liferay.Loader.define("commerce-frontend-js@4.0.52/components/mini_cart/Wrapper",["module","exports","require","liferay!frontend-js-react-web$react","./MiniCartContext"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var 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 i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),i=(n=r("./MiniCartContext"))&&n.__esModule?n:{default:n};function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var u=function(){const{CartViews:e,isOpen:t}=(0,a.useContext)(i.default);return a.default.createElement("div",{className:"mini-cart-wrapper"},a.default.createElement(e.Header,null),a.default.createElement("div",{className:"mini-cart-wrapper-items"},t&&a.default.createElement(e.ItemsList,null)),a.default.createElement(e.OrderButton,null))};t.default=u}}));
//# sourceMappingURL=Wrapper.js.map