PageSourceSearch

https://s3.edgex.exchange/static/js/async/4469.4732b740dbeb8348.js

js edgex.exchange collected 2026-09-24 11:10:30 UTC 13,070 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([["4469"],{43495:function(e,t,l){l.d(t,{AH:()=>n,sR:()=>d});var i=l(4171),a=l.n(i),s=l(38857);let n=[{label:"1W",value:"1W"},{label:"1M",value:"1M"},{label:"3M",value:"3M"},{label:"6M",value:"6M"},{label:"1Y",value:"1Y"}],r=(0,s.A)();r("Sun"),r("Mon"),r("Tue"),r("Wed"),r("Thu"),r("Fri"),r("Sat");let d=(e,t)=>1===t?a()(parseInt(e)).startOf("hour").format("HH:mm"):a()(parseInt(e)).startOf("D").format("MM-DD")},98893:function(e,t,l){l.d(t,{A:()=>n});var i=l(41246),a=l(58521),s=l(81894);function n(e,t){let{currentActiveAccount:l}=(0,a.Ay)(),n=null==l?void 0:l.userId,r=(0,i.I)({queryKey:["portfolio-trend",t,e,n],queryFn:()=>(0,s.cf)(t,e),enabled:!!e&&!!n});return{...r,loading:r.isLoading}}},24690:function(e,t,l){l.d(t,{A:()=>s});var i=l(65723),a=l(20305);let s=e=>{let t,l,s=(0,a.c)(3),{className:n}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{d:"M4.64869 2L7.94382 5.29513C8.13908 5.49039 8.13908 5.80697 7.94382 6.00224L4.64869 9.29737",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),s[0]=t):t=s[0],s[1]!==n?(l=(0,i.jsx)("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:t}),s[1]=n,s[2]=l):l=s[2],l}},59379:function(e,t,l){l.d(t,{A:()=>r});var i=l(65723),a=l(20305),s=l(22880),n=l(59200);function r(e){let t,l,r,d=(0,a.c)(8),{text:o,className:c}=e,x=(0,n.A)();return d[0]!==c?(t=(0,s.QP)("text-text-tertiary text-sm flex items-center justify-center h-60",c),d[0]=c,d[1]=t):t=d[1],d[2]!==x||d[3]!==o?(l=o||x("no.data"),d[2]=x,d[3]=o,d[4]=l):l=d[4],d[5]!==t||d[6]!==l?(r=(0,i.jsx)("div",{className:t,children:l}),d[5]=t,d[6]=l,d[7]=r):r=d[7],r}},21900:function(e,t,l){l.d(t,{A:()=>h});var i=l(65723),a=l(20305);l(22155);var s=l(41993),n=l(83110),r=l(56892),d=l(50576),o=l(22880),c=l(26017),x=l(55929),u=l(93840),v=l(4064),m=l(59200),p=l(24690);let h=e=>{var t;let l,h,y,j,b,N,g,k,w,A,$,M,q,E,z,T,S,L,C,D,R,W,B,F,H,I,K,_,P,Q,G=(0,a.c)(99),{data:V,refresh:O,isRefreshingProfit:Y,showViewMore:U,viewMoreLink:X,detailData:J,showTotalEquityTip:Z,lockedEdgeReward:ee}=e,et=void 0!==U&&U,el=void 0===X?"":X;G[0]!==J?(l=void 0===J?[]:J,G[0]=J,G[1]=l):l=G[1];let ei=l,ea=void 0!==Z&&Z,es=(0,m.A)();if(G[2]!==(null==V?void 0:V.profit)||G[3]!==(null==V?void 0:V.profitRate)||G[4]!==(null==V?void 0:V.totalEquity)||G[5]!==Y||G[6]!==ee||G[7]!==O||G[8]!==ea||G[9]!==es){let e,t,l,a,d,o,u=(0,x.m2)(null==V?void 0:V.profit),m=null==V?void 0:V.profitRate;if(y="--",h="text-text-tertiary",null!=m&&"--"!==m&&""!==m){let e;G[25]!==m?(e=(0,c.Qq)(m),G[25]=m,G[26]=e):e=G[26];let t=e;t&&(y=`(${t})`,h="text-functional-green-1",(0,x.m2)(m).isNegative()&&(h="text-functional-red-1"))}b=(null==ee?void 0:ee.isShowLockEdgeValue)===!0,G[27]!==ee||G[28]!==b?(e=b&&ee.isShowActDetail&&(0,x.m2)(ee.activityId).gt(0),G[27]=ee,G[28]=b,G[29]=e):e=G[29],j=e,M="border-line-divider-tertiary flex w-[460px] flex-col gap-10 border-r px-8 py-6",$="flex flex-col gap-10",w="flex flex-col gap-4",G[30]!==es?(t=es("totalEquity"),G[30]=es,G[31]=t):t=G[31],G[32]!==ea||G[33]!==es?(l=ea&&(0,i.jsx)(s.Ay,{placement:"top",title:(0,i.jsx)("div",{children:es("portfolio.totalEquity.tips")}),children:(0,i.jsx)(n.A,{className:`${null===v.A||void 0===v.A?void 0:v.A.helperClassName} text-text-on-sec-btn size-4.5 bg-none`})}),G[32]=ea,G[33]=es,G[34]=l):l=G[34],G[35]!==t||G[36]!==l?(A=(0,i.jsxs)("div",{className:"text-text-primary flex items-center gap-1 text-lg font-bold",children:[t,l]}),G[35]=t,G[36]=l,G[37]=A):A=G[37],g="flex flex-col gap-1";let p=null==V?void 0:V.totalEquity;G[38]!==p?(a=(0,i.jsx)("span",{children:p}),G[38]=p,G[39]=a):a=G[39];let f=`text-special-switch-active ml-2 h-4 w-4 cursor-pointer ${Y?"animate-spin duration-500":""}`;G[40]!==O||G[41]!==f?(d=(0,i.jsx)(r.A,{className:f,onClick:O}),G[40]=O,G[41]=f,G[42]=d):d=G[42],G[43]!==a||G[44]!==d?(k=(0,i.jsxs)("div",{className:"text-text-primary flex items-center text-2xl font-bold",children:[a,d]}),G[43]=a,G[44]=d,G[45]=k):k=G[45],N="flex items-center justify-between",z="flex items-center gap-2 text-xs",G[46]!==es?(o=es("profitToday"),G[46]=es,G[47]=o):o=G[47],G[48]!==o?(T=(0,i.jsx)("span",{className:"text-text-tertiary",children:o}),G[48]=o,G[49]=T):T=G[49],q="text-text-primary",E=u.isGreaterThan(0)?"+":"",G[2]=null==V?void 0:V.profit,G[3]=null==V?void 0:V.profitRate,G[4]=null==V?void 0:V.totalEquity,G[5]=Y,G[6]=ee,G[7]=O,G[8]=ea,G[9]=es,G[10]=h,G[11]=y,G[12]=j,G[13]=b,G[14]=N,G[15]=g,G[16]=k,G[17]=w,G[18]=A,G[19]=$,G[20]=M,G[21]=q,G[22]=E,G[23]=z,G[24]=T}else h=G[10],y=G[11],j=G[12],b=G[13],N=G[14],g=G[15],k=G[16],w=G[17],A=G[18],$=G[19],M=G[20],q=G[21],E=G[22],z=G[23],T=G[24];let en=null!=(t=null==V?void 0:V.profit)?t:0;return G[50]!==en?(S=(0,c.zu)(en,2,void 0,!0,!0),G[50]=en,G[51]=S):S=G[51],G[52]!==S||G[53]!==q||G[54]!==E?(L=(0,i.jsxs)("span",{className:q,children:[E,S]}),G[52]=S,G[53]=q,G[54]=E,G[55]=L):L=G[55],G[56]!==h?(C=(0,o.QP)(h),G[56]=h,G[57]=C):C=G[57],G[58]!==y||G[59]!==C?(D=(0,i.jsx)("span",{className:C,children:y}),G[58]=y,G[59]=C,G[60]=D):D=G[60],G[61]!==L||G[62]!==D||G[63]!==z||G[64]!==T?(R=(0,i.jsxs)("div",{className:z,children:[T,
1L,D]}),G[61]=L,G[62]=D,G[63]=z,G[64]=T,G[65]=R):R=G[65],G[66]!==et||G[67]!==es||G[68]!==el?(W=et?(0,i.jsxs)(u.k2,{to:el,className:"text-special-switch-active ml-2 flex items-center text-[12px] font-medium",children:[(0,i.jsx)("span",{children:es("viewMore")}),(0,i.jsx)(p.A,{className:"text-special-switch-active size-3"})]}):null,G[66]=et,G[67]=es,G[68]=el,G[69]=W):W=G[69],G[70]!==N||G[71]!==R||G[72]!==W?(B=(0,i.jsxs)("div",{className:N,children:[R,W]}),G[70]=N,G[71]=R,G[72]=W,G[73]=B):B=G[73],G[74]!==g||G[75]!==k||G[76]!==B?(F=(0,i.jsxs)("div",{className:g,children:[k,B]}),G[74]=g,G[75]=k,G[76]=B,G[77]=F):F=G[77],G[78]!==ee||G[79]!==j||G[80]!==b||G[81]!==es?(H=b?(0,i.jsxs)("div",{className:"border-line-divider-tertiary flex min-h-11 items-center gap-1.5 rounded-2xl border px-3 py-2",children:[(0,i.jsx)(n.A,{className:"text-text-orderbook size-4 shrink-0 bg-none"}),(0,i.jsx)("span",{className:"text-text-orderbook flex-1 text-xs leading-[18px]",children:es("portfolio.lockedEdgeRewardValue")}),j?(0,i.jsxs)(u.N_,{to:`/event/detail/${ee.activityId}`,className:"text-special-switch-active flex shrink-0 items-center text-xs leading-[18px] font-medium",children:[(0,i.jsx)("span",{children:es("portfolio.detail")}),(0,i.jsx)(d.A,{"aria-hidden":!0,className:"size-4"})]}):null]}
1):null,G[78]=ee,G[79]=j,G[80]=b,G[81]=es,G[82]=H):H=G[82],G[83]!==w||G[84]!==A||G[85]!==F||G[86]!==H?(I=(0,i.jsxs)("div",{className:w,children:[A,F,H]}),G[83]=w,G[84]=A,G[85]=F,G[86]=H,G[87]=I):I=G[87],G[88]!==$||G[89]!==I?(K=(0,i.jsx)("div",{className:$,children:I}),G[88]=$,G[89]=I,G[90]=K):K=G[90],G[91]!==ei?(_=null==ei?void 0:ei.map(f),G[91]=ei,G[92]=_):_=G[92],G[93]!==_?(P=(0,i.jsx)("div",{className:"flex w-full flex-col justify-between gap-[22px]",children:_}),G[93]=_,G[94]=P):P=G[94],G[95]!==M||G[96]!==K||G[97]!==P?(Q=(0,i.jsxs)("div",{className:M,children:[K,P]}),G[95]=M,G[96]=K,G[97]=P,G[98]=Q):Q=G[98],Q};function f(e){return(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)("div",{className:"text-text-tertiary text-xs font-normal capitalize",children:e.label}),(0,i.jsx)("div",{className:"text-text-primary text-xs font-medium capitalize",children:e.value})]},e.key)}},53761:function(e,t,l){l.d(t,{A:()=>M});var i=l(65723),a=l(20305),s=l(22155),n=l(14008),r=l(59200),d=l(89685),o=l(35121),c=l(76459),x=l(41144),u=l(46463),v=l(55105),m=l(38735),p=l(22880),h=l(26017),f=l(55929),y=l(71794),j=l(43495),b=l(59379),N=l(81894),g=l(98893),k=l(65250);let w=e=>{let t,l,n,w,M,q,E,z,T,S=(0,a.c)(36),{type:L,dataKey:C,quoteCoin:D,product:R}
1=e,[W,B]=(0,s.useState)("1W"),F=(0,r.A)(),{loading:H,data:I}=(0,g.A)(W,R);if(S[0]!==C||S[1]!==D||S[2]!==I){let e;l=(0,N.Ss)(I),S[6]!==D?(e=e=>{let{x:t,y:l,payload:a}=e,s=`${"$"===D?`${D} `:""}${(0,h.wk)(a.value,2)}\u00A0${"$"===D?"":` ${D}`}`;return(0,i.jsx)("g",{transform:`translate(${t},${l})`,children:(0,i.jsx)("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"#808080",fontSize:12,style:{whiteSpace:"nowrap"},children:s})})},S[6]=D,S[7]=e):e=S[7],t=e,n=function(e,t){var l;if(0===e.length)return{yMin:0,yMax:1,yTicks:[0,.25,.5,.75,1]};let i=(0,f.m2)(null==(l=e[0])?void 0:l[t]),a=i;for(let l of e.slice(1)){let e=(0,f.m2)(l[t]);e.isLessThan(i)&&(i=e),e.isGreaterThan(a)&&(a=e)}if("totalEquity"===t)i=(0,f.m2)(0),a.isGreaterThan(0)&&(a=a.multipliedBy("1.2"));else{let e="0.8",t="0.8";i.isNegative()&&(e="1.2"),a.isPositive()&&(t="1.2"),i=i.multipliedBy(e),a=a.multipliedBy(t)}i.isEqualTo(a)&&(a=i.plus(1));let s=a.minus(i).dividedBy(4),n=Array.from({length:5},(e,t)=>i.plus(s.multipliedBy(t)));return{yMin:Number(i.toFixed()),yMax:Number(a.toFixed()),yTicks:n.map(e=>Number(e.toFixed()))}}(l,C),S[0]=C,S[1]=D,S[2]=I,S[3]=t,S[4]=l,S[5]=n}else t=S[3],l=S[4],n=S[5];let{yMin:K,yMax:_,yTicks:P}=n;if(S[8]!==D||S[9]!==P){let e;S[11]!==D?(e=e=>`${"$"===D?`${D} `:""}${(0,h.wk)(e,2)}${"$"===D?"":` ${D}`}`,S[11]=D,S[12]=e):e=S[12],w=P.map(e),S[8]=D,S[9]=P,S[10]=w}else w=S[10];let Q=w;e:{let e;if(!Q.length){M=70;break e}S[13]!==Q?(e=Math.max(...Q.map(A)),S[13]=Q,S[14]=e):e=S[14],M=Math.max(60,Math.min(Math.ceil(e)+16,120))}let G=M;return S[15]!==W||S[16]!==F?(q=null===j.AH||void 0===j.AH?void 0:j.AH.filter($).map(e=>(0,i.jsx)("span",{"data-value":e.value,className:(0,p.QP)("text-text-tertiary cursor-pointer text-sm font-medium",e.value===W&&"text-text-primary"),onClick:()=>{B(e.value)},children:F(e.label)},e.value)),S[15]=W,S[16]=F,S[17]=q):q=S[17],S[18]!==q?(E=(0,i.jsx)("div",{className:"flex h-9 items-center justify-end gap-4",children:q}),S[18]=q,S[19]=E):E=S[19],S[20]!==t||S[21]!==W||S[22]!==l||S[23]!==C||S[24]!==H||S[25]!==D||S[26]!==F||S[27]!==L||S[28]!==G||S[29]!==_||S[30]!==K||S[31]!==P?(z=(null==l?void 0:l.length)>0?(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(d.u,{width:"100%",height:248,children:(0,i.jsxs)(o.b,{data:l,margin:{top:12},children:[(0,i.jsx)(c.d,{vertical:!1,horizontal:!0,stroke:"var(--line-divider-tertiary)",strokeDasharray:"2 2"}),(0,i.jsx)(x.W,{dataKey:"snapshotTime",type:"number",domain:["dataMin","dataMax"],tickFormatter:e=>(0,j.sR)(e,W),tick:{fill:"var(--text-tertiary)",fontSize:12},axisLine:!1,tickLine:!1,tickMargin:15,interval:"preserveStart",minTickGap:5,scale:"time",padding:{left:12,right:20}}),(0,i.jsx)(u.h,{width:G,dataKey:C,tick:(0,i.jsx)(t,{}),domain:[K,_],axisLine:!1,tickLine:!1,tickCount:5,interval:0,ticks:P}),(0,i.jsx)(v.m,{cursor:{stroke:"var(--brand)",strokeWidth:1,strokeDasharray:"3 3"},content:e=>{var t,l,a,s,n;let{payload:r,label:d,active:o}=e;return o?(0,i.jsxs)("div",{className:"bg-fill-page-secondary flex flex-col gap-2 rounded-lg p-3",children:[(0,i.jsx)("div",{children:(0,k.r6)(d,"mm-dd")}),"pnl"===L?(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[F("dashboard.pnl")+": ","$"===D?`${D} `:"",(0,h.zu)(null==r||null==(t=r[0])?void 0:t.value,2),"$"===D?"":` ${D}`]}),(0,i.jsxs)("div",{children:[F("dashboard.pnlRate")+": ",null==(n=null==r||null==(a=r[0])||null==(l=a.payload)?void 0:l.pnlRate)||"--"===n||""===n?"--":(0,h.Qq)(n,2)||"--"]})]}):(0,i.jsxs)("div",{children:[F("totalEquity")+": ","$"===D?`${D} `:"",(0,h.zu)(null==r||null==(s=r[0])?void 0:s.value,2),"$"===D?"":` ${D}`]})]}):null}}),(0,i.jsx)(m.N,{animationDuration:0,type:"monotone",dataKey:C,stroke:"var(--brand)",strokeWidth:2,r:0,dot:!1,isAnimationActive:!1})]})}),H&&(0,i.jsx)(y.A,{className:"absolute inset-0 z-10"})]}):(0,i.jsx)(b.A,{}),S[20]=t,S[21]=W,S[22]=l,S[23]=C,S[24]=H,S[25]=D,S[26]=F,S[27]=L,S[28]=G,S[29]=_,S[30]=K,S[31]=P,S[32]=z):z=S[32],S[33]!==E||S[34]!==z?(T=(0,i.jsxs)("div",{className:"relative -top-8 flex flex-col gap-8",children:[E,z]}),S[33]=E,S[34]=z,S[35]=T):T=S[35],T};function A(e){return(0,k.q_)(e,"12px Arial")}function $(e){return 1!=e.value}let M=e=>{let t,l,d,o,c,x,u,v,m,p=(0,a.c)(23),{quoteCoin:h,product:f,pnlDataKey:y,activeType:j,onTypeChange:b}
1=e,N=(0,r.A)(),[g,k]=(0,s.useState)("totalEquity"),A=null!=j?j:g,$="totalEquity";"pnl"===A&&($=void 0===y?"pnl":y),p[0]!==N?(t=N("dashboard.accountEquity"),p[0]=N,p[1]=t):t=p[1],p[2]!==t?(l={label:t,value:"totalEquity"},p[2]=t,p[3]=l):l=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(d={label:"P&L",value:"pnl"},p[4]=d):d=p[4],p[5]!==l?(o=[l,d],p[5]=l,p[6]=o):o=p[6];let M=o;return p[7]!==b?(c=e=>{k(e),null==b||b(e)},p[7]=b,p[8]=c):c=p[8],p[9]!==M?(x=(0,i.jsx)(n.j7,{children:M.map(q)}),p[9]=M,p[10]=x):x=p[10],p[11]!==A||p[12]!==c||p[13]!==x?(u=(0,i.jsx)(n.tU,{className:"relative z-10 w-fit",value:A,onValueChange:c,children:x}),p[11]=A,p[12]=c,p[13]=x,p[14]=u):u=p[14],p[15]!==A||p[16]!==$||p[17]!==f||p[18]!==h?(v=(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(w,{type:A,dataKey:$,quoteCoin:h,product:f})}),p[15]=A,p[16]=$,p[17]=f,p[18]=h,p[19]=v):v=p[19],p[20]!==u||p[21]!==v?(m=(0,i.jsxs)("div",{className:"flex-1 p-8 pb-0",children:[u,v]}),p[20]=u,p[21]=v,p[22]=m):m=p[22],m};function q(e){return(0,i.jsx)(n.Xi,{value:e.value,children:e.label},e.value)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.