- apps: the fixed «در حال مشاهده بهعنوان» strip (38px) sat over the fixed page headers, which still sat at top: 0 (the old 30px body padding was shorter than the strip too). The strip's height is now one variable, --aab-h, that the fixed headers (PageBar, home, dashboard, toasts) use as their top. - admin: the customer form offers only «مغازه دار اپلیکیشن» to anyone but the super admin; bankers and walk-in shopkeepers are listed by super-admin-only endpoints, so ordinary admins lost the customers they created under them. - admin: the mobile slider rid (custom.config.statics.slider) was only under the «سفارشی» branch, which the permission screen hides outside level 104. Same rid, now listed under «مدیریت ثابت ها». Display only: the slider routes are still gated by config.statics. Rebuilds admin-panel, user-app and user-app-v2 dist. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{d as P,j as z,k as F,l as B,b as s,c as t,e as a,m as e,w as D,q as v,I as f,p as I,f as N,g as h,t as n,h as S,J as V,i as q,_ as E}from"./index-CcUem5HC.js";const j={class:"pc__art"},J=["alt"],L={key:1,class:"pc__artEmpty","aria-hidden":"true"},M=["aria-label"],O={key:2,class:"pc__flag"},$={key:3,class:"pc__flag pc__flag--soft"},A={class:"pc__body"},G={class:"pc__title"},H={class:"pc__meta"},K={class:"pc__weight"},Q={key:0,class:"pc__wage"},R=P({__name:"ProductCard",props:{value:{}},setup(m){const r=m,i=z(),{image:l,id:c,title:_,min_gram:g,wage:d,is_exist:y,qty:k,isPreOrder:w}=F(r.value),p=S(null);function x(){V(r.value,p.value)}const b=q(()=>{const o=d.value;return o==null?"":o%1===0?String(o):o.toFixed(2)});return(o,u)=>{const C=B("lazy");return s(),t("article",{ref_key:"root",ref:p,class:"pc","data-product-origin":"",onClick:x},[a("div",j,[e(l)?D((s(),t("img",{key:0,alt:e(_)},null,8,J)),[[C,e(l)]]):(s(),t("div",L,[v(f,{icon:"vuesax-linear:diamonds",size:"26"})])),a("button",{type:"button",class:N(["pc__fav",{"is-on":e(i).isFavorite(e(c))}]),"aria-label":e(i).isFavorite(e(c))?"حذف از علاقهمندی":"افزودن به علاقهمندی",onClick:u[0]||(u[0]=I(T=>e(i).toggle(e(c)),["stop"]))},[v(f,{icon:e(i).isFavorite(e(c))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,M),e(y)?e(w)&&e(k)===0?(s(),t("span",$,"پیشسفارش")):h("",!0):(s(),t("span",O,"ناموجود"))]),a("div",A,[a("h3",G,n(e(_)),1),a("div",H,[a("span",K,n(e(g))+" گرم",1),e(d)!=null?(s(),t("span",Q,"اجرت "+n(b.value)+"٪",1)):h("",!0)])])],512)}}}),W=E(R,[["__scopeId","data-v-a0c95205"]]);export{W as P};
|