build: release artifacts after order revision, rial wage, and product tags
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
import{be as L,d as w,bf as U,bg as G,w as F,bh as j,x as h,k as x,T as z,bi as Y,bj as q,$ as J,bk as V,bl as X,bm as K,bn as O,f as A,N as Q,g as o,n as P,i as I,J as W,q as M,B as Z,aV as ee,H as b,j as f,e as E,R as te,_ as se}from"./index-CVwJmJzN.js";const[ae,y,le]=L("pull-refresh"),C=50,ne=["pulling","loosing","success"],oe={disabled:Boolean,modelValue:Boolean,headHeight:V(C),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:U,successDuration:V(500),animationDuration:V(300)};var ue=w({name:ae,props:oe,emits:["change","refresh","update:modelValue"],setup(s,{emit:v,slots:i}){let d;const m=x(),g=x(),T=G(m),t=z({status:"normal",distance:0,duration:0}),p=K(),r=()=>{if(s.headHeight!==C)return{height:`${s.headHeight}px`}},c=()=>t.status!=="loading"&&t.status!=="success"&&!s.disabled,D=e=>{const l=+(s.pullDistance||s.headHeight);return e>l&&(e<l*2?e=l+(e-l)/2:e=l*1.5+(e-l*2)/4),Math.round(e)},u=(e,l)=>{const _=+(s.pullDistance||s.headHeight);t.distance=e,l?t.status="loading":e===0?t.status="normal":e<_?t.status="pulling":t.status="loosing",v("change",{status:t.status,distance:e})},S=()=>{const{status:e}=t;return e==="normal"?"":s[`${e}Text`]||le(e)},k=()=>{const{status:e,distance:l}=t;if(i[e])return i[e]({distance:l});const _=[];return ne.includes(e)&&_.push(h("div",{class:y("text")},[S()])),e==="loading"&&_.push(h(Y,{class:y("loading")},{default:S})),_},H=()=>{t.status="success",setTimeout(()=>{u(0)},+s.successDuration)},a=e=>{d=X(T.value)===0,d&&(t.duration=0,p.start(e))},n=e=>{c()&&a(e)},$=e=>{if(c()){d||a(e);const{deltaY:l}=p;p.move(e),d&&l.value>=0&&p.isVertical()&&(q(e),u(D(l.value)))}},R=()=>{d&&p.deltaY.value&&c()&&(t.duration=+s.animationDuration,t.status==="loosing"?(u(+s.headHeight,!0),v("update:modelValue",!0),J(()=>v("refresh"))):u(0))};return F(()=>s.modelValue,e=>{t.duration=+s.animationDuration,e?u(+s.headHeight,!0):i.success||s.successText?H():u(0,!1)}),j("touchmove",$,{target:g}),()=>{var e;const l={transitionDuration:`${t.duration}ms`,transform:t.distance?`translate3d(0,${t.distance}px, 0)`:""};return h("div",{ref:m,class:y()},[h("div",{ref:g,class:y("track"),style:l,onTouchstartPassive:n,onTouchend:R,onTouchcancel:R},[h("div",{class:y("head"),style:r()},[k()]),(e=i.default)==null?void 0:e.call(i)])])}}});const ie=O(ue),re={class:"app-ptr"},ce={class:"app-ptr__mark"},de=["alt"],pe=100,N=168,B=54,fe=w({__name:"AppPullRefresh",props:{modelValue:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","refresh"],setup(s,{emit:v}){const i=2*Math.PI*B,d=s,m=v,g=x(0),T=x("normal");function t(a){T.value=a.status,g.value=a.distance}function p(a){m("update:modelValue",a),a||(g.value=0,T.value="normal")}const r=f(()=>T.value==="loading"||d.modelValue),c=f(()=>r.value?1:Math.min(g.value/N,1)),D=f(()=>{if(r.value)return 1;const a=c.value;return Math.pow(a,1.55)}),u=f(()=>c.value>.02||r.value),S=f(()=>{const a=c.value;return{opacity:u.value?Math.min(.18+a*.82,1):0,pointerEvents:r.value?"auto":"none"}}),k=f(()=>{const a=c.value;return{transform:`scale(${.78+a*.22})`,opacity:Math.min(.45+a*.55,1)}}),H=f(()=>{const a=D.value;return{strokeDasharray:`${i}`,strokeDashoffset:`${i*(1-a)}`}});return(a,n)=>(E(),A("div",re,[(E(),Q(ee,{to:"body"},[o("div",{class:I(["app-ptr__overlay",{"is-visible":u.value,"is-loading":r.value}]),"aria-hidden":"true",style:P(S.value)},[o("div",{class:"app-ptr__stage",style:P(k.value)},[o("div",ce,[(E(),A("svg",{class:I(["app-ptr__ring keep-motion",{"is-spinning":r.value}]),viewBox:"0 0 120 120","aria-hidden":"true"},[o("circle",{class:"app-ptr__ringTrack",cx:"60",cy:"60",r:B}),o("circle",{class:"app-ptr__ringFill",cx:"60",cy:"60",r:B,style:P(H.value)},null,4)],2)),o("img",{src:W,alt:M(Z).name,class:"app-ptr__logo",draggable:"false"},null,8,de)])],4)],6)])),h(M(ie),{class:"app-ptr__vant","model-value":s.modelValue,disabled:s.disabled,"head-height":pe,"pull-distance":N,"success-duration":0,"onUpdate:modelValue":p,onRefresh:n[0]||(n[0]=$=>m("refresh")),onChange:t},{pulling:b(()=>[...n[1]||(n[1]=[o("span",null,null,-1)])]),loosing:b(()=>[...n[2]||(n[2]=[o("span",null,null,-1)])]),loading:b(()=>[...n[3]||(n[3]=[o("span",null,null,-1)])]),success:b(()=>[...n[4]||(n[4]=[o("span",null,null,-1)])]),default:b(()=>[te(a.$slots,"default",{},void 0,!0)]),_:3},8,["model-value","disabled"])]))}}),he=se(fe,[["__scopeId","data-v-1fbe4644"]]);export{he as A};
|
||||
import{be as C,d as L,bf as U,bg as G,w as F,bh as j,x as h,k as x,U as z,bi as Y,bj as q,$ as J,bk as H,bl as O,bm as X,bn as K,f as I,O as Q,g as o,n as P,i as M,L as W,q as R,B as Z,aV as ee,J as b,j as f,e as E,S as te,_ as se}from"./index-Crp8bPtg.js";const[ae,S,le]=C("pull-refresh"),N=50,ne=["pulling","loosing","success"],oe={disabled:Boolean,modelValue:Boolean,headHeight:H(N),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:U,successDuration:H(500),animationDuration:H(300)};var ue=L({name:ae,props:oe,emits:["change","refresh","update:modelValue"],setup(s,{emit:v,slots:i}){let d;const m=x(),g=x(),T=G(m),t=z({status:"normal",distance:0,duration:0}),p=X(),r=()=>{if(s.headHeight!==N)return{height:`${s.headHeight}px`}},c=()=>t.status!=="loading"&&t.status!=="success"&&!s.disabled,D=e=>{const l=+(s.pullDistance||s.headHeight);return e>l&&(e<l*2?e=l+(e-l)/2:e=l*1.5+(e-l*2)/4),Math.round(e)},u=(e,l)=>{const _=+(s.pullDistance||s.headHeight);t.distance=e,l?t.status="loading":e===0?t.status="normal":e<_?t.status="pulling":t.status="loosing",v("change",{status:t.status,distance:e})},y=()=>{const{status:e}=t;return e==="normal"?"":s[`${e}Text`]||le(e)},k=()=>{const{status:e,distance:l}=t;if(i[e])return i[e]({distance:l});const _=[];return ne.includes(e)&&_.push(h("div",{class:S("text")},[y()])),e==="loading"&&_.push(h(Y,{class:S("loading")},{default:y})),_},V=()=>{t.status="success",setTimeout(()=>{u(0)},+s.successDuration)},a=e=>{d=O(T.value)===0,d&&(t.duration=0,p.start(e))},n=e=>{c()&&a(e)},$=e=>{if(c()){d||a(e);const{deltaY:l}=p;p.move(e),d&&l.value>=0&&p.isVertical()&&(q(e),u(D(l.value)))}},A=()=>{d&&p.deltaY.value&&c()&&(t.duration=+s.animationDuration,t.status==="loosing"?(u(+s.headHeight,!0),v("update:modelValue",!0),J(()=>v("refresh"))):u(0))};return F(()=>s.modelValue,e=>{t.duration=+s.animationDuration,e?u(+s.headHeight,!0):i.success||s.successText?V():u(0,!1)}),j("touchmove",$,{target:g}),()=>{var e;const l={transitionDuration:`${t.duration}ms`,transform:t.distance?`translate3d(0,${t.distance}px, 0)`:""};return h("div",{ref:m,class:S()},[h("div",{ref:g,class:S("track"),style:l,onTouchstartPassive:n,onTouchend:A,onTouchcancel:A},[h("div",{class:S("head"),style:r()},[k()]),(e=i.default)==null?void 0:e.call(i)])])}}});const ie=K(ue),re={class:"app-ptr"},ce={class:"app-ptr__mark"},de=["alt"],pe=100,w=168,B=54,fe=L({__name:"AppPullRefresh",props:{modelValue:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","refresh"],setup(s,{emit:v}){const i=2*Math.PI*B,d=s,m=v,g=x(0),T=x("normal");function t(a){T.value=a.status,g.value=a.distance}function p(a){m("update:modelValue",a),a||(g.value=0,T.value="normal")}const r=f(()=>T.value==="loading"||d.modelValue),c=f(()=>r.value?1:Math.min(g.value/w,1)),D=f(()=>{if(r.value)return 1;const a=c.value;return Math.pow(a,1.55)}),u=f(()=>c.value>.02||r.value),y=f(()=>{const a=c.value;return{opacity:u.value?Math.min(.18+a*.82,1):0,pointerEvents:r.value?"auto":"none"}}),k=f(()=>{const a=c.value;return{transform:`scale(${.78+a*.22})`,opacity:Math.min(.45+a*.55,1)}}),V=f(()=>{const a=D.value;return{strokeDasharray:`${i}`,strokeDashoffset:`${i*(1-a)}`}});return(a,n)=>(E(),I("div",re,[(E(),Q(ee,{to:"body"},[o("div",{class:M(["app-ptr__overlay",{"is-visible":u.value,"is-loading":r.value}]),"aria-hidden":"true",style:P(y.value)},[o("div",{class:"app-ptr__stage",style:P(k.value)},[o("div",ce,[(E(),I("svg",{class:M(["app-ptr__ring keep-motion",{"is-spinning":r.value}]),viewBox:"0 0 120 120","aria-hidden":"true"},[o("circle",{class:"app-ptr__ringTrack",cx:"60",cy:"60",r:B}),o("circle",{class:"app-ptr__ringFill",cx:"60",cy:"60",r:B,style:P(V.value)},null,4)],2)),o("img",{src:W,alt:R(Z).name,class:"app-ptr__logo",draggable:"false"},null,8,de)])],4)],6)])),h(R(ie),{class:"app-ptr__vant","model-value":s.modelValue,disabled:s.disabled,"head-height":pe,"pull-distance":w,"success-duration":0,"onUpdate:modelValue":p,onRefresh:n[0]||(n[0]=$=>m("refresh")),onChange:t},{pulling:b(()=>[...n[1]||(n[1]=[o("span",null,null,-1)])]),loosing:b(()=>[...n[2]||(n[2]=[o("span",null,null,-1)])]),loading:b(()=>[...n[3]||(n[3]=[o("span",null,null,-1)])]),success:b(()=>[...n[4]||(n[4]=[o("span",null,null,-1)])]),default:b(()=>[te(a.$slots,"default",{},void 0,!0)]),_:3},8,["model-value","disabled"])]))}}),he=se(fe,[["__scopeId","data-v-53198114"]]);export{he as A};
|
||||
@@ -0,0 +1 @@
|
||||
.app-ptr[data-v-53198114]{position:relative;min-height:100%}.app-ptr__overlay[data-v-53198114]{position:fixed;top:0;bottom:0;left:max(0px,calc(50vw - (var(--app-max-width) / 2)));right:max(0px,calc(50vw - (var(--app-max-width) / 2)));z-index:1900;display:grid;place-items:center;background:#08080a94;backdrop-filter:blur(28px) saturate(130%);-webkit-backdrop-filter:blur(28px) saturate(130%);transition:opacity .16s ease-out}.app-ptr__overlay[data-v-53198114]:not(.is-visible){visibility:hidden}.app-ptr__stage[data-v-53198114]{display:grid;place-items:center;transform-origin:center center;will-change:transform,opacity;transition:transform .12s ease-out,opacity .12s ease-out}.app-ptr__mark[data-v-53198114]{position:relative;width:152px;height:152px;display:grid;place-items:center}.app-ptr__logo[data-v-53198114]{width:112px;height:112px;-o-object-fit:contain;object-fit:contain;filter:drop-shadow(0 14px 32px rgba(0,0,0,.5));z-index:1}.app-ptr__ring[data-v-53198114]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.app-ptr__ringTrack[data-v-53198114]{fill:none;stroke:#ffffff24;stroke-width:3}.app-ptr__ringFill[data-v-53198114]{fill:none;stroke:#fffffff2;stroke-width:3;stroke-linecap:round;transition:none}.app-ptr__ring.is-spinning[data-v-53198114]{animation:app-ptr-spin-53198114 .9s linear infinite}.app-ptr__ring.is-spinning .app-ptr__ringFill[data-v-53198114]{stroke-dasharray:80 260!important;stroke-dashoffset:0!important;transition:none}@keyframes app-ptr-spin-53198114{to{transform:rotate(270deg)}}.app-ptr__vant[data-v-53198114]{overflow:visible!important}.app-ptr[data-v-53198114] .van-pull-refresh__track{transform:none!important;transition:none!important}.app-ptr[data-v-53198114] .van-pull-refresh__head{display:none}
|
||||
@@ -1 +0,0 @@
|
||||
.app-ptr[data-v-1fbe4644]{position:relative;min-height:100%}.app-ptr__overlay[data-v-1fbe4644]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1900;display:grid;place-items:center;background:#08080a94;backdrop-filter:blur(28px) saturate(130%);-webkit-backdrop-filter:blur(28px) saturate(130%);transition:opacity .16s ease-out}.app-ptr__overlay[data-v-1fbe4644]:not(.is-visible){visibility:hidden}.app-ptr__stage[data-v-1fbe4644]{display:grid;place-items:center;transform-origin:center center;will-change:transform,opacity;transition:transform .12s ease-out,opacity .12s ease-out}.app-ptr__mark[data-v-1fbe4644]{position:relative;width:152px;height:152px;display:grid;place-items:center}.app-ptr__logo[data-v-1fbe4644]{width:112px;height:112px;-o-object-fit:contain;object-fit:contain;filter:drop-shadow(0 14px 32px rgba(0,0,0,.5));z-index:1}.app-ptr__ring[data-v-1fbe4644]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.app-ptr__ringTrack[data-v-1fbe4644]{fill:none;stroke:#ffffff24;stroke-width:3}.app-ptr__ringFill[data-v-1fbe4644]{fill:none;stroke:#fffffff2;stroke-width:3;stroke-linecap:round;transition:none}.app-ptr__ring.is-spinning[data-v-1fbe4644]{animation:app-ptr-spin-1fbe4644 .9s linear infinite}.app-ptr__ring.is-spinning .app-ptr__ringFill[data-v-1fbe4644]{stroke-dasharray:80 260!important;stroke-dashoffset:0!important;transition:none}@keyframes app-ptr-spin-1fbe4644{to{transform:rotate(270deg)}}.app-ptr__vant[data-v-1fbe4644]{overflow:visible!important}.app-ptr[data-v-1fbe4644] .van-pull-refresh__track{transform:none!important;transition:none!important}.app-ptr[data-v-1fbe4644] .van-pull-refresh__head{display:none}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{d,e as i,f as _,i as c,g as e,_ as h,u as v,x as o,H as b,L as k,F as w,r as x,q as n,t as u,h as f,I as r,V as g}from"./index-CVwJmJzN.js";import{P as y}from"./PageBar-BbDixxVX.js";const C=d({__name:"ToggleSwitch",props:{on:{type:Boolean}},setup(p){return(a,l)=>(i(),_("span",{class:c(["tsw",{"is-on":p.on}]),"aria-hidden":"true"},[...l[0]||(l[0]=[e("span",{class:"tsw__knob"},null,-1)])],2))}}),B=h(C,[["__scopeId","data-v-5db042a9"]]),T={class:"ap"},V={class:"ap__section"},L={class:"ap__themes",role:"radiogroup","aria-labelledby":"ap-theme"},S=["aria-checked","onClick"],I={class:"ap__themeLabel"},M={class:"ap__check","aria-hidden":"true"},z={key:0,class:"ap__note"},N={class:"ap__section"},$=["aria-checked"],A={class:"ap__rowIcon","aria-hidden":"true"},E=d({__name:"AppearanceView",setup(p){const a=v(),l=[{value:"light",label:"روشن",icon:"vuesax-linear:sun-1"},{value:"dark",label:"تیره",icon:"vuesax-linear:moon"},{value:"system",label:"مطابق سیستم",icon:"vuesax-linear:monitor-mobbile"}];return(P,s)=>{const m=k("container");return i(),_("div",T,[o(y,{title:"تنظیمات ظاهری","back-to":"userPage::hasSubRoute"}),o(m,{class:"ap__body"},{default:b(()=>[e("section",V,[s[2]||(s[2]=e("header",{class:"ap__head"},[e("h2",{id:"ap-theme",class:"ap__title"},"پوسته برنامه"),e("p",{class:"ap__sub"},"ظاهر روشن یا تیره، یا هماهنگ با تنظیمات گوشی شما")],-1)),e("div",L,[(i(),_(w,null,x(l,t=>e("button",{key:t.value,type:"button",role:"radio",class:c(["ap__theme",{"is-on":n(a).theme===t.value}]),"aria-checked":n(a).theme===t.value,onClick:F=>n(a).setTheme(t.value)},[e("span",{class:c(["ap__preview",`ap__preview--${t.value}`]),"aria-hidden":"true"},[...s[1]||(s[1]=[e("span",{class:"ap__pvBar"},null,-1),e("span",{class:"ap__pvCard"},null,-1),e("span",{class:"ap__pvLine"},null,-1),e("span",{class:"ap__pvLine ap__pvLine--short"},null,-1),e("span",{class:"ap__pvBtn"},null,-1)])],2),e("span",I,[o(r,{icon:t.icon,size:"15"},null,8,["icon"]),g(" "+u(t.label),1)]),e("span",M,[o(r,{icon:"vuesax-linear:tick-circle",size:"18"})])],10,S)),64))]),n(a).theme==="system"?(i(),_("p",z," الان "+u(n(a).resolvedTheme==="dark"?"تیره":"روشن")+" است، مطابق تنظیمات گوشی. ",1)):f("",!0)]),e("section",N,[s[4]||(s[4]=e("header",{class:"ap__head"},[e("h2",{class:"ap__title"},"انیمیشنها"),e("p",{class:"ap__sub"},"برای سرعت بیشتر روی گوشیهای ضعیفتر")],-1)),e("button",{type:"button",role:"switch",class:"ap__row","aria-checked":n(a).reduceMotion,onClick:s[0]||(s[0]=t=>n(a).setReduceMotion(!n(a).reduceMotion))},[e("span",A,[o(r,{icon:"vuesax-linear:flash",size:"18"})]),s[3]||(s[3]=e("span",{class:"ap__rowText"},[e("b",null,"حالت سبک و سریع"),e("small",null," حرکتهای سنگین، افکتهای شیشهای و اسلاید خودکار خاموش میشوند؛ بازخورد کوتاه لمسها و جابهجاییهای سریع باقی میمانند تا برنامه خشک و بیروح نشود. ")],-1)),o(B,{on:n(a).reduceMotion},null,8,["on"])],8,$)])]),_:1})])}}}),q=h(E,[["__scopeId","data-v-f20814a2"]]);export{q as default};
|
||||
import{d,e as i,f as _,i as c,g as e,_ as h,u as v,x as o,J as b,M as k,F as w,r as x,q as n,t as u,h as f,I as r,W as g}from"./index-Crp8bPtg.js";import{P as y}from"./PageBar-5ktYOrio.js";const C=d({__name:"ToggleSwitch",props:{on:{type:Boolean}},setup(p){return(a,l)=>(i(),_("span",{class:c(["tsw",{"is-on":p.on}]),"aria-hidden":"true"},[...l[0]||(l[0]=[e("span",{class:"tsw__knob"},null,-1)])],2))}}),B=h(C,[["__scopeId","data-v-5db042a9"]]),T={class:"ap"},M={class:"ap__section"},S={class:"ap__themes",role:"radiogroup","aria-labelledby":"ap-theme"},V=["aria-checked","onClick"],I={class:"ap__themeLabel"},L={class:"ap__check","aria-hidden":"true"},z={key:0,class:"ap__note"},N={class:"ap__section"},$=["aria-checked"],A={class:"ap__rowIcon","aria-hidden":"true"},E=d({__name:"AppearanceView",setup(p){const a=v(),l=[{value:"light",label:"روشن",icon:"vuesax-linear:sun-1"},{value:"dark",label:"تیره",icon:"vuesax-linear:moon"},{value:"system",label:"مطابق سیستم",icon:"vuesax-linear:monitor-mobbile"}];return(P,s)=>{const m=k("container");return i(),_("div",T,[o(y,{title:"تنظیمات ظاهری","back-to":"userPage::hasSubRoute"}),o(m,{class:"ap__body"},{default:b(()=>[e("section",M,[s[2]||(s[2]=e("header",{class:"ap__head"},[e("h2",{id:"ap-theme",class:"ap__title"},"پوسته برنامه"),e("p",{class:"ap__sub"},"ظاهر روشن یا تیره، یا هماهنگ با تنظیمات گوشی شما")],-1)),e("div",S,[(i(),_(w,null,x(l,t=>e("button",{key:t.value,type:"button",role:"radio",class:c(["ap__theme",{"is-on":n(a).theme===t.value}]),"aria-checked":n(a).theme===t.value,onClick:F=>n(a).setTheme(t.value)},[e("span",{class:c(["ap__preview",`ap__preview--${t.value}`]),"aria-hidden":"true"},[...s[1]||(s[1]=[e("span",{class:"ap__pvBar"},null,-1),e("span",{class:"ap__pvCard"},null,-1),e("span",{class:"ap__pvLine"},null,-1),e("span",{class:"ap__pvLine ap__pvLine--short"},null,-1),e("span",{class:"ap__pvBtn"},null,-1)])],2),e("span",I,[o(r,{icon:t.icon,size:"15"},null,8,["icon"]),g(" "+u(t.label),1)]),e("span",L,[o(r,{icon:"vuesax-linear:tick-circle",size:"18"})])],10,V)),64))]),n(a).theme==="system"?(i(),_("p",z," الان "+u(n(a).resolvedTheme==="dark"?"تیره":"روشن")+" است، مطابق تنظیمات گوشی. ",1)):f("",!0)]),e("section",N,[s[4]||(s[4]=e("header",{class:"ap__head"},[e("h2",{class:"ap__title"},"انیمیشنها"),e("p",{class:"ap__sub"},"برای سرعت بیشتر روی گوشیهای ضعیفتر")],-1)),e("button",{type:"button",role:"switch",class:"ap__row","aria-checked":n(a).reduceMotion,onClick:s[0]||(s[0]=t=>n(a).setReduceMotion(!n(a).reduceMotion))},[e("span",A,[o(r,{icon:"vuesax-linear:flash",size:"18"})]),s[3]||(s[3]=e("span",{class:"ap__rowText"},[e("b",null,"حالت سبک و سریع"),e("small",null," حرکتهای سنگین، افکتهای شیشهای و اسلاید خودکار خاموش میشوند؛ بازخورد کوتاه لمسها و جابهجاییهای سریع باقی میمانند تا برنامه خشک و بیروح نشود. ")],-1)),o(B,{on:n(a).reduceMotion},null,8,["on"])],8,$)])]),_:1})])}}}),D=h(E,[["__scopeId","data-v-f20814a2"]]);export{D as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{d as f,o as v,f as l,x as e,H as d,S as g,k as y,j as c,e as o,F as k,r as C,I as h,g as x,h as P,L as b,a1 as B,N as V,_ as w}from"./index-CVwJmJzN.js";import{P as I}from"./PageBar-BbDixxVX.js";import{S as N}from"./SectionHead-0fBhSKkB.js";import{P as S}from"./ProductCard-FLh64_a3.js";import{u as F}from"./catalogStore-DqQUSSlC.js";const H={class:"coll"},L={key:0,class:"coll__grid"},j={key:1,class:"coll__empty"},q=f({__name:"CollectionView",setup(z){const r=B(),n=F(),t=y(!1),_=c(()=>n.products),p=c(()=>r.query.page||"مجموعه"),i=c(()=>_.value.filter(a=>a.collections.some(s=>s.collectionId===r.params.id)));return v(async()=>{t.value=!n.loaded;try{await n.load()}catch(a){console.log(a)}finally{t.value=!1}}),(a,s)=>{const m=b("container");return o(),l("div",H,[e(I,{title:p.value,"back-to":"search"},null,8,["title"]),e(g,{spinning:t.value,tip:"درحال دریافت اطلاعات"},{default:d(()=>[e(m,{class:"coll__body"},{default:d(()=>[e(N,{title:"محصولات این مجموعه",subtitle:"برای دیدن جزئیات، روی محصول ضربه بزنید"}),i.value.length?(o(),l("div",L,[(o(!0),l(k,null,C(i.value,u=>(o(),V(S,{key:u.id,value:u},null,8,["value"]))),128))])):t.value?P("",!0):(o(),l("section",j,[e(h,{icon:"vuesax-linear:box",size:"26"}),s[0]||(s[0]=x("p",null,"در این مجموعه محصولی ثبت نشده است.",-1))]))]),_:1})]),_:1},8,["spinning"])])}}}),A=w(q,[["__scopeId","data-v-99a5ba6c"]]);export{A as default};
|
||||
import{d as f,o as v,f as l,x as e,J as d,T as g,k as y,j as c,e as o,F as k,r as C,I as h,g as x,h as P,M as b,a1 as B,O as V,_ as w}from"./index-Crp8bPtg.js";import{P as I}from"./PageBar-5ktYOrio.js";import{S as N}from"./SectionHead-D0LXM_VW.js";import{P as S}from"./ProductCard-DBkHagfD.js";import{u as F}from"./catalogStore-CZRXJqcR.js";const M={class:"coll"},T={key:0,class:"coll__grid"},j={key:1,class:"coll__empty"},q=f({__name:"CollectionView",setup(z){const r=B(),n=F(),t=y(!1),_=c(()=>n.products),p=c(()=>r.query.page||"مجموعه"),i=c(()=>_.value.filter(a=>a.collections.some(s=>s.collectionId===r.params.id)));return v(async()=>{t.value=!n.loaded;try{await n.load()}catch(a){console.log(a)}finally{t.value=!1}}),(a,s)=>{const m=b("container");return o(),l("div",M,[e(I,{title:p.value,"back-to":"search"},null,8,["title"]),e(g,{spinning:t.value,tip:"درحال دریافت اطلاعات"},{default:d(()=>[e(m,{class:"coll__body"},{default:d(()=>[e(N,{title:"محصولات این مجموعه",subtitle:"برای دیدن جزئیات، روی محصول ضربه بزنید"}),i.value.length?(o(),l("div",T,[(o(!0),l(k,null,C(i.value,u=>(o(),V(S,{key:u.id,value:u},null,8,["value"]))),128))])):t.value?P("",!0):(o(),l("section",j,[e(h,{icon:"vuesax-linear:box",size:"26"}),s[0]||(s[0]=x("p",null,"در این مجموعه محصولی ثبت نشده است.",-1))]))]),_:1})]),_:1},8,["spinning"])])}}}),R=w(q,[["__scopeId","data-v-99a5ba6c"]]);export{R as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{d as C,N as I,H as h,q as P,aW as T,e as l,g as t,R as x,V as k,t as v,f as p,i as N,x as o,I as S,h as $,k as u,D,_ as V,S as R,y as U,T as z,L as E,M as L,a3 as M,Z as O,K as j}from"./index-CVwJmJzN.js";import{P as K}from"./PageBar-BbDixxVX.js";const W={class:"hg-dialog__inner"},Y={class:"hg-dialog__media"},q={class:"hg-dialog__body"},A={class:"hg-dialog__actions"},H=C({__name:"DialogVantOneButton",props:{timeOut:{},text1:{},text2:{},text3:{}},setup(c){return(_,a)=>(l(),I(P(T),{class:"hg-dialog","show-confirm-button":!1,"show-cancel-button":!1},{default:h(()=>[t("div",W,[t("div",Y,[x(_.$slots,"img",{},()=>[k(v(c.text2),1)])]),t("div",q,[x(_.$slots,"title",{},()=>[k(v(c.text1),1)])]),t("div",A,[x(_.$slots,"button",{},()=>[k(v(c.text3),1)])])])]),_:3}))}}),Q=["disabled"],X=["src"],Z={key:1,class:"siu__icon"},F={class:"siu__text"},G={key:2,class:"siu__badge"},J={key:0,class:"siu__error"},ee=8*1024*1024,se=C({__name:"SingleImageUploader",props:{uploadText:{},purpose:{}},emits:["done"],setup(c,{emit:_}){const a=c,m=_,r=u(null),i=u(!1),n=u(null),d=u(null),g=u(null);async function e(y){var b;const s=y.target,f=(b=s.files)==null?void 0:b[0];if(s.value="",!!f){if(n.value=null,f.size>ee){n.value="حجم فایل بیش از حد مجاز است (۸ مگابایت)";return}i.value=!0;try{const B=await D.uploadDocument(f,a.purpose);d.value=B.id,g.value=f.type.startsWith("image/")?URL.createObjectURL(f):null,m("done",B.id)}catch{n.value="بارگذاری انجام نشد. دوباره تلاش کنید.",d.value=null,g.value=null}finally{i.value=!1}}}return(y,s)=>(l(),p("div",{class:N(["siu",{"is-done":!!d.value,"is-error":!!n.value}])},[t("input",{ref_key:"input",ref:r,type:"file",accept:"image/jpeg,image/png,image/webp,application/pdf",class:"siu__input",onChange:e},null,544),t("button",{type:"button",class:"siu__box",disabled:i.value,onClick:s[0]||(s[0]=f=>{var b;return(b=r.value)==null?void 0:b.click()})},[g.value?(l(),p("img",{key:0,src:g.value,class:"siu__preview",alt:""},null,8,X)):(l(),p("span",Z,[o(S,{icon:i.value?"vuesax-linear:refresh":"vuesax-linear:gallery-add",size:"26"},null,8,["icon"])])),t("span",F,v(i.value?"در حال بارگذاری…":d.value?"تغییر تصویر":c.uploadText),1),d.value&&!i.value?(l(),p("span",G,[o(S,{icon:"vuesax-linear:tick-circle",size:"16"})])):$("",!0)],8,Q),n.value?(l(),p("p",J,v(n.value),1)):$("",!0)],2))}}),w=V(se,[["__scopeId","data-v-a2ff4fd6"]]),ae={class:"cpf"},te={key:0,class:"cpf__error"},ie=["disabled"],oe=C({__name:"CompleteProfileView",setup(c){const _=L(),a=z({business_license_image_id:null,shop_image_id:null,ncode_image_id:null}),m=u(!1),r=u(!1),i=u(null);async function n(){if(i.value=null,!a.business_license_image_id||!a.shop_image_id||!a.ncode_image_id){M.warning("لطفا تمامی عکس های خواسته شده را آپلود کنید");return}m.value=!0;try{await D.completeProfile({business_license_image_id:a.business_license_image_id,shop_image_id:a.shop_image_id,ncode_image_id:a.ncode_image_id}),O().invalidate(j.profile),r.value=!0}catch{i.value="ثبت اطلاعات انجام نشد. دوباره تلاش کنید."}finally{m.value=!1}}function d(){r.value=!1,_.replace({name:"home"})}return(g,e)=>{const y=E("container");return l(),p("div",ae,[o(K,{title:"تکمیل پروفایل","back-to":"userPage::hasSubRoute"}),o(R,{spinning:m.value,tip:"در حال ثبت اطلاعات"},{default:h(()=>[o(y,{class:"cpf__body"},{default:h(()=>[e[4]||(e[4]=t("p",{class:"cpf__lead"}," برای تکمیل پروفایل، سه مدرک زیر را بارگذاری کنید. ",-1)),t("form",{class:"cpf__form",onSubmit:U(n,["prevent"])},[o(w,{"upload-text":"بارگذاری عکس جواز کسب",purpose:"business-license",onDone:e[0]||(e[0]=s=>a.business_license_image_id=s)}),o(w,{"upload-text":"بارگذاری عکس سردر مغازه",purpose:"shop-image",onDone:e[1]||(e[1]=s=>a.shop_image_id=s)}),o(w,{"upload-text":"بارگذاری عکس کارت ملی",purpose:"national-card",onDone:e[2]||(e[2]=s=>a.ncode_image_id=s)}),i.value?(l(),p("p",te,v(i.value),1)):$("",!0),t("button",{type:"submit",class:"cpf__submit",disabled:m.value}," بارگذاری اطلاعات ",8,ie)],32)]),_:1})]),_:1},8,["spinning"]),o(H,{show:r.value,"onUpdate:show":e[3]||(e[3]=s=>r.value=s),"time-out":-1,"close-on-click-overlay":!1},{title:h(()=>[...e[5]||(e[5]=[t("div",{class:"cpf__dialogText"}," تکمیل اطلاعات شما با موفقیت انجام شد. ",-1)])]),button:h(()=>[t("div",{class:"cpf__dialogBtn",onClick:d},"متوجه شدم")]),_:1},8,["show"])])}}}),ue=V(oe,[["__scopeId","data-v-f5bc0a51"]]);export{ue as default};
|
||||
import{d as C,O as P,J as h,q as V,aW as T,e as l,g as t,S as x,W as k,t as v,f as p,i as U,x as o,I as S,h as $,k as u,D,_ as I,T as N,y as z,U as O,M as R,N as E,a3 as M,Z as W,K as j}from"./index-Crp8bPtg.js";import{P as K}from"./PageBar-5ktYOrio.js";const L={class:"hg-dialog__inner"},Y={class:"hg-dialog__media"},q={class:"hg-dialog__body"},A={class:"hg-dialog__actions"},J=C({__name:"DialogVantOneButton",props:{timeOut:{},text1:{},text2:{},text3:{}},setup(c){return(_,a)=>(l(),P(V(T),{class:"hg-dialog","show-confirm-button":!1,"show-cancel-button":!1},{default:h(()=>[t("div",L,[t("div",Y,[x(_.$slots,"img",{},()=>[k(v(c.text2),1)])]),t("div",q,[x(_.$slots,"title",{},()=>[k(v(c.text1),1)])]),t("div",A,[x(_.$slots,"button",{},()=>[k(v(c.text3),1)])])])]),_:3}))}}),Q=["disabled"],X=["src"],Z={key:1,class:"siu__icon"},F={class:"siu__text"},G={key:2,class:"siu__badge"},H={key:0,class:"siu__error"},ee=8*1024*1024,se=C({__name:"SingleImageUploader",props:{uploadText:{},purpose:{}},emits:["done"],setup(c,{emit:_}){const a=c,m=_,r=u(null),i=u(!1),n=u(null),d=u(null),g=u(null);async function e(y){var b;const s=y.target,f=(b=s.files)==null?void 0:b[0];if(s.value="",!!f){if(n.value=null,f.size>ee){n.value="حجم فایل بیش از حد مجاز است (۸ مگابایت)";return}i.value=!0;try{const B=await D.uploadDocument(f,a.purpose);d.value=B.id,g.value=f.type.startsWith("image/")?URL.createObjectURL(f):null,m("done",B.id)}catch{n.value="بارگذاری انجام نشد. دوباره تلاش کنید.",d.value=null,g.value=null}finally{i.value=!1}}}return(y,s)=>(l(),p("div",{class:U(["siu",{"is-done":!!d.value,"is-error":!!n.value}])},[t("input",{ref_key:"input",ref:r,type:"file",accept:"image/jpeg,image/png,image/webp,application/pdf",class:"siu__input",onChange:e},null,544),t("button",{type:"button",class:"siu__box",disabled:i.value,onClick:s[0]||(s[0]=f=>{var b;return(b=r.value)==null?void 0:b.click()})},[g.value?(l(),p("img",{key:0,src:g.value,class:"siu__preview",alt:""},null,8,X)):(l(),p("span",Z,[o(S,{icon:i.value?"vuesax-linear:refresh":"vuesax-linear:gallery-add",size:"26"},null,8,["icon"])])),t("span",F,v(i.value?"در حال بارگذاری…":d.value?"تغییر تصویر":c.uploadText),1),d.value&&!i.value?(l(),p("span",G,[o(S,{icon:"vuesax-linear:tick-circle",size:"16"})])):$("",!0)],8,Q),n.value?(l(),p("p",H,v(n.value),1)):$("",!0)],2))}}),w=I(se,[["__scopeId","data-v-a2ff4fd6"]]),ae={class:"cpf"},te={key:0,class:"cpf__error"},ie=["disabled"],oe=C({__name:"CompleteProfileView",setup(c){const _=E(),a=O({business_license_image_id:null,shop_image_id:null,ncode_image_id:null}),m=u(!1),r=u(!1),i=u(null);async function n(){if(i.value=null,!a.business_license_image_id||!a.shop_image_id||!a.ncode_image_id){M.warning("لطفا تمامی عکس های خواسته شده را آپلود کنید");return}m.value=!0;try{await D.completeProfile({business_license_image_id:a.business_license_image_id,shop_image_id:a.shop_image_id,ncode_image_id:a.ncode_image_id}),W().invalidate(j.profile),r.value=!0}catch{i.value="ثبت اطلاعات انجام نشد. دوباره تلاش کنید."}finally{m.value=!1}}function d(){r.value=!1,_.replace({name:"home"})}return(g,e)=>{const y=R("container");return l(),p("div",ae,[o(K,{title:"تکمیل پروفایل","back-to":"userPage::hasSubRoute"}),o(N,{spinning:m.value,tip:"در حال ثبت اطلاعات"},{default:h(()=>[o(y,{class:"cpf__body"},{default:h(()=>[e[4]||(e[4]=t("p",{class:"cpf__lead"}," برای تکمیل پروفایل، سه مدرک زیر را بارگذاری کنید. ",-1)),t("form",{class:"cpf__form",onSubmit:z(n,["prevent"])},[o(w,{"upload-text":"بارگذاری عکس جواز کسب",purpose:"business-license",onDone:e[0]||(e[0]=s=>a.business_license_image_id=s)}),o(w,{"upload-text":"بارگذاری عکس سردر مغازه",purpose:"shop-image",onDone:e[1]||(e[1]=s=>a.shop_image_id=s)}),o(w,{"upload-text":"بارگذاری عکس کارت ملی",purpose:"national-card",onDone:e[2]||(e[2]=s=>a.ncode_image_id=s)}),i.value?(l(),p("p",te,v(i.value),1)):$("",!0),t("button",{type:"submit",class:"cpf__submit",disabled:m.value}," بارگذاری اطلاعات ",8,ie)],32)]),_:1})]),_:1},8,["spinning"]),o(J,{show:r.value,"onUpdate:show":e[3]||(e[3]=s=>r.value=s),"time-out":-1,"close-on-click-overlay":!1},{title:h(()=>[...e[5]||(e[5]=[t("div",{class:"cpf__dialogText"}," تکمیل اطلاعات شما با موفقیت انجام شد. ",-1)])]),button:h(()=>[t("div",{class:"cpf__dialogBtn",onClick:d},"متوجه شدم")]),_:1},8,["show"])])}}}),ue=I(oe,[["__scopeId","data-v-f5bc0a51"]]);export{ue as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{d as D,W as P,E as R,o as $,f as i,x as n,H as _,S as B,q as E,k as c,D as F,e as r,g as s,F as I,r as L,I as v,t as o,h as b,a3 as M,L as U,M as q,i as H,_ as O}from"./index-CVwJmJzN.js";import{A as T}from"./AppPullRefresh-Dmucuir1.js";import{P as W}from"./PageBar-BbDixxVX.js";import{S as j}from"./SearchInput-jycvDyRd.js";import{D as G}from"./index-C6_LSiEl.js";import"./KeyCode-DN5saFNF.js";import"./classCallCheck-Cq3GxPzH.js";import"./raf-nDFcuFT6.js";const J={class:"cch"},K={class:"cch__barExtra"},Q={key:0,class:"cch__list"},X=["onClick"],Y={class:"cch__head"},Z={class:"cch__name"},ss={class:"cch__facts"},es={class:"cch__fact"},ts={dir:"ltr"},as={class:"cch__fact"},os={dir:"ltr"},ls={key:0,class:"cch__fact"},ns={key:1,class:"cch__empty"},is={key:2,class:"cch__empty"},cs={key:0,class:"cch__detail"},rs={class:"cch__detailTitle"},ds={class:"cch__rows"},us={class:"cch__row"},_s={dir:"ltr"},vs={class:"cch__row"},hs={dir:"ltr"},ps={class:"cch__row"},fs={class:"cch__row"},ms={class:"cch__row"},bs={dir:"ltr"},ys={class:"cch__row"},gs={dir:"ltr"},ws={class:"cch__row"},Cs=["disabled"],ks=D({__name:"CustomerChoiceView",setup(xs){const C=q(),k=P(),x=R(),h=c(!1),d=c([]),p=c(!1),y=c(!1),f=c(!1),g=c(null),u=c(!1),l=c(null);function w(t){const e=Number(t??0);return Number.isFinite(e)?e.toFixed(3):"0.000"}async function m(){p.value=!0,f.value=!1;try{d.value=await F.getExpertCustomers(g.value)}catch{f.value=!0,d.value=[]}finally{p.value=!1}}async function S(t){g.value=t!=null&&t.trim()?t.trim():null,await m()}async function V(){try{await m()}finally{y.value=!1}}function z(t){l.value=t,u.value=!0}async function N(t){h.value=!0;try{x.clear(),k.setActingAs({id:t.id,name:t.name??t.fullName??t.mobile??""}),u.value=!1,await C.push({name:"userPage::hasSubRoute"}),M.success(`وارد حساب ${t.name??""} شدید`)}finally{h.value=!1}}return $(m),(t,e)=>{const A=U("container");return r(),i("div",J,[n(W,{title:"لیست مشتریان","back-to":"userPage::hasSubRoute"},{below:_(()=>[s("div",K,[n(j,{onSearch:S,"place-holder":"جستجو"})])]),_:1}),n(B,{spinning:p.value&&!d.value.length,tip:"درحال دریافت اطلاعات"},{default:_(()=>[n(T,{modelValue:y.value,"onUpdate:modelValue":e[0]||(e[0]=a=>y.value=a),onRefresh:V},{default:_(()=>[n(A,{class:"cch__body"},{default:_(()=>[d.value.length?(r(),i("div",Q,[(r(!0),i(I,null,L(d.value,a=>(r(),i("article",{key:a.id,class:"cch__card",onClick:Ss=>z(a)},[s("div",Y,[s("h3",Z,o(a.name),1),s("span",{class:H(["cch__state",a.active===1?"is-on":"is-off"])},o(a.active===1?"فعال":"غیرفعال"),3)]),s("div",ss,[s("div",es,[n(v,{icon:"vuesax-linear:mobile",size:"15"}),s("span",ts,o(a.mobile||"—"),1)]),s("div",as,[n(v,{icon:"vuesax-linear:call",size:"15"}),s("span",os,o(a.phone||"—"),1)]),a.store_name?(r(),i("div",ls,[n(v,{icon:"vuesax-linear:shop",size:"15"}),s("span",null,o(a.store_name),1)])):b("",!0)])],8,X))),128))])):!p.value&&!f.value?(r(),i("section",ns,[n(v,{icon:"vuesax-linear:profile-2user",size:"26"}),s("p",null,o(g.value?"مشتری با این مشخصات پیدا نشد.":"هنوز مشتریای به شما معرفی نشده است."),1)])):b("",!0),f.value?(r(),i("section",is,[n(v,{icon:"vuesax-linear:danger",size:"26"}),e[4]||(e[4]=s("p",null,"دریافت اطلاعات با خطا روبهرو شد.",-1)),s("button",{type:"button",class:"cch__retry",onClick:m},"تلاش دوباره")])):b("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["spinning"]),n(E(G),{visible:u.value,"onUpdate:visible":e[3]||(e[3]=a=>u.value=a),placement:"bottom",height:"auto",closable:!1,"body-style":{padding:"0"}},{default:_(()=>[l.value?(r(),i("div",cs,[s("h2",rs,o(l.value.name),1),s("dl",ds,[s("div",us,[e[5]||(e[5]=s("dt",null,"موبایل",-1)),s("dd",_s,o(l.value.mobile||"—"),1)]),s("div",vs,[e[6]||(e[6]=s("dt",null,"تلفن",-1)),s("dd",hs,o(l.value.phone||"—"),1)]),s("div",ps,[e[7]||(e[7]=s("dt",null,"نام مغازه",-1)),s("dd",null,o(l.value.store_name||"—"),1)]),s("div",fs,[e[8]||(e[8]=s("dt",null,"نام پاساژ",-1)),s("dd",null,o(l.value.pasazh_name||"—"),1)]),s("div",ms,[e[9]||(e[9]=s("dt",null,"سقف اعتبار",-1)),s("dd",bs,o(w(l.value.gram_level))+" گرم",1)]),s("div",ys,[e[10]||(e[10]=s("dt",null,"بدهی گرمی",-1)),s("dd",gs,o(w(l.value.remain))+" گرم",1)]),s("div",ws,[e[11]||(e[11]=s("dt",null,"وضعیت",-1)),s("dd",null,o(l.value.active===1?"فعال":"غیرفعال"),1)])]),s("button",{type:"button",class:"cch__enter",disabled:h.value,onClick:e[1]||(e[1]=a=>N(l.value))},o(h.value?"در حال ورود…":"ورود به حساب این مشتری"),9,Cs),s("button",{type:"button",class:"cch__close",onClick:e[2]||(e[2]=a=>u.value=!1)},"بستن")])):b("",!0)]),_:1},8,["visible"])])}}}),Bs=O(ks,[["__scopeId","data-v-e75567d6"]]);export{Bs as default};
|
||||
import{d as D,G as P,E as R,o as $,f as i,x as n,J as _,T as B,q as E,k as c,D as F,e as r,g as s,F as I,r as M,I as v,t as o,h as b,a3 as T,M as U,N as q,i as G,_ as J}from"./index-Crp8bPtg.js";import{A as L}from"./AppPullRefresh-DVPfmdvm.js";import{P as O}from"./PageBar-5ktYOrio.js";import{S as j}from"./SearchInput-DDuMk5Z_.js";import{D as H}from"./index-CqU2-fRE.js";import"./KeyCode-DjPzM-x4.js";import"./classCallCheck-CpYTQ_t0.js";import"./raf-nDFcuFT6.js";const K={class:"cch"},Q={class:"cch__barExtra"},W={key:0,class:"cch__list"},X=["onClick"],Y={class:"cch__head"},Z={class:"cch__name"},ss={class:"cch__facts"},es={class:"cch__fact"},ts={dir:"ltr"},as={class:"cch__fact"},os={dir:"ltr"},ls={key:0,class:"cch__fact"},ns={key:1,class:"cch__empty"},is={key:2,class:"cch__empty"},cs={key:0,class:"cch__detail"},rs={class:"cch__detailTitle"},ds={class:"cch__rows"},us={class:"cch__row"},_s={dir:"ltr"},vs={class:"cch__row"},hs={dir:"ltr"},ps={class:"cch__row"},fs={class:"cch__row"},ms={class:"cch__row"},bs={dir:"ltr"},ys={class:"cch__row"},gs={dir:"ltr"},ws={class:"cch__row"},Cs=["disabled"],ks=D({__name:"CustomerChoiceView",setup(xs){const C=q(),k=P(),x=R(),h=c(!1),d=c([]),p=c(!1),y=c(!1),f=c(!1),g=c(null),u=c(!1),l=c(null);function w(t){const e=Number(t??0);return Number.isFinite(e)?e.toFixed(3):"0.000"}async function m(){p.value=!0,f.value=!1;try{d.value=await F.getExpertCustomers(g.value)}catch{f.value=!0,d.value=[]}finally{p.value=!1}}async function S(t){g.value=t!=null&&t.trim()?t.trim():null,await m()}async function V(){try{await m()}finally{y.value=!1}}function z(t){l.value=t,u.value=!0}async function N(t){h.value=!0;try{x.clear(),k.setActingAs({id:t.id,name:t.name??t.fullName??t.mobile??""}),u.value=!1,await C.push({name:"userPage::hasSubRoute"}),T.success(`وارد حساب ${t.name??""} شدید`)}finally{h.value=!1}}return $(m),(t,e)=>{const A=U("container");return r(),i("div",K,[n(O,{title:"لیست مشتریان","back-to":"userPage::hasSubRoute"},{below:_(()=>[s("div",Q,[n(j,{onSearch:S,"place-holder":"جستجو"})])]),_:1}),n(B,{spinning:p.value&&!d.value.length,tip:"درحال دریافت اطلاعات"},{default:_(()=>[n(L,{modelValue:y.value,"onUpdate:modelValue":e[0]||(e[0]=a=>y.value=a),onRefresh:V},{default:_(()=>[n(A,{class:"cch__body"},{default:_(()=>[d.value.length?(r(),i("div",W,[(r(!0),i(I,null,M(d.value,a=>(r(),i("article",{key:a.id,class:"cch__card",onClick:Ss=>z(a)},[s("div",Y,[s("h3",Z,o(a.name),1),s("span",{class:G(["cch__state",a.active===1?"is-on":"is-off"])},o(a.active===1?"فعال":"غیرفعال"),3)]),s("div",ss,[s("div",es,[n(v,{icon:"vuesax-linear:mobile",size:"15"}),s("span",ts,o(a.mobile||"—"),1)]),s("div",as,[n(v,{icon:"vuesax-linear:call",size:"15"}),s("span",os,o(a.phone||"—"),1)]),a.store_name?(r(),i("div",ls,[n(v,{icon:"vuesax-linear:shop",size:"15"}),s("span",null,o(a.store_name),1)])):b("",!0)])],8,X))),128))])):!p.value&&!f.value?(r(),i("section",ns,[n(v,{icon:"vuesax-linear:profile-2user",size:"26"}),s("p",null,o(g.value?"مشتری با این مشخصات پیدا نشد.":"هنوز مشتریای به شما معرفی نشده است."),1)])):b("",!0),f.value?(r(),i("section",is,[n(v,{icon:"vuesax-linear:danger",size:"26"}),e[4]||(e[4]=s("p",null,"دریافت اطلاعات با خطا روبهرو شد.",-1)),s("button",{type:"button",class:"cch__retry",onClick:m},"تلاش دوباره")])):b("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["spinning"]),n(E(H),{visible:u.value,"onUpdate:visible":e[3]||(e[3]=a=>u.value=a),placement:"bottom",height:"auto",closable:!1,"body-style":{padding:"0"}},{default:_(()=>[l.value?(r(),i("div",cs,[s("h2",rs,o(l.value.name),1),s("dl",ds,[s("div",us,[e[5]||(e[5]=s("dt",null,"موبایل",-1)),s("dd",_s,o(l.value.mobile||"—"),1)]),s("div",vs,[e[6]||(e[6]=s("dt",null,"تلفن",-1)),s("dd",hs,o(l.value.phone||"—"),1)]),s("div",ps,[e[7]||(e[7]=s("dt",null,"نام مغازه",-1)),s("dd",null,o(l.value.store_name||"—"),1)]),s("div",fs,[e[8]||(e[8]=s("dt",null,"نام پاساژ",-1)),s("dd",null,o(l.value.pasazh_name||"—"),1)]),s("div",ms,[e[9]||(e[9]=s("dt",null,"سقف اعتبار",-1)),s("dd",bs,o(w(l.value.gram_level))+" گرم",1)]),s("div",ys,[e[10]||(e[10]=s("dt",null,"بدهی گرمی",-1)),s("dd",gs,o(w(l.value.remain))+" گرم",1)]),s("div",ws,[e[11]||(e[11]=s("dt",null,"وضعیت",-1)),s("dd",null,o(l.value.active===1?"فعال":"غیرفعال"),1)])]),s("button",{type:"button",class:"cch__enter",disabled:h.value,onClick:e[1]||(e[1]=a=>N(l.value))},o(h.value?"در حال ورود…":"ورود به حساب این مشتری"),9,Cs),s("button",{type:"button",class:"cch__close",onClick:e[2]||(e[2]=a=>u.value=!1)},"بستن")])):b("",!0)]),_:1},8,["visible"])])}}}),Bs=J(ks,[["__scopeId","data-v-e75567d6"]]);export{Bs as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{d as g,l as h,o as y,w as k,f as r,x as a,J as v,T as b,k as _,D as C,e as s,F as f,g as c,r as P,I as w,q as x,h as B,N as F,j as V,M as I,O as N,_ as S}from"./index-Crp8bPtg.js";import{P as $}from"./PageBar-5ktYOrio.js";import{S as j}from"./SectionHead-D0LXM_VW.js";import{P as M}from"./ProductCard-DBkHagfD.js";const R={class:"favs"},q={class:"favs__grid"},z={key:1,class:"favs__empty"},D=g({__name:"FavoritesView",setup(E){const p=F(),l=h(),o=_(!1),n=_([]),i=V(()=>n.value.filter(t=>l.isFavorite(t.id)));async function d(){const t=l.ids;if(t.length===0){n.value=[];return}o.value=n.value.length===0;try{n.value=await C.getProductsByIds(t)}catch(e){console.log(e)}finally{o.value=!1}}return y(d),k(()=>l.ids.join(","),d),(t,e)=>{const m=I("container");return s(),r("div",R,[a($,{title:"علاقهمندی","back-to":"userPage::hasSubRoute"}),a(b,{spinning:o.value,tip:"در حال دریافت اطلاعات"},{default:v(()=>[a(m,{class:"favs__body"},{default:v(()=>[i.value.length?(s(),r(f,{key:0},[a(j,{title:"ذخیرهشدهها",subtitle:`${i.value.length} محصول`},null,8,["subtitle"]),c("div",q,[(s(!0),r(f,null,P(i.value,u=>(s(),N(M,{key:u.id,value:u},null,8,["value"]))),128))])],64)):o.value?B("",!0):(s(),r("section",z,[a(w,{icon:"vuesax-linear:heart",size:"26"}),e[1]||(e[1]=c("p",null,"هنوز محصولی را به علاقهمندیها اضافه نکردهاید.",-1)),c("button",{type:"button",class:"favs__emptyCta",onClick:e[0]||(e[0]=u=>x(p).push({name:"home"}))}," دیدن محصولات ")]))]),_:1})]),_:1},8,["spinning"])])}}}),T=S(D,[["__scopeId","data-v-30992de1"]]);export{T as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{d as g,l as h,o as y,w as k,f as r,x as a,H as v,S as b,k as _,D as C,e as s,F as f,g as c,r as P,I as w,q as x,h as B,M as F,j as S,L as V,N as I,_ as N}from"./index-CVwJmJzN.js";import{P as $}from"./PageBar-BbDixxVX.js";import{S as j}from"./SectionHead-0fBhSKkB.js";import{P as H}from"./ProductCard-FLh64_a3.js";const L={class:"favs"},M={class:"favs__grid"},R={key:1,class:"favs__empty"},q=g({__name:"FavoritesView",setup(z){const p=F(),l=h(),o=_(!1),n=_([]),i=S(()=>n.value.filter(t=>l.isFavorite(t.id)));async function d(){const t=l.ids;if(t.length===0){n.value=[];return}o.value=n.value.length===0;try{n.value=await C.getProductsByIds(t)}catch(e){console.log(e)}finally{o.value=!1}}return y(d),k(()=>l.ids.join(","),d),(t,e)=>{const m=V("container");return s(),r("div",L,[a($,{title:"علاقهمندی","back-to":"userPage::hasSubRoute"}),a(b,{spinning:o.value,tip:"در حال دریافت اطلاعات"},{default:v(()=>[a(m,{class:"favs__body"},{default:v(()=>[i.value.length?(s(),r(f,{key:0},[a(j,{title:"ذخیرهشدهها",subtitle:`${i.value.length} محصول`},null,8,["subtitle"]),c("div",M,[(s(!0),r(f,null,P(i.value,u=>(s(),I(H,{key:u.id,value:u},null,8,["value"]))),128))])],64)):o.value?B("",!0):(s(),r("section",R,[a(w,{icon:"vuesax-linear:heart",size:"26"}),e[1]||(e[1]=c("p",null,"هنوز محصولی را به علاقهمندیها اضافه نکردهاید.",-1)),c("button",{type:"button",class:"favs__emptyCta",onClick:e[0]||(e[0]=u=>x(p).push({name:"home"}))}," دیدن محصولات ")]))]),_:1})]),_:1},8,["spinning"])])}}}),J=N(q,[["__scopeId","data-v-30992de1"]]);export{J as default};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{d as c,W as i,o as m,D as r,f as l,M as _,e as p}from"./index-CVwJmJzN.js";const g={style:{"min-height":"100vh",display:"grid","place-items":"center"}},h=c({__name:"IamCallback",setup(u){const a=_(),s=i();function o(){sessionStorage.setItem("gb_iam_sso_skip","1");const e=sessionStorage.getItem("gb_iam_return");sessionStorage.removeItem("gb_iam_return");const t=e&&e.startsWith("/")&&!e.startsWith("//")?e:"/";return a.replace(t)}return m(async()=>{const e=new URLSearchParams(window.location.search);if(sessionStorage.removeItem("gb_iam_sso_checked"),e.get("error")||!e.get("code")||!e.get("state")){await o();return}try{const t=await r.ssoCallback(e.get("code"),e.get("state"));s.login(t.token,t.customer.id,t.customer.mobile);try{const n=await r.getExpertIdentity();s.setSalesExpert(n.isSalesExpert)}catch{s.setSalesExpert(!1)}await a.replace({name:"home"})}catch{await o()}}),(e,t)=>(p(),l("div",g,"در حال ورود..."))}});export{h as default};
|
||||
import{d as c,G as i,o as m,D as r,f as l,N as _,e as p}from"./index-Crp8bPtg.js";const g={style:{"min-height":"100vh",display:"grid","place-items":"center"}},h=c({__name:"IamCallback",setup(u){const a=_(),s=i();function o(){sessionStorage.setItem("gb_iam_sso_skip","1");const e=sessionStorage.getItem("gb_iam_return");sessionStorage.removeItem("gb_iam_return");const t=e&&e.startsWith("/")&&!e.startsWith("//")?e:"/";return a.replace(t)}return m(async()=>{const e=new URLSearchParams(window.location.search);if(sessionStorage.removeItem("gb_iam_sso_checked"),e.get("error")||!e.get("code")||!e.get("state")){await o();return}try{const t=await r.ssoCallback(e.get("code"),e.get("state"));s.login(t.token,t.customer.id,t.customer.mobile);try{const n=await r.getExpertIdentity();s.setSalesExpert(n.isSalesExpert)}catch{s.setSalesExpert(!1)}await a.replace({name:"home"})}catch{await o()}}),(e,t)=>(p(),l("div",g,"در حال ورود..."))}});export{h as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{ai as d,j as f,ax as g,d as P,ak as p,U as C,w as x,a6 as T,$ as m,c as R,x as h,aV as y}from"./index-CVwJmJzN.js";var E=!1;try{var c=Object.defineProperty({},"passive",{get:function(){E=!0}});window.addEventListener("testPassive",null,c),window.removeEventListener("testPassive",null,c)}catch{}var j=Symbol("TriggerContextKey"),K=function(e){return e?d(j,{setPortal:function(){},popPortal:!1}):{setPortal:function(){},popPortal:!1}},v=Symbol("PortalContextKey"),w=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};g(v,{inTriggerContext:i.inTriggerContext,shouldRender:f(function(){var n=e||{},u=n.sPopupVisible,t=n.popupRef,l=n.forceRender,r=n.autoDestroy,s=!1;return(u||t||l)&&(s=!0),!u&&r&&(s=!1),s})})},D=function(){w({},{inTriggerContext:!1});var e=d(v,{shouldRender:f(function(){return!1}),inTriggerContext:!1});return{shouldRender:f(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const N=P({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:p.func.isRequired,didUpdate:Function},setup:function(e,i){var n=i.slots,u=!0,t,l=D(),r=l.shouldRender;C(function(){u=!1,r.value&&(t=e.getContainer())});var s=x(r,function(){r.value&&!t&&(t=e.getContainer()),t&&s()});return T(function(){m(function(){if(r.value){var o;(o=e.didUpdate)===null||o===void 0||o.call(e,e)}})}),R(function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),function(){if(!r.value)return null;if(u){var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}return t?h(y,{to:t},n):null}}});var b={ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};export{b as K,N as P,K as a,E as s,w as u};
|
||||
import{ai as d,j as f,ax as g,d as P,ak as p,V as C,w as x,a6 as T,$ as m,c as R,x as h,aV as y}from"./index-Crp8bPtg.js";var E=!1;try{var c=Object.defineProperty({},"passive",{get:function(){E=!0}});window.addEventListener("testPassive",null,c),window.removeEventListener("testPassive",null,c)}catch{}var j=Symbol("TriggerContextKey"),K=function(e){return e?d(j,{setPortal:function(){},popPortal:!1}):{setPortal:function(){},popPortal:!1}},v=Symbol("PortalContextKey"),w=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};g(v,{inTriggerContext:i.inTriggerContext,shouldRender:f(function(){var n=e||{},u=n.sPopupVisible,t=n.popupRef,l=n.forceRender,r=n.autoDestroy,s=!1;return(u||t||l)&&(s=!0),!u&&r&&(s=!1),s})})},D=function(){w({},{inTriggerContext:!1});var e=d(v,{shouldRender:f(function(){return!1}),inTriggerContext:!1});return{shouldRender:f(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const N=P({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:p.func.isRequired,didUpdate:Function},setup:function(e,i){var n=i.slots,u=!0,t,l=D(),r=l.shouldRender;C(function(){u=!1,r.value&&(t=e.getContainer())});var s=x(r,function(){r.value&&!t&&(t=e.getContainer()),t&&s()});return T(function(){m(function(){if(r.value){var o;(o=e.didUpdate)===null||o===void 0||o.call(e,e)}})}),R(function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),function(){if(!r.value)return null;if(u){var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}return t?h(y,{to:t},n):null}}});var b={ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};export{b as K,N as P,K as a,E as s,w as u};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.ant-empty .ant-empty-description{font-size:16px!important;font-weight:600;margin-top:-36px}.empty{min-height:calc(100vh - 350px);vertical-align:middle}.app-scroll-fetch[data-v-b1d17632]{width:100%;max-width:var(--app-max-width);margin-inline:auto}.newest[data-v-1566f322]{background:var(--c-page);min-height:100vh}.newest__scroll[data-v-1566f322]{height:calc(100vh - 61px)}.newest__body[data-v-1566f322]{padding-top:76px;padding-bottom:90px}.newest__grid[data-v-1566f322]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
|
||||
@@ -0,0 +1 @@
|
||||
import{P}from"./PageBar-5ktYOrio.js";import{d as f,e as l,f as r,x as n,q as i,P as S,Q as k,R as b,n as L,S as B,T as _,O as h,h as v,k as d,_ as y,U as C,w as E,V as F,J as p,F as V,r as $,j as A,M as I}from"./index-Crp8bPtg.js";import{S as N}from"./SectionHead-D0LXM_VW.js";import{P as T}from"./ProductCard-DBkHagfD.js";import{u as j}from"./catalogStore-CZRXJqcR.js";const D={class:"flex justify-center items-center empty"},H=f({__name:"EmptyState",props:{description:{},image:{}},setup(t){return(e,c)=>(l(),r("div",D,[n(i(S),{description:"موردی یافت نشد",image:t.image,class:"h-[200px] w-[200px] opacity-70"},null,8,["image"])]))}}),M="/assets/favoritEmpty-kbtPAdi5.svg",q=f({__name:"ScrollFetchSearch",props:{loading:{type:Boolean},flag:{type:Boolean},padding:{}},emits:["fetch"],setup(t,{emit:e}){const c=e,a=k(),s=d(null);return b(s,()=>{c("fetch")},{distance:50}),(o,u)=>(l(),r("main",{class:"app-scroll-fetch flex flex-col flex-1 overflow-auto no-scrollbar",style:L({paddingTop:t.padding||i(a).headerHeight+"px"}),ref_key:"scrollArea",ref:s},[B(o.$slots,"default",{},void 0,!0),n(_,{cls:"my-[10px]",spinning:t.loading,indicator:!0,tip:"درحال دریافت اطلاعات"},null,8,["spinning"]),t.flag?(l(),h(H,{key:0,image:i(M)},null,8,["image"])):v("",!0)],4))}}),z=y(q,[["__scopeId","data-v-b1d17632"]]);function G(){const t=j(),e=C({totalPages:0,productList:t.products,flag:!1});return E(()=>t.products,a=>{e.productList=a,e.flag=a.length<1}),{productsData:e,getProducts:async(a,s=!1,o=!1)=>{if(!s){a.value=o||!t.loaded;try{e.productList=await t.load(o),e.flag=e.productList.length<1}catch(u){console.log(u)}finally{a.value=!1}}}}}const J={class:"newest"},O={key:0,class:"newest__grid"},m=20,Q=f({__name:"NewestView",setup(t){const{productsData:e,getProducts:c}=G(),a=d(!1),s=d(!1),o=d(m),u=A(()=>e.productList.slice(0,o.value));F(async()=>{await c(a,!1)});const w=async()=>{if(o.value<e.productList.length){o.value+=m;return}s.value||await c(s,!1,!0)};return(R,U)=>{const x=I("container");return l(),r("div",J,[n(P,{title:"جدیدترین محصولات","back-to":"home"}),n(_,{spinning:a.value,tip:"درحال دریافت اطلاعات"},{default:p(()=>[n(z,{class:"newest__scroll",loading:s.value,flag:i(e).flag,padding:"0px",onFetch:w},{default:p(()=>[n(x,{class:"newest__body"},{default:p(()=>[n(N,{title:"تازهها",subtitle:"آخرین افزودههای مجموعه"}),i(e).productList.length?(l(),r("div",O,[(l(!0),r(V,null,$(u.value,g=>(l(),h(T,{key:g.id,value:g},null,8,["value"]))),128))])):v("",!0)]),_:1})]),_:1},8,["loading","flag"])]),_:1},8,["spinning"])])}}}),ee=y(Q,[["__scopeId","data-v-1566f322"]]);export{ee as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{P as x}from"./PageBar-BbDixxVX.js";import{d as f,e as l,f as r,x as n,q as i,O as P,P as S,Q as k,n as L,R as b,S as _,N as v,h,k as d,T as B,w as C,U as E,H as p,F as N,r as $,j as A,L as F,_ as V}from"./index-CVwJmJzN.js";import{S as H}from"./SectionHead-0fBhSKkB.js";import{P as I}from"./ProductCard-FLh64_a3.js";import{u as T}from"./catalogStore-DqQUSSlC.js";const j={class:"flex justify-center items-center empty"},D=f({__name:"EmptyState",props:{description:{},image:{}},setup(t){return(e,c)=>(l(),r("div",j,[n(i(P),{description:"موردی یافت نشد",image:t.image,class:"h-[200px] w-[200px] opacity-70"},null,8,["image"])]))}}),q="/assets/favoritEmpty-kbtPAdi5.svg",z=f({__name:"ScrollFetchSearch",props:{loading:{type:Boolean},flag:{type:Boolean},padding:{}},emits:["fetch"],setup(t,{emit:e}){const c=e,a=S(),s=d(null);return k(s,()=>{c("fetch")},{distance:50}),(o,u)=>(l(),r("main",{class:"flex flex-col flex-1 overflow-auto no-scrollbar w-[100vw] max-w-screen-md m-auto",style:L({paddingTop:t.padding||i(a).headerHeight+"px"}),ref_key:"scrollArea",ref:s},[b(o.$slots,"default"),n(_,{cls:"my-[10px]",spinning:t.loading,indicator:!0,tip:"درحال دریافت اطلاعات"},null,8,["spinning"]),t.flag?(l(),v(D,{key:0,image:i(q)},null,8,["image"])):h("",!0)],4))}});function G(){const t=T(),e=B({totalPages:0,productList:t.products,flag:!1});return C(()=>t.products,a=>{e.productList=a,e.flag=a.length<1}),{productsData:e,getProducts:async(a,s=!1,o=!1)=>{if(!s){a.value=o||!t.loaded;try{e.productList=await t.load(o),e.flag=e.productList.length<1}catch(u){console.log(u)}finally{a.value=!1}}}}}const M={class:"newest"},O={key:0,class:"newest__grid"},g=20,Q=f({__name:"NewestView",setup(t){const{productsData:e,getProducts:c}=G(),a=d(!1),s=d(!1),o=d(g),u=A(()=>e.productList.slice(0,o.value));E(async()=>{await c(a,!1)});const y=async()=>{if(o.value<e.productList.length){o.value+=g;return}s.value||await c(s,!1,!0)};return(R,U)=>{const w=F("container");return l(),r("div",M,[n(x,{title:"جدیدترین محصولات","back-to":"home"}),n(_,{spinning:a.value,tip:"درحال دریافت اطلاعات"},{default:p(()=>[n(z,{class:"newest__scroll",loading:s.value,flag:i(e).flag,padding:"0px",onFetch:y},{default:p(()=>[n(w,{class:"newest__body"},{default:p(()=>[n(H,{title:"تازهها",subtitle:"آخرین افزودههای مجموعه"}),i(e).productList.length?(l(),r("div",O,[(l(!0),r(N,null,$(u.value,m=>(l(),v(I,{key:m.id,value:m},null,8,["value"]))),128))])):h("",!0)]),_:1})]),_:1},8,["loading","flag"])]),_:1},8,["spinning"])])}}}),Y=V(Q,[["__scopeId","data-v-1566f322"]]);export{Y as default};
|
||||
@@ -1 +0,0 @@
|
||||
.ant-empty .ant-empty-description{font-size:16px!important;font-weight:600;margin-top:-36px}.empty{min-height:calc(100vh - 350px);vertical-align:middle}.newest[data-v-1566f322]{background:var(--c-page);min-height:100vh}.newest__scroll[data-v-1566f322]{height:calc(100vh - 61px)}.newest__body[data-v-1566f322]{padding-top:76px;padding-bottom:90px}.newest__grid[data-v-1566f322]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
|
||||
@@ -1 +0,0 @@
|
||||
.notif[data-v-6887fb26]{background:var(--c-page);min-height:100vh}.notif__body[data-v-6887fb26]{padding-top:76px;padding-bottom:90px}.notif__empty[data-v-6887fb26]{margin-top:8px;padding:38px 20px;border:1px dashed var(--c-hairline);border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--c-inkFaint)}.notif__empty p[data-v-6887fb26]{margin:0;font-size:12.5px}
|
||||
@@ -0,0 +1 @@
|
||||
.notif[data-v-feb27aa4]{background:var(--c-page);min-height:100vh}.notif__body[data-v-feb27aa4]{padding-top:76px;padding-bottom:100px}.notif__hint[data-v-feb27aa4]{margin:0 0 12px;font-size:12px;color:var(--c-inkFaint)}.notif__list[data-v-feb27aa4]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.notif__item[data-v-feb27aa4]{display:flex;gap:12px;align-items:flex-start;padding:14px 14px 13px;border-radius:18px;background:var(--c-canvas);border:1px solid var(--c-hairline);transition:border-color .2s ease,background .2s ease}.notif__item[data-kind=message][data-v-feb27aa4]{cursor:pointer}.notif__item.is-unread[data-v-feb27aa4]{border-color:color-mix(in srgb,var(--c-wine) 22%,var(--c-hairline));background:color-mix(in srgb,var(--c-wineWash) 55%,var(--c-canvas))}.notif__icon[data-v-feb27aa4]{flex:0 0 40px;width:40px;height:40px;border-radius:14px;display:grid;place-items:center}.notif__main[data-v-feb27aa4]{flex:1;min-width:0}.notif__top[data-v-feb27aa4]{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.notif__title[data-v-feb27aa4]{margin:0;font-size:13px;font-weight:800;color:var(--c-ink);line-height:1.5}.notif__when[data-v-feb27aa4]{flex:0 0 auto;font-size:10.5px;color:var(--c-inkFaint);white-space:nowrap}.notif__body[data-v-feb27aa4]{margin:4px 0 0;font-size:12px;line-height:1.75;color:var(--c-inkMuted)}.notif__meta[data-v-feb27aa4]{display:inline-block;margin-top:7px;font-size:11px;font-weight:700;color:var(--c-inkSoft)}.notif__dot[data-v-feb27aa4]{flex:0 0 8px;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--c-wine)}.notif__empty[data-v-feb27aa4]{margin-top:18px;padding:42px 22px 36px;border-radius:22px;border:1px solid var(--c-hairline);background:var(--c-canvas);display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.notif__emptyIcon[data-v-feb27aa4]{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:var(--c-wine);background:var(--c-wineWash);margin-bottom:6px}.notif__emptyTitle[data-v-feb27aa4]{margin:0;font-size:15px;font-weight:800;color:var(--c-ink)}.notif__emptyText[data-v-feb27aa4]{margin:0;max-width:280px;font-size:12.5px;line-height:1.85;color:var(--c-inkMuted)}.notif__cta[data-v-feb27aa4]{margin-top:14px;padding:11px 22px;border:0;cursor:pointer;border-radius:999px;font-family:inherit;font-size:12.5px;font-weight:700;color:#fff;background:var(--c-primary);transition:transform .15s ease}.notif__cta[data-v-feb27aa4]:active{transform:scale(.98)}.notif__cta--ghost[data-v-feb27aa4]{color:var(--c-wine);background:var(--c-wineWash)}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{d as n,f as a,x as o,H as i,L as c,e as _,g as e,I as r,_ as f}from"./index-CVwJmJzN.js";import{P as p}from"./PageBar-BbDixxVX.js";const l={class:"notif"},d={class:"notif__empty"},m=n({__name:"NotificationsView",setup(u){return(x,t)=>{const s=c("container");return _(),a("div",l,[o(p,{title:"اعلانها","back-to":"home"}),o(s,{class:"notif__body"},{default:i(()=>[e("section",d,[o(r,{icon:"vuesax-linear:notification",size:"26"}),t[0]||(t[0]=e("p",null,"اعلانی برای نمایش وجود ندارد.",-1))])]),_:1})])}}}),N=f(m,[["__scopeId","data-v-6887fb26"]]);export{N as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{d as u,bo as d,f as t,g as a,x as b,I as p,t as k,S as i,e as o,N as h,_ as f}from"./index-Crp8bPtg.js";const m={class:"bar app-frame-x"},B={class:"bar__inner"},g={key:1,class:"bar__spacer","aria-hidden":"true"},v={class:"bar__title"},y={class:"bar__trailing"},x=u({__name:"PageBar",props:{title:{},back:{type:Boolean,default:!0},backTo:{}},setup(e){const r=e,s=h(),l=d();function _(){if(l.canGoBack){s.back();return}if(r.backTo){s.push({name:r.backTo});return}s.push({name:"home"})}return(n,c)=>(o(),t("header",m,[a("div",B,[e.back?(o(),t("button",{key:0,type:"button",class:"bar__btn","aria-label":"بازگشت",onClick:_},[b(p,{icon:"vuesax-linear:arrow-right-1",size:"20"})])):(o(),t("span",g)),a("h1",v,k(e.title),1),a("div",y,[i(n.$slots,"trailing",{},()=>[c[0]||(c[0]=a("span",{class:"bar__spacer","aria-hidden":"true"},null,-1))],!0)])]),i(n.$slots,"below",{},void 0,!0)]))}}),S=f(x,[["__scopeId","data-v-99aa7c6a"]]);export{S as P};
|
||||
@@ -0,0 +1 @@
|
||||
.bar[data-v-99aa7c6a]{position:fixed;top:var(--aab-h, 0px);z-index:20;background:rgb(var(--c-canvas-rgb) / 88%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--c-hairline)}.bar__inner[data-v-99aa7c6a]{max-width:768px;margin:0 auto;padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.bar__title[data-v-99aa7c6a]{margin:0;font-size:14.5px;font-weight:800;color:var(--c-ink);letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar__btn[data-v-99aa7c6a]{position:relative;flex:0 0 auto;width:38px;height:38px;border:0;cursor:pointer;border-radius:12px;display:grid;place-items:center;color:var(--c-ink);background:var(--c-hairlineSoft);transition:background .18s ease}.bar__btn[data-v-99aa7c6a]:active{transform:scale(.94)}.bar__trailing[data-v-99aa7c6a]{flex:0 0 auto;display:flex;align-items:center;gap:8px}.bar__spacer[data-v-99aa7c6a]{display:block;width:38px;height:38px}
|
||||
@@ -1 +0,0 @@
|
||||
import{d as u,bo as d,f as t,g as a,x as b,I as p,t as k,R as i,e as o,M as h,_ as f}from"./index-CVwJmJzN.js";const m={class:"bar"},B={class:"bar__inner"},g={key:1,class:"bar__spacer","aria-hidden":"true"},v={class:"bar__title"},y={class:"bar__trailing"},x=u({__name:"PageBar",props:{title:{},back:{type:Boolean,default:!0},backTo:{}},setup(e){const r=e,s=h(),l=d();function _(){if(l.canGoBack){s.back();return}if(r.backTo){s.push({name:r.backTo});return}s.push({name:"home"})}return(n,c)=>(o(),t("header",m,[a("div",B,[e.back?(o(),t("button",{key:0,type:"button",class:"bar__btn","aria-label":"بازگشت",onClick:_},[b(p,{icon:"vuesax-linear:arrow-right-1",size:"20"})])):(o(),t("span",g)),a("h1",v,k(e.title),1),a("div",y,[i(n.$slots,"trailing",{},()=>[c[0]||(c[0]=a("span",{class:"bar__spacer","aria-hidden":"true"},null,-1))],!0)])]),i(n.$slots,"below",{},void 0,!0)]))}}),N=f(x,[["__scopeId","data-v-52b447ce"]]);export{N as P};
|
||||
@@ -1 +0,0 @@
|
||||
.bar[data-v-52b447ce]{position:fixed;top:var(--aab-h, 0px);left:0;right:0;z-index:20;background:rgb(var(--c-canvas-rgb) / 88%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--c-hairline)}.bar__inner[data-v-52b447ce]{max-width:768px;margin:0 auto;padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.bar__title[data-v-52b447ce]{margin:0;font-size:14.5px;font-weight:800;color:var(--c-ink);letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar__btn[data-v-52b447ce]{position:relative;flex:0 0 auto;width:38px;height:38px;border:0;cursor:pointer;border-radius:12px;display:grid;place-items:center;color:var(--c-ink);background:var(--c-hairlineSoft);transition:background .18s ease}.bar__btn[data-v-52b447ce]:active{transform:scale(.94)}.bar__trailing[data-v-52b447ce]{flex:0 0 auto;display:flex;align-items:center;gap:8px}.bar__spacer[data-v-52b447ce]{display:block;width:38px;height:38px}
|
||||
@@ -0,0 +1 @@
|
||||
.pc[data-v-a971cd21]{cursor:pointer;background:var(--c-canvas);border:1px solid var(--c-hairline);border-radius:18px;overflow:hidden;transition:transform .2s ease,border-color .2s ease}.pc[data-v-a971cd21]:active{transform:scale(.985)}.pc__art[data-v-a971cd21]{position:relative;aspect-ratio:1 / 1;display:flex;align-items:center;justify-content:center;margin:4px;border-radius:14px;overflow:hidden;background:#f7f7f7}.pc--hero .pc__art[data-v-a971cd21]{aspect-ratio:2 / 3}.pc--tall .pc__art[data-v-a971cd21]{aspect-ratio:3 / 4}.pc--mid .pc__art[data-v-a971cd21]{aspect-ratio:4 / 5}.pc--square .pc__art[data-v-a971cd21],.pc--short .pc__art[data-v-a971cd21]{aspect-ratio:1 / 1}.pc--squat .pc__art[data-v-a971cd21]{aspect-ratio:6 / 5}.pc__art img[data-v-a971cd21]{width:100%;height:100%;max-width:100%;max-height:100%;padding:6px;box-sizing:border-box;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;display:block}html.theme-dark .pc__art img[data-v-a971cd21]{background:var(--c-photoMat);border-radius:12px}.pc__artEmpty[data-v-a971cd21]{width:100%;height:100%;display:grid;place-items:center;color:var(--c-inkFaint)}.pc__fav[data-v-a971cd21]{position:absolute;top:9px;left:9px;width:30px;height:30px;display:grid;place-items:center;border:0;cursor:pointer;border-radius:50%;color:var(--c-inkMuted);background:rgb(var(--c-canvas-rgb) / 90%);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:color .18s ease,transform .18s ease}.pc__fav.is-on[data-v-a971cd21]{color:var(--c-wine)}.pc__fav[data-v-a971cd21]:active{transform:scale(.9)}.pc__flag[data-v-a971cd21]{position:absolute;top:9px;right:9px;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:700;color:#fff;background:var(--c-primary)}.pc__flag--soft[data-v-a971cd21]{background:var(--c-wineSoft)}.pc__body[data-v-a971cd21]{padding:11px 12px 13px}.pc__title[data-v-a971cd21]{margin:0;font-size:13px;font-weight:700;color:var(--c-ink);line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc__tags[data-v-a971cd21]{display:flex;flex-wrap:wrap;gap:4px;padding-top:6px}.pc__tag[data-v-a971cd21]{padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;color:var(--c-wine);background:rgb(var(--c-wine-rgb) / 10%);line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc__meta[data-v-a971cd21]{display:flex;align-items:center;gap:7px;padding-top:7px}.pc__weight[data-v-a971cd21]{font-size:11.5px;font-weight:700;color:var(--c-inkSoft)}.pc__wage[data-v-a971cd21]{font-size:10.5px;color:var(--c-inkFaint);padding-inline-start:7px;border-inline-start:1px solid var(--c-hairline)}
|
||||
@@ -1 +0,0 @@
|
||||
.pc[data-v-bf1b940b]{cursor:pointer;background:var(--c-canvas);border:1px solid var(--c-hairline);border-radius:18px;overflow:hidden;transition:transform .2s ease,border-color .2s ease}.pc[data-v-bf1b940b]:active{transform:scale(.985)}.pc__art[data-v-bf1b940b]{position:relative;aspect-ratio:1 / 1;display:flex;align-items:center;justify-content:center;margin:4px;border-radius:14px;overflow:hidden;background:#f7f7f7}.pc--hero .pc__art[data-v-bf1b940b]{aspect-ratio:2 / 3}.pc--tall .pc__art[data-v-bf1b940b]{aspect-ratio:3 / 4}.pc--mid .pc__art[data-v-bf1b940b]{aspect-ratio:4 / 5}.pc--square .pc__art[data-v-bf1b940b],.pc--short .pc__art[data-v-bf1b940b]{aspect-ratio:1 / 1}.pc--squat .pc__art[data-v-bf1b940b]{aspect-ratio:6 / 5}.pc__art img[data-v-bf1b940b]{width:100%;height:100%;max-width:100%;max-height:100%;padding:6px;box-sizing:border-box;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;display:block}html.theme-dark .pc__art img[data-v-bf1b940b]{background:var(--c-photoMat);border-radius:12px}.pc__artEmpty[data-v-bf1b940b]{width:100%;height:100%;display:grid;place-items:center;color:var(--c-inkFaint)}.pc__fav[data-v-bf1b940b]{position:absolute;top:9px;left:9px;width:30px;height:30px;display:grid;place-items:center;border:0;cursor:pointer;border-radius:50%;color:var(--c-inkMuted);background:rgb(var(--c-canvas-rgb) / 90%);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:color .18s ease,transform .18s ease}.pc__fav.is-on[data-v-bf1b940b]{color:var(--c-wine)}.pc__fav[data-v-bf1b940b]:active{transform:scale(.9)}.pc__flag[data-v-bf1b940b]{position:absolute;top:9px;right:9px;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:700;color:#fff;background:var(--c-primary)}.pc__flag--soft[data-v-bf1b940b]{background:var(--c-wineSoft)}.pc__body[data-v-bf1b940b]{padding:11px 12px 13px}.pc__title[data-v-bf1b940b]{margin:0;font-size:13px;font-weight:700;color:var(--c-ink);line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc__meta[data-v-bf1b940b]{display:flex;align-items:center;gap:7px;padding-top:7px}.pc__weight[data-v-bf1b940b]{font-size:11.5px;font-weight:700;color:var(--c-inkSoft)}.pc__wage[data-v-bf1b940b]{font-size:10.5px;color:var(--c-inkFaint);padding-inline-start:7px;border-inline-start:1px solid var(--c-hairline)}
|
||||
@@ -0,0 +1 @@
|
||||
import{d as D,l as I,m as N,p as S,e as s,f as t,i as m,g as a,q as e,v as V,x as y,I as k,y as q,h as d,t as n,F as E,r as L,j as x,k as $,z as j,_ as M}from"./index-Crp8bPtg.js";const O={class:"pc__art"},A=["alt"],G={key:1,class:"pc__artEmpty","aria-hidden":"true"},H=["aria-label"],J={key:2,class:"pc__flag"},K={key:3,class:"pc__flag pc__flag--soft"},Q={class:"pc__body"},R={class:"pc__title"},T={key:0,class:"pc__tags"},U={class:"pc__meta"},W={class:"pc__weight"},X={key:0,class:"pc__wage"},Y=D({__name:"ProductCard",props:{value:{},size:{}},setup(r){const l=r,i=I(),{image:u,id:c,title:p,min_gram:z,wage:v,is_exist:w,qty:C,isPreOrder:F}=N(l.value),g=x(()=>(l.value.tags??[]).filter(Boolean)),f=$(null);function b(){j(l.value,f.value)}const P=x(()=>{const o=v.value;return o==null?"":o%1===0?String(o):o.toFixed(2)});return(o,h)=>{const B=S("lazy");return s(),t("article",{ref_key:"root",ref:f,class:m(["pc",r.size?`pc--${r.size}`:null]),"data-product-origin":"",onClick:b},[a("div",O,[e(u)?V((s(),t("img",{key:0,alt:e(p)},null,8,A)),[[B,e(u)]]):(s(),t("div",G,[y(k,{icon:"vuesax-linear:diamonds",size:"26"})])),a("button",{type:"button",class:m(["pc__fav",{"is-on":e(i).isFavorite(e(c))}]),"aria-label":e(i).isFavorite(e(c))?"حذف از علاقهمندی":"افزودن به علاقهمندی",onClick:h[0]||(h[0]=q(_=>e(i).toggle(e(c)),["stop"]))},[y(k,{icon:e(i).isFavorite(e(c))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,H),e(w)?e(F)&&e(C)===0?(s(),t("span",K,"پیشسفارش")):d("",!0):(s(),t("span",J,"ناموجود"))]),a("div",Q,[a("h3",R,n(e(p)),1),g.value.length?(s(),t("div",T,[(s(!0),t(E,null,L(g.value,_=>(s(),t("span",{key:_,class:"pc__tag"},n(_),1))),128))])):d("",!0),a("div",U,[a("span",W,n(e(z))+" گرم",1),e(v)!=null?(s(),t("span",X,"اجرت "+n(P.value)+"٪",1)):d("",!0)])])],2)}}}),ee=M(Y,[["__scopeId","data-v-a971cd21"]]);export{ee as P};
|
||||
@@ -1 +0,0 @@
|
||||
import{d as P,l as F,m as B,p as D,e as s,f as t,i as f,g as a,q as e,v as I,x as h,I as m,y as N,h as g,t as r,k as S,z as V,j as q,_ as E}from"./index-CVwJmJzN.js";const $={class:"pc__art"},j=["alt"],L={key:1,class:"pc__artEmpty","aria-hidden":"true"},M=["aria-label"],O={key:2,class:"pc__flag"},A={key:3,class:"pc__flag pc__flag--soft"},G={class:"pc__body"},H={class:"pc__title"},J={class:"pc__meta"},K={class:"pc__weight"},Q={key:0,class:"pc__wage"},R=P({__name:"ProductCard",props:{value:{},size:{}},setup(n){const l=n,i=F(),{image:_,id:c,title:d,min_gram:y,wage:u,is_exist:k,qty:b,isPreOrder:x}=B(l.value),p=S(null);function z(){V(l.value,p.value)}const w=q(()=>{const o=u.value;return o==null?"":o%1===0?String(o):o.toFixed(2)});return(o,v)=>{const C=D("lazy");return s(),t("article",{ref_key:"root",ref:p,class:f(["pc",n.size?`pc--${n.size}`:null]),"data-product-origin":"",onClick:z},[a("div",$,[e(_)?I((s(),t("img",{key:0,alt:e(d)},null,8,j)),[[C,e(_)]]):(s(),t("div",L,[h(m,{icon:"vuesax-linear:diamonds",size:"26"})])),a("button",{type:"button",class:f(["pc__fav",{"is-on":e(i).isFavorite(e(c))}]),"aria-label":e(i).isFavorite(e(c))?"حذف از علاقهمندی":"افزودن به علاقهمندی",onClick:v[0]||(v[0]=N(T=>e(i).toggle(e(c)),["stop"]))},[h(m,{icon:e(i).isFavorite(e(c))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,M),e(k)?e(x)&&e(b)===0?(s(),t("span",A,"پیشسفارش")):g("",!0):(s(),t("span",O,"ناموجود"))]),a("div",G,[a("h3",H,r(e(d)),1),a("div",J,[a("span",K,r(e(y))+" گرم",1),e(u)!=null?(s(),t("span",Q,"اجرت "+r(w.value)+"٪",1)):g("",!0)])])],2)}}}),W=E(R,[["__scopeId","data-v-bf1b940b"]]);export{W as P};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{d as L,W as w,G as M,k as _,K as k,o as F,f as n,x as r,H as $,L as O,e as i,g as e,I as g,t as a,h as c,i as v,V as T,q as U,j as m,M as z,_ as W}from"./index-CVwJmJzN.js";import{P as A}from"./PageBar-BbDixxVX.js";import{S}from"./SectionHead-0fBhSKkB.js";const H={class:"prof"},K={class:"prof__identity"},j={class:"prof__avatar","aria-hidden":"true"},q={class:"prof__name"},G={key:0,class:"prof__mobile"},J={key:0,class:"prof__block"},Y={class:"prof__specs"},Q={class:"prof__spec"},X={class:"prof__spec"},Z={class:"prof__spec"},ee={class:"prof__spec"},se={key:1,class:"prof__block"},te={class:"prof__specs"},oe={class:"prof__spec"},le={class:"prof__spec"},ae={key:2,class:"prof__block"},ne={key:3,class:"prof__empty"},ie=L({__name:"ProfileView",setup(re){const b={UNVERIFIED:"احراز نشده",STEP_ONE_SUBMITTED:"مرحله اول ثبت شده",STEP_TWO_SUBMITTED:"مرحله دوم ثبت شده",VERIFIED:"تایید شده",REJECTED:"رد شده"},h=w(),d=M(),o=_(d.peek(k.profile)??null),p=_(!1),V=m(()=>{var s;return((s=o.value)==null?void 0:s.verificationStep)==="VERIFIED"}),C=m(()=>{var t;const s=(t=o.value)==null?void 0:t.verificationStep;return!!s&&s!=="VERIFIED"&&s!=="STEP_TWO_SUBMITTED"}),R=z(),l=_(d.peek(k.balance)??null),f=_(!1),u=s=>Number(s??0),E=s=>u(s)>0?"بدهکار":u(s)<0?"بستانکار":"",I=s=>u(s)>0?"is-debt":u(s)<0?"is-credit":"",B=s=>`${Math.abs(u(s)).toLocaleString("fa-IR",{maximumFractionDigits:3})} گرم`,D=s=>`${Math.abs(u(s)).toLocaleString("fa-IR")} ریال`,N=m(()=>{const s=l.value;if(!(s!=null&&s.at))return"";const t=new Date(s.at).toLocaleString("fa-IR",{dateStyle:"short",timeStyle:"short"});return s.source==="stored"?`آخرین ماندهی ثبتشده — ${t}`:`از ${s.provider??"حسابداری"} — ${t}`});async function P(){f.value=!l.value;try{l.value=await d.accountingBalance({force:!0})}catch{l.value=null}finally{f.value=!1}}return F(async()=>{if(h.isLoggedIn){P(),p.value=!o.value;try{o.value=await d.me({force:!0})}finally{p.value=!1}}}),(s,t)=>{const x=O("container");return i(),n("div",H,[r(A,{title:"اطلاعات کاربری","back-to":"userPage::hasSubRoute"}),r(x,{class:"prof__body"},{default:$(()=>{var y;return[e("section",K,[e("div",j,[r(g,{icon:"vuesax-linear:user",size:"30"})]),e("h2",q,a(((y=o.value)==null?void 0:y.fullName)??"—"),1),o.value?(i(),n("p",G,a(o.value.mobile),1)):c("",!0),o.value?(i(),n("span",{key:1,class:v(["prof__seal",V.value?"is-ok":"is-pending"])},a(b[o.value.verificationStep]??o.value.verificationStep),3)):c("",!0)]),o.value?(i(),n("section",J,[r(S,{title:"مشخصات",subtitle:"اطلاعات ثبتشده حساب شما"}),e("dl",Y,[e("div",Q,[t[1]||(t[1]=e("dt",null,"نام و نام خانوادگی",-1)),e("dd",null,a(o.value.fullName),1)]),e("div",X,[t[2]||(t[2]=e("dt",null,"تلفن همراه",-1)),e("dd",null,a(o.value.mobile),1)]),e("div",Z,[t[3]||(t[3]=e("dt",null,"کد ملی",-1)),e("dd",null,a(o.value.nationalCode||"-"),1)]),e("div",ee,[t[4]||(t[4]=e("dt",null,"وضعیت احراز هویت",-1)),e("dd",null,a(b[o.value.verificationStep]??o.value.verificationStep),1)])])])):c("",!0),l.value&&l.value.source!=="none"?(i(),n("section",se,[r(S,{title:"ماندهی حساب",subtitle:N.value},null,8,["subtitle"]),e("dl",te,[e("div",oe,[t[5]||(t[5]=e("dt",null,"ماندهی طلا",-1)),e("dd",{class:v(I(l.value.gold))},[T(a(B(l.value.gold))+" ",1),e("small",null,a(E(l.value.gold)),1)],2)]),e("div",le,[t[6]||(t[6]=e("dt",null,"ماندهی ریالی",-1)),e("dd",{class:v(I(l.value.rial))},[T(a(D(l.value.rial))+" ",1),e("small",null,a(E(l.value.rial)),1)],2)])])])):f.value?(i(),n("section",ae,[r(S,{title:"ماندهی حساب",subtitle:"در حال دریافت از حسابداری…"}),t[7]||(t[7]=e("div",{class:"prof__specs prof__skeleton"},null,-1))])):p.value?c("",!0):(i(),n("section",ne,[r(g,{icon:"vuesax-linear:user",size:"26"}),t[8]||(t[8]=e("p",null,"اطلاعات حساب در دسترس نیست.",-1))])),C.value?(i(),n("button",{key:4,type:"button",class:"prof__complete",onClick:t[0]||(t[0]=ue=>U(R).push({name:"completeProfile"}))}," تکمیل پروفایل ")):c("",!0)]}),_:1})])}}}),pe=W(ie,[["__scopeId","data-v-25e2c773"]]);export{pe as default};
|
||||
import{d as L,G as w,H as M,k as _,K as k,o as F,f as n,x as r,J as $,M as O,e as i,g as e,I as g,t as a,h as c,i as v,W as T,q as U,j as m,N as z,_ as W}from"./index-Crp8bPtg.js";import{P as A}from"./PageBar-5ktYOrio.js";import{S}from"./SectionHead-D0LXM_VW.js";const H={class:"prof"},J={class:"prof__identity"},K={class:"prof__avatar","aria-hidden":"true"},j={class:"prof__name"},q={key:0,class:"prof__mobile"},G={key:0,class:"prof__block"},Y={class:"prof__specs"},Q={class:"prof__spec"},X={class:"prof__spec"},Z={class:"prof__spec"},ee={class:"prof__spec"},se={key:1,class:"prof__block"},te={class:"prof__specs"},oe={class:"prof__spec"},le={class:"prof__spec"},ae={key:2,class:"prof__block"},ne={key:3,class:"prof__empty"},ie=L({__name:"ProfileView",setup(re){const b={UNVERIFIED:"احراز نشده",STEP_ONE_SUBMITTED:"مرحله اول ثبت شده",STEP_TWO_SUBMITTED:"مرحله دوم ثبت شده",VERIFIED:"تایید شده",REJECTED:"رد شده"},h=w(),d=M(),o=_(d.peek(k.profile)??null),p=_(!1),C=m(()=>{var s;return((s=o.value)==null?void 0:s.verificationStep)==="VERIFIED"}),R=m(()=>{var t;const s=(t=o.value)==null?void 0:t.verificationStep;return!!s&&s!=="VERIFIED"&&s!=="STEP_TWO_SUBMITTED"}),V=z(),l=_(d.peek(k.balance)??null),f=_(!1),u=s=>Number(s??0),E=s=>u(s)>0?"بدهکار":u(s)<0?"بستانکار":"",I=s=>u(s)>0?"is-debt":u(s)<0?"is-credit":"",B=s=>`${Math.abs(u(s)).toLocaleString("fa-IR",{maximumFractionDigits:3})} گرم`,D=s=>`${Math.abs(u(s)).toLocaleString("fa-IR")} ریال`,N=m(()=>{const s=l.value;if(!(s!=null&&s.at))return"";const t=new Date(s.at).toLocaleString("fa-IR",{dateStyle:"short",timeStyle:"short"});return s.source==="stored"?`آخرین ماندهی ثبتشده — ${t}`:`از ${s.provider??"حسابداری"} — ${t}`});async function P(){f.value=!l.value;try{l.value=await d.accountingBalance({force:!0})}catch{l.value=null}finally{f.value=!1}}return F(async()=>{if(h.isLoggedIn){P(),p.value=!o.value;try{o.value=await d.me({force:!0})}finally{p.value=!1}}}),(s,t)=>{const x=O("container");return i(),n("div",H,[r(A,{title:"اطلاعات کاربری","back-to":"userPage::hasSubRoute"}),r(x,{class:"prof__body"},{default:$(()=>{var y;return[e("section",J,[e("div",K,[r(g,{icon:"vuesax-linear:user",size:"30"})]),e("h2",j,a(((y=o.value)==null?void 0:y.fullName)??"—"),1),o.value?(i(),n("p",q,a(o.value.mobile),1)):c("",!0),o.value?(i(),n("span",{key:1,class:v(["prof__seal",C.value?"is-ok":"is-pending"])},a(b[o.value.verificationStep]??o.value.verificationStep),3)):c("",!0)]),o.value?(i(),n("section",G,[r(S,{title:"مشخصات",subtitle:"اطلاعات ثبتشده حساب شما"}),e("dl",Y,[e("div",Q,[t[1]||(t[1]=e("dt",null,"نام و نام خانوادگی",-1)),e("dd",null,a(o.value.fullName),1)]),e("div",X,[t[2]||(t[2]=e("dt",null,"تلفن همراه",-1)),e("dd",null,a(o.value.mobile),1)]),e("div",Z,[t[3]||(t[3]=e("dt",null,"کد ملی",-1)),e("dd",null,a(o.value.nationalCode||"-"),1)]),e("div",ee,[t[4]||(t[4]=e("dt",null,"وضعیت احراز هویت",-1)),e("dd",null,a(b[o.value.verificationStep]??o.value.verificationStep),1)])])])):c("",!0),l.value&&l.value.source!=="none"?(i(),n("section",se,[r(S,{title:"ماندهی حساب",subtitle:N.value},null,8,["subtitle"]),e("dl",te,[e("div",oe,[t[5]||(t[5]=e("dt",null,"ماندهی طلا",-1)),e("dd",{class:v(I(l.value.gold))},[T(a(B(l.value.gold))+" ",1),e("small",null,a(E(l.value.gold)),1)],2)]),e("div",le,[t[6]||(t[6]=e("dt",null,"ماندهی ریالی",-1)),e("dd",{class:v(I(l.value.rial))},[T(a(D(l.value.rial))+" ",1),e("small",null,a(E(l.value.rial)),1)],2)])])])):f.value?(i(),n("section",ae,[r(S,{title:"ماندهی حساب",subtitle:"در حال دریافت از حسابداری…"}),t[7]||(t[7]=e("div",{class:"prof__specs prof__skeleton"},null,-1))])):p.value?c("",!0):(i(),n("section",ne,[r(g,{icon:"vuesax-linear:user",size:"26"}),t[8]||(t[8]=e("p",null,"اطلاعات حساب در دسترس نیست.",-1))])),R.value?(i(),n("button",{key:4,type:"button",class:"prof__complete",onClick:t[0]||(t[0]=ue=>U(V).push({name:"completeProfile"}))}," تکمیل پروفایل ")):c("",!0)]}),_:1})])}}}),pe=W(ie,[["__scopeId","data-v-25e2c773"]]);export{pe as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{p as c,j as d}from"./filters-D_vYSbiN.js";import{d as _,e as s,f as a,i as l,g as r,V as u,t as i,q as n,h as m,j as v,_ as q}from"./index-CVwJmJzN.js";const f={key:0,class:"rate-strip__value"},k={class:"rate-strip__num"},y={key:1,class:"rate-strip__value rate-strip__value--muted"},x={key:2,class:"rate-strip__time"},R=_({__name:"RateStrip",props:{quote:{}},setup(t){const o=t,p=v(()=>o.quote?o.quote.pricePerGramRial.split(".")[0]:"");return(V,e)=>(s(),a("div",{class:l(["rate-strip",{"is-empty":!t.quote}])},[e[1]||(e[1]=r("div",{class:"rate-strip__label"},[r("span",{class:"rate-strip__dot","aria-hidden":"true"}),u(" نرخ طلای ۱۸ عیار ")],-1)),t.quote?(s(),a("div",f,[r("span",k,i(n(c)(p.value)),1),e[0]||(e[0]=r("span",{class:"rate-strip__unit"},"ریال / گرم",-1))])):(s(),a("div",y,"در انتظار اعلام نرخ")),t.quote?(s(),a("div",x,i(n(d)(t.quote.quotedAt)),1)):m("",!0)],2))}}),B=q(R,[["__scopeId","data-v-19b94e39"]]);export{B as R};
|
||||
import{p as c,j as d}from"./filters-DytSQLR6.js";import{d as _,e as s,f as a,i as l,g as r,W as u,t as i,q as n,h as m,j as v,_ as q}from"./index-Crp8bPtg.js";const f={key:0,class:"rate-strip__value"},k={class:"rate-strip__num"},y={key:1,class:"rate-strip__value rate-strip__value--muted"},x={key:2,class:"rate-strip__time"},R=_({__name:"RateStrip",props:{quote:{}},setup(t){const o=t,p=v(()=>o.quote?o.quote.pricePerGramRial.split(".")[0]:"");return(h,e)=>(s(),a("div",{class:l(["rate-strip",{"is-empty":!t.quote}])},[e[1]||(e[1]=r("div",{class:"rate-strip__label"},[r("span",{class:"rate-strip__dot","aria-hidden":"true"}),u(" نرخ طلای ۱۸ عیار ")],-1)),t.quote?(s(),a("div",f,[r("span",k,i(n(c)(p.value)),1),e[0]||(e[0]=r("span",{class:"rate-strip__unit"},"ریال / گرم",-1))])):(s(),a("div",y,"در انتظار اعلام نرخ")),t.quote?(s(),a("div",x,i(n(d)(t.quote.quotedAt)),1)):m("",!0)],2))}}),C=q(R,[["__scopeId","data-v-19b94e39"]]);export{C as R};
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{d as v,bb as h,w as m,e as t,f as l,x as n,I as r,v as f,bc as b,g as x,bd as k,h as I,T as w,k as y,_ as C}from"./index-CVwJmJzN.js";const S={class:"si"},V=["placeholder"],B=v({__name:"SearchInput",props:{placeHolder:{}},emits:["search"],setup(i,{emit:d}){const c=d,a=w({clear:!1}),e=y(void 0),s=()=>{c("search",e.value)},u=()=>{e.value=void 0,a.clear=!1,c("search",void 0)},p=h(e,700);return m(p,()=>{e?a.clear=!0:a.clear=!1,s()}),(N,o)=>(t(),l("div",S,[n(r,{icon:"vuesax-linear:search-normal-1",class:"si__icon",size:"18",onClick:s}),f(x("input",{"onUpdate:modelValue":o[0]||(o[0]=_=>e.value=_),class:"si__input",placeholder:i.placeHolder,onKeyup:k(s,["enter"])},null,40,V),[[b,e.value]]),a.clear?(t(),l("button",{key:0,type:"button",class:"si__clear","aria-label":"پاک کردن",onClick:u},[n(r,{icon:"vuesax-linear:add",size:"16"})])):I("",!0)]))}}),D=C(B,[["__scopeId","data-v-4c50067a"]]);export{D as S};
|
||||
import{d as v,bb as h,w as m,e as t,f as l,x as n,I as r,v as f,bc as b,g as x,bd as k,h as I,U as w,k as y,_ as C}from"./index-Crp8bPtg.js";const S={class:"si"},V=["placeholder"],B=v({__name:"SearchInput",props:{placeHolder:{}},emits:["search"],setup(i,{emit:d}){const c=d,a=w({clear:!1}),e=y(void 0),s=()=>{c("search",e.value)},u=()=>{e.value=void 0,a.clear=!1,c("search",void 0)},p=h(e,700);return m(p,()=>{e?a.clear=!0:a.clear=!1,s()}),(N,o)=>(t(),l("div",S,[n(r,{icon:"vuesax-linear:search-normal-1",class:"si__icon",size:"18",onClick:s}),f(x("input",{"onUpdate:modelValue":o[0]||(o[0]=_=>e.value=_),class:"si__input",placeholder:i.placeHolder,onKeyup:k(s,["enter"])},null,40,V),[[b,e.value]]),a.clear?(t(),l("button",{key:0,type:"button",class:"si__clear","aria-label":"پاک کردن",onClick:u},[n(r,{icon:"vuesax-linear:add",size:"16"})])):I("",!0)]))}}),D=C(B,[["__scopeId","data-v-4c50067a"]]);export{D as S};
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{d as r,e as t,f as s,g as o,t as a,h as n,V as _,x as d,I as u,_ as m}from"./index-CVwJmJzN.js";const b={class:"sec"},x={class:"sec__text"},f={class:"sec__title"},h={key:0,class:"sec__sub"},k=r({__name:"SectionHead",props:{title:{},subtitle:{},actionLabel:{}},emits:["action"],setup(e,{emit:i}){const l=i;return(V,c)=>(t(),s("header",b,[o("div",x,[o("h2",f,a(e.title),1),e.subtitle?(t(),s("p",h,a(e.subtitle),1)):n("",!0)]),e.actionLabel?(t(),s("button",{key:0,type:"button",class:"sec__action",onClick:c[0]||(c[0]=p=>l("action"))},[_(a(e.actionLabel)+" ",1),d(u,{icon:"vuesax-linear:arrow-left-2",size:"15"})])):n("",!0)]))}}),y=m(k,[["__scopeId","data-v-e5c65b7c"]]);export{y as S};
|
||||
@@ -0,0 +1 @@
|
||||
import{d as r,e as t,f as s,g as o,t as a,h as n,W as _,x as d,I as u,_ as m}from"./index-Crp8bPtg.js";const b={class:"sec"},x={class:"sec__text"},f={class:"sec__title"},h={key:0,class:"sec__sub"},k=r({__name:"SectionHead",props:{title:{},subtitle:{},actionLabel:{}},emits:["action"],setup(e,{emit:i}){const l=i;return(p,c)=>(t(),s("header",b,[o("div",x,[o("h2",f,a(e.title),1),e.subtitle?(t(),s("p",h,a(e.subtitle),1)):n("",!0)]),e.actionLabel?(t(),s("button",{key:0,type:"button",class:"sec__action",onClick:c[0]||(c[0]=v=>l("action"))},[_(a(e.actionLabel)+" ",1),d(u,{icon:"vuesax-linear:arrow-left-2",size:"15"})])):n("",!0)]))}}),N=m(k,[["__scopeId","data-v-e5c65b7c"]]);export{N as S};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{d as b,W as D,G as L,k as u,K as g,o as N,f as i,x as r,H as E,S as w,N as P,q as m,h as x,e as l,F as R,g as s,r as M,I as T,t as o,i as p,L as O,_ as B}from"./index-CVwJmJzN.js";import{P as U}from"./PageBar-BbDixxVX.js";import{S as I}from"./SectionHead-0fBhSKkB.js";import{j as k,p as V}from"./filters-D_vYSbiN.js";import{D as Y}from"./index-C6_LSiEl.js";import"./KeyCode-DN5saFNF.js";import"./classCallCheck-Cq3GxPzH.js";import"./raf-nDFcuFT6.js";const $={class:"tx"},G={class:"tx__list"},H=["onClick"],z={class:"tx__main"},F={class:"tx__head"},K={class:"tx__kind"},j={key:0,class:"tx__note"},W={class:"tx__foot"},q={class:"tx__date"},J={key:1,class:"tx__empty"},Q={class:"sheet"},X={class:"sheet__specs"},Z={class:"sheet__spec"},ss={class:"sheet__spec"},es={class:"sheet__spec"},ts={class:"sheet__spec"},os={class:"sheet__spec"},ns=b({__name:"TransactionsView",setup(as){const h={ORDER_STOCK:"سفارش",ORDER_PRE_ORDER:"سفارش ساخت",REPAYMENT_MELTED_GOLD:"طلای آبشده",REPAYMENT_TRANSFER:"حواله",REPAYMENT_CHEQUE:"چک",REPAYMENT_CASH:"پولی",WALLET_BONUS:"پاداش",ADJUSTMENT:"اصلاحیه"},S=D(),v=L(),_=u(!1),d=u(v.peek(g.ledger)??[]),f=u(!1),n=u(null),c=a=>a.direction==="CREDIT",y=a=>a.currency==="GOLD_GRAM"?`${a.amount} گرم`:`${V(a.amount)} ریال`,C=a=>{n.value=a,f.value=!0};return N(async()=>{if(S.isLoggedIn){_.value=v.peek(g.ledger)===void 0;try{d.value=await v.myLedgerEntries({force:!0})}finally{_.value=!1}}}),(a,e)=>{const A=O("container");return l(),i("div",$,[r(U,{title:"اسناد","back-to":"userPage::hasSubRoute"}),r(w,{spinning:_.value,tip:"درحال دریافت اطلاعات"},{default:E(()=>[r(A,{class:"tx__body"},{default:E(()=>[d.value.length?(l(),i(R,{key:0},[r(I,{title:"گردش حساب",subtitle:`${d.value.length} سند`},null,8,["subtitle"]),s("div",G,[(l(!0),i(R,null,M(d.value,t=>(l(),i("article",{key:t.id,class:"tx__row",onClick:ls=>C(t)},[s("span",{class:p(["tx__mark",c(t)?"is-in":"is-out"]),"aria-hidden":"true"},[r(T,{icon:c(t)?"vuesax-linear:arrow-down":"vuesax-linear:arrow-up",size:"16"},null,8,["icon"])],2),s("div",z,[s("div",F,[s("h3",K,o(h[t.sourceType]??t.sourceType),1),s("span",{class:p(["tx__amount",c(t)?"is-in":"is-out"])},o(y(t)),3)]),t.note?(l(),i("p",j,o(t.note),1)):x("",!0),s("div",W,[s("span",q,o(m(k)(t.createdAt)),1),s("span",{class:p(["tx__state",{"is-pending":!t.confirmed}])},o(t.confirmed?"تایید شده":"در انتظار تایید"),3)])])],8,H))),128))])],64)):_.value?x("",!0):(l(),i("section",J,[r(T,{icon:"vuesax-linear:receipt-text",size:"26"}),e[1]||(e[1]=s("p",null,"سندی برای حساب شما ثبت نشده است.",-1))]))]),_:1})]),_:1},8,["spinning"]),n.value?(l(),P(m(Y),{key:0,visible:f.value,"onUpdate:visible":e[0]||(e[0]=t=>f.value=t),placement:"bottom",closable:!1,height:"420px",class:"rtl",bodyStyle:{padding:0}},{default:E(()=>[s("div",Q,[e[7]||(e[7]=s("h3",{class:"sheet__title"},"جزئیات سند",-1)),s("dl",X,[s("div",Z,[e[2]||(e[2]=s("dt",null,"نوع سند",-1)),s("dd",null,o(h[n.value.sourceType]??n.value.sourceType),1)]),s("div",ss,[e[3]||(e[3]=s("dt",null,"مبلغ",-1)),s("dd",{class:p(c(n.value)?"is-in":"is-out")},o(y(n.value)),3)]),s("div",es,[e[4]||(e[4]=s("dt",null,"وضعیت",-1)),s("dd",null,o(n.value.confirmed?"تایید شده":"در انتظار تایید"),1)]),s("div",ts,[e[5]||(e[5]=s("dt",null,"تاریخ",-1)),s("dd",null,o(m(k)(n.value.createdAt)),1)]),s("div",os,[e[6]||(e[6]=s("dt",null,"توضیحات",-1)),s("dd",null,o(n.value.note||"—"),1)])])])]),_:1},8,["visible"])):x("",!0)])}}}),fs=B(ns,[["__scopeId","data-v-4e8ef6ab"]]);export{fs as default};
|
||||
import{d as b,G as D,H as w,k as u,K as g,o as L,f as i,x as r,J as E,T as N,O as M,q as m,h as x,e as l,F as R,g as s,r as O,I as T,t as o,i as p,M as P,_ as B}from"./index-Crp8bPtg.js";import{P as U}from"./PageBar-5ktYOrio.js";import{S as I}from"./SectionHead-D0LXM_VW.js";import{j as k,p as V}from"./filters-DytSQLR6.js";import{D as Y}from"./index-CqU2-fRE.js";import"./KeyCode-DjPzM-x4.js";import"./classCallCheck-CpYTQ_t0.js";import"./raf-nDFcuFT6.js";const $={class:"tx"},G={class:"tx__list"},H=["onClick"],z={class:"tx__main"},F={class:"tx__head"},K={class:"tx__kind"},j={key:0,class:"tx__note"},J={class:"tx__foot"},q={class:"tx__date"},Q={key:1,class:"tx__empty"},W={class:"sheet"},X={class:"sheet__specs"},Z={class:"sheet__spec"},ss={class:"sheet__spec"},es={class:"sheet__spec"},ts={class:"sheet__spec"},os={class:"sheet__spec"},ns=b({__name:"TransactionsView",setup(as){const h={ORDER_STOCK:"سفارش",ORDER_PRE_ORDER:"سفارش ساخت",REPAYMENT_MELTED_GOLD:"طلای آبشده",REPAYMENT_TRANSFER:"حواله",REPAYMENT_CHEQUE:"چک",REPAYMENT_CASH:"پولی",WALLET_BONUS:"پاداش",ADJUSTMENT:"اصلاحیه"},S=D(),v=w(),_=u(!1),d=u(v.peek(g.ledger)??[]),f=u(!1),n=u(null),c=a=>a.direction==="CREDIT",y=a=>a.currency==="GOLD_GRAM"?`${a.amount} گرم`:`${V(a.amount)} ریال`,C=a=>{n.value=a,f.value=!0};return L(async()=>{if(S.isLoggedIn){_.value=v.peek(g.ledger)===void 0;try{d.value=await v.myLedgerEntries({force:!0})}finally{_.value=!1}}}),(a,e)=>{const A=P("container");return l(),i("div",$,[r(U,{title:"اسناد","back-to":"userPage::hasSubRoute"}),r(N,{spinning:_.value,tip:"درحال دریافت اطلاعات"},{default:E(()=>[r(A,{class:"tx__body"},{default:E(()=>[d.value.length?(l(),i(R,{key:0},[r(I,{title:"گردش حساب",subtitle:`${d.value.length} سند`},null,8,["subtitle"]),s("div",G,[(l(!0),i(R,null,O(d.value,t=>(l(),i("article",{key:t.id,class:"tx__row",onClick:ls=>C(t)},[s("span",{class:p(["tx__mark",c(t)?"is-in":"is-out"]),"aria-hidden":"true"},[r(T,{icon:c(t)?"vuesax-linear:arrow-down":"vuesax-linear:arrow-up",size:"16"},null,8,["icon"])],2),s("div",z,[s("div",F,[s("h3",K,o(h[t.sourceType]??t.sourceType),1),s("span",{class:p(["tx__amount",c(t)?"is-in":"is-out"])},o(y(t)),3)]),t.note?(l(),i("p",j,o(t.note),1)):x("",!0),s("div",J,[s("span",q,o(m(k)(t.createdAt)),1),s("span",{class:p(["tx__state",{"is-pending":!t.confirmed}])},o(t.confirmed?"تایید شده":"در انتظار تایید"),3)])])],8,H))),128))])],64)):_.value?x("",!0):(l(),i("section",Q,[r(T,{icon:"vuesax-linear:receipt-text",size:"26"}),e[1]||(e[1]=s("p",null,"سندی برای حساب شما ثبت نشده است.",-1))]))]),_:1})]),_:1},8,["spinning"]),n.value?(l(),M(m(Y),{key:0,visible:f.value,"onUpdate:visible":e[0]||(e[0]=t=>f.value=t),placement:"bottom",closable:!1,height:"420px",class:"rtl",bodyStyle:{padding:0}},{default:E(()=>[s("div",W,[e[7]||(e[7]=s("h3",{class:"sheet__title"},"جزئیات سند",-1)),s("dl",X,[s("div",Z,[e[2]||(e[2]=s("dt",null,"نوع سند",-1)),s("dd",null,o(h[n.value.sourceType]??n.value.sourceType),1)]),s("div",ss,[e[3]||(e[3]=s("dt",null,"مبلغ",-1)),s("dd",{class:p(c(n.value)?"is-in":"is-out")},o(y(n.value)),3)]),s("div",es,[e[4]||(e[4]=s("dt",null,"وضعیت",-1)),s("dd",null,o(n.value.confirmed?"تایید شده":"در انتظار تایید"),1)]),s("div",ts,[e[5]||(e[5]=s("dt",null,"تاریخ",-1)),s("dd",null,o(m(k)(n.value.createdAt)),1)]),s("div",os,[e[6]||(e[6]=s("dt",null,"توضیحات",-1)),s("dd",null,o(n.value.note||"—"),1)])])])]),_:1},8,["visible"])):x("",!0)])}}}),fs=B(ns,[["__scopeId","data-v-4e8ef6ab"]]);export{fs as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{A as d,Z as f,K as c,s as g,k as p,j as v,D as y}from"./index-CVwJmJzN.js";const m=d("catalog",()=>{const o=f(),s=o.peek(c.catalog),e=g(s??[]),n=p(s!==void 0),r=v(()=>{const t=new Map;for(const a of e.value)a.category&&!t.has(a.category.id)&&t.set(a.category.id,{id:a.category.id,title:a.category.title});return[...t.values()]});async function i(t=!1){const a=await o.fetch(c.catalog,y.listProducts,{force:t});return e.value=a,n.value=!0,a}function l(t){return e.value.find(a=>a.id===t)??null}function u(){o.invalidate(c.catalog)}return{products:e,loaded:n,categories:r,load:i,byId:l,invalidate:u}});export{m as u};
|
||||
import{A as d,Z as f,K as c,s as g,k as p,j as v,D as y}from"./index-Crp8bPtg.js";const m=d("catalog",()=>{const o=f(),s=o.peek(c.catalog),e=g(s??[]),n=p(s!==void 0),r=v(()=>{const t=new Map;for(const a of e.value)a.category&&!t.has(a.category.id)&&t.set(a.category.id,{id:a.category.id,title:a.category.title});return[...t.values()]});async function i(t=!1){const a=await o.fetch(c.catalog,y.listProducts,{force:t});return e.value=a,n.value=!0,a}function l(t){return e.value.find(a=>a.id===t)??null}function u(){o.invalidate(c.catalog)}return{products:e,loaded:n,categories:r,load:i,byId:l,invalidate:u}});export{m as u};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{a9 as n}from"./index-CVwJmJzN.js";function l(a,t){for(var r=n({},a),e=0;e<t.length;e+=1){var o=t[e];delete r[o]}return r}function c(a,t,r){return Object.defineProperty(a,"prototype",{writable:!1}),a}function f(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}export{c as _,f as a,l as o};
|
||||
import{a9 as n}from"./index-Crp8bPtg.js";function l(a,t){for(var r=n({},a),e=0;e<t.length;e+=1){var o=t[e];delete r[o]}return r}function c(a,t,r){return Object.defineProperty(a,"prototype",{writable:!1}),a}function f(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}export{c as _,f as a,l as o};
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{A as e}from"./index-CVwJmJzN.js";const t=()=>({colors:[],brands:[],ciny_id:[],limit_percent:[],limit_gram:[],has_discount:!1,text:void 0,cats:void 0,page:0}),i=e("filters",{state:()=>({query:t()}),actions:{reset(){this.query=t()}}});export{i as u};
|
||||
import{A as e}from"./index-Crp8bPtg.js";const t=()=>({colors:[],brands:[],ciny_id:[],limit_percent:[],limit_gram:[],has_discount:!1,text:void 0,cats:void 0,page:0}),i=e("filters",{state:()=>({query:t()}),actions:{reset(){this.query=t()}}});export{i as u};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+22
-22
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{A as l,G as d,D as a}from"./index-Crp8bPtg.js";const n="gold-bank:notificationsSeenAt",f=l("notifications",{state:()=>({adminUnread:0,statusFresh:0,loading:!1}),getters:{badgeTotal(){return this.adminUnread+this.statusFresh}},actions:{seenAt(){try{return localStorage.getItem(n)}catch{return null}},markSeenNow(){try{localStorage.setItem(n,new Date().toISOString())}catch{}this.statusFresh=0},async refreshBadge(){if(!d().isLoggedIn){this.adminUnread=0,this.statusFresh=0;return}this.loading=!0;try{const[t,r]=await Promise.all([a.getMyUnreadNotificationCount(),a.getMyOrders({page:1,limit:20})]);this.adminUnread=t.count??0;const s=this.seenAt();if(!s)this.statusFresh=0;else{const o=Date.parse(s);let e=0;for(const i of r.result??[])for(const c of i.statusEvents??[])Date.parse(c.createdAt)>o&&(e+=1);this.statusFresh=e}}catch(t){console.log(t)}finally{this.loading=!1}}}});export{f as u};
|
||||
@@ -0,0 +1 @@
|
||||
const D={SUSPENDED:"معلق",PLACED:"ثبت سفارش",ADMIN_APPROVED:"تایید مدیر",SOURCING:"در حال تامین",PREPARING:"آمادهسازی",DELIVERED_TO_AGENT:"تحویل نماینده",DELIVERED_TO_CUSTOMER:"تحویل مشتری",CANCELLED:"لغو شده"},n={SUSPENDED:"سفارش بهدلیل سقف اعتبار معلق شد",PLACED:"سفارش ثبت و دریافت شد",ADMIN_APPROVED:"سفارش توسط مدیر تایید شد",SOURCING:"کالا در حال تامین است",PREPARING:"سفارش در حال آمادهسازی است",DELIVERED_TO_AGENT:"تحویل به نماینده فروش انجام شد",DELIVERED_TO_CUSTOMER:"سفارش به مشتری تحویل شد",CANCELLED:"سفارش لغو شده است"},R={SUSPENDED:"vuesax-linear:bag-timer",PLACED:"vuesax-linear:bag-tick",ADMIN_APPROVED:"vuesax-linear:verify",SOURCING:"vuesax-linear:box-search",PREPARING:"vuesax-linear:box-1",DELIVERED_TO_AGENT:"vuesax-linear:truck-time",DELIVERED_TO_CUSTOMER:"vuesax-linear:location-tick",CANCELLED:"vuesax-linear:bag-cross"},A=["PLACED","ADMIN_APPROVED","SOURCING","PREPARING","DELIVERED_TO_AGENT","DELIVERED_TO_CUSTOMER"],a={SUSPENDED:{font:"#A16207",background:"#A162071F"},PLACED:{font:"#3B82F6",background:"#3B82F61F"},ADMIN_APPROVED:{font:"#6366F1",background:"#6366F11F"},SOURCING:{font:"#EAB308",background:"#EAB3081F"},PREPARING:{font:"#F97316",background:"#F973161F"},DELIVERED_TO_AGENT:{font:"#06B6D4",background:"#06B6D41F"},DELIVERED_TO_CUSTOMER:{font:"#22C55E",background:"#22C55E1F"},CANCELLED:{font:"#DC2626",background:"#DC26261F"}},o={font:"#64748B",background:"#64748B1F"},r="vuesax-linear:receipt-text";function t(E){return a[E]??o}function O(E){return D[E]??E}function e(E){return n[E]??""}function _(E){return R[E]??r}export{D as O,a,_ as b,O as c,e as d,A as e,t as o};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{k as s,$ as l}from"./index-CVwJmJzN.js";const r=new Set;function c(a,n=70){const e=s(r.has(a));function t(i){return{"--reveal-delay":`${i*n}ms`}}async function u(){e.value||(await l(),requestAnimationFrame(()=>requestAnimationFrame(()=>{e.value=!0,r.add(a)})))}return{revealed:e,revealDelay:t,reveal:u}}export{c as u};
|
||||
import{k as s,$ as l}from"./index-Crp8bPtg.js";const r=new Set;function c(a,n=70){const e=s(r.has(a));function t(i){return{"--reveal-delay":`${i*n}ms`}}async function u(){e.value||(await l(),requestAnimationFrame(()=>requestAnimationFrame(()=>{e.value=!0,r.add(a)})))}return{revealed:e,revealDelay:t,reveal:u}}export{c as u};
|
||||
Vendored
+55
-40
@@ -1,43 +1,58 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="theme-color" content="#23493c" data-light="#23493c" />
|
||||
<meta name="background-color" content="#23493c" />
|
||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
||||
<!--
|
||||
Appearance boot (see src/stores/appearanceStore.ts): applies the saved
|
||||
theme / reduced-motion classes before the first paint, so a dark-mode
|
||||
user never sees a white flash while the bundle loads. Same storage key
|
||||
and class names as the store, which takes over once the app is up.
|
||||
-->
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
var s = JSON.parse(localStorage.getItem('hedena-gold:appearance') || '{}');
|
||||
var mq = function (q) { return window.matchMedia && matchMedia(q).matches; };
|
||||
// Default is light when nothing is saved (matches appearanceStore).
|
||||
var dark = s.theme === 'dark' || (s.theme === 'system' && mq('(prefers-color-scheme: dark)'));
|
||||
var motion = typeof s.reduceMotion === 'boolean' ? s.reduceMotion : mq('(prefers-reduced-motion: reduce)');
|
||||
var c = document.documentElement.classList;
|
||||
if (dark) { c.add('theme-dark', 'van-theme-dark'); document.querySelector('meta[name=theme-color]').setAttribute('content', '#15171A'); }
|
||||
if (motion) c.add('motion-reduced');
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="theme-color" content="#23493c" data-light="#23493c" />
|
||||
<meta name="background-color" content="#23493c" />
|
||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
||||
<!--
|
||||
Appearance boot (see src/stores/appearanceStore.ts): applies the saved
|
||||
theme / reduced-motion classes before the first paint, so a dark-mode
|
||||
user never sees a white flash while the bundle loads. Same storage key
|
||||
and class names as the store, which takes over once the app is up.
|
||||
-->
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
var s = JSON.parse(localStorage.getItem('hedena-gold:appearance') || '{}');
|
||||
var mq = function (q) { return window.matchMedia && matchMedia(q).matches; };
|
||||
// Default is light when nothing is saved (matches appearanceStore).
|
||||
var dark = s.theme === 'dark' || (s.theme === 'system' && mq('(prefers-color-scheme: dark)'));
|
||||
var motion = typeof s.reduceMotion === 'boolean' ? s.reduceMotion : mq('(prefers-reduced-motion: reduce)');
|
||||
var c = document.documentElement.classList;
|
||||
if (dark) { c.add('theme-dark', 'van-theme-dark'); document.querySelector('meta[name=theme-color]').setAttribute('content', '#15171A'); }
|
||||
if (motion) c.add('motion-reduced');
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<style>
|
||||
/* Until the bundle's palette loads. */
|
||||
html.theme-dark, html.theme-dark body { background-color: #15171A !important; }
|
||||
</style>
|
||||
<title>طلای هدناگلد</title>
|
||||
<script type="module" crossorigin src="/assets/index-CVwJmJzN.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BNwiSs5S.css">
|
||||
<link rel="manifest" href="/manifest.webmanifest"></head>
|
||||
<body style="background-color: #fff">
|
||||
<div class="w-screen h-screen fixed" style="background-color: var(--c-page, #fff)"></div>
|
||||
<div id="app"></div>␍
|
||||
</body>
|
||||
</html>
|
||||
</style>
|
||||
<title>طلای هدناگلد</title>
|
||||
<script type="module" crossorigin src="/assets/index-Crp8bPtg.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BkStEeIV.css">
|
||||
<link rel="manifest" href="/manifest.webmanifest"></head>
|
||||
<body>
|
||||
<!--
|
||||
Boot splash: same phone column as #app so desktop never flashes a
|
||||
full-bleed white sheet. Removed in main.ts once Vue mounts.
|
||||
-->
|
||||
<div
|
||||
id="app-splash"
|
||||
style="
|
||||
position: fixed;
|
||||
inset-block: 0;
|
||||
inset-inline: max(0px, calc(50vw - 215px));
|
||||
width: min(100vw, 430px);
|
||||
margin-inline: auto;
|
||||
background-color: var(--c-page, #fff);
|
||||
z-index: 0;
|
||||
"
|
||||
></div>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
-4
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"app": "user-app",
|
||||
"build": 219,
|
||||
"version": "1.219",
|
||||
"commit": "c438ab2",
|
||||
"builtAt": "2026-10-27T13:14:56.015Z",
|
||||
"build": 226,
|
||||
"version": "1.226",
|
||||
"commit": "ced3587",
|
||||
"builtAt": "2026-10-28T11:03:28.833Z",
|
||||
"history": [
|
||||
{
|
||||
"build": 183,
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"root":["./src/app.vue","./src/brand.ts","./src/env.d.ts","./src/main.ts","./src/sw.ts","./src/api/cachedreads.ts","./src/api/client.ts","./src/components/appupdategate.vue","./src/components/dialogvant.vue","./src/components/dialogvantonebutton.vue","./src/components/emptystate.vue","./src/components/spinner.vue","./src/components/expert/actingasbar.vue","./src/components/home/carousel.vue","./src/components/home/categoryrail.vue","./src/components/home/ratestrip.vue","./src/components/home/sectionhead.vue","./src/components/home/showcaseslider.vue","./src/components/icon/icon.vue","./src/components/input/otpinput.vue","./src/components/input/singleotpinput.vue","./src/components/product/cartitem.vue","./src/components/product/galleryslider.vue","./src/components/product/ordercard.vue","./src/components/product/orderitemcard.vue","./src/components/product/productcard.vue","./src/components/product/productmorph.vue","./src/components/product/productrow.vue","./src/components/product/singleproduct.vue","./src/components/pwa/installpromptmodal.vue","./src/components/search/filters.vue","./src/components/search/searchinput.vue","./src/components/ui/apppullrefresh.vue","./src/components/ui/container.vue","./src/components/ui/dropdown.vue","./src/components/ui/navigation.vue","./src/components/ui/pagebar.vue","./src/components/ui/scrollfetchsearch.vue","./src/components/ui/toastcard.vue","./src/components/ui/toasthost.vue","./src/components/ui/toggleswitch.vue","./src/components/upload/singleimageuploader.vue","./src/composables/useappupdate.ts","./src/composables/useorderitemproduct.ts","./src/composables/usepagetransition.ts","./src/composables/useproduct.ts","./src/composables/useproductdetail.ts","./src/composables/useproductmorph.ts","./src/composables/useproducts.ts","./src/composables/usepwainstall.ts","./src/composables/usereveal.ts","./src/composables/usetoast.ts","./src/layout/fullpagelayout.vue","./src/layout/masterlayout.vue","./src/router/index.ts","./src/stores/appearancestore.ts","./src/stores/cartstore.ts","./src/stores/catalogstore.ts","./src/stores/configstore.ts","./src/stores/favoritesstore.ts","./src/stores/filtersstore.ts","./src/stores/navstore.ts","./src/stores/querycache.ts","./src/stores/session.ts","./src/stores/transitionstore.ts","./src/stores/wagequotestore.ts","./src/stores/windowdatastore.ts","./src/types/moment-jalaali-shim.d.ts","./src/types/swiper-shim.d.ts","./src/utils/checkaccess.ts","./src/utils/filters.ts","./src/utils/orderstatus.ts","./src/utils/validator.ts","./src/views/cartview.vue","./src/views/homeview.vue","./src/views/newestview.vue","./src/views/expert/childordersview.vue","./src/views/expert/customerchoiceview.vue","./src/views/report/reportdocument.vue","./src/views/report/reportview.vue","./src/views/search/collectionview.vue","./src/views/search/searchview.vue","./src/views/user/appearanceview.vue","./src/views/user/completeprofileview.vue","./src/views/user/dashboardview.vue","./src/views/user/favoritesview.vue","./src/views/user/iamcallback.vue","./src/views/user/loginregisterview.vue","./src/views/user/loginview.vue","./src/views/user/notificationsview.vue","./src/views/user/ordersview.vue","./src/views/user/profileview.vue","./src/views/user/registerview.vue","./src/views/user/transactionsview.vue"],"version":"5.9.3"}
|
||||
{"root":["./src/app.vue","./src/brand.ts","./src/env.d.ts","./src/main.ts","./src/sw.ts","./src/api/cachedreads.ts","./src/api/client.ts","./src/components/appupdategate.vue","./src/components/dialogvant.vue","./src/components/dialogvantonebutton.vue","./src/components/emptystate.vue","./src/components/spinner.vue","./src/components/expert/actingasbar.vue","./src/components/home/carousel.vue","./src/components/home/categoryrail.vue","./src/components/home/ratestrip.vue","./src/components/home/sectionhead.vue","./src/components/home/showcaseslider.vue","./src/components/icon/icon.vue","./src/components/input/otpinput.vue","./src/components/input/singleotpinput.vue","./src/components/product/cartitem.vue","./src/components/product/galleryslider.vue","./src/components/product/ordercard.vue","./src/components/product/orderitemcard.vue","./src/components/product/productcard.vue","./src/components/product/productmorph.vue","./src/components/product/productrow.vue","./src/components/product/singleproduct.vue","./src/components/pwa/installpromptmodal.vue","./src/components/search/filters.vue","./src/components/search/searchinput.vue","./src/components/ui/apppullrefresh.vue","./src/components/ui/container.vue","./src/components/ui/dropdown.vue","./src/components/ui/navigation.vue","./src/components/ui/pagebar.vue","./src/components/ui/scrollfetchsearch.vue","./src/components/ui/toastcard.vue","./src/components/ui/toasthost.vue","./src/components/ui/toggleswitch.vue","./src/components/upload/singleimageuploader.vue","./src/composables/useappupdate.ts","./src/composables/useorderitemproduct.ts","./src/composables/usepagetransition.ts","./src/composables/useproduct.ts","./src/composables/useproductdetail.ts","./src/composables/useproductmorph.ts","./src/composables/useproducts.ts","./src/composables/usepwainstall.ts","./src/composables/usereveal.ts","./src/composables/usetoast.ts","./src/layout/fullpagelayout.vue","./src/layout/masterlayout.vue","./src/router/index.ts","./src/stores/appearancestore.ts","./src/stores/cartstore.ts","./src/stores/catalogstore.ts","./src/stores/configstore.ts","./src/stores/favoritesstore.ts","./src/stores/filtersstore.ts","./src/stores/navstore.ts","./src/stores/notificationsstore.ts","./src/stores/querycache.ts","./src/stores/session.ts","./src/stores/transitionstore.ts","./src/stores/wagequotestore.ts","./src/stores/windowdatastore.ts","./src/types/moment-jalaali-shim.d.ts","./src/types/swiper-shim.d.ts","./src/utils/checkaccess.ts","./src/utils/filters.ts","./src/utils/notificationcopy.ts","./src/utils/orderstatus.ts","./src/utils/validator.ts","./src/views/cartview.vue","./src/views/homeview.vue","./src/views/newestview.vue","./src/views/expert/childordersview.vue","./src/views/expert/customerchoiceview.vue","./src/views/report/reportdocument.vue","./src/views/report/reportview.vue","./src/views/search/collectionview.vue","./src/views/search/searchview.vue","./src/views/user/appearanceview.vue","./src/views/user/completeprofileview.vue","./src/views/user/dashboardview.vue","./src/views/user/favoritesview.vue","./src/views/user/iamcallback.vue","./src/views/user/loginregisterview.vue","./src/views/user/loginview.vue","./src/views/user/notificationsview.vue","./src/views/user/ordersview.vue","./src/views/user/profileview.vue","./src/views/user/registerview.vue","./src/views/user/transactionsview.vue"],"version":"5.9.3"}
|
||||
Reference in New Issue
Block a user