-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
53771-53227a68c10bd9c.js.download
1 lines (1 loc) · 35.4 KB
/
53771-53227a68c10bd9c.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53771],{62477:function(n,e,t){var r=t(62230),i=t(75190),o=t(52322),a=t(2784),l=t(82740),s=t(81730),c=t(48723);function d(){var n=(0,i.Z)(["\n padding: 3px;\n background-color: ",";\n border-radius: 8px;\n display: flex;\n align-items: center;\n user-select: none;\n position: relative;\n border: 1px solid var(--color-light-neutral-2);\n > * {\n position: relative;\n }\n\n .slider {\n background: ",";\n box-shadow: 0px 1px 0px ",";\n position: absolute;\n z-index: 1;\n border-radius: 6px;\n transition: left 0.3s ease, top 0.3s ease;\n }\n button:hover:not(:disabled) {\n background: none;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.Z)(["\n padding: 3px 9px;\n border-radius: 6px;\n /* border: 2px solid transparent; */\n height: auto;\n transition: 0.1s;\n z-index: 2;\n color: var(--color-light-neutral-6);\n flex-grow: 1;\n &.active {\n background: ",";\n color: var(--text-color);\n }\n\n &.landed {\n background: transparent;\n &:hover,\n &:focus {\n background: transparent;\n }\n }\n\n &:focus {\n background: ",";\n box-shadow: none;\n }\n\n & + & {\n margin-left: 3px;\n }\n\n > span {\n font-size: 12px;\n font-weight: 600;\n white-space: nowrap;\n }\n\n img,\n svg {\n vertical-align: middle;\n }\n\n @media (max-width: ","px) {\n flex: 1;\n }\n"]);return u=function(){return n},n}var f=l.ZP.div.withConfig({componentId:"sc-daae9652-0"})(d(),(function(n){return n.theme.isDay?n.theme.colors.neutral2:"#222531"}),(function(n){return n.theme.isDay?"#ffffff":"#323546"}),(function(n){return n.theme.isDay?"#E4E7EB":"#222531"})),p=(0,l.ZP)(s.ZP).withConfig({componentId:"sc-daae9652-1"})(u(),(function(n){return n.theme.isDay?"#ffffff":"#323546"}),(function(n){return n.theme.isDay?"#ffffff":"#323546"}),c.AV.XSMALL);e.Z=function(n){var e=n.inline,t=n.active,i=n.onSet,l=void 0===i?function(){}:i,s=n.list,c=void 0===s?[]:s,d=n.renderer,u=void 0===d?function(n){return String(n)}:d,h=n.style,m=void 0===h?{}:h,x=n.disabledIndex,g=void 0===x?[]:x,v=n.wrapperStyle,b=void 0===v?{}:v,C=n.className,w=(0,a.useState)(t?"number"===typeof t?t:c.map(u).indexOf(u(t)):0),y=w[0],Z=w[1],k=(0,a.useState)(y),j=k[0],M=k[1],S=(0,a.useState)(!1),N=S[0],H=S[1];(0,a.useEffect)((function(){M(y)}),[y]),(0,a.useEffect)((function(){void 0!==t&&Z("number"===typeof t?t:c.map(u).indexOf(u(t)))}),[t,c]);var P=(0,a.useRef)(),A=(0,a.useRef)([]);(0,a.useEffect)((function(){!function(){if(P.current){var n=P.current.querySelectorAll("button");Array.prototype.forEach.call(n,(function(n,e){var t=n.offsetHeight,r=n.offsetLeft,i=n.offsetTop,o=n.offsetWidth;A.current[e]={width:o,height:t,left:r,top:i}})),H(!0)}}()}),[null===c||void 0===c?void 0:c.length]);var V=e?"fit-content":"auto";return(0,o.jsxs)(f,{ref:P,className:"ButtonSwitcher ".concat(C),style:(0,r.Z)({width:V},b),children:[(0,o.jsx)("div",{className:"slider",style:A.current[j]}),c.map((function(n,e){return(0,o.jsx)(p,{className:(y===e?"active":"")+(N?" landed":"")+" ButtonSwitcher__Tab",onClick:function(){l(n,e),t||Z(e)},disabled:"number"===typeof g?e===g:g.includes(e),children:(0,o.jsx)("span",{style:m,children:u(n)})},e)}))]})}},53771:function(n,e,t){t.d(e,{Zk:function(){return xn},Ml:function(){return hn},UO:function(){return un},oe:function(){return bn},x3:function(){return wn},ZP:function(){return yn}});var r=t(62230),i=t(85244),o=t(98240),a=t(75190),l=t(52322),s=t(2784),c=t(49948),d=t(82740),u=t(38789),f=t(94184),p=t.n(f),h=t(78320),m=t(81730),x=t(69591),g=function(n){return(0,l.jsx)(x.Z,(0,i.Z)((0,r.Z)({},n),{children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5C7.89543 5 7 5.89543 7 7C7 8.10457 7.89543 9 9 9C10.1046 9 11 8.10457 11 7C11 5.89543 10.1046 5 9 5ZM4.99805 8.00342C5.041 8.00342 5.08332 8.00071 5.12485 7.99545C5.56731 9.72299 7.13452 11 9 11C11.2091 11 13 9.20914 13 7C13 4.79086 11.2091 3 9 3C7.13214 3 5.56331 4.28028 5.12316 6.01117C5.08217 6.00605 5.04042 6.00342 4.99805 6.00342H2.99805C2.44576 6.00342 1.99805 6.45113 1.99805 7.00342C1.99805 7.5557 2.44576 8.00342 2.99805 8.00342H4.99805ZM16 6.00342C15.4477 6.00342 15 6.45113 15 7.00342C15 7.5557 15.4477 8.00342 16 8.00342H21C21.5523 8.00342 22 7.5557 22 7.00342C22 6.45113 21.5523 6.00342 21 6.00342H16ZM15 15C13.8954 15 13 15.8954 13 17C13 18.1046 13.8954 19 15 19C16.1046 19 17 18.1046 17 17C17 15.8954 16.1046 15 15 15ZM11 17C11 14.7909 12.7909 13 15 13C16.8666 13 18.4346 14.2785 18.8759 16.0076C18.916 16.0027 18.9569 16.0001 18.9983 16L20.9996 15.9966C21.5519 15.9956 22.0004 16.4426 22.0013 16.9949C22.0023 17.5472 21.5553 17.9956 21.003 17.9966L19.0017 18C18.9591 18.0001 18.9171 17.9975 18.8759 17.9924C18.4345 19.7215 16.8666 21 15 21C12.7909 21 11 19.2091 11 17ZM3 16C2.44772 16 2 16.4477 2 17C2 17.5523 2.44772 18 3 18H8C8.55228 18 9 17.5523 9 17C9 16.4477 8.55228 16 8 16H3Z"})}))},v=function(n){return(0,l.jsx)(x.Z,(0,i.Z)((0,r.Z)({},n),{children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4C4.44772 4 4 4.44772 4 5V10C4 10.5523 4.44772 11 5 11H10C10.5523 11 11 10.5523 11 10V5C11 4.44772 10.5523 4 10 4H5ZM14 4C13.4477 4 13 4.44772 13 5V10C13 10.5523 13.4477 11 14 11H19C19.5523 11 20 10.5523 20 10V5C20 4.44772 19.5523 4 19 4H14ZM13 14C13 13.4477 13.4477 13 14 13H19C19.5523 13 20 13.4477 20 14V19C20 19.5523 19.5523 20 19 20H14C13.4477 20 13 19.5523 13 19V14ZM5 13C4.44772 13 4 13.4477 4 14V19C4 19.5523 4.44772 20 5 20H10C10.5523 20 11 19.5523 11 19V14C11 13.4477 10.5523 13 10 13H5Z",fill:"CurrentColor"})}))},b=t(98782),C=t(98094),w=t(12693),y=t(37881),Z=t(5632),k=t(62477),j=t(47726),M=t(87962),S=t(97271),N=t(34317),H=t(25883),P=t(46924),A=t(25084),V=t(50805),F=t(92324),I=function(n){var e=n.sx,t=void 0===e?{}:e,a=(0,o.Z)(n,["sx"]);return(0,l.jsxs)(F.Z,(0,i.Z)((0,r.Z)({sx:t},a),{iconName:"lineCart",children:[(0,l.jsx)("path",{d:"M21 6.99998H6.99998C6.44998 6.99998 5.99998 6.54998 5.99998 5.99998C5.99998 5.44998 6.44998 4.99998 6.99998 4.99998H21C21.55 4.99998 22 5.44998 22 5.99998C22 6.54998 21.55 6.99998 21 6.99998Z",fill:"inherit"}),(0,l.jsx)("path",{d:"M21 13H6.99998C6.44998 13 5.99998 12.55 5.99998 12C5.99998 11.45 6.44998 11 6.99998 11H21C21.55 11 22 11.45 22 12C22 12.55 21.55 13 21 13Z",fill:"inherit"}),(0,l.jsx)("path",{d:"M21 19H6.99998C6.44998 19 5.99998 18.55 5.99998 18C5.99998 17.45 6.44998 17 6.99998 17H21C21.55 17 22 17.45 22 18C22 18.55 21.55 19 21 19Z",fill:"inherit"}),(0,l.jsx)("path",{d:"M2.99998 7.14998C3.6351 7.14998 4.14998 6.6351 4.14998 5.99998C4.14998 5.36485 3.6351 4.84998 2.99998 4.84998C2.36485 4.84998 1.84998 5.36485 1.84998 5.99998C1.84998 6.6351 2.36485 7.14998 2.99998 7.14998Z",fill:"inherit"}),(0,l.jsx)("path",{d:"M2.99998 13.15C3.6351 13.15 4.14998 12.6351 4.14998 12C4.14998 11.3648 3.6351 10.85 2.99998 10.85C2.36485 10.85 1.84998 11.3648 1.84998 12C1.84998 12.6351 2.36485 13.15 2.99998 13.15Z",fill:"inherit"}),(0,l.jsx)("path",{d:"M2.99998 19.15C3.6351 19.15 4.14998 18.6351 4.14998 18C4.14998 17.3648 3.6351 16.85 2.99998 16.85C2.36485 16.85 1.84998 17.3648 1.84998 18C1.84998 18.6351 2.36485 19.15 2.99998 19.15Z",fill:"inherit"})]}))},T=s.memo(I),z=t(50666),L=t(48723),R=t(3952),E=t(56918),O=t(30643),_=t(25266),Y=t(31005);function B(){var n=(0,a.Z)(["\n display: flex;\n align-items: center;\n color: var(--text-color) !important;\n padding: 5px 8px;\n span.icon-Star {\n font-size: 1.3em;\n }\n svg {\n width: 1.3em;\n }\n span.icon-Star::before {\n color: "," !important;\n }\n\n &:hover {\n span.icon-Star::before,\n svg > path {\n color: var(--text-color);\n fill: var(--text-color);\n }\n }\n .watchlist-star-text {\n color: ",";\n }\n"]);return B=function(){return n},n}function W(){var n=(0,a.Z)(["\n height: 32px;\n padding: 3px;\n margin-inline-start: 8px;\n &:focus {\n box-shadow: none;\n }\n span {\n width: 30px;\n height: 26px;\n border-radius: 6px;\n }\n .tableListTab {\n svg {\n position: relative;\n top: 6px;\n left: 4px;\n }\n span[class^='icon']:before {\n margin-top: 5px;\n }\n }\n .treeMapTab {\n position: relative;\n svg {\n position: relative;\n top: 3px;\n }\n }\n .treeMapActived {\n background: var(--control-background-color);\n img {\n position: relative;\n top: 0px;\n }\n path {\n fill: var(--text-color);\n }\n }\n .tableListActived {\n background: var(--control-background-color);\n img {\n position: relative;\n top: 0px;\n }\n path {\n fill: var(--text-color);\n }\n }\n"]);return W=function(){return n},n}function D(){var n=(0,a.Z)(["\n height: 16px;\n width: 1px;\n margin: 0 16px;\n background: ",";\n flex-shrink: 0;\n"]);return D=function(){return n},n}function X(){var n=(0,a.Z)(["\n display: inline-block;\n position: relative;\n width: 8px;\n height: 100%;\n min-height: 32px;\n"]);return X=function(){return n},n}function G(){var n=(0,a.Z)(["\n @media (max-width: ","px) {\n display: none;\n }\n display: flex;\n align-items: center;\n"]);return G=function(){return n},n}function K(){var n=(0,a.Z)(["\n display: none;\n flex-grow: 1;\n\n > span {\n display: flex;\n }\n\n > span:last-child {\n flex-grow: 1;\n justify-content: flex-end;\n }\n @media (max-width: ","px) {\n display: flex;\n width: 100%;\n /* overflow-x: scroll; */\n /* height: 34px; */\n &::-webkit-scrollbar {\n display: none;\n }\n > span:last-child {\n justify-content: flex-start;\n }\n }\n"]);return K=function(){return n},n}function q(){var n=(0,a.Z)(["\n @media (max-width: ","px) {\n display: none;\n }\n"]);return q=function(){return n},n}function U(){var n=(0,a.Z)(["\n display: flex;\n align-items: center;\n flex-wrap: ",";\n button {\n white-space: nowrap;\n }\n .table-control-area {\n display: flex;\n gap: ",";\n }\n"]);return U=function(){return n},n}function $(){var n=(0,a.Z)(["\n > button:nth-child(-n + 2) {\n flex-grow: 1;\n }\n"]);return $=function(){return n},n}function J(){var n=(0,a.Z)(["\n padding: 16px 0px;\n border-bottom: 1px solid var(--color-light-neutral-2);\n display: grid;\n grid-template-columns: 1fr 1fr;\n & > div:nth-child(2) {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n & > span {\n font-weight: 500;\n font-size: 12px;\n color: var(--color-light-neutral-6);\n margin-inline-end: 8px;\n }\n }\n @media (max-width: ","px) {\n grid-auto-flow: row;\n grid-template-columns: auto;\n & > div:nth-child(2) {\n grid-row-start: 1;\n justify-content: flex-start;\n flex-direction: column;\n & > .ButtonSwitcher {\n width: 100%;\n margin: 8px 0px 20px 0px;\n }\n & > span {\n width: 100%;\n margin: 0;\n }\n }\n }\n"]);return J=function(){return n},n}function Q(){var n=(0,a.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n overflow-y: scroll;\n &::-webkit-scrollbar {\n /** WebKit */\n display: none;\n }\n & > div {\n display: flex;\n align-items: center;\n font-weight: 500;\n font-size: 11px;\n color: var(--text-color-sub);\n }\n .info {\n @media (max-width: ","px) {\n display: none;\n }\n }\n"]);return Q=function(){return n},n}(0,d.ZP)(Y.Y).withConfig({componentId:"sc-765b1dd5-0"})(B(),(function(n){return n.selected?"var(--color-primary-blue)":void 0}),(function(n){return n.selected?"var(--color-primary-blue)":"unset"}));var nn=(0,d.ZP)(m.ZP).withConfig({componentId:"sc-765b1dd5-1"})(W()),en=d.ZP.div.withConfig({componentId:"sc-765b1dd5-2"})(D(),(function(n){return n.theme.colors.neutral3})),tn=(d.ZP.span.withConfig({componentId:"sc-765b1dd5-3"})(X()),d.ZP.div.withConfig({componentId:"sc-765b1dd5-4"})(G(),L.AV.MEDIUM_MIN)),rn=d.ZP.div.withConfig({componentId:"sc-765b1dd5-5"})(K(),L.AV.MEDIUM_MIN),on=(0,d.ZP)(h.Z).withConfig({componentId:"sc-765b1dd5-6"})(q(),L.AV.MEDIUM_MIN),an=d.ZP.div.withConfig({componentId:"sc-765b1dd5-7"})(U(),(function(n){return n.isWatchList?void 0:"wrap"}),u.space100),ln=d.ZP.span.withConfig({componentId:"sc-765b1dd5-8"})($()),sn=d.ZP.div.withConfig({componentId:"sc-765b1dd5-9"})(J(),L.AV.XSMALL),cn=d.ZP.div.withConfig({componentId:"sc-765b1dd5-10"})(Q(),L.AV.XSMALL_MIN),dn=function(n){var e=n.text,t=n.href,r=n.gaCategory,i=n.isSelected,o=n.forceRefresh,a=void 0!==o&&o;return(0,l.jsx)(H.Z,{forceRefresh:a,href:t,className:"table-control-link-button",trackEvent:function(){A.ZP.sendEvent({category:r,action:"Clicks",label:"Popular tab"})},children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:i,children:e})})},un=[{name:"Overview",key:"overview",link:"/ico-calendar/"},{name:"Ongoing",key:"ongoing",link:"/ico-calendar/ongoing/"},{name:"Upcoming",key:"upcoming",link:"/ico-calendar/upcoming/"},{name:"Ended",key:"ended",link:"/ico-calendar/ended/"}];function fn(n){var e,t,r=n.calendarRoutes,i=(0,Z.useRouter)(),o=(0,M.$G)().t,a=(null===(e=i.query.stage)||void 0===e?void 0:e[0])||(null===(t=i.query.slug)||void 0===t?void 0:t[0])||"overview";return(0,l.jsx)(h.Z,{className:"table-link-area",children:r.map((function(n){return(0,l.jsx)(H.Z,{href:n.link,className:"table-control-link-button",forceRefresh:!0,gaConfig:{action:"Tab clicks",label:"".concat(n.name," tab")},onClick:function(){A.ZP.sendEvent({category:"Airdrop",action:"AirdropCalendar_tabclick",json_data:{"Tab name":n.name}})},children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:a===n.key,children:o(n.name)})},n.key)}))})}function pn(n){var e=n.selected,t=n.controllerRoutes,r=n.children,i=n.forceRefresh,o=void 0!==i&&i,a=(0,M.$G)().t;return(0,l.jsx)(h.Z,{className:"table-link-area",width:"100%",children:(0,l.jsxs)(sn,{children:[(0,l.jsx)("div",{children:t.map((function(n){return(0,l.jsx)(H.Z,{href:n.link,forceRefresh:o,className:"table-control-link-button",gaConfig:{action:"Tab clicks",label:"".concat(n.name," tab")},children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:(e||"overview")===n.key,children:a(n.name)})},n.key)}))}),(0,l.jsx)("div",{children:r})]})})}function hn(){return(0,l.jsx)(fn,{calendarRoutes:un})}var mn=[{name:"All airdrops",key:"overview",link:"/airdrop/"},{name:"Participated airdrops",key:"participated",link:"/airdrop/participated/"}];function xn(n){var e=n.t,t=n.path,a=(0,o.Z)(n,["t","path"]),s=(0,c.useSelector)(j.jC)?mn:mn.filter((function(n){return"participated"!==n.key}));return(0,l.jsxs)(cn,(0,i.Z)((0,r.Z)({},a),{children:[(0,l.jsx)(fn,{calendarRoutes:s}),"/airdrop/participated/"===t&&(0,l.jsxs)("div",{className:"info",children:[(0,l.jsx)(z.qk,{className:"icon-wrapper",style:{marginRight:5},ml:"3px",children:(0,l.jsx)("span",{className:"icon-Info"})}),e("We only show records within three months")]})]}))}var gn=function(n){return[{name:"Overview",key:"overview",link:"/polkadot-parachains/".concat(n,"/overview/")},{name:"Auction",key:"auction",link:"/polkadot-parachains/".concat(n,"/auction/")},{name:"Crowdloan",key:"crowdloan",link:"/polkadot-parachains/".concat(n,"/crowdloan/")}]},vn=function(n){var e=n.type,t=n.selected,r=(0,Z.useRouter)(),i={Kusama:"ksm",Polkadot:"dot"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:"Network:"}),(0,l.jsx)(k.Z,{renderer:function(n){return(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,l.jsx)("img",{style:{width:16,height:16,marginRight:4},src:(0,S.ZP)("/cloud/img/".concat(i[n],".png"))}),(0,l.jsx)("span",{children:n})]})},onSet:function(n,e){!function(n){1===n?r.push("/polkadot-parachains/kusama/".concat(t)):r.push("/polkadot-parachains/polkadot/".concat(t))}(e)},list:["Polkadot","Kusama"],active:"kusama"===e?1:0})]})};function bn(n){var e=n.selected,t=n.type,r=void 0===t?"kusama":t;return(0,l.jsx)(pn,{controllerRoutes:gn(r),selected:e,forceRefresh:!0,children:(0,l.jsx)(vn,{type:r,selected:e})})}var Cn=[{name:"Overview",key:"overview",link:"/price-estimates/overview/"},{name:"Leaderboard",key:"leader-board",link:"/price-estimates/leader-board/"},{name:"My Estimates",key:"estimation-profile",link:"/price-estimates/estimation-profile/"}];function wn(n){var e=n.selected;return(0,l.jsx)(pn,{controllerRoutes:Cn,selected:e,forceRefresh:!0})}var yn=function(n){var e=n.t,t=n.selected,i=n.onPageSizeChange,o=n.pageSize,a=n.pageSizeOptions,s=void 0===a?void 0:a,f=n.showPageSizer,m=n.filterToggled,x=n.showFilterButton,Z=n.isWatchList,k=n.columnsOrder,M=n.setColumnsOrder,S=n.tableSortBy,A=n.setTableSortBy,F=n.page,I=n.customizeFilter,z=n.treeMapSwitchToggled,L=n.treeMapSwitchKey,B=void 0===L?null:L,W=(n.hideLinkButtons,n.hideTreeMap),D=void 0!==W&&W,X=n.contentType,G=(0,c.useSelector)(j.jC),K=((0,d.Fg)().theme,(0,P.bd)()),q=K.topCategories,U=void 0===q?[]:q,$=K.deviceInfo.isMobile,J=(0,l.jsx)(V.Z,{sx:{color:"Cryptocurrencies"===t?"var(--color-primary-blue)":u.colorGray500,fontSize:"16px"}}),Q=(0,l.jsx)(T,{fontSize:"size200",sx:{fill:"Categories"===t?"var(--color-primary-blue)":u.colorGray500}}),sn=($||(l.Fragment,H.Z,b.Z,e("Watchlist"),"dexPair"!==X?(H.Z,C.Z,e("Portfolio")):l.Fragment),x?I||(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(_.V,{size:"sm",icon:function(){return(0,l.jsx)(g,{size:"16px",color:u.colorGray500})},iconColor:"neutral4",onClick:m,className:"table-control-filter",style:{marginInlineStart:0},children:e("Filters")})}):null),cn="tableList"===B&&k&&M?(0,l.jsx)(E.Z,{columnsOrder:k,setColumnsOrder:M,tableSortBy:S,setTableSortBy:A}):null,un=!D&&B&&(0,l.jsxs)(nn,{size:"sm",children:[(0,l.jsx)("span",{onClick:function(){z("tableList")},className:p()({tableListActived:"tableList"===B,tableListTab:!0}),children:(0,l.jsx)("span",{className:"icon-Menu",style:{fontSize:16}})}),(0,l.jsxs)("span",{onClick:function(){z("treeMap")},className:p()({treeMapActived:"treeMap"===B,treeMapTab:!0}),children:[(0,l.jsx)(N.Z,{top:4,right:14,animate:!1}),(0,l.jsx)(v,{size:"20px"})]})]});return(0,l.jsxs)(an,{isWatchList:Z,style:{marginTop:$?void 0:16},children:[(0,l.jsx)(rn,{style:{order:$?2:void 0,marginBottom:$?16:void 0},children:(0,l.jsxs)(ln,{children:[(0,l.jsx)(l.Fragment,{children:sn}),(0,l.jsx)(l.Fragment,{children:cn}),(0,l.jsx)(l.Fragment,{children:un})]})}),(0,l.jsxs)(O.Z,{children:[(0,l.jsx)(h.Z,{className:"table-link-area",width:"100%",children:function(n){switch(n){case"watchlist":return(0,l.jsx)(l.Fragment,{});case"nft":return(0,l.jsxs)(l.Fragment,{children:[$?dn((0,r.Z)({href:"/nft/collections/",text:e("Collections"),isSelected:"nft-collections"===t},{gaCategory:"NFT - Clicks",forceRefresh:!0})):"",I]});case"assets":var i={gaCategory:"Homepage Tabs"};return(0,l.jsxs)(l.Fragment,{children:[dn((0,r.Z)({href:"/largest-companies/",text:e("Top Companies"),isSelected:"TopCompanies"===t},i)),dn((0,r.Z)({href:"/fiat-currencies/",text:e("Fiat Currencies"),isSelected:"FiatCurrencies"===t},i))]});default:return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(H.Z,{href:"/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsxs)(Y.Y,{size:"sm",variant:"plain",selected:"Cryptocurrencies"===t,children:[J,"\xa0",e($?"All":"Cryptocurrencies")]})}),(0,l.jsx)(H.Z,{href:"/cryptocurrency-category/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsxs)(Y.Y,{size:"sm",variant:"plain",selected:"Categories"===t,children:[Q,"\xa0",e("Categories")]})}),(0,l.jsx)(en,{style:{height:20,margin:"0 8px"}}),(null===U||void 0===U?void 0:U.length)?U.map((function(n){return(0,l.jsx)(H.Z,{href:"/view/".concat(n.relatedTagSlug,"/"),gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:t===n.relatedTagSlug,children:e(n.title,{ns:"sheet_CryptoCategory"})})},n.relatedTagSlug)})):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(H.Z,{href:"/view/defi/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"defi"===t,children:e("DeFi")})}),(0,l.jsx)(H.Z,{href:"/view/collectibles-nfts/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"collectibles-nfts"===t,children:e("NFT")})}),(0,l.jsx)(H.Z,{href:"/view/metaverse/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"metaverse"===t,children:e("Metaverse")})}),(0,l.jsx)(H.Z,{href:"/view/polkadot-ecosystem/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"polkadot-ecosystem"===t,children:e("Polkadot")})}),(0,l.jsx)(H.Z,{href:"/view/bnb-chain/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"bnb-chain"===t,children:e("BNB Chain")})}),(0,l.jsx)(H.Z,{href:"/view/solana-ecosystem/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"solana-ecosystem"===t,children:e("Solana")})}),(0,l.jsx)(H.Z,{href:"/view/avalanche-ecosystem/",gaConfig:{category:"Homepage Tabs"},className:"table-control-link-button",children:(0,l.jsx)(Y.Y,{size:"sm",variant:"plain",selected:"avalanche-ecosystem"===t,children:e("Avalanche")})})]})]})}}(F||(Z?"watchlist":void 0))}),!Z&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(h.Z,{className:"table-control-area",children:[f&&(0,l.jsxs)(on,{display:"flex",flexDirection:"row",alignItems:"center",className:"table-control-page-sizer",style:{whiteSpace:"nowrap"},children:[(0,l.jsx)(y.ZP,{color:"text2",fontSize:12,style:{marginInlineEnd:6},children:e("Show rows")}),(0,l.jsx)(w.Z,{interactive:!1,selectedOption:o,defaultOption:o,options:s,onChange:function(n){i&&i(n),(0,R.X5)()}})]}),(0,l.jsx)(tn,{className:"hide_on_mobile_wrapper",children:(0,l.jsxs)(l.Fragment,{children:[sn,cn,un]})})]})})]})]})}},30643:function(n,e,t){var r=t(75190),i=t(52322),o=t(2784),a=t(82740),l=t(88744),s=t(48723),c=t(6761),d=t(83691),u=t(25266);function f(){var n=(0,r.Z)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n\n flex-wrap: nowrap;\n /* overflow: visible; */\n height: 64px;\n position: relative;\n white-space: nowrap;\n /* overflow-x: auto; */\n\n > div {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n\n .scroll-child {\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n width: 100%;\n height: 100%;\n\n > div {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n\n &::-webkit-scrollbar {\n /** WebKit */\n display: none;\n }\n }\n\n @media (max-width: ","px) {\n height: 48px;\n\n .table-link-area {\n flex: 1;\n }\n\n overflow-x: hidden;\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n\n &::-webkit-scrollbar {\n /** WebKit */\n display: none;\n }\n }\n"]);return f=function(){return n},n}var p=(0,a.ZP)(u.G).withConfig({componentId:"sc-6d1ed309-0"})(f(),s.AV.XSMALL);e.Z=function(n){var e=n.children,t=n.style,r=(0,o.useState)("scroll-initial"),a=r[0],s=r[1],u=(0,o.useState)(!1),f=u[0],h=u[1],m=(0,o.useRef)();(0,o.useEffect)((function(){var n=(0,l.Z)((function(n){var e=n.target,t=e.offsetWidth,r=e.scrollLeft,i=e.scrollWidth;s(r>10?r+t+10<i?"scroll-middle":"scroll-bottom":"scroll-initial")}),200);if(m.current){if(!(m.current.scrollWidth>=m.current.offsetWidth+3))return h(!0);m.current.style.overflowX="scroll",m.current.addEventListener("scroll",n),requestAnimationFrame((function(){if(m.current){var n=m.current;n.offsetWidth+20>n.scrollWidth?h(!0):m.current.style.overflowX="scroll"}}))}return function(){var e;return null===(e=m.current)||void 0===e?void 0:e.removeEventListener("scroll",n)}}),[]);var x=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;m.current&&m.current.scrollTo({top:0,left:n,behavior:"smooth"})};return(0,i.jsxs)(p,{className:"scroll-indicator ".concat(a," ").concat(f?"hideArrow":""),style:t,children:[(0,i.jsx)("div",{className:"leftArrow",onClick:function(){return x()},children:(0,i.jsx)(c.Z,{})}),(0,i.jsx)("div",{className:"scroll-child",ref:m,children:e}),(0,i.jsx)("div",{className:"rightArrow",onClick:function(){return x(9999)},children:(0,i.jsx)(d.Z,{})})]})}},25266:function(n,e,t){t.d(e,{G:function(){return f},V:function(){return u}});var r=t(75190),i=t(82740),o=t(81730),a=t(78320),l=t(48723),s=t(96511);function c(){var n=(0,r.Z)(["\n padding: 0 8px;\n margin-inline-start: 2px;\n &:hover {\n [class^='icon'],\n [class^='icon']::before,\n svg {\n color: currentColor;\n fill: currentColor;\n }\n }\n"]);return c=function(){return n},n}function d(){var n=(0,r.Z)(["\n width: 100%;\n ","\n &::-webkit-scrollbar {\n /** WebKit */\n display: none;\n }\n > div.leftArrow,\n > div.rightArrow {\n display: none;\n }\n\n &.hideArrow {\n > div.leftArrow,\n > div.rightArrow {\n display: none;\n }\n > *:nth-child(2) {\n margin-left: 0;\n width: 100%;\n }\n > *:nth-last-child(2) {\n margin-right: 0;\n }\n }\n\n @media (max-width: ","px) {\n > div.leftArrow,\n > div.rightArrow {\n width: 20px;\n position: absolute;\n text-align: center;\n color: #58667e;\n font-weight: 500;\n line-height: 0px;\n /* position: sticky; */\n display: inline-table;\n transition: all 0.3s ease;\n visibility: visible;\n border-radius: 8px;\n transform: translateY(-5%);\n svg {\n vertical-align: sub;\n width: 16px;\n height: 16px;\n vertical-align: middle;\n }\n }\n\n > div.leftArrow {\n content: '<';\n background-image: linear-gradient(\n to right,\n var(--control-background-color) 0%,\n rgba(255, 255, 255, 0) 100%\n );\n left: 0;\n transform-origin: left;\n text-align: left;\n }\n\n > div.rightArrow {\n right: 0;\n content: '>';\n background-image: linear-gradient(\n to left,\n var(--control-background-color) 0%,\n rgba(255, 255, 255, 0) 100%\n );\n transform-origin: right;\n text-align: right;\n }\n /* > *:nth-child(2) {\n margin-left: -18px;\n }\n > *:nth-last-child(2) {\n margin-right: -40px;\n } */\n &.scroll-initial {\n > div.leftArrow {\n opacity: 0;\n visibility: hidden;\n }\n }\n &.scroll-bottom {\n > div.rightArrow {\n opacity: 0;\n visibility: hidden;\n }\n }\n }\n"]);return d=function(){return n},n}var u=(0,i.ZP)(o.ZP).withConfig({componentId:"sc-3e9464e3-0"})(c()),f=(0,i.ZP)(a.Z).withConfig({componentId:"sc-3e9464e3-1"})(d(),s.FE,l.AV.XSMALL)},31005:function(n,e,t){t.d(e,{Y:function(){return s}});var r=t(75190),i=t(82740),o=t(81730);function a(){var n=(0,r.Z)(["\n background-color: "," !important;\n color: "," !important;\n\n a {\n color: "," !important;\n }\n\n &:hover {\n background-color: "," !important;\n color: "," !important;\n }\n "]);return a=function(){return n},n}function l(){var n=(0,r.Z)(["\n white-space: nowrap !important;\n color: "," !important;\n margin-right: 4px !important;\n padding: 0 14px;\n\n ","\n"]);return l=function(){return n},n}var s=(0,i.ZP)(o.ZP).withConfig({componentId:"sc-d3d09d9d-0"})(l(),(function(n){return n.color||n.theme.colors.text2}),(function(n){return n.selected&&(0,i.iv)(a(),n.theme.isDay?"#F0F6FF":"rgba(56, 97, 251, 0.1)",(function(n){return n.theme.colors.blue}),(function(n){return n.theme.colors.blue}),n.theme.isDay?"#F0F6FF":"rgba(56, 97, 251, 0.1)",(function(n){return n.theme.colors.blue}))}))},96511:function(n,e,t){t.d(e,{FE:function(){return p},J1:function(){return f},Yy:function(){return d},sw:function(){return u}});var r=t(75190),i=t(82740),o=t(48723);function a(){var n=(0,r.Z)(["\n &::-webkit-scrollbar-thumb {\n background: var(--color-neutral-2);\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-track-piece {\n background: transparent;\n }\n\n &::-webkit-scrollbar {\n background: transparent;\n width: 8px;\n }\n"]);return a=function(){return n},n}function l(){var n=(0,r.Z)(["\n @media (max-width: ","px) {\n display: none;\n }\n"]);return l=function(){return n},n}function s(){var n=(0,r.Z)(["\n @media (min-width: ","px) {\n display: none;\n }\n"]);return s=function(){return n},n}function c(){var n=(0,r.Z)(["\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n &::-webkit-scrollbar {\n display: none;\n }\n"]);return c=function(){return n},n}var d=i.ZP.div.withConfig({componentId:"sc-f68323c0-0"})(a()),u=(0,i.iv)(l(),o.AV.XSMALL_MIN),f=(0,i.iv)(s(),o.AV.XSMALL_MIN),p=(0,i.iv)(c())},34317:function(n,e,t){var r=t(75190),i=t(52322),o=(t(2784),t(82740));function a(){var n=(0,r.Z)(["\n 0%, 100% {\n transform: scale(0.8);\n opacity: 0.2;\n }\n 50% {\n transform: scale(0.9);\n opacity: 0.3;\n }\n"]);return a=function(){return n},n}function l(){var n=(0,r.Z)(["\n display: block;\n width: 40px;\n height: 40px;\n position: absolute;\n\n top: ","px;\n right: ","px;\n\n .spinner,\n .spinner--animation,\n .spinner-outer {\n display: block;\n }\n .spinner {\n width: 6px;\n height: 6px;\n position: absolute;\n top: 16px;\n left: 16px;\n background-color: #3861fb;\n border-radius: 100%;\n }\n\n .spinner--animation {\n width: 6px;\n height: 6px;\n top: 16px;\n left: 16px;\n }\n\n .spinner-outer {\n width: 14px;\n height: 14px;\n position: absolute;\n top: 12px;\n left: 12px;\n background-color: #3861fb;\n border-radius: 100%;\n animation: "," 1.6s infinite ease-in-out;\n }\n"]);return l=function(){return n},n}var s=(0,o.F4)(a()),c=o.ZP.span.withConfig({componentId:"sc-c078eada-0"})(l(),(function(n){return n.top||0}),(function(n){return n.right||0}),s);e.Z=function(n){var e=n.top,t=n.right,r=n.animate,o=-20+e,a=-20+t;return(0,i.jsx)(c,{top:o,right:a,animate:r,children:r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"spinner spinner--animation"}),(0,i.jsx)("span",{className:"spinner-outer"})]}):(0,i.jsx)("span",{className:"spinner"})})}},50805:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(52322),l=t(2784),s=t(92324),c=function(n){var e=n.sx,t=void 0===e?{}:e,l=(0,o.Z)(n,["sx"]);return(0,a.jsx)(s.Z,(0,i.Z)((0,r.Z)({sx:t},l),{children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.80195 9.1961V5.79609H9.20196V9.1961H5.80195ZM4.00195 5.49609C4.00195 4.66767 4.67352 3.99609 5.50195 3.99609H9.50196C10.3304 3.99609 11.002 4.66767 11.002 5.49609V9.4961C11.002 10.3245 10.3304 10.9961 9.50196 10.9961H5.50195C4.67352 10.9961 4.00195 10.3245 4.00195 9.4961V5.49609ZM14.802 9.1961V5.79609H18.2019V9.1961H14.802ZM13.002 5.49609C13.002 4.66767 13.6735 3.99609 14.502 3.99609H18.5019C19.3303 3.99609 20.0019 4.66767 20.0019 5.49609V9.4961C20.0019 10.3245 19.3303 10.9961 18.5019 10.9961H14.502C13.6735 10.9961 13.002 10.3245 13.002 9.4961V5.49609ZM14.802 14.7961V18.1961H18.2019V14.7961H14.802ZM14.502 12.9961C13.6735 12.9961 13.002 13.6677 13.002 14.4961V18.4961C13.002 19.3245 13.6735 19.9961 14.502 19.9961H18.5019C19.3303 19.9961 20.0019 19.3245 20.0019 18.4961V14.4961C20.0019 13.6677 19.3303 12.9961 18.5019 12.9961H14.502ZM5.80195 18.1961V14.7961H9.20196V18.1961H5.80195ZM4.00195 14.4961C4.00195 13.6677 4.67352 12.9961 5.50195 12.9961H9.50196C10.3304 12.9961 11.002 13.6677 11.002 14.4961V18.4961C11.002 19.3245 10.3304 19.9961 9.50196 19.9961H5.50195C4.67352 19.9961 4.00195 19.3245 4.00195 18.4961V14.4961Z",fill:"currentColor"})}))};e.Z=l.memo(c)},31557:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(75190),l=t(52322),s=(t(2784),t(82740)),c=t(78320),d=t(81730),u=t(54382);function f(){var n=(0,a.Z)(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n button {\n float: left;\n justify-content: flex-start;\n padding: 0 12px;\n width: 100%;\n\n &.selected {\n font-weight: bold;\n }\n\n &:hover {\n background-color: "," !important;\n }\n }\n"]);return f=function(){return n},n}var p=(0,s.ZP)(c.Z).withConfig({componentId:"sc-82528e9f-0"})(f(),(function(n){return n.theme.isNight?n.theme.colors.darks[2]:n.theme.buttons.plain.backgroundHover}));e.Z=function(n){var e=n.options,t=n.LinkComponent,a=n.placement,s=void 0===a?"bottom":a,c=n.children,f=n.singletonTarget,h=n.trigger,m=void 0===h?"click":h,x=n.interactive,g=void 0===x||x,v=n.selected,b=n.containerStyle,C=void 0===b?{}:b,w=n.containerClass,y=void 0===w?"dropdown-container":w,Z=n.itemStyle,k=void 0===Z?{}:Z,j=n.itemClassName,M=void 0===j?"dropdown-item":j,S=(n.hideOnClick,n.popoverTheme),N=(0,o.Z)(n,["options","LinkComponent","placement","children","singletonTarget","trigger","interactive","selected","containerStyle","containerClass","itemStyle","itemClassName","hideOnClick","popoverTheme"]),H={};return S&&(H.theme=S),(0,l.jsx)(u.default,(0,i.Z)((0,r.Z)({hideOnClick:!0,interactive:g,placement:s,singletonTarget:f,content:(0,l.jsx)(p,{style:C,"data-sensors-click":!0,className:y,children:e.map((function(n,e){return n.link&&t?(0,l.jsx)(t,{href:n.link,className:M,style:k,target:n.toNewPage?"_blank":"_self",children:(0,l.jsx)(d.ZP,{variant:"plain",children:n.text})},n.key||n.text||e):(0,l.jsx)(d.ZP,{variant:"plain",style:k,className:void 0===v||v!==n.text&&v!==n.key?"".concat(M):"selected ".concat(M),onClick:n.onClick,children:n.text},n.key||n.text||e)}))}),trigger:m},H,N),{children:c}))}},61360:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(52322),l=(t(2784),t(82740)),s=t(78320);e.Z=(0,l.Zz)((function(n){var e=n.renderPath,t=n.size,l=void 0===t?"24px":t,c=n.viewBox,d=void 0===c?"0 0 24 24":c,u=n.theme,f=(0,o.Z)(n,["renderPath","size","viewBox","theme"]),p=Object.values(u.icons);return(0,a.jsx)(s.Z,(0,i.Z)((0,r.Z)({as:"svg",xmlns:"http://www.w3.org/2000/svg",height:l,width:l,viewBox:d},f),{children:e(p,u)}))}))},98094:function(n,e,t){var r=t(62230),i=t(52322),o=(t(2784),t(61360));e.Z=function(n){return(0,i.jsx)(o.Z,(0,r.Z)({renderPath:function(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M13.8182 2H13V11H22V10.1818C22 5.68182 18.3182 2 13.8182 2Z",fill:n.fill||e[0]}),(0,i.jsx)("path",{d:"M11.35 5H10.5C5.825 5 2 8.825 2 13.5C2 18.175 5.825 22 10.5 22C15.175 22 19 18.175 19 13.5V12.65H11.35V5Z",fill:n.fill||e[0]})]})}},n))}},12693:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(75190),l=t(52322),s=t(2784),c=t(82740),d=t(31557),u=t(61210),f=t(78320);function p(){var n=(0,a.Z)(["\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n\n background: ",";\n border-radius: 8px;\n outline: 0;\n font-weight: 600;\n cursor: pointer;\n color: ",";\n padding: 5px 8px;\n font-size: 12px;\n line-height: 22px;\n"]);return p=function(){return n},n}var h=(0,c.ZP)(f.Z).withConfig({componentId:"sc-4465b840-0"})(p(),(function(n){return n.theme.buttons.default.background}),(function(n){return n.theme.buttons.default.color}));e.Z=function(n){var e=n.defaultOption,t=n.options,a=n.onChange,c=n.selectedOption,f=n.selectContainerStyle,p=(0,o.Z)(n,["defaultOption","options","onChange","selectedOption","selectContainerStyle"]),m=(0,s.useState)(e||t[0]),x=m[0],g=m[1],v=(0,s.useState)(!1),b=v[0],C=v[1],w=t.map((function(n,e){var t="";return n&&(t="string"===typeof n?n:n.text?n.text:"".concat(n)),{text:t,key:e,onClick:function(){return function(n,e){g(n),null===a||void 0===a||a(n,e),C(!1)}(n,e)}}})),y=c||x;return(0,l.jsx)(d.Z,(0,i.Z)((0,r.Z)({options:w,visible:b,onClickOutside:function(){C(!1)},setVisible:C},p),{children:(0,l.jsxs)(h,{onClick:function(){C(!0)},style:f,"data-sensors-click":!0,children:[(null===y||void 0===y?void 0:y.text)||y,(0,l.jsx)(u.Z,{size:14})]})}))}}}]);