PageSourceSearch

https://mazeed.sa/_nuxt/CHI7FQm9.js

js mazeed.sa collected 2026-09-25 03:23:19 UTC 6,337 bytes, 1 lines download raw bytes

1import{_ as te}from"./D5q3DcrE.js";import{_ as oe}from"./BMn3bR9l.js";import{_ as re}from"./DOr_DpHp.js";import se from"./9c8h-vUc.js";import{aK as ne,aZ as ae,b2 as ie,aQ as le,b0 as T,dq as ce,ba as D,b5 as de,aN as ue,aP as me}from"./CaEOT4Op.js";import{_ as pe}from"./CAmoTfkD.js";import{a as _e}from"./D8AUfInT.js";import{b as fe}from"./BwGkouFR.js";import{_ as ve}from"./BecSe-JV.js";import{u as ge}from"./gBQuRzcb.js";import{u as be}from"./CX3KvnwX.js";import{k as he,l as h,b as I,c as xe,P as u,Q as m,O as i,u as n,ad as $,R as r,N as M,aa as P,U as p,V as E,a5 as ye,S as we,ac as Ce}from"./Bb4g8rqR.js";import"./bFTntSGj.js";import"./B-4hylaO.js";import"./BRUvSYQS.js";import"./DE6K5qvG.js";import"./JYJ8NVSW.js";import"./Cw8aveDk.js";import"./BB-8dLIu.js";import"./CrJ250Vy.js";import"./DaUHehmy.js";import"./DGiRktds.js";import"./Bv6ASoGA.js";import"./BpgC8Zl9.js";import"./D2NBe-JR.js";import"./A8KAlvIv.js";import"./CEv_sdEI.js";import"./IEStqo3R.js";import"./BM3ZbVEx.js";import"./BuSq-5kJ.js";import"./C1aEJLpO.js";import"./DgooaKt1.js";import"./yFk8Gf2l.js";import"./Czs6Uqu-.js";import"./DOMiIjHV.js";import"./hm31rb28.js";import"./CsiQPiXn.js";import"./BrqfBgFK.js";import"./BdVtfmIi.js";import"./_kA3cDjZ.js";import"./CDd6tgRV.js";import"./BZyEmHfE.js";import"./COZP1X1Y.js";import"./CwvjgQsn.js";import"./n0jR5VhA.js";import"./Dx2cQv_L.js";import"./CEutn74p.js";import"./BIlacbLu.js";import"./DsfVUyPA.js";import"./BuO1Tump.js";import"./CIyu6kS5.js";import"./CBSf19v6.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},_=new c.Error().stack;_&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[_]="e18dc4d7-3754-4183-befe-d9c5e7c968ed",c._sentryDebugIdIdentifier="sentry-dbid-e18dc4d7-3754-4183-befe-d9c5e7c968ed")}catch{}})();const ke={class:"flex h-full flex-col justify-between gap-3 rounded-2xl border border-neutral-200 bg-white p-3"},Ie={class:"grid w-[72px] shrink-0 grid-cols-2 gap-1"},$e={key:0,class:"absolute inset-0 flex items-center justify-center rounded-md bg-neutral-1000/60 text-[10px] font-medium text-white"},Se={class:"min-w-0 flex-1"},Ne={class:"flex items-center gap-2"},Ae={class:"h-5 w-5 shrink-0 overflow-hidden rounded-full bg-neutral-100"},Be={class:"truncate text-sm font-semibold text-neutral-1000"},Re={class:"mt-0.5 text-xs text-neutral-400"},Le={class:"flex items-center gap-2"},Oe={class:"min-w-0 truncate text-xs text-neutral-500"},Te=["aria-label","onClick","onMouseenter"],De=20,S=4,Tt=he({__name:"HomeSectionOrderAgain",setup(c){const{locale:_}=ne(),x=ae(),{$analytics:y}=ie(),H=ge(),{section:f,markEmpty:j}=be(),{isGuest:G}=le(),v=h(()=>{var e;return((e=f.value)==null?void 0:e.orders)??[]}),N=I({}),V=async()=>{var t;if(G.value||!v.value.length)return;const e=await ce(fe,{limit:De});N.value=(((t=e==null?void 0:e.orders)==null?void 0:t.nodes)??[]).reduce((l,d)=>{var b;return(b=d.storeReview)!=null&&b.rate&&(l[d.code]=d.storeReview.rate),l},{})},A=e=>e.rating??N.value[e.orderCode]??null,Q=h(()=>{var e;return(e=f.value)!=null&&e.title?T(f.value.title):""}),w=e=>T(e.storeName),U=e=>e.products.slice(0,S),B=e=>Math.max((e.itemsCount??e.products.length)-S,0),q=e=>new Intl.DateTimeFormat(_.value==="ar"?"ar-SA":"en-GB",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(e.placedAt)),C=e=>x(`/orders/${e.orderCode}/${e.storeId}`),g=I(null),z=(e,t)=>{var l;return((l=g.value)==null?void 0:l.orderCode)===e.orderCode?t<=g.value.star:t<=(A(e)??0)},F=(e,t)=>D({path:C(e),query:{view:"rating",rating:t}}),a=I(null),K=h(()=>{var e;return(((e=a.value)==null?void 0:e.products)??[]).map(t=>t.productId).filter(Boolean)}),X=h(()=>{var t;const e=Number((t=a.value)==null?void 0:t.storeId);return Number.isFinite(e)?e:void 0}),Z=e=>{if(!H.value){const t=_e(e.action);return D(t?x(t):C(e))}y==null||y.track(de.reorderInitiated,{order_id:e.orderCode,items_count:e.products.length,source:"home_reorder"}),a.value=e};return xe(v,()=>{j(!v.value.length),V()},{immediate:!0}),(e,t)=>{var R,L,O;const l=te,d=oe,b=re,J=se,W=ue,Y=me,ee=pe;return u(),m("div",null,[i(l,{title:n(Q),"view-all-url":((R=n(f))==null?void 0:R.viewAllUrl)??"/orders","view-all-label":e.$t("component.homeSections.viewOrders")},null,8,["title","view-all-url","view-all-label"]),i(ee,{items:n(v),"item-class":"w-[80%] sm:w-[48%] lg:w-[32%] min-[1330px]:w-[24%]","impression-type":"order","impression-id":o=>o.orderCode},{default:$(({item:o})=>[r("div",ke,[i(J,{to:C(o),class:"flex items-start gap-3"},{default:$(()=>[r("div",Ie,[(u(!0),m(M,null,P(U(o),(s,k)=>(u(),m("div",{key:s.productId,class:"relative"},[i(d,{class:"aspect-square w-full rounded-md object-cover bg-neutral-100",src:s.image,alt:""},null,8,["src"]),k===S-1&&B(o)?(u(),m("span",$e," +"+p(B(o)),1)):E("",!0)]))),128))]),r("div",Se,[r("div",Ne,[r("div",Ae,[o.storeLogo?(u(),ye(d,{key:0,class:"h-full w-full object-cover",src:o.storeLogo,alt:w(o)},null,8,["src","alt"])):E("",!0)]),r("p",Be,p(w(o)),1)]),i(b,{class:"mt-2 text-base font-semibold",price:o.total,currency:o.currency},null,8,["price","currency"]),r("p",Re,p(q(o)),1)])]),_:2},1032,["to"]),r("div",Le,[r("div",{class:"hidden flex-1 items-center gap-1 rounded-xl border border-neutral-200 px-2.5 py-2 md:flex",onMouseleave:t[0]||(t[0]=s=>g.value=null)},[r("span",Oe,p(A(o)?e.$t("component.homeSections.myRating"):e.$t("component.homeSections.rateOrder")),1),(u(),m(M,null,P(5,s=>r("button",{key:s,type:"button",class:"shrink-0 leading-none","aria-label":`${s}/5`,onClick:k=>F(o,s),onMouseenter:k=>g.value={orderCode:o.orderCode,star:s}},[i(W,{name:"ic:round-star-rate",size:"0.85rem",class:we(["transition-colors duration-150 ease-out",z(o,s)?"text-primary":"text-neutral-200"])},null,8,["class"])],40,Te)),64))],32),i(Y,{class:"btn-primary w-full justify-center rounded-xl px-4 py-2 text-xs md:w-auto md:shrink-0",onClick:s=>Z(o)},{default:$(()=>
1[Ce(p(e.$t("component.homeSections.buyAgain")),1)]),_:2},1032,["onClick"])])])]),_:1},8,["items","impression-id"]),i(ve,{"is-open":!!n(a),"product-ids":n(K),"order-code":(L=n(a))==null?void 0:L.orderCode,"store-id":n(X),"store-name":n(a)?w(n(a)):"","store-logo":(O=n(a))==null?void 0:O.storeLogo,onClose:t[1]||(t[1]=o=>a.value=null)},null,8,["is-open","product-ids","order-code","store-id","store-name","store-logo"])])}}});export{Tt 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.