PageSourceSearch

https://www.btse.com/static/js/BjsLmQXo.js

js btse.com collected 2026-10-03 21:21:20 UTC 125,862 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"btse@2f4cc265"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="caaa95fc-f1cf-474e-93a4-7b4435b4a32c",e._sentryDebugIdIdentifier="sentry-dbid-caaa95fc-f1cf-474e-93a4-7b4435b4a32c")}catch(a){}}();import{ar as e,a8 as t,a9 as a,aa as i,as as l,af as s,aK as r,am as o,aY as n,a6 as c,ad as u,aU as d,ae as v,ab as p,aJ as g,ag as h,a7 as y,aS as b,aD as m,ak as f,ah as C,B as S,al as L,r as k,an as w,aF as P,ac as T,aO as I,ai as _,a5 as D,aN as A,aT as E,aI as B,aE as x,ap as N,b6 as F,aP as R,b5 as M,cw as $,aX as O,aL as H,aW as W,be as V}from"./B-0vxubZ.js";import{r as U,f as j,a as z,A as Y,s as G,R as Z,t as q,v as K,e as X,i as Q,C as J,B as ee,w as te,x as ae,y as ie,k as le,j as se,O as re,z as oe,D as ne,F as ce,G as ue,H as de,J as ve,K as pe,p as ge,b as he,c as ye,M as be,T as me,d as fe,N as Ce,I as Se,q as Le,Q as ke,U as we}from"./kknRYhXV.js";import{sg as Pe,sh as Te,am as Ie,p as _e,nR as De,eC as Ae,eI as Ee,rj as Be,af as xe,co as Ne,cm as Fe,az as Re,R as Me,cp as $e,p8 as Oe,aI as He,p7 as We,c as Ve,eF as Ue,d0 as je,X as ze,si as Ye,s2 as Ge,c1 as Ze,c3 as qe,j as Ke,f1 as Xe,e$ as Qe,sj as Je,sk as et,ok as tt,e_ as at,sl as it,lN as lt,nU as st,sm as rt,U as ot,b8 as nt,l as ct,cs as ut,r$ as dt,sn as vt,P as pt,so as gt,bb as ht,f0 as yt,ct as bt,a9 as mt,eJ as ft,V as Ct}from"./fTPyrBIP.js";import{_ as St}from"./SJUTAzMa.js";import{be as Lt,bp as kt,bj as wt,bt as Pt,bu as Tt,bq as It,b4 as _t}from"../../app.DI3xhnWo.js";import{u as Dt}from"./TD8YArC6.js";import{W as At,P as Et,F as Bt,E as xt,U as Nt,u as Ft,e as Rt,b as Mt,f as $t,g as Ot,h as Ht}from"./D-ZzLLmk.js";import{I as Wt,a as Vt,b as Ut,L as jt,A as zt}from"./Dwt89iaU.js";import{e as Yt,d as Gt}from"./B4GGByMv.js";import{T as Zt,u as qt}from"./BgMfsvKt.js";import{E as Kt}from"./CFAYObTo.js";import{I as Xt,T as Qt,C as Jt}from"./D8pu4ENg.js";import{y as ea,F as ta,T as aa}from"./DjxVUbdV.js";import{M as ia,f as la}from"./CX7T1V1h.js";import{w as sa}from"./BOOzV_OZ.js";import{E as ra}from"./BGMCKnEg.js";import{I as oa}from"./Cht-yiBA.js";import"./CEBSnBgb.js";import"./D8-5GxBK.js";import"./chunk-echarts.K2WzvGbX.js";import"./HYjqCwQk.js";import"./BphGmIDb.js";import"./DiwcCmib.js";import"./SmGL2nNO.js";import"./DiT5ri4f.js";import"./chunk-lottie.tqfMQl6Y.js";import"./chunk-web3.BZXhiO4y.js";import"./chunk-web3-onboard-utils.iUTN3q_9.js";import"./chunk-sentry.DKA24Cnk.js";import"./C_JXYWer.js";import"./CgvI7oGJ.js";import"./DfrJsDA_.js";import"./DP00sckV.js";import"./GaR0Evd4.js";import"./DsHOQDiC.js";import"./GMPRS0yC.js";import"./CcpsHvDf.js";import"./CbBRI3wD.js";import"./C7KwQlZn.js";import"./CvMSAFpQ.js";const na={class:"tutorial-wrapper"},ca=["src"],ua={class:"mb-20"},da={class:"highlighted-text"},va={class:"highlighted-text"},pa={class:"highlighted-text"},ga={class:"highlighted-text"},ha={class:"highlighted-text"},ya=St({__name:"Step_0",setup:n=>(n,c)=>{const u=e("i18n-t");return a(),t("div",na,[i("img",{src:l("/static/img/DFPzRWbC.svg"),alt:"tutorial-0",class:"mb-20",style:{width:"100%"}},null,8,ca),i("p",ua,s(n.$t("trading.autotrader.tutorial.welcome.description")),1),i("ol",null,[i("li",null,[r(u,{keypath:"trading.autotrader.tutorial.welcome.list.1"},{maximizeProfits:o((()=>[i("span",da,s(n.$t("trading.autotrader.maximizeProfits")),1)])),_:1})]),i("li",null,[r(u,{keypath:"trading.autotrader.tutorial.welcome.list.2"},{live:o((()=>[i("span",va,s(n.$t("trading.live")),1)])),_:1})]),i("li",null,[r(u,{keypath:"trading.autotrader.tutorial.welcome.list.3"},{protectTrades:o((()=>[i("span",pa,s(n.$t("trading.autotrader.protectTrades")),1)])),_:1})]),i("li",null,[r(u,{keypath:"trading.autotrader.tutorial.welcome.list.4"},{bestPrices:o((()=>[i("span",ga,s(n.$t("trading.autotrader.bestPrices")),1)])),_:1})]),i("li",null,[r(u,{keypath:"trading.autotrader.tutorial.welcome.list.5"},{beatTheMarket:o((()=>[i("span",ha,s(n.$t("trading.autotrader.beatTheMarket")),1)])),_:1})])])])}},[["__scopeId","data-v-504722b1"]]),ba={class:"tutorial-wrapper"},ma={class:"mb-20"};const fa=St({},[["render",function(e,l){return a(),t("div",ba,[i("p",ma,s(e.$t("trading.autotrader.tutorial.highlighted.1.description")),1)])}],["__scopeId","data-v-0d9b46ff"]]),Ca={class:"tutorial-wrapper"};const Sa=St({},[["render",function(e,i){return a(),t("div",Ca,s(e.$t("trading.autotrader.tutorial.highlighted.2.description")),1)}],["__scopeId","data-v-aa2695ce"]]);const La={class:"usage-step-info"},ka={class:"usage-step-dot"},wa={key:0,class:"chevron-right"},Pa=St({__name:"UsageSteps",setup(e){const{t:l}=n(),r=c((()=>[l("t.deposit"),l("t.choose"),l("t.start")]));return(e,l)=>(a(),t("div",La,[(a(!0),t(u,null,d(r.value,((e,l)=>(a(),t("div",{key:l,class:"usage-step"},[i("div",ka,s(l+1),1),v(" "+s(e)+" ",1),l+1!==r.value.length?(a(),t("span",wa,s(">"))):p("",!0)])))),128))]))}},[["__scopeId","data-v-eed48c22"]]),Ta={class:"animation-wrapper"},Ia=St({__name:"Animation",setup(e){const{enableAutoTraderRobotFloat:s}=Ie;return(e,r)=>(a(),t("div",Ta,[i("div",{class:h(["robot",{"float-bob-y":l(s)}])},null,2),r[0]||(r[0]=g('<svg width="1100" height="277" viewBox="0 0 1100 277" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-v-d4747c0b><g transform="translate(0,80)" data-v-d4747c0b><path d="M1101 73.8879L1094.56 85.7879C1094.19 86.5879 1092.51 86.6879 1091.86 85.9879L1087.76 81.3879C1087.66 81.2879 1087.57 81.0879 1087.57 80.9879L1079.46 32.4879C1079.46 32.2879 1079.36 32.1879 1079.18 31.9879L1075.63 28.6879C1074.98 28.0879 1073.58 28.1879 1073.11 28.8879L1069.85 33.5879C1069.66 33.8879 1068.92 33.7879 1068.92 33.4879C1068.92 33.1879 1068.26 33.0879 1067.98 33.3879L1066.68 35.3879C1066.21 36.1879 1064.44 35.8879 1064.44 35.0879C1064.44 34.1879 1062.95 33.8879 1062.29 34.5879L1056.98 40.0879C1056.23 40.8879 1054.46 40.5879 1054.27 39.6879L1049.7 19.7879C1049.52 18.7879 1047.46 18.5879 1046.9 19.5879L1044.85 22.7879C1044.29 23.6879 1042.33 23.5879 1042.05 22.5879L1035.34 1.78795C1035.06 0.787946 1032.91 0.687946 1032.45 1.78795L1027.41 12.9879C1026.95 13.9879 1024.89 13.8879 1024.52 12.9879L1023.4 10.0879C1023.03 9.08795 1021.07 9.08795 1020.6 10.0879L1013.14 24.7879C1012.68 25.6879 1010.81 25.6879 1010.34 24.7879L1007.27 19.0879C1006.8 18.1879 1004.93 18.1879 1004.47 19.0879L988.612 52.4879C988.612 52.6879 988.426 52.7879 988.239 52.8879L984.135 55.3879C983.389 55.7879 982.27 55.6879 981.804 55.0879L976.488 48.3879C976.488 48.2879 976.301 48.1879 976.301 47.9879L972.757 25.1879L968.373 10.8879C968.093 9.88795 965.855 9.78795 965.482 10.8879L960.166 24.5879C959.793 25.4879 957.927 25.5879 957.368 24.7879L957.181 24.4879C956.622 23.6879 954.849 23.6879 954.383 24.5879L952.891 27.6879C952.518 28.5879 950.652 28.5879 950.093 27.7879L948.787 25.7879C948.787 25.7879 948.6 25.5879 948.507 25.4879L944.59 22.3879C944.03 21.9879 943.098 21.8879 942.538 22.2879L940.673 23.3879C939.833 23.8879 938.528 23.5879 938.248 22.8879L934.704 12.2879C934.424 11.3879 932.558 11.1879 931.906 11.9879L930.32 13.8879C929.667 14.6879 927.802 14.4879 927.522 13.5879L925.936 8.18795C925.563 7.08795 923.138 7.18795 923.045 8.28795L920.713 30.3879C920.713 30.4879 920.713 30.5879 920.62 30.6879L916.61 36.9879L910.641 49.9879C910.267 50.8879 908.309 50.9879 907.843 49.9879L903.552 42.4879C903.459 42.2879 903.272 42.1879 902.993 41.9879L894.412 37.7879C893.573 37.3879 892.453 37.5879 892.173 38.2879L879.955 60.4879C879.582 61.2879 877.997 61.3879 877.344 60.6879L872.307 55.6879C871.561 54.9879 869.883 55.1879 869.603 56.0879L868.39 60.5879L865.126 68.688C864.846 69.288 863.82 69.4879 863.074 69.0879C862.421 68.6879 861.395 68.8879 861.022 69.3879L860.183 70.8879C859.716 71.7879 857.851 71.7879 857.385 70.8879L856.918 70.0879C856.9
118 69.9879 856.825 69.888 856.825 69.688V64.688C856.825 63.888 855.333 63.488 854.587 64.188C853.934 64.788 852.628 64.5879 852.348 63.8879L851.136 60.5879V47.7879C851.136 47.1879 850.483 46.7879 849.643 46.7879H848.617C847.871 46.7879 847.218 46.3879 847.125 45.8879L844.141 31.0879C843.861 29.8879 841.343 29.8879 841.156 31.0879L838.638 47.5879L835.933 92.688C835.933 93.588 834.068 93.9879 833.228 93.2879L829.218 89.688C829.124 89.588 829.031 89.3879 828.938 89.2879L826.326 80.8879C826.233 80.4879 825.58 80.0879 824.927 80.0879C824.275 80.0879 823.995 79.8879 823.715 79.5879L820.357 75.8879C820.357 75.8879 820.264 75.6879 820.171 75.5879L818.585 71.3879C818.399 70.9879 817.839 70.5879 817.186 70.5879H815.601C814.948 70.5879 814.388 70.2879 814.202 69.8879L812.896 66.688C812.523 65.788 810.564 65.688 810.098 66.688L809.818 67.188V67.3879L807.02 77.4879V84.2879C807.02 84.3879 807.02 84.488 806.927 84.688L805.434 87.2879C804.875 88.2879 802.73 88.0879 802.543 86.9879L802.263 84.688C802.263 84.488 802.263 84.3879 802.077 84.2879L798.533 80.3879C798.533 80.3879 798.346 80.1879 798.346 80.0879L797.134 75.9879C796.761 74.8879 794.522 74.8879 794.242 75.9879L792.75 81.7879C792.75 81.7879 792.75 81.9879 792.657 81.9879L789.952 85.9879C789.952 85.9879 789.859 86.1879 789.859 86.2879L787.061 97.9879C787.061 98.0879 787.061 98.1879 786.874 98.2879L784.263 101.388C784.169 101.488 783.983 101.688 783.796 101.688L781.371 102.788C780.812 103.088 779.972 102.888 779.599 102.488C779.133 101.888 777.734 101.888 777.361 102.588L776.242 104.788C775.775 105.788 773.63 105.688 773.35 104.688L771.485 98.188L769.713 87.0879C769.713 86.5879 768.967 86.188 768.221 86.188H763.93C763.277 86.188 762.718 85.8879 762.531 85.4879L761.878 83.9879C761.505 83.1879 760.013 83.0879 759.36 83.7879C758.614 84.5879 756.935 84.2879 756.749 83.3879L756.189 78.7879C756.189 78.6879 756.189 78.4879 756.003 78.3879L752.738 73.9879C752.458 73.6879 751.992 73.3879 751.432 73.3879H747.795C747.049 73.3879 746.489 73.788 746.303 74.188L743.691 84.3879V84.5879L738.002 95.5879L735.204 103.188C735.204 103.188 735.204 103.288 735.111 103.388L732.872 106.388C732.313 107.188 730.634 107.088 730.167 106.388L728.675 103.788C728.582 103.588 728.302 103.388 727.929 103.288L722.053 101.288C721.307 101.088 720.468 101.288 720.094 101.688L716.83 106.088C716.177 106.888 714.405 106.788 714.032 105.888L712.447 101.588C712.26 101.188 711.7 100.788 711.048 100.788H710.488C709.835 100.788 709.182 101.088 709.089 101.588L706.477 108.488L702.653 119.488C702.653 119.588 702.56 119.688 702.467 119.788L699.576 122.888C698.923 123.588 697.244 123.488 696.871 122.588L696.031 120.488C695.658 119.588 693.793 119.488 693.233 120.388L693.047 120.688C692.58 121.388 691.181 121.488 690.529 120.888C689.876 120.288 688.57 120.388 688.01 120.988L685.026 124.488C684.373 125.288 682.694 125.088 682.321 124.288L679.803 118.588C679.616 118.188 679.057 117.888 678.497 117.888C677.937 117.888 677.471 117.688 677.191 117.388L675.606 114.988C675.139 114.388 673.927 114.188 673.181 114.688L667.398 118.688C666.745 119.188 665.533 119.088 665.066 118.488L664.227 117.488C663.761 116.888 662.548 116.888 662.082 117.488C661.522 118.188 659.937 117.988 659.75 117.188L657.419 105.488C657.419 105.288 657.232 104.988 656.952 104.888L654.994 103.688C654.714 103.488 654.527 103.288 654.527 102.988L651.636 41.0879V40.7879L648.092 33.7879C647.905 33.4879 647.532 33.1879 647.066 33.1879L643.988 32.5879C643.428 32.4879 642.962 32.1879 642.869 31.7879L641.47 25.7879C641.19 24.6879 638.858 24.6879 638.578 25.7879L637.366 29.6879C637.366 29.7879 637.366 29.8879 637.179 29.9879L634.568 33.0879C634.568 33.0879 634.381 33.2879 634.288 33.3879L631.956 34.7879C631.77 34.8879 631.583 35.0879 631.49 35.2879L625.987 48.3879C625.987 48.5879 625.708 48.7879 625.521 48.8879L623.376 50.1879C623.096 50.3879 622.909 50.5879 622.909 50.7879L616.381 75.7879C616.381 75.9879 616.194 76.1879 615.914 76.3879L613.396 77.8879L607.987 80.2879C607.707 80.3879 607.427 80.4879 607.147 80.4879H606.774C606.121 80.4879 605.562 80.788 605.375 81.188L604.256 83.4879C603.79 84.3879 601.831 84.3879 601.458 83.4879L599.033 78.0879C599.033 78.0879 599.033 77.9879 598.94 77.8879L593.064 70.0879C592.411 69.2879 590.639 69.3879 590.266 70.2879L585.509 82.188V82.3879L582.898 99.3879C582.804 99.9879 581.592 100.188 581.032 99.688C580.473 99.188 579.447 99.3879 579.26 99.9879L577.675 104.588C577.395 105.488 575.623 105.688 574.97 104.888H574.877C574.41 104.188 573.384 104.088 572.638 104.488C571.892 104.888 570.68 104.688 570.306 104.088L568.255 100.488C568.255 100.288 568.068 100.188 567.882 100.088L566.856 99.4879C566.109 98.9879 564.897 99.1879 564.524 99.8879C563.964 100.888 561.9
112 100.688 561.726 99.688L559.954 89.0879C559.767 88.1879 558.088 87.8879 557.249 88.5879L556.876 88.9879C556.316 89.4879 555.104 89.4879 554.544 88.9879L554.078 88.5879C553.891 88.4879 553.798 88.2879 553.798 88.0879L551 74.2879L544.565 86.188C544.191 86.988 542.513 87.0879 541.86 86.3879L537.756 81.7879C537.663 81.6879 537.569 81.4879 537.569 81.3879L529.455 32.8879C529.455 32.6879 529.362 32.5879 529.175 32.3879L525.631 29.0879C524.978 28.4879 523.579 28.5879 523.113 29.2879L519.849 33.9879C519.662 34.2879 518.916 34.1879 518.916 33.8879C518.916 33.5879 518.263 33.4879 517.983 33.7879L516.677 35.7879C516.211 36.5879 514.439 36.2879 514.439 35.4879C514.439 34.5879 512.947 34.2879 512.294 34.9879L506.978 40.4879C506.231 41.2879 504.459 40.9879 504.273 40.0879L499.703 20.1879C499.516 19.1879 497.464 18.9879 496.905 19.9879L494.853 23.1879C494.293 24.0879 492.335 23.9879 492.055 22.9879L485.34 2.18795C485.06 1.18795 482.915 1.08795 482.448 2.18795L477.412 13.3879C476.945 14.3879 474.893 14.2879 474.52 13.3879L473.401 10.4879C473.028 9.48795 471.07 9.48795 470.603 10.4879L463.142 25.1879C462.675 26.0879 460.81 26.0879 460.344 25.1879L457.266 19.4879C456.8 18.5879 454.934 18.5879 454.468 19.4879L438.612 52.8879C438.612 53.0879 438.426 53.1879 438.239 53.2879L434.135 55.7879C433.389 56.1879 432.27 56.0879 431.804 55.4879L426.488 48.7879C426.488 48.6879 426.301 48.5879 426.301 48.3879L422.757 25.5879L418.373 11.2879C418.093 10.2879 415.855 10.1879 415.482 11.2879L410.166 24.9879C409.793 25.8879 407.927 25.9879 407.368 25.1879L407.181 24.8879C406.621 24.0879 404.849 24.0879 404.383 24.9879L402.891 28.0879C402.518 28.9879 400.652 28.9879 400.093 28.1879L398.787 26.1879C398.787 26.1879 398.6 25.9879 398.507 25.8879L394.59 22.7879C394.03 22.3879 393.098 22.2879 392.538 22.6879L390.673 23.7879C389.833 24.2879 388.528 23.9879 388.248 23.2879L384.704 12.6879C384.424 11.7879 382.558 11.5879 381.906 12.3879L380.32 14.2879C379.667 15.0879 377.802 14.8879 377.522 13.9879L375.936 8.58795C375.563 7.48795 373.138 7.58795 373.045 8.68795L370.713 30.7879C370.713 30.8879 370.713 30.9879 370.62 31.0879L366.61 37.3879L360.64 50.3879C360.267 51.2879 358.309 51.3879 357.842 50.3879L353.552 42.8879C353.459 42.6879 353.272 42.5879 352.993 42.3879L344.412 38.1879C343.572 37.7879 342.453 37.9879 342.173 38.6879L329.955 60.8879C329.582 61.6879 327.997 61.7879 327.344 61.0879L322.307 56.0879C321.561 55.3879 319.882 55.5879 319.603 56.4879L318.39 60.9879L315.126 69.0879C314.846 69.6879 313.82 69.8879 313.074 69.4879C312.421 69.0879 311.395 69.2879 311.022 69.7879L310.183 71.2879C309.716 72.1879 307.851 72.1879 307.385 71.2879L306.918 70.4879C306.918 70.3879 306.825 70.2879 306.825 70.0879V65.0879C306.825 64.2879 305.333 63.8879 304.587 64.5879C303.934 65.1879 302.628 64.9879 302.348 64.2879L301.136 60.9879V48.1879C301.136 47.5879 300.483 47.1879 299.643 47.1879H298.617C297.871 47.1879 297.218 46.7879 297.125 46.2879L294.141 31.4879C293.861 30.2879 291.343 30.2879 291.156 31.4879L288.638 47.9879L285.933 93.0879C285.933 93.9879 284.068 94.388 283.228 93.688L279.218 90.0879C279.124 89.9879 279.031 89.788 278.938 89.688L276.326 81.2879C276.233 80.8879 275.58 80.4879 274.927 80.4879C274.275 80.4879 273.995 80.2879 273.715 79.9879L270.357 76.2879C270.357 76.2879 270.264 76.0879 270.171 75.9879L268.585 71.7879C268.399 71.3879 267.839 70.9879 267.186 70.9879H265.601C264.948 70.9879 264.388 70.6879 264.202 70.2879L262.896 67.0879C262.523 66.1879 260.564 66.0879 260.098 67.0879L259.818 67.5879V67.7879L257.02 77.8879V84.688C257.02 84.788 257.02 84.8879 256.927 85.0879L255.434 87.688C254.875 88.688 252.73 88.4879 252.543 87.3879L252.263 85.0879C252.263 84.8879 252.263 84.788 252.077 84.688L248.533 80.7879C248.533 80.7879 248.346 80.5879 248.346 80.4879L247.134 76.3879C246.761 75.2879 244.522 75.2879 244.242 76.3879L242.75 82.188C242.75 82.188 242.75 82.3879 242.657 82.3879L239.952 86.3879C239.952 86.3879 239.859 86.588 239.859 86.688L237.061 98.3879C237.061 98.4879 237.061 98.588 236.874 98.688L234.263 101.788C234.169 101.888 233.983 102.088 233.796 102.088L231.371 103.188C230.812 103.488 229.972 103.288 229.599 102.888C229.133 102.288 227.734 102.288 227.361 102.988L226.242 105.188C225.775 106.188 223.63 106.088 223.35 105.088L221.485 98.5879L219.713 87.4879C219.713 86.9879 218.967 86.5879 218.221 86.5879H213.93C213.277 86.5879 212.718 86.2879 212.531 85.8879L211.878 84.3879C211.505 83.5879 210.013 83.488 209.36 84.188C208.614 84.988 206.935 84.6879 206.749 83.7879L206.189 79.188C206.189 79.088 206.189 78.8879 206.003 78.7879L202.738 74.3879C202.458 74.0879 201.992 73.7879 201.432 73.7879H197.795C197.049 73.7879 196.489 74.1879 196.303 74.5879L193.691 84.7879V84.9879L188.002 95.9879L185.204 103.588C185.204 103.588 185.204 103.688 185.111 103.788L182.872 106.788C182.313 107.588 180.634 107.488 180.167 106.788L178.675 104.188C178.582 103.988 178.302 103.788 177.929 103.688L172.053 101.688C171.307 101.488 170.468 101.688 170.094 102.088L166.83 106.488C166.177 107.288 164.405 107.188 164.032 106.288L162.447 101.988C162.26 101.588 161.7 101.188 161.047 101.188H160.488C159.835 101.188 159.182 101.488 159.089 101.988L156.477 108.888L152.653 119.888C152.653 119.988 152.56 120.088 152.467 120.188L149.576 123.288C148.923 123.988 147.244 123.888 146.871 122.988L146.031 120.888C145.658 119.988 143.793 119.888 143.233 120.788L143.047 121.088C142.58 121.788 141.181 121.888 140.529 121.288C139.876 120.688 138.57 120.788 138.01 121.388L135.026 124.888C134.373 125.688 132.694 125.488 132.321 124.688L129.803 118.988C129.616 118.588 129.057 118.288 128.497 118.288C127.937 118.288 127.471 118.088 127.191 117.788L125.606 115.388C125.
1139 114.788 123.927 114.588 123.181 115.088L117.398 119.088C116.745 119.588 115.533 119.488 115.066 118.888L114.227 117.888C113.761 117.288 112.548 117.288 112.082 117.888C111.522 118.588 109.937 118.388 109.75 117.588L107.419 105.888C107.419 105.688 107.232 105.388 106.952 105.288L104.994 104.088C104.714 103.888 104.527 103.688 104.527 103.388L101.636 41.4879V41.1879L98.0917 34.1879C97.9052 33.8879 97.5321 33.5879 97.0658 33.5879L93.988 32.9879C93.4283 32.8879 92.962 32.5879 92.8687 32.1879L91.4697 26.1879C91.1899 25.0879 88.8582 25.0879 88.5784 26.1879L87.3659 30.0879C87.3659 30.1879 87.3659 30.2879 87.1794 30.3879L84.5679 33.4879C84.5679 33.4879 84.3814 33.6879 84.2881 33.7879L81.9564 35.1879C81.7699 35.2879 81.5833 35.4879 81.4901 35.6879L75.9873 48.7879C75.9873 48.9879 75.7075 49.1879 75.5209 49.2879L73.3758 50.5879C73.096 50.7879 72.9094 50.9879 72.9094 51.1879L66.3807 76.188C66.3807 76.388 66.1942 76.5879 65.9144 76.7879L63.3961 78.2879L57.9866 80.688C57.7068 80.788 57.427 80.8879 57.1472 80.8879H56.7741C56.1212 80.8879 55.5616 81.1879 55.3751 81.5879L54.2559 83.8879C53.7896 84.7879 51.8309 84.7879 51.4579 83.8879L49.0329 78.4879C49.0329 78.4879 49.0329 78.3879 48.9396 78.2879L43.0638 70.4879C42.4109 69.6879 40.6388 69.788 40.2657 70.688L35.5091 82.5879V82.7879L32.8976 99.7879C32.8043 100.388 31.5918 100.588 31.0322 100.088C30.4726 99.5879 29.4467 99.7879 29.2601 100.388L27.6746 104.988C27.3948 105.888 25.6227 106.088 24.9698 105.288H24.8765C24.4102 104.588 23.3843 104.488 22.6381 104.888C21.892 105.288 20.6795 105.088 20.3064 104.488L18.2545 100.888C18.2545 100.688 18.068 100.588 17.8815 100.488L16.8555 99.8879C16.1094 99.3879 14.8969 99.5879 14.5238 100.288C13.9642 101.288 11.9123 101.088 11.7258 100.088L9.95371 89.4879C9.76717 88.5879 8.08835 88.2879 7.24894 88.9879L6.87587 89.3879C6.31626 89.8879 5.10378 89.8879 4.54418 89.3879L4.07784 88.9879C3.8913 88.8879 3.79803 88.6879 3.79803 88.4879L1 74.688" stroke="#74818D" stroke-width="2.5" stroke-linejoin="round" data-v-d4747c0b></path></g><circle class="buy1 no1" cx="127" cy="192" r="6" fill="#02CB6B" data-v-d4747c0b></circle><circle class="buy1 no1" cx="127" cy="192" r="24" fill="#00B15D" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no1" x="92" y="222" width="76" height="45" fill="url(#patternbuy)" data-v-d4747c0b></rect><circle class="buy1 no2" cx="200" cy="155" r="6" fill="#FF5B5A" data-v-d4747c0b></circle><circle class="buy1 no2" cx="200" cy="155" r="24" fill="#FF5B5A" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no2" x="165" y="85" width="76" height="45" fill="url(#patternsell)" data-v-d4747c0b></rect><rect class="buy2 no2" x="230" y="88" width="32" height="32.252" fill="url(#pattern1)" data-v-d4747c0b></rect><circle class="buy1 no3" cx="285" cy="179" r="6" fill="#02CB6B" data-v-d4747c0b></circle><circle class="buy1 no3" cx="285" cy="179" r="24" fill="#00B15D" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no3" x="250" y="209" width="76" height="45" fill="url(#patternbuy)" data-v-d4747c0b></rect><circle class="buy1 no4" cx="345" cy="118" r="6" fill="#FF5B5A" data-v-d4747c0b></circle><circle class="buy1 no4" cx="345" cy="118" r="24" fill="#FF5B5A" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no4" x="310" y="48" width="76" height="45" fill="url(#patternsell)" data-v-d4747c0b></rect><rect class="buy2 no4" x="374" y="50" width="32" height="32.252" fill="url(#pattern1)" data-v-d4747c0b></rect><circle class="buy1 no5" cx="436" cy="138" r="6" fill="#02CB6B" data-v-d4747c0b></circle><circle class="buy1 no5" cx="436" cy="138" r="24" fill="#00B15D" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no5" x="401" y="168" width="76" height="45" fill="url(#patternbuy)" data-v-d4747c0b></rect><circle class="buy1 no6" cx="529" cy="106" r="6" fill="#FF5B5A" data-v-d4747c0b></circle><circle class="buy1 no6" cx="529" cy="106" r="24" fill="#FF5B5A" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no6" x="494" y="36" width="76" height="45" fill="url(#patternsell)" data-v-d4747c0b></rect><rect class="buy2 no6" x="560" y="41" width="32" height="32.252" fill="url(#pattern1)" data-v-d4747c0b></rect><circle class="buy1 no7" cx="677" cy="192" r="6" fill="#02CB6B" data-v-d4747c0b></circle><circle class="buy1 no7" cx="677" cy="192" r="24" fill="#00B15D" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no7" x="642" y="222" width="76" height="45" fill="url(#patternbuy)" data-v-d4747c0b></rect><circle class="buy1 no8" cx="750" cy="155" r="6" fill="#FF5B5A" data-v-d4747c0b></circle><circle class="buy1 no8" cx="750" cy="155" r="24" fill="#FF5B5A" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no8" x="715" y="85" width="76" height="45" fill="url(#patternsell)" data-v-d4747c0b></rect><rect class="buy2 no8" x="780" y="88" width="32" height="32.252" fill="url(#pattern1)" data-v-d4747c0b></rect><circle class="buy1 no9" cx="835" cy="179" r="6" fill="#02CB6B" data-v-d4747c0b></circle><circle class="buy1 no9" cx="835" cy="179" r="24" fill="#00B15D" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no9" x="800" y="209" width="76" height="45" fill="url(#patternbuy)" data-v-d4747c0b></rect><circle class="buy1 no10" cx="895" cy="118" r="6" fill="#FF5B5A" data-v-d4747c0b></circle><circle class="buy1 no10" cx="895" cy="118" r="24" fill="#FF5B5A" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no10" x="860" y="48" width="76" height="45" fill="url(#patternsell)" data-v-d4747c0b></rect><rect class="buy2 no10" x="924" y="50" width="32" height="32.252" fill="url(#pattern1)" data-v-d4747c0b></rect><circle class="buy1 no11" cx="986" cy="138" r="6" fill="#02CB6B" data-v-d4747c0b></circle><circle class="buy1 no11" cx="986" cy="138" r="24" fill="#00B15D" fill-opacity="0.2" data-v-d4747c0b></circle><rect class="buy no11" x="951" y="168" width="76" height="45" fill="url(#patternbuy)" data-v-d4747c0b></rect><defs data-v-d4747c0b><pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1" data-v-d4747c0b><use xlink:href="#coin" transform="scale(0.00787402 0.0078125)" data-v-d4747c0b></use></pattern><pattern id="patternbuy" patternContentUnits="objectBoundingBox" width="1" height="1" data-v-d4747c0b><use xlink:href="#buy" transform="scale(0.012 0.020)" data-v-d4747c0b></use></pattern><pattern id="patternsell" patternContentUnits="objectBoundingBox" width="1" height="1" data-v-d4747c0b><use xlink:href="#sell" transform="scale(0.012 0.020)" data-v-d4747c0b></use></pattern><g id="buy" data-v-d4747c0b><rect width="76" height="45" rx="8" fill="#02CB6B" data-v-d4747c0b></rect><path d="M22.6 14H13V30.8H23.32C24.888 30.8 26.04 30.432 26.776 29.696C27.512 28.96 27.88 27.808 27.88 26.24C27.88 25.584 27.8 25.008 27.64 24.512C27.
1176 23.136 26.296 22.272 25 21.92C25.608 21.68 26.12 21.264 26.536 20.672C26.952 20.064 27.16 19.28 27.16 18.32C27.16 16.864 26.792 15.784 26.056 15.08C25.32 14.36 24.168 14 22.6 14ZM22.12 24.08C23.08 24.08 23.56 24.56 23.56 25.52V26C23.56 26.96 23.08 27.44 22.12 27.44H17.32V24.08H22.12ZM21.4 17.36C22.36 17.36 22.84 17.84 22.84 18.8V19.28C22.84 20.24 22.36 20.72 21.4 20.72H17.32V17.36H21.4ZM40.8391 14H45.1591V26.24C45.1591 27.92 44.7751 29.144 44.0071 29.912C43.2551 30.664 42.0391 31.04 40.3591 31.04H34.8391C33.1591 31.04 31.9351 30.664 31.1671 29.912C30.4151 29.144 30.0391 27.92 30.0391 26.24V14H34.3591V26.24C34.3591 27.2 34.8391 27.68 35.7991 27.68H39.3991C40.3591 27.68 40.8391 27.2 40.8391 26.24V14ZM46.1191 14H50.6791L54.6391 22.16L58.5991 14H63.1591L56.7991 26.36V30.8H52.4791V26.36L46.1191 14Z" fill="white" data-v-d4747c0b></path></g><g id="sell" data-v-d4747c0b><rect width="76" height="45" rx="8" fill="#FF5B5A" data-v-d4747c0b></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M17.12 27.68C15.568 27.68 12.6 27.56 8.216 27.32V30.56C9.96 30.704 11.648 30.816 13.28 30.896L15.488 30.992C16.4 31.024 17.264 31.04 18.08 31.04C19.648 31.04 20.8 30.672 21.536 29.936C22.272 29.2 22.64 28.048 22.64 26.48V25.28C22.64 23.712 22.272 22.56 21.536 21.824C20.8 21.088 19.648 20.72 18.08 20.72H13.76C12.8 20.72 12.32 20.24 12.32 19.28V18.8C12.32 17.84 12.8 17.36 13.76 17.36H21.224V14H12.8C11.12 14 9.896 14.384 9.128 15.152C8.376 15.904 8 17.12 8 18.8V19.52C8 21.2 8.376 22.424 9.128 23.192C9.896 23.944 11.12 24.32 12.8 24.32H18.32V26.48C18.32 26.848 18.208 27.144 17.984 27.368C17.776 27.576 17.488 27.68 17.12 27.68ZM38.1181 30.8H24.7981V14H38.1181V17.36H29.1181V20.6H36.1981V23.96H29.1181V27.44H38.1181V30.8ZM53.1125 27.44H44.3525V14H40.0325V30.8H53.1125V27.44ZM67.8781 27.44H59.1181V14H54.7981V30.8H67.8781V27.44Z" fill="white" data-v-d4747c0b></path></g><g id="coin" data-v-d4747c0b><path d="M64 0C99.3483 0 128 28.6561 128 64C128 99.3439 99.3478 128 64 128C28.6522 128 0 99.3443 0 64C0 28.6557 28.6522 0 64 0Z" fill="#EFC75E" data-v-d4747c0b></path><path d="M63.9999 12C35.2798 12 12 35.2802 12 63.9999C12 92.7197 35.2802 116 63.9999 116C92.7197 116 116 92.7197 116 63.9999C116 35.2802 92.7201 12 63.9999 12ZM63.9999 108C39.6998 108 19.9999 88.3001 19.9999 63.9999C19.9999 39.6998 39.7002 19.9999 63.9999 19.9999C88.2997 19.9999 108 39.6998 108 63.9999C108 88.3001 88.3041 108 63.9999 108ZM69.3202 60.66C66.9283 59.6558 58.1361 58.2682 58.1361 54.4242C58.1361 51.5884 61.4243 50.768 63.3963 50.768C65.1924 50.768 67.3442 51.3361 68.4805 52.468C69.2004 53.1598 69.4966 53.6639 69.7326 54.3602C70.0327 55.1801 70.2125 56.0602 71.3488 56.0602H77.2087C78.5845 56.0602 78.9446 55.8083 78.9446 54.2961C78.9446 47.808 73.8604 44.1522 68.0607 42.8923V37.8519C68.0607 36.72 67.7005 36.0238 66.3247 36.0238H61.6568C60.281 36.0238 59.9208 36.7156 59.9208 37.8519V42.7001C53.7008 43.896 48.5007 47.8041 48.5007 54.8603C48.5007 62.8602 54.0649 65.3801 60.1007 67.3925C65.1849 69.0965 70.5087 69.1566 70.5087 72.6847C70.5087 76.2128 67.8808 76.9687 64.6488 76.9687C62.4329 76.9687 59.9849 76.3966 58.785 74.8887C58.0089 73.9446 57.7088 73.1247 57.6531 72.3047C57.5329 70.7289 56.877 70.5407 55.4973 70.5407H49.6971C48.3213 70.5407 47.9611 70.8605 47.9611 72.3047C47.9611 79.4847 53.7052 83.8367 59.9213 85.2208V90.137C59.9213 91.2689 60.2814 91.9651 61.6572 91.9651H66.3251C67.7009 91.9651 68.0611 91.2693 68.0611 90.137V85.3529C75.1173 84.2767 79.9611 79.9967 79.9611 72.4368C79.9681 63.8723 73.6283 62.0442 69.3202 60.66Z" fill="#CC9933" data-v-d4747c0b></path></g></defs></svg>',1))]))}},[["__scopeId","data-v-d4747c0b"]]),_a={class:"left"},Da={key:0,class:"mobile-title-container"},Aa={class:"mobile-title-wrapper"},Ea={class:"title"},Ba={key:1,class:"subtitle"},xa={key:1,class:"title-wrapper"},Na={class:"title"},Fa={key:1,class:"subtitle"},Ra={class:"steps-and-states-wrapper"},Ma={class:"total-state-area"},$a={class:"state"},Oa={class:"state-title"},Ha={class:"state-number"},Wa={class:"state"},Va={class:"state-title"},Ua={class:"state-number"},ja={key:0,class:"avatar-wrapper"},za={class:"infos-wrapper flex-box flex-column flex-1"},Ya={key:0,class:"account-nickname"},Ga={class:"infos"},Za={class:"info"},qa={class:"info-title"},Ka={class:"info-number"},Xa={class:"no-wrap"},Qa={class:"info"},Ja={class:"info-title"},ei={class:"info-number no-wrap"},ti={class:"info"},ai={class:"info-title"},ii={class:"info-number"},li={class:"arrow-wrapper"},si={key:0,class:"right"},ri=St({__name:"CopyWiseHeader",setup(e){const{enableAccountAvatar:u,enableAutoTraderUsageSteps:d,enableAutoTraderWalletMenuStartHereHint:g,enableAutoTraderWalletCashIcon:S}=_e,L=y(),k=Lt(),w=De(),P=kt(),T=Ae(),I=b(),{t:_}=n(),{usdtToCurrentFiat:D}=wt(),{proxy:A}=m(),E=c((()=>T.baseCurrency)),B=c((()=>L.state.loginState)),x=c((()=>L.state.isApp)),N=c((()=>L.state.accountInfo)),F=c((()=>N.value.nickname||"")),R=c((()=>w.summary)),M=c((()=>w.copyWiseActivePnl)),$=c((()=>w.hasNotExecutedCopyWiseStrategy)),O=c((()=>w.copyWiseActiveRoi)),H=c((()=>{const e=Ee(M.value);return $.value?"--":D(M.value,!0,{formatKey:2,signed:!0,roundMode:e})})),W=c((()=>$.value||isNaN(O.value)?"--":Be(O.value,{postfix:""}))),V=c((()=>D(R.value.totalEarnings||0,!0,{formatKey:0}))),U=c((()=>{const e=R.value.runningStrategies||0;return xe(e,{formatKey:0})})),j=c((()=>({}))),z=c((()=>({"no-header":x.value}))),Y=c((()=>"md"===A.$mq)),G=c((()=>P.isEnableAutoTraderAppTradeTitle?_("t.trade"):_("autoTrader.page.title"))),Z=()=>{I.push({name:Me.COPY_WISE_MY_PORTFOLIO,params:{lang:L.state.lang,shareId:k.currentUserShareId}})};return(e,n)=>(a(),t("div",{class:h(["copy-wise-header",z.value]),style:C(j.value)},[i("div",_a,[e.isMobile?(a(),t("div",Da,[i("div",Aa,[i("div",Ea,s(G.value),1),r(l(At),{class:"mobile-wallet-menu","show-wallet":B.value,showCoupon:"",showWalletCashIcon:l(S)},null,8,["show-wallet","showWalletCashIcon"])]),l(d)?(a(),f(l(Pa),{key:0})):(a(),t("div",Ba,s(l(_)("trading.autotrader.header.subTitle")),1))])):(a(),t("div",xa,[i("div",Na,s(l(_)("autoTrader.page.title")),1),l(d)?(a(),f(l(Pa),{key:0})):(a(),t("div",Fa,s(l(_)("trading.autotrader.header.subTitle")),1))])),Y.value?(a(),f(l(At),{key:2,class:"md-wallet-menu","show-wallet":B.value,showCoupon:"",showWalletCashIcon:l(S)},null,8,["show-wallet","showWalletCashIcon"])):p("",!0),i("div",Ra,[i("div",Ma,[i("div",$a,[i("div",Oa,s(l(_)("trading.copywise.stateTitle1")),1),i("div",Ha,[v(s(V.value)+" ",1),i("span",null,s(E.value),1)])]),i("div",Wa,[i("div",Va,s(l(_)("trading.copywise.stateTitle2")),1),i("div",Ua,s(U.value),1)])])]),!e.isMobile&&B.value?(a(),t("div",{key:3,class:"my-info-card",onClick:Z},[l(u)?(a(),t("div",ja,[r(l(Ne),{class:"avatar"})])):p("",!0),i("div",za,[l(u)?p("",!0):(a(),t("div",Ya,s(F.value),1)),i("div",Ga,[i("div",Za,[i("div",qa,[r(l(Fe),{tooltip:l(_)("trading.activePnl.tooltip")},{content:o((()=>[i("div",null,s(l(_)("trading.activePnl")),1)])),_:1},8,["tooltip"])]),i("div",Ka,[i("p",{class:h(M.value<0?"red":"green")},s(H.value),3),i("span",Xa,s(E.value),1)])]),i("div",Qa,[i("div",Ja,[r(l(Fe),{tooltip:l(_)("trading.activeReturn.tooltip")},{content:o((()=>[i("div",null,s(l(_)("trading.activeReturn")),1)])),_:1},8,["tooltip"])]),i("div",ei,[i("p",{class:h(O.value<0?"red":"green")},s(W.value),3),n[0]||(n[0]=i("span",null,"%",-1))])]),i("div",ti,[i("div",ai,[r(l(Fe),{content:l(_)("trading.activeStrategies"),tooltip:l(_)("trading.activeStrategies.tooltip")},null,8,["content","tooltip"])]),i("div",ii,s(R.value.userRunningStrategyCount),1)])])]),i("div",li,[r(l(Re),{width:"24px",height:"24px"})])])):p("",!0)]),e.isDesktop?(a(),t("div",si,[r(l(At),{class:"wallet-menu","show-wallet":B.value,showCoupon:"",showStartHereHint:l(g),showWalletCashIcon:l(S)},null,8,["show-wallet","showStartHereHint","showWalletCashIcon"]),r(l(Ia),{class:"animation"})])):p("",!0)],6))}},[["__scopeId","data-v-ccfb1dd1"]]),oi={class:"top-trader__number"},ni={key:0,class:"top-trader__avatar-wrapper"},ci={class:"top-trader__nickname"},ui=St({__name:"TopTrader",props:{number:{type:Number,required:!0},trader:{type:Object,required:!0}},setup(e){const{enableAccountAvatar:o}=_e,n=e,c=y(),u=b();function d(){const e={name:Me.COPY_WISE_MY_PORTFOLIO,params:{lang:c.state.lang,shareId:n.trader.shareId}},t=0===n.trader.runningStrategyCount?{tab:Oe.HISTORY,scrollToList:!0}:void 0;u.push({...e,...t&&{query:t}})}return(n,c)=>(a(),t("div",{class:"top-trader",onClick:d},[i("div",oi,"# "+s(e.number),1),l(o)?(a(),t("div",ni,[r(l(Ne),{class:"top-trader__avatar",avatarId:e.trader.avatarType||l($e)},null,8,["avatarId"])])):p("",!0),i("div",ci,s(e.trader.nickname),1),i("div",{class:h(["top-trader__roi",{positive:e.trader.roi>0,negative:e.trader.roi<0}])},s(l(Be)(e.trader.roi)),3)]))}},[["__scopeId","data-v-a7e46e54"]]),di={class:"trader-card"},vi={class:"trader-card-background"},pi={class:"trader-card-header"},gi={key:0,class:"trader-card-avatar-wrapper"},hi={class:"trader-card-title"},yi={class:"trader-card-nickname"},bi={class:"trader-card-body"},mi={class:"trader-card-roi-wrapper"},fi={class:"trader-card-info-wrapper"},Ci={class:"trader-card-info"},Si={class:"info-label"},Li={class:"info-value roi"},ki={class:"trader-card-info"},wi={class:"info-label"},Pi={class:"info-unit"},Ti={class:"info-value pnl"},Ii={key:0,class:"trader-card-avatar-wrapper"},_i={class:"flex-1 overflow-hidden"},Di={class:"trader-card-nickname"},Ai={class:"trader-card-roi-value positive"},Ei=St({__name:"TopTraderCard",props:{trader:{type:Object,required:!0},period:{type:String,default:"7D"}},setup(e){const{enableAccountAvatar:o}=_e,n=b(),d=y(),g=He(),m=e,C=c((()=>{const{runningStrategyCount:e,periodHistoricalCount:t}=m.trader;return S(e).plus(t).toNumber()})),k=c((()=>{switch(m.trader.rank){case 1:return Ut;case 2:return Vt;case 3:return Wt;default:return null}})),w=c((()=>{switch(m.trader.rank){case 1:return"mobile-rank-bg gold";case 2:return"mobile-rank-bg silver";case 3:return"mobile-rank-bg bronze";default:return""}})),P=c((()=>m.trader.rank<=3&&g.isDesktop&&o)),T=c((()=>{const{winRate:e}=m.trader,t=S(e).multipliedBy(100).dp(2).toNumber();return e?`${t}%`:"-"}));return(c,g)=>(a(),t("div",di,[i("div",vi,[i("div",{class:h(["trader-card-inner",w.value]),onClick:g[0]||(g[0]=()=>function({isOpenReplicateDialog:e=!1}={}){const t={name:Me.COPY_WISE_MY_PORTFOLIO,params:{lang:d.state.lang,shareId:m.trader.shareId}},a=0===m.trader.runningStrategyCount?{tab:Oe.HISTORY,scrollToList:!0}:e?{copy:!0}:void 0;n.push({...t,...a&&{query:a}})}())},[c.isDesktop?(a(),t(u,{key:0},[i("div",pi,[l(o)?(a(),t("div",gi,[r(l(Ne),{class:"trader-card-avatar",avatarId:e.trader.avatarType||l($e)},null,8,["avatarId"])])):p("",!0),i("div",hi,[i("span",yi,s(e.trader.nickname),1)])]),i("div",bi,[i("div",mi,[i("div",{class:h(["trader-card-roi-value",{positive:e.trader.roi>0,negative:e.trader.roi<0}])},s(l(Be)(e.trader.roi)),3),r(l(Et),{class:"chart",points:e.trader.roiPoint},null,8,["points"])]),i("div",fi,[i("div",Ci,[i("span",Si,s(c.$t("wallets.winRate")),1),i("span",Li,s(T.value),1)]),i("div",ki,[i("span",wi,[v(s(c.$t("trading.totalStrategies"))+" ",1),i("span",Pi,"("+s(e.period)+")",1)]),i("span",Ti,s(C.value),1)])]),r(l(Bt),{class:"replicate-btn",traderShareId:e.trader.shareId,trader:e.trader},null,8,["traderShareId","trader"])])],64)):(a(),t(u,{key:1},[l(o)?(a(),t("div",Ii,[r(l(Ne),{class:"trader-card-avatar",avatarId:e.trader.avatarType||l($e)},null,8,["avatarId"]),e.trader.rank<=3?(a(),f(L(k.value),{key:0,class:"trader-card-crown-icon mobile"})):p("",!0)])):p("",!0),i("div",_i,[i("div",Di,s(e.trader.nickname),1),i("div",Ai,s(l(Be)(e.trader.roi)),1)]),r(l(Bt),{class:"replicate-btn",traderShareId:e.trader.shareId,trader:e.trader},null,8,["traderShareId","trader"])],64))],2)]),P.value?(a(),f(L(k.value),{key:0,class:"trader-card-crown-icon"})):p("",!0)]))}},[["__scopeId","data-v-95eca856"]]),Bi={class:"top-ranking-traders"},xi={class:"top-ranking-traders-inner"},Ni={class:"header-content"},Fi={class:"body-content"},Ri={class:"body-content-left"},Mi={key:0,class:"body-content-right"},$i={class:"right-traders-content"}
1,Oi=St({__name:"TopRankingTraders",setup(e){const o=b(),n=y(),v=k([]),g=k(!1),h=k(We.TOP_TRADERS),m=c((()=>h.value===We.TOP_TRADERS)),C=c((()=>m.value?"30D":"7D")),S=c((()=>v.value.slice(0,3))),L=c((()=>v.value.slice(3)));xt.on(Nt,((e,t)=>{v.value.find((t=>t.shareId===e)).isFollowing=t}));const T=Ve((async()=>{if(!g.value)try{g.value=!0;const{data:e}=await Ue.getTraders({period:C.value,page:1,pageSize:10,sorting:"roi:DESC",topTraders:m.value});v.value=e.traders}catch(e){}finally{g.value=!1}}),300);function I(){o.push({name:Me.COPY_WISE_LEADERBOARD,params:{lang:n.state.lang},query:{tab:h.value}})}return w(h,(()=>{T()}),{immediate:!0}),P((()=>{xt.off(Nt)})),(e,o)=>(a(),t("div",Bi,[i("div",xi,[i("div",Ni,[r(l(jt),{activeTab:h.value,"onUpdate:activeTab":o[0]||(o[0]=e=>h.value=e)},null,8,["activeTab"]),e.isDesktop?(a(),t("div",{key:0,class:"more-traders-button",onClick:I},s(e.$t("copywise.leaderboard.moreTraders")),1)):p("",!0)]),i("div",Fi,[i("div",Ri,[(a(!0),t(u,null,d(S.value,(e=>(a(),f(l(Ei),{key:e.shareId,trader:e,period:C.value},null,8,["trader","period"])))),128)),e.isDesktop?p("",!0):(a(),t("div",{key:0,class:"more-traders-button-mobile",onClick:I},s(e.$t("copywise.leaderboard.moreTraders")),1))]),e.isFullSize?(a(),t("div",Mi,[i("div",$i,[(a(!0),t(u,null,d(L.value,((e,t)=>(a(),f(l(ui),{key:e.shareId,trader:e,number:t+4},null,8,["trader","number"])))),128))])])):p("",!0)])])]))}},[["__scopeId","data-v-ab79f35b"]]),Hi={class:"section-header"};const Wi=St({},[["render",function(e,i){return a(),t("div",Hi,[T(e.$slots,"icon",{},void 0,!0),T(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-171ac0ef"]]),Vi={key:0,id:"tutorial-highlighted-strategies",class:"highlight-strategies"},Ui={key:0,id:"tutorial-highlighted-strategies-tabs",class:"header-wrap"},ji=["src"],zi={class:"main-title"},Yi={key:0,class:"sort-wrap"},Gi="watch",Zi=St({__name:"HighlightedStrategies",props:{isSliderListOnly:{type:Boolean,default:!1},isRedirectToAutoTraderPage:{type:Boolean,default:!1}},setup(e){const{enableAutoTraderSimplifiedVersion:v}=_e,g=y(),h=Lt(),b=kt(),m=Ae(),C=Ft(),S=De(),{t:L}=n(),{trackSortEvent:T}=j(),{$openDialog:_}=je(),D=e,A=k([]),E=k(!1),B=k(""),x=k(0),N=k(!1),F=k(1),R=k(null),M=k([]),$=c((()=>A.value[0]||"")),O=c((()=>g.state.loginState)),H=c((()=>A.value.includes(Gi))),W=c((()=>{const e=B.value||"roi:DESC";return S.userWatchlistData({sortBy:e}).list})),V=c((()=>H.value?W.value:M.value)),U=c((()=>[{key:"roi",text:L("trading.return")},{key:"popular",text:L("t.popularity")},{key:"consistent",text:L("t.duration")}])),q=c((()=>h.initData.strategyCategories||[])),K=c((()=>{let e=[];return O.value&&e.push({id:Gi,icon:z}),void 0!==q.value&&(e=e.concat(q.value.map((e=>{const t=Ye[e];return{id:e,text:ze(t)?L(t):e}})))),e}));function X(){J()}function Q(){var e;x.value=0,F.value=1,null==(e=R.value)||e.scrollToLeft()}async function J(e){if(!e&&(m.isPausingHighlightStrategyPolling||0===A.value.length))return;if(!e&&(N.value||x.value+1>F.value))return;if(H.value)return;x.value+=1;const t={page:x.value,pageSize:30,categories:A.value.join(",")};B.value&&(t.sorting=B.value);try{N.value=!0;const{data:e}=await Ue.getHighlightedStrategies(t,g.getters.isEnableCopyWiseSignalBot);N.value=!1,F.value=e.totalPages,x.value>1?M.value=[...M.value,...e.strategies]:M.value=e.strategies}catch(a){M.value=[]}}w(B,(e=>{T(e,Ge.INDEX_HIGHLIGHTED)})),w(q,(e=>{void 0===e||E.value||(E.value=!0),e.length>0&&(A.value=[e[0]])}),{immediate:!0});const ee=c((()=>C.strategyCopiedId));function te(e){var t;try{if(!((null==(t=null==e?void 0:e.data)?void 0:t[Yt.AUTOTRADER_UPDATED])||[]).includes(Gt.FAVORITE_STRATEGIES))return;J()}catch(a){}}w([()=>E.value,()=>ee.value,()=>A.value,()=>B.value],(([e])=>{e&&J()})),w(H,(e=>{e&&!W.value.length&&_(Z)}));const ae=c((()=>b.isEnableAutoTraderRouter));function ie(e=!0){if(!ae.value&&e)return window.parent&&window.parent.postMessage("appReady","*"),void window.addEventListener("message",te);window.removeEventListener("message",te)}const le=k(null);return I((async()=>{E.value=!1,await g.dispatch("updateAccountInfo"),E.value&&(le.value=setInterval(J,12e4)),ie()})),w(E,(e=>{e&&!le.value&&(le.value=setInterval(J,12e4))})),P((()=>{le.value&&clearInterval(le.value),ie(!1)})),(e,n)=>q.value.length>0?(a(),t("div",Vi,[D.isSliderListOnly?p("",!0):(a(),t("div",Ui,[r(l(Wi),{class:"title-wrap"},{icon:o((()=>[i("img",{src:l("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASNSURBVHgB7Vq7ctNAFD1rx2MXhGEGKigwFTSAmYGGyqECCh5fEPgC4AswXwB8QcIXAA3QJdQwEwMNVKiiCjNh0sSJpeVeWSGOvbvSrnalgpwZjx+7Wuvo7F6de1fAEY7gHfJe7wRqQgMVQ97s9bGDDdSEBVSEVNURnkLiMWpEJYTl7V6PVH1NH7uoGcEJp2Ql1uhjbet2GuHXcELKynmydQWuoIQpQD2Abhrv1jO9wyoscFfbJtFHDQg9pbvaFmm4GAERlrDElqG1T1O+i4oRekp/yenxFBUjtMJvcno8SJ1XhRAIDCL0E2bDEaGDK+LNcAsVoAovHeW0d8mFVWY3K08elBB4hIoQnrBAL7cPObGq1nJ4pyULeugiF8YDghHOvHLx247EZVSAcAqPsIIS6aC81XsdwpgESQ/pRDnRv6dtb0uIkTAd382O51myBI/wrjDlvxxxB6Y+yfk4Ja08fqLqWva17zuYeSWcKTPI7XcqQXJpPPszk1uh4MX1ru7U78vwCG+E/ylTJCovSsQXx7Mq8/HzUd1z9PansLCsWRFZhcrB4YUwRdTnpExhJeSxibIKlRWd4dVjlyacRWQrLyyPJ5MPRVQWeAuPKEWYlOVbx8DmGMwomqtyfoppBWfCWZBagSWSxRlyZpWfiQ/DCB5RRuG1wj55Gifn1VSqLDAksgN4hhNhY/k1B/G1vfkfWWUyI4f/RL12OWaUMSOuCjvVopisXEyUbWxGDkEoivcTogNq09rWPFgTdlWXycZX9/QdFuem+nK6TXPwv10cxIxl150Ll+TByurx2kyIaGxrMjg+SGwQ0fX0Ozuu/ZjB7yNyZcALWMKKcHaV+4X7k2rjWyPIk0l+59/a7Kk/GWx28LSQb03Ybkpb+NrkTILx3YJkCc0vLVjCqZBvR7igfYwvjDG+s6MNUHMn8WMBYtuhYuyQWNgGrW5eB57GyfU9FAYRbX6yVrfw+czClvDZvA7xjd38hGAKTYO6PFOMcDA+tmvYmLkknNifjmGFkZ5svEQX77g0nU9gwhJ/jM3nLMlqjtknm7YfMyYW1qmj7X04MjUWjcjT4BkxpmXQ+NqC2OV61/iwQWkbFa6XMNpwApPklxKG6iYpPIQl7KZ0x29uWgi7BsKdwISzLc11bYcR/ILUbWxqCa+7bLHaZ0uGkouTeTCgETVNza/gMiZs0caqLliIn343MhrfteNFVBxYhcuYsEQ6jSReKgf7RcNt+6n8st1Mx1PjGRzhPAepgLeh8tbJaU4adlAKtDRabzu6JbJO6jrvN7nLIXFfNbVZlRLeOA1UrfdashG9HqIEnAmn1USJJ6q25ueWG+l9ZVW5MV/cBu6XrWKWDqtZyUdZruXMiV1TkpcEkKrNr7Rmvy2ot1GZrMCSeDe0vu/OD+UBae0p0e8tcfYkuTw7X7eC2GyoFT1ARK8lX/VpbzfOrPowgM/tTUF3gzYGPp/h8v5gWvZAuPEJgAJYRYBdB0awJ/FSxbl+zMW26YqjGhHvNND7RzY2IZ/KC/7o4T7SOvKOgnQHW1U9dniE/wF/ASeWqmm2WtojAAAAAElFTkSuQmCC"),alt:"fire"},null,8,ji)])),default:o((()=>[i("span",zi,s(e.$t("trading.copywise.highlightedStrategies")),1)])),_:1}),l(v)?p("",!0):(a(),t("div",Yi,[r(l(Y),{tabs:K.value,activeIds:A.value,isMultiple:!1,onClick:n[0]||(n[0]=e=>function(e){var t;A.value=[e],x.value=0,F.value=1,null==(t=R.value)||t.scrollToLeft()}(e))},null,8,["tabs","activeIds"]),r(Zt,{sortBy:B.value,"onUpdate:sortBy":n[1]||(n[1]=e=>B.value=e),sortByOptions:U.value,onSortBy:Q},null,8,["sortBy","sortByOptions"])]))])),V.value.length?(a(),f(l(Rt),{key:2,ref_key:"sliderContainer",ref:R,class:"strategy-list-wrapper",onScrollReachEnd:X},{default:o((()=>[(a(!0),t(u,null,d(V.value,((e,i)=>(a(),t("div",{key:e.strategyId||e.coin,class:"card-wrap"},[r(l(G),{id:0===i?"highlighted-first-strategy":"",data:e,type:l(v)?l(Ge).INDEX_BY_TOKEN:l(Ge).INDEX_HIGHLIGHTED,subType:$.value,isRedirectToAutoTraderPage:D.isRedirectToAutoTraderPage,isMyWatch:H.value,isSimplifiedInfo:l(v)},null,8,["id","data","type","subType","isRedirectToAutoTraderPage","isMyWatch","isSimplifiedInfo"])])))),128))])),_:1},512)):(a(),f(l(Kt),{key:1,description:e.$t("trading.watchlistIsEmpty"),isShowButton:!1},null,8,["description"]))])):p("",!0)}},[["__scopeId","data-v-685968d4"]]),qi={class:"oc-panel"},Ki={class:"oc-wrapper"},Xi={class:"oc-intro"},Qi={class:"oc-heading"},Ji={class:"oc-sub"},el={class:"oc-robot-clip","aria-hidden":"true"},tl=["src"],al=St(_({__name:"OneClickPanel",props:{isLoading:{type:Boolean,default:!1}},emits:["start"],setup(n,{emit:u}){const d=n,p=u,g=Lt(),{initData:h}=D(g),y=c((()=>{var e;return(null==(e=h.value)?void 0:e.coinsWithName)??[]})),b=k("BTC");w(b,((e,t)=>
1{t&&e&&e!==t&&Ze(qe.AUTO_TRADER_OCI_TOKEN_SELECTED,{from_token:t,to_token:e})}));const m=()=>{Ze(qe.AUTO_TRADER_OCI_START_CLICKED,{selected_token:b.value}),p("start",{coin:b.value})};return(n,c)=>{const u=e("BaseButton");return a(),t("div",qi,[i("div",Ki,[i("div",Xi,[i("h3",Qi,s(n.$t("autoTrader.ai.ocLabel")),1),i("p",Ji,s(n.$t("autoTrader.ai.ocInfo")),1)]),r(zt,{value:b.value,"onUpdate:value":c[0]||(c[0]=e=>b.value=e),coinList:y.value,iconSize:"28",showClose:!1,searchInDropdown:!0,class:"token-dropdown"},null,8,["value","coinList"]),r(u,{class:"primary cta",isLoading:d.isLoading,onClick:m},{default:o((()=>[v(s(n.$t("trading.copywise.startNow")),1)])),_:1},8,["isLoading"])]),i("div",el,[i("img",{src:l("/static/img/B85skvlI.png"),alt:"",class:"oc-robot"},null,8,tl)])])}}}),[["__scopeId","data-v-0257c237"]]),il=_({__name:"IconBot2",setup:e=>(e,t)=>(a(),f(Ke,{"aria-label":"bot",width:"20",height:"20",viewBox:"0 0 20 20"},{default:o((()=>t[0]||(t[0]=[i("g",{opacity:"0.6","clip-path":"url(#clip0_35440_42546)"},[i("path",{d:"M7.50033 12.5C7.04008 12.5 6.66699 12.8731 6.66699 13.3333C6.66699 13.7936 7.04008 14.1667 7.50033 14.1667C7.96057 14.1667 8.33366 13.7936 8.33366 13.3333C8.33366 12.8731 7.96057 12.5 7.50033 12.5Z"}),i("path",{d:"M11.667 13.3333C11.667 12.8731 12.0401 12.5 12.5003 12.5C12.9606 12.5 13.3337 12.8731 13.3337 13.3333C13.3337 13.7936 12.9606 14.1667 12.5003 14.1667C12.0401 14.1667 11.667 13.7936 11.667 13.3333Z"}),i("path",{d:"M15.2559 19.1533C15.1717 19.1619 15.0864 19.167 15 19.167H5C4.91361 19.167 4.82828 19.1619 4.74414 19.1533C4.82827 19.1619 4.91362 19.166 5 19.166H15C15.0864 19.166 15.1717 19.1619 15.2559 19.1533ZM10 0.983398C10.8375 0.983398 11.5164 1.66252 11.5166 2.5C11.5165 3.06099 11.2114 3.55104 10.7578 3.81348L10.6836 3.85645V5.9834H15C16.2978 5.9834 17.3494 7.0353 17.3496 8.33301V16.666C17.3496 17.9639 16.2979 19.0166 15 19.0166H5C3.70213 19.0166 2.65039 17.9639 2.65039 16.666V8.33301C2.65057 7.0353 3.70225 5.9834 5 5.9834H9.31641V3.85645L9.24219 3.81348C8.78863 3.55104 8.48352 3.06099 8.4834 2.5C8.48358 1.66252 9.16246 0.983398 10 0.983398ZM5 7.34961C4.45704 7.34961 4.01678 7.79009 4.0166 8.33301V16.666C4.0166 17.2091 4.45693 17.6494 5 17.6494H15C15.5431 17.6494 15.9834 17.2091 15.9834 16.666V8.33301C15.9832 7.79009 15.543 7.34961 15 7.34961H13.7559L13.7139 7.43262L12.5078 9.84473C12.2508 10.3584 11.7257 10.6826 11.1514 10.6826H8.84863C8.27429 10.6826 7.74914 10.3584 7.49219 9.84473L6.28613 7.43262L6.24414 7.34961H5ZM4.30859 17.1328H4.30957H4.30859ZM15.6904 17.1328H15.6914H15.6904ZM8.17383 10.6904C8.24338 10.7212 8.31509 10.7474 8.38867 10.7686C8.31509 10.7474 8.24337 10.7212 8.17383 10.6904ZM11.8262 10.6904C11.7566 10.7212 11.6849 10.7474 11.6113 10.7686C11.6849 10.7474 11.7566 10.7212 11.8262 10.6904ZM8.07129 10.6416C8.10476 10.6592 8.13918 10.6751 8.17383 10.6904C8.13917 10.6751 8.10477 10.6592 8.07129 10.6416ZM7.47656 10.1143C7.52054 10.178 7.56933 10.2376 7.62109 10.2939C7.5693 10.2376 7.52057 10.178 7.47656 10.1143ZM12.5234 10.1143C12.4793 10.1782 12.4309 10.2384 12.3789 10.2949C12.4309 10.2384 12.4793 10.1782 12.5234 10.1143ZM7.77246 7.34961L8.71387 9.2334L8.75586 9.31641H11.2441L11.2861 9.2334L12.2275 7.34961H7.77246ZM8.01465 7.5L8.84863 9.16602H11.1514V9.16699H8.84863L8.01465 7.5ZM4.91504 7.50391V7.50488V7.50391ZM8.68457 3.52344L8.68359 3.52246L8.68457 3.52344ZM11.3164 3.52246L11.3154 3.52344L11.3164 3.52246ZM8.56348 3.3457V3.34473V3.3457ZM8.82129 1.32129C8.75555 1.38701 8.69666 1.45925 8.64258 1.53516C8.69664 1.45923 8.75556 1.38702 8.82129 1.32129ZM11.1787 1.32129C11.2444 1.38702 11.3034 1.45923 11.3574 1.53516C11.3033 1.45925 11.2445 1.38701 11.1787 1.32129Z"}),i("path",{d:"M0.833333 11.6667C0.373096 11.6667 0 12.0398 0 12.5001V14.1667C0 14.627 0.373096 15.0001 0.833333 15.0001C1.29357 15.0001 1.66667 14.627 1.66667 14.1667V12.5001C1.66667 12.0398 1.29357 11.6667 0.833333 11.6667Z"}),i("path",{d:"M18.333 12.5001C18.333 12.0398 18.7061 11.6667 19.1663 11.6667C19.6266 11.6667 19.9997 12.0398 19.9997 12.5001V14.1667C19.9997 14.627 19.6266 15.0001 19.1663 15.0001C18.7061 15.0001 18.333 14.627 18.333 14.1667V12.5001Z"})],-1),i("defs",null,[i("clipPath",{id:"clip0_35440_42546"},[i("rect",{width:"20",height:"20"})])],-1)]))),_:1,__:[0]}))}),ll={class:"pr-panel"},sl={class:"pr-intro"},rl={class:"pr-heading"},ol={class:"pr-sub"},nl={class:"pr-form"},cl={class:"form-row"},ul={class:"form-row-label"},dl={class:"form-row-title"},vl={class:"form-row"},pl={class:"form-row-label"},gl={class:"form-row-title"},hl={class:"seg",role:"tablist","aria-label":"Direction"},yl=["onClick"],bl={class:"form-row"},ml={class:"form-row-label"},fl={class:"form-row-title"},Cl={class:"seg",role:"tablist","aria-label":"Risk"},Sl=["onClick"],Ll={class:"pr-robot-clip","aria-hidden":"true"},kl=["src"],wl=St(_({__name:"PrecisionPanel",props:{isLoading:{type:Boolean,default:!1}},emits:["start"],setup(p,{emit:g}){const y=p,b=g,{t:m}=n(),C=Lt(),{initData:S}=D(C),P=c((()=>{var e;return(null==(e=S.value)?void 0:e.coinsWithName)??[]})),T=k("BTC"),I=k(Qe.CONSERVATIVE),_=k(Xe.BULLISH);w(T,((e,t)=>
1{t&&e&&e!==t&&Ze(qe.AUTO_TRADER_PAA_TOKEN_SELECTED,{from_token:t,to_token:e})}));const A=c((()=>[{text:m("t.bullish"),value:Xe.BULLISH,className:"green"},{text:m("t.bearish"),value:Xe.BEARISH,className:"red"},{text:m("autoTrader.ai.ocLabel"),value:""}])),E=c((()=>[{text:m("trading.copywise.label.conservative"),value:Qe.CONSERVATIVE},{text:m("trading.copywise.label.balanced"),value:Qe.BALANCED},{text:m("trading.copywise.label.aggressive"),value:Qe.GROWTH}]));function B(e){switch(e){case Xe.BULLISH:return Tt;case Xe.BEARISH:return Pt;case"":return il;default:return null}}function x(e){switch(e){case Xe.BULLISH:return"green";case Xe.BEARISH:return"red";default:return null}}const N=()=>{Ze(qe.AUTO_TRADER_PAA_START_CLICKED,{selected_token:T.value,direction:et(_.value),risk:Je(I.value)}),b("start",{coin:T.value,risk:I.value,aggression:_.value})};return(n,c)=>{const p=e("BaseButton");return a(),t("div",ll,[i("div",sl,[i("h3",rl,s(n.$t("autoTrader.ai.precLabel")),1),i("p",ol,s(n.$t("autoTrader.ai.precInfo")),1)]),i("div",nl,[i("div",cl,[i("div",ul,[c[1]||(c[1]=i("span",{class:"step-tag"},"1",-1)),i("span",dl,s(n.$t("autoTrader.ai.choose.token")),1)]),r(zt,{value:T.value,"onUpdate:value":c[0]||(c[0]=e=>T.value=e),coinList:P.value,iconSize:"20",showClose:!1,searchInDropdown:!0,class:"token-dropdown"},null,8,["value","coinList"])]),i("div",vl,[i("div",pl,[c[2]||(c[2]=i("span",{class:"step-tag"},"2",-1)),i("span",gl,s(n.$t("autoTrader.ai.choose.direction")),1)]),i("div",hl,[r(q,{value:_.value,options:A.value},{default:o((()=>[(a(!0),t(u,null,d(A.value,(e=>(a(),t("div",{key:e.value,class:h(["option",{active:_.value===e.value}]),onClick:t=>_.value=e.value},[(a(),f(L(B(e.value)),{class:h(x(e.value))},null,8,["class"])),i("div",null,s(e.text),1)],10,yl)))),128))])),_:1},8,["value","options"])])]),i("div",bl,[i("div",ml,[c[3]||(c[3]=i("span",{class:"step-tag"},"3",-1)),i("span",fl,s(n.$t("autoTrader.ai.choose.risk")),1)]),i("div",Cl,[r(q,{value:I.value,options:E.value},{default:o((()=>[(a(!0),t(u,null,d(E.value,(e=>(a(),t("div",{key:e.value,class:h(["option",{active:I.value===e.value}]),onClick:t=>I.value=e.value},[i("div",null,s(e.text),1)],10,Sl)))),128))])),_:1},8,["value","options"])])]),r(p,{class:"primary cta",isLoading:y.isLoading,onClick:N},{default:o((()=>[v(s(n.$t("trading.copywise.startNow")),1)])),_:1},8,["isLoading"])]),i("div",Ll,[i("img",{src:l("/static/img/BVON4yjO.png"),alt:"",class:"pr-robot"},null,8,kl)])])}}}),[["__scopeId","data-v-f65dd094"]]),Pl={class:"let-ai-trade"},Tl={class:"let-ai-trade-container"},Il={class:"let-ai-trade-title"},_l={key:0,class:"let-ai-trade-cards"},Dl={class:"ai-card ai-card-one-click"},Al={class:"let-ai-trade-or"},El={class:"ai-card ai-card-precision"},Bl={key:1,class:"ai-tabbed-card"},xl={class:"ai-tabbed-tabs",role:"tablist"},Nl=["aria-selected","onClick"],Fl=St(_({__name:"index",setup(e){const l="precision",v="one-click",{t:g}=n(),y=He(),b=Ft(),{handleWatchStrategy:m}=K(),{checkAuthAndRedirect:C}=qt(),S=X(),L=c((()=>(null==y?void 0:y.isDesktop)??!0)),w=c((()=>[{value:l,label:g("autoTrader.ai.precLabel")},{value:v,label:g("autoTrader.ai.ocLabel")}])),P=k(l),T=k(!1),I=k(null),_=k(!1),D=k(null),x=k(!1),N=k(!1),F=async e=>{if(!N.value){N.value=!0;try{const{strategy:t}=await Ue.getAIOption(tt(e,[""]));I.value=t||null,S.resetTpSlDialog(),T.value=!0}catch(t){}finally{N.value=!1}}},R=()=>{C({onLoggedIn:()=>{var e;m({coin:null==(e=I.value)?void 0:e.coin})}})},M=e=>{T.value=!1,D.value=e,_.value=!0},$=()=>{_.value=!1,T.value=!0},O=()=>{T.value=!1,B((()=>{x.value=!0,b.setStrategyCopiedId()}))};return(e,n)=>(a(),t("section",Pl,[i("div",Tl,[r(Wi,{class:"let-ai-trade-header"},{default:o((()=>[i("div",Il,s(e.$t("autoTrader.ai.title")),1)])),_:1}),L.value?(a(),t("div",_l,[i("article",Dl,[r(al,{isLoading:N.value,onStart:F},null,8,["isLoading"])]),i("span",Al,s(e.$t("t.or")),1),i("article",El,[r(wl,{isLoading:N.value,onStart:F},null,8,["isLoading"])])])):(a(),t("div",Bl,[i("div",xl,[(a(!0),t(u,null,d(w.value,(e=>(a(),t("button",{key:e.value,type:"button",role:"tab","aria-selected":P.value===e.value,class:h(["ai-tabbed-tab",{"ai-tabbed-tab-active":P.value===e.value,"border-left":e.value===v}]),onClick:t=>P.value=e.value},s(e.label),11,Nl)))),128))]),A(r(wl,{isLoading:N.value,onStart:F},null,8,["isLoading"]),[[E,P.value===l]]),A(r(al,{isLoading:N.value,onStart:F},null,8,["isLoading"]),[[E,P.value===v]])]))]),T.value&&I.value?(a(),f(Q,{key:0,isShow:T.value,"onUpdate:isShow":n[0]||(n[0]=e=>T.value=e),data:I.value,handleShare:M,onSuccess:O,onToggleFav:R},null,8,["isShow","data"])):p("",!0),_.value&&D.value?(a(),f(J,{key:1,isShow:_.value,"onUpdate:isShow":n[1]||(n[1]=e=>_.value=e),data:D.value,showPnlSwitch:!1,onToggleBack:$},null,8,["isShow","data"])):p("",!0),x.value?(a(),f(Mt,{key:2,isShow:x.value,"onUpdate:isShow":n[2]||(n[2]=e=>x.value=e)},null,8,["isShow"])):p("",!0)]))}}),[["__scopeId","data-v-ac65135b"]]),Rl=St({__name:"TrendChallengeChart",props:{strategy:{type:Object,default:()=>({})},bullishTakeProfitPrice:{type:[String,Number],default:0},bearishTakeProfitPrice:{type:[String,Number],default:0},bullishStopLossPrice:{type:[String,Number],default:0},bearishStopLossPrice:{type:[String,Number],default:0}},setup(e,{expose:t}){const i=e,s=y(),r=k(null),n=c((()=>{var e,t;return(null==(t=null==(e=s.state.futures.marketDetailMap)?void 0:e[i.strategy.symbol])?void 0:t.priceFilter)??2}));function u(){const e=r.value.getChartEngine();te([{className:"bullish-take-profit",id:"bullish-take-profit-price-label",price:i.bullishTakeProfitPrice,text:`Bullish Target ${d(i.bullishTakeProfitPrice)}`},{className:"bearish-take-profit",id:"bearish-take-profit-price-label",price:i.bearishTakeProfitPrice,text:`Bearish Target ${d(i.bearishTakeProfitPrice)}`},{className:"bullish-stop-loss",id:"bullish-stop-loss-price-label",price:i.bullishStopLossPrice,text:`Bullish Stop ${d(i.bullishStopLossPrice)}`},{className:"bearish-stop-loss",id:"bearish-stop-loss-price-label",price:i.bearishStopLossPrice,text:`Bearish Stop ${d(i.bearishStopLossPrice)}`}],e)}function d(e){return null==e?"-":xe(e,{formatKey:n.value})}return t({loadChartWithInitialPriceData:function(e){r.value.loadChartWithInitialPriceData({masterData:e})},updateChartWithNewPriceData:function(e){r.value.updateChartWithNewPriceData(e)}}),(t,i)=>(a(),f(l(ee),{ref_key:"baseChart",ref:r,symbol:e.strategy.symbol||"",appendDraw:u,priceFilter:n.value},{templates:o((()=>i[0]||(i[0]=[]))),_:1},8,["symbol","priceFilter"]))}},[["__scopeId","data-v-61d8455a"]]),Ml={UP:"UP",DOWN:"DOWN",DRAW:"DRAW"},$l={LONG:"LONG",SHORT:"SHORT"},Ol="TAKE",Hl="STOP",Wl={class:"trend-challenge-dialog-price-info"},Vl={key:0,class:"block"},Ul={class:"title"},jl={class:"block"},zl={class:"title"},Yl={class:"number"},Gl={class:"block"},Zl={class:"title"},ql={class:"number"},Kl={key:1,class:"block"},Xl={class:"title"}
1,Ql=St({__name:"DialogPriceInfo",props:{symbol:{type:String,default:""},midPrice:{type:Number,default:0},priceFilter:{type:Number,default:2},handleOpenTokenInfoDialog:{type:Function,default:()=>{}}},setup(e){const o=e,n=y(),u=k(Ml.UP),d=c((()=>xe(o.midPrice,{formatKey:o.priceFilter}))),v=c((()=>n.state.futures.futuresLastDataMap[o.symbol]||{high:0,low:0}));return w((()=>o.midPrice),((e,t)=>{u.value=e>t?Ml.UP:t>e?Ml.DOWN:Ml.DRAW})),x((()=>{!async function(){const{data:e}=await at.getMarketDetail({baseCurrency:o.symbol,quoteCurrency:n.state.futures.fixedCurrency}),t=e||{},{change:a,volume:i,high:l,low:s}=t,r=S(a||0).times(100).toNumber();n.commit("futures/setFuturesLastData",{marketSymbol:o.symbol,data:{gains:r,volume:i,high:l,low:s}})}()})),(o,n)=>(a(),t("div",Wl,[o.isMobile?p("",!0):(a(),t("div",Vl,[i("div",Ul,s(o.$t("t.popularity")),1),r(l(ae),{value:0})])),i("div",jl,[i("div",zl,s(o.$t("futuresMain.contractDetail.24H_high")),1),i("div",Yl,s(l(xe)(v.value.high,e.priceFilter)),1)]),i("div",Gl,[i("div",Zl,s(o.$t("futuresMain.contractDetail.24H_low")),1),i("div",ql,s(l(xe)(v.value.low,e.priceFilter)),1)]),o.isMobile?p("",!0):(a(),t("div",Kl,[i("div",Xl,s(o.$t("t.price")),1),i("div",{class:h(["price",{"text-green":u.value===l(Ml).UP,"text-red":u.value===l(Ml).DOWN}])},[i("span",null,s(d.value),1),u.value!==l(Ml).DRAW?(a(),f(l(it),{key:0,class:"icon-triangle"})):p("",!0)],2)])),i("div",{class:"icon-wrap cursor-pointer",onClick:n[0]||(n[0]=(...t)=>e.handleOpenTokenInfoDialog&&e.handleOpenTokenInfoDialog(...t))},[r(l(ie),{class:"icon"})])]))}},[["__scopeId","data-v-056317e3"]]),Jl={class:"slot-container"},es={class:"list-wrap"},ts=St({__name:"SlotMachine",props:{list:{type:Array,default:()=>[]},selectedIndex:{type:Number,default:null}},emits:["onArrowClick"],setup(e,{emit:r}){const o=e,n=r,v=k(null!==o.selectedIndex?o.selectedIndex:o.list.length-1),g=c((()=>({transform:`translateY(-${44*v.value}px)`}))),h=c((()=>o.list.length>1));function y(){0===v.value?v.value=o.list.length-1:v.value--,n("onArrowClick",v.value)}function b(){v.value===o.list.length-1?v.value=0:v.value++,n("onArrowClick",v.value)}return w((()=>o.selectedIndex),(e=>{v.value=e})),(r,o)=>(a(),t("div",Jl,[h.value?(a(),f(l(it),{key:0,class:"icon left",onClick:y})):p("",!0),i("div",es,[i("div",{class:"list",style:C(g.value)},[(a(!0),t(u,null,d(e.list,(e=>(a(),t("div",{key:e,class:"item"},s(e),1)))),128))],4)]),h.value?(a(),f(l(it),{key:1,class:"icon right",onClick:b})):p("",!0)]))}},[["__scopeId","data-v-44dcc9b5"]]),as={class:"trend-challenge-dialog-pc-invest-deatil"},is={class:"btn-block bullish"},ls={class:"top"},ss={class:"icon-trend-arrow"},rs={class:"percent"},os={class:"info"},ns={class:"row"},cs={class:"number"},us={key:1},ds={class:"row"},vs={key:0,class:"fee-tag"},ps={key:1},gs={class:"little"},hs={class:"btn-block bearish"},ys={class:"top"},bs={class:"icon-trend-arrow"},ms={class:"percent"},fs={class:"info"},Cs={class:"row"},Ss={class:"number"},Ls={key:1},ks={class:"row"},ws={key:0,class:"fee-tag"},Ps={key:1},Ts={class:"little"},Is=St({__name:"InvestDetailDesktop",props:{investment:{type:[Number,String],default:0},minInvestment:{type:[Number,String],default:0},loading:{type:Boolean,default:!1},priceFilter:{type:Number,default:2},bullishTakeProfitPercentage:{type:[Number,String],default:0},bearishTakeProfitPercentage:{type:[Number,String],default:0},bullishTakeProfitPrice:{type:[Number,String],default:0},bearishTakeProfitPrice:{type:[Number,String],default:0},bullishPotentialProfit:{type:[Number,String],default:0},bearishPotentialProfit:{type:[Number,String],default:0},bullishPotentialLoss:{type:[Number,String],default:0},bearishPotentialLoss:{type:[Number,String],default:0},bullishFeeTooltip:{type:Object,default:()=>({})},bearishFeeTooltip:{type:Object,default:()=>({})},reachMaxStrategies:{type:Boolean,default:!1}},emits:["handlePreview","handleInvestmentEvent"],setup(n,{emit:d}){const g=n,m=d,C=y(),{formattedAvbl:L}=wt(),{$openDialog:k}=je(),w=Ae(),P=b(),T=N(),I=c((()=>C.state.loginState)),_=c((()=>C.getters.isEnableAutoTraderTrendProfitShare)),D=c((()=>I.value&&(g.loading||!g.investment&&!E.value||g.reachMaxStrategies||g.investment<g.minInvestment))),A=c((()=>S(g.minInvestment).minus(L.value).toNumber())),E=c((()=>A.value>0)),B=c((()=>w.baseCurrency)),x=c((()=>g.investment?` ${B.value}`:""));function F(e){if(!D.value)return I.value?E.value?(m("handleInvestmentEvent",e,"insufficient_balance"),void k(It)):void m("handlePreview",e):(m("handleInvestmentEvent",e,"not_logged_in"),P.push({name:"login",query:{redirect:T.fullPath},params:{lang:C.state.lang}}))}return(c,d)=>{const g=e("ToolTip");return a(),t("div",as,[i("div",is,[i("div",ls,[i("div",ss,[r(l(Xt))]),i("span",rs,s(l(xe)(100*n.bullishTakeProfitPercentage))+"% ",1),i("span",null,s(l(xe)(n.bullishTakeProfitPrice,n.priceFilter)),1)]),d[2]||(d[2]=i("div",{class:"hr"},null,-1)),i("div",os,[r(g,{class:"tip",delay:"200"},{content:o((()=>[i("div",ns,[i("span",null,s(c.$t("trading.autotrader.potentialPnl.profit")),1),i("span",cs,s(n.bullishPotentialProfit),1)])])),tooltip:o((()=>[_.value?(a(),f(l(le),{key:0,profitLoss:n.bullishFeeTooltip.profitLoss,estFee:n.bullishFeeTooltip.estFee},null,8,["profitLoss","estFee"])):(a(),t("p",us,s(c.$t("trading.autotrader.trend.est.tooltip")),1))])),_:1}),r(g,{class:"tip",delay:"200"},{content:o((()=>[i("div",ds,[i("div",null,[i("span",null,s(c.$t("trading.autotrader.potentialPnl.loss")),1
1),_.value?(a(),t("div",vs," 0 "+s(c.$t("t.fee")),1)):p("",!0)]),i("span",null,s(n.bullishPotentialLoss),1)])])),tooltip:o((()=>[_.value?(a(),f(l(le),{key:0,profitLoss:`${n.bullishPotentialLoss}${x.value}`,estFee:`0${x.value}`},null,8,["profitLoss","estFee"])):(a(),t("p",ps,s(c.$t("trading.autotrader.trend.est.tooltip")),1))])),_:1})]),i("div",{class:h(["btn",{disabled:D.value,warning:E.value&&I.value,blue:!I.value}]),onClick:d[0]||(d[0]=e=>F(l($l).LONG))},[I.value?E.value?(a(),t(u,{key:1},[i("span",null,s(c.$t("t.deposit")),1),i("span",gs," ("+s(c.$t("trading.copywise.minAmount",{amount:A.value,currency:B.value}))+") ",1)],64)):(a(),t(u,{key:2},[v(s(c.$t("t.bullish")),1)],64)):(a(),t(u,{key:0},[v(s(c.$t("login.login")),1)],64))],2)]),i("div",hs,[i("div",ys,[i("div",bs,[r(l(Xt))]),i("span",ms,s(l(xe)(100*n.bearishTakeProfitPercentage))+"% ",1),i("span",null,s(l(xe)(n.bearishTakeProfitPrice,n.priceFilter)),1)]),d[3]||(d[3]=i("div",{class:"hr"},null,-1)),i("div",fs,[r(g,{class:"tip",delay:"200"},{content:o((()=>[i("div",Cs,[i("span",null,s(c.$t("trading.autotrader.potentialPnl.profit")),1),i("span",Ss,s(n.bearishPotentialProfit),1)])])),tooltip:o((()=>[_.value?(a(),f(l(le),{key:0,profitLoss:n.bearishFeeTooltip.profitLoss,estFee:n.bearishFeeTooltip.estFee},null,8,["profitLoss","estFee"])):(a(),t("p",Ls,s(c.$t("trading.autotrader.trend.est.tooltip")),1))])),_:1}),r(g,{class:"tip",delay:"200"},{content:o((()=>[i("div",ks,[i("div",null,[i("span",null,s(c.$t("trading.autotrader.potentialPnl.loss")),1),_.value?(a(),t("div",ws," 0 "+s(c.$t("t.fee")),1)):p("",!0)]),i("span",null,s(n.bearishPotentialLoss),1)])])),tooltip:o((()=>[_.value?(a(),f(l(le),{key:0,profitLoss:`${n.bearishPotentialLoss}${x.value}`,estFee:`0${x.value}`},null,8,["profitLoss","estFee"])):(a(),t("p",Ps,s(c.$t("trading.autotrader.trend.est.tooltip")),1))])),_:1})]),i("div",{class:h(["btn",{disabled:D.value,warning:E.value&&I.value,blue:!I.value}]),onClick:d[1]||(d[1]=e=>F(l($l).SHORT))},[I.value?E.value?(a(),t(u,{key:1},[i("span",null,s(c.$t("t.deposit")),1),i("span",Ts," ("+s(c.$t("trading.copywise.minAmount",{amount:A.value,currency:B.value}))+") ",1)],64)):(a(),t(u,{key:2},[v(s(c.$t("t.bearish")),1)],64)):(a(),t(u,{key:0},[v(s(c.$t("login.login")),1)],64))],2)])])}}},[["__scopeId","data-v-1af4fe6f"]]),_s={class:"trend-challenge-dialog-mobile-invest-deatil"},Ds={class:"block bullish"},As={class:"info"},Es={class:"row"},Bs={class:"title"},xs={class:"number"},Ns={class:"row"},Fs={class:"number"},Rs={class:"row"},Ms={key:0,class:"fee-tag"},$s={class:"number"},Os={class:"little"},Hs={class:"block bearish"},Ws={class:"info"},Vs={class:"row"},Us={class:"title"},js={class:"number"},zs={class:"row"},Ys={class:"number"},Gs={class:"row"},Zs={key:0,class:"fee-tag"},qs={class:"number"},Ks={class:"little"},Xs={class:"tooltip-wrapper"},Qs={class:"title"},Js={class:"content"},er={class:"item"},tr={class:"label"},ar={class:"value"},ir={class:"item"},lr={class:"label"},sr={class:"value"},rr={class:"item"},or=St({__name:"InvestDetailMobile",props:{investment:{type:[Number,String],default:0},minInvestment:{type:[Number,String],default:0},loading:{type:Boolean,default:!1},priceFilter:{type:Number,default:2},bullishTakeProfitPrice:{type:[Number,String],default:0},bearishTakeProfitPrice:{type:[Number,String],default:0},bullishPotentialProfit:{type:[Number,String],default:0},bearishPotentialProfit:{type:[Number,String],default:0},bullishPotentialLoss:{type:[Number,String],default:0},bearishPotentialLoss:{type:[Number,String],default:0},bullishFeeTooltip:{type:Object,default:()=>({})},bearishFeeTooltip:{type:Object,default:()=>({})},reachMaxStrategies:{type:Boolean,default:!1}},emits:["handlePreview","handleInvestmentEvent"],setup(e,{emit:n}){const d=e,g=n,m=y(),{formattedAvbl:f}=wt(),{$openDialog:C}=je(),L=Ae(),w=b(),P=N();se();const T=c((()=>m.state.loginState)),I=c((()=>d.loading||!d.investment&&!D.value||d.reachMaxStrategies)),_=c((()=>S(d.minInvestment).minus(f.value).toNumber())),D=c((()=>_.value>0)),A=c((()=>L.baseCurrency)),E=c((()=>m.getters.isEnableAutoTraderTrendProfitShare));function B(e){if(!I.value)return T.value?D.value?(g("handleInvestmentEvent",e,"insufficient_balance"),void C(It)):void g("handlePreview",e):(g("handleInvestmentEvent",e,"not_logged_in"),w.push({name:"login",query:{redirect:P.fullPath},params:{lang:m.state.lang}}))}const x=k(!1),F=k(null);function R(e){E.value&&(F.value={...e},x.value=!0)}const M=c((()=>d.investment?` ${A.value}
1`:""));return(n,c)=>(a(),t(u,null,[i("div",_s,[i("div",Ds,[c[7]||(c[7]=i("div",{class:"hr"},null,-1)),i("div",As,[i("div",Es,[i("div",Bs,s(n.$t("t.target")),1),i("div",xs,s(l(xe)(e.bullishTakeProfitPrice,e.priceFilter)),1)]),i("div",Ns,[i("div",{class:h(["title",{dash:E.value}]),onClick:c[0]||(c[0]=t=>R({title:n.$t("trading.autotrader.potentialPnl.profit"),profitLoss:e.bullishFeeTooltip.profitLoss,estFee:e.bullishFeeTooltip.estFee}))},s(n.$t("t.profit")),3),i("div",Fs,s(e.bullishPotentialProfit),1)]),i("div",Rs,[i("div",{class:"title",onClick:c[1]||(c[1]=t=>R({title:n.$t("trading.autotrader.potentialPnl.loss"),profitLoss:`${e.bullishPotentialLoss}${M.value}`,estFee:`0${M.value}`}))},[i("span",{class:h({dash:E.value})},s(n.$t("t.loss")),3),E.value?(a(),t("div",Ms," 0 "+s(n.$t("t.fee")),1)):p("",!0)]),i("div",$s,s(e.bullishPotentialLoss),1)])]),c[8]||(c[8]=i("div",{class:"hr"},null,-1)),i("div",{class:h(["btn cursor-pointer",{disabled:I.value,warning:D.value&&T.value,blue:!T.value}]),onClick:c[2]||(c[2]=e=>B(l($l).LONG))},[T.value?D.value?(a(),t(u,{key:1},[i("span",null,s(n.$t("t.deposit")),1),i("span",Os," ("+s(n.$t("trading.copywise.minAmount",{amount:_.value,currency:A.value}))+") ",1)],64)):(a(),t(u,{key:2},[v(s(n.$t("t.bullish")),1)],64)):(a(),t(u,{key:0},[v(s(n.$t("login.login")),1)],64))],2)]),i("div",Hs,[c[9]||(c[9]=i("div",{class:"hr"},null,-1)),i("div",Ws,[i("div",Vs,[i("div",Us,s(n.$t("t.target")),1),i("div",js,s(l(xe)(e.bearishTakeProfitPrice,e.priceFilter)),1)]),i("div",zs,[i("div",{class:h(["title",{dash:E.value}]),onClick:c[3]||(c[3]=t=>R({title:n.$t("trading.autotrader.potentialPnl.profit"),profitLoss:e.bearishFeeTooltip.profitLoss,estFee:e.bearishFeeTooltip.estFee}))},s(n.$t("t.profit")),3),i("div",Ys,s(e.bearishPotentialProfit),1)]),i("div",Gs,[i("div",{class:"title",onClick:c[4]||(c[4]=t=>R({title:n.$t("trading.autotrader.potentialPnl.loss"),profitLoss:`${e.bearishPotentialLoss}${M.value}`,estFee:`0${M.value}`}))},[i("span",{class:h({dash:E.value})},s(n.$t("t.loss")),3),E.value?(a(),t("div",Zs," 0 "+s(n.$t("t.fee")),1)):p("",!0)]),i("div",qs,s(e.bearishPotentialLoss),1)])]),c[10]||(c[10]=i("div",{class:"hr"},null,-1)),i("div",{class:h(["btn cursor-pointer",{disabled:I.value,warning:D.value&&T.value,blue:!T.value}]),onClick:c[5]||(c[5]=e=>B(l($l).SHORT))},[T.value?D.value?(a(),t(u,{key:1},[i("span",null,s(n.$t("t.deposit")),1),i("span",Ks," ("+s(n.$t("trading.copywise.minAmount",{amount:_.value,currency:A.value}))+") ",1)],64)):(a(),t(u,{key:2},[v(s(n.$t("t.bearish")),1)],64)):(a(),t(u,{key:0},[v(s(n.$t("login.login")),1)],64))],2)])]),r(l(ia),{isShow:x.value,"onUpdate:isShow":c[6]||(c[6]=e=>x.value=e)},{default:o((()=>[i("div",Xs,[i("div",Qs,s(F.value.title),1),i("div",Js,[i("div",er,[i("div",tr,s(n.$t("trading.profitLoss"))+":",1),i("div",ar,s(F.value.profitLoss),1)]),i("div",ir,[i("div",lr,s(n.$t("trading.copywise.estFee"))+":",1),i("div",sr,s(F.value.estFee),1)]),i("div",rr,[i("div",{class:h(["label link",l(re)])},s(n.$t("trading.autotrader.feerule"))+" » ",3)])])])])),_:1},8,["isShow"])],64))}},[["__scopeId","data-v-4cac873f"]]),nr={class:"header"},cr={class:"short-name"},ur={class:"full-name"},dr={class:"chart-area"},vr={class:"chart-wrap"},pr={class:"bottom-area"},gr={class:"invest-wrap"},hr={key:1,class:"add-investment-btns"},yr=["onClick"],br={key:2,class:"warning"},mr={key:4,class:"wallet-area"},fr=St({__name:"TrendChallengeDialog",props:{isShow:{type:Boolean,default:!1},strategy:{type:Object,default:()=>({})},midPrice:{type:Number,default:0},midPriceDataList:{type:Array,default:()=>[]},selectedLeverage:{type:Number,required:!0},selectedLeverageIndex:{type:Number,required:!0},formatLeverageList:{type:Array,default:()=>[]},handleChangeLeverage:{type:Function,default:()=>{}},bullishTakeProfitPercentage:{type:Number,default:0},bearishTakeProfitPercentage:{type:Number,default:0},bullishStopLossPercentage:{type:Number,default:0},bearishStopLossPercentage:{type:Number,default:0},bullishTakeProfitPrice:{type:Number,default:0},bearishTakeProfitPrice:{type:Number,default:0},bullishStopLossPrice:{type:Number,default:0},bearishStopLossPrice:{type:Number,default:0},bullishPotentialProfitPercentage:{type:String,default:"0"},bearishPotentialProfitPercentage:{type:String,default:"0"},bullishPotentialLossPercentage:{type:String,default:"0"},bearishPotentialLossPercentage:{type:String,default:"0"}},emits:["update:isShow"],setup(e,{expose:n,emit:g}){const h=[10,50,100,1e3],b=e,m=g,C=y(),{$openDialog:L}=je(),P=He(),{usdtToCurrentFiat:T,currentFiatToUSDT:I,formattedAvbl:_}=wt(),D=Ae(),{previewCopy:A}=oe(),{errorHandler:E}=$t(),{marketLimit:B}=Ot(b.strategy.symbol),{updateSymbol:N}=ea(ta);N(b.strategy.symbol);const R=Lt(),M=k(null),$=k(""),O=k(!1),H=k(!1),W=k(null),V=k(0),U=k(!1),{trackTrendChallengeInvestedEvent:z}=j(),Y=(e,t="success")=>{z({tradingPair:b.strategy.symbol,direction:{LONG:"Bullish",SHORT:"Bearish"}[e],result:t,leverage:b.selectedLeverage})},G=c((()=>C.state.loginState)),Z=c((()=>C.getters.isEnableAutoTraderTrendProfitShare)),q=c((()=>C.state.futures.marketDetailMap[b.strategy.symbol])),K=c((()=>{var e,t;return(null==(t=null==(e=C.state.futures.marketDetailMap)?void 0:e[b.strategy.symbol])?void 0:t.priceFilter)??2})),X=c((()=>C.state.futures.futuresMarkPriceMap[b.strategy.symbol]||0)),Q=c((()=>D.baseCurrency)),J=c((()=>C.getters.isUnifiedWallet&&V.value>=B.value)),ee=c((()=>G.value&&(P.isMobile||!P.isMobile&&!J.value))),te=c((()=>{const e=S(q.value.minOrderSize).times(q.value.contractSize).times(X.value).div(b.selectedLeverage).times(1.05).dp(2,S.ROUND_UP).toNumber();return Math.max(e,lt)})),ae=c((()=>T(te.value))),ie=c((()=>{const e=S(q.value.initialMarginSizeStep).times(q.value.contractSize).times(X.value).div(b.selectedLeverage).times(.98).dp(2,S.ROUND_DOWN).toNumber();return Math.min(T(e),_.value)})),le=c((()=>{var e;return(null==(e=(R.initData.tfmf||{})[st.FUTURES_TREND])?void 0:e[0])??0})),se=c((()=>ne({investment:I($.value||te.value),leverage:b.selectedLeverage,takerFeePercentage:le.value,midPrice:b.midPrice,contractValue:q.value.contractSize}))),re=c((()=>ce({midPrice:b.midPrice,price:b.bullishTakeProfitPrice,size:se.value,contractValue:q.value.contractSize,investment:I($.value||te.value),leverage:b.selectedLeverage,isBullish:!0}))),ge=c((()=>{const{netProfit:e}=re.value;if(!$.value)return b.bullishPotentialProfitPercentage+"%";let t;return t=Z.value?e:ue({midPrice:b.midPrice,price:b.bullishTakeProfitPrice,size:se.value,contractValue:q.value.contractSize,takerFeePercentage:le.value}),T(t)})),he=c((()=>{const{grossProfit:e,platformFee:t}=re.value,a=T(e),i=T(t);return $.value?{profitLoss:`${a} ${Q.value}`,estFee:`${i} ${Q.value}`}:{profitLoss:S(a).div(te.value).times(100).dp(2,S.ROUND_DOWN).toNumber()+"%",estFee:S(i).div(te.value).times(100).dp(2,S.ROUND_DOWN).toNumber()+"%"}})),ye=c((()=>ce({midPrice:b.midPrice,price:b.bearishTakeProfitPrice,size:se.value,contractValue:q.value.contractSize,investment:I($.value||te.value),leverage:b.selectedLeverage,isBullish:!1}))),be=c((()=>{const{netProfit:e}=ye.value;if(!$.value)return b.bearishPotentialProfitPercentage+"%";let t;return t=Z.value?e:de({midPrice:b.midPrice,price:b.bearishTakeProfitPrice,size:se.value,contractValue:q.value.contractSize,takerFeePercentage:le.value}),T(t)})),me=c((()=>{const{grossProfit:e,platformFee:t}=ye.value,a=T(e),i=T(t);return $.value?{profitLoss:`${a} ${Q.value}`,estFee:`${i} ${Q.value}`}:{profitLoss:S(a).div(te.value).times(100).dp(2,S.ROUND_DOWN).toNumber()+"%",estFee:S(i).div(te.value).times(100).dp(2,S.ROUND_DOWN).toNumber()+"%"}})),fe=c((()=>
1{if(!$.value)return b.bullishPotentialLossPercentage+"%";const e=ue({midPrice:b.midPrice,price:b.bullishStopLossPrice,size:se.value,contractValue:q.value.contractSize,takerFeePercentage:Z.value?0:le.value});return T(e)})),Ce=c((()=>{if(!$.value)return b.bearishPotentialLossPercentage+"%";const e=de({midPrice:b.midPrice,price:b.bearishStopLossPrice,size:se.value,contractValue:q.value.contractSize,takerFeePercentage:Z.value?0:le.value});return T(e)}));function Se(){m("update:isShow",!1)}function Le(e){L(pe,{openTab:e,strategy:b.strategy,closeOutSide:Se})}async function ke(e){O.value=!0;const t=b.strategy.leverageStrategies.find((e=>e.leverage===b.selectedLeverage)),a=null==t?void 0:t.strategies.find((t=>t.config.tradingDirection===e));if(!a)return void Y(e,"general_error");const i=[{strategyId:a.strategyId,investment:Number($.value).toString(),currency:Q.value}],l=await A(i,(()=>we(a,e,!0)),b.strategy.symbol,a);O.value=!1,l.success?we(a,e):Y(e,l.reason||"general_error")}async function we(e,t,a){O.value=!0;try{const i={currency:Q.value,investment:Number($.value).toString()};a&&(i.isCheckedRiskAlert=!0);const{strategyId:l}=await Ue.createStrategy({strategyId:e.strategyId,config:i});W.value=l,H.value=!0,C.dispatch("futures/getMarketPositionMode"),Y(t,"success"),Pe()}catch(i){E(i);let e="general_error";i===ut.TRADING_BOT_INSUFFICIENT_MARGIN_ERROR?e="insufficient_balance":i===ut.MAX_INVESTMENT_EXCEEDED&&(e="exceed_max_investment"),Y(t,e)}finally{O.value=!1}}async function Pe(){V.value=0;try{const{data:e}=await Ue.getStrategies({sorting:"roi:DESC"},C.getters.isEnableCopyWiseSignalBot,C.getters.isEnableAutoTraderTrendChallenge);e.strategies.forEach((e=>{e.coin===b.strategy.coin&&V.value++}))}catch(e){}}return x((()=>{G.value&&Pe()})),w((()=>b.midPriceDataList),(e=>{e.length&&M.value&&(U.value?M.value.updateChartWithNewPriceData(e[0]):(M.value.loadChartWithInitialPriceData(e.slice().reverse()),U.value=!0))}),{immediate:!0}),n({isShowSuccessDialog:H,newStrategyId:W}),(n,c)=>(a(),f(l(ct),{show:e.isShow,class:"trend-challenge-dialog",width:n.isMobile?"100%":"800px",isBrandNewStyle:"",isBottomUp:n.isMobile,center:n.isDesktop,showClose:!1,onClosed:Se},{body:o((()=>[i("div",nr,[i("div",{class:"token-info cursor-pointer",onClick:c[0]||(c[0]=e=>Le(l(rt).INFORMATION))},[r(l(ot),{class:"icon-token",name:e.strategy.coin,showName:!1,size:"24"},null,8,["name"]),i("div",cr,s(e.strategy.coinShortName),1),i("div",ur,s(e.strategy.coinName),1),r(l(ve),{class:"icon-detail"})]),r(l(nt),{class:"icon-close cursor-pointer",onClick:Se})]),i("div",dr,[r(l(Ql),{symbol:e.strategy.symbol,midPrice:e.midPrice,priceFilter:K.value,handleOpenTokenInfoDialog:()=>Le(l(rt).PRICE)},null,8,["symbol","midPrice","priceFilter","handleOpenTokenInfoDialog"]),i("div",vr,[r(l(Rl),{ref_key:"chartRef",ref:M,class:"chart",strategy:e.strategy,bullishTakeProfitPrice:e.bullishTakeProfitPrice,bearishTakeProfitPrice:e.bearishTakeProfitPrice,bullishStopLossPrice:e.bullishStopLossPrice,bearishStopLossPrice:e.bearishStopLossPrice},null,8,["strategy","bullishTakeProfitPrice","bearishTakeProfitPrice","bullishStopLossPrice","bearishStopLossPrice"])])]),i("div",pr,[i("div",gr,[r(l(ts),{class:"slot-container",list:e.formatLeverageList,selectedIndex:e.selectedLeverageIndex,onOnArrowClick:e.handleChangeLeverage,onClick:c[1]||(c[1]=F((()=>{}),["stop"]))},null,8,["list","selectedIndex","onOnArrowClick"]),n.isMobile?p("",!0):(a(),f(l(aa),{key:0,value:$.value,"onUpdate:value":c[2]||(c[2]=e=>$.value=e),class:"input",enableThousandSeparator:"",step:.01,min:ae.value,max:ie.value,placeholder:`≥ ${ae.value}`},{append:o((()=>[v(s(Q.value),1)])),_:1},8,["value","min","max","placeholder"])),J.value?(a(),t("div",br,s(n.$t("trading.copywise.reachMaxStrategies",{amount:l(B)})),1)):(a(),t("div",hr,[(a(),t(u,null,d(h,(e=>i("div",{key:e,class:"add-btn",onClick:t=>function(e){const t=+$.value||0;$.value=e+t}(e)},s(function(e){return"+"+e}(e)),9,yr))),64))])),n.isMobile?(a(),f(l(Ht),{key:3,modelValue:$.value,"onUpdate:modelValue":c[3]||(c[3]=e=>$.value=e),class:"slider-input",silent:"",min:ae.value,max:ie.value,step:.01,displayFormatter:e=>n.$filters.formatNumber(e,{formatKey:2}),onClickKeyboard:c[4]||(c[4]=e=>$.value=0)},null,8,["modelValue","min","max","displayFormatter"])):p("",!0),ee.value?(a(),t("div",mr,[r(l(At),{isPopupStyle:""})])):p("",!0)]),n.isMobile?(a(),f(l(or),{key:1,investment:$.value,minInvestment:ae.value,loading:O.value,priceFilter:K.value,bullishTakeProfitPrice:e.bullishTakeProfitPrice,bearishTakeProfitPrice:e.bearishTakeProfitPrice,bullishPotentialProfit:ge.value,bearishPotentialProfit:be.value,bullishPotentialLoss:fe.value,bearishPotentialLoss:Ce.value,bullishFeeTooltip:he.value,bearishFeeTooltip:me.value,reachMaxStrategies:J.value,onHandlePreview:ke,onHandleInvestmentEvent:Y},null,8,["investment","minInvestment","loading","priceFilter","bullishTakeProfitPrice","bearishTakeProfitPrice","bullishPotentialProfit","bearishPotentialProfit","bullishPotentialLoss","bearishPotentialLoss","bullishFeeTooltip","bearishFeeTooltip","reachMaxStrategies"])):(a(),f(l(Is),{key:0,investment:$.value,minInvestment:ae.value,loading:O.value,priceFilter:K.value,bullishTakeProfitPercentage:e.bullishTakeProfitPercentage,bearishTakeProfitPercentage:e.bearishTakeProfitPercentage,bullishTakeProfitPrice:e.bullishTakeProfitPrice,bearishTakeProfitPrice:e.bearishTakeProfitPrice,bullishPotentialProfit:ge.value,bearishPotentialProfit:be.value,bullishPotentialLoss:fe.value,bearishPotentialLoss:Ce.value,bullishFeeTooltip:he.value,bearishFeeTooltip:me.value,reachMaxStrategies:J.value,onHandlePreview:ke,onHandleInvestmentEvent:Y},null,8,["investment","minInvestment","loading","priceFilter","bullishTakeProfitPercentage","bearishTakeProfitPercentage","bullishTakeProfitPrice","bearishTakeProfitPrice","bullishPotentialProfit","bearishPotentialProfit","bullishPotentialLoss","bearishPotentialLoss","bullishFeeTooltip","bearishFeeTooltip","reachMaxStrategies"]))])])),_:1},8,["show","width","isBottomUp","center"]))}},[["__scopeId","data-v-e062b785"]]);const Cr={class:"token-name"},Sr={class:"short"},Lr={class:"full"},kr={key:0,class:"avatar-list"},wr={class:"up text-green"},Pr={class:"percent"},Tr={class:"down text-red"},Ir={class:"percent"},_r={class:"text-green"},Dr={class:"profit"},Ar={key:0,class:"line"},Er={class:"text-red"},Br={class:"profit"},xr=St({__name:"TrendChallengeCard",props:{strategy:{type:Object,default:()=>({})},shortMode:{type:Boolean,default:!1}},setup(e){const o=e,n=y(),v=ge(),g=Lt(),b=Ft(),m=He(),{trackTrendChallengeClickedEvent:C}=j(),{isShowShareDialog:L,shareData:P,handleShare:T,handleBackFromShareDialog:I}=function(){const e=k(!1),t=k({});return{isShowShareDialog:e,shareData:t,handleShare:function(a){const i={...a,isPortfolioActive:!0};t.value=i,e.value=!0},handleBackFromShareDialog:function(){e.value=!1}}}(),{openStopDialog:_}
1=he(),D=k(Ml.DRAW),A=k(0),E=k([]),B=k(),N=k(!1),O=k(null),H=k(Array.from({length:5},(()=>"common_"+(Math.floor(20*Math.random())+1)))),W=k(!1),V=k(!1),U=k({});let z=null;const Y=c((()=>n.getters.isEnableAutoTraderTrendProfitShare)),G=c((()=>{var e;return(null==(e=n.state.futures.marketDetailMap)?void 0:e[o.strategy.symbol])||{}})),Z=c((()=>G.value.priceFilter??2)),q=c((()=>m.isFullSize&&!o.shortMode)),K=c((()=>!m.isFullSize||o.shortMode)),X=c((()=>q.value||m.isMobile||W.value)),Q=c((()=>ee.value.findIndex((e=>e.leverage===B.value)))),ee=c((()=>[...o.strategy.leverageStrategies].sort(((e,t)=>e.leverage-t.leverage)))),te=c((()=>ee.value.map((e=>e.leverage+"x")))),ie=c((()=>xe(A.value,{formatKey:Z.value}))),le=c((()=>D.value===Ml.UP?["is-up","text-green"]:D.value===Ml.DOWN?["is-down","text-red"]:["is-draw","text-grey"])),se=c((()=>`marketMidPrice:${o.strategy.symbol}`)),re=c((()=>ee.value.find((e=>e.leverage===B.value))));function oe(e,t){return c((()=>{if(!re.value)return 0;const a=re.value.strategies.find((t=>t.config.tradingDirection===e));if(!a)return 0;const i=t===Ol?a.config.takeProfitPriceRatio||0:a.config.stopLossPriceRatio||0;return S(i).div(100).toNumber()}))}const ve=oe($l.LONG,Ol),pe=oe($l.SHORT,Ol),fe=oe($l.LONG,Hl),Ce=oe($l.SHORT,Hl),Se=c((()=>S(A.value).times(S(1).plus(ve.value)).dp(Z.value,S.ROUND_UP).toNumber())),Le=c((()=>S(A.value).times(S(1).minus(pe.value)).dp(Z.value,S.ROUND_DOWN).toNumber())),ke=c((()=>{var e;return(null==(e=G.value)?void 0:e.maintenanceMargin)||0})),we=c((()=>{const e=S(1).minus(S(1).div(B.value)).plus(ke.value),t=S(A.value).times(e).toNumber();if(!fe.value)return t;const a=S(A.value).times(S(1).minus(fe.value)).toNumber();return Math.max(t,a)})),Pe=c((()=>{const e=S(1).plus(S(1).div(B.value)).minus(ke.value),t=S(A.value).times(e).toNumber();if(!Ce.value)return t;const a=S(A.value).times(S(1).plus(Ce.value)).toNumber();return Math.min(t,a)})),Te=c((()=>n.state.futures.futuresMarkPriceMap[o.strategy.symbol]||0)),Ie=c((()=>{const e=S(G.value.minOrderSize).times(G.value.contractSize).times(Te.value).div(B.value).times(1.05).dp(2,S.ROUND_UP).toNumber();return Math.max(e,lt)})),_e=c((()=>{var e;return(null==(e=(g.initData.tfmf||{})[st.FUTURES_TREND])?void 0:e[0])??0})),De=c((()=>ne({investment:Ie.value,leverage:B.value,takerFeePercentage:_e.value,midPrice:A.value,contractValue:G.value.contractSize}))),Ae=c((()=>{if(Y.value){const{netProfit:e}=ce({midPrice:A.value,price:Se.value,size:De.value,contractValue:G.value.contractSize,investment:Ie.value,leverage:B.value,isBullish:!0});return e}return ue({midPrice:A.value,price:Se.value,size:De.value,contractValue:G.value.contractSize,takerFeePercentage:_e.value})})),Ee=c((()=>{if(Y.value){const{netProfit:e}=ce({midPrice:A.value,price:Le.value,size:De.value,contractValue:G.value.contractSize,investment:Ie.value,leverage:B.value,isBullish:!1});return e}return de({midPrice:A.value,price:Le.value,size:De.value,contractValue:G.value.contractSize,takerFeePercentage:_e.value})})),Be=c((()=>ue({midPrice:A.value,price:we.value,size:De.value,contractValue:G.value.contractSize,takerFeePercentage:Y.value?0:_e.value}))),Fe=c((()=>de({midPrice:A.value,price:Pe.value,size:De.value,contractValue:G.value.contractSize,takerFeePercentage:Y.value?0:_e.value}))),Re=c((()=>xe(S(Ae.value).div(Ie.value).times(100).dp(2,S.ROUND_DOWN).toNumber()))),Me=c((()=>xe(S(Ee.value).div(Ie.value).times(100).dp(2,S.ROUND_DOWN).toNumber()))),$e=c((()=>{const e=S(Be.value).div(Ie.value).times(100).dp(2,S.ROUND_DOWN).toNumber();return xe(Math.max(-100,e))})),Oe=c((()=>{const e=S(Fe.value).div(Ie.value).times(100).dp(2,S.ROUND_DOWN).toNumber();return xe(Math.max(-100,e))})),We=c((()=>Object.keys(U.value).length)),Ve=c((()=>{if(!We.value)return{};const{currentWalletPnl:e}=dt(U.value),t=ye({profit:e.value,investment:U.value.investment,leverage:U.value.config.leverage});return{...U.value,profit:xe(e.value),profitShare:t}}));async function je(e){const t=await Ue.getUserStrategyById(e);t.data&&(U.value=t.data)}function ze(){const e=[se.value],t={[se.value]:Ye};v.extraSubscribe({topics:e,callbacks:t})}function Ye(e){const{type:t,payload:a}=e;switch(t){case vt.INIT_DATA:A.value=Number(a[0][1]),E.value=a;break;case vt.NEW_DATA:{const e=Number(a[1]);e>A.value?D.value=Ml.UP:e<A.value?D.value=Ml.DOWN:D.value=Ml.DRAW,A.value=Number(a[1]),E.value=[a,...E.value];break}}}function Ge(e){B.value=ee.value[e].leverage}function Ze(){N.value=!0,C({tradingPair:o.strategy.symbol,leverage:B.value})}function qe(e){V.value=!1,T(e)}function Ke(){_(Ve.value,(()=>V.value=!1))}return x((()=>{ze()})),R((()=>{const e=[se.value];v.unSubscribeStrategy(e)})),w((()=>v.unSubscribeSymbol),(e=>{e===o.strategy.symbol&&ze()}
1)),w((()=>ee.value),(e=>{const t=e.reduce(((e,t)=>t.leverage>e.leverage?t:e));B.value=t.leverage}),{immediate:!0}),w((()=>{var e;return null==(e=O.value)?void 0:e.isShowSuccessDialog}),(e=>{e&&(V.value=!0,N.value=!1)})),w((()=>{var e;return[null==(e=O.value)?void 0:e.newStrategyId,V.value]}),(async([e,t])=>{$((()=>{clearInterval(z),z=null})),e&&t&&(await je(e),z=setInterval((()=>{je(e)}),5e3))})),w((()=>b.trendChallengeSymbolFromSharelink),(e=>{e===o.strategy.coin&&(Ze(),b.setTrendChallengeSymbolFromSharelink(""))}),{immediate:!0}),(o,n)=>(a(),t(u,null,[i("div",{class:h(["trend-challenge-card",{"short-mode":K.value}]),onClick:Ze,onMouseenter:n[1]||(n[1]=e=>W.value=!0),onMouseleave:n[2]||(n[2]=e=>W.value=!1)},[i("div",{class:h(["token-info-wrap",{"short-mode":K.value}])},[i("div",{class:h(["token-info",{"short-mode":K.value}])},[r(l(ot),{class:"icon-token",name:e.strategy.coin,showName:!1,size:"24"},null,8,["name"]),i("div",Cr,[i("div",Sr,s(e.strategy.coinShortName),1),i("div",Lr,s(e.strategy.coinName),1)])],2),r(l(ae),{value:e.strategy.popularity},null,8,["value"]),q.value?(a(),t("div",kr,[(a(),t(u,null,d(5,(e=>r(l(Ne),{key:e,class:"avatar",avatarId:H.value[e]},null,8,["avatarId"]))),64))])):p("",!0)],2),i("div",{class:h(["price-info",{"short-mode":K.value}])},[i("div",wr,[r(l(Xt),{class:"icon-trend-arrow"}),i("span",null,s(o.$t("t.target")),1),i("span",Pr,s(l(xe)(100*l(ve)))+"% ",1)]),i("div",{class:h(["price",le.value])},[i("span",null,s(ie.value),1),D.value!==l(Ml).DRAW?(a(),f(l(it),{key:0,class:"icon-triangle"})):p("",!0)],2),i("div",Tr,[r(l(Xt),{class:"icon-trend-arrow"}),i("span",null,s(o.$t("t.target")),1),i("span",Ir,s(l(xe)(100*l(pe)))+"% ",1)])],2),i("div",{class:h(["profit-info-wrap",{"short-mode":K.value}])},[i("div",{class:h(["profit-info",{"short-mode":K.value}])},[i("div",_r,s(o.$t("t.bullish")),1),i("div",Dr,s(Re.value)+"%",1),i("div",null,s(o.$t("trading.autotrader.potentialPnl.profit")),1)],2),q.value?(a(),t("div",Ar)):(a(),f(l(be),{key:1,class:"icon-bolt"})),i("div",{class:h(["profit-info text-all-right",{"short-mode":K.value}])},[i("div",Er,s(o.$t("t.bearish")),1),i("div",Br,s(Me.value)+"%",1),i("div",null,s(o.$t("trading.autotrader.potentialPnl.profit")),1)],2)],2),i("div",{class:h(["leverage-info",{"short-mode":K.value}])},[r(l(ts),{class:"slot-container",list:te.value,selectedIndex:Q.value,onOnArrowClick:Ge,onClick:n[0]||(n[0]=F((()=>{}),["stop"]))},null,8,["list","selectedIndex"]),i("div",{class:h(["btn",{show:X.value}])},s(o.$t("t.bullish"))+" / "+s(o.$t("t.bearish")),3)],2)],34),N.value?(a(),f(l(fr),{key:0,ref_key:"trendDialogRef",ref:O,isShow:N.value,"onUpdate:isShow":n[3]||(n[3]=e=>N.value=e),strategy:e.strategy,midPrice:A.value,midPriceDataList:E.value,selectedLeverage:B.value,selectedLeverageIndex:Q.value,formatLeverageList:te.value,handleChangeLeverage:Ge,bullishTakeProfitPercentage:l(ve),bearishTakeProfitPercentage:l(pe),bullishStopLossPercentage:l(fe),bearishStopLossPercentage:l(Ce),bullishTakeProfitPrice:Se.value,bearishTakeProfitPrice:Le.value,bullishStopLossPrice:we.value,bearishStopLossPrice:Pe.value,bullishPotentialProfitPercentage:Re.value,bearishPotentialProfitPercentage:Me.value,bullishPotentialLossPercentage:$e.value,bearishPotentialLossPercentage:Oe.value},null,8,["isShow","strategy","midPrice","midPriceDataList","selectedLeverage","selectedLeverageIndex","formatLeverageList","bullishTakeProfitPercentage","bearishTakeProfitPercentage","bullishStopLossPercentage","bearishStopLossPercentage","bullishTakeProfitPrice","bearishTakeProfitPrice","bullishStopLossPrice","bearishStopLossPrice","bullishPotentialProfitPercentage","bearishPotentialProfitPercentage","bullishPotentialLossPercentage","bearishPotentialLossPercentage"])):p("",!0),V.value&&We.value?(a(),f(l(me),{key:1,isShow:V.value,"onUpdate:isShow":n[4]||(n[4]=e=>V.value=e),data:U.value,handleShare:qe,onStop:Ke},null,8,["isShow","data"])):p("",!0),l(L)?(a(),f(l(J),{key:2,isShow:l(L),"onUpdate:isShow":n[5]||(n[5]=e=>M(L)?L.value=e:null),data:l(P),showPnlSwitch:"",isTrendChallenge:"",onToggleBack:l(I)},null,8,["isShow","data","onToggleBack"])):p("",!0)],64))}},[["__scopeId","data-v-c3b9baa3"]]),Nr={class:"trend-challenge"},Fr={class:"title-wrap"},Rr={class:"title"},Mr=["src"],$r={class:"desc"},Or={key:0,class:"card-list"},Hr=St({__name:"index",setup(e){const r=k([]);return x((async()=>{const{data:e}=await Ue.getTrendStrategies({page:1,pageSize:10});r.value=e.coinStrategies})),(e,n)=>(a(),t("div",Nr,[i("div",Fr,[i("div",Rr,[i("img",{src:l("data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.33332%2026.2504H5V21.1367H8.33332V26.2504Z'%20fill='%237E8F9F'/%3e%3cpath%20d='M19.4446%2026.2509H16.1113V19.0918H19.4446V26.2509Z'%20fill='%237E8F9F'/%3e%3cpath%20d='M13.889%2026.2515H10.5557V17.0469H13.889V26.2515Z'%20fill='%237E8F9F'/%3e%3cpath%20d='M6.66666%2026.2504H5V21.1367H6.66666V26.2504Z'%20fill='%23A6B5C3'/%3e%3cpath%20d='M17.778%2026.2509H16.1113V19.0918H17.778V26.2509Z'%20fill='%23A6B5C3'/%3e%3cpath%20d='M12.2223%2026.2515H10.5557V17.0469H12.2223V26.2515Z'%20fill='%23A6B5C3'/%3e%3cpath%20d='M25.0003%2026.2501H21.667V15H25.0003V26.2501Z'%20fill='%237E8F9F'/%3e%3cpath%20d='M23.3337%2026.2501H21.667V15H23.3337V26.2501Z'%20fill='%23A6B5C3'/%3e%3crect%20x='2.5'%20y='13.4062'%20width='9.21086'%20height='3.125'%20rx='1.5625'%20transform='rotate(-45%202.5%2013.4062)'%20fill='%2302CB6B'/%3e%3crect%20x='19.4277'%20y='10.2285'%20width='8.4587'%20height='3.125'%20rx='1.5625'%20transform='rotate(-45%2019.4277%2010.2285)'%20fill='%2302CB6B'/%3e%3crect%20width='12.5591'%20height='3.125'%20rx='1.5625'%20transform='matrix(-0.707107%20-0.707107%20-0.707107%200.707107%2020.8525%2012.8906)'%20fill='%23FF5B5A'/%3e%3c/svg%3e"),alt:"trend"},null,8,Mr),v(" "+s(e.$t("trading.autotrader.trendChallenge")),1)]),i("div",$r,s(e.$t("trading.autotrader.trendChallenge.desc")),1
1)]),r.value.length<=2?(a(),t("div",Or,[(a(!0),t(u,null,d(r.value,(e=>(a(),f(l(xr),{key:e.symbol,strategy:e},null,8,["strategy"])))),128))])):(a(),f(l(Rt),{key:1,class:"strategy-list-wrapper",onScrollReachEnd:e.handleScrollReachEnd},{default:o((()=>[(a(!0),t(u,null,d(r.value,(e=>(a(),f(l(xr),{key:e.symbol,strategy:e,shortMode:!0},null,8,["strategy"])))),128))])),_:1},8,["onScrollReachEnd"]))]))}},[["__scopeId","data-v-9310df21"]]),Wr={class:"simplified-all-strategies"},Vr={class:"header"},Ur={class:"highlight"},jr={class:"highlight"},zr={class:"card-container"},Yr={class:"filter-bar"},Gr={class:"or-text"},Zr={class:"card-area"},qr="N/A",Kr=St(_({__name:"SimplifiedAllStrategies",setup(l){function u(e){return"roi:DESC"===e?"By Return ↓":"roi:ASC"===e?"By Return ↑":e}const{t:d}=n(),p=y(),g=Lt(),h=Ae(),b=c((()=>h.isPausingAllStrategyPolling)),m=k([]),f=k([]),C=k(""),S=k("roi:DESC"),L=k({page:1,pageSize:20,totalPages:0,totalRows:0}),T=c((()=>C.value?Ge.INDEX_BY_TOKEN:Ge.INDEX_BY_ROI)),I=c((()=>{if(!S.value)return d("t.sortBy");const e=S.value.split(":")[1];return`${d("trading.return")} ${"DESC"===e?"↓":"↑"}`})),_=c((()=>[{key:"roi_desc",label:`${d("trading.byReturn")} ↓`,click:()=>{S.value="roi:DESC",C.value="",Ze(qe.AUTO_TRADER_EXPLORE_FILTERED,{selected_token:qr,categories:u("roi:DESC")})}},{key:"roi_asc",label:`${d("trading.byReturn")} ↑`,click:()=>{S.value="roi:ASC",C.value="",Ze(qe.AUTO_TRADER_EXPLORE_FILTERED,{selected_token:qr,categories:u("roi:ASC")})}}])),D=()=>{L.value.page=1,f.value=[]},A=Ve((async({isLoadMore:e=!1,forceUpdate:t=!1}={})=>{if(b.value&&!t)return;const a=T.value===Ge.INDEX_BY_TOKEN?Ue.getGroupedStrategies:Ue.getAllStrategies,i=(await a({page:L.value.page,pageSize:L.value.pageSize,coin:C.value||void 0,sorting:S.value||"roi:DESC"},p.getters.isEnableCopyWiseSignalBot)).data;f.value=e?[...f.value,...i.strategies]:i.strategies,L.value.totalRows=i.totalRows,L.value.totalPages=i.totalPages}),300);function E(){L.value.page<L.value.totalPages&&(L.value.page+=1,A({isLoadMore:!0}))}let B=null;async function N(){if(b.value)return;if(0===f.value.length)return;const e=T.value===Ge.INDEX_BY_TOKEN?Ue.getGroupedStrategies:Ue.getAllStrategies,t=(await e({page:1,pageSize:f.value.length,coin:C.value||void 0,sorting:S.value||"roi:DESC"},p.getters.isEnableCopyWiseSignalBot)).data.strategies,a=new Map(t.map((e=>[e.strategyId||e.coin,e])));f.value=f.value.map((e=>a.get(e.strategyId||e.coin)??e))}return w((()=>g.initData),(e=>{m.value=(null==e?void 0:e.coinsWithName)??[]}),{immediate:!0,deep:!0}),w(C,((e,t)=>{e?S.value="":S.value||(S.value="roi:DESC"),D(),A(),e&&e!==t&&Ze(qe.AUTO_TRADER_EXPLORE_FILTERED,{selected_token:e,categories:qr})})),w(S,(()=>{D(),A()})),x((()=>{A(),B=setInterval(N,12e4)})),P((()=>{B&&clearInterval(B)})),(l,n)=>{const c=e("i18n-t");return a(),t("div",Wr,[i("div",Vr,[r(Wi,{class:"title"},{default:o((()=>[v(s(l.$t("trading.copywise.exploreAllTitle")),1)])),_:1}),r(c,{keypath:"trading.copywise.exploreAllSubtitle",tag:"div",class:"subtitle"},{roi:o((()=>[i("span",Ur,s(l.$t("trading.leaderboard.roi")),1)])),token:o((()=>[i("span",jr,s(l.$t("t.token")),1)])),_:1})]),i("div",zr,[i("div",Yr,[r(sa,{class:"sort-dropdown",buttonText:I.value,itemList:_.value,alignRight:!1},null,8,["buttonText","itemList"]),i("span",Gr,s(l.$t("t.or")),1),r(zt,{value:C.value,"onUpdate:value":n[0]||(n[0]=e=>C.value=e),class:"token-dropdown",coinList:m.value,placeholder:l.$t("t.searchToken")},null,8,["value","coinList","placeholder"])]),i("div",Zr,[r(fe,{strategyList:f.value,cardType:T.value,autoHeight:!0,showLoadMore:"",onLoadMore:E},null,8,["strategyList","cardType"])])])])}}}),[["__scopeId","data-v-359162a1"]]),Xr={name:"ByTokenStrategies",components:{Pagination:pt,StrategyCardList:fe,AutoTraderCryptoDropdown:zt,TradingSorting:Zt},setup(){const e=Lt(),t=Ae();return{autoTraderInitDataStore:e,autoTraderTriggerStore:Ft(),isPausingAllStrategyPolling:c((()=>t.isPausingAllStrategyPolling))}},data:()=>({STRATEGY_CARD_TYPE:Ge,coinList:[],strategyList:[],selectedCoin:null,pagination:{page:1,pageSize:20,totalPages:0,totalRows:0},sortBy:"roi:DESC",trackFilterEvent:null,trackSortEvent:null,isFirstTimeSorted:!0,get
1StrategiesInterval:null}),computed:{...H("trading",["copyWise"]),...O(["isEnableCopyWiseSignalBot"]),sortByOptions(){return[{key:"roi",text:this.$t("trading.return"),requireSort:!0},{key:"popular",text:this.$t("t.popularity"),requireSort:!0},{key:"duration",text:this.$t("t.duration"),requireSort:!0}]}},watch:{"autoTraderInitDataStore.initData":{immediate:!0,deep:!0,handler(e){this.coinList=(null==e?void 0:e.coinsWithName)||[]}},selectedCoin(e){this.pagination.page=1,this.getStrategies(),this.trackFilterEvent(Ge.INDEX_BY_TOKEN,e,[])},sortBy(e){this.pagination.page=1,this.getStrategies(),this.isFirstTimeSorted?this.isFirstTimeSorted=!1:this.trackSortEvent(e,Ge.INDEX_BY_TOKEN)},"autoTraderTriggerStore.strategiesWatchId"(){this.getStrategies()}},async created(){const{trackFilterEvent:e,trackSortEvent:t}=j();this.trackFilterEvent=e,this.trackSortEvent=t,this.getStrategies(),this.getStrategiesInterval=setInterval((()=>{this.getStrategies()}),12e4)},beforeUnmount(){clearInterval(this.getStrategiesInterval)},methods:{getStrategies:Ve((async function(e){if(this.isPausingAllStrategyPolling)return;const t={page:this.pagination.page,pageSize:20,coin:this.selectedCoin,sorting:this.sortBy},{data:a}=await Ue.getGroupedStrategies(t,this.isEnableCopyWiseSignalBot);this.strategyList=e?[...this.strategyList,...a.strategies]:a.strategies,this.pagination.totalRows=a.totalRows,this.pagination.totalPages=a.totalPages}),300),handleLoadMore(){this.isMobile&&this.pagination.page!==this.pagination.totalPages&&(this.pagination.page+=1,this.getStrategies(!0))},handleChangePage(e){this.pagination.page=e,this.getStrategies(),document.querySelector(".by-token-strategies").scrollIntoView()}}},Qr={class:"by-token-strategies"},Jr={class:"filters-wrap"},eo={class:"filters-inner-wrap"},to={class:"token-and-labels-wrap"},ao={class:"token-filter-wrap"},io={class:"sort-filter-wrap"},lo={class:"page-wrapper"};const so=St(Xr,[["render",function(l,s,o,n,c,u){const d=e("AutoTraderCryptoDropdown"),v=e("TradingSorting"),g=e("StrategyCardList"),h=e("Pagination");return a(),t("div",Qr,[i("div",Jr,[i("div",eo,[i("div",to,[i("div",ao,[r(d,{value:c.selectedCoin,"onUpdate:value":s[0]||(s[0]=e=>c.selectedCoin=e),coinList:c.coinList},null,8,["value","coinList"])])]),i("div",io,[r(v,{sortBy:c.sortBy,"onUpdate:sortBy":s[1]||(s[1]=e=>c.sortBy=e),sortByOptions:u.sortByOptions},null,8,["sortBy","sortByOptions"])])])]),r(g,{strategyList:c.strategyList,cardType:c.STRATEGY_CARD_TYPE.INDEX_BY_TOKEN,autoHeight:!l.isMobile,onLoadMore:u.handleLoadMore},null,8,["strategyList","cardType","autoHeight","onLoadMore"]),i("div",lo,[l.isMobile?p("",!0):(a(),f(h,{key:0,pagerCount:5,background:!1,total:c.pagination.totalRows,totalPages:c.pagination.totalPages,pageSize:c.pagination.pageSize,currentPage:c.pagination.page,onHandleCurrentChangeP:u.handleChangePage},null,8,["total","totalPages","pageSize","currentPage","onHandleCurrentChangeP"]))])])}],["__scopeId","data-v-032d1873"]]),ro={class:"mb-6"},oo={class:"weight-700"},no={class:"weight-700"},co={class:"weight-700"},uo={class:"mb-6"},vo={class:"weight-700"},po={class:"weight-700"},go={class:"mb-6"},ho={class:"weight-700"},yo={class:"weight-700"},bo={class:"weight-700"},mo={__name:"FilterTooltip",props:{type:{type:String,default:""}},setup:n=>(c,d)=>{const v=e("i18n-t");return n.type===l(gt).DIRECTION?(a(),t(u,{key:0},[i("p",ro,s(c.$t("copywise.types.tooltip.direction.head")),1),r(v,{keypath:"copywise.types.tooltip.direction.bullish",tag:"p",class:"mb-6"},{bullish:o((()=>[i("span",oo,s(c.$t("t.bullish")),1)])),_:1}),r(v,{keypath:"copywise.types.tooltip.direction.bearish",tag:"p",class:"mb-6"},{bearish:o((()=>[i("span",no,s(c.$t("t.bearish")),1)])),_:1}),r(v,{keypath:"copywise.types.tooltip.direction.neutral",tag:"p"},{neutral:o((()=>[i("span",co,s(c.$t("t.neutral")),1)])),_:1})],64)):n.type===l(gt).TERM?(a(),t(u,{key:1},[i("p",uo,s(c.$t("copywise.types.tooltip.duration.head")),1),r(v,{keypath:"copywise.types.tooltip.duration.short",tag:"p",class:"mb-6"},{shorter:o((()=>[i("span",vo,s(c.$t("t.shorter")),1)])),_:1}),r(v,{keypath:"copywise.types.tooltip.duration.long",tag:"p",class:"mb-6"},{longer:o((()=>[i("span",po,s(c.$t("t.longer")),1)])),_:1}),i("p",null,s(c.$t("copywise.types.tooltip.duration.note")),1)],64)):n.type===l(gt).RISK?(a(),t(u,{key:2},[i("p",go,s(c.$t("copywise.types.tooltip.risk.head")),1),r(v,{keypath:"copywise.types.tooltip.risk.conservative2",tag:"p",class:"mb-6"},{conservative:o((()=>[i("span",ho,s(c.$t("trading.copywise.label.conservative")),1)])),_:1}),r(v,{keypath:"copywise.types.tooltip.risk.balanced2",tag:"p",class:"mb-6"},{balanced:o((()=>
1[i("span",yo,s(c.$t("trading.copywise.label.balanced")),1)])),_:1}),r(v,{keypath:"copywise.types.tooltip.risk.aggressive",tag:"p"},{aggressive:o((()=>[i("span",bo,s(c.$t("trading.copywise.label.aggressive")),1)])),_:1})],64)):p("",!0)}},fo={class:"toggle-filter-item"},Co={class:"options-title"},So={class:"title"},Lo={key:0},ko={class:"options-box"},wo=["onClick"],Po=St({__name:"ToggleFilterItem",props:{title:{type:String,required:!0},options:{type:Array,required:!0},value:{type:String,default:""},type:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const g=e,y=n,b=c((()=>""!==g.value));return(n,c)=>(a(),t("div",fo,[i("div",Co,[i("p",So,[r(l(Fe),null,{content:o((()=>[v(s(e.title)+":",1)])),tooltip:o((()=>[r(l(mo),{type:e.type},null,8,["type"])])),_:1}),b.value?p("",!0):(a(),t("span",Lo,s(n.$t("t.all")),1))]),b.value?(a(),t("div",{key:0,class:"icon-close-box",onClick:c[0]||(c[0]=e=>y("click",""))},[r(l(nt),{class:"icon-close"})])):p("",!0)]),i("div",ko,[(a(!0),t(u,null,d(e.options,(i=>(a(),t("div",{key:i.value,class:h(["option",[i.value===e.value?"active":""]]),onClick:e=>y("click",i.value)},s(i.text),11,wo)))),128))])]))}},[["__scopeId","data-v-6d2d983c"]]),To={class:"toggle-filter"},Io=St({__name:"index",props:{options:{type:Array,default:()=>[]},values:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:i}){const s=i;return(i,o)=>(a(),t("div",To,[(a(!0),t(u,null,d(e.options,((o,n)=>(a(),t("div",{key:`filter-item-${n}`,class:"flex-box"},[0!==n?T(i.$slots,"line",{key:0},void 0,!0):p("",!0),r(l(Po),{title:o.title,options:o.options,value:e.values[n],type:o.type,onClick:e=>{s("change",{index:n,value:e})}},null,8,["title","options","value","type","onClick"])])))),128))]))}},[["__scopeId","data-v-afddc8a2"]]),_o={name:"SelectMenuDialog",components:{BrandDialog:ct,AutoTraderCryptoDropdown:zt,ToggleFilter:Io,IconInfo3:Se,TooltipContent:Ce,MobileTooltipWrapper:ia},props:{visible:{type:Boolean,required:!0},coinList:{type:Array,default:()=>[]},labelOptions:{type:Array,default:()=>[]},initialValues:{type:Object,default:()=>({})},isByRoi:{type:Boolean,default:!1},sortByOptions:{type:Array,default:()=>[]}},emits:["update:visible","confirm"],data:()=>({selectedCoin:null,selectedLabels:["","",""],sortBy:"",isShowTooltip:!1}),computed:{isShow:{get(){return this.visible},set(e){this.$emit("update:visible",e)}}},watch:{isShow(e){e&&(this.selectedCoin=this.initialValues.selectedCoin,this.selectedLabels=[...this.initialValues.selectedLabels],this.sortBy=this.initialValues.sortBy)}},methods:{updateSelectedLabels({index:e,value:t}){this.selectedLabels[e]=t},handleConfirm(){this.$emit("confirm",{selectedCoin:this.selectedCoin,selectedLabels:this.selectedLabels,sortBy:this.sortBy}),this.isShow=!1},handleClickInfo(){this.isShowTooltip=!0}}},Do={class:"header-text"},Ao={class:"dialog-content"},Eo={class:"token-filter-wrap"},Bo={class:"button-wrapper"};const xo={0:"aggression",1:"term",2:"risk"},No={name:"ByRoiStrategies",components:{IconFilter:ht,Pagination:pt,StrategyCardList:fe,AutoTraderCryptoDropdown:zt,SelectMenuDialog:St(_o,[["render",function(l,n,c,d,g,h){const y=e("IconInfo3"),b=e("AutoTraderCryptoDropdown"),m=e("ToggleFilter"),C=e("BaseButton"),S=e("BrandDialog"),L=e("TooltipContent"),k=e("MobileTooltipWrapper");return a(),t(u,null,[r(S,{visible:h.isShow,"onUpdate:visible":n[2]||(n[2]=e=>h.isShow=e),class:"select-menu-dialog",width:l.isMobile?"100%":"750px",center:!l.isMobile,isBottomUp:l.isMobile,isBrandNewStyle:"",onClosed:n[3]||(n[3]=e=>h.isShow=!1)},{header:o((()=>[i("span",Do,[v(s(l.$t("t.filter"))+" ",1),c.isByRoi?(a(),f(y,{key:0,class:"info-icon",onClick:h.handleClickInfo},null,8,["onClick"])):p("",!0)])])),body:o((()=>[i("div",Ao,[i("div",Eo,[r(b,{value:g.selectedCoin,"onUpdate:value":n[0]||(n[0]=e=>g.selectedCoin=e),coinList:c.coinList},null,8,["value","coinList"])]),c.isByRoi?(a(),f(m,{key:0,class:"label-filter",options:c.labelOptions,values:g.selectedLabels,onChange:h.updateSelectedLabels},null,8,["options","values","onChange"])):p("",!0)])])),footer:o((()=>[i("div",Bo,[r(C,{class:"btn",onClick:n[1]||(n[1]=e=>h.isShow=!1)},{default:o((()=>[v(s(l.$t("t.close")),1)])),_:1}
1),r(C,{class:"primary cursor-pointer btn",onClick:h.handleConfirm},{default:o((()=>[v(s(l.$t("t.confirm")),1)])),_:1},8,["onClick"])])])),_:1},8,["visible","width","center","isBottomUp"]),r(k,{isShow:g.isShowTooltip,"onUpdate:isShow":n[4]||(n[4]=e=>g.isShowTooltip=e)},{default:o((()=>[r(L)])),_:1},8,["isShow"])],64)}],["__scopeId","data-v-d7dbc110"]]),ToggleFilter:Io,TradingSorting:Zt},setup(){const e=Lt(),t=Ae();return{autoTraderInitDataStore:e,autoTraderTriggerStore:Ft(),isPausingAllStrategyPolling:c((()=>t.isPausingAllStrategyPolling))}},data:()=>({STRATEGY_CARD_TYPE:Ge,coinList:[],strategyList:[],selectedCoin:null,pagination:{page:1,pageSize:20,totalPages:0,totalRows:0},selectedLabels:["","",""],sortBy:"roi:DESC",openSelectMenuDialog:!1,trackFilterEvent:null,trackSortEvent:null,isFirstTimeSorted:!0,getStrategiesInterval:null}),computed:{...H("trading",["copyWise"]),...O(["isEnableCopyWiseSignalBot"]),labelOptions(){return[{title:this.$t("t.direction"),options:[{text:this.$t("t.bullish"),value:Xe.BULLISH},{text:this.$t("t.bearish"),value:Xe.BEARISH},this.isEnableCopyWiseSignalBot&&{text:this.$t("t.neutral"),value:Xe.NEUTRAL}].filter(Boolean),type:gt.DIRECTION},{title:this.$t("t.term"),options:[{text:this.$t("t.shorter"),value:yt.SHORTER_TERM},{text:this.$t("t.longer"),value:yt.LONGER_TERM}],type:gt.TERM},{title:this.$t("trading.copywise.risk"),options:[{text:this.$t("trading.copywise.label.conservative"),value:Qe.CONSERVATIVE},{text:this.$t("trading.copywise.label.balanced"),value:Qe.BALANCED},{text:this.$t("trading.copywise.label.aggressive"),value:Qe.GROWTH}],type:gt.RISK}]},mobileSelectedMenuInitialValue(){return{selectedLabels:this.selectedLabels,selectedCoin:this.selectedCoin,sortBy:this.sortBy}},sortByOptions(){return[{key:"roi",text:this.$t("trading.return"),requireSort:!0},{key:"pnl",text:this.$t("trading.profitLoss"),requireSort:!0},{key:"duration",text:this.$t("t.duration"),requireSort:!0}]}},watch:{"autoTraderInitDataStore.initData":{immediate:!0,deep:!0,handler(e){this.coinList=(null==e?void 0:e.coinsWithName)||[]}},selectedCoin(e){this.pagination.page=1,this.getStrategies(),this.trackFilterEvent(Ge.INDEX_BY_ROI,e,this.selectedLabels)},selectedLabels:{handler(e){this.pagination.page=1,this.getStrategies(),this.trackFilterEvent(Ge.INDEX_BY_ROI,this.selectedCoin,e)},deep:!0},sortBy(e){this.pagination.page=1,this.getStrategies(),this.isFirstTimeSorted?this.isFirstTimeSorted=!1:this.trackSortEvent(e,Ge.INDEX_BY_ROI)},"autoTraderTriggerStore.strategiesWatchId"(){this.getStrategies({forceUpdate:!0})}},async created(){const{trackFilterEvent:e,trackSortEvent:t}=j();this.trackFilterEvent=e,this.trackSortEvent=t,this.getStrategies(),this.getStrategiesInterval=setInterval((()=>{this.getStrategies()}),12e4)},beforeUnmount(){clearInterval(this.getStrategiesInterval)},methods:{getStrategies:Ve((async function({isLoadMore:e,forceUpdate:t}={}){if(this.isPausingAllStrategyPolling&&!t)return;const a=this.getLabelObject(),i={page:this.pagination.page,pageSize:20,coin:this.selectedCoin,sorting:this.sortBy,...a},{data:l}=await Ue.getAllStrategies(i,this.isEnableCopyWiseSignalBot);this.strategyList=e?[...this.strategyList,...l.strategies]:l.strategies,this.pagination.totalRows=l.totalRows,this.pagination.totalPages=l.totalPages}),300),handleLoadMore(){this.isMobile&&this.pagination.page!==this.pagination.totalPages&&(this.pagination.page+=1,this.getStrategies({isLoadMore:!0}))},handleChangePage(e){this.pagination.page=e,this.getStrategies(),document.querySelector(".by-roi-strategies").scrollIntoView()},updateSelectedLabels({index:e,value:t}){this.selectedLabels[e]=t},getLabelObject(){return this.selectedLabels.reduce(((e,t,a)=>{if(t){e[xo[a]]=t}return e}),{})},handleSelectMenuConfirm({selectedCoin:e,selectedLabels:t,sortBy:a}){this.selectedCoin=e,this.selectedLabels=[...t],this.sortBy=a}}},Fo={class:"by-roi-strategies"},Ro={class:"filters-wrap"},Mo={class:"filters-inner-wrap"},$o={class:"token-and-labels-wrap"},Oo={class:"token-filter-wrap"},Ho={key:0,class:"line"},Wo={class:"sort-filter-wrap"},Vo={class:"page-wrapper"};const Uo=St(No,[["render",function(l,s,n,c,u,d){const v=e("AutoTraderCryptoDropdown"),g=e("ToggleFilter"),h=e("TradingSorting"),y=e("IconFilter"),b=e("StrategyCardList"),m=e("Pagination"),C=e("SelectMenuDialog");return a(),t("div",Fo,[i("div",Ro,[i("div",Mo,[i("div",$o,[i("div",Oo,[r(v,{value:u.selectedCoin,"onUpdate:value":s[0]||(s[0]=e=>u.selectedCoin=e),coinList:u.coinList},null,8,["value","coinList"])]),l.isFullSize?(a(),t("div",Ho)):p("",!0),l.isFullSize?(a(),f(g,{key:1,class:"label-filter",options:d.labelOptions,values:u.selectedLabels,onChange:d.updateSelectedLabels},{line:o((()=>s[5]||(s[5]=[i("div",{class:"line"},null,-1)]))),_:1},8,["options","values","onChange"])):p("",!0)]),i("div",Wo,[r(h,{sortBy:u.sortBy,"onUpdate:sortBy":s[1]||(s[1]=e=>u.sortBy=e),sortByOptions:d.sortByOptions},null,8,["sortBy","sortByOptions"]),l.isPadSize?(a(),t("div",{key:0,class:"mobile-select-menu",onClick:s[2]||(s[2]=e=>u.openSelectMenuDialog=!0)},[r(y,{class:"icon-filter"})])):p("",!0)])]),l.isMobile?(a(),t("div",{key:0,class:"mobile-select-menu",onClick:s[3]||(s[3]=e=>u.openSelectMenuDialog=!0)},[r(y,{class:"icon-filter"})])):p("",!0)]),r(b,{strategyList:u.strategyList,cardType:u.STRATEGY_CARD_TYPE.INDEX_BY_ROI,autoHeight:!l.isMobile,onLoadMore:d.handleLoadMore},null,8,["strategyList","cardType","autoHeight","onLoadMore"]),i("div",Vo,[l.isMobile?p("",!0):(a(),f(m,{key:0,pagerCount:5,background:!1,total:u.pagination.totalRows,totalPages:u.pagination.totalPages,pageSize:u.pagination.pageSize,currentPage:u.pagination.page,onHandleCurrentChangeP:d.handleChangePage},null,8,["total","totalPages","pageSize","currentPage","onHandleCurrentChangeP"]))]),r(C,{visible:u.openSelectMenuDialog,"onUpdate:visible":s[4]||(s[4]=e=>u.openSelectMenuDialog=e),coinList:u.coinList,labelOptions:d.labelOptions,initialValues:d.mobileSelectedMenuInitialValue,isByRoi:!0,sortByOptions:d.sortByOptions,onConfirm:d.handleSelectMenuConfirm},null,8,["visible","coinList","labelOptions","initialValues","sortByOptions","onConfirm"])])}],["__scopeId","data-v-b9af1cc8"]]),jo={name:"ByTokenStrategies",components:{Pagination:pt,StrategyCardList:fe,AutoTraderCryptoDropdown:zt,TradingSorting:Zt,EmptyDisplay:Kt},setup(){const e=Lt(),t=Ae();
1return{autoTraderInitDataStore:e,autoTraderTriggerStore:Ft(),autoTraderUserStore:De(),isPausingAllStrategyPolling:c((()=>t.isPausingAllStrategyPolling))}},data:()=>({STRATEGY_CARD_TYPE:Ge,coinList:[],selectedCoin:null,pagination:{page:1,pageSize:20,totalPages:0,totalRows:0},sortBy:"createdAt:DESC"}),computed:{...H("trading",["copyWise"]),...O(["isEnableCopyWiseSignalBot"]),sortByOptions(){return[{key:"createdAt",text:this.$t("t.addTime"),requireSort:!0},{key:"roi",text:this.$t("trading.return"),requireSort:!0},{key:"popular",text:this.$t("t.popularity"),requireSort:!0}]},userWatchlistData(){return this.autoTraderUserStore.userWatchlistData({sortBy:this.sortBy,coin:this.selectedCoin,pagination:{page:this.pagination.page,pageSize:this.isMobile?50:20}})},userWatchlist(){return this.userWatchlistData.list}},watch:{"autoTraderInitDataStore.initData":{immediate:!0,deep:!0,handler(e){this.coinList=(null==e?void 0:e.coinsWithName)||[]}},userWatchlistData:{handler(e){this.pagination.totalRows=e.total,this.pagination.totalPages=e.totalPage},immediate:!0,deep:!0},selectedCoin(){this.pagination.page=1},sortBy(){this.pagination.page=1}},mounted(){this.userWatchlist.length||this.$openDialog(Z)},methods:{handleChangePage(e){this.pagination.page=e,document.querySelector(".watch-strategies").scrollIntoView()}}},zo={class:"watch-strategies"},Yo={class:"filters-wrap"},Go={class:"filters-inner-wrap"},Zo={class:"token-and-labels-wrap"},qo={class:"token-filter-wrap"},Ko={class:"sort-filter-wrap"},Xo={class:"page-wrapper"};const Qo=St(jo,[["render",function(l,s,o,n,c,u){const d=e("AutoTraderCryptoDropdown"),v=e("TradingSorting"),g=e("EmptyDisplay"),h=e("StrategyCardList"),y=e("Pagination");return a(),t("div",zo,[i("div",Yo,[i("div",Go,[i("div",Zo,[i("div",qo,[r(d,{value:c.selectedCoin,"onUpdate:value":s[0]||(s[0]=e=>c.selectedCoin=e),coinList:c.coinList},null,8,["value","coinList"])])]),i("div",Ko,[r(v,{sortBy:c.sortBy,"onUpdate:sortBy":s[1]||(s[1]=e=>c.sortBy=e),sortByOptions:u.sortByOptions},null,8,["sortBy","sortByOptions"])])])]),u.userWatchlist.length?(a(),f(h,{key:1,strategyList:u.userWatchlist,cardType:c.STRATEGY_CARD_TYPE.INDEX_BY_TOKEN,autoHeight:!l.isMobile,isMyWatch:""},null,8,["strategyList","cardType","autoHeight"])):(a(),f(g,{key:0,description:l.$t("trading.watchlistIsEmpty"),isShowButton:!1},null,8,["description"])),i("div",Xo,[l.isMobile?p("",!0):(a(),f(y,{key:0,pagerCount:5,background:!1,total:c.pagination.totalRows,totalPages:c.pagination.totalPages,pageSize:c.pagination.pageSize,currentPage:c.pagination.page,onHandleCurrentChangeP:u.handleChangePage},null,8,["total","totalPages","pageSize","currentPage","onHandleCurrentChangeP"]))])])}],["__scopeId","data-v-bf7ff707"]]),Jo={class:"all-strategies"},en={class:"header-wrapper"},tn={class:"title-wrap"},an={class:"tabs-wrapper"},ln=["onClick"],sn={class:"tooltip-wrapper"},rn={class:"section"},on={class:"title"},nn={class:"info"},cn={class:"section"},un={class:"title"},dn={class:"info"},vn="watch",pn=St({__name:"index",setup(e){const n=y(),g=De(),b=k(Ge.INDEX_BY_TOKEN),m=k(!1),C=c((()=>n.state.loginState)),S=c((()=>g.watchlist)),L=c((()=>g.watchlistLoaded)),P=c((()=>{let e=[{id:Ge.INDEX_BY_TOKEN,name:"trading.copywise.byToken",tooltip:"copywise.allStrategies.tooltip.byToken"},{id:Ge.INDEX_BY_ROI,name:"trading.copywise.byReturn",tooltip:"copywise.allStrategies.tooltip.byRoi"}];return C.value&&(e=[{id:vn,name:"t.watchlist"},...e]),e}));return w(L,(e=>{e&&S.value.length&&(b.value=vn)}),{immediate:!0}),x((async()=>{C.value&&n.dispatch("updateAccountInfo")})),(e,n)=>(a(),t("div",Jo,[i("div",en,[i("div",tn,[i("span",null,s(e.$t("trading.copywise.allStrategies")),1),e.isMobile?(a(),f(l(Se),{key:0,class:"icon-info",onClick:n[0]||(n[0]=e=>m.value=!0)})):p("",!0)]),i("div",an,[(a(!0),t(u,null,d(P.value,(i=>(a(),t("span",{key:i.id,class:h(["tab",{"is-active":b.value===i.id}]),onClick:e=>{return t=i.id,void(b.value=t);var t}},[e.isMobile||!i.tooltip?(a(),t(u,{key:0},[v(s(e.$t(i.name)),1)],64)):(a(),f(l(Fe),{key:1,content:e.$t(i.name),tooltip:e.$t(i.tooltip),hasCursorQuestion:!1},null,8,["content","tooltip"]))],10,ln)))),128))])]),b.value===vn?(a(),f(l(Qo),{key:0})):p("",!0),b.value===l(Ge).INDEX_BY_TOKEN?(a(),f(l(so),{key:1})):p("",!0),b.value===l(Ge).INDEX_BY_ROI?(a(),f(l(Uo),{key:2}
1)):p("",!0),r(l(ia),{isShow:m.value,"onUpdate:isShow":n[1]||(n[1]=e=>m.value=e)},{default:o((()=>[i("div",sn,[i("div",rn,[i("div",on,s(e.$t("trading.copywise.byToken")),1),i("div",nn,s(e.$t("copywise.allStrategies.tooltip.byToken")),1)]),i("div",cn,[i("div",un,s(e.$t("trading.copywise.byReturn")),1),i("div",dn,s(e.$t("copywise.allStrategies.tooltip.byRoi")),1)])])])),_:1},8,["isShow"])]))}},[["__scopeId","data-v-cc2cc730"]]),gn={class:"copy-wise-mobile-footer"},hn={key:0,class:"not-login"},yn={class:"left"},bn=["src"],mn={class:"start-title"},fn={class:"right"},Cn={key:0,class:"avatar-wrapper"},Sn={class:"main"},Ln={class:"info"},kn={class:"info-title"},wn={class:"info-number"},Pn={class:"no-wrap"},Tn={class:"info"},In={class:"info-title"},_n={class:"info-number no-wrap"},Dn=St({__name:"MobileFooter",setup(n){const{enableAccountAvatar:u}=_e,d=y(),g=Lt(),m=De(),f=Ae(),C=b(),{usdtToCurrentFiat:S}=wt(),L=c((()=>d.state.loginState)),k=c((()=>d.state.lang)),w=c((()=>d.state.isApp)),P=c((()=>f.baseCurrency)),T=c((()=>m.copyWiseActivePnl)),I=c((()=>m.hasNotExecutedCopyWiseStrategy)),_=c((()=>m.copyWiseActiveRoi)),D=c((()=>{const e=Ee(T.value);return I.value?"--":S(T.value,!0,{formatKey:2,signed:!0,roundMode:e})})),A=c((()=>I.value||isNaN(_.value)?"--":Be(_.value,{postfix:""}))),E=()=>
1{if(w.value)return void bt({event:"LOGIN"});const e=encodeURI(window.location.pathname);C.push({path:`/${k.value}/login?redirect=${e}`})},B=()=>{C.push({name:Me.COPY_WISE_MY_PORTFOLIO,params:{lang:k.value,shareId:g.currentUserShareId}})};return(n,c)=>{const d=e("BaseButton");return a(),t("div",gn,[L.value?(a(),t("div",{key:1,class:"is-running",onClick:B},[l(u)?(a(),t("div",Cn,[r(l(Ne),{class:"avatar"})])):p("",!0),i("div",Sn,[i("div",Ln,[i("div",kn,s(n.$t("trading.activePnl")),1),i("div",wn,[i("p",{class:h(T.value<0?"red":"green")},s(D.value),3),i("span",Pn,s(P.value),1)])]),i("div",Tn,[i("div",In,s(n.$t("trading.activeReturn")),1),i("div",_n,[i("p",{class:h(_.value<0?"red":"green")},s(A.value),3),c[0]||(c[0]=i("span",null,"%",-1))])])]),r(l(Re),{class:"arrow",width:"16px",height:"16px"})])):(a(),t("div",hn,[i("div",yn,[i("img",{src:l(la)},null,8,bn),i("span",mn,s(n.$t("trading.copywise.mobile.start")),1)]),i("div",fn,[r(d,{class:"primary btn",onClick:E},{default:o((()=>[v(s(n.$t("login.login")),1)])),_:1})])]))])}}},[["__scopeId","data-v-4ea1cd44"]]),{showAutoTraderTutorialAfterLogin:An}=Ie,{enableAutoTraderSimplifiedVersion:En}=_e,Bn={name:"CopyWise",components:{CopyWiseHeader:ri,TopRankingTraders:Oi,TrendChallenge:Hr,HighlightedStrategies:Zi,LetAITrade:Fl,AllStrategies:pn,SimplifiedAllStrategies:Kr,MobileFooter:Dn,CopyWiseToast:Jt,CopyWiseInvestDialog:ke,CopyWiseShareDialog:J,CopySuccessDialog:Mt,TpSlDialog:Le,ExpressBuyWidget:ra,FullKycNotification:mt,InPageSidebar:oa,TradingTools:Qt},setup(){const e=function(){const{t:e}=n();return c((()=>({trackingSection:Te.homepage,onPopoverRender:(t,{state:a})=>{0===a.activeIndex&&(U(t.description,ya),t.nextButton.innerText=e("t.start")),2===a.activeIndex&&U(t.description,fa),3===a.activeIndex&&(U(t.description,Sa),t.nextButton.innerText=e("t.gotIt"))},steps:[{element:".tutorial-start",trackingStep:Pe.theFutureOfTradingIsHere,popover:{title:e("trading.autotrader.tutorial.welcome.title"),description:" ",align:"center"}},{element:"#tutorial-highlighted-strategies",trackingStep:Pe.highlightedStrategiesA,popover:{title:e("trading.copywise.highlightedStrategies"),description:e("trading.autotrader.tutorial.highlighted.0.description"),side:"top",align:"center"}},{element:"#tutorial-highlighted-strategies-tabs",trackingStep:Pe.highlightedStrategiesB,popover:{title:e("trading.copywise.highlightedStrategies"),description:" ",side:"bottom",align:"center"}},{element:"#highlighted-first-strategy",trackingStep:Pe.customizeAndInvest,popover:{title:e("trading.autotrader.tutorial.highlighted.customizeAndInvest"),description:" ",align:"center"}}]})))}(),{tutorialDriver:t,isViewed:a,resetTutorial:i}=we(Ct.AUTOTRADER_TUTORIALS_HOME,e);V("resetTutorial",i);const{isShowExpressBuyWidget:l,closeExpressBuyWidget:s}=wt(),r=ge(),o=X(),u=De(),d=kt(),v=Ae(),p=Ft(),g=Lt(),{loading:h}=_t(),y=c((()=>o.isShowTpSlDialog)),b=c((()=>u.hasNotExecutedCopyWiseStrategy)),m=c((()=>p.strategyCopiedId));return{enableAutoTraderSimplifiedVersion:En,tutorialDriver:t,isTutorialViewed:a,isShowExpressBuyWidget:l,closeExpressBuyWidget:s,autoTraderInitDataStore:g,isInitDataLoading:h,openIo:r.openIo,closeIo:r.closeIo,isShowTpSlDialog:y,hasNotExecutedCopyWiseStrategy:b,strategyCopiedId:m,getStrategySummary:u.getStrategySummary,isEnableAutoTraderMobileFooter:d.isEnableAutoTraderMobileFooter,setIsPausingHighlightStrategyPolling:v.setIsPausingHighlightStrategyPolling,setIsPausingAllStrategyPolling:v.setIsPausingAllStrategyPolling,setStrategyCopiedId:p.setStrategyCopiedId,setTrendChallengeSymbolFromSharelink:p.setTrendChallengeSymbolFromSharelink,getUserWatchlist:u.getUserWatchlist}},data:()=>({BASE_CURRENCY:ft,timer:null,isShowGroupedStrategyDialog:!1,isShowShareDialog:!1,isShowSuccessDialog:!1,shareData:{},strategyCardType:Ge.INDEX_BY_TOKEN,strategyCoinFromShareLink:"",strategySymbolFromShareLink:"",strategyIdFromShareLink:""}),computed:{...H(["lang","isAccessibleFunctionsLoaded","loginState"]),...H("futures",["marketList"]),...O(["isEnableCopyWise","isEnableCopyWiseLeaderboard","isEnableAutoTraderTrendChallenge"]),...O("futures",["getSymbolByCoin"]),isReadyForQuerySymbol(){return this.marketList.length>0&&!this.isInitDataLoading}},watch:{isEnableCopyWise:{immediate:!0,handler(e){this.isAccessibleFunctionsLoaded&&!e&&this.$router.replace({name:"home",params:{lang:this.lang}})}},isMobile:{immediate:!0,handler(e){this.setIsFooterCustomizedHidden(e)}},strategyCopiedId(){this.loginState&&this.hasNotExecutedCopyWiseStrategy&&this.get7dStrategySummary()},isShowGroupedStrategyDialog(e){e||(this.strategyIdFromShareLink="")},isReadyForQuerySymbol:{immediate:!0,handler(){this.setStrategyByQuerySymbol()}},"$route.query":{immediate:!0,deep:!0,handler(){this.setStrategyByQuerySymbol()}}},created(){Dt(),this.get7dStrategySummary(),this.loginState&&(this.timer=setInterval(this.get7dStrategySummary,5e3));const{replacePath:e}=this.$route.query;e&&this.$router.replace(e)},mounted(){this.tutorial(),this.openIo(),this.loginState&&this.getUserWatchlist()},beforeUnmount(){clearInterval(this.timer),this.closeIo(),this.setIsFooterCustomizedHidden(!1),this.resumePolling()},methods:{...W(["setIsFooterCustomizedHidden"]),setStrategyByQuerySymbol(){var e;const{symbol:t,strategyId:a,type:i}=this.$route.query;if(this.isReadyForQuerySymbol&&(t||a)){if(i===st.FUTURES_TREND)this.isEnableAutoTraderTrendChallenge&&this.setTrendChallengeSymbolFromSharelink(t);else if(t){if(!((null==(e=this.autoTraderInitDataStore.initData)?void 0:e.coinsWithName)||[]).some((e=>e.coin===t)))return void this.$router.replace({...this.$route,query:{...this.$route.query,symbol:void 0,strategyId:void 0,type:void 0}});this.isShowGroupedStrategyDialog=!0,this.strategyCoinFromShareLink=t,this.strategyIdFromShareLink=a||"",this.strategySymbolFromShareLink=this.getSymbolByCoin(t)}this.$router.replace({...this.$route,query:{...this.$route.query,symbol:void 0,strategyId:void 0,type:void 0}})}}
1,get7dStrategySummary(){this.getStrategySummary({periodRange:7})},handleCopySuccess(e,t){const{trackCopiedEvent:a}=j(e,this.strategyCardType);a(t),this.isShowGroupedStrategyDialog=!1,this.$nextTick((()=>{this.isShowSuccessDialog=!0,this.setStrategyCopiedId()}))},handleShare(e){const{trackShareClickedEvent:t}=j(e,this.strategyCardType);this.shareData=e,this.isShowShareDialog=!0,this.isShowGroupedStrategyDialog=!1,t()},handleBackFromShareDialog(){this.isShowShareDialog=!1,this.isShowGroupedStrategyDialog=!0},resumePolling(){this.setIsPausingHighlightStrategyPolling(!1),this.setIsPausingAllStrategyPolling(!1)},tutorial(){const e="show"===this.$route.query.tutorial,t=!this.isTutorialViewed,a=!An||this.loginState;(e||t&&a)&&(this.tutorialDriver.drive(),e&&this.$router.replace({...this.$route,query:{...this.$route.query,tutorial:void 0}}))}}},xn={class:"copy-wise tabular-nums"},Nn={class:"copy-wise-inner"};const Fn=St(Bn,[["render",function(t,l,s,n,c,u){const d=e("FullKycNotification"),v=e("CopyWiseHeader"),g=e("TrendChallenge"),h=e("HighlightedStrategies"),y=e("LetAITrade"),b=e("TopRankingTraders"),m=e("SimplifiedAllStrategies"),C=e("AllStrategies"),S=e("TradingTools"),L=e("MobileFooter"),k=e("CopyWiseToast"),w=e("CopyWiseInvestDialog"),P=e("CopyWiseShareDialog"),T=e("CopySuccessDialog"),I=e("TpSlDialog"),_=e("ExpressBuyWidget"),D=e("InPageSidebar");return a(),f(D,null,{default:o((()=>[i("div",xn,[i("div",Nn,[r(d,{class:"full-kyc-notification"}),r(v),t.isEnableAutoTraderTrendChallenge?(a(),f(g,{key:0})):p("",!0),r(h),n.enableAutoTraderSimplifiedVersion?(a(),f(y,{key:1})):p("",!0),t.isEnableCopyWiseLeaderboard?(a(),f(b,{key:2})):p("",!0),n.enableAutoTraderSimplifiedVersion?(a(),f(m,{key:3})):(a(),f(C,{key:4})),t.isMobile?p("",!0):(a(),f(S,{key:5})),t.isMobile&&n.isEnableAutoTraderMobileFooter?(a(),f(L,{key:6})):p("",!0),r(k),c.isShowGroupedStrategyDialog?(a(),f(w,{key:7,isShow:c.isShowGroupedStrategyDialog,"onUpdate:isShow":l[0]||(l[0]=e=>c.isShowGroupedStrategyDialog=e),data:{coin:c.strategyCoinFromShareLink,symbol:c.strategySymbolFromShareLink},shareLinkStrategyId:c.strategyIdFromShareLink,type:c.strategyCardType,handleShare:u.handleShare,onSuccess:u.handleCopySuccess},null,8,["isShow","data","shareLinkStrategyId","type","handleShare","onSuccess"])):p("",!0),c.isShowShareDialog?(a(),f(P,{key:8,isShow:c.isShowShareDialog,"onUpdate:isShow":l[1]||(l[1]=e=>c.isShowShareDialog=e),data:c.shareData,showPnl:!1,onToggleBack:u.handleBackFromShareDialog},null,8,["isShow","data","onToggleBack"])):p("",!0),c.isShowSuccessDialog?(a(),f(T,{key:9,isShow:c.isShowSuccessDialog,"onUpdate:isShow":l[2]||(l[2]=e=>c.isShowSuccessDialog=e)},null,8,["isShow"])):p("",!0),n.isShowTpSlDialog?(a(),f(I,{key:10,isShow:n.isShowTpSlDialog,"onUpdate:isShow":l[3]||(l[3]=e=>n.isShowTpSlDialog=e)},null,8,["isShow"])):p("",!0),n.isShowExpressBuyWidget?(a(),f(_,{key:11,visible:n.isShowExpressBuyWidget,forceReceiveCurrency:c.BASE_CURRENCY,onOnClosed:n.closeExpressBuyWidget},null,8,["visible","forceReceiveCurrency","onOnClosed"])):p("",!0)])])])),_:1})}],["__scopeId","data-v-a57bf52c"]]);export{Fn as default};
2//# sourceMappingURL=BjsLmQXo.js.map

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.