PageSourceSearch

https://webtrader.cmsprime.com/web/assets/js/4496.chunk.3da1901d.js

js cmsprime.com collected 2026-10-01 16:31:59 UTC 63,224 bytes, 1 lines download raw bytes

1(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["4496"],{31530:function(e,t,n){"use strict";var r=n(28710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},83658:function(e,t,n){"use strict";var r=n(19781),i=n(43157),o=TypeError,l=Object.getOwnPropertyDescriptor;e.exports=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!l(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},10647:function(e,t,n){var r=n(1702),i=n(47908),o=Math.floor,l=r("".charAt),c=r("".replace),a=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var p=n+e.length,m=r.length,h=u;return void 0!==d&&(d=i(d),h=s),c(f,h,function(i,c){var s;switch(l(c,0)){case"$":return"$";case"&":return e;case"`":return a(t,0,n);case"'":return a(t,p);case"<":s=d[a(c,1,-1)];break;default:var u=+c;if(0===u)return i;if(u>m){var f=o(u/10);if(0===f)return i;if(f<=m)return void 0===r[f-1]?l(c,1):r[f-1]+l(c,1);return i}s=r[u-1]}return void 0===s?"":s})}},64310:function(e){e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},44699:function(e,t,n){var r=n(19781),i=n(1702),o=n(81956),l=n(45656),c=i(n(55296).f),a=i([].push),s=function(e){return function(t){for(var n,i=l(t),s=o(i),u=s.length,d=0,f=[];u>d;)n=s[d++],(!r||c(i,n))&&a(f,e?[n,i[n]]:i[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},40561:function(e,t,n){"use strict";var r=n(82109),i=n(47908),o=n(51400),l=n(19303),c=n(26244),a=n(83658),s=n(7207),u=n(65417),d=n(86135),f=n(85117),p=n(81194)("splice"),m=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,y,b,g,x=i(this),S=c(x),v=o(e,S),P=arguments.length;for(0===P?n=r=0:1===P?(n=0,r=S-v):(n=P-2,r=h(m(l(t),0),S-v)),s(S+n-r),p=u(x,r),y=0;y<r;y++)(b=v+y)in x&&d(p,y,x[b]);if(p.length=r,n<r){for(y=v;y<S-r;y++)b=y+r,g=y+n,b in x?x[g]=x[b]:f(x,g);for(y=S;y>S-r+n;y--)f(x,y-1)}else if(n>r)for(y=S-r;y>v;y--)b=y+r-1,g=y+n-1,b in x?x[g]=x[b]:f(x,g);for(y=0;y<n;y++)x[y+v]=arguments[y+2];return a(x,S-r+n),p}})},52420:function(e,t,n){n(82109)({target:"Math",stat:!0},{sign:n(64310)})},15306:function(e,t,n){"use strict";var r=n(22104),i=n(46916),o=n(1702),l=n(27007),c=n(47293),a=n(19670),s=n(60614),u=n(68554),d=n(19303),f=n(17466),p=n(41340),m=n(84488),h=n(31530),y=n(58173),b=n(10647),g=n(97651),x=n(5112)("replace"),S=Math.max,v=Math.min,P=o([].concat),O=o([].push),T=o("".indexOf),C=o("".slice),j="$0"==="a".replace(/./,"$0"),I=!!/./[x]&&""===/./[x]("a","$0");l("replace",function(e,t,n){var o=I?"$":"$0";return[function(e,n){var r=m(this),o=u(e)?void 0:y(e,x);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var l=a(this),c=p(e);if("string"==typeof i&&-1===T(i,o)&&-1===T(i,"$<")){var u=n(t,l,c,i);if(u.done)return u.value}var m=s(i);m||(i=p(i));var y=l.global;if(y){var x=l.unicode;l.lastIndex=0}for(var j=[];;){var I=g(l,c);if(null===I||(O(j,I),!y))break;""===p(I[0])&&(l.lastIndex=h(c,f(l.lastIndex),x))}for(var w="",L=0,k=0;k<j.length;k++){for(var E,R=p((I=j[k])[0]),A=S(v(d(I.index),c.length),0),_=[],M=1;M<I.length;M++)O(_,void 0===(E=I[M])?E:String(E));var Z=I.groups;if(m){var K=P([R],_,A,c);void 0!==Z&&O(K,Z);var G=p(r(i,void 0,K))}else G=b(R,c,A,_,Z,i);A>=L&&(w+=C(c,L,A)+G,L=A+R.length)}return w+C(c,L)}]},!!c(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!j||I)},694:function(e,t,n){"use strict";n.d(t,{e:()=>l});var r=n(32735),i=n(66698),o=function(e){var t=e.openPrice,n=e.currentPrice,r=new i.BigNumber(n).minus(t).toNumber(),o=new i.BigNumber(r).div(t).times(100).toNumber();return{priceGained:new i.BigNumber(r).isGreaterThan(0)&&new i.BigNumber(o).isGreaterThan(0),priceDifference:r,percentageDifference:o}},l=function(e){var t=e.prevClose,n=e.lastPrice,i=(0,r.useRef)(t),l=(0,r.useRef)(t);t!==l.current&&(i.current=t,l.current=t);var c=(0,r.useMemo)(function(){return o({openPrice:t,currentPrice:n})},[t,n]),a=c.priceDifference,s=c.percentageDifference,u=(0,r.useMemo)(function(){var e=i.current;return i.current=n,{animate:e!==n,priceGained:n>=e,percentageGained:s>=0}},[n,s]);return{animate:u.animate,priceGained:u.priceGained,percentageGained:u.percentageGained,priceDifference:a,percentageDifference:s}}},28306:function(e,t,n){"use strict";n.d(t,{CO:()=>c,aL:()=>a,xo:()=>s.x});var r=n(86430),i=n(81993),o=n(43545),l=n(1403),c=function(e){var t,n=(0,l.fz)(["defaultTradeHomeTableDisplayStyle","defaultMarketsTableDisplayStyle"]),r=n.defaultTradeHomeTableDisplayStyle,i=n.defaultMarketsTableDisplayStyle;return null!=(t=e===o.Gt.TRADE_HOME_TABLE_DISPLAY_STYLE?r:i)?t:o.T2.SYM_LAST_PRICE_SPREAD_CHG},a=function(e){var t=(0,i.useService)(r.E,function(t){return t.style[e]}),n=c(e);return null!=t?t:n},s=n(44607);n(68790)},41588:function(e,t,n){"use strict";n.d(t,{Yx:()=>w,lq:()=>C,GZ:()=>m,bx:()=>f,F4:()=>d,jP:()=>y,nr:()=>I,Ov:()=>u,Rb:()=>p,aH:()=>v,eV:()=>O,RS:()=>M,ZA:()=>S,yJ:()=>P,M6:()=>k,Hq:()=>A,g8:()=>L,LQ:()=>b,Od:()=>E,i7:()=>_,yX:()=>x,qU:()=>Z,X9:()=>T,Dg:()=>j,qV:()=>g,V9:()=>R,RW:()=>h,K$:()=>K});var r=n(67728);n(71934);var i=n(81993),o=n(86653),l=n(23794),c=n(1403),a=n(7433),s=n(32510),u=function(e,t){return(0,i.useService)(r.D,function(n){var r;switch(t){case l.K.TOP_PICK:r=n.mappedTopPickSymbols;break;case l.K.TOP_GAINER:r=n.mappedTopGainerSymbols;break;case l.K.TOP_LOSER:r=n.mappedTopLoserSymbols;break;default:r=n.mappedTopPickSymbols}return(0,a.Iq)(r[e]||{},["lastPrice"])})},d=function(e,t){var n,r,i,o=(0,s.L)(e),l=u(e,t);return{bid:null!=(n=null==o?void 0:o.bid)?n:l.bid,ask:null!=(r=null==o?void 0:o.ask)?r:l.ask,lastPrice:null!=(i=null==o?void 0:o.lastPrice)?i:l.lastPrice,tickRulesGroup:l.tickRulesGroup,decimal
1:l.decimal}},f=function(){return(0,i.useService)(r.D,function(e){return e.filteredTopPickSymbolIds})},p=function(){return(0,i.useService)(r.D,function(e){return e.selectedTopPickSymbolCategory})},m=function(){return(0,i.useService)(r.D,function(e){return e.filteredTopGainerSymbolIds})},h=function(){return(0,i.useService)(r.D,function(e){return e.selectedTopGainerSymbolCategory})},y=function(){return(0,i.useService)(r.D,function(e){return e.filteredTopLoserSymbolIds})},b=function(){return(0,i.useService)(r.D,function(e){return e.selectedTopLoserSymbolCategory})},g=function(){return(0,i.useService)(r.D,function(e){return c.lj.getCompanyIntegration()===o.wS.HORIZON?e.filteredMyPositionSymbolIdsFromMappedSymbol:e.filteredMyPositionOrderIdsFromMappedOrder})},x=function(e){return(0,i.useService)(r.D,function(t){return c.lj.getCompanyIntegration()===o.wS.HORIZON?t.mappedMyPositionSymbols[e]||{}:t.mappedMyPositionOrders[e]||{}})},S=function(e){return(0,i.useService)(r.D,function(t){if(c.lj.getCompanyIntegration()===o.wS.HORIZON){var n=t.mappedMyPositionSymbols[e];return(0,a.Iq)(n||{},["lastPrice"])}var r=t.mappedMyPositionOrders[e];return(0,a.Iq)(r||{},["lastPrice"])})},v=function(e){return(0,i.useService)(r.D,function(t){var n=(c.lj.getCompanyIntegration()===o.wS.HORIZON?t.mappedMyPositionSymbols:t.mappedMyPositionOrders)[e];return(0,a.j$)(n||{},["tickRulesGroup","decimal","takeProfit","stopLoss"])})},P=function(e){var t,n,o,l=(0,s.L)(e),c=(0,i.useService)(r.D,function(t){var n=t.mappedMyPositionSymbols[e];return n?{lastPrice:n.lastPrice,bid:n.bid,ask:n.ask,tickRulesGroup:n.tickRulesGroup,decimal:n.decimal,takeProfit:n.takeProfit,stopLoss:n.stopLoss}:void 0});return{lastPrice:null!=(t=null==l?void 0:l.lastPrice)?t:null==c?void 0:c.lastPrice,bid:null!=(n=null==l?void 0:l.bid)?n:null==c?void 0:c.bid,ask:null!=(o=null==l?void 0:l.ask)?o:null==c?void 0:c.ask,tickRulesGroup:null==c?void 0:c.tickRulesGroup,decimal:null==c?void 0:c.decimal,takeProfit:null==c?void 0:c.takeProfit,stopLoss:null==c?void 0:c.stopLoss}},O=function(){return(0,i.useService)(r.D,function(e){return e.selectedMyPositionSymbolCategory})},T=function(){return(0,i.useService)(r.D,function(e){return e.filteredMyFavouriteSymbolIds})},C=function(e){return(0,i.useService)(r.D,function(t){return(0,a.Iq)(t.mappedMyFavouriteSymbols[e]||{},["lastPrice"])})},j=function(e){var t,n,o=(0,s.L)(e),l=(0,i.useService)(r.D,function(t){return t.mappedMyFavouriteSymbols[e]});return{bid:null!=(t=null==o?void 0:o.bid)?t:null==l?void 0:l.bid,lastPrice:null!=(n=null==o?void 0:o.lastPrice)?n:null==l?void 0:l.lastPrice,tickRulesGroup:null==l?void 0:l.tickRulesGroup,decimal:null==l?void 0:l.decimal}},I=function(){return(0,i.useService)(r.D,function(e){return e.selectedMyFavouriteSymbolCategory})},w=function(){return(0,i.useService)(r.D,function(e){return e.filteredWatchlistSymbolIds})},L=function(e){return(0,i.useService)(r.D,function(t){return(0,a.Iq)(t.mappedWatchlistSymbols[e]||{},["lastPrice"])})},k=function(e){var t,n,o,l=(0,s.L)(e),c=(0,i.useService)(r.D,function(t){return t.mappedWatchlistSymbols[e]});return{bid:null!=(t=null==l?void 0:l.bid)?t:null==c?void 0:c.bid,ask:null!=(n=null==l?void 0:l.ask)?n:null==c?void 0:c.ask,lastPrice:null!=(o=null==l?void 0:l.lastPrice)?o:null==c?void 0:c.lastPrice,tickRulesGroup:null==c?void 0:c.tickRulesGroup,decimal:null==c?void 0:c.decimal}},E=function(){return(0,i.useService)(r.D,function(e){return e.selectedWatchListSymbolCategory})},R=function(e){return(0,i.useService)(r.D,function(t){return t.mappedSignalSymbols[e]||{}})},A=function(){return(0,i.useService)(r.D,function(e){return e.filteredSignalSymbolIds})},_=function(){return(0,i.useService)(r.D,function(e){return e.totalSignalCount})},M=function(){return(0,i.useService)(r.D,function(e){return e.selectedSignalSymbolCategory})},Z=function(){return(0,i.useService)(r.D,function(e){return e.symbolCategories})},K=function(e){return(0,i.useService)(r.D,function(t){switch(e){case l.K.TOP_PICK:return t.selectedTopPickSymbolCategory;case l.K.TOP_GAINER:return t.selectedTopGainerSymbolCategory;case l.K.TOP_LOSER:return t.selectedTopLoserSymbolCategory;case l.K.FAVOURITES:return t.selectedMyFavouriteSymbolCategory;case l.K.ALL:return t.selectedWatchListSymbolCategory;case l.K.SIGNALS:return t.selectedSignalSymbolCategory;default:return t.selectedMyPositionSymbolCategory}})}},22349:function(e,t,n){"use strict";n.d(t,{P$:()=>u,$Z:()=>s,_m:()=>a,zC:()=>c,Kh:()=>d,Kv:()=>o,QE:()=>l});var r=n(90735);n(75093),n(13616);var i=n(81993),o=function(){return(0,i.useService)(r.u,function(e){return e.filteredSymbolHistories})},l=function(){return(0,i.useService)(r.u,function(e){return e.rawSearchHistories})},c=function(){return(0,i.useService)(r.u,function(e){return e.searching})},a=function(){return(0,i.useService)(r.u,function(e){return e.searchSymbolResult})},s=function(){return(0,i.useService)(r.u,function(e){return e.selectedSymbolCategory})},u=function(){return(0,i.useService)(r.u,function(e){return e.deleting})},d=function(e){return(0,i.useService)(r.u,function(e){return e.favouriteSymbolIds}).includes(e)}},74901:function(e,t,n){"use strict";n.d(t,{Z:()=>t9}),n(21249);var r,i=n(74512),o=n(32735),l=n(10281),c=n(81182),a=n(82647),s=n(62715),u=n(80199),d=n(67492),f=n(38074),p=n(6807),m=n(1403),h=n(66117),y=n(23794),b=n(63913),g=n(69062),x=n(41588),S=function(e){var t=(0,x.Rb)(),n=(0,x.RW)(),r=(0,x.LQ)(),i=(0,x.nr)(),l=(0,x.eV)(),c=(0,x.Od)(),a=(0,x.RS)();return(0,o.useMemo)(function(){switch(e){case y.K.ALL:return c===g.lp.ALL;case y.K.TOP_PICK:return t===g.lp.ALL;case y.K.TOP_GAINER:return n===g.lp.ALL;case y.K.TOP_LOSER:return r===g.lp.ALL;case y.K.FAVOURITES:return i===g.lp.ALL;case y.K.POSITIONS:return l===g.lp.ALL;case y.K.SIGNALS:return a===g.lp.ALL;default:return!1}},[i,l,n,r,t,c,a,e])},v=function(e){var t=(0,o.useRef)(null),n=(0,o.useRef)(null),r=(0,o.useCallback)(function(){n.current&&t.current&&(n.current.scrollTop=t.current.scrollTop)},[]),i=(0,o.useCallback)(function(){n.current&&t.current&&(t.current.scrollTop=n.current.scrollTop)},[]),l=(0,o.useCallback)(function(n){t.current&&t.current.removeEventListener("scroll",r),t.current=n,n&&e&&n.addEventListener("scroll",r)},[r,e]),c=(0,o.useCallback)(function(t){n.current&&n.current.removeEventListener("scroll",i),n.current=t,t&&e&&t.addEventListener("scroll",i)},[i,e]);return(0,o.useEffect)(function(){return function(){t.current&&t.current.removeEventListener("scroll",r),n.current&&n.current.removeEventListener("scroll",i)}},[r,i]),{mainListRef:t,stickyColumnRef:n,mainListCallbackRef:l,stickyColumnCallbackRef:c}};n(47042),n(32564),n(92222),n(15306),n(74916);var P=n(11750),O=n(96838),T=n(71225),C=n(43545),j=n(907),I=function(e){var t=(0,x.bx)(),n=(0,x.GZ)(),r=(0,x.jP)(),i=(0,x.X9)(),l=(0,x.q
1V)(),c=(0,x.Yx)(),a=(0,x.Hq)();return(0,o.useMemo)(function(){switch(e){case y.K.ALL:return c;case y.K.TOP_PICK:return t;case y.K.TOP_GAINER:return n;case y.K.TOP_LOSER:return r;case y.K.FAVOURITES:return i;case y.K.POSITIONS:return l;case y.K.SIGNALS:return a;default:return[]}},[i,l,a,n,r,t,c,e])},w=n(28306),L=n(37280),k=n(41174),E=n(34965);function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=function(e){var t,n=(R(t={},y.K.ALL,L.Bj.ALL),R(t,y.K.TOP_GAINER,L.Bj.TOP_GAINER),R(t,y.K.TOP_LOSER,L.Bj.TOP_LOSER),R(t,y.K.TOP_PICK,L.Bj.TOP_PICK),R(t,y.K.FAVOURITES,L.Bj.FAVOURITES),R(t,y.K.POSITIONS,null),R(t,y.K.SIGNALS,null),t)[e];e===y.K.POSITIONS?k.$.onOrderSelectedTabChanged(C.ZV.OPEN_POSITION):n&&(E.l.onWatchlistFilterChanged(n),E.l.setInitial(!1))},_=n(25932);let M=function(){var e=(0,m.jO)().isHorizon,t=(0,c.$G)().t,n=(0,o.useMemo)(function(){return e?[t("Symbol"),t("24H High"),t("24H Low"),t("Last Price"),t("Chg %")]:[t("Symbol"),t("24H High"),t("24H Low"),""]},[e,t]);return(0,i.jsx)(Z,{$isHorizon:e,children:n.map(function(e){return(0,i.jsx)(K,{children:(0,i.jsx)(G,{typography:s.wZ.TEXT_M_REGULAR,children:e})},e)})})};var Z=l.ZP.td.withConfig({componentId:"sc-c9610951-0"})(["display:flex;flex:1;flex-direction:row;align-items:flex-start;column-gap:6px;> div{flex:0.6;text-align:end;&:first-child{flex:1;text-align:start;}&:last-child{flex:",";}}"],function(e){return e.$isHorizon?"1":"0.3"}),K=l.ZP.div.withConfig({componentId:"sc-c9610951-1"})([""]),G=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-c9610951-2"})(["color:",";white-space:nowrap;"],function(e){return e.theme.themeColors.text.subtle});n(40561);var D=n(479),z=n(18699),$=n(33007),N=n(19367);let U=function(e){var t=e.id,n=(0,c.$G)().t,r=(0,$.VC)().theme.themeColors,l=(0,x.ZA)(t).orderType,a=(0,o.useMemo)(function(){var e=(0,N.cj)(l)===z.B9.BUY;return{directionColor:e?r.pnl.positive.default:r.pnl.negative.default,directionLabel:e?n("Buy"):n("Sell")}},[l,r.pnl.positive.default,r.pnl.negative.default,n]),u=a.directionColor,d=a.directionLabel;return(0,i.jsx)(X,{color:u,typography:s.wZ.TEXT_M_REGULAR,dataTestId:p.Of.MARKET_MY_POSITIONS_TYPE,children:d})};var X=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-ece5c942-0"})(["color:",";"],function(e){return e.color});n(26699),n(32023);var B=n(81002),W=n(33481);let F=function(e){var t=e.id,n=(0,m.jO)().isHorizon,r=(0,x.ZA)(t),o=r.openPrice,l=r.avgBoughtPrice,c=r.avgSoldPrice,a=r.orderType,u=r.tickRulesGroup,d=r.decimal,h=0;return h=o?o:n?l&&c?(l+c)/2:l||c||0:void 0!==a?B.wt.includes(a)?l||0:c||0:l||c||0,(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,dataTestId:p.Of.MARKET_MY_POSITIONS_ENTRY_PRICE,children:h?(0,W.Wi)(h,(0,W.os)(h,u,d)):"--"})};var V=n(74702);let H=function(e){var t=e.id,n=(0,x.ZA)(t).symbol,r=(0,x.g8)(n).status;return(0,i.jsx)(V.Z,{marketStatus:r===g.nt.TRADING?V.g.OPEN:V.g.CLOSE})},Y=function(e){var t=e.id,n=(0,m.jO)().isHorizon,r=(0,x.ZA)(t),o=n?t:r.symbol,l=(0,x.yJ)(o),c=l.lastPrice,a=l.bid,u=l.tickRulesGroup,d=l.decimal,h=(n?c:a)||r.currentPrice||0;return(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,dataTestId:p.Of.MARKET_MY_POSITIONS_PRICE,children:(0,W.Wi)(h,(0,W.os)(h,u,d))})};n(52420);var q=n(16672),J=n(13589),Q=n(42014);let ee=function(e){var t=e.id,n=(0,m.jO)().isHorizon,r=(0,x.yX)(t),l=n?t:r.symbol,c=(0,x.yJ)(l),a=c.lastPrice,s=c.bid,u=c.ask,d=r.pnlGross,f=r.profit,h=(0,o.useMemo)(function(){var e,t;return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},r),t=t={profit:n?d:f},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e},[n,r,d,f]),y=(0,N.Jy)(h,{liveBuy:(0,q.U8)(u),liveSell:(0,q.U8)(n?a:s)}),b=(0,o.useMemo)(function(){return 1===Math.sign(y)},[y]);return(0,i.jsx)(et,{children:(0,i.jsxs)(Q.g,{profitLoss:(0,J.Ov)(y),dataTestId:p.Of.MARKET_MY_POSITIONS_PROFIT,children:[b&&"+",(0,W.Wi)(y,2,!1)]})})};var et=l.ZP.div.withConfig({componentId:"sc-c4dda391-0"})(["display:flex;flex-direction:column;align-items:flex-end;"]);let en=function(e){var t=e.id,n=(0,x.aH)(t),r=n.stopLoss,o=n.tickRulesGroup,l=n.decimal;return(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,dataTestId:p.Of.MARKET_MY_POSITIONS_STOP_LOSS,children:r?(0,W.Wi)(r,(0,W.os)(r,o,l)):"--"})};n(82526),n(41817);var er=n(63450);let ei=function(e){var t=e.category,n=(0,$.VC)().theme.themeColors;return(0,i.jsx)(er.ZP,{variant:er.L9.LIGHT,backgroundColor:n.tag.default.background,textColor:n.tag.default.color,size:"xsmall",children:t})};var eo=n(78954);let el=function(e){var t=e.symbolId,n=e.symbolType,r=e.description,o=e.displaySymbolTag,l=void 0!==o&&o,c=e.descriptionWidth,a=e.dataTestId,u=e.marketStatusIcon,d=(0,m.jO)().isHorizon;return(0,i.jsxs)(ec,{children:[(0,i.jsxs)(ea,{children:[(0,i.jsx)(es,{typography:s.wZ.TEXT_M_REGULAR,dataTestId:a,children:(0,b.g8)(t,n)}),l&&d&&(0,i.jsx)(ei,{category:n})]}),(0,i.jsxs)(ea,{children:[u&&(0,i.jsx)(ef,{children:u}),l&&!d&&(0,i.jsx)(ed,{children:(0,i.jsx)(eo.Z,{label:n})}),(0,i.jsx)(eu,{tooltip:r,typography:s.wZ.TEXT_S_REGULAR,width:void 0===c?"150px":c,fill:!0,children:r})]})]})};var ec=l.ZP.div.withConfig({componentId:"sc-8401a506-0"})(["min-width:0;"]),ea=l.ZP.div.withConfig({componentId:"sc-8401a506-1"})(["display:flex;flex-direction:row;align-items:center;column-gap:","px;"],T.A.XXS),es=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-8401a506-2"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:",";"],function(e){return e.theme.themeColors.text.strong}),eu=(0,l.ZP)(f.ZP).attrs({variant:f.fD.WITH_TOOLTIP}).withConfig({componentId:"sc-8401a506-3"})(["color:",";"],function(e){return e.theme.themeColors.text.subtle}),ed=l.ZP.div.withConfig({componentId:"sc-8401a506-4"})(["max-width:fit-content;flex-shrink:0;margin-inline-end:","px;"],T.A.XXXS),ef=l.ZP.div.withConfig({componentId:"sc-8401a506-5"})(["display:flex;align-items:center;flex-shrink:0;"]);let ep=function(e){var t=e.id,n=e.displaySymbolTag,r=(0,x.ZA)(t),o=null==r?void 0:r.symbol,l=r||{},c=l.description,a=l.symbolType;return(0,i.jsx)(el,{symbolId:o,symbolType:a,description:c,displaySymbolTag:n,dataTestId:p.Of.MARKET_MY_POSITIONS_SYMBOL})},em=function(e){var t=e.id,n=(0,x.aH)(t),r=n.takeProfit,o=n.tickRulesGroup,l=n.decimal;return(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,dataTestId:p.Of.MARKET_MY_POSITIONS_TAKE_PROFIT,children:r?(0,W.Wi)(r,(0,W.os)(r,o,l)):"--"})};var eh=function(){return[{accessorKey:"symbol",headerText:"",size:"18%",minSize:120,cell:function(e,t){return(0,i.jsx)(ep,{id:e,displaySymbolTag:t||!1})}},{accessorKey:"direction",headerText:D.ag.t("Direction"),size:"12%",minSize:80,cell:function(e){return(0,i.jsx)(U,{id:e})}},{accessorKey:"entryPrice",headerText:D.ag.t("Avg Entry Price"),size:"15%",minSize:100,cell:function(e){return(0,i.jsx)(F,{id:e})}},{accessorKey:"takeProfit",headerText:D.ag.t("Take Profit"),size:"14%",minSize:90,cell:function(e){return(0,i.jsx)(em,{id:e})}},{accessorKey:"stopLoss",headerText:D.ag.t("Stop Loss"),size:"14%",minSize:90,cell:function(e){return(0,i.jsx)(en,{id:e})}},{accessorKey:"profit",headerText:D.ag.t("Profit/Loss"),size:"13%",minSize:90,cell:function(e){return(0,i.jsx)(ee,{id:e})}}]},ey=function(e){var t=[{accessorKey:"symbol",headerText:D.ag.t("Symbol"),size:e?"20%":"15%",minSize:120,cell:function(e,t){return(0,i.jsx)(ep,{id:e,displaySymbolTag:t||!1})}},{accessorKey:"direction",headerText:D.ag.t("Type"),size:"11%",minSize:80,cell:function(e){return(0,i.jsx)(U,{id:e})}},{accessorKey:"entryPrice",headerText:D.ag.t("Entry Price"),size:e?"15%":"14%",minSize:100,cell:function(e){return(0,i.jsx)(F,{id:e})}},{accessorKey:"takeProfit",headerText:D.ag.t("Take Profit"),size:e?"14%":"13%",minSize:90,cell:function(e){return(0,i.jsx)(em,{id:e})}},{accessorKey:"stopLoss",headerText:D.ag.t("Stop Loss"),size:e?"14%":"13%",minSize:90,cell:function(e){return(0,i.jsx)(en,{id:e})}},{accessorKey:"currentPrice",headerText:D.ag.t("Last Price"),size:e?"14%":"13%",minSize:90,cell:function(e){return(0,i.jsx)(Y,{id:e})}},{accessorKey:"profit",headerText:D.ag.t("Profit/Loss"),size:e?"14%":"13%",minSize:90,cell:function(e){return(0,i.jsx)(ee,{id:e})}},{accessorKey:"marketStatus",headerText:"",size:e?"5%":"4%",minSize:28,isSticky:!0,cell:function(e){return(0,i.jsx)(H,{id:e})}}];return e&&t.splice(1,1),t};let eb=function(){var e=(0,m.jO)(),t=e.isCentroid;return(e.isHorizon?eh():ey(t)).map(function(e){return e.isSticky?(0,i.jsx)(eS,{$size:e.size,$minSize:e.minSize,children:(0,i.jsx)(ex,{typography:s.wZ.TEXT_M_REGULAR,children:e.headerText})},e.accessorKey):(0,i.jsx)(eg,{$size:e.size,$minSize:e.minSize,children:(0,i.jsx)(ex,{typography:s.wZ.TEXT_M_REGULAR,children:e.headerText})},e.accessorKey)})};var eg=l.ZP.td.withConfig({componentId:"sc-e50fe810-0"})(["width:",";min-width:","px;flex-shrink:0;display:flex;align-items:center;box-sizing:border-box;text-align:end;justify-content:flex-end;&:first-child{text-align:start;justify-content:flex-start;}"],function(e){var t=e.$size;return"string"==typeof t?t:"".concat(t||120,"px")},function(e){return e.$minSize||120}),ex=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-e50fe810-1"})(["color:",";white-space:nowrap;"],function(e){return e.theme.themeColors.text.subtle}),eS=l.ZP.td.withConfig({componentId:"sc-e50fe810-2"})(["width:",";min-width:","px;padding:0;margin:0;border:none;position:sticky;right:0;background-color:",";z-index:1;display:flex;align-items:center;justify-content:center;padding:6px ","px ","px ","px;box-sizing:border-box;"],function(e){var t=e.$size;return"string"==typeof t?t:"".concat(t||120,"px")},function(e){return e.$minSize||120},function(e){return e.theme.themeColors.background.default},T.A.XS,T.A.XS,T.A.XXS),ev={symbolMinWidth:100,priceMaxWidth:110,priceMinWidth:10,gap:T.A.XS},eP={symbol:1,lastPriceSpread:.6,change:.4},eO=(0,l.iv)(["display:flex;flex:1;min-width:0;padding:0;flex-direction:row;align-items:flex-start;"]),eT=(0,l.iv)(["text-align:end;&:first-child{text-align:start;}"]),eC=(0,l.iv)(["flex:1;max-width:","px;min-width:","px;&:first-child{flex:1 1 ","px;max-width:none;min-width:0;}"],ev.priceMaxWidth,ev.priceMinWidth,ev.symbolMinWidth),ej=l.ZP.div.withConfig({componentId:"sc-e84868f5-0"})([""]),eI=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-e84868f5-1"})(["color:",";white-space:nowrap;"],function(e){return e.theme.themeColors.text.subtle});
1let ew=function(e){var t=e.displayStyle,n=(0,c.$G)().t,r=t===C.T2.SYM_SELL_BUY_SPREAD,l=(0,o.useMemo)(function(){return r?[{key:"symbol",label:n("Symbol")},{key:"sell",label:n("Sell")},{key:"buy",label:n("Buy")},{key:"spread",label:n("Spread")}]:[{key:"symbol",label:n("Symbol")},{key:"sparkline",label:""},{key:"lastPriceSpread",label:"".concat(n("Last Price")," | ").concat(n("Spread"))},{key:"change",label:n("Chg %")}]},[n,r]);return(0,i.jsx)(eL,{$isBuySellSpread:r,children:l.map(function(e){var t=e.key,n=e.label;return(0,i.jsx)(ej,{children:(0,i.jsx)(eI,{typography:s.wZ.TEXT_M_REGULAR,children:n})},t)})})};var eL=l.ZP.td.withConfig({componentId:"sc-779a7832-0"})([""," column-gap:","px;> div{"," ","}"],eO,T.A.XS,eT,function(e){return e.$isBuySellSpread?eC:(0,l.iv)(["&:first-child{flex:",";}&:nth-child(2){flex:0 0 ","px;width:","px;}&:nth-child(3){flex:",";}&:nth-child(4){flex:",";}"],eP.symbol,50,50,eP.lastPriceSpread,eP.change)});let ek=function(e){var t=e.displayStyle,n=(0,c.$G)().t,r=t===C.T2.SYM_SELL_BUY_SPREAD,l=(0,o.useMemo)(function(){return r?[{key:"symbol",label:n("Symbol")},{key:"sell",label:n("Sell")},{key:"buy",label:n("Buy")},{key:"spread",label:n("Spread")}]:[{key:"symbol",label:n("Symbol")},{key:"lastPriceSpread",label:"".concat(n("Last Price")," | ").concat(n("Spread"))},{key:"change",label:n("Chg %")}]},[n,r]);return(0,i.jsx)(eE,{$isBuySellSpread:r,children:l.map(function(e){var t=e.key,n=e.label;return(0,i.jsx)(ej,{children:(0,i.jsx)(eI,{typography:s.wZ.TEXT_M_REGULAR,children:n})},t)})})};var eE=l.ZP.td.withConfig({componentId:"sc-e4a56e6a-0"})([""," column-gap:","px;> div{"," ","}"],eO,function(e){return e.$isBuySellSpread?ev.gap:6},eT,function(e){return e.$isBuySellSpread?eC:(0,l.iv)(["flex:1;&:first-child{flex:2;}"])});let eR=function(){var e=(0,c.$G)().t,t=(0,o.useMemo)(function(){return[e("Symbol"),e("Status"),e("Confidence"),e("Modified"),""]},[e]);return(0,i.jsx)(eA,{children:t.map(function(e){return(0,i.jsx)(e_,{children:(0,i.jsx)(eM,{typography:s.wZ.TEXT_M_REGULAR,children:e})},e)})})};var eA=l.ZP.td.withConfig({componentId:"sc-8a22596b-0"})(["display:flex;flex:1;flex-direction:row;align-items:flex-start;column-gap:6px;> div{flex:1;text-align:start;&:first-child{flex:2;}&:nth-last-child(2){text-align:end;justify-content:flex-end;}&:last-child{flex:0.5;text-align:end;justify-content:flex-end;}}"]),e_=l.ZP.div.withConfig({componentId:"sc-8a22596b-1"})([""]),eM=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-8a22596b-2"})(["color:",";"],function(e){return e.theme.themeColors.text.subtle}),eZ=n(12788),eK=n(51008);function eG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,c=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eG(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ez=null,e$=(0,o.forwardRef)(function(e,t){var n=e.symbolId,r=e.initialWatchStatus,l=eD((0,o.useState)(!1),2),u=l[0],d=l[1],f=eD((0,o.useState)(r),2),p=f[0],m=f[1],h=eD((0,o.useState)({x:0,y:0}),2),y=h[0],b=h[1],g=(0,o.useRef)(null),x=(0,c.$G)().t;(0,o.useEffect)(function(){m(r)},[r]);var S=(0,o.useCallback)(function(){d(!1),ez===S&&(ez=null)},[]),v=(0,o.useCallback)(function(e,t){ez&&ez!==S&&ez(),m(r),b({x:e-5,y:t-5}),d(!0),ez=S},[S,r]),P=(0,o.useCallback)(function(){var e=!p;m(e);try{E.l.onFavouriteSymbol(n,e)}catch(e){console.error("Error toggling favourite:",e)}S()},[n,p,S]);return((0,o.useEffect)(function(){if(u){var e=function(){S()};return document.addEventListener("scroll",e,{capture:!0,passive:!0}),window.addEventListener("scroll",e,{passive:!0}),function(){document.removeEventListener("scroll",e,{capture:!0}),window.removeEventListener("scroll",e)}}},[u,S]),(0,o.useImperativeHandle)(t,function(){return{open:v,close:S}},[v,S]),u)?(0,eZ.createPortal)((0,i.jsx)(eN,{ref:g,$isVisible:u,$x:y.x,$y:y.y,children:(0,i.jsx)(a.ZP,{isVisible:u,parentRef:g,onClose:S,dropdownWidth:"auto",dropdownPlacement:a.s1.BOTTOM_START,shadow:eK.G.MEDIUM,shouldUnmountOnClose:!1,children:(0,i.jsx)(eU,{onClick:P,children:(0,i.jsx)(eX,{typography:s.wZ.TEXT_M_REGULAR,children:x(p?"Remove from Favorites":"Add to Favorites")})})})}),document.body):null});e$.displayName="WatchlistContextMenu";var eN=l.ZP.div.withConfig({componentId:"sc-f253506b-0"})(["position:fixed;left:","px;top:","px;pointer-events:",";z-index:9999;display:",";> *{pointer-events:auto;}"],function(e){return e.$x},function(e){return e.$y},function(e){return e.$isVisible?"auto":"none"},function(e){return e.$isVisible?"block":"none"}),eU=l.ZP.div.withConfig({componentId:"sc-f253506b-1"})(["background-color:",";padding:","px ","px;
1cursor:pointer;user-select:none;white-space:nowrap;min-width:fit-content;&:hover{background-color:",";}&:first-child{border-top-left-radius:","px;border-top-right-radius:","px;}&:last-child{border-bottom-left-radius:","px;border-bottom-right-radius:","px;}"],function(e){return e.theme.themeColors.background.default},T.A.XS,T.A.REGULAR,function(e){return e.theme.themeColors.background.subtle},T.A.XXS,T.A.XXS,T.A.XXS,T.A.XXS),eX=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-f253506b-2"})(["color:",";"],function(e){return e.theme.themeColors.text.default});function eB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,c=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eF=(0,o.createContext)(null),eV=function(){var e=(0,o.useContext)(eF);return e||{openContextMenu:function(){}}},eH=function(e){var t=e.children,n=(0,o.useRef)(null),r=eW((0,o.useState)(""),2),l=r[0],c=r[1],a=eW((0,o.useState)(!1),2),s=a[0],u=a[1],d=(0,o.useCallback)(function(e,t,r,i){var o;c(e),u(t),null==(o=n.current)||o.open(r,i)},[]),f=(0,o.useMemo)(function(){return{openContextMenu:d}},[d]);return(0,i.jsxs)(eF.Provider,{value:f,children:[t,(0,i.jsx)(e$,{ref:n,symbolId:l,initialWatchStatus:s})]})},eY=n(18034),eq=n(46703);let eJ=function(e){var t=(0,P.s0)(),n=(0,m.jO)().isHorizon,r=e.displaySymbolTag,l=e.symbolId,c=e.priceLabel,a=e.priceChangeLabel,u=eV().openContextMenu,d=(0,eq.U)({offset:25}),h=d.containerRef,y=d.descriptionWidth,b=(0,x.lq)(l),g=b.decimal,S=b.description,v=b.high,O=b.low,T=b.tickRulesGroup,C=b.type,I=b.online,w=(0,o.useCallback)(function(){E.l.onSymbolSelected(l,!0),E.l.setInitial(!1),E.l.onWatchlistFilterChanged(L.Bj.FAVOURITES),t(j.oI.TRADE)},[t,l]),k=(0,o.useCallback)(function(e){e.preventDefault(),e.stopPropagation(),u(l,!0,e.clientX,e.clientY)},[u,l]),R=(0,o.useMemo)(function(){return I?V.g.OPEN:V.g.CLOSE},[I]),A=(0,o.useMemo)(function(){return v?(0,W.Wi)(v,(0,W.os)(v,T,g)):"--"},[g,v,T]),_=(0,o.useMemo)(function(){return O?(0,W.Wi)(O,(0,W.os)(O,T,g)):"--"},[g,O,T]);return(0,i.jsxs)(eQ,{onClick:w,onContextMenu:k,children:[(0,i.jsx)(e0,{ref:h,children:(0,i.jsx)(el,{symbolId:l,symbolType:C,description:S,displaySymbolTag:r,descriptionWidth:y,dataTestId:p.Of.MARKET_FAVORITE_SYMBOL})}),(0,i.jsx)(e1,{children:(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,children:A})}),(0,i.jsx)(e1,{children:(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,children:_})}),n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e1,{children:c}),(0,i.jsx)(e1,{children:a})]}):(0,i.jsx)(e1,{$marketStatus:!0,children:(0,i.jsx)(V.Z,{marketStatus:R})})]})};var eQ=l.ZP.div.withConfig({componentId:"sc-f802ac0c-0"})(["display:flex;flex:1;padding:6px ","px;flex-direction:row;align-items:center;column-gap:6px;cursor:pointer;border-bottom:1px solid transparent;background-color:",";&:hover{background-color:",";}&.selected{background-color:",";border-bottom:",";}"],T.A.XS,function(e){return e.theme.themeColors.background.default},function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.background.active},function(e){var t=e.theme;return"1px solid ".concat(t.themeColors.background.default)}),e0=l.ZP.div.withConfig({componentId:"sc-f802ac0c-1"})(["flex:1;min-width:0;"]),e1=l.ZP.div.withConfig({componentId:"sc-f802ac0c-2"})(["flex:",";display:flex;text-align:end;justify-content:flex-end;"],function(e){return e.$marketStatus?"0.3":"0.6"});let e4=function(e){var t=e.id,n=(0,m.jO)().isHorizon,r=(0,x.Dg)(t),o=r.bid,l=r.lastPrice,c=r.tickRulesGroup,a=r.decimal,u=n?l:o;return(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,children:(0,W.Wi)(u,(0,W.os)(u,c,a))})};var e2=n(694);let e6=function(e){var t=e.id,n=(0,m.jO)().isHorizon,r=(0,x.lq)(t),o=r.prevClose,l=r.open,c=(0,x.Dg)(t),a=c.bid,u=c.lastPrice,d=(0,e2.e)({prevClose:(0,q.U8)(n?o:l),lastPrice:(0,q.U8)(n?u:a)}),f=d.percentageDifference,p=d.percentageGained;return(0,i.jsxs)(Q.g,{typography:s.wZ.TEXT_M_REGULAR,profitLoss:(0,J.By)(p),children:[!!p&&"+",void 0!==(0,q.M7)(f)?"".concat((0,W.Wi)(f,2,!1),"%"):"--"]})},e3=function(e){var t=e.symbolId;return(0,o.useEffect)(function(){return eY.o.subscribeSymbolInViewport(y.K.FAVOURITES,t),function(){eY.o.unsubscribeSymbolInViewport(y.K.FAVOURITES,t)}},[t]),(0,i.jsx)(eJ,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({priceLabel:(0,i.jsx)(e4,{id:t}),priceChangeLabel:(0,i.jsx)(e6,{id:t})},e))};var e8=n(16029),e5=((r={}).SELL="SELL",r.BUY="BUY",r);let e9=function(e){var t=e.side,n=e.bid,r=e.ask,o=e.tickRulesGroup,l=e.decimal,c="SELL"===t,a=c?n:r;return(0,i.jsx)(e7,{typography:s.wZ.TEXT_M_REGULAR,profitLoss:c?e8.a.LOSS:e8.a.PROFIT,stretch:!0,children:(0,W.Wi)(a,(0,W.os)(a,o,l))})};var e7=(0,l.ZP)(Q.g).withConfig({componentId:"sc-438c170f-0"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),te=n(22349),tt=n(93512);let tn=function(e){var t=e.sellPriceLabel,n=e.buyPriceLabel,r=e.spreadLabel;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tr,{children:t}),(0,i.jsx)(tr,{children:n}),(0,i.jsx)(tr,{children:r})]})};var tr=l.ZP.div.withConfig({componentId:"sc-ee2099ad-0"})(["flex:1;display:flex;align-items:center;justify-content:flex-end;text-align:end;max-width:","px;min-width:","px;"],ev.priceMaxWidth,ev.priceMinWidth);let ti=function(e){var t=(0,P.s0)(),n=(0,m.jO)().isHorizon,r=eV().openContextMenu,l=e.displaySymbolTag,c=e.symbolId,a=e.marketComponentType,s=e.miniChart,u=e.priceLabel,d=e.priceChangeLabel,f=e.spreadLabel,h=e.sellPriceLabel,b=e.buyPriceLabel,g=e.displayStyle===C.T2.SYM_SELL_BUY_SPREAD,S=(0,x.Ov)(c,a),v=(0,te.Kh)(c),O=S.description,T=S.type,I=(0,o.useCallback)(function(){var e=void 0;switch(a){case y.K.TOP_PICK:e=L.Bj.TOP_PICK;break;case y.K.TOP_GAINER:e=L.Bj.TOP_GAINER;break;case y.K.TOP_LOSER:e=L.Bj.TOP_LOSER}void 0!==e&&(E.l.onSymbolSelected(c,!0),E.l.setInitial(!1),E.l.onWatchlistFilterChanged(e),t(j.oI.TRADE))},[a,t,c]),w=(0,o.useCallback)(function(e){e.preventDefault(),e.stopPropagation(),r(c,v,e.clientX,e.clientY)},[r,c,v]),k=(0,o.useMemo)(function(){return S.online?tt.g.OPEN:tt.g.CLOSE},[S.online]),R=(0,o.useMemo)(function(){switch(a){case y.K.TOP_PICK:return p.Of.TOP_PICKS_SYMBOL;case y.K.TOP_GAINER:return p.Of.TOP_GAINERS_SYMBOL;case y.K.TOP_LOSER:return p.Of.TOP_LOSERS_SYMBOL;default:return}},[a]);return(0,i.jsxs)(to,{onClick:I,onContextMenu:w,children:[(0,i.jsx)(tl,{$isBuySellSpread:g,children:(0,i.jsx)(el,{symbolId:c,symbolType:T,description:O,displaySymbolTag:l&&g,descriptionWidth:"100%",dataTestId:R,marketStatusIcon:g&&!n?(0,i.jsx)(tt.$,{marketStatus:k}):void 0})}),g?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(tn,{sellPriceLabel:h,buyPriceLabel:b,spreadLabel:f})}):(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(tu,{children:s}),(0,i.jsxs)(tc,{children:[u,f]}),(0,i.jsxs)(ta,{children:[(0,i.jsxs)(ts,{children:[l&&(n?(0,i.jsx)(ei,{category:T}):(0,i.jsx)(eo.Z,{label:T})),!n&&(0,i.jsx)(tt.$,{marketStatus:k})]}),d]})]})]})};var to=l.ZP.div.withConfig({componentId:"sc-25af31c4-0"})(["display:flex;flex:1;padding:6px ","px;flex-direction:row;align-items:center;column-gap:","px;
1cursor:pointer;background-color:",";&:hover{background-color:",";}&.selected{background-color:",";}"],T.A.XS,T.A.XS,function(e){return e.theme.themeColors.background.default},function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.background.active}),tl=l.ZP.div.withConfig({componentId:"sc-25af31c4-1"})(["min-width:0;flex:",";"],function(e){return e.$isBuySellSpread?"1 1 ".concat(ev.symbolMinWidth,"px"):"1"}),tc=l.ZP.div.withConfig({componentId:"sc-25af31c4-2"})(["flex:",";display:flex;flex-direction:column;align-items:flex-end;min-width:0;"],eP.lastPriceSpread),ta=l.ZP.div.withConfig({componentId:"sc-25af31c4-3"})(["flex:",";display:flex;flex-direction:column;align-items:flex-end;min-width:0;gap:1px;"],eP.change),ts=l.ZP.div.withConfig({componentId:"sc-25af31c4-4"})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-end;column-gap:","px;"],T.A.XXS),tu=l.ZP.div.withConfig({componentId:"sc-25af31c4-5"})(["flex:0 0 ","px;width:","px;display:flex;justify-content:center;"],50,50),td=n(95148),tf=n(99747);function tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let tm=function(e){(0,c.$G)();var t,n=(0,$.VC)().theme,r=e.miniChart,l=e.profit,a=e.width,s=void 0===a?80:a,u=e.height,d=void 0===u?35:u,f=(0,o.useRef)(null),p=(t=(0,o.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,c=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(c)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tp(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tp(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],h=p[1],y=(0,o.useMemo)(function(){var e,t=[];return r&&0!==r.length&&(null==r||null==(e=r.reverse())||e.map(function(e,n){var r;t.push({time:{day:n,month:n,year:n},value:null!=(r=null==e?void 0:e.open)?r:0})})),t},[r]);return(0,o.useEffect)(function(){if(f&&f.current&&!m){var e=(0,td.C2)(f.current,{layout:{background:{type:td.Mr.Solid,color:"transparent"},attributionLogo:!1},timeScale:{visible:!1,borderVisible:!1},rightPriceScale:{borderVisible:!1,visible:!1},crosshair:{horzLine:{visible:!1,labelVisible:!1},vertLine:{visible:!1,labelVisible:!1}},grid:{vertLines:{visible:!1},horzLines:{visible:!1}},overlayPriceScales:{borderVisible:!1},leftPriceScale:{visible:!1},handleScroll:{vertTouchDrag:!1,horzTouchDrag:!1,mouseWheel:!1,pressedMouseMove:!1},handleScale:{mouseWheel:!1,pinch:!1,axisDoubleClickReset:!1,axisPressedMouseMove:!1},width:s,height:d});null==e||e.timeScale().fitContent();var t=null==e?void 0:e.addSeries(td.f6,{topColor:l?(0,tf.m4)(n.themeColors.pnl.positive.default,.5):(0,tf.m4)(n.themeColors.pnl.negative.default,.5),bottomColor:l?(0,tf.m4)(n.themeColors.pnl.positive.disabled,0):(0,tf.m4)(n.themeColors.pnl.negative.default,0),lineColor:l?n.themeColors.pnl.positive.default:n.themeColors.pnl.negative.default,lineWidth:1,crosshairMarkerVisible:!1,lastValueVisible:!1,priceLineVisible:!1});null==t||t.setData(y),h(!0)}},[n,l,y,m,h,s,d]),(0,i.jsx)(th,{ref:f})};var th=l.ZP.div.withConfig({componentId:"sc-b1d1a6c6-0"})(["display:flex;align-items:center;"]);let ty=function(e){var t=e.id,n=e.marketComponentType,r=(0,x.Ov)(t,n),l=r.miniChart,c=r.open,a=(0,x.F4)(t,n).bid,s=(0,e2.e)({prevClose:(0,q.U8)(c),lastPrice:(0,q.U8)(a)}).percentageGained,u=(0,o.useMemo)(function(){return!c||!a||!(c>0)||!(a>0)||s},[c,a,s]);return(0,i.jsx)(tm,{miniChart:l,profit:u,width:50,height:24})},tb=function(e){var t=e.id,n=e.marketComponentType,r=(0,m.jO)().isHorizon,o=(0,x.F4)(t,n),l=o.bid,c=o.lastPrice,a=o.tickRulesGroup,u=o.decimal,d=r?c:l;return(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,children:(0,W.Wi)(d,(0,W.os)(d,a,u),!1)})},tg=function(e){var t=e.id,n=e.marketComponentType,r=(0,m.jO)().isHorizon,o=(0,x.Ov)(t,n),l=o.open,c=o.prevClose,a=(0,x.F4)(t,n),u=a.bid,d=a.lastPrice,f=(0,e2.e)({prevClose:(0,q.U8)(r?c:l),lastPrice:(0,q.U8)(r?d:u)}),p=f.percentageDifference,h=f.percentageGained;return(0,i.jsxs)(Q.g,{typography:s.wZ.TEXT_S_REGULAR,profitLoss:(0,J.By)(h),children:[!!h&&"+",void 0!==(0,q.M7)(p)?"".concat((0,W.Wi)(p,2,!1),"%"):"--"]})},tx=function(e){var t=e.id,n=e.side,r=e.marketComponentType,o=(0,x.F4)(t,r),l=o.bid,c=o.ask,a=o.tickRulesGroup,s=o.decimal;
1return(0,i.jsx)(e9,{side:n,bid:l,ask:c,tickRulesGroup:a,decimal:s})},tS=function(e){var t,n=e.bid,r=e.ask,o=e.lastPrice,l=e.tickRulesGroup,c=e.decimal,a=(t=(0,m.jO)().isHorizon?o:n,null==t||null==r?null:r-t);return(0,i.jsx)(tv,{typography:s.wZ.TEXT_S_REGULAR,children:null===a?"--":(0,W.Wi)(a,(0,W.os)(a,l,c),!1)})};var tv=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-c4b47015-0"})(["color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],function(e){return e.theme.themeColors.text.default});let tP=function(e){var t=e.id,n=e.marketComponentType,r=(0,x.F4)(t,n),o=r.bid,l=r.ask,c=r.lastPrice,a=r.tickRulesGroup,s=r.decimal;return(0,i.jsx)(tS,{bid:o,ask:l,lastPrice:c,tickRulesGroup:a,decimal:s})},tO=function(e){var t=e.symbolId,n=e.marketComponentType,r=e.displayStyle===C.T2.SYM_SELL_BUY_SPREAD;return(0,o.useEffect)(function(){return eY.o.subscribeSymbolInViewport(n,t),function(){eY.o.unsubscribeSymbolInViewport(n,t)}},[n,t]),(0,i.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({miniChart:(0,i.jsx)(ty,{id:t,marketComponentType:n}),priceLabel:(0,i.jsx)(tb,{id:t,marketComponentType:n}),priceChangeLabel:(0,i.jsx)(tg,{id:t,marketComponentType:n}),spreadLabel:(0,i.jsx)(tP,{id:t,marketComponentType:n}),sellPriceLabel:r?(0,i.jsx)(tx,{id:t,side:e5.SELL,marketComponentType:n}):void 0,buyPriceLabel:r?(0,i.jsx)(tx,{id:t,side:e5.BUY,marketComponentType:n}):void 0},e))};n(26833);let tT=function(e){var t=(0,P.s0)(),n=eV().openContextMenu,r=e.id,l=e.displaySymbolTag,c=(0,m.jO)(),a=c.isCentroid,s=c.isHorizon,u=(0,x.ZA)(r),d=(null==u?void 0:u.symbol)||"",f=(0,te.Kh)(d),p=u.symbolType,h=(0,o.useCallback)(function(){k.$.onSelectOrderSymbol(d,p),t(j.oI.ASSETS)},[t,d,p]),y=(0,o.useCallback)(function(e){e.preventDefault(),e.stopPropagation(),n(d,f,e.clientX,e.clientY)},[n,d,f]),b=s?eh():ey(a);return(0,i.jsx)(tC,{onClick:h,onContextMenu:y,children:Object.values(b).map(function(e){return e.isSticky?(0,i.jsx)(tj,{$size:e.size,$minSize:e.minSize,children:e.cell(r,l)},e.accessorKey):(0,i.jsx)(tI,{$size:e.size,$minSize:e.minSize,children:e.cell(r,l)},e.accessorKey)})},"".concat(d,"-").concat(r))};var tC=l.ZP.tr.withConfig({componentId:"sc-c1446bd2-0"})(["display:flex;height:46px;position:relative;column-gap:6px;cursor:pointer;padding-inline:","px;> *{text-align:end;justify-content:flex-end;&:first-child{text-align:start;justify-content:flex-start;}}&:hover{background-color:",";& td{background-color:",";}}"],T.A.XS,function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.background.subtle}),tj=l.ZP.td.withConfig({componentId:"sc-c1446bd2-1"})(["width:",";min-width:","px;padding:0;margin:0;border:none;position:sticky;right:0;background-color:",";z-index:1;display:flex;align-items:center;justify-content:center;padding:6px ","px ","px ","px;box-sizing:border-box;"],function(e){var t=e.$size;return"string"==typeof t?t:"".concat(t||120,"px")},function(e){return e.$minSize||120},function(e){return e.theme.themeColors.background.default},T.A.XS,T.A.XS,T.A.XXS),tI=l.ZP.td.withConfig({componentId:"sc-c1446bd2-2"})(["width:",";min-width:","px;flex-shrink:0;display:flex;align-items:center;box-sizing:border-box;"],function(e){var t=e.$size;return"string"==typeof t?t:"".concat(t||120,"px")},function(e){return e.$minSize||120});let tw=function(e){var t=e.id,n=e.displaySymbolTag,r=(0,m.jO)().isHorizon,l=(0,o.useMemo)(function(){return r?t:eY.o.getPositionSymbolByOrderId(t)},[r,t]);return(0,o.useEffect)(function(){return l&&eY.o.subscribeSymbolInViewport(y.K.POSITIONS,l),function(){l&&eY.o.unsubscribeSymbolInViewport(y.K.POSITIONS,l)}},[l]),(0,i.jsx)(tT,{displaySymbolTag:n,id:t})},tL=function(e){var t=(0,P.s0)(),n=e.displaySymbolTag,r=e.symbolId,l=e.priceLabel,c=e.priceChangeLabel,a=e.spreadLabel,s=e.sellPriceLabel,u=e.buyPriceLabel,d=e.displayStyle===C.T2.SYM_SELL_BUY_SPREAD,f=eV().openContextMenu,h=(0,m.jO)().isHorizon,y=(0,x.g8)(r),b=(0,te.Kh)(r),g=y.description,S=y.t
1ype,v=y.online,O=(0,o.useMemo)(function(){return v?V.g.OPEN:V.g.CLOSE},[v]),T=(0,o.useCallback)(function(){E.l.onSymbolSelected(r,!0),E.l.onWatchlistFilterChanged(L.Bj.ALL),E.l.setInitial(!1),t(j.oI.TRADE)},[t,r]),I=(0,o.useCallback)(function(e){e.preventDefault(),e.stopPropagation(),f(r,b,e.clientX,e.clientY)},[f,r,b]);return(0,i.jsxs)(tk,{$isBuySellSpread:d,onClick:T,onContextMenu:I,children:[(0,i.jsx)(tE,{$isBuySellSpread:d,children:(0,i.jsx)(el,{symbolId:r,symbolType:S,description:g,displaySymbolTag:n&&d,descriptionWidth:"100%",dataTestId:p.Of.WATCHLIST_SYMBOL,marketStatusIcon:d&&!h?(0,i.jsx)(V.Z,{marketStatus:O}):void 0})}),d?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(tn,{sellPriceLabel:s,buyPriceLabel:u,spreadLabel:a})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t_,{children:[l,a]}),(0,i.jsxs)(tR,{children:[(0,i.jsxs)(tA,{children:[n&&(h?(0,i.jsx)(ei,{category:S}):(0,i.jsx)(eo.Z,{label:S})),!h&&(0,i.jsx)(V.Z,{marketStatus:O})]}),c]})]})]})};var tk=l.ZP.div.withConfig({componentId:"sc-e4a724d0-0"})(["display:flex;flex:1;padding:6px ","px;flex-direction:row;align-items:center;column-gap:","px;cursor:pointer;background-color:",";&:hover{background-color:",";}&.selected{background-color:",";}"],T.A.XS,function(e){return e.$isBuySellSpread?ev.gap:6},function(e){return e.theme.themeColors.background.default},function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.background.active}),tE=l.ZP.div.withConfig({componentId:"sc-e4a724d0-1"})(["min-width:0;",""],function(e){return e.$isBuySellSpread?"\n        flex: 1 1 ".concat(ev.symbolMinWidth,"px;\n      "):"flex: 2;"}),tR=l.ZP.div.withConfig({componentId:"sc-e4a724d0-2"})(["flex:1;display:flex;flex-direction:column;align-items:flex-end;min-width:0;gap:1px;"]),tA=l.ZP.div.withConfig({componentId:"sc-e4a724d0-3"})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-end;column-gap:","px;"],T.A.XXS),t_=l.ZP.div.withConfig({componentId:"sc-e4a724d0-4"})(["flex:1;display:flex;flex-direction:column;align-items:flex-end;min-width:0;"]);let tM=function(e){var t,n=e.id,r=(0,m.jO)().isHorizon,o=(0,x.M6)(n),l=o.bid,c=o.lastPrice,a=o.tickRulesGroup,u=o.decimal,d=r?c:l;return(0,i.jsx)(f.ZP,{typography:s.wZ.TEXT_M_REGULAR,children:null!=(t=(0,W.Wi)(d,(0,W.os)(d,a,u)))?t:"--"})},tZ=function(e){var t=e.id,n=(0,m.jO)().isHorizon,r=(0,x.g8)(t),o=r.prevClose,l=r.open,c=(0,x.M6)(t),a=c.bid,u=c.lastPrice,d=(0,e2.e)({prevClose:(0,q.U8)(n?o:l),lastPrice:(0,q.U8)(n?u:a)}),f=d.percentageDifference,p=d.percentageGained;return(0,i.jsxs)(Q.g,{typography:s.wZ.TEXT_M_REGULAR,profitLoss:(0,J.By)(p),children:[!!p&&"+",void 0!==(0,q.M7)(f)?"".concat((0,W.Wi)(f,2,!1),"%"):"--"]})},tK=function(e){var t=e.id,n=e.side,r=(0,x.M6)(t),o=r.bid,l=r.ask,c=r.tickRulesGroup,a=r.decimal;return(0,i.jsx)(e9,{side:n,bid:o,ask:l,tickRulesGroup:c,decimal:a})},tG=function(e){var t=e.id,n=(0,x.M6)(t),r=n.bid,o=n.ask,l=n.lastPrice,c=n.tickRulesGroup,a=n.decimal;return(0,i.jsx)(tS,{bid:r,ask:o,lastPrice:l,tickRulesGroup:c,decimal:a})},tD=function(e){var t=e.symbolId,n=e.displayStyle===C.T2.SYM_SELL_BUY_SPREAD;return(0,o.useEffect)(function(){return eY.o.subscribeSymbolInViewport(y.K.ALL,t),function(){eY.o.unsubscribeSymbolInViewport(y.K.ALL,t)}},[t]),(0,i.jsx)(tL,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({priceLabel:(0,i.jsx)(tM,{id:t}),priceChangeLabel:(0,i.jsx)(tZ,{id:t}),spreadLabel:(0,i.jsx)(tG,{id:t}),sellPriceLabel:n?(0,i.jsx)(tK,{id:t,side:e5.SELL}):void 0,buyPriceLabel:n?(0,i.jsx)(tK,{id:t,side:e5.BUY}):void 0},e))};var tz=n(84435),t$=n(11961),tN=n(55441);let tU=function(e){var t=e.displaySymbolTag,n=e.signal,r=n.status,l=n.confidence,a=n.modifiedDate,s=n.type,u=n.description,d=n.online,m=n.symbol,h=(0,c.$G)().t,y=(0,P.s0)(),b=(0,eq.U)({offset:25}),g=b.containerRef,x=b.descriptionWidth,S=(0,$.VC)().theme.themeColors,v=(0,tz.Ks)(S,h),O=v.getOrderStatusText,T=v.getOrderStatusColor,C=v.getConfidenceColor,I=(0,o.useCallback)(function(){t$.j.preSelectSignal(n),y(j.oI.SIGNAL)},[y,n]),w=(0,o.useMemo)(function(){return d?tt.g.OPEN:tt.g.CLOSE},[d]);return(0,i.jsxs)(tX,{onClick:I,children:[(0,i.jsx)(tB,{ref:g,children:(0,i.jsx)(el,{symbolId:m,symbolType:s,description:u,displaySymbolTag:t,descriptionWidth:x,dataTestId:p.Of.SIGNALS_SYMBOL})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tW,{children:(0,i.jsx)(f.ZP,{color:T(r),children:O(r)})}),(0,i.jsx)(tW,{children:(0,i.jsxs)(f.ZP,{color:C(l),children:[l,"%"]})}),(0,i.jsx)(tW,{children:(0,i.jsx)(f.ZP,{children:a?(0,tN.p6)(a):"--"})}),(0,i.jsx)(tW,{children:(0,i.jsx)(tF,{children:(0,i.jsx)(tt.$,{marketStatus:w})})})]})]})};var tX=l.ZP.div.withConfig({componentId:"sc-5c280b36-0"})(["display:flex;flex:1;padding:6px ","px;flex-direction:row;align-items:center;column-gap:6px;cursor:pointer;border-bottom:1px solid transparent;background-color:",";&:hover{background-color:",";}&.selected{background-color:",";border-bottom:",";}"],T.A.XS,function(e){return e.theme.themeColors.background.default},function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.background.active},function(e){var t=e.theme;return"1px solid ".concat(t.themeColors.background.default)}),tB=l.ZP.div.withConfig({componentId:"sc-5c280b36-1"})(["flex:2;min-width:0;"]),tW=l.ZP.div.withConfig({componentId:"sc-5c280b36-2"})(["flex:1;display:flex;text-align:start;&:nth-last-child(2){text-align:end;justify-content:flex-end;}&:last-child{flex:0.5;text-align:end;justify-content:flex-end;}"]),tF=l.ZP.div.withConfig({componentId:"sc-5c280b36-3"})(["margin-inline-start:","px;"],T.A.XXS);let tV=function(e){var t,n,r=e.symbolId,l=e.displaySymbolTag,c=(0,x.V9)(r);return(0,o.useEffect)(function(){if(c&&c.symbol)return eY.o.subscribeSymbolInViewport(y.K.SIGNALS,c.symbol),function(){eY.o.unsubscribeSymbolInViewport(y.K.SIGNALS,c.symbol)}},[c]),(0,i.jsx)(tU,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={displaySymbolTag:void 0!==l&&l,signal:c},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};var tH=function(e,t,n,r){switch(e){case y.K.ALL:return(0,i.jsx)(tD,{symbolId:t,displaySymbolTag:n,displayStyle:r},t);case y.K.FAVOURITES:return(0,i.jsx)(e3,{symbolId:t,displaySymbolTag:n},t);case y.K.POSITIONS:return(0,i.jsx)(tw,{id:t,displaySymbolTag:n},t);case y.K.SIGNALS:return(0,i.jsx)(tV,{symbolId:t,displaySymbolTag:n},t);default:return(0,i.jsx)(tO,{symbolId:t,displaySymbolTag:n,marketComponentType:e,displayStyle:r},t)}},tY=function(e,t){switch(e){case y.K.ALL:return(0,i.jsx)(ek,{displayStyle:t});case y.K.FAVOURITES:return(0,i.jsx)(M,{});case y.K.POSITIONS:return(0,i.jsx)(eb,{});case y.K.SIGNALS:return(0,i.jsx)(eR,{});default:return(0,i.jsx)(ew,{displayStyle:t})}};let tq=function(e){var t=e.type,n=e.listHeight,r=e.listRef,l=(0,P.s0)(),a=(0,c.$G)().t,s=I(t),u=(0,w.aL)(C.Gt.MARKETS_TABLE_DISPLAY_STYLE),d=S(t),f=(0,x.i7)(),m=(0,o.useMemo)(function(){return t===y.K.SIGNALS?f>20:!!s&&s.length>20},[t,s,f]),b=(0,o.useMemo)(function(){return s?m?s.slice(0,20):s:[]},[s,m]),g=(0,o.useCallback)(function(){return t===y.K.SIGNALS?void l(j.oI.SIGNAL):t===y.K.POSITIONS?void l(j.oI.ASSETS):void(l(j.oI.TRADE),setTimeout(function(){A(t)},100))},[l,t]),v=(0,o.useCallback)(function(e,n){var r=tH(t,e,d,u);return t===y.K.POSITIONS?r:(0,i.jsx)(t1,{children:(0,i.jsx)(t4,{children:r})},"".concat(e,"-").concat(n))},[t,d,u]);return(null==s?void 0:s.length)&&0!==s.length?(0,i.jsx)(eH,{children:(0,i.jsxs)(tJ,{ref:r,$height:n,"data-testid":"".concat(p.Of.MARKET_SECTION_LIST,"-").concat(t.toLocaleLowerCase().replace("_","-")),children:[(0,i.jsxs)(tQ,{children:[(0,i.jsx)(t6,{children:(0,i.jsx)(t3,{children:tY(t,u)})}),(0,i.jsx)(t0,{children:b.map(function(e,t){return v(e,t)})})]}),m&&(0,i.jsx)(t2,{children:(0,i.jsx)(t8,{children:(0,i.jsx)(O.ZP,{variant:O.eF.TEXT_ONLY_THEMED,onClick:g,children:a("View More")})})})]})}):(0,i.jsx)(eH,{children:(0,i.jsx)(_.Z,{variant:t===y.K.FAVOURITES?_.R.NO_FAVOURITES:_.R.MARKETS,label:(0,h.vI)(t)})})};var tJ=l.ZP.div.withConfig({componentId:"sc-e034ff43-0"})(["height:100%;flex:1 1 ","px;overflow:auto;position:relative;display:flex;flex-direction:column;"],function(e){return e.$height}),tQ=l.ZP.table.withConfig({componentId:"sc-e034ff43-1"})(["width:100%;min-width:100%;max-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;flex:1;"]),t0=l.ZP.tbody.withConfig({componentId:"sc-e034ff43-2"})(["width:100%;"]),t1=l.ZP.tr.withConfig({componentId:"sc-e034ff43-3"})(["display:flex;height:46px;position:relative;column-gap:6px;> *{text-align:end;justify-content:flex-end;&:first-child{text-align:start;justify-content:flex-start;}}"]),t4=l.ZP.td.withConfig({componentId:"sc-e034ff43-4"})(["flex:1;min-width:0;padding:0;margin:0;border:none;background:transparent;position:relative;"]),t2=l.ZP.div.withConfig({componentId:"sc-e034ff43-5"})(["display:flex;width:100%;height:40px;"]),t6=l.ZP.thead.withConfig({componentId:"sc-e034ff43-6"})(["position:sticky;top:0;z-index:2;background-color:",";"],function(e){return e.theme.themeColors.background.default}),t3=l.ZP.tr.withConfig({componentId:"sc-e034ff43-7"})(["box-sizing:border-box;display:flex;width:100%;height:31px;position:relative;column-gap:6px;padding:6px ","px;border-bottom:",";background-color:",";"],T.A.XS,function(e){var t=e.theme;return"1px solid ".concat(t.themeColors.border.subtle)},function(e){return e.theme.themeColors.background.default}),t8=l.ZP.div.withConfig({componentId:"sc-e034ff43-8"})(["display:flex;justify-content:center;align-items:center;height:40px;width:100%;button{height:100%;width:100%;min-height:40px;}"]),t5={margin:"auto 0px",padding:"0 0 0 2px"};let t9=function(e){var t=e.categories,n=e.handleChangeFilter,r=e.type,l=e.selectedCategory,f=e.ref,g=(0,c.$G)().i18n.language,x=(0,m.jO)().isHorizon,S=(0,o.useRef)(null);(0,o.useEffect)(function(){f&&S.current&&("function"==typeof f?f(S.current):f.current=S.current)},[f]);var P=(0,o.useMemo)(function(){if(r===y.K.TOP_GAINER||r===y.K.TOP_LOSER||r===y.K.TOP_PICK)return 342;if(x)if(r===y.K.POSITIONS)return 504;else r===y.K.ALL||y.K.FAVOURITES;return 248},[r,x]),O=(0,o.useMemo)(function(){return P-32-31},[P]),T=v((0,o.useMemo)(function(){return r===y.K.POSITIONS&&!x},[r,x])).mainListCallbackRef,C=function(e){var t=e.isOpen,n=e.onToggleDropdown;return(0,i.jsxs)(no,{onClick:n,"data-testid":p.Of.MARKET_SECTION_TIT
1LE_MORE_DROPDOWN,children:[(0,i.jsx)(nn,{typography:s.wZ.TEXT_M_REGULAR,children:(0,b.HZ)(l)}),t?(0,i.jsx)(ni,{icon:u.Ro.ARROW_UP,size:u.sk.S,style:t5}):(0,i.jsx)(ni,{icon:u.Ro.ARROW_DOWN,size:u.sk.S,style:t5})]})},j=(t||[]).map(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={dataTestId:p.Of.MARKET_SECTION_TITLE_MORE_DROPDOWN_ITEM},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t});return(0,i.jsxs)(t7,{ref:S,height:P,children:[(0,i.jsxs)(ne,{children:[(0,i.jsx)(nt,{typography:s.wZ.TEXT_M_MEDIUM,dataTestId:p.Of.MARKET_SECTION_TITLE,children:(0,h.s$)(r,g)}),(0,i.jsx)(nr,{children:(0,i.jsx)(d.Z,{options:j||[],onSelect:n,selectedValue:l,dropdownWidth:"152px",dropdownPlacement:a.s1.BOTTOM_END,variant:d.E.BASE,children:function(e){return C({isOpen:e.isOpen,onToggleDropdown:e.onToggleDropdown})}})})]}),(0,i.jsx)(nl,{children:(0,i.jsx)(tq,{type:r,listHeight:O,listRef:T})})]})};var t7=l.ZP.div.withConfig({componentId:"sc-a6dfe9c6-0"})(["display:flex;flex-direction:column;flex:1;background-color:",";box-sizing:border-box;min-width:303px;min-height:","px;"],function(e){return e.theme.themeColors.background.default},function(e){return e.height}),ne=l.ZP.div.withConfig({componentId:"sc-a6dfe9c6-1"})(["height:32px;padding:0px 8px;background-color:",";display:flex;align-items:center;justify-content:space-between;"],function(e){return e.theme.themeColors.background.active}),nt=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-a6dfe9c6-2"})(["color:",";"],function(e){return e.theme.themeColors.text.default}),nn=(0,l.ZP)(f.ZP).withConfig({componentId:"sc-a6dfe9c6-3"})(["color:",";"],function(e){return e.theme.themeColors.text.subtle}),nr=l.ZP.div.withConfig({componentId:"sc-a6dfe9c6-4"})([""]),ni=(0,l.ZP)(u.ZP).withConfig({componentId:"sc-a6dfe9c6-5"})(["color:",";"],function(e){return e.theme.themeColors.text.muted}),no=l.ZP.div.withConfig({componentId:"sc-a6dfe9c6-6"})(["display:flex;flex-direction:row;cursor:pointer;"]),nl=l.ZP.div.withConfig({componentId:"sc-a6dfe9c6-7"})(["position:relative;width:100%;height:100%;overflow:hidden;display:flex;flex:1;flex-direction:column;"])},66353:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(74512),i=n(32735),o=n(81182),l=n(41588),c=n(18034),a=n(66117),s=n(23794),u=n(74901);let d=function(){var e=(0,l.qU)(),t=(0,l.K$)(s.K.FAVOURITES),n=(0,o.$G)().i18n,d=(0,i.useMemo)(function(){return(0,a.xC)(e,n.language)},[e,n.language]),f=(0,i.useCallback)(function(e){c.o.onSymbolCategoryChanged(s.K.FAVOURITES,e)},[]);return(0,r.jsx)(u.Z,{categories:d,handleChangeFilter:f,type:s.K.FAVOURITES,selectedCategory:t})}},74361:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(74512),i=n(32735),o=n(81182),l=n(41588),c=n(18034),a=n(66117),s=n(23794),u=n(74901);let d=function(){var e=(0,l.qU)(),t=(0,l.K$)(s.K.POSITIONS),n=(0,o.$G)().i18n,d=(0,i.useMemo)(function(){return(0,a.xC)(e,n.language)},[e,n.language]),f=(0,i.useCallback)(function(e){c.o.onSymbolCategoryChanged(s.K.POSITIONS,e)},[]);return(0,r.jsx)(u.Z,{categories:d,handleChangeFilter:f,type:s.K.POSITIONS,selectedCategory:t})}},83282:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(74512),i=n(32735),o=n(81182),l=n(41588),c=n(18034),a=n(66117),s=n(23794),u=n(74901);let d=function(e){var t=e.ref,n=(0,l.qU)(),d=(0,l.K$)(s.K.TOP_GAINER),f=(0,o.$G)().i18n,p=(0,i.useMemo)(function(){return(0,a.xC)(n,f.language)},[n,f.language]),m=(0,i.useCallback)(function(e){c.o.onSymbolCategoryChanged(s.K.TOP_GAINER,e)},[]);return(0,r.jsx)(u.Z,{ref:t,categories:p,handleChangeFilter:m,type:s.K.TOP_GAINER,selectedCategory:d})}},24915:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(74512),i=n(32735),o=n(81182),l=n(41588),c=n(18034),a=n(66117),s=n(23794),u=n(74901);let d=function(e){var t=e.ref,n=(0,l.qU)(),d=(0,l.K$)(s.K.TOP_LOSER),f=(0,o.$G)().i18n,p=(0,i.useMemo)(function(){return(0,a.xC)(n,f.language)},[n,f.language]),m=(0,i.useCallback)(function(e){c.o.onSymbolCategoryChanged(s.K.TOP_LOSER,e)},[]);return(0,r.jsx)(u.Z,{ref:t,categories:p,handleChangeFilter:m,type:s.K.TOP_LOSER,selectedCategory:d})}},18060:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(74512),i=n(32735),o=n(81182),l=n(41588),c=n(18034),a=n(66117),s=n(23794),u=n(74901);let d=function(e){var t=e.ref,n=(0,l.qU)(),d=(0,l.K$)(s.K.TOP_PICK),f=(0,o.$G)().i18n,p=(0,i.useMemo)(function(){return(0,a.xC)(n,f.language)},[n,f.language]),m=(0,i.useCallback)(function(e){c.o.onSymbolCategoryChanged(s.K.TOP_PICK,e)},[]);return(0,r.jsx)(u.Z,{ref:t,categories:p,handleChangeFilter:m,type:s.K.TOP_PICK,selectedCategory:d})}},32654:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(74512),i=n(32735),o=n(81182),l=n(41588),c=n(18034),a=n(66117),s=n(23794),u=n(74901);let d=function(){var e=(0,l.qU)(),t=(0,l.K$)(s.K.ALL),n=(0,o.$G)().i18n,d=(0,i.useMemo)(function(){return(0,a.xC)(e,n.language)},[e,n.language]),f=(0,i.useCallback)(function(e){c.o.onSymbolCategoryChanged(s.K.ALL,e)},[]);return(0,r.jsx)(u.Z,{categories:d,handleChangeFilter:f,type:s.K.ALL,selectedCategory:t})}}}]);

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.