"use strict";(self.webpackChunkflone_react=self.webpackChunkflone_react||[]).push([[7485],{2558:function(e,a,r){var s=r(2791),t=r(184);a.Z=function(e){for(var a=e.ratingValue,r=[],c=0;c<5;c++)r.push((0,t.jsx)("i",{className:"fa fa-star-o"},c));if(a&&a>0)for(var i=0;i<=a-1;i++)r[i]=(0,t.jsx)("i",{className:"fa fa-star-o yellow"},i);return(0,t.jsx)(s.Fragment,{children:r})}},7485:function(e,a,r){r.r(a);var s=r(2791),t=r(7689),c=r(1087),i=r(9434),n=r(1770),l=r(1131),d=r(9858),o=r(6496),m=r(2558),u=r(4275),h=r(1065),p=r(184);a.default=function(){var e=(0,i.I0)(),a=(0,t.TH)().pathname,r=(0,i.v9)((function(e){return e.currency})),x=(0,i.v9)((function(e){return e.compare})).compareItems,j=(0,i.v9)((function(e){return e.cart})).cartItems;return(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(l.Z,{titleTemplate:"Compare",description:"Compare page of flone react minimalist eCommerce template."}),(0,p.jsxs)(d.Z,{headerTop:"visible",children:[(0,p.jsx)(o.Z,{pages:[{label:"Home",path:"/"},{label:"Compare",path:""+a}]}),(0,p.jsx)("div",{className:"compare-main-area pt-90 pb-100",children:(0,p.jsx)("div",{className:"container",children:x&&x.length>=1?(0,p.jsx)("div",{className:"row",children:(0,p.jsx)("div",{className:"col-lg-12",children:(0,p.jsx)("div",{className:"compare-page-content",children:(0,p.jsx)("div",{className:"compare-table table-responsive",children:(0,p.jsx)("table",{className:"table table-bordered mb-0",children:(0,p.jsxs)("tbody",{children:[(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"title-column",children:"Product Info"}),x.map((function(a,r){var s=j.find((function(e){return e.id===a.id}));return(0,p.jsxs)("td",{className:"product-image-title",children:[(0,p.jsx)("div",{className:"compare-remove",children:(0,p.jsx)("button",{onClick:function(){return e((0,h.Ht)(a.id))},children:(0,p.jsx)("i",{className:"pe-7s-trash"})})}),(0,p.jsx)(c.rU,{to:"/product/"+a.id,className:"image",children:(0,p.jsx)("img",{className:"img-fluid",src:""+a.image[0],alt:""})}),(0,p.jsx)("div",{className:"product-title",children:(0,p.jsx)(c.rU,{to:"/product/"+a.id,children:a.name})}),(0,p.jsx)("div",{className:"compare-btn",children:a.affiliateLink?(0,p.jsxs)("a",{href:a.affiliateLink,rel:"noopener noreferrer",target:"_blank",children:[" ","Buy now"," "]}):a.variation&&a.variation.length>=1?(0,p.jsx)(c.rU,{to:"".concat("","/product/").concat(a.id),children:"Select Option"}):a.stock&&a.stock>0?(0,p.jsx)("button",{onClick:function(){return e((0,u.Xq)(a))},className:void 0!==s&&s.quantity>0?"active":"",disabled:void 0!==s&&s.quantity>0,title:void 0!==a?"Added to cart":"Add to cart",children:void 0!==s&&s.quantity>0?"Added":"Add to cart"}):(0,p.jsx)("button",{disabled:!0,className:"active",children:"Out of Stock"})})]},r)}))]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"title-column",children:"Price"}),x.map((function(e,a){var t=(0,n.lk)(e.price,e.discount),c=(e.price*r.currencyRate).toFixed(2),i=(t*r.currencyRate).toFixed(2);return(0,p.jsx)("td",{className:"product-price",children:null!==t?(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)("span",{className:"amount old",children:r.currencySymbol+c}),(0,p.jsx)("span",{className:"amount",children:r.currencySymbol+i})]}):(0,p.jsx)("span",{className:"amount",children:r.currencySymbol+c})},a)}))]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"title-column",children:"Description"}),x.map((function(e,a){return(0,p.jsx)("td",{className:"product-desc",children:(0,p.jsx)("p",{children:e.shortDescription?e.shortDescription:"N/A"})},a)}))]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{className:"title-column",children:"Rating"}),x.map((function(e,a){return(0,p.jsx)("td",{className:"product-rating",children:(0,p.jsx)(m.Z,{ratingValue:e.rating})},a)}))]})]})})})})})}):(0,p.jsx)("div",{className:"row",children:(0,p.jsx)("div",{className:"col-lg-12",children:(0,p.jsxs)("div",{className:"item-empty-area text-center",children:[(0,p.jsx)("div",{className:"item-empty-area__icon mb-30",children:(0,p.jsx)("i",{className:"pe-7s-shuffle"})}),(0,p.jsxs)("div",{className:"item-empty-area__text",children:["No items found in compare ",(0,p.jsx)("br",{})," ",(0,p.jsx)(c.rU,{to:"/shop-grid-standard",children:"Add Items"})]})]})})})})})]})]})}}}]);
//# sourceMappingURL=7485.4c310060.chunk.js.map