forked from Romeo-Rosete/EXCHANGE-SECURITY
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
54552.a205462aefcd833.js.download
1 lines (1 loc) · 27.3 KB
/
54552.a205462aefcd833.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54552],{9850:function(n,e,t){"use strict";t.d(e,{_:function(){return u},l:function(){return p}});var o=t(62230),r=t(98240),i=t(75190),a=t(52322),s=(t(2784),t(82740)),l=t(78320),c=t(31504);function d(){var n=(0,i.Z)(["\n margin-left: 8px;\n padding: 4px 8px 4px 6px;\n display: inline-flex;\n align-items: center;\n background-color: var(--color-light-neutral-2);\n border-radius: 16px;\n line-height: 1;\n\n img {\n width: 16px;\n }\n"]);return d=function(){return n},n}var u=function(n){var e=n.id,t=n.symbol,i=n.dimension,s=void 0===i?32:i,l=(0,r.Z)(n,["id","symbol","dimension"]);return(0,a.jsx)("img",(0,o.Z)({src:(0,c.pt)("/static/img/coins/64x64/".concat(e,".png")),height:"".concat(s),width:"".concat(s),alt:t,loading:"lazy",decoding:"async",fetchpriority:"low"},l))},p=(0,s.ZP)(l.Z).withConfig({componentId:"sc-bb29b6ea-0"})(d())},46694:function(n,e,t){"use strict";t.d(e,{Z:function(){return g}});var o,r=t(62230),i=t(85244),a=t(98240),s=t(52322),l=t(2784),c=t(68434),d=t(96664),u=t(38789),p=t(49106),f=t(67557),h=(o={width:"100%",maxWidth:"1400px",margin:"0 auto"},(0,f.Z)(o,d[u.mqLg].up,{padding:"0px ".concat(u.space300)}),(0,f.Z)(o,d[u.mqMd].down,{padding:"".concat(u.space150," ").concat(u.space200)}),o),m=function(n,e){var t=n.children,o=n.maxWidth,f=n.isFullWidth,m=void 0===f||f,g=(0,a.Z)(n,["children","maxWidth","isFullWidth"]),x=(0,l.useMemo)((function(){return function(n){var e=n.isFullWidth,t=n.maxWidth,o={},r=e,i=r?"unset":"1920px";return null!=t&&(r=!0,i="number"==typeof t?"".concat(t,"px"):String(t)),r?o.maxWidth=i:(o.paddingLeft=u.space200,o.paddingRight=u.space200,o[d[u.mqLg].up]={paddingLeft:u.space200,paddingRight:u.space200}),o.maxWidth=i,(0,p.Z)({},h,o)}({isFullWidth:m,maxWidth:o})}),[m,o]);return(0,s.jsx)(c.Z,(0,i.Z)((0,r.Z)({__css:x,"data-role":"global-container"},g),{ref:e,children:t}))};m.displayName="GlobalContainer";var g=l.forwardRef(m)},50133:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return he}});var o=t(62230),r=t(52322),i=t(2784),a=t(72779),s=t.n(a),l=t(29101),c=t(20194),d=t(98240),u=t(82740),p=t(46694),f=t(46414),h=t(68434),m=t(85244),g=t(11493),x=t(48200),v=t(84611),b=t(83434),Z=t(25084),w=t(22729),y=t(75190),j=t(96664),C=t(38789);function k(){var n=(0,y.Z)(["\n display: flex;\n flex: 1;\n justify-content: flex-start;\n"]);return k=function(){return n},n}function P(){var n=(0,y.Z)(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]);return P=function(){return n},n}function _(){var n=(0,y.Z)(["\n font-size: ",";\n font-weight: ",";\n cursor: pointer;\n display: inline-block;\n position: relative;\n &[data-role='menu-item'] {\n color: ",";\n display: flex;\n align-items: center;\n padding: "," ",";\n min-height: 71px;\n }\n &:hover > * {\n color: ",";\n }\n &:hover .submenu {\n display: block;\n opacity: 1;\n animation: "," 0.3s forwards;\n }\n &:hover > .submenu {\n box-shadow: ",";\n }\n &:hover .multiSubmenu {\n display: flex;\n opacity: 1;\n animation: "," 0.3s forwards;\n &.four-square {\n display: grid;\n grid-row-gap: ",";\n grid-template-columns: 1fr 1fr;\n /**\n better solution?\n */\n grid-template-rows: auto 1fr;\n & > div:first-child {\n grid-row-start: 1;\n grid-row-end: 3;\n }\n }\n }\n"]);return _=function(){return n},n}function N(){var n=(0,y.Z)(["\n padding: ",";\n background: ",";\n border-radius: ",";\n position: absolute;\n z-index: 9999;\n margin-top: 0px;\n color: unset;\n display: none;\n white-space: nowrap;\n /* top: 50%; */\n left: 50%;\n top: 100%;\n transform: translate(-50%, 0%);\n\n hr {\n height: 1px;\n border-width: 0px;\n background: 1px;\n background: ",";\n }\n &::before {\n content: '';\n display: block;\n width: 0px;\n z-index: 10;\n /* background: red; */\n height: 0px;\n border: 10px solid ",";\n border-color: transparent;\n border-bottom-color: ",";\n position: absolute;\n top: -20px;\n left: calc(50% - 10px);\n }\n .sub-item {\n display: grid;\n grid-template-columns: max-content min-content min-content auto;\n align-items: center;\n padding: ",";\n color: ",";\n border-radius: ",";\n max-width: 300px;\n\n &:hover {\n background-color: ",";\n }\n\n > :first-child {\n margin-inline-end: ",";\n width: 32px;\n height: 32px;\n }\n .ext {\n width: ",";\n height: ",";\n margin-left: ",";\n }\n }\n"]);return N=function(){return n},n}function S(){var n=(0,y.Z)(["\n padding: "," ",";\n background: ",";\n border-radius: ",";\n /* filter: drop-shadow(0px 1px 2px rgba(128, 138, 157, 0.12))\n drop-shadow(0px 8px 32px rgba(128, 138, 157, 0.24)); */\n box-shadow: ",";\n position: absolute;\n z-index: 9999;\n margin-top: 0px;\n color: unset;\n display: none;\n white-space: nowrap;\n /* top: 50%; */\n left: 50%;\n top: 100%;\n transform: translate(-50%, 0%);\n > div {\n margin: 0 10px;\n align-self: flex-start;\n }\n &::before {\n content: '';\n display: block;\n width: 0px;\n z-index: 10;\n /* background: red; */\n height: 0px;\n border: 10px solid #fff;\n border-color: transparent;\n border-bottom-color: ",";\n position: absolute;\n top: -20px;\n left: calc(50% - 10px);\n }\n "," {\n position: static;\n left: 0;\n transform: none;\n background: transparent;\n padding: 0;\n filter: none;\n &::before {\n display: none;\n }\n }\n"]);return S=function(){return n},n}function L(){var n=(0,y.Z)(["\n flex: 1;\n width: ",";\n "," {\n width: ",";\n }\n //min-width: 20px;\n"]);return L=function(){return n},n}var I=C,E=u.ZP.div.withConfig({componentId:"sc-8b3d12a8-0"})(k()),M=(0,u.F4)(P()),W=u.ZP.div.withConfig({componentId:"sc-8b3d12a8-1"})(_(),I.fontSize100,I.fontWeight600,I.colorTextPrimary,I.space300,I.space200,I.colorTextHyperlink,M,I.shadowOverlay,M,I.space200),D=u.ZP.div.withConfig({componentId:"sc-8b3d12a8-2"})(N(),I.space200,I.colorSurface1,I.borderRadius100,I.colorGray200,I.colorSurface1,I.colorSurface1,I.space100,I.colorTextPrimary,I.borderRadius100,I.colorGray200,I.space200,I.space200,I.space200,I.space100),z=u.ZP.div.withConfig({componentId:"sc-8b3d12a8-3"})(S(),I.space400,I.space300,I.colorSurface1,I.borderRadius100,I.shadowOverlay,I.colorSurface1,D),F=(u.ZP.div.withConfig({componentId:"sc-8b3d12a8-4"})(L(),I.space400,j[I.mq2xl].down,I.space200),{display:"block",marginInlineStart:I.space100,marginBottom:I.space100,color:I.colorGray400,fontWeight:I.fontWeight500}),T=function(n){var e=n.item,t=n.LinkComponent,i=(0,w.Z)();return(0,r.jsxs)(t,{forceRefresh:!0,href:e.link,className:"sub-item",isDisableLanguagePrefix:e.isDisableLanguagePrefix,target:e.toNewPage?"_blank":"_self",onClick:function(n){if(e.gtmParams){var t=+new Date;Z.ZP.sendEvent((0,m.Z)((0,o.Z)({},e.gtmParams),{label:"".concat(t,",").concat(i),json_data:{date:t,userId:i}}))}(0,Z.nS)({category:"Web Navigation Bar",action:"NavigationBar_click",label:"TabName=".concat((0,x.n)(e.name),";SubTab=").concat(e.name)})},children:[e.icon,e.title,e.toNewPage?(0,r.jsx)(v.Z,{className:"ext"}):null,e.trailingIcon]})},U=function(n){var e=n.primary,t=n.secondary,o=n.LinkComponent;return e||t?(0,r.jsxs)(D,{className:"submenu",children:[null===e||void 0===e?void 0:e.map((function(n){return(0,r.jsx)(T,{item:n,LinkComponent:o},n.title)})),t?(0,r.jsx)("hr",{style:{margin:"12px 0"}}):null,t?t.map((function(n){return(0,r.jsx)(T,{item:n,LinkComponent:o},n.title)})):null]}):null},R=function(n){var e=n.config,t=n.LinkComponent;Object.keys(e).length;return(0,r.jsx)(E,{children:e.map((function(n,e){var a,s;return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(W,{className:"menu-item-"+e,"data-role":"menu-item",children:[n.link?(0,r.jsx)(t,{href:n.link,color:"inherit",isDisableLanguagePrefix:n.isDisableLanguagePrefix,onClick:function(){n.gtmParams&&Z.ZP.sendEvent((0,o.Z)({},n.gtmParams)),(0,Z.nS)({category:"Web Navigation Bar",action:"NavigationBar_click",label:n.name})},children:n.title}):(0,r.jsx)("span",{children:n.title}),n.multiSubMenu&&(null===(a=n.multiSubMenu)||void 0===a?void 0:a.length)>0?(0,r.jsx)(z,{className:"multiSubmenu ".concat(n.className||""),children:null===(s=n.multiSubMenu)||void 0===s?void 0:s.map((function(n,e){return(0,r.jsxs)("div",{children:[(0,r.jsx)(b.Z,{as:"div",sx:F,children:n.title}),(0,r.jsx)(U,{primary:n.primary,secondary:n.secondary,LinkComponent:t})]},e)}))}):(0,r.jsx)(U,{primary:n.primary,secondary:n.secondary,LinkComponent:t})]})},e)}))})},B={el:"90px",es:"90px",fr:"100px",ru:"85px",vi:"120px"};function H(){var n=(0,y.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n .search-input-static {\n .tooltip:before {\n left: auto;\n right: 0;\n transform: translateX(0%) translateY(50%);\n }\n }\n button {\n height: 36px;\n white-space: nowrap;\n }\n > a > button {\n margin: 0 8px;\n }\n li button {\n padding: 20px 16px;\n height: auto;\n }\n"]);return H=function(){return n},n}function A(){var n=(0,y.Z)(["\n display: flex;\n flex: 1;\n padding-inline-start: ",";\n /* height: 62px; */\n /* align-items: center; */\n\n nav > ul {\n justify-content: flex-start;\n }\n\n li {\n display: flex;\n align-items: center;\n\n height: ",";\n flex-basis: ",";\n }\n"]);return A=function(){return n},n}var q=u.ZP.div.withConfig({componentId:"sc-a2cd45b6-0"})(H()),G=u.ZP.div.withConfig({componentId:"sc-a2cd45b6-1"})(A(),C.space200,(function(n){return B[n.lang]?"84px":"unset"}),(function(n){return B[n.lang]||"unset"})),O={display:"flex",flexDirection:"row"},V=(0,m.Z)((0,o.Z)({},O),{justifyContent:"space-between"}),X=(0,m.Z)((0,o.Z)({},O),{alignItems:"center","[data-role=logo] + [data-role=menu-wrapper]":{marginInlineStart:C.space300}}),Q=(0,m.Z)((0,o.Z)({},O),{alignItems:"center"}),J=function(n){var e=n.lang,t=n.t,i=(0,d.Z)(n,["lang","t"]),a=(0,x.t)(t,!1,e);return(0,r.jsx)(G,(0,m.Z)((0,o.Z)({lang:e},i),{children:(0,r.jsx)(R,{LinkComponent:g.Z,config:a})}))},K=t(81730);function Y(){var n=(0,y.Z)(["\n margin: 24px auto;\n display: inline-block;\n width: 100%;\n padding: 0;\n > a {\n color: ",";\n width: 100%;\n height: 100%;\n line-height: 300%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n text-decoration: none;\n }\n > a:hover,\n > a:focus {\n color: ",";\n }\n"]);return Y=function(){return n},n}var $=(0,u.ZP)(K.ZP).withConfig({componentId:"sc-ef4d98b5-0"})(Y(),(function(n){return n.theme.colors.textColor}),(function(n){return n.theme.colors.textColor})),nn=function(n){var e=n.text,t=n.href,i=(0,d.Z)(n,["text","href"]);return(0,r.jsx)($,(0,m.Z)((0,o.Z)({},i),{children:(0,r.jsx)("a",{href:t,children:e})}))};function en(){var n=(0,y.Z)(["\n font-weight: 400;\n padding: 0px 8px;\n margin: 0px;\n width: unset;\n\n span {\n letter-spacing: 0.03em;\n color: ",";\n }\n"]);return en=function(){return n},n}var tn={color:C.colorGray400,fontSize:C.fontSize400},on=(0,u.ZP)(nn).withConfig({componentId:"sc-1d33b4fb-0"})(en(),C.colorTextPrimary),rn=t(3154),an=t(5767),sn=t(89843),ln=t(7279),cn=t(54382),dn=t(19956),un=t(15798),pn=t.n(un),fn=t(10444),hn=t(25614),mn=t(99366),gn=t(64626),xn=t(67665),vn=t(57472),bn=t(19541),Zn=t(77808),wn=t(81936),yn=t(8590),jn=t(17721),Cn=t(57075);function kn(){var n=(0,y.Z)(["\n background-color: ",";\n color: ",";\n border-radius: ",";\n padding: ",";\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n margin-inline-start: ",";\n"]);return kn=function(){return n},n}function Pn(){var n=(0,y.Z)(["\n display: flex;\n flex: 1;\n font-weight: 600;\n font-size: 12px;\n margin-inline-start: 4px;\n width: 200px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"]);return Pn=function(){return n},n}function _n(){var n=(0,y.Z)(["\n height: 20px;\n width: 20px;\n border-radius: 4px;\n background-color: ",";\n color: #fff;\n line-height: 20px;\n text-align: center;\n"]);return _n=function(){return n},n}var Nn=u.ZP.div.withConfig({componentId:"sc-e20acb0c-0"})(kn(),C.colorGray200,C.colorGray400,C.borderRadius100,C.space100,C.space100),Sn=u.ZP.div.withConfig({componentId:"sc-e20acb0c-1"})(Pn()),Ln=u.ZP.div.withConfig({componentId:"sc-e20acb0c-2"})(_n(),(function(n){return n.theme.colors.neutral4}));var In=function(n){var e=n.t;return(0,r.jsxs)(Nn,{className:"search-input-static",children:[(0,r.jsx)(Cn.Z,{fontSize:"size400"}),(0,r.jsx)(Sn,{children:e("Search")}),(0,r.jsx)(Ln,{className:"tooltip","data-text":e("Use to trigger search"),children:"/"})]})},En=t(70882),Mn=t(64999);function Wn(){var n=(0,y.Z)(["\n .search-popover .tippy-content {\n padding: 0 !important;\n }\n"]);return Wn=function(){return n},n}var Dn=i.lazy((function(){return t.e(21103).then(t.bind(t,21103))})),zn=(0,u.vJ)(Wn()),Fn=(0,mn.D)((function(n){Z.ZP.sendEvent({category:"Quick Search",action:"Query Entered",label:n})}),1e3),Tn=(0,mn.D)((function(n){Z.ZP.sendEvent({category:"SearchBar",action:"User Searched Empty",label:n})}),1e3),Un=function(n){var e=n.url,t=n.flightId,o=n.advertiser,r=n.title;Z.ZP.sendEvent({category:"Sponsored search",action:"Native Ad Click",label:"".concat(o," | ").concat(t," | ").concat(r)}),window.open(e)};function Rn(n){var e,t,a,s,c,d,u,p,f,h,g,x=n.t,v=n.lang,b=function(n){try{var e,t,o=(null===(e=n.path)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.tagName)||n.srcElement.tagName,r=n.srcElement;if("INPUT"===o||"TEXTAREA"===o||"true"===r.contentEditable)return}catch(i){console.error(i)}n.keyCode===pn().key.SLASH&&(n.preventDefault(),n.stopPropagation(),window.scrollTo({top:0,behavior:"smooth"}),O||V(!0),T(!0))},Z=function(){T(!1),setTimeout((function(){L("")}),500),B(!1),q(!1)},w=(0,vn.yx)(v),y=(0,i.useContext)(l.Zy),j=y.mapData,C=y.currency,k=(0,i.useContext)(fn.G).setAdState,P=(0,i.useRef)(null),_=j.data,N=(0,i.useState)(""),S=N[0],L=N[1],I=(0,i.useState)(!1),E=I[0],M=I[1],W=null!==(g=S.replace(/\s*/g,""))&&void 0!==g?g:"",D=(0,bn.qQ)(),z=(0,i.useState)(!1),F=z[0],T=z[1],U=(0,i.useState)(!1),R=U[0],B=U[1],H=(0,i.useState)(!1),A=H[0],q=H[1],G=(0,i.useState)(!1),O=G[0],V=G[1],X=(0,Zn.ZP)(),Q=(0,Zn.Gp)({enabled:O||F}),J=null===(e=gn.C.get(C.id))||void 0===e?void 0:e.p,K=null===Q||void 0===Q||null===(t=Q.data)||void 0===t?void 0:t.map((function(n){return(0,m.Z)((0,o.Z)({},n),{price:(0,hn.oB)(n.priceChange.price,J,C.id,{usePriceAbbreviation:!0})})})),Y=(0,Zn.QM)(W,{alldexerFlag:R}),$=(0,Zn.NP)(S),nn=(0,i.useMemo)((function(){return D}),[D]),en=(0,i.useMemo)((function(){return(0,r.jsx)(Mn.Z,{isLoading:Q.isLoading,ad:nn,onAdClick:Un,data:K||[],t:x,onClose:Z,visible:F,setShowSearchInstruction:M})}),[K,F,D,Q.isLoading]);(0,i.useEffect)((function(){O&&(X(),Y.refetch())}),[O]),(0,i.useEffect)((function(){!F||_&&0!==_.length||(X(),(0,xn.I)({t:"search_no_data"}))}),[F]),(0,i.useEffect)((function(){return document.addEventListener("keydown",b),function(){return document.removeEventListener("keydown",b)}}),[]);(0,i.useEffect)((function(){(null===_||void 0===_?void 0:_.length)>0&&(performance.mark("SearchReady"),(0,xn.I)({t:"search_perf_load_dex_pairs",loadDexPairs:P.current?Date.now()-P.current:0}))}),[_]);var tn=(0,Zn.It)(S),on=tn.cryptoResultMemo,rn=tn.isLoading,an=(0,Zn.iQ)(S,O),sn=(0,Zn.F_)(S),un=(0,wn.UX)(S);(0,i.useEffect)((function(){on.length||sn.length||!S||Tn(S)}),[on,sn,S]);var mn=un.isLoading||un.isFetching,Cn=(0,ln.Z)(un.data),kn=mn||!Cn,Pn=on.length||an.length||sn.length||A||kn,_n=Y.isLoading||!(null===_||void 0===_?void 0:_.length)||$.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(zn,{}),(0,r.jsx)(cn.default,{trigger:"mouseenter focus",arrow:!1,visible:F,maxWidth:600,offset:[-68,-42],onClickOutside:Z,interactive:!0,className:"search-popover",content:(0,r.jsxs)(jn.Z,{hasResult:Pn,onChange:function(n){var e,t=null!==(e=n.replace(/\s*/g,""))&&void 0!==e?e:"";if(""===t)return L(""),void B(!1);t&&(Fn(n),L(n))},text:S,onClose:Z,searchable:!0,t:x,children:[""!==S&&S?(0,r.jsx)(yn.Z,{ad:nn,onAdClick:Un,cryptos:on,categories:an,exchanges:sn,nfts:$.isLoading?[]:(null===(a=$.data)||void 0===a?void 0:a.collectionList)||[],nftsLen:$.isLoading?0:(null===(s=$.data)||void 0===s?void 0:s.total)||0,dexpairs:Y.isLoading?[]:(null===(c=Y.data)||void 0===c||null===(d=c.data)||void 0===d||null===(u=d.data)||void 0===u?void 0:u.pairs)||[],dexpairLen:Y.isLoading?0:(null===(p=Y.data)||void 0===p||null===(f=p.data)||void 0===f||null===(h=f.data)||void 0===h?void 0:h.total)||0,setAlldexerFlag:B,isload:_n,onClose:Z,text:S,community:un,isLoadingPrice:rn,setShowSearchInstruction:M}):en,(0,r.jsx)(i.Suspense,{fallback:null,children:(0,r.jsx)(Dn,{type:dn.F.SEARCH,position:"SEARCH BOX"})}),E&&(0,r.jsx)(En.w,{t:x})]}),children:(0,r.jsx)("div",{onClick:function(){performance.mark("SearchOpen"),P.current||(P.current=Date.now()),O||V(!0),T(!0),D||(0,bn.Cp)(bn._.AD_SPEC_SEARCH).then((function(n){n&&k(n)}))},onMouseEnter:function(){O||V(!0)},style:w?{overflow:"hidden"}:{},children:(0,r.jsx)(In,{t:x})})})]})}var Bn=i.memo(Rn),Hn=t(22386),An=t(9850),qn=t(15925),Gn=t(46924),On=t(27622),Vn=t(96904),Xn=i.lazy((function(){return t.e(60275).then(t.bind(t,60275))})),Qn=(0,u.ZP)(h.Z).withConfig({componentId:"sc-cd7ac39-0"})((function(){return{display:"flex",alignItems:"center",gap:C.space50,marginInlineEnd:C.space100,cursor:"pointer",whiteSpace:"nowrap"}})),Jn=function(){var n=(0,Hn.Z)((0,c.Z)(),1)[0],e=(0,On.Z)(),t=(0,Gn.bd)(),o=t.halvingInfo,a=t.halvingInfoUpdater;return null===e?null:(0,r.jsx)(Vn.ZP,{triggerType:"hover",allowedPlacements:["bottom"],content:(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(qn.Z,{size:"md",style:{padding:"100px"}}),children:(0,r.jsx)(Xn,{halvingInfo:o,halvingInfoUpdater:a})}),children:(0,r.jsxs)(Qn,{fontSize:"size75",children:[(0,r.jsx)(An._,{id:1,symbol:"BTC",dimension:16}),n("bitcoinhalving_halving_web",{ns:"sheet_BitcoinHalving",defaultValue:"Halving: {{halvingDays}}D",halvingDays:e})]})})};function Kn(n){var e=n.t,t=n.lang,i=n.enableUserMeta,a=void 0===i||i,s=(0,rn.ZP)({url:"/watchlist/",beforeCallback:function(){(0,Z.nS)({category:"Web Navigation Bar",action:"NavigationBar_click",label:"Watchlist"}),Z.ZP.sendEvent({category:"Watchlist - Clicks",action:"Clicks",label:"Switch Watchlist"})}}),l=(0,rn.ZP)({url:"/portfolio-tracker/",beforeCallback:function(){(0,Z.nS)({category:"Web Navigation Bar",action:"NavigationBar_click",label:"Portfolio"}),Z.ZP.sendEvent({category:"Portfolio - Clicks",action:"Clicks",label:"Switch Portfolio"})}}),c=(0,r.jsxs)("div",{className:"right-section-link-buttons",style:{whiteSpace:"nowrap"},children:[a?(0,r.jsx)(on,(0,m.Z)((0,o.Z)({size:"sm",variant:"plain"},s),{text:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(sn.Z,{sx:tn}),(0,r.jsx)("span",{className:"watchlist-star-text",style:{margin:"0",marginInlineStart:4},children:e("Watchlist")})]})})):"",(0,r.jsx)(on,(0,m.Z)((0,o.Z)({size:"sm",variant:"plain",onClick:l},l),{style:{marginInlineEnd:4},text:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(an.Z,{sx:tn}),(0,r.jsx)("span",{className:"watchlist-star-text",style:{margin:"0",marginInlineStart:4},children:e("Portfolio")})]})}))]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Jn,{}),c,(0,r.jsx)(Bn,{t:e,lang:t})]})}var Yn=i.memo((function(n){n.t;var e=(0,d.Z)(n,["t"]),t=(0,i.useContext)(u.Ni).isDay;return(0,r.jsx)(f.ZP,(0,o.Z)({isDay:!!t},e))})),$n=function(n){var e=n.t,t=n.lang,o=n.enableUserMeta,i=void 0===o||o;return(0,r.jsx)(q,{className:"header-wrapper",children:(0,r.jsxs)(p.Z,{sx:V,children:[(0,r.jsxs)(h.Z,{__css:X,children:[(0,r.jsx)(Yn,{t:e,"data-role":"logo"}),(0,r.jsx)(J,{t:e,lang:t,"data-role":"menu-wrapper"})]}),(0,r.jsx)(h.Z,{__css:Q,children:(0,r.jsx)(Kn,{t:e,lang:t,enableUserMeta:i})})]})})},ne=t(983),ee=t(8173),te=t(87681);function oe(){var n=(0,y.Z)(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n padding-top: ",";\n padding-bottom: ",";\n z-index: ",";\n white-space: nowrap;\n "," {\n font-size: ",";\n }\n"]);return oe=function(){return n},n}function re(){var n=(0,y.Z)(["\n white-space: nowrap;\n overflow-x: auto;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n margin-inline-end: ",";\n &::-webkit-scrollbar {\n height: 0;\n }\n .glo-stat-item {\n margin-inline-end: ",";\n }\n"]);return re=function(){return n},n}var ie=u.ZP.div.withConfig({componentId:"sc-57ed43ab-0"})(oe(),C.fontSize75,C.fontWeight500,C.space100,C.space100,te.W5.HEADER_DESKTOP_TOPBAR,j[C.mqXl].down,C.fontSize50),ae=u.ZP.div.attrs({className:"global-stats"}).withConfig({componentId:"sc-57ed43ab-1"})(re(),C.space100,C.space150),se={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},le=(0,ne.Z)((function(){return Promise.all([t.e(12802),t.e(95078),t.e(90809)]).then(t.bind(t,88562))}),!1,(function(){return(0,r.jsx)("div",{style:{height:36,width:200}})})),ce=function(n){var e=n.enableSitePreferences,t=void 0===e||e,o=n.enableUserMeta,i=void 0===o||o,a=n.enableCurrencyPicker,s=void 0===a||a,l=n.enableLanguagePicker,c=void 0===l||l,d=n.enableThemePicker,u=void 0===d||d;return(0,r.jsx)(ie,{className:"header-wrapper topbar",children:(0,r.jsxs)(p.Z,{sx:se,children:[(0,r.jsxs)(ae,{children:[(0,r.jsx)(ee.sL,{}),(0,r.jsx)(ee.xm,{}),(0,r.jsx)(ee.sy,{}),(0,r.jsx)(ee.vc,{}),(0,r.jsx)(ee.Np,{}),(0,r.jsx)(ee.U4,{}),(0,r.jsx)(ee.$f,{})]}),(0,r.jsx)(le,{enableSitePreferences:t,enableUserMeta:i,enableCurrencyPicker:s,enableLanguagePicker:c,enableThemePicker:u})]})})};function de(){var n=(0,y.Z)(["\n display: flex;\n flex-direction: column;\n background: ",";\n\n "," {\n display: none;\n }\n"]);return de=function(){return n},n}function ue(){var n=(0,y.Z)(["\n height: 1px;\n background-color: ",";\n"]);return ue=function(){return n},n}var pe=u.ZP.div.withConfig({componentId:"sc-9102b084-0"})(de(),C.colorBackground2,j[C.mqXl].down),fe=u.ZP.div.withConfig({componentId:"sc-9102b084-1"})(ue(),C.colorGray200),he=function(n){var e=n.className,t=n.hide,a=n.topbarProps,d=(0,i.useContext)(l.Zy).language,u=(0,c.Z)().t;return t?null:(0,r.jsxs)(pe,{className:s()(e,{"cmc-header-desktop":!0}),children:[(0,r.jsx)(ce,(0,o.Z)({},a)),(0,r.jsx)(fe,{}),(0,r.jsx)($n,{t:u,lang:d,enableUserMeta:null===a||void 0===a?void 0:a.enableUserMeta}),(0,r.jsx)(fe,{})]})}},27622:function(n,e,t){"use strict";var o=t(46924);e.Z=function(){var n=(0,o.bd)().halvingInfo;return n?n.blocksUntilHaving<=0||n.secondsUntilHalving<=0?null:Math.floor(n.secondsUntilHalving/86400):null}},5767:function(n,e,t){"use strict";var o=t(62230),r=t(85244),i=t(98240),a=t(52322),s=t(2784),l=t(92324),c=function(n){var e=n.sx,t=void 0===e?{}:e,s=(0,i.Z)(n,["sx"]);return(0,a.jsxs)(l.Z,(0,r.Z)((0,o.Z)({sx:t},s),{iconName:"chartPieFilled",children:[(0,a.jsx)("path",{d:"M15 1.99512C14.445 1.99512 13.9949 2.44511 13.9949 3.00011V9.00011C13.9949 9.55511 14.445 10.0051 15 10.0051H21C21.555 10.0051 22.005 9.55511 22.005 9.00011C22.005 5.14511 18.87 1.99512 15 1.99512ZM16.005 7.99512V4.09512C17.955 4.50012 19.4999 6.04512 19.9049 7.99512H16.005Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M19.98 11.9699H13.02C12.465 11.9699 12.015 11.5199 12.015 10.9649V4.00493C12.015 3.40493 11.475 2.92493 10.875 2.99993C5.95501 3.61493 2.25002 8.21993 3.10502 13.4549C3.72002 17.2199 6.76502 20.2649 10.515 20.8649C15.75 21.7199 20.355 18.0149 20.97 13.0949C21.045 12.4949 20.58 11.9549 19.965 11.9549L19.98 11.9699Z",fill:"currentColor"})]}))};e.Z=s.memo(c)},89843:function(n,e,t){"use strict";var o=t(62230),r=t(85244),i=t(98240),a=t(52322),s=t(2784),l=t(92324),c=function(n){var e=n.sx,t=void 0===e?{}:e,s=(0,i.Z)(n,["sx"]);return(0,a.jsx)(l.Z,(0,r.Z)((0,o.Z)({sx:t},s),{iconName:"starFilled",children:(0,a.jsx)("path",{fill:"currentColor",d:"M13.24 4.27L14.77 8.96H19.71C20.97 8.96 21.49 10.57 20.47 11.31L16.48 14.21L18.01 18.9C18.4 20.1 17.03 21.09 16.01 20.35L12.02 17.45L8.03005 20.35C7.01005 21.09 5.64005 20.09 6.03005 18.9L7.56002 14.21L3.57003 11.31C2.55003 10.57 3.07004 8.96 4.33004 8.96H9.27004L10.8 4.27C11.19 3.07 12.88 3.07 13.27 4.27H13.24Z"})}))};e.Z=s.memo(c)},96904:function(n,e,t){"use strict";var o=t(30211);e.ZP=o.Z},30211:function(n,e,t){"use strict";t.d(e,{Z:function(){return S}});var o=t(62230),r=t(85244),i=t(98240),a=t(81541),s=t(52322),l=t(2784),c=t(96664),d=t(38789),u=t(72779),p=t.n(u),f=t(52242),h=t(83475),m=t(9476),g=t(23294),x=t(83910),v=t(86347),b=t.n(v),Z=t(67847),w=t.n(Z),y=function(n,e){var t=n.className,r=(0,i.Z)(n,["className"]),a=[w().base];return t&&a.push(t),(0,s.jsx)("div",(0,o.Z)({className:p()(a)},r))};y.displayName="UikitV2PopoverDes";var j=l.memo(l.forwardRef(y)),C=t(23630),k=t.n(C),P=function(n,e){return(0,s.jsx)("span",(0,o.Z)({className:k().base},n))};P.displayName="UikitV2PopoverTitle";var _=l.memo(l.forwardRef(P)),N=function(n,e){var t=n.title,u=n.des,v=n.action,Z=n.arrow,w=void 0===Z||Z,y=n.open,C=n.defaultOpen,k=n.onChange,P=n.content,N=n.openDelay,S=void 0===N?200:N,L=n.contentClassName,I=n.modalRootClassName,E=n.modalModeWrapperClassName,M=n.allowedTransformation,W=void 0===M||M,D=n.triggerType,z=void 0===D?"hover":D,F=n.mobileFullscreen,T=(0,i.Z)(n,["title","des","action","arrow","open","defaultOpen","onChange","content","openDelay","contentClassName","modalRootClassName","modalModeWrapperClassName","allowedTransformation","triggerType","mobileFullscreen"]),U=(0,l.useMemo)((function(){return null!=y?y:C}),[]),R=(0,l.useState)(U),B=R[0],H=R[1],A=null!=y,q=A?y:B,G=(0,f.a)(c[d.mqMd].down),O=W&&G,V=O&&q,X=null!==z&&void 0!==z?z:"hover";"hover"===X&&O&&(X="click");var Q=(0,l.useMemo)((function(){var n=[b()["content-wrapper"]];if(W&&n.push(b()["can-transformation"]),L)if("string"===typeof L)n.push(L);else if((0,m.k)(L)){var e;(e=n).push.apply(e,(0,a.Z)(L))}return p()(n)}),[L,W]),J=(0,l.useMemo)((function(){var n=[b()["modal-root"],b().p0];return F&&n.push(b()["mobile-fullscreen"]),I&&n.push(I),p()(n)}),[I,F]),K=(0,l.useMemo)((function(){var n=[],e={className:b()["popover-content"],"data-role":"pp-modal-block"};return P?(0,s.jsx)("div",(0,r.Z)((0,o.Z)({},e),{children:P})):(t&&n.push((0,s.jsx)(_,{className:b()["popover-content-title"],"data-role":"pp-item",children:t},"title")),u&&n.push((0,s.jsx)(j,{className:b()["popover-content-des"],"data-role":"pp-item",children:u},"des")),v&&n.push((0,s.jsx)("div",{"data-role":"pp-item",children:v},"action")),n.length>0?(0,s.jsx)("div",{className:b()["popover-content"],"data-role":"pp-modal-block",children:n}):null)}),[P,t,u,v]),Y=(0,l.useCallback)((function(){A||H(!1),k&&k(!1)}),[A]),$=[b()["modal-wrapper"]];E&&$.push(E);var nn=O?(0,s.jsxs)(g.Z,{isShow:V,showCancel:!1,showCloseIcon:!1,showConfirm:!1,hasFooter:!1,hasHeader:!1,wrapperClassName:J,onClose:Y,mobileFullscreen:F,children:[(0,s.jsx)("div",{className:p()($),children:K}),(0,s.jsx)("div",{className:"popover-modal-action-bar",children:(0,s.jsx)(h.ZP,{variant:"tertiary",fullWidth:!0,onClick:function(){Y()},children:"Close"})})]},"popover-modal"):null,en=!(!w||O);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Z,(0,o.Z)({ref:e,open:q,openDelay:S,contentClassName:Q,content:O?(0,s.jsx)(s.Fragment,{}):K,onChange:function(n){V||(A||H(n),k&&k(n))},arrow:en,triggerType:X},T)),nn]})};N.displayName="UikitV2Popover";var S=l.memo(l.forwardRef(N))},86347:function(n){n.exports={"content-wrapper":"Popover_content-wrapper___qv8h","can-transformation":"Popover_can-transformation__mVHn4","popover-content":"Popover_popover-content__zN95U","popover-content-des":"Popover_popover-content-des__CpBo4","modal-wrapper":"Popover_modal-wrapper__Uehmq","modal-root":"Popover_modal-root__5ZLBe",p0:"Popover_p0__4UiBJ","mobile-fullscreen":"Popover_mobile-fullscreen__MUcv2"}},67847:function(n){n.exports={base:"PopoverDes_base__yFIym"}},23630:function(n){n.exports={base:"PopoverTitle_base__iE9SN"}}}]);