Liferay.Loader.define("commerce-frontend-js@4.0.52/components/mini_cart/util/views",["module","exports","require","../../../utilities/modules","../../summary/Summary","../CartItem","../CartItemsList","../CartItemsListActions","../Header","../Opener","../OrderButton","../Wrapper","./constants"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCartViews=function(t={}){const r=O(O({},e),t),[...n]=Object.keys(e).sort();return Promise.all(n.map((t=>j(r[t]).catch((()=>j(e[t])))))).then((e=>Promise.resolve(n.reduce(((t,r)=>O(O({},t),{},{[r]:e.shift()})),{}))))},t.DEFAULT_VIEWS=void 0;var n=r("../../../utilities/modules"),o=f(r("../../summary/Summary")),c=f(r("../CartItem")),u=f(r("../CartItemsList")),s=f(r("../CartItemsListActions")),i=f(r("../Header")),a=f(r("../Opener")),m=f(r("../OrderButton")),l=f(r("../Wrapper")),p=r("./constants");function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const e={[p.CART]:{component:l.default},[p.HEADER]:{component:i.default},[p.ITEM]:{component:c.default},[p.ITEMS_LIST]:{component:u.default},[p.ITEMS_LIST_ACTIONS]:{component:s.default},[p.OPENER]:{component:a.default},[p.ORDER_BUTTON]:{component:m.default},[p.SUMMARY]:{component:o.default}};function y(e,t){const r=e;return r.component=O({},t),r}function j({component:e,contentRendererModuleUrl:t}){return e?Promise.resolve(y((t=>e(t)),{name:e.name})):(0,n.getJsModule)(t).then((e=>Promise.resolve(y(e,{moduleURL:t,name:e.name}))))}t.DEFAULT_VIEWS=e}}));
//# sourceMappingURL=views.js.map