text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{145:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABACAYAAABC6cT1AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAEaxJREFUaEPlWwdYlWUbzkpbf1dlWZaXLTMzG5aZM1MxV+pvzvJPzcaflZZlmgs3zly/K9y4EUFUFFFBIAeylKWACAiyZW8Rnv+5n8N3/M4+B9C6rt7r+i4O53zjvZ9xP+N9v3o3b1bQPf/EAeD/xOOevwJ0BQtb/7jb87ijwAGu6lYlEVXxYcOorKSKilt31BLvCHDiiSujqKSMrqRmk0/ENdp6KpIWuQfR5J1/0rjNPjRhmx/9vM2Xpu05Q5u9I8ibz4lMyqIb+cWkvUdV1R0RQp0Br6io0GoWEz8WmkD2e8/S4GWHqcMMZ2o9eRd1tt9HA5cepk9XHqVhy4/QJ78fpn6LDlJPBzfqMsuF3puyhzrxOZ+v9iQHt/N0/GIiJWXma4VQeavurKDWwGHOmlFFl5Jv0GLWaO8FBwRoH/47aYc/7fS/RAExqRSflkv5RaVUVn6TSstuUiFbQ25hCWXmFlHM9WzyDr9GG06E0/ebfKiXwwER2MClh2j+/vN0NjpFrsO4VQcCqBXwqmqTjknJphl7z1C76Xup6+z9NHvfOTp9+TrlFJToOXYV4RpoDgf8X+5RpccD/H9yVgEdCrpK47ecYitwprbT9tDE7X50hu+rEXZVrTigxsCBqLi0nNYfDxfN9JjnRhtPhlNqduFtsCCpGoRLEBuxb8uorKKIxExxm44sAAhhjksAxbKw5ecaat9m4BpfJopm0xy91ovasF/+fjiY0nOKqi2eyagGYE2Fs1sQQrUrhcaniwW0mbKbBi3zINdzsRrts4BtDYc2AddMooq8LiTQB0xGQ5Z7UGBsmhawrQ+35XxF4LCGvaej2cJcqfPMfbTkYDBli0vZZvpWA1dA72Cieve33WJ6eUUaH8akbAFRm3Nh2hhR17Jo5Jpj9P60vfSLkz+zf558b+29rQKuhKpt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Cs551Yiw4ESszGRkBL+94sAlekjNYz9pmYk+LdMPnbYa9COkbY3OfJGw4BeCnv08FG4DrZ9YQHaVYfK6TvDvCVFtrPd0MACLlgbO/wJM7FAxh0kOy4RNfFmvzDao0DPNpTcWxWiPEo+e4GQGPPADg8H61wFCBL3IPpBC8cIFW1dleW1cA1mtdkcthEB78v4fCBJAeTKLMiza2toJT9rJmcY2AP/EImsuW8snsuhrs0Nr7OYRNwAY/CgrWfXVAsa+jZPAnEeiW/t7T0ZAt49b2kyOBnY/1+jedF0TT+Ku0ka8xb/WybgSsXS8LAG4PSeYExi/eUInxg8R0CwG/WZHzmhCTtbrYo7GJSkhOshCxg5p7JyYnz2Wh5u8ESe5sSdI2BK6YPSSNjwjbKrLxi9v8CcYUcnpS0nIxsvFEmAyEpbW39CWLzkOyY5swri61qL++lncJpKEwbG/fxvaVtm+asq1bA1aEFnwECQkCODxPEeybI+bH6iqigPxEsXuAa5VUNefNIlkY1bx6BR9BFmeV8jhxcA2VPraYQqf3LAHUCXA1IfI0PmCE4AC6AV7BAfiV8QMv4DAHBlJUXcnBeLEcMbN84xmHJkV/5QAaGV7ag4crq1RZrWdsSl9Q5cIUAFbJBkqEwPkBDy9h4AHcIjksjN95ziq3gW30iaTv/dT4TLSse2IgPgWlG3b97dkeAG1iAiRUauEECL9ajFpDysXrTjqaXc2d3St9x4OZMTl6zgF8j8bCwzdqS6dr6+18K3NbJ1uX5/wfsO55kmCHy2wAAAABJRU5ErkJggg=="},173:function(e,t,a){e.exports=a(366)},178:function(e,t,a){},179:function(e,t,a){},363:function(e,t,a){e.exports=a.p+"static/media/login.891f8bde.png"},364:function(e,t,a){},365:function(e,t,a){},366:function(e,t,a){"use strict";a.r(t);var n,r,i,o,l,s,c=a(0),u=a.n(c),m=a(30),d=a.n(m),p=a(9),h=a(10),g=a(12),y=a(11),f=a(13),b=(a(178),a(150)),v=a.n(b),E=(a(179),a(32)),A=a.n(E),S=a(147),w=a.n(S),k=a(149),C=a.n(k),O=a(20),j=a.n(O),I=a(16),x=a.n(I),B=a(371),U=a(22),F=function(e){return{type:"ADD_ITEM_IN_CART",payload:e}},D=function(e){return{type:"SHOW_CART_DLG",payload:e}},K=function(e){return{type:"SET_CHECKEDOUT_ITEMS",payload:e}},N=a(145),T=a.n(N),Q={_isAuthenticated:!1,authenticate:function(e,t,a){this._isAuthenticated=!0,setTimeout(function(){return a({name:e})},100)},signout:function(e){this._isAuthenticated=!1,setTimeout(e,100)}},R=[{id:1,name:"Nike Air Presto",category:"Clothing and Shoes",price:55,description:"The Nike Air Presto Women's Shoe delivers the same unrivaled fit and comfort that marked the 2000 debut of the original.",popular:!0,imageUrls:["https://c.static-nike.com/a/images/t_PDP_1280_v1/f_auto/wokkcny4zbhvzobfwc7i/air-presto-womens-shoe-89Tqz1nG.jpg","https://media.hypedc.com/media/catalog/product/cache/1/image/750x/9df78eab33525d08d6e5fb8d27136e95/_/o/_o8a4329_2.jpg"]},{id:2,name:"Casio F-91W-1XY",category:"Jewelry and Watches",price:101,description:"Shaped in an iconic casio design, this watch features a digital display, stopwatch and an LED backlight. The watch is housed in a durable resin case. Suitable for everyday styling.",popular:!1,imageUrls:["https://cdn3.volusion.com/htlyr.vuqkj/v/vspfiles/photos/F-91W-1-2.jpg?1408684729","https://i.ytimg.com/vi/XJGI-v31-dk/maxresdefault.jpg"]},{id:3,name:"Seiko Silvertone Black Dial Solar Calendar Watch",category:"Jewelry and Watches",price:200,popular:!1,imageUrls:["https://images-na.ssl-images-amazon.com/images/I/81XUKQex4nL._UY445_.jpg","data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEhUQExIWFRUVFRoYGBgVGR8YFhgYFxUYGBUXGh0YHykgGBomGxUXITEhJiorLi4uGR8zODMvNygtLisBCgoKDg0OFQ8PFSsdFR0tLS0tKysrLS0rKysrLTctLSstLS0tKy0tKy0tLSstLSsrLSsrLS0tLSstLTcrNy0rLf/AABEIAQgAvwMBIgACEQEDEQH/xA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lKBSlKBSlKBSlKBSlKBSlKBUWqaUEWpaopQSKmlKBSlKBSlKBSlKD/2Q=="]},{id:4,name:"Harry Potter",category:"Books",price:102,description:"Harry Potter is an ordinary boy who lives in a cupboard under the stairs at his Aunt Petuniaand Uncle Vernon's house, which he thinks is normal for someone like him who's parents have been killed ina 'car crash'. He is bullied by them and his fat, spoilt cousin Dudley, and lives a very unremarkable lifewith only the odd hiccup (like his hair growing back overnight!) to cause him much to think about. That isuntil an owl turns up with a letter addressed to Harry and all hell breaks loose! He is literally rescued by a world where nothing is as it seems and magic lessons are the order of the day. Read and find out how Harry discovers his true heritage at Hogwarts School of Wizardry and Witchcraft, the reason behind his parents mysterious death, who is out to kill him, and how he uncovers the most amazing secret of all time, the fabled Philosopher's Stone! All this and muggles too. Now, what are they?",popular:!0,imageUrls:["https://hpmedia.bloomsbury.com/rep/s/9781408855898_309038.jpeg"]},{id:5,name:"DELL SE2717HR",category:"Computers",price:102,description:"Amazing angles: Share consistent high-color fidelity with In-Plane Switching (IPS) technology across a 27-inch diagonal screen. A stunning vantage point for everyone, from almost anywhereDistinctively modern and accessible: The contemporary thin profile is enhanced by the modern white and silver colors.The open wedge stand design provides convenient access to VGA and dual HDMI ports",popular:!0,imageUrls:["https://images-na.ssl-images-amazon.com/images/I/71kgK6fAvtL._SL1500_.jpg","https://i5.walmartimages.com/asr/d2c34ad5-60b9-4aad-b807-5b19b8e31a63_1.b3a876b3ed8a7ac887903be841210134.jpeg"]},{id:7,name:"Swatch Skin",category:"Jewelry and Watches",price:200,description:"",popular:!1,imageUrls:["https://static.swatch.com/images/product/SVUN105/sa000/SVUN105_sa000_sr8.jpg"]},{id:8,name:"Adidas Gazelle",category:"Clothing and Shoes",price:55,description:"",popular:!1,imageUrls:["https://www.adidas.co.uk/dis/dw/image/v2/aagl_prd/on/demandware.static/-/Sites-adidas-products/default/zoom/BB5480_00_plp_standard.jpg?sw=276&sh=276&sm=fit&hei=276&wid=276&strip=false","https://images-na.ssl-images-amazon.com/images/I/71pqv%2BgdgzL._UL1500_.jpg"]},{id:9,name:"Bluetooth Keyboard, Vive Comb Rechargeable",category:"Computers",price:55,description:"",popular:!1,imageUrls:["https://images-na.ssl-images-amazon.com/images/I/71qNNgYCHYL._SL1500_.jpg"]},{id:10,name:"Swatch Blue Suit Mens Watch YGS747 Wrist Watch",category:"Jewelry and Watches",price:120,description:"",popular:!1,imageUrls:["https://images-na.ssl-images-amazon.com/images/I/418I4xAlUHL.jpg"]},{id:11,name:"DELL 23 S2340L 1920X1080 FULL HD",category:"Computers",price:220,description:"This Certified Refurbished product is tested and certified to look and work like new. The refurbishing process includes functionality testing, basic cleaning, inspection, and repackaging. The product ships with all relevant accessories, a minimum 90-day warranty, and may arrive in a generic box. Only select sellers who maintain a high performance bar may offer Certified Refurbished products on Amazon.com",popular:!1,imageUrls:["https://images-na.ssl-images-amazon.com/images/I/61NAgk5KMHL._SL1500_.jpg"]},{id:12,name:"Invicta Men's Pro Diver Collection Watch -Black",category:"Jewelry and Watches",price:130,description:"Water resistant to 200 m (660 ft): In general, suitable for professional marine activity and serious surface water sports, but not scuba diving",popular:!1,imageUrls:["https://images-na.ssl-images-amazon.com/images/I/71Wq1pmITgL._UY550_.jpg","https://cdn2.jomashop.com/media/catalog/product/i/n/invicta-mako-pro-diver-automatic-men_s-watch-8926.jpg"]}],L=[{name:"All categories",icon:"list"},{name:"Clothing and Shoes",icon:"group"},{name:"Jewelry and Watches",icon:"watch"},{name:"Books",icon:"menu_book"},{name:"Computers",icon:"computer"}],P=function(e){return[{name:"Home page",url:"/",icon:"home",id:0},{name:"Product categories",id:1,children:e.map(function(e,t){return{name:e.name,id:2+t,url:"/?category="+e.name+"&directClick=true",icon:e.icon}})}]}(L),z=a(148),Y=a.n(z),M=a(34),V=a.n(M),G=a(151),W=a.n(G),H=a(42),J=a.n(H),q=a(54),X=a.n(q),Z=a(71),_=a.n(Z),$=a(72),ee=a.n($),te=L.map(function(e){return u.a.createElement(J.a,{key:e.name,value:e.name},e.name)}),ae=function(e){function t(){var e,a;Object(p.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(g.a)(this,(e=Object(y.a)(t)).call.apply(e,[this].concat(r)))).state={searchTerm:"",anchorEl:null,categoryFilterValue:L[0].name},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this,t=this.state.anchorEl;return u.a.createElement(_.a,{position:"static",style:{backgroundColor:"#FAFAFB",padding:10}},u.a.createElement(ee.a,null,u.a.createElement("div",{className:"left-part"},u.a.createElement(A.a,{onClick:function(){e.props.dispatch({type:"TOGGLE_MENU",payload:null})}},u.a.createElement(w.a,{size:"medium"})),u.a.createElement("img",{src:T.a,alt:"Logo",style:{marginLeft:10}}),u.a.createElement(j.a,{label:"Search products",value:this.state.searchTerm,onChange:function(t){e.setState({searchTerm:t.target.value})},style:{marginLeft:30,width:250,marginBottom:15}}),u.a.createElement(X.a,{style:{maxWidth:200,marginLeft:20},value:this.state.categoryFilterValue,MenuProps:{style:{maxHeight:500}},onChange:function(t){e.setState({categoryFilterValue:t.target.value})}},te),u.a.createElement(x.a,{style:{marginLeft:20},variant:"outlined",color:"primary",onClick:function(){e.props.history.push("/?category="+e.state.categoryFilterValue+"&term="+e.state.searchTerm)}}," ","Search")),u.a.createElement("div",{className:"right-part"},this.props.loggedInUser?u.a.createElement(V.a,{onClick:function(t){e.setState({anchorEl:t.currentTarget})},style:{backgroundColor:"#3f51b5",marginRight:10}},u.a.createElement(Y.a,null)):u.a.createElement(x.a,{variant:"outlined",style:{marginRight:20},color:"primary",onClick:function(){e.props.history.push("/login")}},"Log in"),u.a.createElement(A.a,{"aria-label":"Cart",onClick:function(){e.props.dispatch(D(!0))}},u.a.createElement(C.a,{badgeContent:this.props.nrOfItemsInCard,color:"primary"},u.a.createElement(v.a,null))),u.a.createElement(W.a,{anchorEl:t,open:Boolean(t),onClose:function(){e.setState({anchorEl:null})}},u.a.createElement(J.a,{onClick:function(){e.setState({anchorEl:null}),e.props.history.push("/order")}},"Checkout page"),u.a.createElement(J.a,{onClick:function(){Q.signout(function(){e.props.dispatch({type:"LOGOUT"}),e.props.history.push("/")}),e.setState({anchorEl:null})}},"Logout")))))}}]),t}(c.Component),ne=Object(B.a)(Object(U.b)(function(e){return{nrOfItemsInCard:e.cartItems.length,loggedInUser:e.loggedInUser}})(ae)),re=a(105),ie=a(46),oe=a.n(ie),le=a(76),se=a(21),ce=a(29),ue=a(79),me=a.n(ue),de=a(153),pe=a.n(de),he=a(154),ge=a.n(he),ye=a(157),fe=a.n(ye),be=a(156),ve=a.n(be),Ee=a(155),Ae=a.n(Ee),Se=a(78),we=a.n(Se),ke=function(e){function t(){return Object(p.a)(this,t),Object(g.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement(pe.a,{style:{width:200,height:270,margin:10,display:"inline-block"}},u.a.createElement(ge.a,{onClick:function(){e.props.history.push("/details/"+e.props.item.id)}},u.a.createElement(Ae.a,{style:{height:140},image:this.props.item.imageUrls[0]}),u.a.createElement(ve.a,{style:{height:50}},u.a.createElement("div",{style:{marginLeft:5,fontWeight:"bold",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},this.props.item.name),u.a.createElement("div",{style:{margin:5}},"Price: ",this.props.item.price," $"),u.a.createElement("div",{style:{color:"#1a9349",fontWeight:"bold",margin:5}},this.props.item.popular&&"Popular"))),u.a.createElement(fe.a,{style:{display:"flex",alignItems:"center",height:45}},u.a.createElement(x.a,{size:"small",style:{marginRight:60},onClick:function(){e.props.history.push("/details/"+e.props.item.id)}}," ","Details"),u.a.createElement(we.a,{title:"Add to cart"},u.a.createElement(A.a,{size:"small",onClick:function(t){t.stopPropagation(),e.props.dispatch(F(Object(se.a)({},e.props.item,{quantity:1})))},color:"primary","aria-label":"Add to shopping cart"},u.a.createElement(me.a,{size:"small"})))))}}]),t}(c.Component),Ce=Object(B.a)(Object(U.b)()(ke)),Oe=a(81),je=a.n(Oe),Ie=a(33),xe=a.n(Ie),Be=a(55),Ue=new(function(){function e(){Object(p.a)(this,e)}return Object(h.a)(e,[{key:"getItemUsingID",value:function(e){return new Promise(function(t,a){setTimeout(function(){var a=R.filter(function(t){return t.id===parseInt(e,10)});t(0===a.length?null:a[0])},500)})}},{key:"sortByPrice",value:function(e,t){if("lh"!==t&&"hl"!==t)return e;var a=Object(Be.a)(e);return"lh"===t?a.sort(function(e,t){return e.price-t.price}):a.sort(function(e,t){return t.price-e.price}),a}},{key:"searchItems",value:function(e){var t=this,a=e.category,n=void 0===a?"popular":a,r=e.term,i=void 0===r?"":r,o=e.sortValue,l=void 0===o?"lh":o,s=e.itemsPerPage,c=void 0===s?10:s,u=e.usePriceFilter,m=void 0!==u&&u,d=e.minPrice,p=void 0===d?0:d,h=e.maxPrice,g=void 0===h?1e3:h,y=e.page,f=void 0===y?1:y;return new Promise(function(e,a){setTimeout(function(){var a=R.filter(function(e){return(!m||!(e.price<p||e.price>g))&&("popular"===n?e.popular:("All categories"===n||n===e.category)&&!(i&&!e.name.toLowerCase().includes(i.toLowerCase())))}),r=a.length;a=(a=t.sortByPrice(a,l)).slice((f-1)*c,f*c),e({data:a,totalLength:r})},500)})}}]),e}()),Fe=a(159),De=a.n(Fe),Ke=a(160),Ne=a.n(Ke),Te=a(158),Qe=a.n(Te),Re=a(161),Le=a.n(Re),Pe=a(53),ze=a.n(Pe),Ye=function(e){var t=parseInt(e.itemsPerPage),a=parseInt(e.page),n=Math.ceil(e.totalItemsCount/t);return u.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},u.a.createElement(A.a,{size:"small",color:"primary",disabled:1===a,onClick:function(){e.updateQueryString({page:1})},style:{marginRight:10}},u.a.createElement(Qe.a,null)),u.a.createElement(A.a,{size:"small",color:"primary",disabled:1===a,onClick:function(){e.updateQueryString({page:a-1})},style:{marginRight:10}},u.a.createElement(De.a,null)),u.a.createElement(ze.a,{variant:"body1"},"Page ",a," of ",n),u.a.createElement(A.a,{size:"small",color:"primary",disabled:a>=n.toString(),onClick:function(){e.updateQueryString({page:a+1})},style:{marginLeft:10,marginRight:10}},u.a.createElement(Ne.a,null)),u.a.createElement(A.a,{size:"small",color:"primary",disabled:a>=n.toString(),onClick:function(){e.updateQueryString({page:n})},style:{marginRight:10}},u.a.createElement(Le.a,null)))},Me=a(80),Ve=a.n(Me),Ge=a(162),We=a.n(Ge),He=function(e){function t(){var e,a;Object(p.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(g.a)(this,(e=Object(y.a)(t)).call.apply(e,[this].concat(r)))).state={lastOpenedStatus:!1},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this,t=this.state,a=t.min,n=t.max;return u.a.createElement("div",null,u.a.createElement(Ve.a,{open:this.props.open,onClose:function(){e.props.onClose()}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},u.a.createElement(We.a,null,"Enter price range"),u.a.createElement("div",{style:{display:"flex",padding:20}},u.a.createElement(j.a,{value:a,type:"number",style:{width:70},placeholder:"Min",label:"Min",onChange:function(t){var a=parseInt(t.target.value,10);Number.isNaN(a)||a<0||a>1e5||e.setState({min:a})}}),u.a.createElement(j.a,{value:n,type:"number",style:{width:70,marginLeft:20},placeholder:"Max",label:"Max",onChange:function(t){var a=parseInt(t.target.value,10);Number.isNaN(a)||a<0||a>1e5||e.setState({max:a})}})),u.a.createElement("div",{style:{display:"flex",padding:20}},u.a.createElement(x.a,{variant:"outlined",color:"primary",style:{width:50},onClick:function(){e.props.onSave(a,n)}},"OK"),u.a.createElement(x.a,{color:"primary",variant:"outlined",style:{width:50,marginLeft:5},onClick:function(){e.props.onClose()}},"Cancel")))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!0===e.open&&!1===t.lastOpenedStatus?{min:e.min,max:e.max,lastOpenedStatus:!0}:{lastOpenedStatus:e.open}}}]),t}(c.Component),Je=a(163),qe=a.n(Je),Xe=a(164),Ze=a.n(Xe),_e=function(e){function t(){var e,a;Object(p.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(g.a)(this,(e=Object(y.a)(t)).call.apply(e,[this].concat(r)))).state={openPriceDialog:!1},a.handleSortChange=function(e){a.updateQueryString({sortValue:e.value})},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.loading,n=t.totalItemsCount,r=t.pageTitle,i="true"===this.props.queryString.usePriceFilter,o=this.props.queryString.minPrice||0,l=this.props.queryString.maxPrice||1e3,s=this.props.queryString.sortValue||"lh";return u.a.createElement("div",null,u.a.createElement("div",{style:{padding:10,display:"flex",alignItems:"center"}},u.a.createElement("div",{style:{flex:1,fontSize:24}},u.a.createElement("div",null,r),!a&&u.a.createElement("div",{style:{fontSize:12,color:"gray",marginTop:5}},"Total results found: ",n)),u.a.createElement(qe.a,{control:u.a.createElement(Ze.a,{color:"primary",checked:i,onChange:function(t){e.props.updateQueryString({usePriceFilter:t.target.checked,page:1})}}),label:"Filter by price"}),i&&u.a.createElement(we.a,{title:"Click to change range",disableFocusListener:!0},u.a.createElement(x.a,{variant:"outlined",style:{marginRight:20},onClick:function(){e.setState({openPriceDialog:!0})}},o+"$ - "+l+"$")),u.a.createElement(X.a,{value:s,onChange:function(t){e.props.updateQueryString({sortValue:t.target.value})}},u.a.createElement(J.a,{value:"lh"},"Sort by price: low to high"),u.a.createElement(J.a,{value:"hl"},"Sort by price: high to low"))),u.a.createElement(He,{open:this.state.openPriceDialog,min:o,max:l,onSave:function(t,a){e.setState({openPriceDialog:!1}),e.props.updateQueryString({minPrice:t,maxPrice:a,page:1})},onClose:function(){return e.setState({openPriceDialog:!1})}}))}}]),t}(c.Component),$e=function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).state={loading:!1,totalItemsCount:null,items:[]},a.updateQueryString=a.updateQueryString.bind(Object(ce.a)(a)),a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"updateQueryString",value:function(e){var t=xe.a.parse(this.props.location.search),a=Object(se.a)({},t,e);this.props.history.push("/?"+xe.a.stringify(a))}},{key:"fetchData",value:function(){var e=Object(le.a)(oe.a.mark(function e(){var t,a;return oe.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({loading:!0}),t=xe.a.parse(this.props.location.search),e.next=4,Ue.searchItems(Object(se.a)({},t,{usePriceFilter:"true"===t.usePriceFilter}));case 4:a=e.sent,this.setState({items:a.data,loading:!1,totalItemsCount:a.totalLength});case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentDidUpdate",value:function(e,t,a){var n=xe.a.parse(this.props.location.search),r=xe.a.parse(e.location.search),i=Object.entries(n).some(function(e){var t=Object(re.a)(e,2),a=t[0];return t[1]!==r[a]}),o=Object.entries(r).some(function(e){var t=Object(re.a)(e,2),a=t[0];return t[1]!==n[a]});(i||o)&&this.fetchData()}},{key:"getPageTitle",value:function(){var e="Search results",t=xe.a.parse(this.props.location.search).category,a="true"===xe.a.parse(this.props.location.search).directClick;return t?a&&(e=t):e="Popular products",e}},{key:"render",value:function(){var e=xe.a.parse(this.props.location.search),t=e.itemsPerPage||10,a=e.page||1;return this.state.loading?u.a.createElement(je.a,{className:"circular"}):u.a.createElement("div",null,u.a.createElement(_e,{loading:this.state.loading,pageTitle:this.getPageTitle(),updateQueryString:this.updateQueryString,queryString:e,totalItemsCount:this.state.totalItemsCount}),this.state.items.map(function(e){return u.a.createElement(Ce,{key:e.id,item:e})}),!this.state.loading&&!!this.state.totalItemsCount&&u.a.createElement(Ye,{itemsPerPage:t,page:a,updateQueryString:this.updateQueryString,totalItemsCount:this.state.totalItemsCount}))}}]),t}(c.Component),et=a(372),tt=a(165),at=a(77),nt=a(368),rt=a(168),it=a.n(rt),ot=a(169),lt=a.n(ot),st=a(167),ct=a.n(st),ut=a(101),mt=a.n(ut),dt=a(70),pt=a.n(dt),ht=a(166),gt=a.n(ht),yt=a(104),ft=a.n(yt),bt=a(170),vt=a.n(bt),Et=function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).state={expandedMenuItems:{1:!0},dataForTheMenu:P},a.renderMenu=a.renderMenu.bind(Object(ce.a)(a)),a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"isMenuItemActive",value:function(e,t){if(t.search){var a=xe.a.parse(t.search);return"true"===a.directClick&&e.name===a.category}return e.url===t.pathname}},{key:"renderMenu",value:function(e){var t=this;return u.a.createElement(mt.a,null,e.map(function(e,a){return e.children?u.a.createElement(c.Fragment,{key:e.id},u.a.createElement(pt.a,{button:!0,dense:!0,onClick:function(){t.setState(function(t){return{expandedMenuItems:Object(se.a)({},t.expandedMenuItems,Object(at.a)({},e.id,!t.expandedMenuItems[e.id]))}})}},u.a.createElement(ft.a,{primary:e.name}),t.state.expandedMenuItems[e.id]?u.a.createElement(it.a,null):u.a.createElement(lt.a,null)),u.a.createElement(vt.a,{in:t.state.expandedMenuItems[e.id],timeout:"auto",unmountOnExit:!0},t.renderMenu(e.children))):u.a.createElement(nt.a,{to:e.url,exact:!0,isActive:function(a,n){return t.isMenuItemActive(e,n)},style:{textDecoration:"none",color:"rgb(32, 32, 34)"},key:e.id,activeStyle:{color:"#4282ad"}},u.a.createElement(pt.a,{dense:!0,button:!0},u.a.createElement(gt.a,null,u.a.createElement(ct.a,null,e.icon,"}")),u.a.createElement(ft.a,{disableTypography:!0,primary:u.a.createElement("div",{style:{color:"inherit"}},e.name)})))}))}},{key:"render",value:function(){return this.props.showMenu?u.a.createElement("div",{style:{backgroundColor:"#FAFAFB",minWidth:250}},this.renderMenu(this.state.dataForTheMenu)):null}}]),t}(c.Component),At=Object(B.a)(Object(U.b)(function(e){return{showMenu:e.showMenu}})(Et)),St=a(82),wt=a.n(St),kt=a(84),Ct=a.n(kt),Ot=a(26),jt=a.n(Ot),It=a(83),xt=a.n(It),Bt=a(41),Ut=a.n(Bt),Ft=a(103),Dt=function(e){var t=e.item;return u.a.createElement(Ut.a,null,u.a.createElement(jt.a,null,u.a.createElement(Ft.a,{to:"/details/".concat(t.id)},u.a.createElement("div",{onClick:function(){e.dispatch(D(!1))}},t.name))),u.a.createElement(jt.a,null,t.price),u.a.createElement(jt.a,null,u.a.createElement(j.a,{type:"number",style:{width:40},value:t.quantity,onChange:function(a){var n=parseInt(a.target.value,10);n<0||e.dispatch({type:"UPDATE_CART_ITEM_QUANTITY",payload:{id:t.id,quantity:n}})}})),u.a.createElement(jt.a,null,u.a.createElement(x.a,{color:"secondary",onClick:function(){e.dispatch({type:"DELETE_CART_ITEM",payload:t.id})}},"Delete")))},Kt=a(171),Nt=a.n(Kt),Tt=function(e){function t(){return Object(p.a)(this,t),Object(g.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this,t=this.props.items.reduce(function(e,t){return e+t.price*t.quantity},0);return u.a.createElement("div",null,u.a.createElement(Ve.a,{open:this.props.open,onClose:function(){e.props.dispatch(D(!1))}},u.a.createElement(_.a,{position:"static",style:{backgroundColor:"#3863aa"}},u.a.createElement(ee.a,null,u.a.createElement(Nt.a,{fontSize:"large",style:{color:"white",marginRight:20}}),"Shopping Cart")),u.a.createElement("div",{style:{maxHeight:400,padding:10,overflow:"auto"}},u.a.createElement(wt.a,null,u.a.createElement(xt.a,null,u.a.createElement(Ut.a,null,u.a.createElement(jt.a,null,"Item name"),u.a.createElement(jt.a,null,"Price"),u.a.createElement(jt.a,null,"Quantity"),u.a.createElement(jt.a,null,"Action"))),u.a.createElement(Ct.a,null,this.props.items.map(function(t,a){return u.a.createElement(Dt,Object.assign({item:t,key:t.id},e.props))})))),u.a.createElement("div",{style:{display:"flex",padding:20,alignItems:"center"}},u.a.createElement("div",{style:{flex:1}}," ","Total Price: ",t," $"),u.a.createElement(x.a,{variant:"outlined",color:"primary",disabled:0===t,onClick:function(){e.props.dispatch(D(!1)),e.props.dispatch(K(e.props.items)),e.props.history.push("/order")}},"Checkout"))))}}]),t}(c.Component),Qt=Object(B.a)(Object(U.b)(function(e){return{open:e.showCartDialog,items:e.cartItems}})(Tt)),Rt=function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).isCompMounted=!1,a.state={relatedItems:[],quantity:1,item:null,loading:!1},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"fetchProductUsingID",value:function(){var e=Object(le.a)(oe.a.mark(function e(t){var a,n;return oe.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({loading:!0}),e.next=3,Ue.getItemUsingID(t);case 3:return a=e.sent,e.next=6,Ue.searchItems({category:a.category});case 6:n=e.sent,this.isCompMounted&&this.setState({item:a,relatedItems:n.data.filter(function(e){return e.id!==a.id}),loading:!1});case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e,t,a){this.props.match.params.id!==e.match.params.id&&this.fetchProductUsingID(this.props.match.params.id)}},{key:"componentDidMount",value:function(){this.isCompMounted=!0,this.fetchProductUsingID(this.props.match.params.id)}},{key:"componentWillUnmount",value:function(){this.isCompMounted=!1}},{key:"render",value:function(){var e=this;return this.state.loading?u.a.createElement(je.a,{className:"circular"}):this.state.item?u.a.createElement("div",{style:{padding:10}},u.a.createElement("div",{style:{marginBottom:20,marginTop:10,fontSize:24}},this.state.item.name),u.a.createElement("div",{style:{display:"flex"}},u.a.createElement("img",{src:this.state.item.imageUrls[0],alt:"",width:250,height:250,style:{borderRadius:"5%",objectFit:"cover"}}),u.a.createElement("div",{style:{flex:1,marginLeft:20,display:"flex",flexDirection:"column"}},u.a.createElement("div",{style:{fontSize:18,marginTop:10}},"Price: ",this.state.item.price," $"),this.state.item.popular&&u.a.createElement("span",{style:{marginTop:5,fontSize:14,color:"#228B22"}},"(Popular product)"),u.a.createElement(j.a,{type:"number",value:this.state.quantity,style:{marginTop:20,marginBottom:20,width:50},label:"Quantity",inputProps:{min:1,max:10,step:1},onChange:function(t){e.setState({quantity:parseInt(t.target.value)})}}),u.a.createElement(x.a,{style:{width:200,marginTop:5},color:"primary",variant:"outlined",onClick:function(){e.props.dispatch(F(Object(se.a)({},e.state.item,{quantity:e.state.quantity})))}},"Add to Cart ",u.a.createElement(me.a,{style:{marginLeft:5}})))),u.a.createElement("div",{style:{marginTop:30,marginBottom:20,fontSize:24}},"Product Description"),u.a.createElement("div",{style:{marginLeft:5,maxHeight:200,fontSize:13,overflow:"auto"}},this.state.item.description?this.state.item.description:u.a.createElement("div",{style:{color:"gray"}},"Not available")),u.a.createElement("div",{style:{marginTop:30,marginBottom:10,fontSize:24}},"Related Items"),this.state.relatedItems.slice(0,3).map(function(e){return u.a.createElement(Ce,{key:e.id,item:e})})):null}}]),t}(c.Component),Lt=Object(U.b)()(Rt),Pt=function(e){function t(){return Object(p.a)(this,t),Object(g.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this,t=this.props.checkedOutItems.reduce(function(e,t){return e+t.price*t.quantity},0);return u.a.createElement("div",{style:{padding:10}},u.a.createElement("div",{style:{fontSize:24,marginTop:10}},"Order summary"),u.a.createElement(wt.a,null,u.a.createElement(xt.a,null,u.a.createElement(Ut.a,null,u.a.createElement(jt.a,null,"Item name"),u.a.createElement(jt.a,null,"Price"),u.a.createElement(jt.a,null,"Quantity"))),u.a.createElement(Ct.a,null,this.props.checkedOutItems.map(function(e,t){return u.a.createElement(Ut.a,{key:e.id},u.a.createElement(jt.a,null,e.name),u.a.createElement(jt.a,null,e.price),u.a.createElement(jt.a,null,e.quantity))}))),u.a.createElement("div",{style:{color:"#504F5A",marginLeft:5,marginTop:50,fontSize:22}},"Total price: ",t," $"),u.a.createElement(x.a,{color:"primary",variant:"outlined",disabled:0===t,onClick:function(){console.log("purchased")},style:{margin:5,marginTop:30}},"Purchase"),u.a.createElement(x.a,{color:"secondary",variant:"outlined",disabled:0===t,onClick:function(){e.props.dispatch(K([]))},style:{margin:5,marginTop:30}},"Discard"))}}]),t}(c.Component),zt=Object(B.a)(Object(U.b)(function(e){return{checkedOutItems:e.checkedOutItems}})(Pt)),Yt=a(370),Mt=a(38),Vt=a.n(Mt),Gt=function(e){function t(){var e,a;Object(p.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(g.a)(this,(e=Object(y.a)(t)).call.apply(e,[this].concat(r)))).state={userName:"",pass:"",redirectToReferrer:!1},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){var e=this,t=(this.props.location.state||{from:{pathname:"/"}}).from;return!0===this.state.redirectToReferrer?u.a.createElement(Yt.a,{to:t}):u.a.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},u.a.createElement("div",{style:{height:300,width:200,padding:30,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},u.a.createElement(V.a,{style:{marginBottom:10}},u.a.createElement(Vt.a,null)),u.a.createElement("div",{style:{marginBottom:20,fontSize:24,textAlign:"center"}}," ","Log in"," "),u.a.createElement(j.a,{value:this.state.userName,placeholder:"User name",onChange:function(t){e.setState({userName:t.target.value})}}),u.a.createElement(j.a,{value:this.state.pass,type:"password",placeholder:"Password",onChange:function(t){e.setState({pass:t.target.value})}}),u.a.createElement(x.a,{style:{marginTop:20,width:200},variant:"outlined",color:"primary",onClick:function(){Q.authenticate(e.state.userName,e.state.pass,function(t){t?(e.props.dispatch(function(e){return{type:"SET_LOGGED_IN_USER",payload:e}}({name:t.name})),e.setState(function(){return{redirectToReferrer:!0}})):e.setState({wrongCred:!0})})}},"Log in"),this.state.wrongCred&&u.a.createElement("div",{style:{color:"red"}},"Wrong username and/or password")),u.a.createElement(nt.a,{to:"/partial"},"click here to go to partial password"))}}]),t}(c.Component),Wt=Object(B.a)(Object(U.b)()(Gt)),Ht=(a(98),function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}),Jt=function(e){var t=!1;switch(typeof e){case"undefined":t=!0;break;case"string":0===e.trim().length&&(t=!0);break;case"object":null===e?t=!0:0===Object.keys(e).length&&(t=!0);break;default:t=!0}return t},qt=function(e,t){if(Jt(t))throw new Error("Who will provide the options you?");var a=!0;if(-1===["string","number"].indexOf(typeof e))a=!1;else{var n=0;n=t.trim?e.toString().trim().length:e.toString().length,"number"===typeof t.lt&&n>=t.lt?a=!1:"number"===typeof t.lte&&n>t.lte?a=!1:"number"===typeof t.gt&&n<=t.gt?a=!1:"number"===typeof t.gte&&n<t.gte&&(a=!1)}return a},Xt=function(e){return("string"===typeof e||"number"===typeof e)&&-1!==e.toString().trim().indexOf(" ")},Zt=(a(363),a(99),function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).handleInputChange=function(e){var t=e.target,n=t.value,r=t.name,i=a.state.formData;i[r]=n,a.setState({formData:i})},a.validateLoginForm=function(e){var t={},n=a.state.formData;return Jt(n.email)?t.email="Email can't be blank":Ht(n.email)||(t.email="Please enter a valid email"),Jt(n.password)?t.password="Password can't be blank":Xt(n.password)?t.password="Password should not contain white spaces":qt(n.password,{gte:6,lte:16,trim:!0})?"banan"+n.password+"a"!=="bananbananaa"&&(t.password="incorrect password"):t.password="Password's length must between 6 to 16",!!Jt(t)||t},a.login=function(e){e.preventDefault();var t=a.validateLoginForm();!0===t?(alert("You are successfully signed in..."),a.props.history.push("/dark")):a.setState({errors:t,formSubmitted:!0})},a.state={user:null,formData:{},errors:{},formSubmitted:!1,loading:!1},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"check",value:function(){var e="yess".charAt(1);console.log(e)}},{key:"signOut",value:function(){this.setState({user:null})}},{key:"signIn",value:function(e,t){this.setState({user:{username:e,password:t}})}},{key:"render",value:function(){var e=this.state,t=e.errors,a=e.formSubmitted;return u.a.createElement("body",null,u.a.createElement("div",{class:"limiter"},u.a.createElement("div",{class:"container-login100"},u.a.createElement("div",{"class-":"wrap-login100"},u.a.createElement("div",{class:"lo"},u.a.createElement(V.a,{class:"avatar"},u.a.createElement(Vt.a,null)),u.a.createElement("div",{class:"log"},"Log in")),u.a.createElement("form",{className:"login100-form validate-form",onSubmit:this.login},u.a.createElement("div",{class:"wrap-input100",controlId:"email",validationState:a?t.email?"error":"success":null},u.a.createElement("input",{class:"input100",type:"text",name:"email",placeholder:"Enter your email",onChange:this.handleInputChange}),t.email&&u.a.createElement("div",{class:"errors"},t.email)),u.a.createElement("div",{controlId:"password",validationState:a?t.password?"error":"success":null},u.a.createElement("input",{class:"input100",type:"password",name:"password",placeholder:"Enter your password",onChange:this.handleInputChange}),t.password&&u.a.createElement("div",{class:"errors"},t.password)),u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement("button",{class:"login100-form-btn"},"Login")),u.a.createElement(nt.a,{to:"/Secure"},"do you not trust your device?"))))))}}]),t}(c.Component)),_t=a(172),$t=Object(U.b)(function(e){return{loggedInUser:e.loggedInUser}})(function(e){var t=e.component,a=Object(_t.a)(e,["component"]);return u.a.createElement(tt.a,Object.assign({},a,{render:function(e){return a.loggedInUser?u.a.createElement(t,e):u.a.createElement(Yt.a,{to:{pathname:"/login",state:{from:e.location}}})}}))}),ea=(a(364),function(e){function t(){return Object(p.a)(this,t),Object(g.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){return u.a.createElement("div",{style:{boxSizing:"border-box",padding:10,borderTop:"1px solid lightgray",height:100,backgroundColor:"#f1f1f1",justifyContent:"space-around",display:"flex"}},u.a.createElement("div",null,u.a.createElement("div",{style:{color:"#504F5A",fontWeight:"bold",marginBottom:10}},"Buy"),u.a.createElement(nt.a,{to:"/payment",exact:!0,style:{textDecoration:"none",color:"rgb(32, 32, 34)"},activeStyle:{color:"#4282ad",textDecoration:"underline"}},u.a.createElement("div",{className:"footerItem"},"Terms of payment")),u.a.createElement(nt.a,{to:"/delivery",exact:!0,style:{textDecoration:"none",color:"rgb(32, 32, 34)"},activeStyle:{color:"#4282ad",textDecoration:"underline"}},u.a.createElement("div",{className:"footerItem"},"Delivery"))),u.a.createElement("div",null,u.a.createElement("div",{style:{color:"#504F5A",fontWeight:"bold",marginBottom:10}},"About us"),u.a.createElement(nt.a,{to:"/info",exact:!0,style:{textDecoration:"none",color:"rgb(32, 32, 34)"},activeStyle:{color:"#4282ad",textDecoration:"underline"}},u.a.createElement("div",{className:"footerItem"},"Company Info"))),u.a.createElement("div",null,u.a.createElement("div",{style:{color:"#504F5A",fontWeight:"bold",marginBottom:10}},"Social Media"),u.a.createElement("a",{href:"http://www.facebook.com",target:"blank",style:{textDecoration:"none",color:"rgb(32, 32, 34)"}},u.a.createElement("div",{className:"footerItem"},"Facebook"))))}}]),t}(c.Component)),ta=(a(365),function(e){function t(){return Object(p.a)(this,t),Object(g.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(h.a)(t,[{key:"toSecure",value:function(){this.props.history.push("/Secure")}},{key:"toTrusted",value:function(){this.props.history.push("/Login")}},{key:"render",value:function(){return u.a.createElement("body",null,u.a.createElement("div",{class:"limiter"},u.a.createElement("div",{class:"container-login100"},u.a.createElement("div",{"class-":"wrap-login100"},u.a.createElement("form",{className:"login100-form validate-form"},u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement(nt.a,{exact:!0,to:"/Secure"},u.a.createElement("button",{class:"login100-form-btn"},"Untrusted Login Page")))),u.a.createElement("form",{className:"login100-form validate-form"},u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement(nt.a,{exact:!0,to:"/Login"},u.a.createElement("button",{class:"login100-form-btn"},"Trusted Login Page"))))))))}}]),t}(c.Component)),aa=function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).handleInputChange=function(e){var t=e.target,n=t.value,r=t.name,i=a.state.formData;i[r]=n,a.setState({formData:i})},a.validateLoginForm=function(e){var t={},n=a.state.formData;return Jt(n.email)?t.email="Email can't be blank":Ht(n.email)||(t.email="Please enter a valid email"),!!Jt(t)||t},a.login=function(e){e.preventDefault();var t=a.validateLoginForm();!0===t?(alert("You are successfully signed in..."),a.props.history.push("/Verify")):a.setState({errors:t,formSubmitted:!0})},a.state={user:null,formData:{},errors:{},formSubmitted:!1,loading:!1},a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"check",value:function(){var e="yess".charAt(1);console.log(e)}},{key:"signOut",value:function(){this.setState({user:null})}},{key:"signIn",value:function(e,t){this.setState({user:{username:e,password:t}})}},{key:"render",value:function(){var e=this.state.errors;return u.a.createElement("body",null,u.a.createElement("div",{class:"limiter"},u.a.createElement("div",{class:"container-login100"},u.a.createElement("div",{"class-":"wrap-login100"},u.a.createElement("div",{class:"lo"},u.a.createElement(V.a,{class:"avatar"},u.a.createElement(Vt.a,null)),u.a.createElement("div",{class:"log"},"Secure Login")),u.a.createElement("form",{className:"lo",onSubmit:this.login},u.a.createElement("div",{class:"wrap-input100 validate-input ","data-validate":"username is required"},u.a.createElement(j.a,{type:"text",name:"email",placeholder:"Enter your email",onChange:this.handleInputChange}),e.email&&u.a.createElement("div",{class:"errors"},e.email)),u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement("button",{class:"login100-form-btn"},"Login")))))))}}]),t}(c.Component),na="",ra=["first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","tenth"],ia=0,oa=function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).state={number:""},a.handleNumber=a.handleNumber.bind(Object(ce.a)(a)),a.handleSubmit=a.handleSubmit.bind(Object(ce.a)(a)),a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"handleNumber",value:function(e){this.setState({number:e.target.value})}},{key:"handleSubmit",value:function(e){ia=0,this.state.number,this.check(),e.preventDefault(),na=""}},{key:"randomize",value:function(e){for(o=this.getRandomInt(),l=this.getRandomInt(),s=this.getRandomInt();o===l;)l=this.getRandomInt();for(;s===l||s===o;)s=this.getRandomInt();this.sort(o,l,s);for(var t=0;t<"351235".length;t++)na+=t===o||t===l||t===s?"*":"351235".charAt(t)}},{key:"sort",value:function(e,t,a){var n,r,i;e<t&&e<a?n=e:t<e&&t<s?n=t:a<e&&a<t&&(n=a),e>t&&e>a?r=e:t>e&&t>a?r=t:a>o&&a>t&&(r=a),(e>t&&e<a||e<t&&e>a)&&(i=e),(t>e&&t<a||t<e&&t>a)&&(i=t),(a>e&&a<t||a<e&&a>t)&&(i=a),o=n,l=i,s=r}},{key:"getRandomInt",value:function(){var e=Math.ceil(0),t=Math.floor("351235".length-1);return Math.floor(Math.random()*(t-e+1))+e}},{key:"check",value:function(e){for(var t="",a=0;a<"351235".length;a++)"*"===na.charAt(a)?(0===ia?t+=n:1===ia?t+=r:2===ia&&(t+=i),ia++):t+="351235".charAt(a);"351235"===t?(alert("Password Success"),this.props.history.push("/")):(alert("Password Fail"),window.location.reload())}},{key:"handleX",value:function(e){n=e.target.value}},{key:"handleY",value:function(e){r=e.target.value}},{key:"handleZ",value:function(e){i=e.target.value}},{key:"render",value:function(){return this.randomize(),console.log("351235"),u.a.createElement("body",null,u.a.createElement("div",{class:"limiter"},u.a.createElement("div",{class:"container-login100"},u.a.createElement("div",{"class-":"wrap-login100"},u.a.createElement("form",{className:"login100-form validate-form",onSubmit:this.handleSubmit},u.a.createElement("div",{class:"wrap-input100"},ra[o]," number:",u.a.createElement("p",null," ",u.a.createElement(j.a,{type:"text",number:"",placeholder:"enter the number",onChange:this.handleX}))),u.a.createElement("div",{class:"wrap-input100"},ra[l]," number:",u.a.createElement("p",null," ",u.a.createElement(j.a,{type:"text",number:"",placeholder:"enter the number",onChange:this.handleY}))),u.a.createElement("div",{class:"wrap-input100"},ra[s]," number",u.a.createElement("p",null," ",u.a.createElement(j.a,{type:"text",number:"",placeholder:"enter the number",onChange:this.handleZ}))),u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement("button",{class:"login100-form-btn"},"Login"))))))))}}]),t}(u.a.Component),la=function(e){function t(e){var a;return Object(p.a)(this,t),(a=Object(g.a)(this,Object(y.a)(t).call(this,e))).state={number:"",code:"",otpSendResponse:[],otpVerifyResponse:[]},a.handleNumber=a.handleNumber.bind(Object(ce.a)(a)),a.handleCode=a.handleCode.bind(Object(ce.a)(a)),a.handleC=a.handleC.bind(Object(ce.a)(a)),a.handleSubmit=a.handleSubmit.bind(Object(ce.a)(a)),a.handleSubm=a.handleSubmit.bind(Object(ce.a)(a)),a}return Object(f.a)(t,e),Object(h.a)(t,[{key:"handleNumber",value:function(e){this.setState({number:e.target.value}),this.state.number}},{key:"handleC",value:function(e){this.setState({code:e.target.value}),this.state.code}},{key:"sendOtp",value:function(e){var t=this;fetch("https://cors-anywhere.herokuapp.com/http://34.76.147.17:8080/otp/send",{method:"POST",body:JSON.stringify({phoneNumber:e}),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(function(e){return e.json()}).then(function(e){t.setState({otpSendResponse:e})})}},{key:"verifyOtp",value:function(e,t){var a=this;fetch("https://cors-anywhere.herokuapp.com/http://34.76.147.17:8080/otp/verify",{method:"POST",body:JSON.stringify({phoneNumber:e,code:t}),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(function(e){return e.json()}).then(function(e){a.setState({otpVerifyResponse:e})}),setTimeout(function(){"11"===t?(alert("OTP is valid"),a.props.history.push("/Partial")):alert("OTP invalid try again")},3e3)}},{key:"handleSubmit",value:function(e){this.sendOtp(this.state.number),alert("number: "+this.state.number),e.preventDefault()}},{key:"signOut",value:function(){this.setState({user:null})}},{key:"signIn",value:function(e,t){this.setState({user:{username:e,password:t}})}},{key:"handleCode",value:function(e){this.verifyOtp(this.state.number,this.state.code),e.preventDefault()}},{key:"render",value:function(){return u.a.createElement("div",null,u.a.createElement("body",null,u.a.createElement("div",{class:"limiter"},u.a.createElement("div",{class:"container-login100"},u.a.createElement("div",{"class-":"wrap-login100"},u.a.createElement("div",{class:"lo"},u.a.createElement(V.a,{class:"avatar"},u.a.createElement(Vt.a,null)),u.a.createElement("div",{class:"log"},"One Time Password")),u.a.createElement("form",{onSubmit:this.handleCode},u.a.createElement("div",{class:"wrap-input100"},u.a.createElement(j.a,{type:"text",placeholder:" verification code",number:"",onChange:this.handleC}),u.a.createElement("div",{class:"container-login100-form-btn"},u.a.createElement("button",{class:"login100-form-btn"},"Verity OTP")))))))),u.a.createElement(nt.a,{to:"/partial"},"click here to go to partial password"))}}]),t}(u.a.Component),sa=function(e){function t(){return Object(p.a)(this,t),Object(g.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(h.a)(t,[{key:"render",value:function(){return u.a.createElement("div",{className:"app"},u.a.createElement(ne,null),u.a.createElement("div",{className:"app-body"},u.a.createElement(At,null),u.a.createElement("div",{className:"content"},u.a.createElement(Qt,null),u.a.createElement(et.a,null,u.a.createElement(tt.a,{path:"/",exact:!0,component:$e}),u.a.createElement(tt.a,{path:"/details/:id",component:Lt}),u.a.createElement(tt.a,{path:"/login",component:Zt}),u.a.createElement(tt.a,{exact:!0,path:"/",component:ta}),u.a.createElement(tt.a,{path:"/Login",component:Wt}),u.a.createElement(tt.a,{path:"/Verify",component:la}),u.a.createElement(tt.a,{path:"/Partial",component:oa}),u.a.createElement(tt.a,{path:"/Secure",component:aa}),u.a.createElement($t,{path:"/order",component:zt}),u.a.createElement(tt.a,{component:function(){return u.a.createElement("div",{style:{padding:20}},"Page not found")}})))),u.a.createElement(ea,null))}}]),t}(c.Component),ca=a(369),ua=a(69),ma={cartItems:[],showCartDialog:!1,showMenu:!0,checkedOutItems:[],loggedInUser:null},da=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ma,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ITEM_IN_CART":var a=e.cartItems.findIndex(function(e){return e.id===t.payload.id});if(-1!==a){var n=Object(Be.a)(e.cartItems);return n[a]=Object(se.a)({},n[a],{quantity:e.cartItems[a].quantity+t.payload.quantity}),Object(se.a)({},e,{cartItems:n})}return Object(se.a)({},e,{cartItems:e.cartItems.concat(t.payload)});case"SHOW_CART_DLG":return Object(se.a)({},e,{showCartDialog:t.payload});case"DELETE_CART_ITEM":return Object(se.a)({},e,{cartItems:e.cartItems.filter(function(e){return e.id!==t.payload})});case"TOGGLE_MENU":return Object(se.a)({},e,{showMenu:!e.showMenu});case"SET_LOGGED_IN_USER":return Object(se.a)({},e,{loggedInUser:t.payload});case"LOGOUT":return Object(se.a)({},e,{loggedInUser:null,checkedOutItems:[]});case"SET_CHECKEDOUT_ITEMS":return Object(se.a)({},e,{checkedOutItems:t.payload});case"UPDATE_CART_ITEM_QUANTITY":var r=e.cartItems.findIndex(function(e){return e.id===t.payload.id});if(-1!==r){var i=Object(Be.a)(e.cartItems);return i[r]=Object(se.a)({},i[r],{quantity:t.payload.quantity}),Object(se.a)({},e,{cartItems:i})}return e;default:return e}},pa=Object(ua.b)(da),ha=u.a.createElement(U.a,{store:pa},u.a.createElement(ca.a,null,u.a.createElement(sa,null)));window.__MUI_USE_NEXT_TYPOGRAPHY_VARIANTS__=!0,d.a.render(ha,document.getElementById("root"))},98:function(e,t,a){},99:function(e,t,a){}},[[173,1,2]]]);
  //# sourceMappingURL=main.1513b356.chunk.js.map