text: (window.webpackJsonp=window.webpackJsonp||[]).push([[26],{Otp9:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),c=a.n(n),l=a("/MKj"),r=(a("ykHf"),a("HzL/")),i=Object(l.b)((function(e){return{itemsInCart:e.itemsInCart,price:e.price}}),(function(e){return{changeQuantity:function(t,a){return e({type:"MODIFY_ITEM_QUANTITY",item:t,quantity:a,size:t.size})}}}))((function(e){var t,a=e.itemsInCart,n=e.price,l=e.changeQuantity,i=Object.keys(a).map((function(e){var t=a[e];return c.a.createElement("div",{className:"cart-item-container",key:t.itemId},c.a.createElement("div",{className:"cart-item-image-container"},c.a.createElement("img",{src:t.imagePath,className:"cart-item-image"})),c.a.createElement("div",{className:"cart-item-title"},c.a.createElement("div",null,t.title),c.a.createElement("div",{className:"cart-item-title-size"},t.size)),c.a.createElement("div",{className:"cart-item-qty-container"},c.a.createElement("select",{value:t.quantity,onChange:function(e){return function(e,t){l(t,e.target.value)}(e,t)}},c.a.createElement("option",null,"0"),c.a.createElement("option",null,"1"),c.a.createElement("option",null,"2"),c.a.createElement("option",null,"3"),c.a.createElement("option",null,"4"),c.a.createElement("option",null,"5"),c.a.createElement("option",null,"6"),c.a.createElement("option",null,"7"),c.a.createElement("option",null,"8"),c.a.createElement("option",null,"9"),c.a.createElement("option",null,"10"))),c.a.createElement("div",{className:"cart-item-price"},c.a.createElement("span",null,t.price,",00$ each")))}));return t=i.length>0?c.a.createElement("div",{className:"cart-checkout-container"},c.a.createElement("div",null,i),c.a.createElement("div",{className:"cart-finalize-container"},c.a.createElement("div",{className:"cart-checkout-total-title"},"Total:"),c.a.createElement("div",{className:"cart-checkout-price"},n,",00 $"),c.a.createElement(r.default,null))):c.a.createElement("p",null," Your cart is empty! "),c.a.createElement("div",{className:"cart-container"},c.a.createElement("h1",{className:"cart-checkout-title"},"Cart"),t)}));t.default=i}}]);
  //# sourceMappingURL=component---src-pages-store-cart-jsx-dd04d0c864c555fc0ca7.js.map