Liferay.Loader.define("commerce-frontend-js@4.0.75/components/mini_cart/CartItemViews/ItemInfoView",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;_interopRequireDefault(n("liferay!frontend-js-react-web$prop-types"));var a=_interopRequireDefault(n("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ItemInfoViewOptions({options:e}){return a.default.createElement("div",{className:"item-info-extra mt-3"},a.default.createElement("h6",{className:"options"},e))}function ItemInfoViewBundle({childItems:e}){return a.default.createElement("div",{className:"child-items"},e.map(((e,t)=>{const{name:n,quantity:r}=e;return a.default.createElement("div",{className:"child-item",key:t},a.default.createElement("span",null,r," × ",n))})))}function ItemInfoViewBase({name:e,sku:t}){return a.default.createElement("div",{className:"item-info-base"},a.default.createElement("h5",{className:"item-name"},e),a.default.createElement("p",{className:"item-sku"},t))}var r=function ItemInfoView({childItems:e=[],name:t,options:n="",sku:r}){const l=!!e.length;return a.default.createElement(a.default.Fragment,null,a.default.createElement(ItemInfoViewBase,{name:t,sku:r}),l&&a.default.createElement(ItemInfoViewBundle,{childItems:e}),!!n&&a.default.createElement(ItemInfoViewOptions,{options:n}))};t.default=r}}));
//# sourceMappingURL=ItemInfoView.js.map