-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
16882-f362cccfae92129.js.download
1 lines (1 loc) · 16.2 KB
/
16882-f362cccfae92129.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16882],{43022:function(n,e,t){t.d(e,{S:function(){return g},Z:function(){return v}});var o=t(95210),r=t(15386),i=t(51012),a=t(62230),l=t(85244),c=t(98240),d=t(75190),u=t(47998),s=t(52322),h=t(2784),p=t(82740),f=t(94184),m=t.n(f);function x(){var n=(0,d.Z)(["\n transition: background 0.2s ease-in-out;\n border-radius: 8px;\n font-weight: normal;\n display: inline-block;\n border: 1px solid ",";\n margin: 0;\n text-align: center;\n text-decoration: none !important;\n white-space: nowrap;\n cursor: pointer;\n padding: .375rem .75rem;\n font-size: 14px;\n line-height: 1.5;\n outline: none !important; /* to overwrite bootstrap */\n\n &[disabled] {\n cursor: not-allowed;\n }\n\n /* small */\n\n &.cmc-button--size-small {\n padding: .25rem .5rem;\n font-size: .875rem;\n line-height: 1.5;\n }\n\n /* large */\n\n &.cmc-button--size-large {\n padding: .5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n }\n\n /* button that has an icon */\n\n .cmc-icon::before {\n padding: 0 0 3px;\n }\n\n /* colors */\n\n background: ",";\n color: ",";\n\n &:focus:not([disabled]),\n &:hover:not([disabled]) {\n background: ",";\n color: ",";\n text-decoration: none;\n }\n\n &:active:not([disabled]),\n &.cmc-button--selected {\n background: ",";\n color: ",";\n text-decoration: none;\n }\n\n &.cmc-link {\n color: ",";\n\n &:active:not([disabled]),\n &:focus:not([disabled]),\n &:hover:not([disabled]) {\n color: ",";\n }\n }\n"]);return x=function(){return n},n}var g=p.ZP.button.attrs((function(n){var e,t=n.isColorBlue,o=n.isColorGrey,r=n.isColorRed,i=n.isColorTransparent,a=n.theme;e=o?"grey":t?"blue":r?"red":i?"transparent":"default";var l=a.buttons.colors[e],c=l.backgroundColor,d=l.activeBackgroundColor,u=l.hoverBackgroundColor,s=l.borderColor,h=l.textColor,p=l.hoverTextColor;return{backgroundColor:c,activeBackgroundColor:d,hoverBackgroundColor:u,borderColor:s,textColor:h,hoverTextColor:p,linkColor:t?h:a.page.linkColor,linkHoverColor:t?p:a.page.linkHoverColor}})).withConfig({componentId:"sc-243a694b-0"})(x(),(function(n){return n.borderColor||"transparent"}),(function(n){return n.backgroundColor}),(function(n){return n.textColor}),(function(n){return n.hoverBackgroundColor}),(function(n){return n.hoverTextColor||n.textColor}),(function(n){return n.activeBackgroundColor}),(function(n){return n.hoverTextColor||n.textColor}),(function(n){return n.linkColor}),(function(n){return n.linkHoverColor})),v=function(n){(0,i.Z)(t,n);var e=(0,u.Z)(t);function t(){return(0,o.Z)(this,t),e.apply(this,arguments)}return(0,r.Z)(t,[{key:"render",value:function(){var n=this.props,e=n.children,t=n.disabled,o=n.isColorGrey,r=n.isColorBlue,i=n.isColorRed,d=n.isColorTransparent,u=n.isSizeSmall,h=n.isSizeLarge,p=n.isSelected,f=n.onClick,x=n.className,v=n.type,b=void 0===v?"button":v,C=(0,c.Z)(n,["children","disabled","isColorGrey","isColorBlue","isColorRed","isColorTransparent","isSizeSmall","isSizeLarge","isSelected","onClick","className","type"]);return(0,s.jsx)(g,(0,l.Z)((0,a.Z)({},C),{type:b,disabled:t,onClick:f,"data-toggle":this.props["data-toggle"],className:m()(x,{"cmc-button":!0,"cmc-button--color-default":!o&&!r&&!i,"cmc-button--color-grey":o,"cmc-button--color-blue":r,"cmc-button--color-red":i,"cmc-button--size-small":u,"cmc-button--size-large":h,"cmc-button--selected":p}),isColorBlue:r,isColorGrey:o,isColorRed:i,isColorTransparent:d,children:e||""}))}}]),t}(h.Component)},29731:function(n,e,t){t.d(e,{NE:function(){return M},Xi:function(){return I},xm:function(){return R}});var o=t(62230),r=t(85244),i=t(22386),a=t(75190),l=t(52322),c=t(2784),d=t(82740),u=t(96664),s=t(38789),h=t(43022),p=t(87962),f=t(15925),m=t(89679),x=t(87681),g=t(3070),v=t(81201);function b(){var n=(0,a.Z)(["\n height: 560px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 105%;\n z-index: 95;\n backdrop-filter: blur(10px);\n border-radius: 4px;\n left: -2.5%;\n top: 50px;\n\n @media (max-width: 425px) {\n top: 140px;\n }\n\n "," {\n height: calc(100% - 100px);\n top: 100px;\n }\n\n /* > div:first-child {\n width: 30px;\n height: 30px;\n background-image: linear-gradient(var(--color-light-neutral-5), rgba(0, 0, 0, 0));\n border-radius: 50%;\n position: relative;\n animation: turn 1s infinite;\n margin-bottom: 21px;\n &::before {\n width: 25px;\n height: 25px;\n top: 2.5px;\n left: 2.5px;\n content: '';\n position: absolute;\n border-radius: 50%;\n opacity: 0.6;\n background-color: var(--bg-color);\n }\n } */\n > p.title {\n //styleName: Subtitles / Subtitle 1 - SemiBold - 16px;\n font-size: 16px;\n font-weight: 600;\n line-height: 26px; //styleName: Paragraphs & Text Blocks / Regular - 14px;\n margin: 0 auto;\n }\n > p.subTitle {\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n color: var(--color-light-neutral-6);\n }\n @keyframes turn {\n to {\n transform: rotate(1turn);\n }\n }\n"]);return b=function(){return n},n}function C(){var n=(0,a.Z)(["\n /* height: 480px; */\n position: relative;\n > h2 {\n font-size: 24px;\n font-weight: 700;\n text-align: center;\n position: absolute;\n left: 0;\n width: 100%;\n top: calc(50% - 24px);\n z-index: 1;\n }\n\n "," {\n > h2 {\n width: calc(100vw - 48px);\n max-width: 100vw;\n }\n }\n"]);return C=function(){return n},n}function y(){var n=(0,a.Z)(["\n 0% {\n background-position-x: 200%;\n }\n 99% {\n background-position-x: 0%;\n }\n 100% {\n background-position-x: 200%;\n }\n"]);return y=function(){return n},n}function w(){var n=(0,a.Z)(["\n &:nth-child(2) {\n opacity: 0.7;\n }\n &:nth-child(3) {\n opacity: 0.4;\n }\n &:nth-child(4) {\n opacity: 0.1;\n }\n height: 80px;\n padding: 28px 0px;\n border-bottom: 1px solid var(--color-light-neutral-2);\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n &:last-of-type {\n border-bottom: none;\n }\n > span {\n display: inline-block;\n width: 20%;\n background: var(--color-light-neutral-2);\n border-radius: 8px;\n height: 24px;\n background-image: ",";\n background-position-x: 200%;\n background-size: 200%;\n animation: "," 1.2s linear infinite;\n }\n > span:nth-child(1),\n > span:nth-child(3) {\n width: 24px;\n }\n"]);return w=function(){return n},n}function k(){var n=(0,a.Z)(["\n position: absolute;\n top: 130px;\n"]);return k=function(){return n},n}var j=d.ZP.div.withConfig({componentId:"sc-dad26dac-0"})(b(),u[s.mqLg].down),Z=function(n){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({width:"34",height:"30",viewBox:"0 0 34 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{children:(0,l.jsx)("path",{d:"M33.1086 23.7982L20.4387 2.01935C19.7016 0.757334 18.4031 0.00012207 16.9992 0.00012207C15.5953 0.00012207 14.2967 0.757334 13.5597 1.9833L0.889761 23.7982C0.152729 25.0602 0.152729 26.6107 0.854665 27.9088C1.5566 29.2069 2.85518 30.0001 4.32925 30.0001H29.6691C31.1081 30.0001 32.4067 29.2069 33.1437 27.9088C33.8456 26.6107 33.8456 25.0602 33.1086 23.7982ZM15.3325 10.3847C15.3325 9.4833 16.1218 8.72608 16.9992 8.72608C17.8766 8.72608 18.6659 9.4833 18.6659 10.3847V17.2718C18.6659 18.1732 17.8766 18.9304 16.9992 18.9304C16.1218 18.9304 15.3325 18.1732 15.3325 17.2718V10.3847ZM16.9992 24.6996C15.9112 24.6996 15.0338 23.7982 15.0338 22.6804C15.0338 21.5626 15.9112 20.6612 16.9992 20.6612C18.0872 20.6612 18.9646 21.5626 18.9646 22.6804C18.9646 23.7982 18.0872 24.6996 16.9992 24.6996Z",fill:"var(--text-color)"})}))},R=function(n){var e,t=n.noData,i=n.hideTitle,a=n.style,d=void 0===a?{}:a,u=(n.id,n.name),s=n.currency,h=n.subTitle,b=n.title,C=n.children,y=(0,p.$G)().t,w=(0,c.useContext)(m.Y).isUsingCDPRevamp,k=(0,g.fM)();return(0,l.jsxs)(l.Fragment,{children:[!i&&(0,l.jsx)(v.o,{children:y("{{name}} to {{currency}} Chart",{name:u,currency:null===s||void 0===s||null===(e=s.toUpperCase)||void 0===e?void 0:e.call(s)})}),(0,l.jsxs)(j,{style:(0,r.Z)((0,o.Z)({},d),{height:w?"calc(100% - ".concat(k<x.AV.MEDIUM_MIN?160:40,"px)"):void 0}),children:[t?(0,l.jsx)(Z,{style:{marginBottom:20}}):(0,l.jsx)(f.Z,{size:"sm"}),(0,l.jsx)("p",{className:"title",children:b||y(t?"coin-detail-page::Couldn\u2019t find any data":"coin-detail-page::Loading Data")}),(0,l.jsx)("p",{className:"subTitle",children:h||y(t?"coin-detail-page::We are still collecting it, please come back later!":"coin-detail-page::Please wait, we are loading chart data ")}),C]})]})},T=d.ZP.div.withConfig({componentId:"sc-dad26dac-1"})(C(),u[s.mqMd].down),P=(0,d.F4)(y()),S=d.ZP.p.withConfig({componentId:"sc-dad26dac-2"})(w(),(function(n){return n.isLoading?"linear-gradient(90deg, var(--color-light-neutral-2) 0%, var(--color-light-neutral-1) 50%, var(--color-light-neutral-2) 100%)":"none"}),P),z=function(n){var e=n.loading;return(0,l.jsxs)(S,{isLoading:e,children:[(0,l.jsx)("span",{}),(0,l.jsx)("span",{}),(0,l.jsx)("span",{}),(0,l.jsx)("span",{}),(0,l.jsx)("span",{})]})},I=function(n){var e=n.loading,t=(0,i.Z)((0,p.$G)(),1)[0];return(0,l.jsxs)(T,{children:[Array.from({length:3}).map((function(n,t){return(0,l.jsx)(z,{loading:e},t)})),(0,l.jsx)("h2",{children:t(e?"Loading data...":"No data is available now")})]})},N=(0,d.ZP)(j).withConfig({componentId:"sc-dad26dac-3"})(k()),M=function(n){var e=n.style;return(0,l.jsx)(N,{style:e,children:(0,l.jsx)(h.Z,{isColorBlue:!0,style:{marginTop:32,backgroundColor:"var(--theme-color)"},onClick:function(){return location.reload()},children:"Refresh"})})}},81201:function(n,e,t){t.d(e,{d:function(){return p},o:function(){return x}});var o=t(67557),r=t(75190),i=t(52322),a=t(96818),l=t(87962),c=t(82740),d=t(38789),u=t(96664),s=t(83434);t(2784);function h(){var n=(0,r.Z)(["\n font-size: 12px;\n display: block;\n margin-top: ",";\n margin-bottom: ",";\n\n "," {\n margin-bottom: 0;\n }\n "," {\n display: none;\n }\n"]);return h=function(){return n},n}function p(n){n.id;var e,t=n.name,o=n.currency,r=(0,l.$G)().t;return t?(0,i.jsx)(a.Z,{as:"h3",children:r("{{name}} to {{currency}} Chart",{name:t,currency:null===o||void 0===o||null===(e=o.toUpperCase)||void 0===e?void 0:e.call(o)})}):null}var f=c.ZP.div.withConfig({componentId:"sc-db5983c1-0"})(h(),d.space400,d.space150,u[d.mqMd].up,u[d.mqLg].up),m=(0,o.Z)({},u[d.mqMd].up,{display:"none"}),x=function(n){var e=n.children;return(0,i.jsx)(f,{"data-role":"chart-title",children:(0,i.jsx)(s.Z,{sx:m,textType:"heading-xs",as:"h2",children:e})})}},16882:function(n,e,t){var o=t(62230),r=t(85244),i=t(52322),a=t(2784),l=t(8936),c=t(92322),d=t(29731),u=t(22504),s=t(82226),h=t(71610),p=t(67665),f=t(31535),m=t(64722),x=a.memo((function(n){var e,t=n||{},u=t.data,s=void 0===u?[]:u,h=t.columns,p=void 0===h?[]:h,f=t.rowKey,x=t.fixedHeader,v=void 0===x||x,b=t.tableClassName,C=void 0===b?"":b,w=t.emptyText,k=t.lazy,j=t.useInViewPort,Z=t.loading,R=t.onRowClick,T=t.isShowTitle,P=void 0===T||T,S=t.tableHeaderRef,z=t.tableBodyRef,I=t.tableStyle,N=t.noDataFallback,M=t.tableRef,B=t.adRow,D=t.customTableRowStyle,W=t.customTableDataProps,E=t.advancedResponsive,V=p.filter((function(n){return!!n})),F=s&&s.length,H=(0,a.useRef)(),L=(0,a.useRef)({fixedWidthColNum:0,minWidthMap:{},colRefMap:{}}),A=0,G=E;if(G&&V&&V.length>0){var U={};L.current.fixedWidthColNum=0;for(var _=0;_<V.length;_++){var O=V[_];if(null!=O.width&&(L.current.fixedWidthColNum++,A+=Number(O.width)),O.responsiveOptions&&O.name){var q=O.responsiveOptions.minWidth;q&&(U[O.name]=q)}}L.current.minWidthMap=U}L.current.fixedWidthColNum==p.length&&(G=!1);var $=(0,a.useCallback)((function(n,e){var t,o;return(0,l.Z)(f)?null!==(t=f(n,e))&&void 0!==t?t:e:null!==(o=n[f])&&void 0!==o?o:e}),[f]);e=F?(0,i.jsxs)("tbody",{ref:z,children:[B&&B(n),s.filter(Boolean).map((function(n,e){var t;return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(y,{altKey:$(n,e),data:n,columns:V,rowIdx:e,lazy:k&&k(e),useInViewPort:j,onRowClick:R,noDataFallback:N,customTableRowStyle:D,customTableDataProps:W},$(n,e)),null===n||void 0===n||null===(t=n.children)||void 0===t?void 0:t.filter(Boolean).map((function(n,t){return(0,i.jsx)(y,{altKey:$(n,e),data:n,columns:V,rowIdx:t,lazy:k&&k(t),useInViewPort:j,onRowClick:R,noDataFallback:N,className:"tr-children",customTableRowStyle:D,customTableDataProps:W},$(n,t))}))]},$(n,e))}))]}):(0,i.jsx)("tbody",{ref:z,children:(0,i.jsx)("tr",{style:{padding:"0px 10px"},children:(0,i.jsx)("td",{colSpan:V.length||5,children:Z?(0,i.jsx)(d.Xi,{loading:!0}):w||(0,i.jsx)(d.Xi,{})})})});var K=(0,a.useMemo)((function(){return V.some((function(n){return n.width}))&&0!==s.length?(0,i.jsx)("colgroup",{children:V.map((function(n,e){var t,i,l,c={};n.width&&(c.style={width:null!==(t=n.width)&&void 0!==t?t:"auto",minWidth:null!==(i=n.minWidth)&&void 0!==i?i:"auto",maxWidth:null!==(l=n.maxWidth)&&void 0!==l?l:"auto"});return c.ref=function(t){var o;L.current.colRefMap[null!==(o=n.name)&&void 0!==o?o:e]=t},(0,a.createElement)("col",(0,r.Z)((0,o.Z)({},c),{key:e}))}))}):null}),[V]);return(0,a.useEffect)((function(){var n=function(){if(H.current){for(var n,e=H.current.offsetWidth,t=null!==(n=L.current.fixedWidthColNum)&&void 0!==n?n:0,o=e-A,r=V.length-t,i=Object.keys(L.current.minWidthMap),a=[],l=0;l<i.length;l++){var c=i[l],d=L.current.minWidthMap[c],u=L.current.colRefMap[c];u&&a.push({ref:u,value:d})}a.sort((function(n,e){return e.value-n.value}));for(var s=0,h=0,p=0;p<a.length;p++){var f=a[p],m=f.ref,x=f.value;(o-s)/(r-h)<=x?(m.style.width="".concat(x,"px"),s+=x,h++):m.style.width=null}}},e=(0,c.Z)(n,350);return G&&(n(),window.addEventListener("resize",e)),function(){window.removeEventListener("resize",e)}}),[G,V.length,A]),(0,i.jsxs)(m.WW,{className:"cmc-table ".concat(C," ").concat(Z&&F?"cmc-table-loading":""),addCSS:I,ref:function(n){M&&(M.current=n),H.current=n},children:[K,P?(0,i.jsx)(g,{columns:V,fixedHeader:v,tableHeaderRef:S}):null,e]})})),g=a.memo((function(n){var e=n.columns,t=n.fixedHeader,o=n.tableHeaderRef;return(0,i.jsx)("thead",{ref:o,children:(0,i.jsx)("tr",{children:e.map((function(n,e){return(0,i.jsx)("th",{className:t?"stickyTop":"",style:{textAlign:n.align,top:"number"===typeof t?t:void 0},children:n.title},e)}))})})})),v=["slug","star"],b=function(n){var e,t,o=n.c,r=n.data,a=n.rowIdx,l=n.inViewPort,c=n.noDataFallback;if(0===(null===r||void 0===r?void 0:r.isActive)&&v.indexOf(null===o||void 0===o?void 0:o.dataIndex)<0)return(0,i.jsx)(f.YM,{children:"--"});var d=null!==(t=null!==(e=o.noDataFallback)&&void 0!==e?e:c)&&void 0!==t?t:"--",u=r[o.dataIndex];if(o.dataIndex&&void 0===u&&!o.render)return d;try{return o.render?o.render(u,r,a,l):u}catch(s){return(0,p.I)({t:"table_render_error",tableRenderError:JSON.stringify(r)}),d}},C={},y=a.memo((function(n){var e=n.columns,t=n.data,r=n.rowIdx,l=n.lazy,c=n.useInViewPort,d=n.onRowClick,s=n.noDataFallback,p=n.altKey,f=n.customTableRowStyle,m=void 0===f?{}:f,x=n.customTableDataProps,g=void 0===x?function(n){return n}:x,v=(0,a.useState)(!l||C[p]),b=v[0],y=v[1];(0,a.useEffect)((function(){l||(y(!0),C[p]=!0)}),[l]);var k=(0,a.useRef)(),j=(0,h.Z)(k,c&&(!l||b)),Z="function"===typeof m?m(t):m;return b?(0,i.jsx)("tr",{ref:k,style:(0,o.Z)({cursor:d?"pointer":void 0},Z),onClick:function(n){"A"!==n.target.tagName&&d&&d(t,r)},children:e.map((function(n,e){return(0,i.jsx)(w,{tdProps:g({style:(0,o.Z)({textAlign:n.align},Z)},t),c:n,data:t,rowIdx:r,inViewPort:j,noDataFallback:s},e)}))}):(0,i.jsx)(u.Uk,{PlaceHolder:l,trigger:function(){y(!0),C[p]=!0},rootMargin:"900px",data:t})})),w=(0,s.$)((function(n){var e=n.tdProps,t=void 0===e?{}:e,a=n.c,l=n.data,c=n.rowIdx,d=n.inViewPort,u=n.noDataFallback;return(0,i.jsx)("td",(0,r.Z)((0,o.Z)({},t),{children:b({c:a,data:l,rowIdx:c,inViewPort:d,noDataFallback:u})}))}),(function(){return(0,i.jsx)("td",{children:(0,i.jsx)(f.YM,{children:"--"})})}));e.Z=(0,s.$)(x,(function(){return(0,i.jsx)(m.WW,{children:(0,i.jsx)("tbody",{children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{children:"Table Render Error!"})})})})}))},89679:function(n,e,t){t.d(e,{Y:function(){return o}});var o=(0,t(2784).createContext)({id:1,slug:"bitcoin",name:"Bitcoin",currentTab:"",lang:"en",price:1e4,isMobileView:!1,volume:1,symbol:"BTC",hasAirdrop:!1,hasProjectinfo:!1,hasPricePredictionData:!1,latestUpdateTime:(new Date).toISOString(),hasEventHistory:!1,hasGravityEnabled:!1,displayTV:1,tvCoinSymbol:void 0,isUsingCDPRevamp:!1,dateAdded:void 0})}}]);