forked from bombastictranz/bitcoincom-solidity-swap
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-c98df0feda5f1477.js.download
1 lines (1 loc) · 8.12 KB
/
index-c98df0feda5f1477.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{1749:function(e,n,t){"use strict";var r=t(5987),i=t(7462),a=t(7294),o=(t(5697),t(6010)),s=t(1591),c=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=parseFloat(e);return"".concat(t/n).concat(String(e).replace(String(t),"")||"px")}var d=a.forwardRef((function(e,n){var t=e.alignContent,s=void 0===t?"stretch":t,c=e.alignItems,l=void 0===c?"stretch":c,u=e.classes,d=e.className,f=e.component,x=void 0===f?"div":f,g=e.container,h=void 0!==g&&g,m=e.direction,p=void 0===m?"row":m,v=e.item,y=void 0!==v&&v,w=e.justify,b=void 0===w?"flex-start":w,j=e.lg,S=void 0!==j&&j,C=e.md,Z=void 0!==C&&C,D=e.sm,O=void 0!==D&&D,_=e.spacing,z=void 0===_?0:_,E=e.wrap,k=void 0===E?"wrap":E,N=e.xl,T=void 0!==N&&N,W=e.xs,A=void 0!==W&&W,I=e.zeroMinWidth,M=void 0!==I&&I,q=(0,r.Z)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=(0,o.Z)(u.root,d,h&&[u.container,0!==z&&u["spacing-xs-".concat(String(z))]],y&&u.item,M&&u.zeroMinWidth,"row"!==p&&u["direction-xs-".concat(String(p))],"wrap"!==k&&u["wrap-xs-".concat(String(k))],"stretch"!==l&&u["align-items-xs-".concat(String(l))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==b&&u["justify-xs-".concat(String(b))],!1!==A&&u["grid-xs-".concat(String(A))],!1!==O&&u["grid-sm-".concat(String(O))],!1!==Z&&u["grid-md-".concat(String(Z))],!1!==S&&u["grid-lg-".concat(String(S))],!1!==T&&u["grid-xl-".concat(String(T))]);return a.createElement(x,(0,i.Z)({className:R,ref:n},q))})),f=(0,s.Z)((function(e){return(0,i.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,n){var t={};return c.forEach((function(r){var i=e.spacing(r);0!==i&&(t["spacing-".concat(n,"-").concat(r)]={margin:"-".concat(u(i,2)),width:"calc(100% + ".concat(u(i),")"),"& > $item":{padding:u(i,2)}})})),t}(e,"xs"),e.breakpoints.keys.reduce((function(n,t){return function(e,n,t){var r={};l.forEach((function(e){var n="grid-".concat(t,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[n]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[n]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[n]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===t?(0,i.Z)(e,r):e[n.breakpoints.up(t)]=r}(n,e,t),n}),{}))}),{name:"MuiGrid"})(d);n.Z=f},5784:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(5697),i=t.n(r),a=t(3279),o=t.n(a),s=t(7294),c=t(1033);function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}function u(e){var n=e.className,t=e.children,r=e.debounceTime,i=void 0===r?300:r,a=e.ignoreDimensions,u=void 0===a?[]:a,d=e.parentSizeStyles,f=void 0===d?{width:"100%",height:"100%"}:d,x=e.enableDebounceLeadingCall,g=void 0===x||x,h=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"]),m=(0,s.useRef)(null),p=(0,s.useRef)(0),v=(0,s.useState)({width:0,height:0,top:0,left:0}),y=v[0],w=v[1],b=(0,s.useMemo)((function(){var e=Array.isArray(u)?u:[u];return o()((function(n){w((function(t){return Object.keys(t).filter((function(e){return t[e]!==n[e]})).every((function(n){return e.includes(n)}))?t:n}))}),i,{leading:g})}),[i,g,u]);return(0,s.useEffect)((function(){var e=new c.Z((function(e){void 0===e&&(e=[]),e.forEach((function(e){var n=e.contentRect,t=n.left,r=n.top,i=n.width,a=n.height;p.current=window.requestAnimationFrame((function(){b({width:i,height:a,top:r,left:t})}))}))}));return m.current&&e.observe(m.current),function(){window.cancelAnimationFrame(p.current),e.disconnect(),b.cancel()}}),[b]),s.createElement("div",l({style:f,ref:m,className:n},h),t(l({},y,{ref:m.current,resize:b})))}u.propTypes={className:i().string,debounceTime:i().number,enableDebounceLeadingCall:i().bool,ignoreDimensions:i().oneOfType([i().any,i().arrayOf(i().any)]),children:i().func.isRequired}},8581:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(3486)}])},3486:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return x}});var r=t(5893),i=t(6980),a=t(4903),o=t(1749),s=(t(7294),t(5522)),c=t(9008),l=t(5784),u=t(6829);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,a=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);o=!0);}catch(c){s=!0,i=c}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return a}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=!0;n.default=function(){var e=(0,u.useQuery)(s.zz).data.tokens,n=(0,u.useQuery)(s.aS).data.pairs,t=(0,u.useQuery)(s.We).data.dayDatas;(0,s.Yz)((function(){return Promise.all([s.U8,s.lz,s.aR,s.j5,s.xb])}),6e4);var d=f(t.filter((function(e){return"0"!==e.liquidityUSD})).reduce((function(e,n){return e[0].unshift({date:n.date,value:parseFloat(n.liquidityUSD)}),e[1].unshift({date:n.date,value:parseFloat(n.volumeUSD)}),e}),[[],[]]),2),x=d[0],g=d[1];return(0,r.jsxs)(i.Vw,{children:[(0,r.jsx)(c.default,{children:(0,r.jsx)("title",{children:"Dashboard | Verse Analytics"})}),(0,r.jsx)(a.Z,{mb:3,children:(0,r.jsx)(i.ol,{pairs:n,tokens:e})}),(0,r.jsxs)(o.Z,{container:!0,spacing:3,children:[(0,r.jsx)(o.Z,{item:!0,xs:12,sm:12,md:6,children:(0,r.jsx)(i.BO,{style:{height:300},children:(0,r.jsx)(l.Z,{children:function(e){var n=e.width,t=e.height;return(0,r.jsx)(i.TH,{title:"Liquidity",width:n,height:t,data:x,margin:{top:125,right:0,bottom:0,left:0},tooltipDisabled:!0,overlayEnabled:!0})}})})}),(0,r.jsx)(o.Z,{item:!0,xs:12,sm:12,md:6,children:(0,r.jsx)(i.BO,{style:{height:300,position:"relative"},children:(0,r.jsx)(l.Z,{children:function(e){var n=e.width,t=e.height;return(0,r.jsx)(i.vz,{title:"Volume",width:n,height:t,data:g,margin:{top:125,right:0,bottom:0,left:0},tooltipDisabled:!0,overlayEnabled:!0})}})})}),(0,r.jsx)(o.Z,{item:!0,xs:12,children:(0,r.jsx)(i.Ox,{title:"Top Liquidity Pairs",pairs:n})}),(0,r.jsx)(o.Z,{item:!0,xs:12,children:(0,r.jsx)(i.uK,{title:"Top Tokens",tokens:e})}),(0,r.jsx)(o.Z,{item:!0,xs:12,children:(0,r.jsx)(i.em,{})})]})]})}}},function(e){e.O(0,[159,237,774,888,179],(function(){return n=8581,e(e.s=n);var n}));var n=e.O();_N_E=n}]);