PageSourceSearch

https://www.xxkk.com/_next/static/chunks/1751.26fa8528189a4562.js

js xxkk.com collected 2026-09-26 03:59:27 UTC 134,616 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1751],{33013:function(e,t,n){n.d(t,{Zo:function(){return l},e:function(){return c},m5:function(){return d}});var i=n(64254),a=n.n(i),s=n(67294),r=n(28748);n(37657);var o=n(85893),l=20,c=48,d=62;t.ZP=function(e){var t=e.items,n=e.height,i=void 0===n?360:n,c=e.flexHeight,d=void 0!==c&&c,p=e.scrollElement,m=e.rowContentHeight,u=e.rowGap,f=e.renderItem,b=e.getItemKey,h=void 0===b?function(e,t){return e.id||e.quoteCode||t}:b,g=(void 0===m?54:m)+(void 0===u?4:u),j=t.length>l,w=void 0!==p,v=(0,s.useCallback)(function(e){var n=e.index,i=e.key,a=e.style;return(0,o.jsx)("div",{style:a,children:f(t[n],n)},i)},[t,f]);return j?w?p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"jsx-".concat(x.__hash)+" list virtualized-list external-scroll",children:(0,o.jsx)(r._K,{scrollElement:p,children:function(e){var n=e.height,i=e.scrollTop,a=e.isScrolling,s=e.registerChild;return(0,o.jsx)("div",{ref:s,className:"jsx-".concat(x.__hash),children:(0,o.jsx)(r.qj,{disableHeight:!0,children:function(e){var s=e.width;return s>0&&n>0?(0,o.jsx)(r.aV,{autoHeight:!0,width:s,height:n,rowCount:t.length,rowHeight:g,rowRenderer:v,overscanRowCount:15,isScrolling:a,scrollTop:i}):null}})})}})}),(0,o.jsx)(a(),{id:x.__hash,children:x})]}):null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{style:d?{height:"100%",minHeight:0}:{height:i},className:"jsx-".concat(x.__hash)+" list virtualized-list",children:(0,o.jsx)(r.qj,{disableHeight:!d,children:function(e){var n=e.width,a=e.height;return n>0&&(!d||a>0)?(0,o.jsx)(r.aV,{width:n,height:d?a:i,rowCount:t.length,rowHeight:g,rowRenderer:v,overscanRowCount:15}):null}})}),(0,o.jsx)(a(),{id:x.__hash,children:x})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"jsx-".concat(x.__hash)+" list",children:t.map(function(e,t){return(0,o.jsx)("div",{className:"jsx-".concat(x.__hash),children:f(e,t)},h(e,t))})}),(0,o.jsx)(a(),{id:x.__hash,children:x})]})};var x=[".list.jsx-3175901542{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;gap:".concat(4,"px;padding-bottom:").concat(16,"px;}"),".list.virtualized-list.jsx-3175901542{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden;gap:0;padding-bottom:0;}",".list.virtualized-list.external-scroll.jsx-3175901542{overflow:visible;}",".virtualized-list.jsx-3175901542 .ReactVirtualized__List{outline:none;padding-bottom:".concat(12,"px;}")];x.__hash="3175901542"},96977:function(e,t,n){var i=n(76232),a=n(43631),s=n(95541),r=n(38323),o=n(67294),l=n(76933),c=n(85893),d=(0,o.memo)(function(e){var t=e.className,n=e.iconActive,d=e.size,x=e.icon,p=(0,o.useState)(!1),m=(p[0],p[1]),u=(0,o.useState)(!1),f=u[0],b=u[1],h=(0,a.Fs)().isMobile;return(0,o.useEffect)(function(){m(!!n)},[n]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{type:"button",className:(0,r.Wy)("nui-icon-btn",t),onMouseEnter:function(){h||m(!0)},onMouseLeave:function(){h||m(!1)},onClick:function(){return b(!0)},"aria-label":(0,s.bn)("交易设置"),"aria-expanded":f,children:null!=x&&"string"!=typeof x?x:(0,c.jsx)(i.Z,{name:"string"==typeof x?x:"trade-config",size:void 0===d?16:d,decorative:!0})}),(0,c.jsx)(l.Gs,{open:f,onClose:function(){return b(!1)}})]})});t.Z=d},33335:function(e,t,n){n.d(t,{T:function(){return s},z:function(){return a}});var i=n(67294),a=(0,i.createContext)(void 0),s=function(){return(0,i.useContext)(a)}},50093:function(e,t,n){n.d(t,{O:function(){return q}});var i,a=n(59499),s=n(4730),r=n(94115),o=n(45858),l=n(89497),c=n(93049),d=n(95541),x=n(90512),p=n(67294),m=n(23459),u=n(25117),f=n(50029),b=n(64254),h=n.n(b),g=n(64687),j=n.n(g),w=n(63673),v=n(43631),y=n(16508),k=n(38323),_=n(27484),N=n.n(_),S=n(17973),T=n(85893),C=((i={}).SWAP="SWAP",i.LITE="LITE",i),E=function(e){return e<10?"0"+e:e},I=function(e){var t=Math.floor(e/1e3/60/60),n=Math.floor((e/1e3/60/60-t)*60);return{h:t,m:n,s:Math.floor(((e/1e3/60/60-t)*60-n)*60)}},z=(0,p.memo)(function(e){var t=e.type,n=e.onFundRatePeriodChange,i=(0,p.useState)("--:--:--"),a=i[0],s=i[1],r=(0,p.useState)(0),o=r[0],l=r[1],c=(0,p.useState)(!1),m=c[0],u=c[1],b=(0,p.useState)(0),g=b[0],_=b[1],z=(0,p.useRef)(null),O=(0,p.useRef)(null),P=(0,v.tv)().query,L=(0,S.Z)().isRTL;(0,y.ii)(function(e){try{P.id&&m&&t==C.SWAP&&_(e[P.id].fundRate)}catch(e){}},void 0,[P.id,m]);var F=(0,p.useCallback)((0,f.Z)(j().mark(function e(){var i,a,r,o,c,d,x,p,m,f,b,h;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(O.current&&(clearTimeout(O.current),O.current=null),i=0,e.prev=2,t!=C.SWAP){e.next=10;break}return e.next=6,(0,w.getSwapContractDetailApi)(P.id);case 6:200===(a=e.sent).code&&(p=null==(x=null===(r=a.data)||void 0===r?void 0:r.nextFundRateTime)||""===x?NaN:Number(x),u("4"!=="".concat(null===(o=a.data)||void 0===o?void 0:o.status)),_(null===(c=a.data)||void 0===c?void 0:c.fundRate),null==n||n(null===(d=a.data)||void 0===d?void 0:d.fundRateInterval),Number.isFinite(p)&&p>0&&(l(p),(i=p-N()().valueOf())>0&&(f=(m=I(i)).h,b=m.m,h=m.s,s("".concat(E(f),":").concat(E(b),":").concat(E(h)))))),e.next=11;break;case 10:C.LITE;case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:i<=0&&(O.current=setTimeout(function(){F()},5e3));case 16:case"end":return e.stop()}},e,null,[[2,13]])})),[P.id,t,n]);(0,p.useEffect)(function(){return F(),function(){O.current&&(clearTimeout(O.current),O.current=null)}},[P.id,m,F]),(0,p.useEffect)(function(){var e=function(){"visible"===document.visibilityState&&F()};return document.addEventListener("visibilitychange",e),function(){return document.removeEventListener("visibilitychange",e)}},[F]),(0,p.useEffect)(function(){if(z.current&&clearInterval(z.current),!Number.isFinite(o)||o<=0)return function(){};var e=function(){var e=o-N()().valueOf();if(e<=0){z.current&&clearInterval(z.current),z.current=null,s("00:00:00"),F();return}var t=I(e),n=t.h,i=t.m,a=t.s;s("".concat(E(n),":").concat(E(i),":").concat(E(a)))};return e(),z.current=setInterval(e,1e3),function(){z.current&&(clearInterval(z.current),z.current=null)}},[o,P.id,F]);var Z=null==g?void 0:g.mul(100).toFixed(4);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"jsx-3954492951 funding-rate-countdown",children:[(0,T.jsxs)("span",{"aria-label":(0,d.bn)("Current funding rate: negative, shorts pay longs"),className:"jsx-3954492951 "+((0,x.Z)(Number(Z)>=0?"main-raise":"main-fall",L&&"lock-ltr unicode-isolate")||""),children:[(0,k.Om)("--:--:--"!=a&&(0===Number(Z)?"0".toFixed(4):Z)),"%"]})," ","/"," ",(0,T.jsx)("span",{"aria-label":(0,d.bn)("Time until next funding settlement"),style:{display:"inline-block",textAlign:"left",minWidth:"50px"},className:"jsx-3954492951",children:a})]}),(0,T.jsx)(h(),{id:"3954492951",children:[".funding-rate-countdown.jsx-3954492951{color:var(--content_1);font-family:Lexend,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px;}"]})]})},function(){return!0}),O=n(92342),P=["className"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Z=function(e){var t=e.className,n=(0,s.Z)(e,P);return(0,T.jsx)(o.Me,F(F({componnet:"span",className:(0,x.Z)("info-label",t)},n),{},{children:(0,d.bn)("资金费率/倒计时")}))},q=(0,p.memo)(function(e){var t=e.isOpen,n=(0,p.useState)(8),i=n[0],a=n[1],s=(0,p.useState)(!1),o=s[0],x=s[1],f=(0,c.gW)("/articles/4619909027230"),b=(0,p.useMemo)(function(){return(0,d.T0)((0,d.bn)("买方及卖方在下个资金时段要交换的资金费率。资金费率周期内(每 {period} 小时)每分钟计算一次溢价指数,并将溢价指数以时间加权平均的方式应用于计算资金费率。 {more}"),{period:i,more:(0,T.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:r.C$,href:f,children:(0,d.bn)("了解更多")})})},[f,i]);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.Desktop,{children:(0,T.jsx)(l.Z,{placement:"top",title:(0,T.jsxs)(T.Fragment,{children:[b,r.Wf]}),children:(0,T.jsx)(Z,{})})}),(0,T.jsxs)(O.MobileOrTablet,{children:[(0,T.jsx)("div",{onClick:function(){return x(!0)},children:(0,T.jsx)(Z,{})}),(0,T.jsx)(m.gY,{visible:o,close:function(){return x(!1)},hasBtn:!1,content:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(u.q,{blocks:[{key:"funding-rate-desc",title:(0,d.bn)("资金费率"),description:b}]}),r.Wf]})})]}),(0,T.jsx)("div",{children:t?(0,T.jsx)(z,{type:C.SWAP,onFundRatePeriodChange:a}):"--"})]})});q.displayName="SwapFundingRateField"},61112:function(e,t,n){n.d(t,{h:function(){return eK}});var i,a=n(59499),s=n(50029),r=n(64254),o=n.n(r),l=n(64687),c=n.n(l),d=n(63673),x=n(43631),p=n(95541),m=n(97126),u=n(38323),f=n(67294),b=n(91291),h=n(90116),g=n(76232),j=n(33013),w=n(89887),v=n(16508),y=n(95012),k=n(95022),_=n(33171),N=n(74862),S=n(23459),T=n(33335),C=n(52306),E=n(17973),I=n(83198),z=n(55652),O=n(71977),P=n(27241),L=n(88738),F=n(53525),Z=n(24203),q=n(85893),R=void 0;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var U=((i=U||{}).NAME="name",i.PRICE="price",i.CHANGE="change",i),A=function(e){var t=e.item,n=e.isHot,i=e.isNew;return(0,q.jsxs)("div",{className:"jsx-3093313709 quote-name-item",children:[(0,u.a6)(t.id)?(0,q.jsx)("bdi",{className:"jsx-3093313709 symbol ltr-bidi",children:(0,q.jsxs)("span",{className:"jsx-3093313709",children:[t.coin,"/",t.quoteCoin]})}):(0,u.hd)(t.id)&&"加密货币"===t.zone&&t.coin&&t.quoteCoin?(0,q.jsx)("bdi",{className:"jsx-3093313709 symbol ltr-bidi",children:(0,q.jsxs)("span",{className:"jsx-3093313709",children:[t.coin,t.quoteCoin]})}):(0,u.hd)(t.id)&&t.zone&&"加密货币"!==t.zone?(0,q.jsx)("span",{className:"jsx-3093313709 symbol",children:(0,p.bn)(t.name)}):(0,q.jsx)("span",{className:"jsx-3093313709 symbol",children:t.name}),!(0,u.a6)(t.id)&&!(0,u.hd)(t.id)&&(0,q.jsx)("span",{className:"jsx-3093313709 flag",children:(0,p.bn)("永续")}),i&&(0,q.jsx)("span",{className:"jsx-3093313709 new",children:"NEW"}),n&&(0,q.jsx)(g.Z,{size:12,name:"common-hot-0",className:"hot"}),(0,q.jsx)(o(),{id:"3093313709",children:[".quote-name-item.jsx-3093313709{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:4px;min-width:0;}",".quote-name-item.jsx-3093313709 .symbol.jsx-3093313709{color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;white-space:nowrap;}",".quote-name-item.jsx-3093313709 .flag.jsx-3093313709{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;width:auto;height:16px;min-width:32px;min-height:16px;padding:1px 6px;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px;text-align:center;font-size:10px;font-weight:400;line-height:14px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;white-space:nowrap;background:var(--brand_20,#062024);color:var(--brand_default,#1da2b3);}",".quote-name-item.jsx-3093313709 .new.jsx-3093313709{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;width:auto;height:16px;min-width:32px;min-height:16px;padding:1px 6px;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px;text-align:center;font-size:10px;font-weight:400;line-height:14px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;white-space:nowrap;background:var(--yellow_20);color:var(--yellow);}",".quote-name-item.jsx-3093313709 .hot{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;display:block;}",".ltr-bidi.jsx-3093313709{direction:ltr;unicode-bidi:embed;}"]})]})},W=function(e){var t=e.item,n=e.currentId,i=e.onClose,a=e.isHot,s=e.isNew,r=e.isRTL,l=e.isLiteClosed,c=void 0!==l&&l,d=e.getStarType;return(0,q.jsx)(p.E8,{id:t.id,children:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{onClick:i,className:o().dynamic([["709022984",[u.a$.mobile]]])+" "+((0,u.Wy)("quote-list-item",(0,u.$)(t.id===n))||""),children:[(0,q.jsxs)("div",{className:o().dynamic([["709022984",[u.a$.mobile]]])+" quote-field-item name",children:[(0,q.jsx)("div",{className:o().dynamic([["709022984",[u.a$.mobile]]])+" star-wrapper",children:(0,q.jsx)(w.Z,{code:t.id,type:d(t.id),inQuoteList:!0})}),(0,q.jsx)(A,{item:t,isHot:a,isNew:s})]}),(0,q.jsx)("div",{className:o().dynamic([["709022984",[u.a$.mobile]]])+" "+((0,u.Wy)("quote-field-item price",c&&"is-closed")||""),children:(0,u.Om)(t.price.toFormat(t.digit))}),(0,q.jsx)("div",{className:o().dynamic([["709022984",[u.a$.mobile]]])+" quote-field-item rate",children:(0,q.jsx)("span",{className:o().dynamic([["709022984",[u.a$.mobile]]])+" "+((0,u.Wy)(r&&"lock-ltr",c?"is-closed":t.isUp?"is-up":"is-down")||""),children:c?(0,p.bn)("休市"):"".concat(t.rate,"%")})})]}),(0,q.jsx)(o(),{id:"709022984",dynamic:[u.a$.mobile],children:[".quote-list-item.__jsx-style-dynamic-selector{padding:0 18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:40px;color:var(--content_1);font-weight:500;}",".quote-list-item.active.__jsx-style-dynamic-selector{background:var(--fill_default,#1d1d1d);}",".quote-list-item.__jsx-style-dynamic-selector .name.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".quote-list-item.__jsx-style-dynamic-selector .name.__jsx-style-dynamic-selector .star-wrapper.__jsx-style-dynamic-selector{margin-inline-end:4px;}",".quote-list-item.__jsx-style-dynamic-selector .price.__jsx-style-dynamic-selector,.quote-list-item.__jsx-style-dynamic-selector .rate.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row-reverse;-ms-flex-flow:row-reverse;flex-flow:row-reverse;}",".quote-list-item.__jsx-style-dynamic-selector .price.is-closed.__jsx-style-dynamic-selector,.quote-list-item.__jsx-style-dynamic-selector .rate.__jsx-style-dynamic-selector .is-closed.__jsx-style-dynamic-selector{color:var(--content_3);}",".quote-list-item.__jsx-style-dynamic-selector .rate.__jsx-style-dynamic-selector .is-up.__jsx-style-dynamic-selector{color:var(--color-green);}",".quote-list-item.__jsx-style-dynamic-selector .rate.__jsx-style-dynamic-selector .is-down.__jsx-style-dynamic-selector{color:var(--color-red);}",".quote-list-item.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector{-webkit-flex:3;-ms-flex:3;flex:3;}",".quote-list-item.__jsx-style-dynamic-selector .rate.__jsx-style-dynamic-selector{-webkit-flex:2 !important;-ms-flex:2 !important;flex:2 !important;}","@media ".concat(u.a$.mobile,"{.quote-list-item.__jsx-style-dynamic-selector{padding:12px 1rem;line-height:normal;font-size:12px;font-weight:400;color:var(--content_1);}.quote-list-item.__jsx-style-dynamic-selector .name.__jsx-style-dynamic-selector{width:45%;-webkit-flex:none;-ms-flex:none;flex:none;gap:4px;}.quote-list-item.__jsx-style-dynamic-selector .name.__jsx-style-dynamic-selector .star-wrapper.__jsx-style-dynamic-selector{margin-inline-end:0;}.quote-list-item.__jsx-style-dynamic-selector .price.__jsx-style-dynamic-selector{-webkit-box-pack:end;
1-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-flex:1;-ms-flex:1;flex:1;}.quote-list-item.__jsx-style-dynamic-selector .rate.__jsx-style-dynamic-selector{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex:1 !important;-ms-flex:1 !important;flex:1 !important;}}")]})]})})},X=function(e){var t,n=e.item,i=e.currentId,a=e.onClose,s=e.isHot,r=e.isNew,l=e.isRTL,c=e.getStarType;return(0,q.jsx)(p.E8,{id:n.id,children:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{onClick:a,className:"jsx-3508207016 "+((0,u.Wy)("swap-list-grid is-row compact",(0,u.$)(n.id===i))||""),children:[(0,q.jsxs)("div",{className:"jsx-3508207016 col-start stack",children:[(0,q.jsx)("div",{className:"jsx-3508207016 title",children:(0,q.jsx)(A,{item:n,isHot:s,isNew:r})}),(0,q.jsx)("div",{className:"jsx-3508207016 description",children:(0,q.jsxs)("span",{className:"jsx-3508207016",children:["Vol ",null==n||null===(t=n.volume)||void 0===t?void 0:t.toFormatUnit()]})})]}),(0,q.jsxs)("div",{className:"jsx-3508207016 col-end stack",children:[(0,q.jsx)("div",{className:"jsx-3508207016 title",children:(0,q.jsx)("span",{className:"jsx-3508207016 price",children:(0,u.Om)(n.price.toFormat(n.digit))})}),(0,q.jsx)("div",{className:"jsx-3508207016 description",children:(0,q.jsxs)("span",{className:"jsx-3508207016 "+((0,u.Wy)("rate",n.isUp?"raise":"fall",l&&"lock-ltr")||""),children:[n.rate,"%"]})})]}),(0,q.jsx)("div",{className:"jsx-3508207016 col-action",children:(0,q.jsx)(w.Z,{width:20,height:20,code:n.id,type:c(n.id),inQuoteList:!0})})]}),(0,q.jsx)(o(),{id:"3508207016",children:[".title.jsx-3508207016{color:var(--content_1);font-size:14px;font-weight:500;line-height:20px;}",".description.jsx-3508207016{color:var(--content_3);font-size:12px;font-weight:400;line-height:16px;}",".price.jsx-3508207016{color:var(--content_1);}",".rate.raise.jsx-3508207016{color:var(--color-green);}",".rate.fall.jsx-3508207016{color:var(--color-red);}"]})]})})},H=function(){return(0,q.jsx)(g.Z,{name:"common-modal-close",size:16,enableSkin:!0})},$=[".quote-list-drawer .search-wrap,.quote-list-sheet .search-wrap{margin:18px;margin-bottom:10px;}",".quote-list-drawer .search-wrap .search-input,.quote-list-sheet .search-wrap .search-input{height:38px !important;}",".tab-wrapper.jsx-631845728 ul.jsx-631845728{margin:0;color:var(--content_3);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0px 18px;}",".tab-wrapper.jsx-631845728 ul.jsx-631845728 li.jsx-631845728{padding:8px 0;margin-inline-end:24px;height:36px;}",".tab-wrapper.jsx-631845728 ul.jsx-631845728 li.active.jsx-631845728{font-weight:500;color:var(--skin-hover-font-color);border-bottom:2px solid var(--skin-hover-font-color);}",".list-wrapper.jsx-631845728{margin:0 -16px;overflow:visible;display:block;min-height:0;}",".list-wrapper.jsx-631845728 .list{margin:0;padding:0;gap:0;padding-bottom:0;}",".list-wrapper.jsx-631845728 .list.virtualized-list{-webkit-flex:none;-ms-flex:none;flex:none;min-height:0;height:auto;}",".list-wrapper.jsx-631845728 ul.jsx-631845728{margin:0;padding:0;}",".list-wrapper.jsx-631845728 ul.jsx-631845728 li.jsx-631845728{height:40px;}",".quote-list-sheet .quote-list-sticky-top.jsx-631845728{position:-webkit-sticky;position:sticky;top:40px;z-index:5;background:var(--bg_pop);margin:0 -16px;padding:0 16px;}",".type-wrapper.jsx-631845728{padding:0;margin:0 -16px;margin-top:16px;}",".type-wrapper.jsx-631845728 margin.jsx-631845728 .mobile-list{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".swap-options.jsx-631845728{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:12px;margin-bottom:16px;}",".type-container.jsx-631845728{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0 16px;gap:8px;}",".type-container.jsx-631845728 button.jsx-631845728{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;border:none;outline:none;padding:4px 8px;font-size:12px;font-weight:500;border-radius:4px;color:var(--content_2);background:var(--fill_default);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;}",".type-container.jsx-631845728 button.active.jsx-631845728{color:var(--brand_default);background:var(--brand_30);}",".type-container.jsx-631845728 button.jsx-631845728 span.jsx-631845728{display:inline-block;margin-inline-start:2px;height:14px;padding:0 4px;border-radius:4px;background:#f04e3f;line-height:14px;color:#fff;}",".type-container.jsx-631845728 .mobile-arrow{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:9px;background-color:var(--theme-background-color-disabled-light);height:24px;width:24px;}",".type-container.jsx-631845728 .prev,.type-container.jsx-631845728 .next{background:none;opacity:1;height:24px;width:24px;}",".type-container.jsx-631845728 .prev{left:0;}",".type-container.jsx-631845728 .next{right:0;}","@media ".concat(u.a$.mobile,"{.quote-list-drawer .search-wrap,.quote-list-sheet .search-wrap{margin:0;margin-bottom:12px;padding:0;}.tab-wrapper.jsx-631845728{padding:0;}.tab-wrapper.jsx-631845728 ul.jsx-631845728{padding:0;padding-bottom:8px;gap:1.5rem;color:var(--content_2);overflow:auto;}.tab-wrapper.jsx-631845728 ul.jsx-631845728 li.jsx-631845728{padding:0;height:auto;margin:0;white-space:nowrap;}.tab-wrapper.jsx-631845728 ul.jsx-631845728 li.active.jsx-631845728{border:0;color:var(--content_1);}.swap-options.jsx-631845728{margin-bottom:12px;}.swap-options.jsx-631845728 .swap-title{padding:0;border-bottom:none;gap:24px;}.swap-options.jsx-631845728 .swap-title .tab-item{color:var(--content_2);font-size:16px;font-weight:400;}.swap-options.jsx-631845728 .swap-title .tab-item.active{color:var(--content_1);font-weight:500;}.swap-options.jsx-631845728 .swap-title .tab-item.active::after{display:none;}.list-wrapper.jsx-631845728 ul.jsx-631845728,.list-wrapper.jsx-631845728 .list{margin:0;padding:0;}.list-wrapper.jsx-631845728 ul.jsx-631845728 li.jsx-631845728,.list-wrapper.jsx-631845728 .list li.jsx-631845728{height:auto;}.list-wrapper.jsx-631845728 ul.jsx-631845728 a,.list-wrapper.jsx-631845728 .list a{display:block;width:100%;}.empty-wrapper.jsx-631845728{margin-top:1.5rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.empty-wrapper.jsx-631845728 .empty-img-wrapper{margin-bottom:1.5rem;}.empty-wrapper.jsx-631845728 .add-favor.jsx-631845728{width:10rem;height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;border-radius:2.5rem;background:var(--brand_default);color:var(--content_white);font-size:14px;font-style:normal;font-weight:400;line-height:normal;}}")];$.__hash="631845728";var B=function(e){var t=e.searchValue,n=e.onSearchChange,i=e.tabs,a=e.activeIndex,s=e.onTabSelect,r=e.isSpotPage,l=e.isLitePage,c=e.isSwapPage,d=void 0!==c&&c,x=e.secondaryTabs,m=e.secondaryActiveIndex,b=e.onSecondarySelect,h=e.swapZoneItems,g=e.getTabItemLang,w=e.sortedList,v=e.currentId,y=e.onClose,S=e.hotIds,E=e.newIds,I=e.isRTL,z=e.getStarType,L=e.titleListRow,Z=e.liteOpeningMap,R=(0,T.T)(),D=void 0!==R,M=w.length>j.Zo,U=d?j.m5:j.e;(0,f.useEffect)(function(){R&&(R.scrollTop=0)},[R,a,m,t]);var A=(0,f.useCallback)(function(e){var t=l&&!1===Z[e.id];return r||l?(0,q.jsx)(W,{item:e,currentId:v,onClose:y,isHot:S.includes(e.id),isNew:E.includes(e.id),isRTL:I,getStarType:z,isLiteClosed:t}):(0,q.jsx)(X,{item:e,currentId:v,onClose:y,isHot:S.includes(e.id),isNew:E.includes(e.id),isRTL:I,getStarType:z})},[r,l,v,y,S,E,I,z,Z]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"jsx-".concat($.__hash)+" quote-list-sticky-top",children:[(0,q.jsx)(k.Z,{value:t,onChange:n,placeholder:d?(0,p.bn)("搜索币种"):void 0}),d?(0,q.jsxs)("div",{className:"jsx-".concat($.__hash)+" swap-options",children:[(0,q.jsx)(O.n,{compact:!0,activeIndex:a,onTabsChange:s,tabs:i}),(0,q.jsx)(P.Z,{mobile:!0,scrollResetKey:a,activeIndex:m,onTabsChange:b,tabs:x,zoneItems:0===a?[]:void 0===h?[]:h})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"jsx-".concat($.__hash)+" tab-wrapper",children:(0,q.jsx)("ul",{className:"jsx-".concat($.__hash),children:i.map(function(e,t){return(0,q.jsx)("li",{onClick:function(){s(t)},className:"jsx-".concat($.__hash)+" "+((0,u.$)(t===a)||""),children:e},e)})})}
1),!l&&0!==a&&(0,q.jsx)("div",{className:"jsx-".concat($.__hash)+" type-wrapper",children:(0,q.jsx)(C.Z,{color:"var(--fill_default)",children:(0,q.jsx)("div",{className:"jsx-".concat($.__hash)+" type-container",children:x.map(function(e,t){return(0,q.jsxs)("button",{onClick:function(){b(t)},className:"jsx-".concat($.__hash)+" "+((0,u.$)(t===m)||""),children:[g(e),"LVTs"===e&&(0,q.jsx)("span",{className:"jsx-".concat($.__hash),children:"3x"})]},e)})})})})]}),w.length>0?L:null]}),w.length>0?(0,q.jsx)("div",{className:"jsx-".concat($.__hash)+" list-wrapper",children:(0,q.jsx)(j.ZP,{items:w,scrollElement:D?R:void 0,flexHeight:!D&&M,rowContentHeight:U,rowGap:0,renderItem:A})}):(0,q.jsxs)("div",{className:"jsx-".concat($.__hash)+" empty-wrapper",children:[(0,q.jsx)(_.T,{text:(0,p.bn)("暂无数据"),active:!0,layer:N.mh.Overlay}),0===a&&(0,q.jsx)("div",{onClick:function(){return s(d?(0,F.Qk)(x[m]):1)},className:"jsx-".concat($.__hash)+" add-favor",children:(0,p.bn)("添加自选")})]}),(0,q.jsx)(o(),{id:$.__hash,children:$})]})},V=function(e){var t,n,i,r,l=e.onClose,d=e.open,b=e.isSpotPage,g=void 0!==b&&b,j=e.isLitePage,w=void 0!==j&&j,k=e.container,_=null===(i=(0,x.tv)().query)||void 0===i?void 0:i.id,N=(0,f.useState)({}),T=N[0],C=N[1],O=(0,f.useState)(""),P=O[0],D=O[1],A=(0,f.useState)("All"),W=A[0],X=A[1],$=(0,f.useState)({}),V=$[0],G=$[1],Q=(0,f.useState)([]),K=(Q[0],Q[1]),J=(0,f.useState)([]),ee=J[0],et=J[1],en=(0,f.useState)([]),ei=en[0],ea=en[1],es=(0,f.useState)(),er=es[0],eo=es[1],el=(0,f.useState)({}),ec=el[0],ed=el[1],ex=(0,E.Z)().isRTL,ep=(0,f.useState)(1),em=ep[0],eu=ep[1],ef=(0,f.useState)([]),eb=ef[0],eh=ef[1],eg=(0,f.useRef)([]),ej=(0,f.useRef)([]),ew=(0,f.useRef)([]),ev=(0,f.useState)([]),ey=ev[0],ek=ev[1],e_=(0,f.useState)([]),eN=e_[0],eS=e_[1],eT=(0,f.useState)(0),eC=eT[0],eE=eT[1],eI=(0,f.useState)([]),ez=eI[0],eO=eI[1],eP=(0,f.useCallback)(function(e){return/^[[ a-zA-Z0-9-]+$/.test(e)?e:(0,p.bn)(e)},[ez]);(0,f.useMemo)(function(){return ez.length>5?ez.slice(0,5):eb},[ez]);var eL=(0,f.useMemo)(function(){return ez.length>5?ez.slice(5):eb},[ez]);(0,f.useMemo)(function(){return eC<5?(0,p.bn)("更多"):eP(ez[eC])},[eC]),eL.map(function(e){return{key:e,label:(0,q.jsx)("span",{className:ez[eC]===e?"active":"",children:eP(e)})}}),(0,f.useEffect)(function(){d||D("")},[d]),(0,f.useEffect)(function(){eZ(),(0,u.wb)(_)&&eE(1)},[]);var eF=(0,f.useCallback)(function(e){V[e]||G((0,a.Z)({},e,1)),1===V[e]&&G((0,a.Z)({},e,-1)),-1===V[e]&&G({})},[V]),eZ=(t=(0,s.Z)(c().mark(function e(){var t,n,i;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.Group.getInstance();case 2:n=(t=e.sent).getHotIds(),i=t.getNewIds(),et(n),ea(i),K(n.filter(function(e){return!/-|_/.test(e)}));case 8:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});(0,f.useEffect)(function(){if(g||w){eE(0),X(null!==(t=ez[0])&&void 0!==t?t:"All");return}var e,t,n=(0,F.pZ)(em,ej.current,ew.current);eO(n),eE(0),X(null!==(e=n[0])&&void 0!==e?e:"All")},[em,g,w]),(0,f.useEffect)(function(){(0,s.Z)(c().mark(function e(){var t,n,i,a,s,r,o;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.Group.getInstance();case 2:t=e.sent,g?(n=t.getSpotUnits(),i=t.getSpotZones(),eg.current=[(0,p.bn)("自选")].concat((0,h.Z)(n)),eO([(0,p.bn)("全部")].concat((0,h.Z)(i)))):w?eg.current=[(0,p.bn)("自选"),(0,p.bn)("全部"),(0,p.bn)("加密货币"),(0,p.bn)("期货"),(0,p.bn)("美股"),(0,p.bn)("港股")]:(a=t.getSwapZoneItems(),s=t.getSwapZones(),r=t.getSwapUsdcZoneItems(),o=t.getSwapUsdcZones(),ej.current=s,ew.current=o,ek(a),eS(r),eO((0,F.pZ)(em,s,o)),eg.current=(0,h.Z)((0,z.xC)())),eh(g||w?eg.current:(0,z.Qg)());case 5:case"end":return e.stop()}},e)}))()},[_,g,w]),(0,v.Uv)(v.KW.ws3001,(n=(0,s.Z)(c().mark(function e(t){var n,i,a,r,o,l,d,x,p,u,f;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.Favors.getInstance();case 2:if(n=e.sent,i={},!g){e.next=9;break}a=n.getSpotAndEtfFavorsList(),eg.current.forEach(function(){var e=(0,s.Z)(c().mark(function e(n,s){var r;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==s){e.next=4;break}i[0]=m.Markets.getMarketList(t,a),e.next=9;break;case 4:return e.next=6,m.Group.getInstance();case 6:r=e.sent.getSpotUnits(n),i[s]=m.Markets.getMarketList(t,r);case 9:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()),e.next=24;break;case 9:if(!w){e.next=22;break}return e.next=12,m.Group.getInstance();case 12:r=e.sent,o=n.getLiteFavorsList().map(function(e){return r.getLiteQuoteCode(e)||e}),l=r.getLiteQuoteIds,d=r.getCryptoListIds,x=r.getDerivListIds,p=r.getUstockListIds,u=r.getHkstockListIds,eg.current.forEach(function(){var e=(0,s.Z)(c().mark(function e(n,a){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:0===a?i[0]=m.Markets.getMarketList(t,o):1===a?i[1]=m.Markets.getMarketList(t,l):2===a?i[2]=m.Markets.getMarketList(t,d,!0):3===a?i[3]=m.Markets.getMarketList(t,x,!0):4===a?i[4]=m.Markets.getMarketList(t,p,!0):i[5]=m.Markets.getMarketList(t,u,!0);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()),e.next=24;break;case 22:f=n.getSwapFavorsList(),eg.current.forEach(function(){var e=(0,s.Z)(c().mark(function e(n,a){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:0===a?i[0]=m.Markets.getMarketList(t,f):1===a?i[a]=t.getSwapUsdtList():2===a&&(i[a]=t.getSwapUsdcList());case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());case 24:C(i);case 25:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})),(0,f.useEffect)(function(){var e,t=(e=(0,s.Z)(c().mark(function e(){var t,n,i,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.Favors.getInstance();case 2:if(t=e.sent,n=m.Markets.getSnapshot()){e.next=6;break}return e.abrupt("return");case 6:if(i=[],!g){e.next=11;break}i=t.getSpotAndEtfFavorsList(),e.next=19;break;case 11:if(!w){e.next=18;break}return e.next=14,m.Group.getInstance();case 14:a=e.sent,i=t.getLiteFavorsList().map(function(e){return a.getLiteQuoteCode(e)||e}),e.next=19;break;case 18:i=t.getSwapFavorsList();case 19:C(function(e){return M(M({},e),{},{0:m.Markets.getMarketList(n,i)})});case 20:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});return Z.vR.addListener(Z.vR.Update,t),function(){Z.vR.removeListener(Z.vR.Update,t)}},[g,w]);var eq=(0,f.useCallback)(function(e){return(0,u.hd)(e)?m.FAVORITE_TYPE.LITE:(0,u.uJ)(e)?m.FAVORITE_TYPE.SPOT:(0,u.wb)(e)?m.FAVORITE_TYPE.ETF:(0,u.a3)(e)?m.FAVORITE_TYPE.SWAP_COIN:(0,u.WO)(e)?m.FAVORITE_TYPE.SWAP_USDT:(0,u.D5)(e)?m.FAVORITE_TYPE.SWAP_USDC:(0,u.x)(e)?m.FAVORITE_TYPE.SWAP_COIN_TESTNET:(0,u.VV)(e)?m.FAVORITE_TYPE.SWAP_USDT_TESTNET:(0,u.lF)(e)?m.FAVORITE_TYPE.SWAP_USDC_TESTNET:m.FAVORITE_TYPE.SPOT},[]),eR=(0,f.useCallback)(function(e){return D(e)},[]),eD=(0,f.useMemo)(function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" title",children:[(0,q.jsxs)("div",{onClick:eF.bind(R,U.NAME),className:o().dynamic([["4215674547",[u.a$.mobile]]])+" title-item",children:[(0,p.bn)("名称"),(0,q.
1jsxs)("span",{className:o().dynamic([["4215674547",[u.a$.mobile]]]),children:[(0,q.jsx)("i",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" "+((0,u.Wy)("up",1==V[U.NAME]&&"active")||"")}),(0,q.jsx)("i",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" "+((0,u.Wy)("down",-1==V[U.NAME]&&"active")||"")})]})]}),(0,q.jsxs)("div",{onClick:eF.bind(R,U.PRICE),className:o().dynamic([["4215674547",[u.a$.mobile]]])+" title-item",children:[(0,q.jsxs)("span",{className:o().dynamic([["4215674547",[u.a$.mobile]]]),children:[(0,q.jsx)("i",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" "+((0,u.Wy)("up",1==V[U.PRICE]&&"active")||"")}),(0,q.jsx)("i",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" "+((0,u.Wy)("down",-1==V[U.PRICE]&&"active")||"")})]}),(0,p.bn)("最新价")]}),(0,q.jsxs)("div",{onClick:eF.bind(R,U.CHANGE),className:o().dynamic([["4215674547",[u.a$.mobile]]])+" title-item",children:[(0,q.jsxs)("span",{className:o().dynamic([["4215674547",[u.a$.mobile]]]),children:[(0,q.jsx)("i",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" "+((0,u.Wy)("up",1==V[U.CHANGE]&&"active")||"")}),(0,q.jsx)("i",{className:o().dynamic([["4215674547",[u.a$.mobile]]])+" "+((0,u.Wy)("down",-1==V[U.CHANGE]&&"active")||"")})]}),(0,p.bn)("涨跌幅")]})]}),(0,q.jsx)(o(),{id:"4215674547",dynamic:[u.a$.mobile],children:[".title.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:40px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;white-space:nowrap;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector{color:var(--content_2);cursor:pointer;-webkit-flex:3;-ms-flex:3;flex:3;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-inline-start:2px;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector .up.__jsx-style-dynamic-selector{width:0;height:0;border-bottom:4px solid var(--theme-trade-text-color-2);border-inline-start:3px solid transparent;border-inline-end:3px solid transparent;margin-bottom:1px;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector .up.active.__jsx-style-dynamic-selector{border-bottom:4px solid var(--skin-hover-font-color);}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector .down.__jsx-style-dynamic-selector{margin-top:1px;width:0;height:0;border-top:4px solid var(--theme-trade-text-color-2);border-inline-start:3px solid transparent;border-inline-end:3px solid transparent;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector .down.active.__jsx-style-dynamic-selector{border-top:4px solid var(--skin-hover-font-color);}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector:nth-child(1){padding-inline-start:18px;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector:nth-child(2){padding-inline-end:4px;-webkit-flex-flow:row-reverse;-ms-flex-flow:row-reverse;flex-flow:row-reverse;}",".title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector:nth-child(3){padding-inline-end:20px;-webkit-flex-flow:row-reverse;-ms-flex-flow:row-reverse;flex-flow:row-reverse;-webkit-flex:2;-ms-flex:2;flex:2;}","@media ".concat(u.a$.mobile,"{.title.__jsx-style-dynamic-selector{height:auto;margin-top:1rem;margin-bottom:8px;padding:0;}.title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:2px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}.title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{margin:0;font-size:12px;font-weight:400;color:var(--content_2);}.title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector:nth-child(1){width:45%;padding:0;-webkit-flex:none;-ms-flex:none;flex:none;}.title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector:nth-child(2){width:auto;padding:0;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:end;
1-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}.title.__jsx-style-dynamic-selector>div.__jsx-style-dynamic-selector:nth-child(3){-webkit-flex:1;-ms-flex:1;flex:1;width:5rem;padding:0;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}}")]})]})},[V]),eM=(0,f.useMemo)(function(){return(0,q.jsx)(L.m,{compact:!0,sort:V,onSort:eF})},[V,eF]),eU=(0,f.useCallback)(function(e){if(W&&!(0,F.VK)(W)&&!(0,F.OL)(W)){if(g||w){var t;e=null===(t=e)||void 0===t?void 0:t.filter(function(e){var t;return null===(t=e.zone)||void 0===t?void 0:t.includes(W)})}else e=e.filter(function(e){var t;return null==er||null===(t=er.get(e.id))||void 0===t?void 0:t.partition.includes(W)});var n=[];"LVTs"===W&&(m.DEFAULT_ORDER.forEach(function(t){var i=e.find(function(e){return(null==e?void 0:e.coin)===t});i&&n.push(i)}),e=(0,h.Z)(new Set(n.concat(e))))}if(P){var i=P.toUpperCase();e=e.filter(function(e){var t;return null===(t=g||w?e.coin:e.name)||void 0===t||null===(t=t.toUpperCase())||void 0===t?void 0:t.includes(i)})}return V[U.NAME]&&e.sort(function(e,t){return 1===V[U.NAME]?e.name.localeCompare(t.name):-1===V[U.NAME]?t.name.localeCompare(e.name):0}),V[U.PRICE]&&e.sort(function(e,t){return+e.price?+t.price?1===V[U.PRICE]?+e.price-+t.price:-1===V[U.PRICE]?+t.price-+e.price:0:-1:1}),V[U.CHANGE]&&e.sort(function(e,t){return+e.rate?+t.rate?1===V[U.CHANGE]?+e.rate-+t.rate:-1===V[U.CHANGE]?+t.rate-+e.rate:0:-1:1}),e},[V,W,P,g,w]),eA=(0,f.useMemo)(function(){var e;return w?(null!==(e=eU(T[em]))&&void 0!==e?e:[]).map(function(e){return e.id}).join(","):""},[w,T,em,V,W,P,eU]);(0,f.useEffect)(function(){m.TradeMap.getSwapTradeMap().then(function(e){e&&eo(e)})},[]),(0,f.useEffect)(function(){if(!w||!d||!eA){w||ed({});return}var e=eA.split(",").filter(Boolean),t=!1,n=function(){(0,I.DG)(e).then(function(e){t||ed(e)})};n();var i=setInterval(n,6e4);return function(){t=!0,clearInterval(i)}},[w,d,eA]);var eW=null!==(r=T[em])&&void 0!==r?r:[],eX=g||w||0!==em?eW:(0,F.fs)(eW,W),eH=null!=T[em]?eU(eX):[],e$=g||w?w?(0,p.bn)("TradFi"):(0,p.bn)("现货"):(0,p.bn)("永续合约1"),eB=(0,q.jsx)(B,{searchValue:P,onSearchChange:eR,tabs:eb,activeIndex:em,onTabSelect:function(e){eu(e)}
1,isSpotPage:g,isLitePage:w,isSwapPage:!g&&!w,secondaryTabs:ez,secondaryActiveIndex:eC,onSecondarySelect:function(e){var t;eE(e),X(null!==(t=ez[e])&&void 0!==t?t:"All")},swapZoneItems:2===em?eN:ey,getTabItemLang:eP,sortedList:eH,currentId:_,onClose:l,hotIds:ee,newIds:ei,isRTL:ex,getStarType:eq,titleListRow:g||w?eD:eM,liteOpeningMap:ec});return(0,q.jsxs)(q.Fragment,{children:["drawer"===(void 0===k?"bottomSheet":k)?(0,q.jsx)(y.Z,{title:e$,placement:"right",onClose:l,open:d,closeIcon:(0,q.jsx)(H,{}),keyboard:!0,style:{position:"relative"},rootClassName:"quote-list-drawer",children:eB}):(0,q.jsx)(S.gY,{type:"floating",visible:d,close:l,title:e$,hasBtn:!1,maskClosable:!0,handleDraggingOfContent:!0,className:"quote-list-sheet",content:eB}),(0,q.jsx)(o(),{id:Y.__hash,children:Y})]})},Y=[".quote-list-drawer .ant-drawer-title{font-size:16px;font-weight:500;color:var(--content_1);margin-inline-start:14px;}","@media ".concat(u.a$.mobile,"{.quote-list-drawer .ant-drawer-content-wrapper{width:100% !important;}}"),".quote-list-drawer .ant-drawer-content-wrapper .ant-drawer-header{border-bottom:none;padding:16px 4px 24px;}",".quote-list-drawer .ant-drawer-content-wrapper .ant-drawer-header .ant-drawer-header-title{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-pack:end;-webkit-justify-content:end;-ms-flex-pack:end;justify-content:end;}",".quote-list-drawer .ant-drawer-content-wrapper .ant-drawer-body{padding:0 16px 24px;}",".quote-list-drawer .ant-drawer-content-wrapper .ant-drawer-content{background-color:var(--bg_0);}",".spot-list-menu-wrapper{z-index:1031;}",".spot-list-menu-wrapper ul{height:280px;overflow-y:scroll;padding:12px 0;background:var(--fill_default);}",".spot-list-menu-wrapper ul li{color:var(--content_2) !important;}",".spot-list-menu-wrapper ul .ant-dropdown-menu-item:hover{color:var(--content_2) !important;}",".spot-list-menu-wrapper ul .ant-dropdown-menu-item .active{color:var(--brand_default) !important;}"];Y.__hash="2122011940";var G=n(6611),Q=n(96977),K=n(93049),J=n(17674),ee=n(96145),et=n(90512),en=n(38715),ei=null,ea=[".rates-content.jsx-731760686{background:var(--bg_0);padding:24px;}",".rates-content.jsx-731760686 .box.jsx-731760686{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;max-width:var(--const-max-page-width);width:100%;-webkit-flex:1;-ms-flex:1;flex:1;gap:1.5rem;}",".rates-content.jsx-731760686 .tips.jsx-731760686{position:relative;font-size:12px;font-weight:300;color:var(--content_3);line-height:100%;margin:0;text-align:start;}",".rates-content.jsx-731760686 .ant-table-thead > tr > th{padding:13px 0;color:var(--content_2);font-weight:400;border:0;font-size:14px;line-height:100%;}",".rates-content.jsx-731760686 .ant-table-thead > tr > th:last-child{text-align:end;}",".rates-content.jsx-731760686 .ant-table-row{height:2.5rem;}",".rates-content.jsx-731760686 td.ant-table-cell{padding:12.5px 0;font-size:14px;color:var(--content_1);font-weight:500;}",".rates-content.jsx-731760686 td.ant-table-cell:last-child{text-align:end;}",".rates-content.jsx-731760686 .bottom-pagination{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination{gap:8px;}",".rates-content.jsx-731760686 .bottom-pagination .page-button{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem;background:transparent;border-radius:5px;font-weight:500;}",".rates-content.jsx-731760686 .bottom-pagination .page-button > img{width:14px;height:14px;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item{border:none;width:1.25rem;min-width:1.25rem;color:var(--content_3);height:1.25rem;line-height:1.25rem;border-radius:50%;background-color:transparent;margin:0;font-size:12px;font-weight:500;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item:hover{background:var(--fill_default);}","@media ".concat(u.a$.mobile,"{.rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item:hover{background:var(--brand_default);}}"),".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-prev,.rates-content.jsx-731760686 .bottom-pagination .ant-pagination-next{width:1.25rem;height:1.25rem !important;min-width:1.25rem;margin:0;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item-link{width:1rem;height:1rem !important;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon{color:var(--brand_default) !important;font-size:10px;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon svg{width:10px;height:10px;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-ellipsis{border-radius:1.25rem;color:var(--content_1);width:1.25rem;height:1.25rem;font-size:10px;}",".rates-content.jsx-731760686 .bottom-pagination .ant-pagination-item-active{background:var(--brand_default);color:var(--content_white);font-weight:500;}",".rates-content.jsx-731760686 .ant-table-placeholder .ant-table-cell{border:0;}"];ea.__hash="731760686";var es=function(e){var t,n=e.isUSDT,i=(0,E.S)().isRTL,a=(0,en.x)({flag:new Date().getTime(),list:[],page:1}),r=(0,J.Z)(a,2),l=r[0],x=r[1],m=l.flag,b=l.list,g=l.page;(0,f.useEffect)(function(){return j(),function(){clearInterval(ei)}},[]),(0,f.useEffect)(function(){clearInterval(ei),ei=setInterval(function(){null==b||b.forEach(function(e,t){var n=w(e.feeTime);if("00:00:00"===n){clearInterval(ei),j();return}x(function(e){e.list[t].time=n})})},1e3)},[m]);var j=(t=(0,s.Z)(c().mark(function e(){var t,i,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,d.getSwapsFundingRateApi)(n);case 3:if(!(200!=(i=e.sent).code)){e.next=6;break}return e.abrupt("return",u.yw.error(i.message));case 6:a=null===(t=i.data)||void 0===t?void 0:t.map(function(e){return e.time=w(e.feeTime),e.fundRate=(100*e.fundRate).toFixed(4)+"%",e.symbol=e.symbol.toUpperCase(),e}),x(function(e){e.flag=new Date().getTime(),e.list=(0,h.Z)(a)}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),u.yw.error(e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])})),function(){return t.apply(this,arguments)}),w=function(e){var t="00:00:00";if(e){var n=e-new Date().getTime();if(n>0){var i=parseInt(n.div(36e5))||0,a=parseInt(n.div(6e4).sub(60*i))||0,s=parseInt(n.div(1e3).sub(3600*i).sub(60*a))||0;i<10&&(i="0"+i),a<10&&(a="0"+a),s<10&&(s="0"+s),t=i+":"+a+":"+s}}return t},v=[{title:(0,p.bn)("合约"),dataIndex:"symbol"},{title:(0,p.bn)("到下次资金时间"),dataIndex:"time",render:function(e){return(0,q.jsx)("span",{children:e})}},{title:(0,p.bn)("资金费率"),dataIndex:"fundRate",render:function(e){return(0,q.jsx)("span",{className:(0,et.Z)(i&&"lock-ltr unicode-isolate"),children:e})}}];return(0,q.jsxs)("div",{className:"jsx-".concat(ea.__hash)+" rates-content",children:[(0,q.jsxs)("div",{className:"jsx-".concat(ea.__hash)+" box",children:[(0,q.jsx)("div",{className:"jsx-".concat(ea.__hash)+" "+((0,et.Z)("tips")||""),children:(0,p.T0)((0,p.bn)("资金费率 = 溢价指数 + clamp(
1基础利率-溢价指数,{rate_1},{rate_2})"),{rate_1:(0,q.jsx)("span",{className:"jsx-".concat(ea.__hash)+" "+((0,et.Z)(i&&"number-display")||""),children:" 0.05%)"}),rate_2:(0,q.jsx)("span",{className:"jsx-".concat(ea.__hash)+" "+((0,et.Z)(i&&"number-display")||""),children:" -0.05%"})})}),(0,q.jsx)(ee.ZP,{dataSource:b,columns:v,isMobileUsePc:!0,pagination:{current:g,onChange:function(e){return x(function(t){t.page=e})}}})]}),(0,q.jsx)(o(),{id:ea.__hash,children:ea})]})},er=n(82679),eo=n(27484),el=n.n(eo),ec=n(90369),ed=[".chart-card.jsx-2821225345,.table-card.jsx-2821225345{width:100%;}",".chart-card.jsx-2821225345 .box.jsx-2821225345,.table-card.jsx-2821225345 .box.jsx-2821225345{max-width:var(--const-max-page-width);width:100%;margin:0 auto;}",".chart-card.jsx-2821225345{padding-top:1rem;}",".line.jsx-2821225345{margin:1.5rem 0;height:1px;width:100%;background:var(--line_2);}",".table-card.jsx-2821225345{padding-bottom:1rem;margin:0 auto;}",".table-card.jsx-2821225345 .box.jsx-2821225345{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:1.5rem;}","@media ".concat(u.a$.mobile,"{.table-card.jsx-2821225345{margin:16px;width:auto;}}"),".table-card.jsx-2821225345 .ant-table-thead > tr > th{padding:0;color:var(--content_3);font-weight:400;font-size:12px;border:0;width:5.5rem;padding-inline-end:1rem;}",".table-card.jsx-2821225345 .ant-table-thead > tr > th:last-child{text-align:end;padding-inline-end:0;}",".table-card.jsx-2821225345 .ant-table-row{height:2.5rem;}",".table-card.jsx-2821225345 td.ant-table-cell{padding:0;font-size:12px;color:var(--content_1);font-weight:500;}",".table-card.jsx-2821225345 td.ant-table-cell:last-child{text-align:end;}",".table-card.jsx-2821225345 .bottom-pagination{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination{gap:8px;}",".table-card.jsx-2821225345 .bottom-pagination .page-button{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem;background:transparent;border-radius:5px;font-weight:500;}",".table-card.jsx-2821225345 .bottom-pagination .page-button > img{width:14px;height:14px;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item{border:none;width:1.25rem;min-width:1.25rem;color:var(--content_3);height:1.25rem;line-height:1.25rem;border-radius:50%;background-color:transparent;margin:0;font-size:12px;font-weight:500;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item:hover{background:var(--fill_default);}","@media ".concat(u.a$.mobile,"{.table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item:hover{background:var(--brand_default);}}"),".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-prev,.table-card.jsx-2821225345 .bottom-pagination .ant-pagination-next{width:1.25rem;height:1.25rem !important;min-width:1.25rem;margin:0;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item-link{width:1rem;height:1rem !important;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon{color:var(--brand_default) !important;font-size:10px;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon svg{width:10px;height:10px;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-ellipsis{border-radius:1.25rem;color:var(--content_1);width:1.25rem;height:1.25rem;font-size:10px;}",".table-card.jsx-2821225345 .bottom-pagination .ant-pagination-item-active{background:var(--brand_default);color:var(--content_white);font-weight:500;}",".table-card.jsx-2821225345 .ant-table-placeholder .ant-table-cell{border:0;}"];ed.__hash="2821225345";var ex=function(e){var t,n,i=e.isUSDT,a=(0,E.S)().isRTL,r=(0,f.useState)([]),l=r[0],x=r[1],b=(0,f.useState)({}),g=b[0],j=b[1],w=(0,f.useState)([]),v=w[0],y=w[1],k=(0,f.useState)(1),_=k[0],N=k[1],S=(0,f.useState)([]),T=S[0],C=S[1],I=(0,f.useState)([]),z=I[0],O=I[1],P=(0,f.useState)(7),L=P[0],F=P[1];(0,f.useEffect)(function(){R()},[]),(0,f.useEffect)(function(){(null==g?void 0:g.symbol)&&Z()},[g,L]);var Z=(t=(0,s.Z)(c().mark(function e(){var t,n,a,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={limit:3*L,symbol:null==g?void 0:g.id.toLowerCase()},e.next=4,(0,d.getSwapsFundingRateHistoryApi)(n,i);case 4:if(!(200!=(a=e.sent).code)){e.next=7;break}return e.abrupt("return",u.yw.error(a.message));case 7:y(s=null==a||null===(t=a.data)||void 0===t||null===(t=t.pageData)||void 0===t?void 0:t.map(function(e){var t,n,i=l.find(function(t){return t.id.toUpperCase()===e.symbol.toUpperCase()});return e.date=el()(e.feeTime).format("YYYY-MM-DD HH:mm:ss"),e.rate=(100*e.fundRate).toFixed(4)+"%",e.fundRatePeriod=(i.fundRatePeriod||0)+(0,p.bn)("小时"),e.xData=el
1()(e.feeTime).format("MM-DD HH:mm"),t=100*e.fundRate,e.yData=void 0===t?void 0:t.toFixed(4),e.symbol=null===(n=i.name)||void 0===n?void 0:n.toUpperCase(),e}).reverse()),C(null==s?void 0:s.map(function(e){return e.xData})),O(null==s?void 0:s.map(function(e){return e.yData})),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),u.yw.error(e.t0);case 16:case"end":return e.stop()}},e,null,[[0,13]])})),function(){return t.apply(this,arguments)}),R=(n=(0,s.Z)(c().mark(function e(){var t,n,a,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.TradeMap.getSwapTradeMap();case 2:return t=e.sent,e.next=5,m.Group.getInstance();case 5:n=e.sent,a=(i?n.getSwapUsdList:n.getSwapCoinList).map(function(e){return t.get(e.id)}).filter(function(e){return void 0!==e}),x(s=(0,ec.t0)(a,["BTCUSDT","ETHUSDT"])),j(s[0]);case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),D=[{title:(0,p.bn)("时间"),dataIndex:"date"},{title:(0,p.bn)("合约"),dataIndex:"symbol",with:50},{title:(0,p.bn)("资金费率时间间隔"),dataIndex:"fundRatePeriod",maxWith:180},{title:(0,p.bn)("资金费率"),dataIndex:"rate",render:function(e){return(0,q.jsx)("span",{className:(0,et.Z)(a&&"lock-ltr unicode-isolate"),children:e})}}];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"jsx-".concat(ed.__hash)+" chart-card",children:(0,q.jsx)("div",{className:"jsx-".concat(ed.__hash)+" box",children:(0,q.jsx)(er.Z,{cryptoOptions:l,cryptoValue:null==g?void 0:g.symbol,onCryptoChange:function(e){j(e),N(1)},chartId:"historyCharts",xData:T,data:z,yFormatter:function(e){return(null==e?void 0:e.toFixed(2))+"%"},title:(0,q.jsxs)(q.Fragment,{children:[(0,p.bn)("资金费率"),":",(0,q.jsxs)("span",{className:"jsx-".concat(ed.__hash)+" lock-ltr unicode-isolate",children:[" ",(z[z.length-1]||0)+"%"]})]}),setLimit:F,limitArr:[7,14],tFormatter:'{b}<br /><span style="color:#f8bb37">{c}%</span>'})})}),(0,q.jsx)("div",{className:"jsx-".concat(ed.__hash)+" line"}),(0,q.jsx)("div",{className:"jsx-".concat(ed.__hash)+" table-card",children:(0,q.jsx)("div",{className:"jsx-".concat(ed.__hash)+" box",children:(0,q.jsx)(ee.ZP,{dataSource:(0,h.Z)(v).reverse(),columns:D,isMobileUsePc:!0,pagination:{current:_,onChange:N}})})}),(0,q.jsx)(o(),{id:ed.__hash,children:ed})]})},ep=[".chart-card.jsx-3337643756,.table-card.jsx-3337643756{width:100%;}","@media ".concat(u.a$.mobile,"{.chart-card.jsx-3337643756,.table-card.jsx-3337643756{margin:16px;width:auto;}}"),".chart-card.jsx-3337643756 .box.jsx-3337643756,.table-card.jsx-3337643756 .box.jsx-3337643756{max-width:var(--const-max-page-width);margin:0 auto;}",".chart-card.jsx-3337643756{margin:40px 0 0 0;}","@media ".concat(u.a$.mobile,"{.chart-card.jsx-3337643756{margin:16px 0;width:auto;}}"),".line.jsx-3337643756{margin:1.5rem 0;height:1px;width:100%;background:var(--line_2);}",".table-card.jsx-3337643756{padding-bottom:1rem;margin:0 auto;}",".table-card.jsx-3337643756 .box.jsx-3337643756{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:1.5rem;}",".table-card.jsx-3337643756 .ant-table-thead > tr > th{padding:0;color:var(--content_3);font-weight:400;font-size:14px;border:0;width:5.5rem;padding-inline-end:1rem;}",".table-card.jsx-3337643756 .ant-table-thead > tr > th:last-child{text-align:end;padding-inline-end:0;}",".table-card.jsx-3337643756 .ant-table-row{height:2.5rem;}",".table-card.jsx-3337643756 td.ant-table-cell{padding:0;font-size:14px;color:var(--content_1);font-weight:500;}",".table-card.jsx-3337643756 td.ant-table-cell:last-child{text-align:end;}",".table-card.jsx-3337643756 .bottom-pagination{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination{gap:8px;}",".table-card.jsx-3337643756 .bottom-pagination .page-button{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem;background:transparent;border-radius:5px;font-weight:500;}",".table-card.jsx-3337643756 .bottom-pagination .page-button > img{width:14px;
1height:14px;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item{border:none;width:1.25rem;min-width:1.25rem;color:var(--content_3);height:1.25rem;line-height:1.25rem;border-radius:50%;background-color:transparent;margin:0;font-size:12px;font-weight:500;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item:hover{background:var(--fill_default);}","@media ".concat(u.a$.mobile,"{.table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item:hover{background:var(--brand_default);}}"),".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-prev,.table-card.jsx-3337643756 .bottom-pagination .ant-pagination-next{width:1.25rem;height:1.25rem !important;min-width:1.25rem;margin:0;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item-link{width:1rem;height:1rem !important;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon{color:var(--brand_default) !important;font-size:10px;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon svg{width:10px;height:10px;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item-link .ant-pagination-item-ellipsis{border-radius:1.25rem;color:var(--content_1);width:1.25rem;height:1.25rem;font-size:10px;}",".table-card.jsx-3337643756 .bottom-pagination .ant-pagination-item-active{background:var(--brand_default);color:var(--content_white);font-weight:500;}",".table-card.jsx-3337643756 .ant-table-placeholder .ant-table-cell{border:0;}"];ep.__hash="3337643756";var em=function(e){var t,n,i,a=e.isUSDT,r=(0,f.useState)([]),l=r[0],x=r[1],b=(0,f.useState)({}),g=b[0],j=b[1],w=(0,f.useState)([]),v=w[0],y=w[1],k=(0,f.useState)(1),_=k[0],N=k[1],S=(0,f.useState)([]),T=S[0],C=S[1],E=(0,f.useState)([]),I=E[0],z=E[1],O=(0,f.useState)(7),P=O[0],L=O[1];(0,f.useEffect)(function(){Z()},[]),(0,f.useEffect)(function(){(null==g?void 0:g.symbol)&&F()},[g,P]);var F=(t=(0,s.Z)(c().mark(function e(){var t,n,i,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={limit:P,symbol:null==g?void 0:g.id.toLowerCase()},e.next=4,(0,d.getSwapPublicRiskDaysApi)(n,a);case 4:if(!(200!=(i=e.sent).code)){e.next=7;break}return e.abrupt("return",u.yw.error(i.message));case 7:y(s=null==i||null===(t=i.data)||void 0===t||null===(t=t.pageData)||void 0===t?void 0:t.map(function(e){return e.xData=el()(e.time).format("MM-DD"),e.yData=e.balance,e.date=el()(e.time).format("YYYY-MM-DD HH:mm:ss"),e.balance=e.balance+" "+e.symbol,e}).reverse()),C(null==s?void 0:s.map(function(e){return e.xData})),z(null==s?void 0:s.map(function(e){return e.yData})),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),u.yw.error(e.t0);case 16:case"end":return e.stop()}},e,null,[[0,13]])})),function(){return t.apply(this,arguments)}),Z=(n=(0,s.Z)(c().mark(function e(){var t,n,i,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.TradeMap.getSwapTradeMap();case 2:return t=e.sent,e.next=5,m.Group.getInstance();case 5:n=e.sent,i=(a?n.getSwapUsdList:n.getSwapCoinList).map(function(e){return t.get(e.id)}).filter(function(e){return void 0!==e}),x(s=(0,ec.t0)(i,["BTCUSDT","ETHUSDT"])),j(s[0]);case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),R=[{title:(0,p.bn)("时间"),dataIndex:"date"},{title:(0,p.bn)("风险保障基金余额"),dataIndex:"balance"}];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"jsx-".concat(ep.__hash)+" chart-card",children:(0,q.jsx)("div",{className:"jsx-".concat(ep.__hash)+" box",children:(0,q.jsx)(er.Z,{cryptoOptions:l,cryptoValue:null==g?void 0:g.symbol,onCryptoChange:function(e){j(e),N(1)},chartId:"fundCharts",xData:T,data:I,yFormatter:function(e){return null==e?void 0:e.toFixed(2)},fundRate:((null==g?void 0:g.fundRate)*100).toFixed(4)||0,title:(0,q.jsxs)(q.Fragment,{children:[(0,p.bn)("风险保障基金余额"),": ",null===(i=v[v.length-1])||void 0===i?void 0:i.balance]}),setLimit:L,limitArr:[7,30],tFormatter:'{b}<br /><span style="color:#f8bb37">{c}</span>'})})}),(0,q.jsx)("div",{className:"jsx-".concat(ep.__hash)+" line"}),(0,q.jsx)("div",{className:"jsx-".concat(ep.__hash)+" table-card",children:(0,q.jsx)("div",{className:"jsx-".concat(ep.__hash)+" box",children:(0,q.jsx)(ee.ZP,{dataSource:(0,h.Z)(v).reverse(),columns:R,pagination:{current:_,onCh
1ange:N}})})}),(0,q.jsx)(o(),{id:ep.__hash,children:ep})]})},eu=n(13821),ef=n(57974),eb=n(85418),eh=n(30422),eg=n(72363),ej=['@charset "UTF-8";',".overlay.jsx-3595075496{box-shadow:var(--line_2);border:1px solid var(--line_2,#ECECEC);border-radius:8px;padding-top:2px;background:var(--fill_default);}",".menus.jsx-3595075496{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:8px;border-radius:0 0 8px 8px;padding:4px 0;max-height:250px;overflow:scroll;background:var(--fill_default);}",".menus.jsx-3595075496 .menu.jsx-3595075496{height:1.5rem;line-height:1.5rem;font-size:14px;font-weight:500;color:var(--content_2);}",".menus.jsx-3595075496 .menu.active.jsx-3595075496{color:var(--brand_default);}",".menus.jsx-3595075496 .menu.jsx-3595075496:hover{background:var(--bg_1);}","@media ".concat(u.a$.mobile,"{.menus.jsx-3595075496 .menu.jsx-3595075496:hover{background:none;}}"),".menus.jsx-3595075496 .menu.jsx-3595075496{padding:8px 24px;}",".content.jsx-3595075496{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;gap:8px;color:var(--content_1);}",".content.jsx-3595075496 .label.jsx-3595075496{font-size:14px;color:var(--content_1);}",".content.jsx-3595075496 .select.jsx-3595075496{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.5rem;border-radius:8px;height:1.5rem;padding:4px 1rem;gap:8px;font-size:12px;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;border:1px solid var(--line_3);word-break:keep-all;}","@media ".concat(u.a$.mobile,"{.content.jsx-3595075496 .select.jsx-3595075496{height:30px;padding:0 1rem;}}"),".content.jsx-3595075496 .select.jsx-3595075496::after,.content.jsx-3595075496 .select.jsx-3595075496::before{display:none !important;content:none !important;}",".content.jsx-3595075496 .select.jsx-3595075496 .dropdown-arrow.jsx-3595075496{position:absolute;right:8px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none;}"];ej.__hash="3595075496";var ew=function(e){var t=e.options,n=void 0===t?[]:t,i=e.value,a=e.onChange,s=e.label,r=void 0===s?"":s,l=e.screen,c=e.isSymbol,d=(0,f.useState)(""),x=d[0],m=d[1],b=(0,f.useState)(n),h=b[0],g=b[1],j=(0,f.useState)(!1),w=j[0],v=j[1],y=!1;(0,f.useEffect)(function(){x?g(n.filter(function(e){return(null==e?void 0:e.indexOf(x))!==-1})):g(n)},[n,x]);var k=function(e){null==a||a(e)},N=function(){var e=setTimeout(function(){y||v(!1),clearTimeout(e)},200)},S=(0,q.jsxs)("div",{className:"jsx-".concat(ej.__hash)+" overlay",children:[l&&(0,q.jsx)(eh.Z,{value:x,onChange:function(e){m(null==e?void 0:e.toLocaleUpperCase())},setVisible:function(e){y=e,e||N()}}),(0,q.jsx)("div",{className:"jsx-".concat(ej.__hash)+" menus",children:(null==h?void 0:h.length)>0?h.map(function(e,t){var a=n.findIndex(function(e){return e===h[t]});return(0,q.jsx)("div",{onClick:function(){return k(a)},className:"jsx-".concat(ej.__hash)+" "+((0,u.Wy)("menu",a===i&&"active")||""),children:(0,q.jsx)("div",{className:"jsx-".concat(ej.__hash)+" text",children:e})},t)}):(0,q.jsx)(_.T,{})}),(0,q.jsx)(o(),{id:ej.__hash,children:ej})]});return(0,q.jsxs)("div",{className:"jsx-".concat(ej.__hash)+" content",children:[r&&(0,q.jsx)("div",{className:"jsx-".concat(ej.__hash)+" label",children:(0,p.bn)(r)}),(0,q.jsx)(eb.Z,{popupRender:function(){return S},open:w,children:(0,q.jsxs)("div",{tabIndex:0,onFocus:function(){v(!0)},onBlur:N,className:"jsx-".concat(ej.__hash)+" "+((0,u.Wy)("select",void 0!==c&&c?"select-symbol":"")||""),children:[n[i],(0,q.jsx)(eg.Z,{src:"/static/images/common/arrow_down.svg",alt:"xxkk",width:16,height:16,className:"dropdown-arrow"})]})}),(0,q.jsx)(o(),{id:ej.__hash,children:ej})]})},ev=function(e){return String(e||"").toUpperCase().replace(/-/g,"")},ey=function(e,t){if(!t||!e.length)return -1;var n=ev(t);return e.findIndex(function(e){return ev(e.id)===n})},ek=[".charts.jsx-2246569475{padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex:1;-ms-flex:1;flex:1;}",".charts.jsx-2246569475 .top.jsx-2246569475{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow-x:auto;}",".charts.jsx-2246569475 .top.jsx-2246569475 .select.jsx-2246569475{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:1rem;}",".charts.jsx-2246569475 .r.jsx-2246569475{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:5px;padding:0;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:1rem;height:2rem;line-height:2rem;border-bottom:1px solid var(--line_1);}",".charts.jsx-2246569475 .r.jsx-2246569475 span.jsx-2246569475{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:12px;font-weight:500;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;color:var(--content_3);}",".charts.jsx-2246569475 .r.jsx-2246569475 span.active.jsx-2246569475{background:var(--theme-background-color-3-2);border-radius:3px;color:var(--content_1);}",".charts.jsx-2246569475 .trading-view.jsx-2246569475{margin-top:0;height:16.5rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-bottom:8px;border-bottom:1px solid var(--line_1);}"];ek.__hash="2246569475";var e_=function(e){var t,n=e.isUsdtType,i=e.setSymbol,a=e.setType,r=e.id,l=e.tab,d=e.setTab;e.switchId;var x=(0,f.useState)(0),b=x[0],h=x[1],g=(0,f.useState)(0),j=g[0],w=g[1],y=(0,f.useState)([]),k=y[0],_=y[1],N=(0,f.useState)([]),S=N[0],T=N[1],C=(0,f.useState)([]),E=C[0],I=C[1],z=(0,f.useState)(eu.vc[1]),O=z[0],P=z[1],L=n?S:E;(0,f.useEffect)(function(){F()},[]);var F=(t=(0,s.Z)(c().mark(function e(){var t,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.TradeMap.getSwapTradeMap();case 2:return t=e.sent,e.next=5,m.Group.getInstance();case 5:n=e.sent,T((0,ec.t0)(n.getSwapUsdList,["BTCUSDT","ETHUSDT"]).map(function(e){return t.get(e.id)}).filter(Boolean)),I((0,ec.t0)(n.getSwapCoinList,["BTCUSDT","ETHUSDT"]).map(function(e){return t.get(e.id)}).filter(Boolean));case 8:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});(0,f.useEffect)(function(){if(L.length){var e,t=ey(L,r),n=t<0?0:t;h(n);var a=null===(e=L[n])||void 0===e||null===(e=e.id)||void 0===e?void 0:e.toUpperCase();a&&a!==String(r||"").toUpperCase()&&i(a)}},[L,r]),(0,f.useEffect)(function(){_(L.map(function(e){return null==e?void 0:e.name}))},[L]);var Z=[(0,p.bn)("价格指数"),(0,p.bn)("标记价格")],R=(0,f.useMemo)(function(){return String(r||"").toUpperCase()},[r]),D="".concat(0===j?"i":"m").concat(R);return(0,f.useEffect)(function(){R&&v.WS.subscribe4001([D])},[D,R]),(0,q.jsxs)("div",{className:"jsx-".concat(ek.__hash)+" charts",children:[(0,q.jsx)("div",{className:"jsx-".concat(ek.__hash)+" top",children:(0,q.jsxs)("div",{className:"jsx-".concat(ek.__hash)+" select",children:[(0,q.jsx)(ew,{value:l,options:[(0,p.bn)("永续合约1")],onChange:d}),(0,q.jsx)(ew,{value:b,options:k.map(function(e){return null==e?void 0:e.replace("-","")}),onChange:function(e){h(e);var t,n=null===(t=L[e])||void 0===t||null===(t=t.id)||void 0===t?void 0:t.toUpperCase();n&&i(n)},isSymbol:!0,label:"",screen:!0}),(0,q.jsx)(ew,{value:j,options:Z,onChange:function(e){w(e),a(e)},label:""})]})}),(0,q.jsx)("div",{className:"jsx-".concat(ek.__hash)+" r",children:eu.vc.map(function(e){return(0,q.jsx)("span",{onClick:function(){return P(e)},className:"jsx-".concat(ek.__hash)+" "+((0,u.Wy)(e.value==O.value&&"active")||""),children:e.value},e.value)})}),(0,q.jsx)("div",{className:"jsx-".concat(ek.__hash)+" trading-view",children:R&&(0,q.jsx)(ef.R,{id:D,theme:"light",resolution:O,holc:!0,swapIndex:!0})}),(0,q.jsx)(o(),{id:ek.__hash,children:ek})]})},eN=[".chart-card.jsx-3886585133{max-width:var(--const-max-page-width);width:100%;margin:0 auto;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".tabs.jsx-3886585133{max-width:var(--const-max-page-width);width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;}",".tabs.jsx-3886585133 .tab.jsx-3886585133{font-size:12px;font-weight:400;color:var(--content_2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:4px 1rem;cursor:pointer;border-radius:4px;
1border:0.5px solid var(--line_3);}",".tabs.jsx-3886585133 .tab.active.jsx-3886585133{color:var(--content_white);background:var(--brand_default);border:none;}",".chart-card.jsx-3886585133{margin:40px 0 0 0;}","@media ".concat(u.a$.mobile,"{.chart-card.jsx-3886585133{margin:16px 0;width:auto;}}"),".table-card.jsx-3886585133{width:100%;-webkit-flex:1;-ms-flex:1;flex:1;margin-top:1rem;background:var(--theme-background-color-3-2);}",".table-card.jsx-3886585133 .box.jsx-3886585133{margin:0 auto;max-width:var(--const-max-page-width);width:100%;}",".table-card.jsx-3886585133 .tabs1.jsx-3886585133{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:2.5rem;}",".table-card.jsx-3886585133 .tabs1.hide.jsx-3886585133{display:none;}",".table-card.jsx-3886585133 .tabs1.jsx-3886585133 .tab1.jsx-3886585133{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:20px;font-weight:400;color:var(--content_2);height:48px;}","@media ".concat(u.a$.mobile,"{.table-card.jsx-3886585133 .tabs1.jsx-3886585133 .tab1.jsx-3886585133{font-size:16px;}}"),".table-card.jsx-3886585133 .tabs1.jsx-3886585133 .tab1.jsx-3886585133 span.jsx-3886585133{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;cursor:pointer;}",".table-card.jsx-3886585133 .tabs1.jsx-3886585133 .tab1.active.jsx-3886585133 span.jsx-3886585133{color:var(--brand_default);}",".ant-table-thead > tr > th{padding:0;color:var(--content_3);font-weight:400;font-size:12px;border:0;width:5.5rem;padding-inline-end:1rem;}",".ant-table-thead > tr > th:last-child{text-align:end;padding-inline-end:0;}",".ant-table-row{height:2.5rem;}","td.ant-table-cell{padding:0;font-size:12px;color:var(--content_1);font-weight:500;}","td.ant-table-cell:last-child{text-align:end;}",".bottom-pagination{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0;}",".bottom-pagination .ant-pagination{gap:8px;}",".bottom-pagination .ant-pagination-jump-prev{line-height:20px;height:auto;}",".bottom-pagination .page-button{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:1.25rem !important;height:1.25rem !important;background:transparent;border-radius:5px;font-weight:500;}",".bottom-pagination .page-button > img{width:14px;height:14px;}",".bottom-pagination .ant-pagination-item{border:none;width:1.25rem !important;min-width:1.25rem !important;color:var(--content_3);height:1.25rem !important;line-height:1.25rem;border-radius:50%;background-color:transparent;margin:0;font-size:12px !important;font-weight:500;}",".bottom-pagination .ant-pagination-item:hover{background-color:var(--fill_default);}",".bottom-pagination .ant-pagination-prev,.bottom-pagination .ant-pagination-next{width:1.25rem !important;height:1.25rem !important;min-width:1.25rem !important;margin:0 !important;}",".bottom-pagination .ant-pagination-item-link{width:1rem !important;height:1rem !important;}",".bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon{color:var(--brand_default) !important;font-size:10px !important;}",".bottom-pagination .ant-pagination-item-link .ant-pagination-item-link-icon svg{width:10px !important;height:10px !important;}",".bottom-pagination .ant-pagination-item-link .ant-pagination-item-ellipsis{border-radius:1.25rem !important;color:var(--content_1) !important;width:1rem !important;height:1rem !important;font-size:10px !important;}",".bottom-pagination .ant-pagination-item-active{background:var(--brand_default) !important;color:var(--content_white) !important;font-weight:500 !important;}",".ant-pagination-jump-next{width:1.25rem !important;min-width:1.25rem !important;height:1.25rem !important;line-height:1.25rem;}",".ant-table-placeholder .ant-table-cell{border:0;}",".tips.jsx-3886585133{width:100%;position:relative;margin-top:24px;}",".tips.jsx-3886585133 .icon.jsx-3886585133{font-size:1rem;color:var(--content_3);position:absolute;top:5px;left:0;}",".tips.jsx-3886585133 div.jsx-3886585133{font-size:14px;font-weight:300;color:var(--content_3);line-height:15px;}"];eN.__hash="3886585133";var eS=(0,v.oZ)(function(e){var t=(0,f.useState)(1),n=t[0],i=t[1],a=(0,f.useState)(e[0].isUSDT?0:1),r=a[0],l=a[1],d=(0,f.useState)(0),x=d[0],b=d[1],h=m.Swap.Trade.base.quoteId,g=(0,f.useState)(function(){return String(h||"").toUpperCase()}),j=g[0],w=g[1],y=(0,f.useState)(0),k=y[0],_=y[1],N=(0,f.useState)([]),S=N[0],T=N[1],C=(0,f.useState)(!0),I=C[0],z=C[1],O=(0,f.useState)(),P=O[0],L=O[1],F=(0,f.useRef)(0),Z=(0,E.S)().isRTL;(0,f.useEffect)(function(){return(0,s.Z)(c().mark(function e(){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.TradeMap.getSwapTradeMap();case 2:L(e.sent);case 4:case"end":return e.stop()}},e)}))(),function(){v.WS.subscribe4001([h])}},[]);var R=function(e){var t=Math.floor(new Date().getTime()/1e3),n={resolution:1,from:t-60060,to:t},i="/api/tv/tradingView/".concat(/^S.*-SUSD(T)?$/.test(j)?"testnethistory":"history");fetch("".concat(i,"?symbol=").concat(k?"m":"i").concat(j,"&from=").concat(n.from,"&to=").concat(n.to,"&resolution=").concat(n.resolution)).then(function(e){return e.json()}).then(function(t){var n=t.s,i=t.o,a=t.t;if(e===F.current&&(z(!1),"ok"===n)){var s=null==a?void 0:a.map(function(e,t){return{date:el()(1e3*e).format("YYYY-MM-DD HH:mm:ss"),price:i[t],symbol:j}});T(null==s?void 0:s.reverse())}}).catch(function(){e===F.current&&z(!1)})},D=function(e){fetch("/swap/public/common/constituents/".concat(j)).then(function(e){return e.json()}).then(function(t){if(e===F.current&&(z(!1),200===t.code)){var n;T(((null==t||null===(n=t.data)||void 0===n?void 0:n.exchanges)||[]).map(function(e){return{exchange:e.exchange,symbol:j}}))}}).catch(function(){e===F.current&&z(!1)})};(0,f.useEffect)(function(){if(j){M();var e=++F.current;T([]),z(!0),0===x?R(e):0===k&&D(e)}1===k&&b(0)},[j,k,x]);var M=function(){},U=[{title:(0,p.bn)("时间"),dataIndex:"date"},{title:(0,p.bn)("合约"),dataIndex:"symbol",render:function(e){var t;return(null==P||null===(t=P.get(e))||void 0===t?void 0:t.name)||""}},{title:k?(0,p.bn)("标记价格"):(0,p.bn)("价格指数"),dataIndex:"price",render:function(e){return e+(r?" USD":" USDT")}}],A=[{title:(0,p.bn)("交易所"),dataIndex:"exchange"},{title:(0,p.bn)("交易对"),dataIndex:"symbol",align:Z?"left":"right",render:function(e){var t;return(null==P||null===(t=P.get(e))||void 0===t?void 0:t.name)||""}}];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"jsx-".concat(eN.__hash)+" chart-card",children:(0,q.jsx)(e_,{tab:r,setTab:l,isUsdtType:0===r,setSymbol
1:w,setType:_,id:j,switchId:M})}),(0,q.jsx)("div",{className:"jsx-".concat(eN.__hash)+" table-card",children:(0,q.jsxs)("div",{className:"jsx-".concat(eN.__hash)+" box",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eN.__hash)+" "+((0,u.Wy)("tabs1",1===k&&"hide")||""),children:[(0,q.jsx)("div",{className:"jsx-".concat(eN.__hash)+" "+((0,u.Wy)("tab1",0===x&&"active")||""),children:(0,q.jsx)("span",{onClick:function(){return b(0)},className:"jsx-".concat(eN.__hash),children:(0,p.bn)("价格")})}),(0,q.jsx)("div",{className:"jsx-".concat(eN.__hash)+" "+((0,u.Wy)("tab1",1===x&&"active")||""),children:(0,q.jsx)("span",{onClick:function(){return b(1)},className:"jsx-".concat(eN.__hash),children:(0,p.bn)("参考")})})]}),(0,q.jsx)(ee.ZP,{dataSource:S,columns:[U,A][x],loading:I,isMobileUsePc:!0,pagination:{current:n,pageSize:10,onChange:i}}),1===x&&(0,q.jsxs)("div",{className:"jsx-".concat(eN.__hash)+" tips",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eN.__hash),children:["1.",(0,p.bn)("Cross Rate (交叉汇率): 对于一些没有直接报价的指数,计算交叉汇率作为综合价格指数。例如:综合LINK/BTC and BTC/USD来计算 LINK/USD。")]}),(0,q.jsxs)("div",{className:"jsx-".concat(eN.__hash),children:["2. ",(0,p.bn)("XXKK 将不时更新价格指数参考。")]})]})]})}),(0,q.jsx)(o(),{id:eN.__hash,children:eN})]})}),eT=function(e){var t=e.onClose,n=e.open,i=e.tabIndex,a=e.isUsdtType,s=(0,f.useState)(i),r=s[0],l=s[1],c=(0,f.useState)([(0,p.bn)("实时资金费率"),(0,p.bn)("资金费率历史"),(0,p.bn)("风险保障基金"),(0,p.bn)("指数")])[0];(0,f.useEffect)(function(){l(i)},[i]);var d=(0,f.useMemo)(function(){return[(0,q.jsx)(es,{isUSDT:a},0),(0,q.jsx)(ex,{isUSDT:a},1),(0,q.jsx)(em,{isUSDT:a},2),(0,q.jsx)(eS,{isUSDT:a},3)][r]},[r,a]);return(0,q.jsxs)(y.Z,{placement:"right",onClose:t,open:n,title:(0,q.jsxs)("div",{className:"jsx-".concat(eC.__hash)+" guide-title",children:[(0,q.jsx)("span",{className:"jsx-".concat(eC.__hash),children:(0,p.bn)("合约信息")}),(0,q.jsx)("div",{onClick:function(){return t()},className:"jsx-".concat(eC.__hash),children:(0,q.jsx)(g.Z,{name:"common-close-0",size:24,enableSkin:!0})})]}),closable:!1,keyboard:!0,style:{position:"relative"},rootClassName:"guide-drawer-container",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eC.__hash)+" content",children:[(0,q.jsx)("div",{className:"jsx-".concat(eC.__hash)+" tabs",children:c.map(function(e,t){return(0,q.jsx)("div",{onClick:function(){return l(t)},className:"jsx-".concat(eC.__hash)+" "+((r===t?"active":"")||""),children:e},t)})}),(0,q.jsx)("div",{className:"jsx-".concat(eC.__hash)+" line"}),(0,q.jsx)("div",{className:"jsx-".concat(eC.__hash)+" info-content",children:d})]}),(0,q.jsx)(o(),{id:eC.__hash,children:eC})]})},eC=[".guide-drawer-container{width:100%;height:100%;}",".guide-drawer-container .ant-drawer-content{background:var(--bg_0);}",".guide-drawer-container .ant-drawer-header{border:0;padding:0 1.5rem;padding-top:1.5rem;padding-bottom:12px;border-bottom:1px solid var(--line_2);}","@media ".concat(u.a$.mobile,"{.guide-drawer-container .ant-drawer-content-wrapper{width:100% !important;}}"),".guide-drawer-container .ant-drawer-body{padding:1.5rem;}","@media ".concat(u.a$.mobile,"{.guide-drawer-container .ant-drawer-body{padding:0;}}"),".guide-drawer-container .guide-title.jsx-3669047801{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:500;line-height:normal;color:var(--content_1);font-size:16px;}",".guide-drawer-container .content.jsx-3669047801{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".guide-drawer-container .info-content.jsx-3669047801{padding:0 16px 60px;}",".guide-drawer-container .info-content.jsx-3669047801 .common-table tr{border:none !important;}",'.guide-drawer-container .info-content.jsx-3669047801 .common-table th{color:var(--content_2) !important;font-family:"Lexend";font-weight:400 !important;font-size:14px;line-height:100%;padding:17.5px 0 !important;}',"@media ".concat(u.a$.mobile,"{.guide-drawer-container .info-content.jsx-3669047801 .common-table th{padding:13px 0 !important;}.guide-drawer-container .info-content.jsx-3669047801 .common-table th:not(:last-child){padding-inline-end:10px !important;text-align:start;}}"),'.guide-drawer-container .info-content.jsx-3669047801 .common-table td{color:var(--content_1) !important;font-family:"Lexend";font-weight:400 !important;font-size:16px !important;line-height:100%;padding:19.5px 0 !important;}',"@media ".concat(u.a$.mobile,"{.guide-drawer-container .info-content.jsx-3669047801 .common-table td{font-size:14px !important;padding:16.5px 0 !important;}.guide-drawer-container .info-content.jsx-3669047801 .common-table td:not(:last-child){padding-inline-end:10px !important;}}"),".guide-drawer-container .tabs.jsx-3669047801{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:16px;font-weight:400;color:var(--content_2);padding:14px 16px;}","@media ".concat(u.a$.mobile,"{.guide-drawer-container .tabs.jsx-3669047801{white-space:nowrap;overflow-y:auto;gap:24px;}}"),".guide-drawer-container .tabs.jsx-3669047801 .active.jsx-3669047801{color:var(--brand_default);}",".guide-drawer-container .line.jsx-3669047801{margin:8px 0;width:100%;height:1px;background:var(--line_2);}"];eC.__hash="3669047801";var eE=n(88926),eI=n(25675),ez=n.n(eI),eO=function(e){var t=e.onClose,n=(0,x.tv)();return(0,q.jsxs)("div",{className:"guide-content",children:[(0,q.jsx)("span",{className:"info",children:(0,p.bn)("从您的现货钱包中划转资金到合约账户作为合约账户保证金")}),(0,q.jsx)("div",{className:"btn",onClick:function(){var e=m.Swap.Info.store.agreement.allow;t(),e?m.Swap.Trade.setTransferModalVisible():n.push("/login")},children:(0,p.bn)("立即划转")})]})},eP=function(){return(0,q.jsxs)("div",{className:"guide-content",children:[(0,q.jsx)("span",{className:"info",children:(0,p.bn)("根据自身喜好选择保证金模式(全仓或逐仓),同时根据自身的风险承受能力选择合适的杠杆倍数;XXKK最高支持200倍杠杆倍数。")}),(0,q.jsx)("span",{className:"prompt",children:(0,p.bn)("新手用户建议使用10倍以下杠杆")})]})},eL=function(){return(0,q.jsxs)("div",{className:"guide-content",children:[(0,q.jsx)("span",{className:"info",children:(0,p.bn)("根据您对涨跌的预判在填写价格和数量之后,可选买多/买空。")}),(0,q.jsx)("span",{className:"info",children:(0,p.bn)("预测涨则买多;预测跌则卖空")})]})},eF=function(){return(0,q.jsx)("div",{className:"guide-content",children:(0,q.jsx)("span",{className:"info",children:(0,p.bn)("您可以在行情图下方查看您的仓位和订单详情,当订单成交后即可会拥有对应的仓位")})})},eZ=function(e){var t=e.onClose;return(0,x.tv)(),(0,q.jsxs)("div",{className:"guide-content",children:[(0,q.jsxs)("span",{className:"info",children:[(0,p.bn)("持有仓位后,您可以在持有仓位区域平仓。"),"",(0,q.jsx)(K.r5,{className:"more",href:"/categories/11309463310991-%E6%B0%B8%E7%BA%8C%E5%90%88%E7%B4%84",children:(0,p.bn)("了解更多")})]}),(0,q.jsx)("div",{className:"btn",onClick:function(){t()},children:(0,p.bn)("开始交易")})]})},eq=[".container.jsx-3354579724{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0 0.5rem;padding-bottom:0.5rem;color:var(--content_1);overflow-y:auto;}",".title-wrapper.jsx-3354579724{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".title-wrapper.jsx-3354579724 .title.jsx-3354579724{font-size:1.25rem;font-weight:500;color:var(--brand_default);}",".title-wrapper.jsx-3354579724 .page.jsx-3354579724{font-size:14px;}",".title-wrapper.jsx-3354579724 .page.jsx-3354579724 span.jsx-3354579724{color:var(--content_3);}",".swipe-container.jsx-3354579724{position:relative;overflow:hidden;-webkit-flex:1;-ms-flex:1;flex:1;min-height:32.5rem;}",".swipe-container.jsx-3354579724 .swipe-item.jsx-3354579724{position:absolute;width:100%;height:auto;-webkit-transition:-webkit-transform 0.3s ease;-webkit-transition:transform 0.3s ease;transition:transform 0.3s ease;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}",".swipe-container.jsx-3354579724 .swipe-item.active.jsx-3354579724{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}",".swipe-container.jsx-3354579724 .swipe-item.jsx-3354579724:nth-child(1){-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}",".swipe-container.jsx-3354579724 .swipe-item.jsx-3354579724:nth-child(2){-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}",".swipe-container.jsx-3354579724 .swipe-item.jsx-3354579724:nth-child(3){-webkit-transform:translateX(200%);-ms-transform:translateX(200%);transform:translateX(200%);}",".swipe-container.jsx-3354579724 .swipe-item.jsx-3354579724:nth-child(4){-webkit-transform:translateX(300%);-ms-transform:translateX(300%);transform:translateX(300%);}",".swipe-container.jsx-3354579724 .swipe-item.jsx-3354579724:nth-child(5){-webkit-transform:translateX(400%);-ms-transform:translateX(400%);transform:translateX(400%);}",".guide-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;
1-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin-top:1rem;font-size:14px;}",".guide-content .info,.prompt{line-height:1.25rem;font-weight:400;}",".guide-content .more{color:var(--brand_default);}",".guide-content .prompt{margin-top:1rem;color:var(--color-red);}",".guide-content .btn{margin-top:1rem;height:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0px 1rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:2.75rem;background:var(--brand_default);font-size:1rem;font-weight:500;color:var(--content_white);}",".img-wrapper.jsx-3354579724{margin-top:1.5rem;height:auto;}",".img-wrapper.jsx-3354579724 img{width:100%;object-fit:fill;height:auto;}",".modal{background-color:var(--bg_pop) !important;}"];eq.__hash="3354579724";var eR=function(e){var t=e.onClose,n=e.isShow,i=(0,f.useState)(1),a=i[0],s=i[1],r=(0,f.useState)(null),l=r[0],c=r[1],d=(0,f.useState)(""),u=d[0],b=d[1],h=(0,x.Fg)().theme,g=(0,x.tv)().query.locale;(0,eE.bp)().isLogin,(0,f.useEffect)(function(){m.Info.getInstance().then(function(e){e&&b(e.iconsUrl)})},[]);var j=[(0,q.jsx)(eO,{onClose:t},1),(0,q.jsx)(eP,{},2),(0,q.jsx)(eL,{},3),(0,q.jsx)(eF,{},4),(0,q.jsx)(eZ,{onClose:t},5)][a-1],w=[(0,p.bn)("划转保证金"),(0,p.bn)("杠杆与保证金模式"),(0,p.bn)("开仓"),(0,p.bn)("查看仓位和订单"),(0,p.bn)("平仓")][a-1],v="".concat(u,"tutorial/h5_swap_").concat({zh:"zh_cn","zh-tw":"zh_tw",en:"en_us",hi:"hi_in"}[g],"_").concat(h,"_").concat(a,".png");return(0,q.jsx)(S.gY,{visible:n,close:t,hasBtn:!1,title:(0,p.bn)("如何完成一笔合约交易"),content:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"jsx-".concat(eq.__hash)+" container",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eq.__hash)+" title-wrapper",children:[(0,q.jsxs)("span",{className:"jsx-".concat(eq.__hash)+" title",children:[a,".",w]}),(0,q.jsxs)("div",{className:"jsx-".concat(eq.__hash)+" page",children:[a,(0,q.jsx)("span",{className:"jsx-".concat(eq.__hash),children:"/5"})]})]}),(0,q.jsx)("div",{onTouchStart:function(e){c(e.touches[0].clientX)},onTouchEnd:function(e){if(null!==l){var t=l-e.changedTouches[0].clientX;Math.abs(t)>50&&(t>0&&a<5?s(a+1):t<0&&a>1&&s(a-1)),c(null)}},className:"jsx-".concat(eq.__hash)+" swipe-container",children:[1,2,3,4,5].map(function(e,t){return(0,q.jsxs)("div",{className:"jsx-".concat(eq.__hash)+" "+"swipe-item ".concat(t===a-1?"active":""),children:[j,(0,q.jsx)("div",{className:"jsx-".concat(eq.__hash)+" img-wrapper",children:(0,q.jsx)(ez(),{src:v,alt:"xxkk",width:320,height:320,objectFit:"fill"})})]},t)})})]}),(0,q.jsx)(o(),{id:eq.__hash,children:eq})]})})},eD=n(20277),eM=function(e){var t=e.isLogin,n=e.showTransfer,i=(0,x.tv)();return(0,q.jsxs)("div",{className:"guide-content",children:[(0,q.jsx)("span",{className:"info",children:(0,p.bn)("交易前,请确保您的现货账户资产充足。")}),(0,q.jsxs)("div",{className:"btn-wrapper",children:[(0,q.jsx)(p.jH,{href:"/account/fund-management/asset-account/recharge",className:"btn deposit",native:!0,children:(0,p.bn)("充值")}),(0,q.jsx)("div",{className:"btn transfer",onClick:function(){t?n():i.push("/login")},children:(0,p.bn)("划转")})]})]})},eU=function(){return(0,q.jsx)("div",{className:"guide-content",children:(0,q.jsx)("span",{className:"info",children:(0,p.bn)("在行情图左侧列表挑选您将要交易的币对,也可通过搜索框输入币对名称快速搜索。")})})},eA=function(){return(0,q.jsx)("div",{className:"guide-content",children:(0,q.jsx)("span",{className:"info",children:(0,p.bn)("在买入区域输入您预期的买入价格与数量,并点击下方买入,当市场价格与您设置的价格相符时,则完成了一笔买入交易。")})})},eW=function(){return(0,q.jsx)("div",{className:"guide-content",children:(0,q.jsx)("span",{className:"info",children:(0,p.bn)("您在这里可以查看当前委托、历史委托、历史成交和资产管理。")})})},eX=function(){return(0,x.tv)(),(0,q.jsx)("div",{className:"guide-content",children:(0,q.jsx)("span",{className:"info",children:(0,p.bn)("在卖出区域输入您预期的卖出价格与数量,并点击下方卖出,
1当市场价格与您设置的价格相符时,则完成了一笔卖出交易。")})})},eH=[".container.jsx-4224984902{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0 0.5rem;padding-bottom:0.5rem;color:var(--content_1);overflow-y:auto;}",".title-wrapper.jsx-4224984902{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".title-wrapper.jsx-4224984902 .title.jsx-4224984902{font-size:1.25rem;font-weight:500;color:var(--brand_default);}",".title-wrapper.jsx-4224984902 .page.jsx-4224984902{font-size:14px;}",".title-wrapper.jsx-4224984902 .page.jsx-4224984902 span.jsx-4224984902{color:var(--content_3);}",".swipe-container.jsx-4224984902{position:relative;overflow:hidden;-webkit-flex:1;-ms-flex:1;flex:1;min-height:25rem;}",".swipe-container.jsx-4224984902 .swipe-item.jsx-4224984902{position:absolute;width:100%;height:auto;-webkit-transition:-webkit-transform 0.3s ease;-webkit-transition:transform 0.3s ease;transition:transform 0.3s ease;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}",".swipe-container.jsx-4224984902 .swipe-item.active.jsx-4224984902{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}",".swipe-container.jsx-4224984902 .swipe-item.jsx-4224984902:nth-child(1){-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}",".swipe-container.jsx-4224984902 .swipe-item.jsx-4224984902:nth-child(2){-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}",".swipe-container.jsx-4224984902 .swipe-item.jsx-4224984902:nth-child(3){-webkit-transform:translateX(200%);-ms-transform:translateX(200%);transform:translateX(200%);}",".swipe-container.jsx-4224984902 .swipe-item.jsx-4224984902:nth-child(4){-webkit-transform:translateX(300%);-ms-transform:translateX(300%);transform:translateX(300%);}",".swipe-container.jsx-4224984902 .swipe-item.jsx-4224984902:nth-child(5){-webkit-transform:translateX(400%);-ms-transform:translateX(400%);transform:translateX(400%);}",".guide-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin-top:1rem;font-size:14px;}",".guide-content .info,.prompt{line-height:1.25rem;font-weight:400;}",".guide-content .more{color:var(--brand_default);}",".guide-content .prompt{margin-top:1rem;color:var(--color-red);}",".guide-content .btn-wrapper{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:1rem;}",".guide-content .btn{-webkit-flex:1;-ms-flex:1;flex:1;margin-top:1rem;height:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0px 1rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:2.75rem;background:var(--brand_default);font-size:1rem;font-weight:500;color:var(--content_white);}",".guide-content .transfer{background:var(--line_2);color:var(--content_1);}",".img-wrapper.jsx-4224984902{margin-top:1.5rem;height:auto;}",".img-wrapper.jsx-4224984902 img{width:100%;object-fit:fill;height:auto;}",".modal{background-color:var(--bg_pop) !important;}"];eH.__hash="4224984902";var e$=function(e){var t=e.onClose,n=e.isShow,i=(0,f.useState)(1),a=i[0],s=i[1],r=(0,f.useState)(null),l=r[0],c=r[1],d=(0,f.useState)(""),u=d[0],b=d[1],h=(0,f.useState)(!1),g=h[0],j=h[1],w=(0,x.Fg)().theme,v=(0,x.tv)().query.locale,y=(0,eE.bp)().isLogin;(0,f.useEffect)(function(){m.Info.getInstance().then(function(e){e&&b(e.iconsUrl)})},[]);var k=(0,f.useCallback)(function(){s(1),c(null),t()}
1,[]),_=[(0,q.jsx)(eM,{isLogin:y,showTransfer:function(){k(),j(!0)}},1),(0,q.jsx)(eU,{},2),(0,q.jsx)(eA,{},3),(0,q.jsx)(eW,{},4),(0,q.jsx)(eX,{},5)][a-1],N=[(0,p.bn)("查看资产"),(0,p.bn)("搜索交易对"),(0,p.bn)("买入现货"),(0,p.bn)("查看订单"),(0,p.bn)("卖出现货")][a-1],T="".concat(u,"tutorial/mobile/swap_").concat({zh:"zh_cn","zh-tw":"zh_tw",en:"en_us",hi:"hi_in"}[v],"_").concat(w,"_").concat(a,".png");return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(S.gY,{visible:n,close:k,hasBtn:!1,title:(0,p.bn)("如何完成一笔现货交易"),content:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"jsx-".concat(eH.__hash)+" container",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eH.__hash)+" title-wrapper",children:[(0,q.jsxs)("span",{className:"jsx-".concat(eH.__hash)+" title",children:[a,".",N]}),(0,q.jsxs)("div",{className:"jsx-".concat(eH.__hash)+" page",children:[a,(0,q.jsx)("span",{className:"jsx-".concat(eH.__hash),children:"/5"})]})]}),(0,q.jsx)("div",{onTouchStart:function(e){c(e.touches[0].clientX)},onTouchEnd:function(e){if(null!==l){var t=l-e.changedTouches[0].clientX;Math.abs(t)>50&&(t>0&&a<5?s(a+1):t<0&&a>1&&s(a-1)),c(null)}},className:"jsx-".concat(eH.__hash)+" swipe-container",children:[1,2,3,4,5].map(function(e,t){return(0,q.jsxs)("div",{className:"jsx-".concat(eH.__hash)+" "+"swipe-item ".concat(t===a-1?"active":""),children:[_,(0,q.jsx)("div",{className:"jsx-".concat(eH.__hash)+" img-wrapper",children:(0,q.jsx)(ez(),{src:T,alt:"xxkk",width:320,height:320,objectFit:"fill"})})]},t)})})]}),(0,q.jsx)(o(),{id:eH.__hash,children:eH})]})}),g&&(0,q.jsx)(eD.Zd,{open:g,defaultSourceAccount:eD.Q5.SWAP_U,defaultTargetAccount:eD.Q5.SPOT,onCancel:function(){return j(!1)}})]})},eB=n(38711),eV=n(7236),eY=n(73806);function eG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eG(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eK=function(e){var t,n,i=e.isSpot,a=void 0!==i&&i,r=e.isLite,l=void 0!==r&&r,h=!a&&!l,j=(0,f.useState)(),v=j[0],y=j[1],k=(0,f.useState)(!1),_=k[0],N=k[1],T=(0,f.useState)(!1),C=T[0],E=T[1],I=(0,f.useState)(!1),z=I[0],O=I[1],P=(0,f.useState)(!1),L=P[0],F=P[1],Z=(0,f.useState)({show:!1,index:0}),R=Z[0],D=Z[1],M=null===(t=(0,x.tv)().query)||void 0===t?void 0:t.id,U=(0,eE.bp)().isLogin;(0,eV.E)().allow;var A=m.Swap.Trade.base.isUsdtType;(0,p.bn)("指南"),(0,p.bn)("新手引导"),(0,p.bn)("实时资金费率"),(0,p.bn)("资金费率历史"),(0,p.bn)("风险保障基金"),(0,p.bn)("指数");var W=(0,eB.useSwapTour)(),X=W.setOpen,H=W.setQuoteReady,$=W.ref1,B=W.ref8,Y=(0,eY.useSpotTour)(),J=Y.setOpen,ee=Y.setQuoteReady,et=Y.ref1;(0,f.useEffect)(function(){ei()},[M]);var en=(0,u.Co)((0,b.Z)().pathname),ei=(0,f.useCallback)((0,s.Z)(c().mark(function e(){var t,n,i,s,r,o,x,f,b,h,g,j,w,v;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.next=3,m.Group.getInstance();case 3:if(n=e.sent,!a){e.next=21;break}return e.next=7,m.TradeMap.getSpotById(M);case 7:if(i=e.sent,s=n.getSpotList.find(function(e){return e.id===M}),t=eQ({},i),s&&t&&(t.fullname=s.fullname),!(0,u.wb)(M)){e.next=19;break}return e.next=15,(0,d.getCommonEtfCommodityApi)(M);case 15:o=e.sent,f=(x=(0,u.rG)(M)).lever,b=x.isBuy,h="".concat((0,u.Om)(null==o||null===(r=o.data)||void 0===r?void 0:r.currency)," ").concat((0,u.Om)(f),"X ").concat(b?(0,p.bn)("多"):(0,p.bn)("空")),t.etfTitle=h;case 19:e.next=37;break;case 21:if(!l){e.next=31;break}return e.next=24,m.TradeMap.getLiteById(M);case 24:g=e.sent,j=n.getLiteList.find(function(e){return e.id===M}),t=eQ({},g),j&&t&&(t.zone=j.zone),e.next=37;break;case 31:return e.next=33,m.TradeMap.getSwapById(M);case 33:w=e.sent,v=(en?u.VV:u.WO)(M)?(0,p.bn)("永续U本位"):(en?u.lF:u.D5)(M)?(0,p.bn)("USDC合约"):(en?u.x:u.a3)(M)?(0,p.bn)("永续币本位"):"unknown",(t=eQ({},w))&&(t.description=v);case 37:y(t);case 38:case"end":return e.stop()}},e)})),[M,a,l]),ea=(0,f.useCallback)(function(e){return l?m.FAVORITE_TYPE.LITE:(0,u.a3)(e)?m.FAVORITE_TYPE.SWAP_COIN:(0,u.WO)(e)?m.FAVORITE_TYPE.SWAP_USDT:(0,u.D5)(e)?m.FAVORITE_TYPE.SWAP_USDC:(0,u.x)(e)?m.FAVORITE_TYPE.SWAP_COIN_TESTNET:(0,u.VV)(e)?m.FAVORITE_TYPE.SWAP_USDT_TESTNET:(0,u.lF)(e)?m.FAVORITE_TYPE.SWAP_USDC_TESTNET:m.FAVORITE_TYPE.SPOT},[]);(0,f.useEffect)(function(){v&&(H&&H(!0),ee&&ee(!0))},[v]);var es=(0,x.tv)(),er=(0,K.gW)("/categories/4971198741022-%E6%B0%B8%E7%BB%AD%E5%90%88%E7%BA%A6"),eo=en?"/swap-info/demo":"/swap-info",el=(0,f.useCallback)(function(e){E(!1);var t=m.Swap.Trade.base,n=t.isUsdtType,i=t.quoteId,a=i?"&symbol=".concat(i.toLowerCase()):"";es.push("".concat(eo,"?page=").concat(e).concat(n?"&type=usdt":"").concat(a))}
1,[es,eo]),ec=(null===(n=es.query)||void 0===n?void 0:n.locale)||"en",ed=function(e,t){var n={zh:"如何交易{{coin}}",zh_TW:"如何交易{{coin}}",en:"How to trade {{coin}}",id:"Cara memperdagangkan {{coin}}",ja:"{{coin}}の取引方法",ko:"{{coin}} 거래 방법",es:"C\xf3mo operar con {{coin}}",fr:"Comment trader {{coin}}",hi:"{{coin}} का व्यापार कैसे करें",bn:"কীভাবে {{coin}} ট্রেড করবেন",te:"{{coin}}ని ఎలా ట్రేడ్ చేయాలి",tl:"Paano mag-trade ng {{coin}}",ar:"كيفية تداول {{coin}}",vi:"C\xe1ch giao dịch {{coin}}",pt:"Como negociar {{coin}}",it:"Come fare trading su {{coin}}"};return(n[e]||n.en).replace(/\{\{coin\}\}/g,t||"BTC")};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash)+" quote-header",children:[(0,q.jsxs)("div",{ref:function(e){$.current=e,et.current=e},onClick:function(){return N(!0)},className:"jsx-".concat(eJ.__hash)+" left",children:[(0,q.jsx)("div",{className:"jsx-".concat(eJ.__hash)+" quoteInfo",children:a?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(G.f,{visuallyHidden:!0,children:(0,u.zT)(null!=v&&v.coin&&null!=v&&v.quoteCoin?"".concat(v.coin,"/").concat(v.quoteCoin):(0,u.yI)(M)||(0,p.bn)("现货交易"))}),(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash),children:[(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash)+" main-color font16",children:null==v?void 0:v.coin}),(0,q.jsxs)("span",{className:"jsx-".concat(eJ.__hash)+" main-color font16",children:["/",null==v?void 0:v.quoteCoin]})]})]}):l?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(G.f,{visuallyHidden:!0,children:(0,u.zT)((null==v?void 0:v.zone)==="加密货币"&&null!=v&&v.coin&&null!=v&&v.quoteCoin?"".concat(v.coin).concat(v.quoteCoin):null!=v&&v.zone&&(null==v?void 0:v.zone)!=="加密货币"?(0,p.bn)((null==v?void 0:v.name)||""):(null==v?void 0:v.coin)||(0,u.yI)(M)||(0,p.bn)("简易合约"))}),(null==v?void 0:v.zone)==="加密货币"&&null!=v&&v.coin&&null!=v&&v.quoteCoin?(0,q.jsxs)("span",{className:"jsx-".concat(eJ.__hash)+" main-color font16",children:[v.coin,v.quoteCoin]}):null!=v&&v.zone&&(null==v?void 0:v.zone)!=="加密货币"?(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash)+" main-color font16",children:(0,p.bn)((null==v?void 0:v.name)||"")}):(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash)+" main-color font16",children:null==v?void 0:v.coin})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(G.f,{visuallyHidden:!0,children:(0,u.BC)((null==v?void 0:v.name)||(0,u.yI)(M)||(0,p.bn)("永续合约"),(0,p.bn)("永续合约"))}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash)+" main-color font16",children:(0,u.zT)((null==v?void 0:v.name)||(0,u.yI)(M)||(0,p.bn)("永续合约"))})]})}),(0,q.jsx)(g.Z,{name:"common-icon-down",size:16})]}),(0,q.jsxs)("div",{ref:B,className:"jsx-".concat(eJ.__hash)+" right",children:[(0,q.jsx)(w.Z,{code:M,type:ea(M),width:20,height:20,inQuoteList:!0}),h&&(0,q.jsx)("div",{onClick:function(){return E(!0)},className:"jsx-".concat(eJ.__hash)+" guide",children:(0,q.jsx)(g.Z,{size:20,name:"common-info-more",alt:ed(ec,null==v?void 0:v.coin)})}),a&&U&&(0,q.jsx)("div",{onClick:function(){return J(!0)},className:"jsx-".concat(eJ.__hash)+" guide",children:(0,q.jsx)(g.Z,{size:20,name:"common-info-more",alt:ed(ec,null==v?void 0:v.coin)})})]}),(0,q.jsx)(V,{open:_,onClose:function(){return N(!1)},isSpotPage:a,isLitePage:l}),(0,q.jsx)(eT,{open:R.show,onClose:function(){return D({show:!1,index:0})},tabIndex:R.index,isUsdtType:A}),(0,q.jsx)(S.gY,{visible:C,close:function(){return E(!1)},title:(0,p.bn)("更多"),hasBtn:!1,content:(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash)+" help-center-content",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash)+" help-menu-actions ",children:[(0,q.jsx)(Q.Z,{className:"help-menu-item",size:24,icon:(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash)+" help-menu-item-content",children:[(0,q.jsx)(g.Z,{name:"common-trade-setting",size:24}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("交易设置")})]})}),(0,q.jsxs)("div",{onClick:function(){E(!1),m.Swap.Trade.setModal({calculatorVisible:!0})},className:"jsx-".concat(eJ.__hash)+" help-menu-item help-menu-item-content",children:[(0,q.jsx)(g.Z,{name:"common-calculator",size:24}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("计算器")})]}),(0,q.jsxs)("div",{onClick:function(){return el(1)},className:"jsx-".concat(eJ.__hash)+" help-menu-item help-menu-item-content",children:[(0,q.jsx)(g.Z,{name:"common-funding-rate",size:24}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("资金费率")})]}),(0,q.jsxs)("div",{onClick:function(){return el(0)},className:"jsx-".concat(eJ.__hash)+" help-menu-item help-menu-item-content",children:[(0,q.jsx)(g.Z,{name:"common-contract-info",size:24}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("合约信息")})]})]}),(0,q.jsxs)("div",{onClick:function(){X(!0),E(!1)},className:"jsx-".concat(eJ.__hash)+" help-guide-card",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash)+" help-menu-item",children:[(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("新手引导")}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("核心功能步骤引导")})]}),(0,q.jsx)(g.Z,{name:"common-chevron-right",size:24})]}),(0,q.jsxs)("div",{onClick:function(){E(!1),window.open(er,"_blank","noopener,noreferrer")},className:"jsx-".concat(eJ.__hash)+" help-guide-card",children:[(0,q.jsxs)("div",{className:"jsx-".concat(eJ.__hash)+" help-menu-item",children:[(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("帮助中心")}),(0,q.jsx)("span",{className:"jsx-".concat(eJ.__hash),children:(0,p.bn)("更全面帮助你学习交易知识")})]}),(0,q.jsx)(g.Z,{name:"common-chevron-right",size:24})]})]})})}),(0,q.jsx)(eR,{isShow:z,onClose:function(){return O(!1)}}),(0,q.jsx)(e$,{isShow:L,onClose:function(){return F(!1)}})]}),(0,q.jsx)(o(),{id:eJ.__hash,children:eJ})]})},eJ=[".quote-header.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:3rem;padding:0 1rem;}",".quote-header.jsx-2694912934 .left.jsx-2694912934,.quote-header.jsx-2694912934 .right.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".quote-header.jsx-2694912934 .left.jsx-2694912934{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:8px;}",".quote-header.jsx-2694912934 .right.jsx-2694912934{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:16px;}",".quote-header.jsx-2694912934 .quoteInfo.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".quote-header.jsx-2694912934 .quoteInfo.jsx-2694912934 .font16{font-size:16px;font-weight:600;color:var(--content_1);line-height:24px;}",".quote-header.jsx-2694912934 .quoteInfo.jsx-2694912934,.quote-header.jsx-2694912934 .guide.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".main-color.jsx-2694912934{color:var(--content_1);}",".sub-color.jsx-2694912934{color:var(--content_3);}",".font12.jsx-2694912934{font-size:12px;white-space:nowrap;}",".font14.jsx-2694912934{font-size:14px;font-weight:500;white-space:nowrap;}",".font16.jsx-2694912934{font-size:16px;font-weight:600;white-space:nowrap;}",".swap-setting.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px;padding:0 1rem 1rem;cursor:pointer;}",".help-center-content.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--xsm-12,12px);-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;width:100%;}",".help-menu-actions.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;width:100%;margin-top:8px;}",".help-menu-item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;gap:var(--xxsm-8,8px);-webkit-flex:1 0 0;-ms-flex:1 0 0;flex:1 0 0;}",".help-menu-item-content{-webkit-flex:1 0 0;-ms-flex:1 0 0;flex:1 0 0;min-width:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--xxsm-8,8px);cursor:pointer;}",".help-menu-item-content span.jsx-2694912934{color:var(--content_1,#000);font-family:Lexend;font-size:12px;font-style:normal;font-weight:400;line-height:16px;}",".help-guide-card.jsx-2694912934{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:16px 12px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--xxxsm-4,4px);-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:8px;background:var(--fill_default,#1d1d1d);cursor:pointer;}",".help-guide-card.jsx-2694912934 .help-menu-item span.jsx-2694912934:first-child{color:var(--content_1,#fff);font-family:Lexend;font-size:14px;font-style:normal;font-weight:500;line-height:20px;}",".help-guide-card.jsx-2694912934 .help-menu-item span.jsx-2694912934:last-child{color:var(--content_2,#aeaeae);font-family:Lexend;font-size:12px;font-style:normal;font-weight:400;line-height:16px;}",".help-guide-card.jsx-2694912934 .help-menu-item:visited,.help-guide-card.jsx-2694912934 .help-menu-item:hover,.help-guide-card.jsx-2694912934 .help-menu-item:active{color:var(--content_1);}"];eJ.__hash="2694912934"},63544:function(e,t,n){n.d(t,{r:function(){return C}});
1var i,a=n(50029),s=n(64254),r=n.n(s),o=n(64687),l=n.n(o),c=n(45858),d=n(63673),x=n(43631),p=n(95541),m=n(16508),u=n(97126),f=n(17973),b=n(38323),h=n(67294),g=n(91291),j=n(50093),w=n(94748),v=n(38711),y=n(90512),k=n(19886),_=n(13450),N=n(31382),S=n(85128),T=n(85893),C=function(e){var t,n,s,o,C,I,z,O,P=e.isSpot,L=void 0!==P&&P,F=e.isLite,Z=void 0!==F&&F,q=(0,h.useState)(null),R=q[0],D=q[1],M=(0,h.useState)(),U=M[0],A=M[1],W=(0,h.useState)(!1),X=W[0],H=W[1],$=(0,x.tv)(),B=null===(t=$.query)||void 0===t?void 0:t.id,V=(0,k.i)(B).isFlagPriceType,Y=(0,f.Z)().isRTL,G=(0,S.L)(B,Z).isOpening,Q=Z&&!G,K=(0,h.useRef)(B);(0,h.useEffect)(function(){void 0!==i&&i!==B&&D(null)},[B]),(0,h.useEffect)(function(){return function(){i=B}},[B]),(0,h.useEffect)(function(){if(!Z||!B){K.current=B||"";return}u.Group.getInstance().then(function(e){K.current=e.getLiteQuoteCode(B)||B})},[B,Z]),(0,h.useEffect)(function(){var e=function(e){var t=e.detail;B&&null!=t&&t.id&&t.id.toUpperCase()===K.current.toUpperCase()&&D(t)};return window.addEventListener(m.KW.ws4001,e),function(){return window.removeEventListener(m.KW.ws4001,e)}},[B,Z]);var J=(0,v.useSwapTour)().ref2;(0,h.useEffect)(function(){ei()},[B]);var ee=u.Swap.Trade.base.quoteId,et=u.Swap.Socket.getFlagPrice(ee),en=(0,b.Co)((0,g.Z)().pathname),ei=(0,h.useCallback)((0,a.Z)(l().mark(function e(){var t,n,i,a,s,r,o,c,x,m;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.next=3,u.Group.getInstance();case 3:if(n=e.sent,!L){e.next=20;break}return e.next=7,u.TradeMap.getSpotById(B);case 7:if(t=e.sent,(i=n.getSpotList.find(function(e){return e.id===B}))&&t&&(t.fullname=i.fullname),!(0,b.wb)(B)){e.next=18;break}return e.next=14,(0,d.getCommonEtfCommodityApi)(B);case 14:s=e.sent,o=(r=(0,b.rG)(B)).lever,c=r.isBuy,x="".concat((0,b.Om)(null==s||null===(a=s.data)||void 0===a?void 0:a.currency)," ").concat((0,b.Om)(o),"X ").concat(c?(0,p.bn)("多"):(0,p.bn)("空")),t.etfTitle=x;case 18:e.next=31;break;case 20:if(!Z){e.next=26;break}return e.next=23,u.TradeMap.getLiteById(B);case 23:t=e.sent,e.next=31;break;case 26:return e.next=28,u.TradeMap.getSwapById(B);case 28:t=e.sent,m=(en?b.VV:b.WO)(B)?(0,p.bn)("永续U本位"):(en?b.lF:b.D5)(B)?(0,p.bn)("USDC合约"):(en?b.x:b.a3)(B)?(0,p.bn)("永续币本位"):"unknown",t&&(t.description=m);case 31:A(t);case 32:case"end":return e.stop()}},e)})),[B,L,Z]);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" quote-info",children:[(0,T.jsxs)("div",{style:{lineHeight:L||Z?"1":"normal"},className:"jsx-".concat(E.__hash)+" "+"left ".concat(L||Z?"gap8":""),children:[(0,_.uw)($.asPath)&&(0,T.jsx)(w.q,{swapId:B}),(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" "+((0,y.Z)("price","font24",Q?"is-closed":null!=R&&R.isUp?"main-raise":"main-fall")||""),children:null!==(n=V?null==et?void 0:et.toFormat():null==R||null===(s=R.price)||void 0===s?void 0:s.toFormat())&&void 0!==n?n:"--"}),(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" "+"change ".concat(L||Z?"wrap gap8 font14":"font12"),children:[(0,T.jsxs)("span",{className:"jsx-".concat(E.__hash)+" "+((0,y.Z)(Q?"is-closed":"main-color","marginRight8")||""),children:["≈ ",(0,T.jsxs)("span",{className:"jsx-".concat(E.__hash)+" "+((0,y.Z)(Y&&"lock-ltr")||""),children:["$",null==R||null===(o=R.price)||void 0===o?void 0:o.toFormat()]})]}),(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" "+((0,y.Z)(Q?"is-closed":null!=R&&R.isUp?"main-raise":"main-fall",Y&&"lock-ltr")||""),children:Q?(0,p.bn)("休市"):(null==R?void 0:R.rate)!=null?"".concat(R.rate,"%"):"--"})]}),!L&&!Z&&(0,T.jsxs)(T.Fragment,{children:[V?(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" second-color font12",children:[(0,p.bn)("最新价格")," ",null==R||null===(C=R.price)||void 0===C?void 0:C.toFormat()]}):(0,T.jsx)("div",{onClick:function(){return H(!0)},className:"jsx-".concat(E.__hash)+" second-color font12",children:(0,T.jsxs)(c.Me,{componnet:"span",children:[(0,p.bn)("标记价格")," ",null==et?void 0:et.toFormat()]})}),(0,T.jsx)(N.h,{visible:X,onClose:function(){return H(!1)},quoteId:ee})]})]}),(0,T.jsx)("div",{className:"jsx-".concat(E.__hash)+" right",children:(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" right-content",children:[(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" row",children:[(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" sub-color font12",children:(0,p.bn)("24H最高")}),(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" main-color font12",children:null==R||null===(I=R.maxPrice)||void 0===I?void 0:I.toFormat()})]}),(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" row",children:[(0,T.jsxs)("span",{className:"jsx-".concat(E.__hash)+" sub-color font12",children:[(0,p.bn)("24H成交量"),"(",null==U?void 0:U.coin,")"]}),(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" main-color font12",children:null==R||null===(z=R.volume)||void 0===z?void 0:z.toFormatUnit()})]}),(0,T.jsxs)("div",{className:"jsx-".concat(E.__hash)+" row",children:[(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" sub-color font12",children:(0,p.bn)("24H最低")}),(0,T.jsx)("span",{className:"jsx-".concat(E.__hash)+" main-color font12",children:null==R||null===(O=R.minPrice)||void 0===O?void 0:O.toFormat()})]}),(null==U?void 0:U.description)&&(0,T.jsx)("div",{ref:J,className:"jsx-".concat(E.__hash)+" funding-rate-quote",children:(0,T.jsx)(j.O,{isOpen:null==R?void 0:R.isOpen})})]})})]}),(0,T.jsx)(r(),{id:E.__hash,children:E})]})},E=[".quote-info.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:12px 1rem;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:4px;}",".quote-info.jsx-2980804096 .left.jsx-2980804096,.quote-info.jsx-2980804096 .right.jsx-2980804096{height:auto;}",".quote-info.jsx-2980804096 .left.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:4px;}",".quote-info.jsx-2980804096 .left.gap8.jsx-2980804096{gap:8px;}",".quote-info.jsx-2980804096 .left.jsx-2980804096 div.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".quote-info.jsx-2980804096 .left.jsx-2980804096 div.wrap.jsx-2980804096{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:4px;}",".quote-info.jsx-2980804096 .left.jsx-2980804096 div.wrap.gap8.jsx-2980804096{gap:8px;}",".quote-info.jsx-2980804096 .left.jsx-2980804096 .price.jsx-2980804096{font-weight:600;}",".quote-info.jsx-2980804096 .right.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;min-width:168px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}",".quote-info.jsx-2980804096 .right.jsx-2980804096 .row.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;}",".quote-info.jsx-2980804096 .right.jsx-2980804096 .right-content.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-align-content:space-between;-ms-flex-line-pack:space-between;align-content:space-between;gap:var(--xxxsm-4,4px);-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;}",".quote-info.jsx-2980804096 .price-box.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:1em;}",".quote-info.jsx-2980804096 .col.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;gap:8px;}",".quote-info.jsx-2980804096 .col.jsx-2980804096 div.jsx-2980804096{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;gap:4px;}",".quote-info.jsx-2980804096 .col.jsx-2980804096 div.jsx-2980804096:first-child{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}",".quote-info.jsx-2980804096 .col.jsx-2980804096 div.jsx-2980804096:last-child{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".main-raise{color:var(--color-green);}",".main-fall{color:var(--color-red);}",".is-closed.jsx-2980804096{color:var(--content_3);}",".marginRight4.jsx-2980804096{margin-inline-end:4px;}",".marginRight8.jsx-2980804096{margin-inline-end:8px;}",".main-color.jsx-2980804096{color:var(--content_1);}",".sub-color.jsx-2980804096{color:var(--content_3);}",".second-color.jsx-2980804096{color:var(--content_2);}",".font10.jsx-2980804096{font-size:10px;}",".font12.jsx-2980804096{font-size:12px;font-weight:400;white-space:nowrap;}",".font14.jsx-2980804096{font-size:14px;font-weight:400;white-space:nowrap;}",".font20.jsx-2980804096{font-size:20px;font-weight:600;white-space:nowrap;}",".font24.jsx-2980804096{font-size:24px;font-weight:600;white-space:nowrap;}",".info-label{font-size:12px;}",".funding-rate-quote.jsx-2980804096{color:var(--content_3);}",".quote-mark-price-wrap.jsx-2980804096{cursor:pointer;}"];E.__hash="2980804096"},73806:function(e,t,n){n.r(t),n.d(t,{default:function(){return T},steps:function(){return N},useSpotTour:function(){return y}});var i=n(59499),a=n(50029),s=n(64687),r=n.n(s),o=n(95541),l=n(88926),c=n(67294),d=n(64254),x=n.n(d),p=n(79249),m=n(97126),u=n(85893),f=function(e){var t=e.title,n=e.content,i=e.dangerInfo,a=e.onClose,s=e.video,r=e.defaultVideo,l=(0,c.useRef)(),d=(0,c.useRef)(),f=(0,c.useState)(""),b=f[0],h=f[1],g=(0,c.useState)(s),j=g[0],w=g[1];c.useEffect(function(){m.Info.getInstance().then(function(e){e&&h(e.iconsUrl.replace(/\/?icons\/?/,""))})},[]),(0,c.useLayoutEffect)(function(){var e,t,n,i;
1if(d.current&&l.current&&b&&j){var a=function(){t.drawImage(n,0,0,e.width,e.height)};e=d.current,n=l.current,t=e.getContext("2d"),e.width=600,e.height=300,n.play(),a(),i=setInterval(function(e){a()},40)}return function(){clearInterval(i)}},[b,j]);var v=b&&j?"".concat(b).concat(j,"?v=v2"):null;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"jsx-939241928 guide-popover",children:[(0,u.jsxs)("div",{className:"jsx-939241928 video",children:[v&&(0,u.jsx)("video",{ref:l,id:"main-video",playsInline:!0,"webkit-playsinline":"true","x5-playsinline":"true","x5-video-orientation":"portraint","x5-video-player-fullscreen":"true","x5-video-player-type":"h5",style:{display:"none"},onEnded:function(){return l.current.play()},onError:function(){w(r)},className:"jsx-939241928",children:(0,u.jsx)("source",{id:"js-video-source",src:v,className:"jsx-939241928"})},v),(0,u.jsx)("canvas",{ref:d,style:{width:"100%",height:"100%"},id:"canvas",className:"jsx-939241928"})]}),(0,u.jsx)("div",{className:"jsx-939241928 title",children:t}),(0,u.jsx)("div",{className:"jsx-939241928 content",children:n.map(function(e,t){return"space"===e?(0,u.jsx)("div",{className:"jsx-939241928 space"},t):(0,u.jsx)("div",{className:"jsx-939241928",children:e},t)})}),i&&(0,u.jsx)("div",{className:"jsx-939241928 danger",children:i}),(0,u.jsx)("div",{className:"jsx-939241928 bottom",children:(0,u.jsx)(p.z,{type:"primary",className:"button",onClick:a,children:(0,o.bn)("好的")})})]}),(0,u.jsx)(x(),{id:"939241928",children:[".guide-popover.jsx-939241928 .video.jsx-939241928{height:".concat(150,"px;margin-bottom:8px;}"),".guide-popover.jsx-939241928 .title.jsx-939241928{font-size:14px;color:var(--theme-trade-text-color-1);margin-bottom:5px;}",".guide-popover.jsx-939241928 .content.jsx-939241928>div.jsx-939241928{font-size:12px;color:var(--theme-trade-text-color-3);}",".guide-popover.jsx-939241928 .content.jsx-939241928 .space.jsx-939241928{height:20px;}",".guide-popover.jsx-939241928 .danger.jsx-939241928{font-size:12px;color:var(--const-color-error);}",".guide-popover.jsx-939241928 .bottom.jsx-939241928{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-top:4px;}",".guide-popover.jsx-939241928 .bottom.jsx-939241928 .button{height:30px;min-width:75px;}"]})]})},b=n(31221),h=n(76232),g=(0,l.oj)({step:0,showDemoMenu:!1,setCurrentStep:function(e){g.step=e}},{nameSpace:l.et.SPOT_TRADE_TOUR,whileList:["step"]}),j=n(43631);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var y=function(){return(0,c.useContext)(k)},k=c.createContext({setOpen:function(e){},setCurrentStep:function(e){},setQuoteReady:function(e){},refTradeViewOpenBtn:{current:null},refTradeViewCloseBtn:{current:null},ref1:{current:null},ref2:{current:null},ref3:{current:null},ref4:{current:null},ref5:{current:null}}),_={position:"bottom",style:{background:"var(--theme-background-color-8)",borderRadius:8,padding:10,width:280}},N=[v({selector:".swap-guide-step-1",content:function(){return{title:(0,o.bn)("划转"),content:[(0,o.bn)("立即从现货账户划转资金至合约账户,开始合约交易")],video:"/mp4/trade-swap-guide-step1/"}}},_),v({selector:".swap-guide-step-2",content:function(){return{title:(0,o.bn)("什么是合约杠杆"),content:[(0,o.bn)("槓桿會放大您的最大購買力,如果10X做多,當前價格若上漲1%,盈利將達到10%;當前價格下跌1%,虧損將達到10%")],dangerInfo:"(".concat((0,o.bn)("新手建議使用低倍槓桿"),")"),video:"/mp4/trade-swap-guide-step2/"}}},_),v({selector:".swap-guide-step-3",content:function(){return{title:(0,o.bn)("填入價格/數量"),content:["1. ".concat((0,o.bn)("填入你預期的開倉價格,如果市價單則會以最優價成交")),"2. ".concat((0,o.bn)("填入你預期的開倉數量,其中最大可開數量為當前槓桿下的最大購買力"))],video:"/mp4/trade-swap-guide-step3/"}}},_),v({selector:".swap-guide-step-4",content:function(){return{title:(0,o.bn)("开仓"),content:[(0,o.bn)("根據您對漲跌的判斷在å
1¡«å¯«åƒ¹æ ¼å’Œæ•¸é‡ä¹‹å¾Œï¼Œå¯é¸æ“‡é–‹å¤šæˆ–是開空。"),"space","1. ".concat((0,o.bn)("開多(我認為該幣種會漲 ↑)")),"2. ".concat((0,o.bn)("開空(我認為該幣種會跌 ↓)"))],video:"/mp4/trade-swap-guide-step4/"}}},_)].map(function(e){return v(v({},e),{},{content:function(t){var n=t.close,i=e.content();return(0,u.jsx)(S,{children:function(e){return(0,u.jsx)(f,{title:i.title,content:i.content,dangerInfo:i.dangerInfo,onClose:n,defaultVideo:"".concat(i.video,"en.mp4"),video:"".concat(i.video).concat(e,".mp4")})}})}})}),S=function(e){var t=e.children,n=(0,l.bp)().locale;return(0,u.jsx)(u.Fragment,{children:t(n)})},T=function(e){var t,n=e.children,i=(0,l.GY)(g);i.initCache();var s=(0,j.Fg)().theme,d=m.Account.isLogin,x=(0,c.useState)(!1),p=x[0],f=x[1],w=i.step,v=i.setCurrentStep,y=i._initCached,_=(0,c.useRef)(null),N=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useRef)(null),C=(0,c.useRef)(null),E=(0,c.useRef)(null),I=(0,c.useRef)(null),z=[2,3],O=(0,c.useState)(!1),P=O[0],L=O[1],F=(0,c.useState)(0),Z=F[0],q=F[1],R=(0,c.useState)(!1),D=R[0],M=R[1],U=(0,c.useState)(!1),A=U[0],W=U[1],X=function(e){var t,n;if(z.includes(e)){if(!N.current)return null===(t=_.current)||void 0===t||t.click(),W(!0),!1}else N.current&&(null===(n=N.current)||void 0===n||n.click(),W(!1));return!0},H=(t=(0,a.Z)(r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:X(Z+1)||L(!0),(!z.includes(Z+1)||A)&&(q(function(e){return e+1}),v(Z+1));case 2:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),$=function(){X(Z-1)||L(!1),(!z.includes(Z-1)||A)&&(q(function(e){return e-1}),v(Z-1))},B=[{title:(0,o.bn)("选择现货币对"),description:(0,o.bn)("您可以点击此处选择现货币对"),target:function(){return S.current},placement:"bottomLeft",onNext:H,onPrev:$,nextButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-next-tour-step-0",size:24})}},{title:(0,o.bn)("选择交易方向"),description:(0,o.bn)("选择买入或卖出币种"),target:function(){return T.current},placement:"top",onNext:H,onPrev:$,prevButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-prev-tour-step-0",size:24})},nextButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-next-tour-step-0",size:24})}},{title:(0,o.bn)("输入价格/数量"),description:(0,o.bn)("输入买入/卖出价格和数量"),target:function(){return C.current},placement:"bottom",onNext:H,onPrev:$,prevButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-prev-tour-step-0",size:24})},nextButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-next-tour-step-0",size:24})}},{title:(0,o.bn)("当前可用资金"),description:(0,o.bn)("当前可用资金,点击此处转入更多"),target:function(){return E.current},onNext:H,onPrev:$,prevButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-prev-tour-step-0",size:24})},nextButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-next-tour-step-0",size:24})}},{title:(0,o.bn)("查看订单/资产"),description:(0,o.bn)("查看订单和资产"),target:function(){return I.current},placement:"bottom",onNext:H,onPrev:$,prevButtonProps:{children:(0,u.jsx)(h.Z,{name:"common-prev-tour-step-0",size:24})},nextButtonProps:{className:"tour-step-finish-button",children:(0,o.bn)("立即交易")}}];return(0,c.useEffect)(function(){if(D&&A){var e=setInterval(function(){C.current&&(P?q(function(e){return e+1}):q(function(e){return e-1}),clearInterval(e))},600);return function(){return clearInterval(e)}}},[A,P]),(0,c.useEffect)(function(){d&&p&&y&&0===w&&M(!0)},[d,p,y]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.Z,{open:D,current:Z,onClose:function(){q(0),v(B.length-1),M(!1)},steps:B,rootClassName:"my-ant-tour ".concat(s&&s),disabledInteraction:!0,gap:{radius:12},closeIcon:(0,u.jsx)(h.Z,{name:"common-modal-close",size:24,enableSkin:!0}),mask:{color:"var(--bg_overlay)"},indicatorsRender:function(e,t){return(0,u.jsxs)("span",{children:[e+1,"/",t]})},onFinish:function(){_.current&&_.current.click()}}),(0,u.jsx)(k.Provider,{value:{setOpen:M,setCurrentStep:v,setQuoteReady:f,refTradeViewOpenBtn:_,refTradeViewCloseBtn:N,ref1:S,ref2:T,ref3:C,ref4:E,ref5:I},children:n})]})}}}]);

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.