1"use strict";(self.webpackChunkb2core=self.webpackChunkb2core||[]).push([[3916],{83916(X,p,a){a.d(p,{TradingReportComponent:()=>G});var m=a(86970),_=a(65145),g=a(55981),u=a(39565),l=a(43383),h=a(9921),C=a(6458),T=a(38390),f=a(59378),R=a(87623),E=a(98962),M=a(15980),P=a(22778),D=a(48540),O=a(5727),I=a(50717),F=a(8081),b=a(56129),x=a(77153),v=a(91452),B=a(51381),c=a(16389),W=a(1233),t=a(88463);function A(n,i){if(1&n){const e=t.RV6();t.j41(0,"feature-widgets-performance-indicator-card",4),t.nI1(1,"translate"),t.bIt("selectCard",function(){const o=_.eBV(e).$implicit,d=t.XpG(),s=t.XpG();return _.Njj(s.updateSelectedIndicator(o.name,d))}),t.k0s()}if(2&n){const e=i.$implicit,r=t.XpG(),o=t.XpG();t.Y8G("absoluteChange",r.summary[e.name].absoluteChange)("canSelect",!0)("currentValue",r.summary[e.name].currentValue)("isActiveCard",o.selectedIndicator===e.name)("relativeChange",r.summary[e.name].relativeChange)("title",t.bMT(1,7,e.label))("trendDirection",r.summary[e.name].trendDirection)}}function L(n,i){if(1&n&&(t.j41(0,"div",1),t.Z7z(1,A,2,9,"feature-widgets-performance-indicator-card",3,t.fX1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Dyx(e.indicatorList)}}function S(n,i){if(1&n&&(t.nrm(0,"feature-widgets-report-chart",2),t.nI1(1,"translate")),2&n){const e=t.XpG();t.Y8G("chartName",t.bMT(1,5,e.chartName))("dates",e.dates)("points",e.points)("trendDirection",e.trendDirection)("xTickFormat",e.xTickFormat)}}
1function U(n,i){if(1&n&&(t.j41(0,"td"),t.EFF(1),t.nI1(2,"dateFormat"),t.k0s()),2&n){const e=t.XpG().$implicit,r=t.XpG(4);t.R7$(),t.JRh(t.i5U(2,1,e.startTime,r.dateFormat))}}function $(n,i){if(1&n&&(t.j41(0,"tr"),t.nVh(1,U,3,4,"td"),t.j41(2,"td"),t.EFF(3),t.k0s(),t.j41(4,"td"),t.EFF(5),t.k0s(),t.j41(6,"td"),t.EFF(7),t.nI1(8,"thousandSeparator"),t.k0s(),t.j41(9,"td"),t.EFF(10),t.nI1(11,"thousandSeparator"),t.k0s()()),2&n){const e=i.$implicit,r=t.XpG(4);t.R7$(),t.vxM(r.dateFormat?1:-1),t.R7$(2),t.JRh(null==e.numberOfActiveUsers?null:e.numberOfActiveUsers.toString()),t.R7$(2),t.JRh(null==e.numberOfTrades?null:e.numberOfTrades.toString()),t.R7$(2),t.JRh(t.bMT(8,6,null==e.tradingVolume?null:e.tradingVolume.toString())),t.R7$(3),t.Lme("",t.bMT(11,8,null==e.paymentAmount?null:e.paymentAmount.toString())," ",e.paymentCurrencyCode)}}function y(n,i){1&n&&(t.j41(0,"tbody"),t.Z7z(1,$,12,10,"tr",null,t.Vm6),t.k0s()),2&n&&(t.R7$(),t.Dyx(i))}function j(n,i){if(1&n&&(t.j41(0,"table")(1,"thead")(2,"tr")(3,"th"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"th"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"th"),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"th"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"th"),t.EFF(16),t.nI1(17,"translate"),t.k0s()()(),t.nVh(18,y,3,0,"tbody"),t.k0s()),2&n){let e;const r=t.XpG(),o=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,6,"%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.TableHeaderLabel.Date%%")," "),t.R7$(3),t.SpI(" ",t.bMT(8,8,"%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.TableHeaderLabel.ActiveTraders%%")," "),t.R7$(3),t.SpI(" ",t.bMT(11,10,"%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.TableHeaderLabel.Trades%%")," "),t.R7$(3),t.SpI(" ",t.bMT(14,12,"%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.TableHeaderLabel.TradingVol%%")," "),t.R7$(3),t.SpI(" ",t.bMT(17,14,"%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.TableHeaderLabel.RewardAmount%%")," "),t.R7$(2),t.vxM((e=o.getSortedDataPoints(r.dataPoints))?18:-1,e)}}function K(n,i){1&n&&(t.j41(0,"p",5),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.NoRecords%%")," "))}function V(n,i){1&n&&t.nVh(0,j,19,16,"table")(1,K,3,3,"p",5),2&n&&t.vxM(i.dataPoints.length?0:1)}let G=(()=>{class n extends F.S{constructor(){super(),this.selectedIndicator="numberOfActiveUsers",this.dates=null,this.points=null,this.trendDirection=null,this.chartName=null,this.dateFormat=null,this.xTickFormat=null,this.indicatorList=[{name:"numberOfActiveUsers",label:(0,l.x)("%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.PerformanceIndicatorLabel.ActiveTraders%%")},{name:"tradingVolume",label:(0,l.x)("%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.PerformanceIndicatorLabel.TradingVolume%%")},{name:"paymentAmount",label:(0,l.x)("%%B2Core.Shared.FeatureWidgets.Boards.IbRoom.Widgets.TradingReport.PerformanceIndicatorLabel.RewardAmount%%")}],this.filterParams$=new T.t(null),this.config=(0,_.WQX)(I.N),this.destroyer=(0,C.M)(),this.tradingReport$=this.filterParams$.pipe((0,E.p)(Boolean),(0,D.n)(e=>(0,f.z)([this.config.getTradingReportData(e),(0,R.of)(e)])),(0,O.M)(([,e])=>{this.dateFormat=(0,c.e)(e.groupBy),this.xTickFormat=(0,c.R)(e.groupBy)}),(0,M.T)(([e])=>e),(0,P.t)({refCount:!0,bufferSize:1}))}ngOnInit(){this.tradingReport$.pipe(this.destroyer()).subscribe(e=>{this.updateValuesForChart(e)})}getSortedDataPoints(e){return e.sort(W.O)}updateFilterParams(e){this.filterParams$.next(e)}updateSelectedIndicator(e,r){e!==this.selectedIndicator&&(this.selectedIndicator=e,this.updateValuesForChart(r))}updateValuesForChart(e){const r=this.filterParams$.getValue();if(!r)return;const{dates:o,points:d}=(0,B.Y)({indicatorName:this.selectedIndicator,dataPoints:e.dataPoints,dates:r});this.dates=o,this.points=d,this.trendDirection=e.summary[this.selectedIndicator].trendDirection,this.chartName=this.indicatorList.find(({name:s})=>s===this.selectedIndicator)?.label??null}makeDefaultSettings(){return null}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["feature-widgets-trading-report"]],features:[t.Vt3],decls:6,vars:7,consts:[[3,"changeForm"],[1,"wrap"],[3,"chartName","dates","points","trendDirection","xT
1ickFormat"],[3,"absoluteChange","canSelect","currentValue","isActiveCard","relativeChange","title","trendDirection"],[3,"selectCard","absoluteChange","canSelect","currentValue","isActiveCard","relativeChange","title","trendDirection"],[1,"no-records-template"]],template:function(r,o){if(1&r&&(t.j41(0,"feature-widgets-report-filter",0),t.bIt("changeForm",function(s){return o.updateFilterParams(s)}),t.k0s(),t.nVh(1,L,3,0,"div",1),t.nI1(2,"async"),t.nVh(3,S,2,7,"feature-widgets-report-chart",2),t.nVh(4,V,2,1),t.nI1(5,"async")),2&r){let d,s;t.R7$(),t.vxM((d=t.bMT(2,3,o.tradingReport$))?1:-1,d),t.R7$(2),t.vxM(o.points&&o.dates&&o.trendDirection&&o.xTickFormat?3:-1),t.R7$(),t.vxM((s=t.bMT(5,5,o.tradingReport$))?4:-1,s)}},dependencies:[b.p,v.S,x.c,m.Jj,h.D,u.w,g.az],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 24px 24px;box-sizing:border-box;gap:24px}.wrap[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:16px}.wrap[_ngcontent-%COMP%] feature-widgets-performance-indicator-card[_ngcontent-%COMP%]{flex:1}table[_ngcontent-%COMP%]{width:100%;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:4px;font-size:12px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:400;line-height:16px;color:var(--text-secondary)}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{line-height:20px}.no-records-template[_ngcontent-%COMP%]{padding:16px;text-align:center;color:var(--text-secondary)}"],changeDetection:0})}}return n})()}}]);
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.