Files
tehran_taj/apps/user-app-v2/dist/assets/ProductCard-DAS21YxX.js
T
s.esmaeiliandClaude Opus 5.5 2bbd9408dd build: rebuild the server bundle, admin panel and both apps from main
Fresh release output after merging dev: apps/api/release (server
bundle, migrations and the database client) and the three front-end
dist folders. All three front-ends type-check clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:24:53 +03:30

2 lines
1.8 KiB
JavaScript

import{d as B,aM as N,k as P,l as z,f as s,c as t,b as a,m as e,w as F,p as m,I as h,aN as V,i as D,e as _,t as r,N as I,g as S,A as E,_ as M}from"./index-CMIHv7G_.js";const O={class:"pc__art"},q=["alt"],A={key:1,class:"pc__artEmpty","aria-hidden":"true"},L=["aria-label"],T={key:2,class:"pc__flag"},U={key:3,class:"pc__flag pc__flag--soft"},$={class:"pc__title"},j={class:"pc__weight"},G={key:0,class:"pc__meta"},H={key:0,class:"pc__wageOld"},J={class:"pc__wage"},K=B({__name:"ProductCard",props:{value:{},wageBefore:{}},setup(l){const d=l,o=N(),{image:p,id:i,title:u,min_gram:y,wage:f,is_exist:k,qty:w,isPreOrder:x}=P(d.value),g=S(null);function b(){E(d.value,g.value)}function v(n){return n%1===0?String(n):n.toFixed(2)}return(n,c)=>{const C=z("lazy");return s(),t("article",{ref_key:"root",ref:g,class:"pc","data-product-origin":"",onClick:b},[a("div",O,[e(p)?F((s(),t("img",{key:0,alt:e(u)},null,8,q)),[[C,e(p)]]):(s(),t("div",A,[m(h,{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(Q=>e(o).toggle(e(i)),["stop"]))},[m(h,{icon:e(o).isFavorite(e(i))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,L),e(k)?e(x)&&e(w)===0?(s(),t("span",U,"پیش‌سفارش")):_("",!0):(s(),t("span",T,"ناموجود"))]),a("h3",$,r(e(u)),1),a("p",j,[I(r(e(y))+" ",1),c[1]||(c[1]=a("span",{class:"pc__weightUnit"},"گرم",-1))]),e(f)!=null?(s(),t("div",G,[l.wageBefore!=null?(s(),t("span",H,"اجرت "+r(v(l.wageBefore))+"٪",1)):_("",!0),a("span",J,r(v(e(f)))+"٪ اجرت",1)])):_("",!0)],512)}}}),W=M(K,[["__scopeId","data-v-63b56860"]]);export{W as P};