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