forked from Romeo-Rosete/EXCHANGE-SECURITY
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path85688-d430858b419d111.js.download
1 lines (1 loc) · 12.2 KB
/
85688-d430858b419d111.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85688,19436,61606],{47939:function(n,e,t){t.r(e),t.d(e,{default:function(){return Y}});var r=t(66180),o=t(22710),i=t(95210),a=t(15386),c=t(67557),u=t(51012),s=t(47998),l=t(5163),d=t(52322),f=t(2784),p=t(49948),h=t(92521),m=t.n(h),g=t(25237),x=t.n(g),b=t(5632),v=t.n(b),C=t(34039),w=t(15798),Z=t.n(w),I=t(16090),k=t(46364),y=t(75190),j=t(82740),P=t(48840),E=t(53733),R=t(68879),N=t(48723);function S(){var n=(0,y.Z)(["\n top: 30px;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n padding: 4px 12px;\n background: var(--border-color);\n border-radius: 5px;\n font-size: 14px;\n z-index: ",";\n\n .cmc-icon {\n color: #16c784;\n }\n"]);return S=function(){return n},n}var T=j.ZP.div.withConfig({componentId:"sc-cf687416-0"})(S(),N.W5.MESSAGE),G=(0,p.connect)((function(n){return{message:n.app.message}}))((function(n){var e=n.dispatch,t=n.message;return(0,f.useEffect)((function(){t&&(0,E.Z)((function(){e((0,R.setMessage)())}),5e3)}),[t,e]),t?(0,d.jsxs)(T,{children:[(0,d.jsx)(P.Z,{className:"cmc-icon",size:"14px",mr:1}),(0,d.jsx)("span",{children:t})]}):null})),_=x()((function(){return t.e(90551).then(t.bind(t,90551))}),{loadableGenerated:{webpack:function(){return[90551]}},ssr:!1}),A=x()((function(){return t.e(86725).then(t.bind(t,86725))}),{loadableGenerated:{webpack:function(){return[86725]}},ssr:!1}),D=x()((function(){return t.e(59640).then(t.bind(t,59640))}),{loadableGenerated:{webpack:function(){return[59640]}},ssr:!1}),L=x()((function(){return t.e(97621).then(t.bind(t,97621))}),{loadableGenerated:{webpack:function(){return[97621]}},ssr:!1}),H=x()((function(){return t.e(83605).then(t.bind(t,83605))}),{loadableGenerated:{webpack:function(){return[83605]}},ssr:!1}),z=x()((function(){return t.e(78312).then(t.bind(t,78312))}),{loadableGenerated:{webpack:function(){return[78312]}},ssr:!1}),M=x()((function(){return t.e(39802).then(t.bind(t,39802))}),{loadableGenerated:{webpack:function(){return[39802]}},ssr:!1}),O=x()((function(){return t.e(98132).then(t.bind(t,98132))}),{loadableGenerated:{webpack:function(){return[98132]}},ssr:!1}),F=x()((function(){return t.e(22975).then(t.bind(t,22975))}),{loadableGenerated:{webpack:function(){return[22975]}},ssr:!1}),U=x()((function(){return t.e(89561).then(t.bind(t,89561))}),{loadableGenerated:{webpack:function(){return[89561]}},ssr:!1}),W=(0,p.connect)((function(n){return{modal:n.app.modal.instance}}))((function(n){switch(n.modal){case Z().modal.LIQUIDITY_HELPER:return(0,d.jsx)(_,{});case Z().modal.TRAFFIC_SCORE_HELPER:return(0,d.jsx)(A,{});case Z().modal.ADJUSTED_VOLUMES_HELPER:return(0,d.jsx)(D,{});case Z().modal.CONFIDENCE_INDICATOR_HELPER:return(0,d.jsx)(L,{});case Z().modal.CONFIDENCE_RANGE_TIPS:return(0,d.jsx)(H,{});case Z().modal.MARKET_PAIR_RANK_TIPS:return(0,d.jsx)(z,{});case Z().modal.EXCHANGES_RANKING_TOOLTIP:return(0,d.jsx)(M,{});case Z().modal.EXCHANGES_FIAT_SUPPORTED:return(0,d.jsx)(O,{});case Z().modal.FIAT_ON_RAMP:return(0,d.jsx)(F,{});case Z().modal.YIELDFARMING_AUDITED:return(0,d.jsx)(U,{});default:return null}})),K=t(3952),X=(x()((function(){return Promise.all([t.e(15381),t.e(36750),t.e(21807),t.e(45702)]).then(t.bind(t,45702))}),{loadableGenerated:{webpack:function(){return[45702]}},ssr:!1}),function(n){(0,u.Z)(t,n);var e=(0,s.Z)(t);function t(n){var o;return(0,i.Z)(this,t),o=e.call(this,n),(0,c.Z)((0,r.Z)(o),"handleRouteChangeStart",(function(){m().start()})),(0,c.Z)((0,r.Z)(o),"handleRouteChangeComplete",(function(){var n=o.props,e=n.dispatch;n.modal&&e((0,R.setModal)()),m().done()})),m().configure({minimum:.25,easing:"ease",speed:500,trickleSpeed:250,showSpinner:!1}),o}return(0,a.Z)(t,[{key:"componentDidMount",value:function(){var n=this.props,e=n.dispatch,t=n.locale,r=n.isInApp,o=n.themeID,i=I.pR.get(Z().cookies.LOCALE)||(0,K.v0)();i&&t!==i&&e((0,R.setLocale)(i));var a=(0,k.aE)(),c=((null===a||void 0===a?void 0:a.theme)||I.pR.get(Z().cookies.THEME)||"").toUpperCase();v().asPath.split(/[\?\#]+/)[0]in C.u&&(c=Z().theme.NIGHT),Z().theme[c]&&r&&(null===a||void 0===a?void 0:a.theme)&&I.pR.set("cmc-theme",c),Z().theme[c]&&o!==c&&(e((0,R.setTheme)(c)),c===Z().theme.NIGHT?document.body.classList.add(Z().theme.NIGHT):document.body.classList.remove(Z().theme.NIGHT)),v().events.on("routeChangeStart",this.handleRouteChangeStart),v().events.on("routeChangeComplete",this.handleRouteChangeComplete)}},{key:"componentWillUnmount",value:function(){v().events.off("routeChangeStart",this.handleRouteChangeStart),v().events.off("routeChangeComplete",this.handleRouteChangeComplete)}},{key:"render",value:function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(N.nz,{}),this.props.children,(0,d.jsx)(G,{}),(0,d.jsx)(W,{}),!1]})}}],[{key:"getInitialProps",value:function(n){return(0,o.Z)((function(){var e,t,r,o,i,a;return(0,l.__generator)(this,(function(c){return e=n.ctx.store,t=e.dispatch,r=e.getState,o=r(),i=o.user.data,a=o.watchlist.loaded,i.token&&!a&&t((0,R.getWatchlist)()),[2,{}]}))}))()}}]),t}(f.PureComponent)),Y=(0,p.connect)((function(n){var e;return{lang:n.app.lang,locale:n.app.locale,themeID:n.app.theme,loggedIn:!!(null===(e=n.user.data)||void 0===e?void 0:e.id),watchlist:n.watchlist,modal:n.app.modal.instance,isInApp:n.app.isInApp}}))(X)},31535:function(n,e,t){t.d(e,{D0:function(){return T},HR:function(){return H},HY:function(){return E},JM:function(){return L},Nj:function(){return j},Ql:function(){return S},Rz:function(){return D},Tu:function(){return M},Vi:function(){return G},Xm:function(){return A},YM:function(){return P},fR:function(){return N},sh:function(){return R},tl:function(){return _},zk:function(){return z}});var r=t(67557),o=t(75190),i=t(52322),a=t(82740),c=t(38789),u=t(37881),s=t(99355);function l(){var n=(0,o.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 23px;\n justify-content: ",";\n"]);return l=function(){return n},n}function d(){var n=(0,o.Z)(["\n cursor: pointer;\n display: flex;\n flex-direction: row;\n align-items: center;\n > p {\n white-space: nowrap;\n }\n span[class^='icon'] {\n margin-left: 2px;\n margin-right: 2px;\n }\n"]);return d=function(){return n},n}function f(){var n=(0,o.Z)(["\n display: inline-block;\n height: 23px;\n"]);return f=function(){return n},n}function p(){var n=(0,o.Z)(["\n height: 22px;\n font-size: 11px;\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n padding: 0 4px;\n border-radius: 4px;\n background-color: ",";\n color: ",";\n\n img {\n height: 12px;\n width: 12px;\n border-radius: 6px;\n margin-inline-end: 4px;\n }\n"]);return p=function(){return n},n}function h(){var n=(0,o.Z)(["\n display: inline-block;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n"]);return h=function(){return n},n}function m(){var n=(0,o.Z)(["\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n"]);return m=function(){return n},n}function g(){var n=(0,o.Z)(["\n display: block;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n"]);return g=function(){return n},n}function x(){var n=(0,o.Z)(["\n display: block;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n"]);return x=function(){return n},n}function b(){var n=(0,o.Z)(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n word-break: break-word;\n gap: ",";\n .symbol {\n color: ",";\n font-weight: 600;\n }\n .quote-symbol {\n font-weight: 500;\n }\n"]);return b=function(){return n},n}function v(){var n=(0,o.Z)(["\n min-height: 48px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: ",";\n font-weight: ",";\n"]);return v=function(){return n},n}function C(){var n=(0,o.Z)(["\n .symbol {\n color: ",";\n font-weight: 500;\n }\n .quote-symbol {\n font-weight: 400;\n }\n"]);return C=function(){return n},n}function w(){var n=(0,o.Z)(["\n &.icon-Caret-up {\n color: #16c784;\n }\n &.icon-Caret-down {\n color: #ea3943;\n }\n"]);return w=function(){return n},n}var Z=a.ZP.div.withConfig({componentId:"sc-3729ca77-0"})(l(),(function(n){return n.flexEnd?"flex-end":"flex-start"}));Z.defaultProps={className:"sortable-header-container"};var I=a.ZP.div.withConfig({componentId:"sc-3729ca77-1"})(d()),k=a.ZP.span.withConfig({componentId:"sc-3729ca77-2"})(f());k.defaultProps={className:"icon-wrapper"};var y,j=function(n){var e=n.text,t=n.sortKey,r=n.currentSortKey,o=n.sortDirection,a=n.onSort,c=n.align,l=void 0===c?void 0:c,d=n.textClassName,f=void 0===d?void 0:d,p=n.explainer,h=void 0===p?null:p,m=n.t,g=void 0===m?function(n){return n}:m,x=function(){a(t,"asc"===o||r!==t?"desc":"asc"),s.Z.sendEvent({category:"Table Sort",action:t})},b=h||null;return"left"===l||"start"===l?(0,i.jsxs)(Z,{children:[(0,i.jsxs)(I,{onClick:x,children:[(0,i.jsx)(u.ZP,{className:f,fontSize:0,children:e}),(0,i.jsx)(k,{children:r===t&&("asc"===o?(0,i.jsx)("span",{className:"icon-Caret-up"}):(0,i.jsx)("span",{className:"icon-Caret-down"}))})]}),b&&(0,i.jsx)(b,{t:g})]}):(0,i.jsxs)(Z,{flexEnd:!0,children:[(0,i.jsxs)(I,{onClick:x,children:[(0,i.jsx)(k,{children:r===t&&("asc"===o?(0,i.jsx)("span",{className:"icon-Caret-up"}):(0,i.jsx)("span",{className:"icon-Caret-down"}))}),(0,i.jsx)(u.ZP,{className:f,fontSize:0,children:e})]}),b&&(0,i.jsx)(b,{t:g})]})},P=a.ZP.div.withConfig({componentId:"sc-3729ca77-3"})(p(),(function(n){return n.theme.colors.neutral2}),(function(n){return n.theme.isDay?"#000":"#fff"})),E=(0,i.jsx)(P,{children:"--"}),R=a.ZP.img.withConfig({componentId:"sc-3729ca77-4"})(h()),N=a.ZP.img.withConfig({componentId:"sc-3729ca77-5"})(m()),S=a.ZP.img.withConfig({componentId:"sc-3729ca77-6"})(g()),T=a.ZP.img.withConfig({componentId:"sc-3729ca77-7"})(x()),G=a.ZP.span.withConfig({componentId:"sc-3729ca77-8"})(b(),c.space100,c.colorTextPrimary),_=a.ZP.div.withConfig({componentId:"sc-3729ca77-9"})(v(),c.fontSize100,c.fontWeight500),A=(a.ZP.span.withConfig({componentId:"sc-3729ca77-10"})(C(),(function(n){return n.theme.isDay?"#000":"#fff"})),a.ZP.span.withConfig({componentId:"sc-3729ca77-11"})(w())),D={position:"relative",display:"inline-block",lineHeight:"100%",".network-logo":{position:"absolute",right:0,bottom:0}},L={display:"inline-flex",flexDirection:"row",alignItems:"center",gap:c.space100,".symbol":{color:c.colorTextPrimary,fontWeight:600},".quote-symbol":{fontWeight:500},".token-name":(y={overflow:"hidden",display:"-webkit-box !important","-webkit-box-orient":"vertical"},(0,r.Z)(y,"-webkit-line-clamp","1"),(0,r.Z)(y,"whiteSpace","pre-wrap"),y),".token-logo-img":{flex:"0 0 auto"}},H={".a-text":{display:"inline-block",lineHeight:"100%"},".pair-main-title":{}},z={display:"inline-flex",gap:c.space50,alignItems:"center"},M={width:"24px",height:"24px",borderRadius:"50%",display:"inline-flex",backgroundColor:c.colorGray200,alignItems:"center",justifyContent:"center",".empty-p-cmc":{color:c.colorGray400,fontSize:c.fontSize600}}},87962:function(n,e,t){t.d(e,{$G:function(){return r.useTranslation},GV:function(){return o},ag:function(){return r.i18n},cC:function(){return r.Trans}});var r=t(82981),o=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";return(0,r.withTranslation)(n)}},48840:function(n,e,t){var r=t(62230),o=t(85244),i=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,i.jsx)(a.Z,(0,o.Z)((0,r.Z)({},n),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM16.7557 9.65493C17.1174 9.23758 17.0723 8.60602 16.6549 8.24431C16.2376 7.8826 15.606 7.92771 15.2443 8.34507L10.8 13.4731L8.75569 11.1143C8.39398 10.6969 7.76242 10.6518 7.34507 11.0135C6.92771 11.3752 6.8826 12.0068 7.24431 12.4242L10.0443 15.6549C10.2343 15.8741 10.51 16 10.8 16C11.09 16 11.3657 15.8741 11.5557 15.6549L16.7557 9.65493Z"})}))}},37881:function(n,e,t){t.d(e,{Xl:function(){return p}});var r=t(62230),o=t(85244),i=t(75190),a=t(52322),c=t(2784),u=t(82740),s=t(58358),l=t(53563);function d(){var n=(0,i.Z)(["\n line-height: 1.5;\n margin: 0;\n ","\n ","\n ","\n"]);return d=function(){return n},n}var f=u.ZP.p.attrs({"data-sensors-click":!0}).withConfig({componentId:"sc-4984dd93-0"})(d(),l.Z,s.color,s.typography),p=(0,c.forwardRef)((function(n,e){return(0,a.jsx)(f,(0,o.Z)((0,r.Z)({},n),{as:"span",ref:e}))}));f.defaultProps={color:"text",fontSize:1},e.ZP=f}}]);