1import{_ as S}from"./CZg8ZHIb.js";import{_ as g}from"./BwZPfSbT.js";import{_ as I}from"./DKa0fpEq.js";import{aK as k,aQ as C,b1 as T,aR as H,b0 as $}from"./RminBxZ_.js";import{u as x}from"./B6x2RDt3.js";import{k as D,l as c,c as E,u as i,P as M,Q as P,O as a,ad as z,V as A}from"./Bb4g8rqR.js";import"./8xn6ciJB.js";import"./bFTntSGj.js";import"./85DSZQKu.js";import"./njqcZc0m.js";import"./8_8wJ2L_.js";import"./B0qpveYt.js";import"./CaVH226W.js";import"./BuSq-5kJ.js";import"./dRyT3ivl.js";import"./BjT7Jv0S.js";import"./DlNiDKZ8.js";import"./XoWa4leQ.js";import"./D5_HqFFT.js";import"./D473AZh1.js";import"./B--moZPC.js";import"./DbAXxRSG.js";import"./D6bjj4k0.js";import"./BMICAD1Z.js";import"./A8KAlvIv.js";import"./CEv_sdEI.js";import"./CP9S-q11.js";import"./CFFuwx8s.js";import"./Kx6uICe5.js";import"./YkzddXkO.js";import"./DUIgoHMx.js";import"./CnJ2XuLG.js";import"./DOMiIjHV.js";import"./hm31rb28.js";import"./VV6o3S6M.js";import"./BJrWiSQK.js";import"./B2VTgGgz.js";import"./wGxXwC2V.js";import"./BxH0Fxtz.js";import"./DbE2tCTa.js";import"./B1xOFnVl.js";import"./DWKPMr3u.js";import"./n0jR5VhA.js";import"./CgZRnF24.js";import"./DoZ_76k9.js";import"./BeO_1LBB.js";import"./Bi7GOes1.js";import"./D1SWy21D.js";import"./CIyu6kS5.js";import"./Cx0YVZpI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="522268d6-fbf2-4fa0-94f0-f8ec2eb85e08",e._sentryDebugIdIdentifier="sentry-dbid-522268d6-fbf2-4fa0-94f0-f8ec2eb85e08")}catch{}})();const R={key:0},V=5,zt=D({__name:"HomeSectionAbandonedCart",setup(e){const{t:r}=k(),{section:m,markEmpty:u}=x(),{isGuest:d}=C(),f=T(),{mazeedShopcartsList:_}=H(f),p=c(()=>{var t;return(t=m.value)!=null&&t.title?$(m.value.title):r("component.homeProducts.acSectionTitle")}),b=t=>{if(t)return typeof t!="string"?{...t,full_size:t.large||t.medium}:{thumbnail:t,small:t,medium:t,large:t,full_size:t}},y=(t,o)=>({...t,title:t.name,image:b(t.image),currency:o.currency,store:o.store,isAvailable:t.isOriginalProductAvailable??!0}),s=c(()=>d.value?[]:(_.value??[]).flatMap(t=>(t.products??[]).map(o=>({key:`${t.cartId}_${o.id}`,product:y(o,t)}))).slice(0,V));return E(()=>s.value.length,t=>u(!t),{immediate:!0}),(t,o)=>{const w=S,h=g,v=I;return i(s).length?(M(),P("div",R,[a(w,{title:i(p),"view-all-url":"/cart","view-all-label":t.$t("component.homeSections.viewCart")},null,8,["title","view-all-label"]),a(v,{items:i(s),"item-class":"w-[80%] sm:w-[60%] md:w-[46%] lg:w-[31%] xl:w-[24%]","impression-type":"product","impression-id":n=>n.product.productId},{default:z(({item:n})=>{var l;return[a(h,{product:n.product,"list-id":(l=i(m))==null?void 0:l.sectionKey,"list-name":i(p)},null,8,["product","list-id","list-name"])]}),_:1},8,["items","impression-id"])])):A("",!0)}}});export{zt as default};
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.