1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6436],{834:function(s,e,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pages/wishlist",function(){return c(8783)}])},8783:function(s,e,c){"use strict";c.r(e);var t=c(5893),a=c(4416),i=c(7294),l=c(2679),r=c(9889),n=c(1878),d=c(1889),h=c(7564),o=c(3454);e.default=(0,a.$j)(s=>({wishlist:s.wishlist.list?s.wishlist.list:[]}),{...n.Nw,...d.Nw,...h.Nw})(function(s){let{wishlist:e,addToCart:c,removeFromWishlist:a,showQuickView:n}=s,[d,h]=(0,i.useState)(0),u=(s,e)=>{h(2),s.preventDefault(),c(e),a(e)},m=(s,e)=>{h(1),s.preventDefault(),a(e)},p=(s,e)=>{s.preventDefault(),n(e.slug)};return(0,t.jsxs)("main",{className:"main",children:[(0,t.jsx)("div",{className:"page-header",children:(0,t.jsxs)("div",{className:"container d-flex flex-column align-items-center",children:[(0,t.jsx)("nav",{"aria-label":"breadcrumb",className:"breadcrumb-nav",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("ol",{className:"breadcrumb",children:[(0,t.jsx)("li",{className:"breadcrumb-item",children:(0,t.jsx)(r.Z,{href:"/",children:"Home"})}),(0,t.jsx)("li",{className:"breadcrumb-item active","aria-current":"page",children:"Wishlist"})]})})}),(0,t.jsx)("h1",{children:"Wishlist"})]})}),(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"success-alert",children:[1===d?(0,t.jsx)("p",{children:"Product successfully removed."}):"",2===d?(0,t.jsx)("p",{children:"Product added to cart successfully."}):""]}),(0,t.jsx)("div",{className:"wishlist-title",children:(0,t.jsx)("h2",{children:"My wishlist on Porto Shop 2"})}),0===e.length?(0,t.jsx)("div",{className:"wishlist-table-container",children:(0,t.jsx)("div",{className:"table table-wishlist mb-0",children:(0,t.jsxs)("div",{className:"wishlist-empty-page text-center",children:[(0,t.jsx)("i",{className:"far fa-heart"}),(0,t.jsx)("p",{children:"No products added to the wishlist"}),(0,t.jsx)(r.Z,{href:"/shop",className:"btn btn-dark btn-add-cart product-type-simple btn-shop font1 w-auto",children:"go shop "})]})})}):(0,t.jsx)("div",{className:"wishlist-table-container",children:(0,t.jsxs)("table",{className:"table table-wishlist mb-0",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"thumbnail-col"}),(0,t.jsx)("th",{className:"product-col",children:"Product"}),(0,t.jsx)("th",{className:"price-col",children:"Price"}),(0,t.jsx)("th",{className:"status-col",children:"Stock Status"}),(0,t.jsx)("th",{className:"action-col",children:"Actions"})]})}),(0,t.jsx)("tbody",{children:e.map((s,e)=>(0,t.jsxs)("tr",{className:"product-row",children:[(0,t.jsx)("td",{className:"media-with-lazy",children:(0,t.jsxs)("figure",{className:"product-image-container",children:[(0,t.jsx)(r.Z,{href:"/product/default/".concat(s.slug),className:"product-image",children:(0,t.jsx)(l.LazyLoadImage,{alt:"product",src:o.env.NEXT_PUBLIC_ASSET_URI+s.pictures[0].url,threshold:500,width:"80",height:"80"})}),(0,t.jsx)("a",{href:"#",className:"btn-remove icon-cancel",title:"Remove Product",onClick:e=>m(e,s)})]})}),(0,t.jsx)("td",{children:(0,t.jsx)("h5",{className:"product-title",children:(0,t.jsx)(r.Z,{href:"/product/default/".concat(s.slug),children:s.name})})}),(0,t.jsx)("td",{children:(0,t.jsx)("div",{className:"price-box",children:s.price[0]==s.price[1]?(0,t.jsx)("span",{className:"product-price",children:"$"+s.price[0].toFixed(2)}):s.variants.length>0?(0,t.jsxs)("span",{className:"product-price",children:["$"+s.price[0].toFixed(2)," â ","$"+s.price[1].toFixed(2)]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"old-price",children:"$"+s.price[1].toFixed(2)}),(0,t.jsx)("span",{className:"new-price",children:"$"+s.price[0].toFixed(2)})]})})}),(0,t.jsx)("td",{children:(0,t.jsx)("span",{className:"stock-status",children:s.is_out_of_stock?"Out of stock":"In stock"})}),(0,t.jsxs)("td",{className:"action",children:[(0,t.jsx)("a",{href:"ajax/product-quick-view",className:"btn btn-quickview mt-1 mt-md-0",title:"Quick View",onClick:e=>{p(e,s)},children:"Quick View"}),s.variants.length>0?(0,t.jsx)(r.Z,{className:"btn btn-dark btn-add-cart product-type-simple btn-shop",href:"/product/default/".concat(s.slug),children:"select options"}):(0,t.jsx)("button",{className:"btn btn-dark btn-add-cart product-type-simple btn-shop",onClick:e=>{u(e,s)},children:"ADD TO CART"})]})]},"wishlist-item"+e))})]})})]})]})})}},function(s){s.O(0,[2888,9774,179],function(){return s(s.s=834)}),_N_E=s.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.