Files
hedena_gold/apps/user-app/dist/assets/DashboardView-DETiCNYx.js
T

2 lines
9.8 KiB
JavaScript
Raw Normal View History

import{d as K,W,G as X,k,K as A,b as Y,o as J,f as d,g as e,q as l,x as n,H as _,X as N,T as Q,D as E,e as c,i as S,F as T,n as p,I as h,h as V,t as f,V as I,r as Z,B as ee,Y as se,M as te,j as g,L as ae,_ as le}from"./index-CVwJmJzN.js";import{A as ie}from"./AppPullRefresh-Dmucuir1.js";import{S as oe}from"./SectionHead-0fBhSKkB.js";import{R as ne}from"./RateStrip-CGcLM-Jj.js";import{p as re}from"./filters-D_vYSbiN.js";import{u as de}from"./useReveal-DsHH0sJn.js";const ce="data:image/svg+xml,%3csvg%20width='200'%20height='150'%20viewBox='0%200%20200%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Soft%20brand%20wash%20--%3e%3cellipse%20cx='100'%20cy='122'%20rx='72'%20ry='18'%20fill='%2323493c'%20fill-opacity='0.06'/%3e%3ccircle%20cx='100'%20cy='72'%20r='54'%20fill='%2323493c'%20fill-opacity='0.07'/%3e%3ccircle%20cx='44'%20cy='40'%20r='5'%20fill='%238D6A46'%20fill-opacity='0.3'/%3e%3ccircle%20cx='158'%20cy='48'%20r='7'%20fill='%237A1B33'%20fill-opacity='0.12'/%3e%3c!--%20Door%20frame%20--%3e%3crect%20x='62'%20y='28'%20width='76'%20height='92'%20rx='10'%20fill='%23FFFFFF'%20stroke='%2323493c'%20stroke-opacity='0.16'%20stroke-width='1.75'/%3e%3crect%20x='62'%20y='28'%20width='76'%20height='92'%20rx='10'%20fill='%2323493c'%20fill-opacity='0.04'/%3e%3c!--%20Open%20door%20(hinged%20left,%20swung%20out)%20--%3e%3cpath%20d='M72%2036h28c1.1%200%202%20.9%202%202v76c0%201.1-.9%202-2%202H72c-1.1%200-2-.9-2-2V38c0-1.1.9-2%202-2z'%20fill='%23E8EFEC'%20/%3e%3cpath%20d='M100%2036l34%208v64l-34%208V36z'%20fill='%2323493c'%20fill-opacity='0.12'%20stroke='%2323493c'%20stroke-opacity='0.22'%20stroke-width='1.25'%20/%3e%3cpath%20d='M118%2072h8'%20stroke='%238D6A46'%20stroke-width='3'%20stroke-linecap='round'/%3e%3c!--%20Exit%20arrow%20--%3e%3cg%20transform='translate(128%2058)'%3e%3ccircle%20cx='22'%20cy='22'%20r='20'%20fill='%237A1B33'/%3e%3cpath%20d='M12%2022h16M22%2014l8%208-8%208'%20stroke='%23FAFAFA'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%20/%3e%3c/g%3e%3c!--%20Soft%20ground%20line%20--%3e%3cpath%20d='M48%20128h104'%20stroke='%23ECEDEF'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",ue={class:"dash"},fe={class:"dash__bar"},_e={class:"dash__barInner"},ve={key:1,class:"dash__barSpacer","aria-hidden":"true"},pe={class:"dash__profileNudgeIcon","aria-hidden":"true"},he={class:"dash__balanceHead"},ye={class:"dash__eyebrow"},ge={class:"dash__figure"},me={class:"dash__balanceRow"},be={class:"dash__rowValue"},xe={class:"dash__identity"},ke={class:"dash__name"},we={class:"dash__mobile"},Ce={class:"dash__inviteIcon","aria-hidden":"true"},Ee={class:"dash__inviteCopy"},Se={class:"dash__inviteIcon","aria-hidden":"true"},Ie={class:"dash__access"},De=["onClick"],Fe={class:"dash__tileIcon","aria-hidden":"true"},Le={class:"dash__tileTitle"},Ae={class:"dash__tileArrow","aria-hidden":"true"},Ne=["src"],Te=["src"],Ve={class:"p-8 text-justify"},Pe=K({__name:"DashboardView",setup(Re){const i=te(),r=W(),m=X(),o=k(m.peek(A.profile)??null),y=k(!1),D=k(m.peek(A.goldPrice)??null),w=k(!1),C=g(()=>o.value?parseFloat(o.value.goldDebtGrams)>0:!1),P=g(()=>C.value?"بدهکار گرمی":"بستانکار گرمی"),R=g(()=>o.value?Math.abs(parseFloat(o.value.goldDebtGrams)):0),b=g(()=>{var s;const t=(s=o.value)==null?void 0:s.verificationStep;return!!t&&t!=="VERIFIED"&&t!=="STEP_TWO_SUBMITTED"}),u=Q({notify:!1,loginNotify:!1}),B=[{id:0,icon:"vuesax-linear:box",title:"سفارشات",tone:"forest",disabled:!1},{id:1,icon:"vuesax-linear:receipt-text",title:"اسناد",tone:"sand",disabled:!1},{id:2,icon:"vuesax-linear:user",title:"پروفایل",tone:"wine",disabled:!1},{id:3,icon:"vuesax-linear:heart",title:"علاقمندی",tone:"rose",disabled:!1},{id:6,icon:"vuesax-linear:chart-2",title:"گزارش",tone:"slate",disabled:!1}],M=[{id:4,icon:"vuesax-linear:box-tick",title:"سفارش مشتریان",tone:"forest",disabled:!1},{id:5,icon:"vuesax-linear:profile-2user",title:"مشتریان من",tone:"sand",disabled:!1}],O={id:7,icon:"vuesax-linear:brush",title:"ظاهر",tone:"ink",disab