"use strict";(self.webpackChunkflone_react=self.webpackChunkflone_react||[]).push([[2189],{2189:function(e,t,s){s.r(t);var i=s(2791),a=s(9434),c=s(7689),r=s(1087),n=s(1770),l=s(1131),d=s(9858),o=s(6496),h=s(4275),m=s(8725),u=s(184);t.default=function(){var e=(0,a.I0)(),t=(0,c.TH)().pathname,s=(0,a.v9)((function(e){return e.currency})),x=(0,a.v9)((function(e){return e.wishlist})).wishlistItems,j=(0,a.v9)((function(e){return e.cart})).cartItems;return(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)(l.Z,{titleTemplate:"Wishlist",description:"Wishlist page of flone react minimalist eCommerce template."}),(0,u.jsxs)(d.Z,{headerTop:"visible",children:[(0,u.jsx)(o.Z,{pages:[{label:"Home",path:"/"},{label:"Wishlist",path:""+t}]}),(0,u.jsx)("div",{className:"cart-main-area pt-90 pb-100",children:(0,u.jsx)("div",{className:"container",children:x&&x.length>=1?(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)("h3",{className:"cart-page-title",children:"Your wishlist items"}),(0,u.jsx)("div",{className:"row",children:(0,u.jsx)("div",{className:"col-12",children:(0,u.jsx)("div",{className:"table-content table-responsive cart-table-content",children:(0,u.jsxs)("table",{children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Image"}),(0,u.jsx)("th",{children:"Product Name"}),(0,u.jsx)("th",{children:"Unit Price"}),(0,u.jsx)("th",{children:"Add To Cart"}),(0,u.jsx)("th",{children:"action"})]})}),(0,u.jsx)("tbody",{children:x.map((function(t,a){var c=(0,n.lk)(t.price,t.discount),l=(t.price*s.currencyRate).toFixed(2),d=(c*s.currencyRate).toFixed(2),o=j.find((function(e){return e.id===t.id}));return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{className:"product-thumbnail",children:(0,u.jsx)(r.rU,{to:"/product/"+t.id,children:(0,u.jsx)("img",{className:"img-fluid",src:""+t.image[0],alt:""})})}),(0,u.jsx)("td",{className:"product-name text-center",children:(0,u.jsx)(r.rU,{to:"/product/"+t.id,children:t.name})}),(0,u.jsx)("td",{className:"product-price-cart",children:null!==c?(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)("span",{className:"amount old",children:s.currencySymbol+l}),(0,u.jsx)("span",{className:"amount",children:s.currencySymbol+d})]}):(0,u.jsx)("span",{className:"amount",children:s.currencySymbol+l})}),(0,u.jsx)("td",{className:"product-wishlist-cart",children:t.affiliateLink?(0,u.jsxs)("a",{href:t.affiliateLink,rel:"noopener noreferrer",target:"_blank",children:[" ","Buy now"," "]}):t.variation&&t.variation.length>=1?(0,u.jsx)(r.rU,{to:"".concat("","/product/").concat(t.id),children:"Select option"}):t.stock&&t.stock>0?(0,u.jsx)("button",{onClick:function(){return e((0,h.Xq)(t))},className:void 0!==o&&o.quantity>0?"active":"",disabled:void 0!==o&&o.quantity>0,title:void 0!==t?"Added to cart":"Add to cart",children:void 0!==o&&o.quantity>0?"Added":"Add to cart"}):(0,u.jsx)("button",{disabled:!0,className:"active",children:"Out of stock"})}),(0,u.jsx)("td",{className:"product-remove",children:(0,u.jsx)("button",{onClick:function(){return e((0,m.ib)(t.id))},children:(0,u.jsx)("i",{className:"fa fa-times"})})})]},a)}))})]})})})}),(0,u.jsx)("div",{className:"row",children:(0,u.jsx)("div",{className:"col-lg-12",children:(0,u.jsxs)("div",{className:"cart-shiping-update-wrapper",children:[(0,u.jsx)("div",{className:"cart-shiping-update",children:(0,u.jsx)(r.rU,{to:"/shop-grid-standard",children:"Continue Shopping"})}),(0,u.jsx)("div",{className:"cart-clear",children:(0,u.jsx)("button",{onClick:function(){return e((0,m.tE)())},children:"Clear Wishlist"})})]})})})]}):(0,u.jsx)("div",{className:"row",children:(0,u.jsx)("div",{className:"col-lg-12",children:(0,u.jsxs)("div",{className:"item-empty-area text-center",children:[(0,u.jsx)("div",{className:"item-empty-area__icon mb-30",children:(0,u.jsx)("i",{className:"pe-7s-like"})}),(0,u.jsxs)("div",{className:"item-empty-area__text",children:["No items found in wishlist ",(0,u.jsx)("br",{})," ",(0,u.jsx)(r.rU,{to:"/shop-grid-standard",children:"Add Items"})]})]})})})})})]})]})}}}]);
//# sourceMappingURL=2189.545fa70e.chunk.js.map