text: (window.webpackJsonp=window.webpackJsonp||[]).push([[18],{"/C3p":function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),c=a.n(n),l=(a("Wbzz"),a("Bl7J")),r=(a("aTTt"),a("q4sD"),a("q9vo"),a("lD8L"),a("OcqW"),a("beFU"),a("tiIK"));a("YjHR");var s=function(e){var t,a;function n(t){var a;return(a=e.call(this,t)||this).state={count:1},a.handleClick=a.handleClick.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)),a}a=e,(t=n).prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a;var s=n.prototype;return s.handleClick=function(e){e.preventDefault();localStorage.setItem("item","neldo"),this.setState({count:this.state.count+1}),document.getElementById("shows").classList.add("nostyle")},s.render=function(){return c.a.createElement(l.a,{location:this.props.location},c.a.createElement("span",{style:0!==this.state.count?{display:"block"}:{display:"none"}},c.a.createElement(r.a,null)))},n}(c.a.Component);t.default=s},OcqW:function(e,t,a){"use strict";var n=a("q1tI"),c=a.n(n),l=a("aTTt"),r=a.n(l),s=a("TsFS"),o=a.n(s),i=a("P8oz"),d=a.n(i),m=a("o88o"),u=a.n(m),p=a("cOSo"),v=a.n(p),h=a("TWCO"),f=a.n(h);function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}c.a.Component},P8oz:function(e,t,a){e.exports=a.p+"static/black-pencils-and-design-word-fa3fcd547957f8218262acb10f86a203.jpg"},TWCO:function(e,t,a){e.exports=a.p+"static/abstract-art-cobweb-connection-0efcdf6bad7e92293347ec559a7c222a.jpg"},TsFS:function(e,t,a){e.exports=a.p+"static/geometric-decoration-d5a5656e24c88a322c4ce1868e4a5cd1.jpg"},YjHR:function(e,t,a){"use strict";var n=a("q1tI"),c=a.n(n),l=a("XjSt"),r=a("dBd+"),s=a.n(r),o=a("hBfX"),i=a.n(o);t.a=function(e){var t=e.product,a=Object(n.useContext)(l.a).dispatch;return c.a.createElement("li",{className:s.a.cartitem},c.a.createElement("div",{className:s.a.cc},c.a.createElement("h6",{className:s.a.cartitemdesc},t.package),c.a.createElement("img",{alt:"logo",className:s.a.cartitemimg,src:i.a})),c.a.createElement("div",{className:s.a.cc},c.a.createElement("p",{className:s.a.cartitemqty},c.a.createElement("span",null,c.a.createElement("strong",null,"Quantity: ")),c.a.createElement("select",{className:s.a.cartitemselect},c.a.createElement("option",null," 1"))),c.a.createElement("p",{className:s.a.pricelabel},c.a.createElement("span",null,c.a.createElement("i",null," ",c.a.createElement("div",{className:"price"},c.a.createElement("strong",null,"Price: "),"$",t.price))))),c.a.createElement("button",{onClick:function(){return a({type:"REMOVE_PRODUCT",id:t.id})},className:s.a.removecta},"Remove Item"),"  ",c.a.createElement("hr",{className:s.a.hr}))}},cOSo:function(e,t,a){e.exports=a.p+"static/web-af4683fb9da141e8556aa671ac1d3f25.jpg"},"dBd+":function(e,t,a){e.exports={cartlist:"slidenav-module--cartlist--3IL6e",checkout:"slidenav-module--checkout--3yXfy",step:"slidenav-module--step--1Bfx_",active:"slidenav-module--active--3uQ5e",progressbar:"slidenav-module--progressbar--3BsQ5",header:"slidenav-module--header--2c8nO",secondarycta:"slidenav-module--secondarycta--3znsR",cartitemimg:"slidenav-module--cartitemimg--3MyXN",cartitemdesc:"slidenav-module--cartitemdesc--2Av0n",cartitem:"slidenav-module--cartitem--9tiQ1",cartitemqty:"slidenav-module--cartitemqty--2JnoY",cartitemselect:"slidenav-module--cartitemselect--89MmI",pricelabel:"slidenav-module--pricelabel--woFmL",removecta:"slidenav-module--removecta--1LJs5",sidebyside:"slidenav-module--sidebyside--3_nYO",headercart:"slidenav-module--headercart--3Z95m",itemnumber:"slidenav-module--itemnumber--1IJ9U",cc:"slidenav-module--cc--2RG2e",hr:"slidenav-module--hr--2NdkW",total:"slidenav-module--total--6aG-3",container:"slidenav-module--container--2ZHAp",show:"slidenav-module--show--2Txv1"}},lD8L:function(e,t,a){"use strict";a("KKXr");var n=a("q1tI"),c=a.n(n),l=(a("OcqW"),a("TsFS")),r=a.n(l),s=a("P8oz"),o=a.n(s),i=a("cOSo"),d=a.n(i),m=a("hBfX"),u=a.n(m),p=a("o88o"),v=a.n(p),h=a("aTTt"),f=a.n(h);c.a.Component},o88o:function(e,t,a){e.exports=a.p+"static/notebook-beside-the-iphone-on-table-20d40ea8583d6a16be68425baa15d053.jpg"},tiIK:function(e,t,a){"use strict";var n=a("q1tI"),c=a.n(n),l=a("dBd+"),r=a.n(l),s=a("XjSt"),o=a("YjHR"),i=a("Wbzz");t.a=function(){var e=Object(n.useContext)(s.a).products,t=0;return"undefined"!=typeof window?e.length?c.a.createElement("div",{id:r.a.show,className:"container"},c.a.createElement("h1",{className:r.a.header},"Checkout"),c.a.createElement("div",{className:r.a.checkout},c.a.createElement("span",{id:r.a.active,className:r.a.step},"1"),c.a.createElement("div",{className:r.a.progressbar}),c.a.createElement("span",{className:r.a.step},"2")),c.a.createElement("div",{className:r.a.sidebyside},c.a.createElement("h2",{className:r.a.headercart},"Your Cart"),c.a.createElement("h4",{className:r.a.itemnumber}," ","undefined"!=typeof window?e.length:""," Items")),c.a.createElement("hr",null),c.a.createElement("ul",{className:r.a.cartlist},e.map((function(e){return c.a.createElement(o.a,{product:e,key:e.id})}))),c.a.createElement("p",{className:r.a.total},"Total:",c.a.createElement("span",null,c.a.createElement("i",null,"$",(function(){for(var a=0;a<e.length;a++)if(null===e[a].price||void 0===e[a].price)e[a].price=0;else{if(a===e.length)return t;t+=e[a].price}}(),t)))),c.a.createElement(i.a,{to:"/addon/"},c.a.createElement("button",{className:r.a.secondarycta},"Continue to Checkout"))):c.a.createElement("div",{styles:{cartlist:{height:"100%",width:"33vw",position:"absolute",color:"red"}}},"There are No items in your cart..."):""}}}]);
  //# sourceMappingURL=component---src-pages-shop-cartcheckout-js-7153f96d4baaa7fe38e3.js.map