Liferay.Loader.define("commerce-frontend-js@4.0.75/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 resolveCartViews(t={}){const r=_objectSpread(_objectSpread({},e),t),[...o]=Object.keys(e).sort();return Promise.all(o.map((t=>resolveView(r[t]).catch((()=>resolveView(e[t])))))).then((e=>Promise.resolve(o.reduce(((t,r)=>_objectSpread(_objectSpread({},t),{},{[r]:e.shift()})),{}))))},t.DEFAULT_VIEWS=void 0;var o=r("../../../utilities/modules"),n=_interopRequireDefault(r("../../summary/Summary")),i=_interopRequireDefault(r("../CartItem")),u=_interopRequireDefault(r("../CartItemsList")),a=_interopRequireDefault(r("../CartItemsListActions")),c=_interopRequireDefault(r("../Header")),s=_interopRequireDefault(r("../Opener")),l=_interopRequireDefault(r("../OrderButton")),p=_interopRequireDefault(r("../Wrapper")),f=r("./constants");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(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={[f.CART]:{component:p.default},[f.HEADER]:{component:c.default},[f.ITEM]:{component:i.default},[f.ITEMS_LIST]:{component:u.default},[f.ITEMS_LIST_ACTIONS]:{component:a.default},[f.OPENER]:{component:s.default},[f.ORDER_BUTTON]:{component:l.default},[f.SUMMARY]:{component:n.default}};function decorateWith(e,t){const r=e;return r.component=_objectSpread({},t),r}function resolveView({component:e,contentRendererModuleUrl:t}){return e?Promise.resolve(decorateWith((t=>e(t)),{name:e.name})):(0,o.getJsModule)(t).then((e=>Promise.resolve(decorateWith(e,{moduleURL:t,name:e.name}))))}t.DEFAULT_VIEWS=e}}));
//# sourceMappingURL=views.js.map