PageSourceSearch

https://www.fxempire.es/baseArticle/_next/static/chunks/2757-be7a03f5b5277aac.js

js fxempire.es collected 2026-09-26 13:59:09 UTC 41,778 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2757],{36110:function(a,b,c){c.d(b,{rj:function(){return E}});var d=c(70865),e=c(96670),f=c(87394),g=c(92228),h=c(52322),i=c(28518),j=c(54415),k=c(70698),l=c(79416),m=c(30594),n=c(53191),o=c(6377),p=c(98861),q=c(2090),r=c(46727),s=c(2784),t=function(){var a=(0,s.useRef)(null),b=(0,s.useState)(!1),c=b[0],d=b[1];return(0,s.useEffect)(function(){a.current&&d(a.current.offsetHeight<a.current.scrollHeight)},[]),[a,c]},u=c(26021),v=c(36846),w=c(17149),x=c(73137),y=c(14457),z=c(27290),A=c(47231),B=c(52641);function C(){var a=(0,g.Z)(["\n  &:hover h3 {\n    text-decoration: underline\n      ",";\n  }\n"]);return C=function(){return a},a}function D(){var a=(0,g.Z)(["\n  border-radius: 13px;\n"]);return D=function(){return a},a}var E=function(a){var b=a.fields,c=a.title,f=a.hideSmallLogo,g=a.dropdownStyles,m=a.titleStyles,n=a.containerStyles,t=a.ignoreCloseOnClickOutside,x=a.hideWrapperBorderAndTooltip,y=void 0!==x&&x,z=(0,A.v)(),C=(0,u.Fg)().colors,D=(0,s.useState)(!1),E=D[0],F=D[1],G=(0,s.useCallback)(function(){return F(!1)},[]),J=(0,q.R)(E,t?function(){}:G),K=(0,r.r)({isOpen:E,close:G}).ulListRef;return z?null:(0,h.jsxs)(i.Z,(0,e.Z)((0,d.Z)((0,e.Z)((0,d.Z)({position:"relative",ref:J,width:"100%",zIndex:p.K.Drawer},n),{"data-playwright":"ad-button-dropdown",className:"ad-container"}),!y&&{border:"1px solid ".concat(C.brightPalette.grey),borderRadius:8,p:"8px"}),{children:[!y&&(0,h.jsx)(B.q,{}),(0,h.jsx)(j.z,{onClick:function(){return F(function(a){return!a})},justifyContent:"center",display:"flex",alignItems:"center",width:"100%",height:40,backgroundColor:C.brightPalette.orange,hoverBackground:C.brightPalette.orange_3,borderRadius:22,fontSize:16,fontFamily:"'Rubik', sans-serif","data-playwright":"ad-button-toggle",children:(0,h.jsxs)(i.Z,{display:"flex",alignItems:"baseline",gap:10,children:[(0,h.jsx)(k.D,(0,e.Z)((0,d.Z)({className:"ad-button-title"},m),{color:C.black,children:c&&(0,h.jsx)(o._,{id:c})})),E?(0,h.jsx)(v.K,{}):(0,h.jsx)(w._,{})]})}),E&&(0,h.jsxs)(i.Z,(0,e.Z)((0,d.Z)({width:["100%",328],position:"absolute",backgroundColor:C.brightPalette.white,zIndex:p.K.Drawer,boxShadow:"1px 1px 9px 1px ".concat(C.deepPalette.shadow_3),borderRadius:4,right:0,top:"calc(100% + 8px)"},g),{"data-playwright":"ad-button-dropdown-list",children:[(0,h.jsx)(l.Ul,{ref:K,listStyle:"none",children:null==b?void 0:b.map(function(a,b){return(0,h.jsx)(H,{hideSmallLogo:f,campaign:a,index:b},a)})}),(0,h.jsx)(I,{})]}))]}))},F=(0,u.ZP)(i.Z).withConfig({componentId:"sc-cbf7cc6d-0"})(C(),function(a){return a.theme.colors.brightPalette.orange}),G=(0,u.ZP)(x.E).withConfig({componentId:"sc-cbf7cc6d-1"})(D()),H=function(a){var b=a.campaign,c=a.hideSmallLogo,d=a.index,e=(0,u.Fg)().colors,g=(0,f.Z)(t(),2),j=g[0],l=g[1];return(0,h.jsx)(m.Li,{"data-playwright":"ad-dropdown-item-".concat(d),children:(0,h.jsx)(z.r,{external:!0,href:b.creative_data.landing_url,onClick:function(a){a.stopPropagation(),navigator.sendBeacon(b.creative_data.click_url),window.open(b.creative_data.landing_url,"_blank")},target:"_blank",rel:"sponsored noopener noreferrer",display:"block",children:(0,h.jsx)(F,{px:12,hoverBackground:e.brightPalette.light_grey,children:(0,h.jsxs)(i.Z,{py:16,gap:12,display:"flex",borderBottom:"1px solid ".concat(e.brightPalette.grey),children:[(0,h.jsx)(i.Z,{children:(0,h.jsx)(G,{src:b.creative_data.image_url,alt:"logo",width:"87px",height:"87px",layout:"fixed"})}),(0,h.jsxs)(i.Z,{children:[(0,h.jsxs)(n.H3,{textAlign:"left",fontSize:12,fontWeight:500,lineHeight:"16px",children:[c?null:(0,h.jsx)(i.Z,{float:"left",mr:"8px",height:"16px",children:(0,h.jsx)(x.E,{src:b.custom_fields.logo,alt:"logo",width:"16px",height:"16px",layout:"fixed"})}),(0,h.jsx)(k.D,{color:e.brightPalette.black,children:b.custom_fields.title})]}),(0,h.jsxs)(i.Z,{pt:"8px",display:"flex",children:[(0,h.jsx)(i.Z,{lineClamp:5,fontSize:12,lineHeight:"16px",title:b.custom_fields.description,ref:j,width:"calc(100% - 20px)",children:b.custom_fields.description}),l&&(0,h.jsx)(i.Z,{width:"20px",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",children:(0,h.jsx)(y.f,{text:b.custom_fields.description})})]})]})]})})})})},I=function(){var a=(0,u.Fg)().colors;return(0,h.jsxs)(i.Z,{display:"flex",height:32,alignItems:"center",pr:"12px",children:[(0,h.jsx)(k.D,{ml:"auto",mr:"9px",fontSize:12,color:a.brightPalette.grey_2,children:(0,h.jsx)(o._,{id:"Sponsored"})}),(0,h.jsx)(y.f,{id:"SponsoredTooltip"})]})}},14457:function(a,b,c){c.d(b,{f:function(){return j}});var d=c(52322),e=c(70698),f=c(6377),g=c(26021),h=c(8831),i=c(90216),j=function(a){var b=a.id,c=a.text,j=a.color,k=(0,g.Fg)();return(0,d.jsx)(i.j,{tooltipContent:b?(0,d.jsx)(f._,{id:b}):(0,d.jsx)(e.D,{children:c}),placement:"bottom-end",persistInDOM:!0,children:(0,d.jsx)("div",{children:(0,d.jsx)(h.s,{fill:j||k.colors.brightPalette.grey_2,width:"12px",height:"12px"})})})}},1854:function(a,b,c){c.d(b,{t:function(){return z}});var d=c(92228),e=c(52322),f=c(58853),g=c(30594),h=c(79416),i=c(99766),j=c(28518),k=c(70698),l=c(2784),m=c(26021),n=c(52346),o=c(70865),p=c(96670),q=function(a){return(0,e.jsx)("svg",(0,p.Z)((0,o.Z)({width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),{children:(0,e.jsx)("path",{d:"M0.893125 2C0.786458 2 0.695792 1.968 0.621125 1.904C0.557125 1.82933 0.525125 1.73867 0.525125 1.632V0.48C0.525125 0.373333 0.557125 0.288 0.621125 0.224C0.695792 0.149333 0.786458 0.112 0.893125 0.112H2.04513C2.15179 0.112 2.23713 0.149333 2.30113 0.224C2.37579 0.288 2.41313 0.373333 2.41313 0.48V1.632C2.41313 1.73867 2.37579 1.82933 2.30113 1.904C2.23713 1.968 2.15179 2 2.04513 2H0.893125ZM4.92438 2C4.81771 2 4.72704 1.968 4.65238 1.904C4.58838 1.82933 4.55638 1.73867 4.55638 1.632V0.48C4.55638 0.373333 4.58838 0.288 4.65238 0.224C4.72704 0.149333 4.81771 0.112 4.92438 0.112H6.07638C6.18304 0.112 6.26838 0.149333 6.33238 0.224C6.40704 0.288 6.44438 0.373333 6.44438 0.48V1.632C6.44438 1.73867 6.40704 1.82933 6.33238 1.904C6.26838 1.968 6.18304 2 6.07638 2H4.92438ZM8.95563 2C8.84896 2 8.75829 1.968 8.68363 1.904C8.61963 1.82933 8.58763 1.73867 8.58763 1.632V0.48C8.58763 0.373333 8.61963 0.288 8.68363 0.224C8.75829 0.149333 8.84896 0.112 8.95563 0.112H10.1076C10.2143 0.112 10.2996 0.149333 10.3636 0.224C10.4383 0.288 10.4756 0.373333 10.4756 0.48V1.632C10.4756 1.73867 10.4383 1.82933 10.3636 1.904C10.2996 1.968 10.2143 2 10.1076 2H8.95563Z",fill:a.fill||"black"})}))};function r(){var a=(0,d.Z)(["\n  text-decoration: none;\n  -webkit-tap-highlight-color: transparent;\n  padding: 2px 7px;\n  border-radius: 7px;\n  &:active,\n  &:hover:not(.pagination__link--active) {\n    text-decoration: none;\n    background-color: var(\n      --pagination-link-hover-bg,\n      ","\n    );\n  }\n  &.pagination__link--active {\n    cursor: default;\n  }\n"]);return r=function(){return a},a}function s(){var a=(0,d.Z)(["\n  display: flex;\n  width: 43px;\n  justify-content: center;\n  @media (max-width: ",") {\n    width: 40px;\n  }\n"]);return s=function(){return a},a}function t(){var a=(0,d.Z)(["\n  transform: rotate(-180deg);\n"]);return t=function(){return a},a}function u(){var a=(0,d.Z)(["\n  list-style: none;\n  display: flex;\n  align-items: center;\n  & li {\n    user-select: none;\n  }\n"]);return u=function(){return a},a}var v=(0,m.ZP)(f.A).withConfig({componentId:"sc-6fabb38a-0"})(r(),function(a){return a.theme.colors.brightPalette.grey}),w=(0,m.ZP)(g.Li).withConfig({componentId:"sc-6fabb38a-1"})(s(),function(a){return a.theme.breakpoints[0]}),x=(0,m.ZP)(n.x).withConfig({componentId:"sc-6fabb38a-2"})(t()),y=(0,m.ZP)(h.Ul).withConfig({componentId:"sc-6fabb38a-3"})(u()),z=(0,l.memo)(function(a){var b=a.currentPage,c=void 0===b?1:b,d=a.totalPages,f=a.handleClickNext,g=a.hrefBuilder,h=void 0===g?function(a){var b=window.location.search,c=new URLSearchParams(b);c.set("page",a.toString());var d=c.toString();return d==="page=".concat(a)?"?page=".concat(a):"?".concat(d)}:g,o=a.fillColor,p=void 0===o?i.O.brightPalette.teal_2:o,r=a.buttonBackgroun
1d,s=a.buttonBackgroundHover,t=a.linkClassName,u=a.linkDataName,z=a.linkDataInstrument,A=a.linkDataLayout,B=(0,m.Fg)(),C=(0,l.useMemo)(function(){var a=Array(d).fill(null).map(function(a,b){return b+1}),b=c+2+Math.max(3-c,0),e=a.length-b-1,f=Math.max(c-4,0);return e>0&&f>0&&(b--,f++,e++),e>0&&d>7&&a.splice(b,e,"GAP"),f>0&&d>7&&a.splice(1,f-Math.max(c+2-d,0),"GAP"),a},[c,d]),D=null!=r?r:B.colors.background;return(0,e.jsx)(j.Z,{style:s?{"--pagination-link-hover-bg":s}:void 0,children:(0,e.jsxs)(y,{fontSize:16,children:[1!==c&&(0,e.jsx)(w,{children:(0,e.jsx)(v,{"aria-label":"Open prev page","data-playwright":"pagination-back",className:t,"data-name":u,"data-instrument":z,"data-layout":A,href:h(c-1),backgroundColor:D,onClick:function(a){a.preventDefault(),f(c-1)},children:(0,e.jsx)(n.x,{width:12,height:12,fill:B.colors.brightPalette.black})})}),C.map(function(a,b){return(0,e.jsx)(w,{children:"GAP"===a?(0,e.jsx)(j.Z,{py:"2px",height:"100%",textAlign:"center",width:28,children:(0,e.jsx)(q,{fill:B.colors.deepPalette.black})}):(0,e.jsx)(v,{"aria-label":"Page number ".concat(a),"data-playwright":"pagination-page-".concat(a),width:"max-content",backgroundColor:a===c?B.colors.deepPalette.pagination_background:D,onClick:function(b){b.preventDefault(),null==f||f(a)},href:h(a),display:"flex",className:[a===c?"pagination__link--active":"",t].filter(Boolean).join(" "),"data-name":u,"data-instrument":z,"data-layout":A,children:(0,e.jsx)(k.D,{lineHeight:"24px",color:a===c?p:B.colors.brightPalette.black,children:a})})},"".concat(a,"_").concat(b))}),c!==d&&(0,e.jsx)(w,{children:(0,e.jsx)(v,{"aria-label":"Open next page","data-playwright":"pagination-forward",className:t,"data-name":u,"data-instrument":z,"data-layout":A,href:h(c+1),backgroundColor:D,onClick:function(a){a.preventDefault(),f(c+1)},children:(0,e.jsx)(x,{width:12,height:12,fill:B.colors.brightPalette.black})})})]})})})},75905:function(a,b,c){c.d(b,{L:function(){return aP}});var d,e,f=c(70865),g=c(52322),h=c(98788),i=c(47842),j=c(94776),k=c.n(j),l=c(69248),m=c(38985),n=c(82066),o=function(a){return a?Object.keys(a).reduce(function(b,c){var d,e=function(b,d){return Object.keys(b).map(function(e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E=b[e],F=d[e],G=(null==E?void 0:E.name.length)>20&&null!==(k=E.shortName)&& void 0!==k?k:E.name,H=null!==(l=null==F?void 0:F.low)&& void 0!==l?l:null,I=null!==(m=null==F?void 0:F.high)&& void 0!==m?m:null,J=null!==(n=null==F?void 0:F.change)&& void 0!==n?n:null,K=null!==(p=null!==(o=null==E?void 0:null===(f=E.displayName)|| void 0===f?void 0:null===(g=f.en)|| void 0===g?void 0:g.replace("-","/"))&& void 0!==o?o:null==E?void 0:E.symbol)&& void 0!==p?p:null==E?void 0:E.ticker,L="number"==typeof(null==F?void 0:F.bid)?F.bid:parseFloat(null==F?void 0:F.bid)||null,M="number"==typeof(null==F?void 0:F.ask)?F.ask:parseFloat(null==F?void 0:F.ask)||null;return{name:null!=G?G:"",last:null!==(q=null==F?void 0:F.last)&& void 0!==q?q:null,high:I,low:H,change:null!=J?J:null,percentChange:null!==(r=null==F?void 0:F.percentChange)&& void 0!==r?r:null,bid:L,ask:M,displayName:null!=K?K:"",ticker:(null==E?void 0:E.ticker)||(null==E?void 0:null===(h=E.slug)|| void 0===h?void 0:h.toUpperCase()),slug:E.slug,logoUrl:E.logoUrl||E.logo||null,category:c,countryCode:null!==(s=E.countryCode)&& void 0!==s?s:null,totalVolume:null!==(t=null==F?void 0:F.totalVolume)&& void 0!==t?t:null,percentChange1h:null!==(u=null==F?void 0:F.percentChange1h)&& void 0!==u?u:null,percentChange7d:null!==(v=null==F?void 0:F.percentChange7d)&& void 0!==v?v:null,percentChange30d:null!==(w=null==F?void 0:F.percentChange30d)&& void 0!==w?w:null,percentChangeYtd:null!==(x=null==F?void 0:F.percentChangeYtd)&& void 0!==x?x:null,percentChange1y:null!==(y=null==F?void 0:F.percentChange1y)&& void 0!==y?y:null,marketCapFormatted:null!==(z=null==F?void 0:F.marketCapFormatted)&& void 0!==z?z:null,marketCap:null!==(A=null==F?void 0:F.marketCap)&& void 0!==A?A:null,rates:(null==a?void 0:a.rates)||(null==a?void 0:null===(i=a.crypto)|| void 0===i?void 0:i.rates)||null,pe:null!==(B=null===(j=E.fundamental)|| void 0===j?void 0:j.pe)&& void 0!==B?B:null,currencySymbol:null!==(C=E.currencySymbol)&& void 0!==C?C:null,quoteCurrencySign:null!==(D=E.quoteCurrencySign)&& void 0!==D?D:null,isFutures:!!E.futuresCategory}})};return"entities"===c?b=b.concat(e(a[c],a.prices)):(null===(d=a[c])|| void 0===d?void 0:d.entities)&&(b=b.concat(e(a[c].entities,a[c].prices))),b},[]):[]},p=1/0,q=1/0,r=function(a){var b=a.slugs,c=a.quote,d=void 0===c?"usd":c,e=a.currentCategory;switch(e){case"My Watchlist":case"Popular":return"/markets/tickerlist?slugs=".concat(encodeURIComponent(JSON.stringify(b).toLocaleLowerCase()),"&quote=").concat(d,"&includeSparkLines=false");default:var f=b[e];return"/markets/tickerlist?slugs=".concat(encodeURIComponent(JSON.stringify((0,i.Z)({},e,f)).toLocaleLowerCase()),"&quote=").concat(d,"&includeSparkLines=false")}},s=function(a){return"popular-component-".concat(JSON.stringify(a))},t=function(a){var b=a.locale,c=a.slugs,d=a.quote,e=a.currentCategory,f=r({slugs:c,quote:d,currentCategory:e});return(0,n.useQuery)(s(c),(0,h.Z)(k().mark(function a(){var c,d;return k().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,l.C)({path:f,locale:b});case 2:if(c=a.sent,(0,m.q)(c)){a.next=5;break}return a.abrupt("return");case 5:return d=o(null==c?void 0:c.data),a.abrupt("return",{statusCode:c.statusCode,data:d});case 7:case"end":return a.stop()}},a)})),{cacheTime:p,staleTime:q,refetchOnWindowFocus:!1})},u=function(a,b){if(!a)return b;var c=JSON.parse(JSON.stringify(a));return b["btc-rates"]&&(c["btc-rates"]=(0,f.Z)({},c["btc-rates"],b["btc-rates"])),Object.keys(b).forEach(function(a){c[a]=(0,f.Z)({},c[a],b[a])}),c},v=c(83261),w=c(14317),x=c(28518),y=c(79416),z=c(61115),A=c(6377),B=c(89785),C=c(88499),D=c(39147),E=c(63757),F=c(5632),G=c(2784),H=c(26021),I=c(50930),J=function(a,b){if(!(null==b?void 0:b.length))return a;var c=b.map(function(a){return a.slug});return(0,I.Z)(a).sort(function(a,b){var d;return(a.slug?c.indexOf(a.slug):-1)-(b.slug?c.indexOf(b.slug):-1)})},K=c(27290),L=c(36110),M=c(96670),N=c(92228),O=c(54415);(e=d||(d={})).ALL="All",e.POPULAR="Popular",e.COMMODITIES="Commodities",e.CURRENCIES="Currencies",e.CRYPTO="Crypto",e.INDICES="Indices",e.STOCKS="Stocks",e.FORECASTS="Forecasts",e.NEWS="News",e.ETFS="ETFs",e.WATCHLIST="My Watchlist";var P=c(99118),Q=c(70698),R=c(72706),S=c(79807),T=c(17149),U=c(41197),V=c(73350);function W(){var a=(0,N.Z)(["\n  padding: 8px 10px;\n  border: 1px solid ",";\n  border-radius: 20px;\n  margin-right: 8px;\n  background-color: ",";\n  color: ",";\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 4px;\n\n  &:hover {\n    background-color: ",";\n  }\n"]);return W=function(){return a},a}function X(){var a=(0,N.Z)(["\n  background: ",";\n  border-radius: 4px;\n  display: flex;\n  flex-direction: column;\n  max-width: 350px;\n"]);return X=function(){return a},a}function Y(){var a=(0,N.Z)(["\n  max-height: 480px;\n  min-width: 350px;\n  overflow-y: auto;\n"]);return Y=function(){return a},a}function Z(){var a=(0,N.Z)(["\n  padding: 16px 20px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  cursor: pointer;\n  font-size: 18px;\n  line-height: 20px;\n  font-weight: ",";\n\n  &:hover {\n    background: ",";\n  }\n"]);return Z=function(){return a},a}function $(){var a=(0,N.Z)(["\n  max-width: 120px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n"]);return $=function(){return a},a}var _=(0,H.ZP)(O.z).withConfig({componentId:"sc-88339283-0"})(W(),function(a){return a.theme.colors.brightPalette.grey},function(a){var b=a.isActive,c=a.theme;return b?c.colors.brightPalette.chep_selected_bg:c.colors.brightPalette.chep_unselected_bg},function(a){var b=a.isActive,c=a.theme;return b?c.colors.deepPalette.chep_selected_text:c.colors.brightPalette.grey_3},function(a){var b=a.isActive,c=a.theme;return b?c.colors.brightPalette.chep_selected_hover_bg:c.colors.brightPalette.chep_unselected_hover_bg}),aa=(0,H.ZP)(x.Z).withConfig({componentId:"sc-88339283-1"})(X(),function(a){return a.theme.colors.brightPalette.white}),ab=(0,H.ZP)(x.Z).withConfig({componentId:"sc-88339283-2"})(Y()),ac=(0,H.ZP)(x.Z).withConfig({componentId:"sc-88339283-3"})(Z(),function(a){return a.isSelected?"500":"400"},function(a){return a.theme.colors.brightPalette.grey}),ad=(0,H.ZP)(Q.D).withConfig({componentId:"sc-88339283-4"})($()),ae=function(a){var b,c=a.userUuid,e=a.currentPortfolioId,f=a.onWatchlistChange,h=a.selectedCategory,i=a.onSelectCategory,j=(0,H.Fg)(),k=(0,G.useState)(!1),l=k[0],m=k[1],n=(0,G.useState)(null),o=n[0],p=n[1],q=(0,v.U_)({uuid:c}),r=q.data,s=q.isLoading,t=(0,D._)(r)?[]:(null==r?void 0:null===(b=r.data)|| void 0===b?void 0:b.portfolio)||[],u=t.find(function(a){return a.portfolio_id===e}),w=t.length>1,y=h===d.WATCHLIST,z=function(){y?w&&m(!l):i(d.WATCHLIST)},A=function(a){f(a),m(!1)},B=function(){m(!1)},C=(0,R.w)();return s||0===t.length?null:(0,g.jsx)(P.Z,{onClickAway:B,children:(0,g.jsxs)(x.Z,{children:[(0,g.jsxs)(_,{isActive:y,hasMultipleWatchlists:w,onClick:z,ref:p,"aria-label":w?"Select watchlist":"Watchlist","data-playwright":"across-market-tab-watchlist",children:[(0,g.jsx)(S.r,{fill:"none",width:13,height:12,stroke:y?j.colors.brightPalette.white:j.colors.brightPalette.grey_3}),(0,g.jsx)(ad,{children:function(){if(w&&u){var a=u.name;return a.length>16?"".concat(a.substring(0,16),"..."):a}return C({id:"Home:Watchlist"})}()}),w&&(0,g.jsx)(T._,{fill:y?j.colors.deepPalette.chep_selected_text:j.colors.brightPalette.grey_3,width:10,height:6,style:{transform:l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}
1),o&&l&&w&&(0,g.jsx)(V.u,{open:!0,anchorEl:o,show:l,width:350,forceDesktop:!0,customStyles:{boxShadow:"1px 1px 9px 1px rgba(0, 0, 0, 0.25)"},children:(0,g.jsx)(aa,{children:(0,g.jsx)(ab,{children:t.map(function(a){return(0,g.jsxs)(ac,{isSelected:a.portfolio_id===e,onClick:function(){return A(a.portfolio_id)},children:[(0,g.jsx)(x.Z,{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:"0",children:(0,g.jsx)(Q.D,{flex:1,minWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:["16px","18px"],children:a.name})}),a.portfolio_id===e&&(0,g.jsx)(U.J,{width:16,height:16,fill:j.colors.deepPalette.teal_2})]},a.portfolio_id)})})})})]})})};function af(){var a=(0,N.Z)(["\n  display: flex;\n  list-style: none;\n  overflow: scroll;\n  white-space: nowrap;\n  scroll-behavior: smooth;\n  -webkit-overflow-scrolling: touch;\n\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  -ms-overflow-style: none;\n  scrollbar-width: none;\n"]);return af=function(){return a},a}function ag(){var a=(0,N.Z)(["\n  padding: 8px 10px;\n  border: 1px solid ",";\n  border-radius: 20px;\n  margin-right: 8px;\n  flex-shrink: 0;\n  white-space: nowrap;\n  background-color: ",";\n  color: ",";\n  &:hover {\n    background-color: ",";\n  }\n  &:last-child {\n    margin-right: 0;\n  }\n"]);return ag=function(){return a},a}var ah=(0,H.ZP)(x.Z).withConfig({componentId:"sc-a0819d00-0"})(af()),ai=(0,H.ZP)(O.z).withConfig({componentId:"sc-a0819d00-1"})(ag(),function(a){return a.theme.colors.brightPalette.grey},function(a){var b=a.isActive,c=a.theme;return b?c.colors.brightPalette.chep_selected_bg:c.colors.brightPalette.chep_unselected_bg},function(a){var b=a.isActive,c=a.theme;return b?c.colors.deepPalette.chep_selected_text:c.colors.deepPalette.chep_unselected_text},function(a){var b=a.isActive,c=a.theme;return b?c.colors.brightPalette.chep_selected_hover_bg:c.colors.brightPalette.chep_unselected_hover_bg}),aj=function(a){var b=a.tabs,c=a.selectedTab,e=a.onSelectTab,h=a.tabsStyle,i=a.userUuid,j=a.currentPortfolioId,k=a.onWatchlistChange,l=(0,G.useRef)(null),m=function(a){if(l.current){var b=l.current,c=b.children[a];if(!c){console.warn("Tab element at index ".concat(a," not found"));return}try{var d=c.offsetLeft,e=c.offsetWidth,f=b.offsetWidth;if("number"!=typeof d||"number"!=typeof e||"number"!=typeof f){console.warn("Invalid dimensions detected while trying to scroll");return}var g=d-f/2+e/2;b.scrollTo({left:g,behavior:"smooth"})}catch(h){console.warn("Error while trying to scroll to tab:",h)}}},n=function(a,b){e(a),m(b)};return(0,G.useEffect)(function(){if(c===d.WATCHLIST){var a=b.findIndex(function(a){return a.id===d.WATCHLIST});-1!==a&&m(a)}},[c,b]),(0,g.jsx)(x.Z,{width:"100%",overflow:"visible",position:"relative",children:(0,g.jsx)(ah,(0,M.Z)((0,f.Z)({ref:l,noScrollBars:!0,fontSize:14},h),{children:b.map(function(a,b){var e,f;return a.id===d.WATCHLIST&&i&& void 0!==j&&k?(0,g.jsx)(ae,{userUuid:i,currentPortfolioId:j,onWatchlistChange:k,selectedCategory:c,onSelectCategory:function(a){return n(a,b)}},a.id):(0,g.jsx)(ai,{isActive:c===a.id,onClick:function(){return n(a.id,b)},className:"trackable","data-name":"across the market - type chip - ".concat(null===(e=a.id)|| void 0===e?void 0:e.toLowerCase()),"data-playwright":"across-market-tab-".concat(null===(f=a.id)|| void 0===f?void 0:f.toLowerCase()),children:a.label},a.id)})}))})},ak=c(70984),al=c(17975),am=c(5443),an={Popular:[{name:"Natural Gas",slug:"natural-gas",category:"Commodities"},{name:"Gold",slug:"gold",category:"Commodities"},{name:"Bitcoin",slug:"bitcoin",category:"Crypto"},{name:"WTI Oil",slug:"wti-crude-oil",category:"Commodities"},{name:"EUR/USD",slug:"eur-usd",category:"Currencies"},{name:"GBP/USD",slug:"gbp-usd",category:"Currencies"},{name:"S&P 500",slug:"spx",category:"Indices"}],Currencies:[{name:"EUR/USD",slug:"eur-usd",category:"Currencies"},{name:"USD/JPY",slug:"usd-jpy",category:"Currencies"},{name:"GBP/USD",slug:"gbp-usd",category:"Currencies"},{name:"USD/CHF",slug:"usd-chf",category:"Currencies"},{name:"USD/CAD",slug:"usd-cad",category:"Currencies"}
1,{name:"AUD/USD",slug:"aud-usd",category:"Currencies"},{name:"NZD/USD",slug:"nzd-usd",category:"Currencies"}],Commodities:[{name:"Natural Gas",slug:"natural-gas",category:"Commodities"},{name:"WTI Oil",slug:"wti-crude-oil",category:"Commodities"},{name:"Brent Oil",slug:"brent-crude-oil",category:"Commodities"},{name:"Gold",slug:"gold",category:"Commodities"},{name:"Silver",slug:"silver",category:"Commodities"},{name:"Platinum",slug:"platinum",category:"Commodities"},{name:"Palladium",slug:"palladium",category:"Commodities"}],Indices:[{name:"S&P 500",slug:"spx",category:"Indices"},{name:"US Tech 100",slug:"tech100-usd",category:"Indices"},{name:"US Wall St 30",slug:"us30-usd",category:"Indices"},{name:"UK 100",slug:"uk100-gbp",category:"Indices"},{name:"Germany 30",slug:"de30-eur",category:"Indices"},{name:"Japan 225",slug:"jp225-usd",category:"Indices"},{name:"France 40",slug:"fr40-eur",category:"Indices"}],Stocks:[{name:"Apple Inc",slug:"aapl",category:"Stocks"},{name:"Microsoft Corporation",slug:"msft",category:"Stocks"},{name:"Alphabet Inc - Class C",slug:"goog",category:"Stocks"},{name:"Amazon.com. Spend less. Smile more. Inc.",slug:"amzn",category:"Stocks"},{name:"Meta Platforms Inc - Class A",slug:"meta",category:"Stocks"},{name:"NVIDIA Corp",slug:"nvda",category:"Stocks"},{name:"Tesla Inc",slug:"tsla",category:"Stocks"}],ETFs:[{name:"SPDR S&P 500 ETF Trust",slug:"spy",category:"ETFs"},{name:"iShares Core S&P 500 ETF",slug:"ivv",category:"ETFs"},{name:"Vanguard Total Stock Market ETF",slug:"vti",category:"ETFs"},{name:"Invesco QQQ Trust Series 1",slug:"qqq",category:"ETFs"},{name:"iShares Core MSCI Emerging Markets ETF",slug:"iemg",category:"ETFs"},{name:"Vanguard Value ETF",slug:"vtv",category:"ETFs"},{name:"SPDR Gold Shares ETF",slug:"gld",category:"ETFs"}],Crypto:[{name:"Bitcoin",slug:"bitcoin",category:"Crypto"},{name:"Ethereum",slug:"ethereum",category:"Crypto"},{name:"Solana",slug:"solana",category:"Crypto"},{name:"BNB",slug:"binancecoin",category:"Crypto"},{name:"XRP",slug:"ripple",category:"Crypto"},{name:"Dogecoin",slug:"dogecoin",category:"Crypto"},{name:"Cardano",slug:"cardano",category:"Crypto"}]},ao={commodities:"Commodities",currencies:"Currencies",currencypairs:"Currencies",indices:"Indices",crypto:"Crypto",cryptocurrencies:"Crypto",forex:"Currencies",stocks:"Stocks",etfs:"ETFs"},ap=function(a){var b={Currencies:[],Commodities:[],Indices:[],Stocks:[],ETFs:[],Crypto:[]};return null==a||a.forEach(function(a){var c=a.category;if(!c&&a.type){var d=ao[a.type.toLowerCase()];d&&(c=d)}c&&Object.keys(b).includes(c)&&b[c].push(a.slug)}),b},aq=c(86538),ar=function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:"en";return[{id:"MyWatchlist",path:"/my-empire/watchlist",icon:"user_area_star"},{id:"Following",path:"/my-empire/followed-authors",fullSiteGroup:!0,icon:"user_area_followed"}].concat((0,I.Z)((0,aq.TF)(a)?[{id:"MyPrimex",path:"/my-empire/my-primex",icon:"primex"}]:[]),[{id:"Settings",path:"/my-empire/settings",icon:"user_area_settings"}])},as=c(87394),at=c(30594),au=c(88839);function av(){var a=(0,N.Z)(["\n  &:hover {\n    background-color: ",";\n  }\n"]);return av=function(){return a},a}var aw=(0,H.ZP)(at.Li).withConfig({componentId:"sc-95412965-0"})(av(),function(a){return a.theme.colors.brightPalette.grey}),ax=function(a){var b=a.selectedCategory,c=a.category,d=a.onDropdownItemClick,e=(0,H.Fg)().colors,f=b===c,h=c.toLowerCase().replace(/\s+/g,"-");return(0,g.jsxs)(aw,{py:"8px",px:"16px",position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",onClick:function(){d(c)},"data-playwright":"currencies-category-option-".concat(h),children:[(0,g.jsx)(Q.D,{fontWeight:f?500:400,children:c}),f&&(0,g.jsx)(x.Z,{display:"flex",justifyContent:"center",alignItems:"center",children:(0,g.jsx)(au.Y,{fill:e.deepPalette.black})})]})},ay=function(a){var b=a.instruments,c=a.selectedCategory,d=a.setSelectedCategory,e=a["data-playwright"],f=(0,G.useState)(!1),h=f[0],i=f[1],j=(0,as.Z)(G.useState(null),2),k=j[0],l=j[1],m=(0,H.Fg)().colors,n=(0,G.useCallback)(function(){i(function(a){return!a})},[]),o=(0,G.useCallback)(function(){i(!0)},[]),p=(0,G.useCallback)(function(){i(!1)},[]),q=(0,G.useCallback)(function(a){d(a),p()},[d,p]),r=Boolean(k),s=(null==k?void 0:k.getBoundingClientRect().width)||0;return(0,g.jsx)(P.Z,{onClickAway:p,children:(0,g.jsxs)(x.Z,{"data-playwright":e,children:[(0,g.jsxs)(O.z,{display:"flex",alignItems:"center",gap:8,py:6.5,fontSize:16,lineHeight:"18px",fontWeight:500,textAlign:"start",onClick:n,ref:l,onKeyDown:function(a){"ArrowDown"!==a.code||r||o()},"aria-label":"Select Category","data-cy":"select-category-button","data-
1playwright":"currencies-category-dropdown-button",children:[c?(0,g.jsx)(Q.D,{children:c}):(0,g.jsx)(Q.D,{color:m.brightPalette.grey_2,children:"Select Category"}),(0,g.jsx)(x.Z,{display:"flex",justifyContent:"center",alignItems:"center",right:0,top:9,transform:"rotate(".concat(h?-180:0,"deg)"),transition:"transform 200ms",children:(0,g.jsx)(T._,{fill:m.deepPalette.teal_2,width:16,height:9})})]}),k&&(0,g.jsx)(V.u,{open:!0,anchorEl:k,show:h,width:s,customStyles:{boxShadow:"1px 1px 9px 1px ".concat(m.deepPalette.shadow_3),minWidth:"160px"},children:(0,g.jsx)(y.Ul,{listStyle:"none","data-playwright":"currencies-category-dropdown-list",children:Object.keys(b).map(function(a){return(0,g.jsx)(ax,{selectedCategory:c,onDropdownItemClick:q,category:a},a)})})})]})})},az=c(56646),aA=c(11070),aB=c(36061),aC=c(99766),aD=c(90216),aE=function(a){var b=a.wrapperStyles,c=a.spanProps,d=a.indicatorProps,e=a.tooltipContainerProps,h=(0,R.w)(),i=(0,f.Z)({element:"span",width:"fit-content",maxWidth:"calc(100vw - 32px)",whiteSpace:"normal",style:{overflowWrap:"anywhere"}},e),j=function(a){a.stopPropagation()},k=function(a){a.preventDefault(),a.stopPropagation()},l=(0,g.jsx)(Q.D,(0,M.Z)((0,f.Z)({color:aC.O.brightPalette.orange,fontSize:"10px",ml:"2px"},null!=d?d:c),{children:"D"}));return(0,g.jsx)(aD.j,{tooltipContent:h({id:"Futures.DelayedTooltip"}),placement:"top",tooltipType:"line",disableStyleInjection:!0,wrapperStyles:b,tooltipContainerProps:i,children:d?(0,g.jsx)(Q.D,(0,M.Z)((0,f.Z)({display:"inline-flex",alignItems:"center",onPointerDownCapture:j,onMouseDownCapture:j,onClickCapture:k,onTouchEndCapture:k},c),{children:l})):l})},aF=c(69778);function aG(){var a=(0,N.Z)(["\n  overflow: hidden;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n"]);return aG=function(){return a},a}var aH={position:"relative",top:"-5px"},aI=function(a){var b,c=a.data,d=a.currentCategory,e=a.isHomepage,f=c.name,h=c.percentChange,i=c.last,j=c.displayName,k=(0,H.Fg)().colors;return(0,g.jsx)(at.Li,{display:"flex",flexDirection:"column",alignItems:"center",width:"100%","data-playwright":"currency-instrument-item",children:(0,g.jsx)(K.r,{external:!0,href:"/".concat(null!==(b=c.category)&& void 0!==b?b:null==d?void 0:d.toLowerCase(),"/").concat(c.slug),passHref:!0,width:"100%","data-playwright":"currency-instrument-link",children:(0,g.jsxs)(x.Z,{display:"flex",flexDirection:"row",alignItems:"start",width:"100%",children:[(0,g.jsxs)(x.Z,{display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"space-between",width:"100%",gap:4,children:[(0,g.jsx)(aJ,{fontSize:e?"16px":"14px",fontWeight:"400",lineHeight:"16px",margin:0,width:"168px","data-playwright":"currency-name",children:f}),(0,g.jsx)(z.P,{fontSize:e?"14px":"12px",fontWeight:"400",lineHeight:"14px",color:k.brightPalette.grey_3,margin:0,"data-playwright":"currency-display-name",children:j})]}),(0,g.jsxs)(x.Z,{display:"flex",flexDirection:"column",alignItems:"end",width:"100%",gap:4,children:[(0,g.jsxs)(z.P,{fontSize:"14px",fontWeight:"400",lineHeight:"16px",margin:0,"data-playwright":"currency-price",display:"flex",alignItems:"center",children:["".concat((0,az.j)({item:c,locale:"en"})||(null==c?void 0:c.currencySymbol)||(null==c?void 0:c.quoteSymbol)||(null==c?void 0:c.quoteCurrencySign)).concat((0,aA.V)({value:i,instrumentType:aB.yI.CRYPTO})),c.isFutures&&(0,g.jsx)(aE,{indicatorProps:aH})]}),(0,g.jsx)(aF.j,{percentChange:h,customStyles:{padding:"3px 6px",height:"auto",fontSize:"14px",lineHeight:"18px"},datacy:"currency-percent-change"})]})]})})})},aJ=(0,H.ZP)(z.P).withConfig({componentId:"sc-4fb95696-0"})(aG()),aK=c(93836),aL=c(16302),aM=c(8637),aN=function(a){var b=a.instrumentsData,c=a.queryKey,d=a.subscriptionsList;(0,aM.t)({queryKey:c,slugs:d,cacheMutationFunction:u});var e=(0,n.useQuery)(c,{enabled:!1}).data;return{convertedInstrumentsToUsd:(0,G.useMemo)(function(){if(!Array.isArray(b))return[];var a=[];return b.forEach(function(b){if(b.category&&b.slug){var c=null==e?void 0:e["".concat(aL.T9[(0,aB.l9)(b.category)],"-").concat(b.slug)];if("crypto"===b.category){var d,g,h=(null==e?void 0:null===(d=e["btc-rates"])|| void 0===d?void 0:d.usd)||(null===(g=b.rates)|| void 0===g?void 0:g.usd);if(!h||!b.slug)return;var j=(0,aK.lK)({cryptoData:{prices:(0,i.Z)({},b.slug,(0,f.Z)({},b,c))},quote:h,slug:b.slug});a.push((0,f.Z)({},b,j));return}a.push((0,f.Z)({},b,c))}}),a},[b,e]),subscriptionsList:d,instrumentsUpdates:e}}
1,aO=function(a){if(!(null==a?void 0:a.length))return[];var b=[];return a.forEach(function(a){var c,d=null===(c=a.category||a.type)|| void 0===c?void 0:c.toLowerCase();d&&b.push("".concat(aL.T9[(0,aB.l9)(d)],"-").concat(a.slug))}),b},aP=function(a){var b,c,d,e=a.tabs,h=a.category,i=a.initialCategory,j=(0,n.useQueryClient)(),k=(0,F.useRouter)(),l=(0,H.Fg)(),m=k.query.view,o=(0,G.useState)(null!==(b=null!=i?i:h)&& void 0!==b?b:"Popular"),p=o[0],q=o[1],r=(0,G.useRef)(!1),u=(0,G.useRef)(!1),I=(0,G.useState)(function(){var a=localStorage.getItem("popularComponent.selectedPortfolioId");return a?parseInt(a,10):0}),M=I[0],N=I[1],O=(0,al.a)().user,P=(0,H.Fg)().colors,Q=!!e;(0,G.useEffect)(function(){i&&Q&&q(i)},[i,Q]);var R=(0,v.U_)({uuid:(null==O?void 0:O.user_uuid)||""}),S=R.data,T=R.isLoading,U=(0,w.oI)({uuid:null==O?void 0:O.user_uuid,portfolioId:M}),V=U.data,W=U.isLoading;(0,G.useEffect)(function(){var a,b;if(!(0,D._)(S)&&(null==S?void 0:null===(a=S.data)|| void 0===a?void 0:null===(b=a.portfolio)|| void 0===b?void 0:b.length)){var c=S.data.portfolio;if(m&&"string"==typeof m){var d=c.find(function(a){return a.name===decodeURIComponent(m)});if(d&&d.portfolio_id!==M){var e=d.portfolio_id;N(e),localStorage.setItem("popularComponent.selectedPortfolioId",e.toString());return}}if(0===M){var f,g,h,i=null!==(h=null===(f=c.find(function(a){var b;return(null===(b=a.lots)|| void 0===b?void 0:b.length)>0}))|| void 0===f?void 0:f.portfolio_id)&& void 0!==h?h:null==c?void 0:null===(g=c[0])|| void 0===g?void 0:g.portfolio_id;i&&(N(i),localStorage.setItem("popularComponent.selectedPortfolioId",i.toString()))}else if(!c.some(function(a){return a.portfolio_id===M})){var j,k,l,n=null!==(l=null===(j=c.find(function(a){var b;return(null===(b=a.lots)|| void 0===b?void 0:b.length)>0}))|| void 0===j?void 0:j.portfolio_id)&& void 0!==l?l:null==c?void 0:null===(k=c[0])|| void 0===k?void 0:k.portfolio_id;n&&(N(n),localStorage.setItem("popularComponent.selectedPortfolioId",n.toString()))}}},[S,M,m]);var X=(0,G.useMemo)(function(){var a,b,c;return!(0,D._)(V)&&(null==V?void 0:null===(a=V.data)|| void 0===a?void 0:null===(b=a.portfolio)|| void 0===b?void 0:null===(c=b[0])|| void 0===c?void 0:c.lots)?V.data.portfolio[0].lots.map(function(a){return{lot_id:a.lot_id,position:a.position,instrument:a.instrument}}):[]},[V]),Y=(0,G.useMemo)(function(){var a;return null===(a=null==X?void 0:X.sort(function(a,b){return a.position-b.position}))|| void 0===a?void 0:a.map(function(a){return a.instrument})},[X]),Z=(0,G.useMemo)(function(){var a,b;return!(!O||(0,D._)(S))&&!!(null==S?void 0:null===(a=S.data)|| void 0===a?void 0:null===(b=a.portfolio)|| void 0===b?void 0:b.some(function(a){var b;return!!(null===(b=a.lots)|| void 0===b?void 0:b.length)}))},[O,S]),$=(0,G.useMemo)(function(){return O?(0,f.Z)({"My Watchlist":Y},an):an},[O,Y]),_=p,aa="string"==typeof k.query.slug?k.query.slug:void 0,ab="string"==typeof k.query.instrument?k.query.instrument:void 0,ac=(0,G.useMemo)(function(){return $[_]},[$,_]),ad=(0,G.useMemo)(function(){return ap(ac)},[ac]),ae=ab&&Object.values(ad).some(function(a){return a.includes(ab)})?ab:void 0,af=null!=aa?aa:ae,ag=t({currentCategory:_,slugs:ad,locale:"en",quote:"usd"}),ah=ag.data,ai=ag.isLoading;(0,G.useEffect)(function(){j.invalidateQueries({queryKey:s(ad)})},[j,p,ad]);var ao=(0,G.useMemo)(function(){return aO(null!==(c=null==ah?void 0:ah.data)&& void 0!==c?c:[])},[ah]),aq=aN({instrumentsData:null!==(d=null==ah?void 0:ah.data)&& void 0!==d?d:[],subscriptionsList:ao,queryKey:"popular-component-ws"}).convertedInstrumentsToUsd,as=(0,G.useMemo)(function(){if(!aq||!Array.isArray(aq))return null;var a=aq.filter(function(a){return!!a});return"My Watchlist"===_?(null==Y?void 0:Y.length)&&(a=J(a,Y)):af&&(a=a.filter(function(a){return a.slug!==af})),a.slice(0,6)},[aq,_,af,Y]);(0,G.useEffect)(function(){if(!Q&&!u.current&&(!O|| !T&& void 0!==S)){var a=null!=h?h:"Popular",b=O&&Z?"My Watchlist":a;r.current&&p!==a&&"My Watchlist"!==p||(q(function(a){return a===b?a:b}),r.current=!0)}},[h,Z,Q,T,p,O,S]);var at=(0,B.X)(815165425).fields,au=function(a){N(a),0!==a&&localStorage.setItem("popularComponent.selectedPortfolioId",a.toString())},av=function(a){u.current=!0,q(a)},aw=function(a){q(a)},ax=(0,G.useMemo)(function(){var a,b,c;if(!(0,D._)(S)&&(null==S?void 0:null===(a=S.data)|| void 0===a?void 0:a.portfolio)&&M){var d=S.data.portfolio.find(function(a){return a.portfolio_id===M});if(d)return"/my-empire/watchlist?view=".concat(encodeURIComponent(d.name))}return null===(b=ar(k.locale||"en"))|| void 0===b?void 0:null===(c=b[0])|| void 0===c?void 0:c.path},[S,M,k.locale]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(x.Z,{width:"100%",minHeight:"526px",border:Q?"":"1px solid ".concat(P.deepPalette.border_1),padding:Q?0:16,marginBottom:16,noScrollBars:!0,borderRadius:"3.663px","data-
1playwright":"currencies-popular-component",children:[Q?(0,g.jsx)(aj,{tabs:e||[],selectedTab:p,onSelectTab:aw,userUuid:null==O?void 0:O.user_uuid,currentPortfolioId:M,onWatchlistChange:au}):(0,g.jsxs)(x.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,g.jsx)(ay,{instruments:$,setSelectedCategory:av,selectedCategory:p,"data-playwright":"currencies-category-dropdown"}),"My Watchlist"===p&&(0,g.jsx)(K.r,{external:!0,href:ax,children:(0,g.jsx)("img",{src:(0,C.K)("watchlist_details.svg"),alt:"watchlist-icon"})})]}),(0,g.jsx)(am.f,{my:16,borderTop:"1px solid ".concat(P.deepPalette.border_1)}),ai||W?(0,g.jsx)(x.Z,{width:"100%",height:Q?"446px":"100%",display:"flex",alignItems:"center",justifyContent:"center",children:(0,g.jsx)(ak.a,{})}):(null==ac?void 0:ac.length)?(0,g.jsx)(y.Ul,{listStyle:"none","data-playwright":"currencies-instruments-list",children:null==as?void 0:as.map(function(a,b){return(0,g.jsxs)(G.Fragment,{children:[(0,g.jsx)(aI,{data:a,currentCategory:_,isHomepage:Q}),(0,g.jsx)(am.f,{my:16,borderTop:b!==as.length-1||Q?"1px solid ".concat(l.colors.brightPalette.grey):"none"})]},a.slug)})}):"My Watchlist"===p&&(0,g.jsx)(x.Z,{height:"100%",width:"100%",paddingTop:"156px",children:(0,g.jsx)(z.P,{fontSize:"14px",lineHeight:"20px",fontWeight:500,width:"100%",textAlign:"center",children:(0,g.jsx)(A._,{id:"PopularComponentEmptyState"})})})]}),!!at&&(0,g.jsx)(L.rj,{fields:(0,E.G)(at),title:"StartTrading",hideSmallLogo:!0}
1)]})}},52641:function(a,b,c){c.d(b,{q:function(){return l}});var d=c(52322),e=c(28518),f=c(70698),g=c(6377),h=c(98861),i=c(26021),j=c(90216),k=c(8831),l=function(){var a=(0,i.Fg)().colors;return(0,d.jsx)(e.Z,{width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",mb:"8px",children:(0,d.jsx)(j.j,{customZIndex:h.K.AdTooltip,tooltipContent:(0,d.jsx)(g._,{id:"TooltipText"}),persistInDOM:!0,children:(0,d.jsxs)(e.Z,{display:"flex",alignItems:"center",children:[(0,d.jsx)(f.D,{display:"inline-block",mr:"3px",fontSize:11,color:a.brightPalette.grey_3,children:(0,d.jsx)(g._,{id:"Sponsored"})}),(0,d.jsx)(k.s,{fill:a.brightPalette.grey_3})]})})})}},69778:function(a,b,c){c.d(b,{F:function(){return l},j:function(){return m}});var d=c(70865),e=c(96670),f=c(52322),g=c(28518),h=c(36061),i=c(43250),j=c(2784),k=c(26021),l=function(a,b,c,e,f){var g,i,j="string"==typeof a?parseFloat(a.replace("%","")):null!=a?a:0,k=(g=f,i=j,g===h.yI.CRYPTO?!i||0===i:.02>=Math.abs(Number(i.toFixed(2)))),l=(null==c?void 0:c.type)==="dark",m="rgba(32, 33, 36, 1)",n={background:{neutral:c.colors.brightPalette.grey_1,negative:c.colors.brightPalette.negative_percent_change_background,positive:c.colors.brightPalette.positive_percent_change_background},percent:{neutral:c.colors.brightPalette.percent_change_color,negative:l?m:c.colors.brightPalette.negative_percent_change_color,positive:l?m:c.colors.brightPalette.positive_percent_change_color},chart:{neutral:"NEUTRAL",negative:"NEGATIVE",positive:"POSITIVE"},price:{neutral:c.colors.brightPalette.percent_change_color,negative:"dark"===c.type?c.colors.deepPalette.red:c.colors.brightPalette.red,positive:"dark"===c.type?c.colors.deepPalette.green:c.colors.brightPalette.green}};return({background:(0,d.Z)({},n.background,null==e?void 0:e.background),percent:(0,d.Z)({},n.percent,null==e?void 0:e.percent),chart:(0,d.Z)({},n.chart,null==e?void 0:e.chart),price:(0,d.Z)({},n.price,null==e?void 0:e.price)})[b][k?"neutral":!k&&j<0?"negative":"positive"]},m=(0,j.memo)(function(a){var b=a.percentChange,c=a.customStyles,h=a.datacy,j=a.customColors,m=(0,i.se)(b),n=(0,k.Fg)();return(0,f.jsx)(g.Z,(0,e.Z)((0,d.Z)({borderRadius:"4px",display:"flex",alignItems:"center",color:"dark"===n.type?n.colors.brightPalette.percent_change_block_text:l(m,"percent",n,j),backgroundColor:l(b,"background",n,j),height:26,px:"6px",width:"max-content",fontFamily:"Rubik",fontSize:16},i.No,c,(0,i.WN)(b)),{"data-playwright":h,children:m}))})},63757:function(a,b,c){c.d(b,{G:function(){return d}});var d=function(a){return a?Array.isArray(a)?a:[a]:[]}},56646:function(a,b,c){c.d(b,{j:function(){return d}});var d=function(a){var b,c,d=a.item,e=a.locale,f="USD",g=d.slug,h=d.vendor,i=d.category;("indices"===i&&"Oanda"===h||"currencies"===i)&&"string"==typeof g&&(f=g.slice(-3).toUpperCase());var j=(b=void 0===e?"en":e,c=f,0..toLocaleString(b,{style:"currency",currency:c,minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim());return j}},46727:function(a,b,c){c.d(b,{r:function(){return f}});var d=c(2784),e=c(50930),f=function(a){var b=a.isOpen,c=a.close,f=(0,d.useRef)(null),g=(0,d.useRef)(null);return(0,d.useEffect)(function(){if(!(!f.current||!b||__IS_MOBILE__)){var a=function(a){if(["ArrowDown","ArrowUp"].includes(a.code)&&f.current){a.preventDefault();var b,d=(b=f.current,(0,e.Z)(b.querySelectorAll('a[href]:not(a[tabindex="-1"]), button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')).filter(function(a){return!a.hasAttribute("disabled")&&!a.getAttribute("aria-hidden")}));if(null==d?void 0:d.length){var h=document.activeElement;if(h&&d.includes(h)){var i=d.indexOf(h);if(0===i&&g.current&&"ArrowUp"===a.code)g.current.focus();else if(-1!==i){var j=d[i+("ArrowDown"===a.code?1:-1)];j&&j.focus()}}else"ArrowDown"===a.code&&d[0].focus()}}else"Escape"===a.code?c():/^[a-z0-9]$/i.test(a.key)&&g.current&&g.current.focus()};return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}}
1,[b,c]),{ulListRef:f,inputRef:g}}},2090:function(a,b,c){c.d(b,{R:function(){return e}});var d=c(2784),e=function(a,b){var c=(0,d.useRef)(null);return(0,d.useEffect)(function(){if(a&&c.current){var d=function(a){!(!c.current||c.current.contains(a.target))&&b()};return document.addEventListener("mousedown",d),document.addEventListener("focus",d,!0),function(){document.removeEventListener("mousedown",d),document.removeEventListener("focus",d)}}},[c,a,b]),c}}}])

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.