Rebuilt dist/ and api release bundle, with the migration for catalog paging indexes. Fix Less build error: fade(@token, N%) on theme tokens failed in both user-app and user-app-v2 CustomerChoiceView; use alpha(), the project's token-aware helper. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
import{d as B,aQ as P,k as z,l as F,b as s,c as t,e as a,m as e,w as N,p as h,I as m,aR as V,f as D,g as _,t as r,R as E,h as I,E as S,_ as O}from"./index-Fj5Qv9qV.js";const R={class:"pc__art"},q=["alt"],L={key:1,class:"pc__artEmpty","aria-hidden":"true"},M=["aria-label"],Q={key:2,class:"pc__flag"},T={key:3,class:"pc__flag pc__flag--soft"},U={class:"pc__title"},$={class:"pc__weight"},j={key:0,class:"pc__meta"},A={key:0,class:"pc__wageOld"},G={class:"pc__wage"},H=B({__name:"ProductCard",props:{value:{},wageBefore:{}},setup(l){const d=l,o=P(),{image:p,id:i,title:u,min_gram:y,wage:f,is_exist:k,qty:w,isPreOrder:x}=z(d.value),g=I(null);function b(){S(d.value,g.value)}function v(n){return n%1===0?String(n):n.toFixed(2)}return(n,c)=>{const C=F("lazy");return s(),t("article",{ref_key:"root",ref:g,class:"pc","data-product-origin":"",onClick:b},[a("div",R,[e(p)?N((s(),t("img",{key:0,alt:e(u)},null,8,q)),[[C,e(p)]]):(s(),t("div",L,[h(m,{icon:"vuesax-linear:diamonds",size:"26"})])),a("button",{type:"button",class:D(["pc__fav",{"is-on":e(o).isFavorite(e(i))}]),"aria-label":e(o).isFavorite(e(i))?"حذف از علاقهمندی":"افزودن به علاقهمندی",onClick:c[0]||(c[0]=V(J=>e(o).toggle(e(i)),["stop"]))},[h(m,{icon:e(o).isFavorite(e(i))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,M),e(k)?e(x)&&e(w)===0?(s(),t("span",T,"پیشسفارش")):_("",!0):(s(),t("span",Q,"ناموجود"))]),a("h3",U,r(e(u)),1),a("p",$,[E(r(e(y))+" ",1),c[1]||(c[1]=a("span",{class:"pc__weightUnit"},"گرم",-1))]),e(f)!=null?(s(),t("div",j,[l.wageBefore!=null?(s(),t("span",A,"اجرت "+r(v(l.wageBefore))+"٪",1)):_("",!0),a("span",G,r(v(e(f)))+"٪ اجرت",1)])):_("",!0)],512)}}}),W=O(H,[["__scopeId","data-v-63b56860"]]);export{W as P};
|