1import{_ as g}from"./BT45ayMJ.js";import{d as k,B as C,a as h,r as x,m as B,a3 as N,o,c as a,l as c,t as y,f as i,F as L,z as P,g as W,j as w,p as _,_ as z,N as D,u as M,b as V,ae as j}from"./BBfPi8oX.js";import{_ as q}from"./CIdm2AT7.js";import{u as F}from"./CzFU0ltx.js";import{u as G}from"./glW-PjAT.js";import{u as I}from"./D0WDC1Gq.js";import"./DDrUmjbW.js";import"./D96p9rHT.js";import"./MYiNf4IT.js";import"./DY5pdrKo.js";import"./3KxGoN4F.js";import"./Dae1TRoG.js";import"./DoiupE-B.js";import"./DOllgUbd.js";const O={class:"my-account__wishlist"},T=["textContent"],A={key:0,class:"my-account__wishlist-items products products--grid"},E=["onClick"],H={key:1},Q=k({__name:"ProductList",setup(v){const{show:r}=C(),{wishlist:s,toggleWishlist:l}=F(),u=h(()=>({skus:s.value.map(t=>t.sku)})),m=x(),p=h(()=>(m.value?.data?.products||[]).filter(e=>e!==null&&s.value.some(n=>n.sku===e.sku)));return B(async()=>{m.value=await N("wishlistProducts",u.value,D())}),(t,e)=>{const n=z,$=q;return o(),a("div",O,[c("h1",{class:"my-account__title",textContent:y(t.$t("My wishlist"))},null,8,T),i(p)?.length?(o(),a("div",A,[(o(!0),a(L,null,P(i(p),(d,f)=>(o(),W($,{key:f,product:d,lazy:f>2},{default:w(()=>[c("button",{class:"my-account__wishlist-remove",onClick:b=>i(l)(d.sku)},[_(n,{name:"icon:trash",class:"icon icon--trash",onClick:b=>i(r)({type:"success",message:t.$t("{name} has been removed from your wishlist.",{name:d.name})})},null,8,["onClick"])],8,E)]),_:2},1032,["product","lazy"]))),128))])):(o(),a("p",H,y(t.$t("No products found")),1))])}}}),S=Object.assign(Q,{__name:"WishlistProductList"}),J={class:"my-account"},K={class:"my-account__container"},R={class:"my-account__wrapper"},U={class:"my-account__content"},ut=k({__name:"wishlist",setup(v){const{pageView:r}=G();r("wishlist");const{$t:s}=M(),{setBreadcrumbs:l}=I();l({label:s("Wishlist"),parents:[]});const u=h(()=>s("My wishlist")+" | "+s("meta.name"));return V({title:u,meta:[{hid:"robots",name:"robots",content:"noindex, follow"}]}),(m,p)=>{const t=g,e=S,n=j;return o(),a("div",J,[_(t,{"back-link":"/"}),c("div",K,[_(n,null,{default:w(()=>[c("div",R,[c("div",U,[_(e)])])]),_:1})])])}}});export{ut as default}; 2//# sourceMappingURL=EboC_RZu.js.map
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.