1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[3736],{93736:(Vt,Se,o)=>{o.r(Se),o.d(Se,{LAZY_ENTRY_COMPONENTS:()=>Ht,LazyDecoratedSharedStatletsModule:()=>Mt});var d=o(70655),e=o(98678),g=o(73148),u=o(93115),_=(o(38937),o(45608)),B=o(60276),be=o(42878),ne=o(53426),Q=o(9237),L=o(21160),y=o(48358),b=o(96242),p=o(79849),h=o(57102),I=o(96342);let m=(()=>{class i{constructor(t){this.translateService=t}transform(t){if("i18n"===t.type)return this.translateService.get(t.value);if("fa-icon"===t.type){let n="";t.value.startsWith("fas-")&&(n="s");const s=t.value.split("-");return(0,Q.of)(`<i class="fa${n} fa-${s[s.length-1]}"></i>`)}return(0,Q.of)(t.value)}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(I.sK))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),w=(()=>{class i{constructor(t,n,s,r,l){this.parentInjector=t,this.colorService=n,this.alternativeLabelService=s,this.windowService=r,this.getStatletDataTypeServiceFor=l,this.renderLinks=!0}ngOnInit(){this.loadData(),this.loadColors()}loadData(){this.isInverseData()?this.loadInverseData():this.loadRegularData()}loadRegularData(){this.data$=this.windowService.widthCategory.pipe((0,L.w)(t=>(0,B.$)(...this.statlet.points.map(n=>(0,B.$)(...(0,_.Uh)(n.values)?Object.entries(n.values).map(([s,r])=>{const l=this.getHeaderById(this.statlet.columnHeaders,s),x=this.getStatletDataTypeServiceForHeader(l);return this.getHeaderName(l,x,s,t).pipe((0,y.U)(f=>Object.assign({name:f,value:r})))}):[]).pipe((0,L.w)(s=>{const r=this.getHeaderById(this.statlet.rowHeaders,n.id),l=this.getStatletDataTypeServiceForHeader(r),x={series:s};let f;this.renderLinks&&(0,_.Uh)(l)&&(f=l.getLinkByPoint(n)),f&&f.hasOwnProperty("href")&&(x.link=f);const C=this.getHeaderName(r,l,n.label,t).pipe((0,y.U)(A=>Object.assign({},x,{name:A})));return f&&f instanceof be.y?(0,ne.a)([C,f]).pipe((0,y.U)(([A,E])=>Object.assign({},A,{link:E}))):C}))))))}loadInverseData(){const t=[];this.statlet.points.forEach(n=>{((0,_.Uh)(n.values)?Object.keys(n.values):[]).forEach(s=>{t.indexOf(s)<0&&t.push(s)})}),this.data$=this.windowService.widthCategory.pipe((0,L.w)(n=>(0,B.$)(...t.map(s=>(0,B.$)(...this.statlet.points.map(r=>{const l=this.getHeaderById(this.statlet.rowHeaders,r.id),x=this.getStatletDataTypeServiceForHeader(l);return this.getHeaderName(l,x,r.label,n).pipe((0,y.U)(f=>Object.assign({name:f,value:r.values[s]})))})).pipe((0,L.w)(r=>{const l=this.getHeaderById(this.statlet.columnHeaders,s),x=this.getStatletDataTypeServiceForHeader(l),f={series:r};let C;this.renderLinks&&(0,_.Uh)(x)&&(C=x.getLinkByValue(s)),C&&C.hasOwnProperty("href")&&(f.link=C);const A=this.getHeaderName(l,x,s,n).pipe((0,y.U)(E=>Object.assign({},f,{name:E})));return C&&C instanceof be.y?(0,ne.a)([A,C]).pipe((0,y.U)(([E,fe])=>Object.assign({},E,{link:fe}))):A}))))))}getHeaderName(t,n,s,r){if((0,_.Uh)(r)&&(0,_.UE)(t.alternativeLabels)&&(0,_.Uh)(t.alternativeLabels[r]))return this.alternativeLabelService.transform(t.alternativeLabels[r]);if((0,_.Uh)(n)){let l;return l=(0,_.Uh)(t.headerName)?t.headerName:t.headerId,n.transform(l)}return(0,Q.of)(s)}getHeaderById(t,n){if((0,_.UE)(t)){const s=t.find(r=>r.headerId===n);if((0,_.Uh)(s))return s}return console.warn(`No header was found for ID "${n}", headers searched: `,t),null}getStatletDataTypeServiceForHeader(t){if((0,_.Uh)(t)){const n=this.getStatletDataTypeServiceFor(t.headerCategory,t.headerType,this.statlet.shortName);if((0,_.Uh)(n))return e.Injector.create({providers:[],parent:this.parentInjector}).get(n)}return null}isInverseData(){return this.statlet.graphtype.inverseData}loadColors(){this.colors$=this.data$.pipe((0,y.U)(t=>{let n=1;return t.length>0&&(n=this.isInverseData()?t.length:t[0].series.length),Object.assign({domain:this.colorService.getColorSet(n,this.statlet.style.palette?this.statlet.style.palette:this.palette)})}))}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-atmire-cua-abstract-single-statlet"]],inputs:{statlet:"statlet",renderLinks:"renderLinks",view:"view",size:"size",palette:"palette"},decls:0,vars:0,template:function(t,n){},encapsulation:2}),i})(),T=(()=>{class i extends w{constructor(t,n,s,r,l){super(t,n,s,r,l),this.parentInjector=t,this.colorService=n,this.alternativeLabelService=s,this.windowService=r,this.get
1StatletDataTypeServiceFor=l}loadData(){this.data$=this.windowService.widthCategory.pipe((0,L.w)(t=>(0,B.$)(...this.statlet.points.map(n=>{let s=0;Object.values(n.values).forEach(x=>s+=x);const r=this.getHeaderById(this.statlet.rowHeaders,n.id),l=this.getStatletDataTypeServiceForHeader(r);return this.getHeaderName(r,l,n.label,t).pipe((0,y.U)(x=>Object.assign({name:x,value:s})))}))))}loadColors(){this.colors$=this.data$.pipe((0,y.U)(t=>Object.assign({domain:this.colorService.getColorSet(t.length,this.statlet.style.palette?this.statlet.style.palette:this.palette)})))}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-atmire-cua-abstract-merged-single-statlet"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(t,n){},encapsulation:2}),i})();var j,S=o(97462),c=o(35103),v=o(76635);function Te(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-pie-chart",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("view",t.view)("results",e.\u0275\u0275pipeBind1(1,4,t.data$))("labels","small"!==t.size)("scheme",e.\u0275\u0275pipeBind1(2,6,t.colors$))}}let ae=((j=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||j)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},j.\u0275cmp=e.\u0275\u0275defineComponent({type:j,selectors:[["ds-atmire-cua-single-statlet-pie"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"pie-chart"],[3,"view","results","labels","scheme",4,"ngIf"],[3,"view","results","labels","scheme"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Te,3,8,"ngx-charts-pie-chart",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.JU,c.Ov],styles:[".pie-chart[_ngcontent-%COMP%]{min-height:250px}"]}),j);var O;function Fe(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275element(1,"span",7)(2,"span")(3,"span",8),e.\u0275\u0275elementStart(4,"span"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&i){const t=a.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275styleMap("background-color: "+t.color),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",t.series,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(": "+t.value)}}function De(i,a){1&i&&e.\u0275\u0275template(0,Fe,6,4,"div",5),2&i&&e.\u0275\u0275property("ngForOf",a.model)}function Ee(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275element(2,"span",8),e.\u0275\u0275text(3," \u2022 "),e.\u0275\u0275elementStart(4,"span"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"span",11),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()),2&i){const t=a.model;e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",t.series,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.value)}}function Be(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"ngx-charts-line-chart",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275template(5,De,1,1,"ng-template",null,3,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(7,Ee,8,3,"ng-template",null,4,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,9,t.data$))("view",t.view
1)("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(2,11,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(3,13,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("scheme",e.\u0275\u0275pipeBind1(4,15,t.colors$))}}ae=(0,d.__decorate)([(0,g.cu)(u.bN.PIE),(0,g.cu)(u.bN.PIE,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],ae);let ie=((O=class extends w{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||O)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},O.\u0275cmp=e.\u0275\u0275defineComponent({type:O,selectors:[["ds-atmire-cua-single-statlet-line-horizontal"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"horizontal-line-chart"],[3,"results","view","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","scheme",4,"ngIf"],[3,"results","view","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","scheme"],["seriesTooltipTemplate",""],["tooltipTemplate",""],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"],[3,"innerHTML"],[1,"tooltip-content"],[1,"tooltip-label"],[1,"tooltip-value"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Be,9,17,"ngx-charts-line-chart",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.sg,c.O5,v.Dw,c.Ov,I.X$],styles:[".horizontal-line-chart[_ngcontent-%COMP%]{min-height:250px;max-height:400px} .horizontal-line-chart path.line{stroke-width:3px}"]}),O);var P;function je(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-bar-horizontal-2d",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,11,t.data$))("view",t.view)("scheme",e.\u0275\u0275pipeBind1(2,13,t.colors$))("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(3,15,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(4,17,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("barPadding",1)("groupPadding",5)}}ie=(0,d.__decorate)([(0,g.cu)(u.bN.LINE_HORIZONTAL),(0,g.cu)(u.bN.LINE_HORIZONTAL,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],ie);let W=((P=class extends w{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||P)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},P.\u0275cmp=e.\u0275\u0275defineComponent({type:P,selectors:[["ds-atmire-cua-single-statlet-bar-horizontal"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"horizontal-bar-chart"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding","groupPadding",4,"ngIf"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding","groupPadding"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,je,5,19,"ngx-charts-bar-horizontal-2d",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.sN,c.Ov,I.X$],styles:[".horizontal-bar-chart[_ngcontent-%COMP%]{min-height:250px}"]}),P);W=(0,d.__decorate)([(0,g.cu)(u.bN.BAR_HORIZONTAL),(0,g.cu)(u.bN.BAR_HORIZONTAL,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],W);var $,Ce=o(29007),se=o(67522);function Oe(i,a){if(1&i&&(e.\u0275\u0275element(0,"ds-atmire-cua-world-heat-map",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("id",t.id)("minColour",t.minColour)("maxColour",t.maxColour)("labels",e.\u0275\u0275pipeBind1(1,5,t.labels$))("data",e.\u0275\u0275pipeBind1(2,7,t.data$))}}let re=(($=class extends w{constructor(a,t,n,s,r,l){super(a,n,s,r,l),this.parentInjector=a,this.router=t,this.colorService=n,this.alternativeLabelService=s,this.windowService=r,this.get
1StatletDataTypeServiceFor=l}ngOnInit(){super.ngOnInit(),this.id=this.statlet.id+"-world-heat-map-"+this.router.url;const a=this.colorService.getColorSet(1,this.statlet.style.palette?this.statlet.style.palette:this.palette);this.minColour="rgb(255,255,255)",this.maxColour=a[0]}loadData(){this.data$=(0,Q.of)(this.statlet.points.map(a=>{let t=0;return Object.values(a.values).forEach(n=>t+=n),new Ce.d(a.label,t)})),this.labels$=(0,ne.a)([this.data$,this.windowService.widthCategory]).pipe((0,y.U)(([a,t])=>[...a.map(n=>{let s=n.id;const r=this.statlet.rowHeaders.find(l=>l.headerName===n.id);return(0,_.Uh)(r)&&(0,_.Uh)(r.alternativeLabels?.[t])&&(s=r.alternativeLabels[t].value),Object.assign({id:n.id,label:s})})]),(0,y.U)(a=>{const t={};return a.forEach(n=>{t[n.id]=n.label}),t}))}}).\u0275fac=function(a){return new(a||$)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(se.F0),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},$.\u0275cmp=e.\u0275\u0275defineComponent({type:$,selectors:[["ds-atmire-cua-single-statlet-map"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:5,consts:[[1,"map-chart"],[3,"id","minColour","maxColour","labels","data",4,"ngIf"],[3,"id","minColour","maxColour","labels","data"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Oe,3,9,"ds-atmire-cua-world-heat-map",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)&&e.\u0275\u0275pipeBind1(3,3,t.labels$)))},dependencies:[c.O5,Ce.u,c.Ov]}),$);var N;function Pe(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-number-card",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("view",t.view)("results",e.\u0275\u0275pipeBind1(1,3,t.data$))("scheme",e.\u0275\u0275pipeBind1(2,5,t.colors$))}}re=(0,d.__decorate)([(0,g.cu)(u.bN.MAP),(0,g.cu)(u.bN.MAP,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,se.F0,h.F,m,p.I,Function])],re);let le=((N=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||N)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},N.\u0275cmp=e.\u0275\u0275defineComponent({type:N,selectors:[["ds-atmire-cua-single-statlet-number"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"number-chart"],[3,"view","results","scheme",4,"ngIf"],[3,"view","results","scheme"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Pe,3,7,"ngx-charts-number-card",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.vg,c.Ov]}),N);var z;function $e(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-bar-vertical-2d",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,11,t.data$))("view",t.view)("scheme",e.\u0275\u0275pipeBind1(2,13,t.colors$))("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(3,15,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(4,17,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("barPadding",1)("groupPadding",5)}}le=(0,d.__decorate)([(0,g.cu)(u.bN.NUMBER),(0,g.cu)(u.bN.NUMBER,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],le);let oe=((z=class extends W{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.get
1StatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||z)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},z.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["ds-atmire-cua-single-statlet-bar-vertical"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"vertical-bar-chart"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding","groupPadding",4,"ngIf"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding","groupPadding"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,$e,5,19,"ngx-charts-bar-vertical-2d",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.H5,c.Ov,I.X$]}),z);oe=(0,d.__decorate)([(0,g.cu)(u.bN.BAR_VERTICAL),(0,g.cu)(u.bN.BAR_VERTICAL,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],oe);var k,Ne=o(41966),ye=o(28449);function ze(i,a){1&i&&e.\u0275\u0275element(0,"div",7)}const ke=function(i){return{default:i}};function He(i,a){if(1&i&&(e.\u0275\u0275element(0,"th",8),e.\u0275\u0275pipe(1,"translate")),2&i){const t=a.$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(1,1,"statlets.type."+n.statlet.shortName+"."+(n.inverseData?n.statlet.graphtype.listViewOptions.rowLabelAxis:n.statlet.graphtype.listViewOptions.columnLabelAxis)+"-axis."+t.name,e.\u0275\u0275pureFunction1(4,ke,t.name)),e.\u0275\u0275sanitizeHtml)}}const Me=function(i){return{background:i}};function Ve(i,a){if(1&i&&e.\u0275\u0275element(0,"div",14),2&i){const t=e.\u0275\u0275nextContext().ngVar,n=e.\u0275\u0275nextContext().index;e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(1,Me,t.domain[n%t.domain.length]))}}function Re(i,a){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ve,1,3,"div",13),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.displayColours)}}function Ge(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"a",15),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("routerLink",t.link.href)("queryParams",t.link.queryParams),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.name)}}function Ue(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.name)}}function Xe(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"td",16),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"dsDecimal"),e.\u0275\u0275elementEnd()),2&i){const t=a.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,t.value,"1.0-2"))}}function Ze(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",9),e.\u0275\u0275template(2,Re,2,1,"ng-container",0),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275template(4,Ge,2,3,"a",10),e.\u0275\u0275template(5,Ue,2,1,"span",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,Xe,3,4,"td",12),e.\u0275\u0275elementEnd()),2&i){const t=a.$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngVar",e.\u0275\u0275pipeBind1(3,4,n.colors$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.renderLinks&&t.link),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.renderLinks||!t.link),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.series)}}function Ye(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"table",2)(1,"thead")(2,"tr")(3,"th",3),e.\u0275\u0275template(4,ze,1,0,"div",4),e.\u0275\u0275elementStart(5,"span"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(8,He,2,6,"th",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"tbody"),e.\u0275\u0275template(10,Ze,7,6,"tr",6),e.\u0275\u0275elementEnd()()),2&i){const t=e.\u0275\u0275nextContext().ngVar,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",n.displayColours),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,4,"statlets.type."+n.statlet.shortName+"."+(n.inverseData?n.statlet.graphtype.listViewOptions.columnLabelAxis:n.statlet.graphtype.listViewOptions.rowLabelAxis)+"-axis")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t[0].series),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t)}}function Ke(i,a){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ye,11,6,"table",1),e.\u0275\u0275elementContainerEnd()),2&i){const t=a.ngVar;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==t?null:t.length)>0)}}let J=((k=class extends w{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.get
1StatletDataTypeServiceFor=r,this.displayColours=!1,this.inverseData=null}isInverseData(){return(0,_.Uh)(this.inverseData)&&this.inverseData||(0,_.xI)(this.inverseData)&&super.isInverseData()}loadColors(){this.colors$=this.data$.pipe((0,y.U)(a=>Object.assign({domain:this.colorService.getColorSet(a.length,this.statlet.style.palette?this.statlet.style.palette:this.palette)})))}}).\u0275fac=function(a){return new(a||k)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},k.\u0275cmp=e.\u0275\u0275defineComponent({type:k,selectors:[["ds-atmire-cua-single-statlet-table"]],inputs:{displayColours:"displayColours",inverseData:"inverseData"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[[4,"ngVar"],["class","table table-striped",4,"ngIf"],[1,"table","table-striped"],[1,"d-flex"],["class","legend-color mx-2 align-self-center",4,"ngIf"],["class","text-right",3,"innerHTML",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"legend-color","mx-2","align-self-center"],[1,"text-right",3,"innerHTML"],[1,"text-wrap","d-flex"],[3,"routerLink","queryParams",4,"ngIf"],[4,"ngIf"],["class","text-wrap text-right",4,"ngFor","ngForOf"],["class","legend-color mx-2 align-self-center",3,"ngStyle",4,"ngIf"],[1,"legend-color","mx-2","align-self-center",3,"ngStyle"],[3,"routerLink","queryParams"],[1,"text-wrap","text-right"]],template:function(a,t){1&a&&(e.\u0275\u0275template(0,Ke,2,1,"ng-container",0),e.\u0275\u0275pipe(1,"async")),2&a&&e.\u0275\u0275property("ngVar",e.\u0275\u0275pipeBind1(1,1,t.data$))},dependencies:[c.sg,c.O5,c.PC,se.rH,Ne.g,c.Ov,I.X$,ye.k],styles:["table[_ngcontent-%COMP%]{margin:0}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-top:1px solid #dee2e6}.legend-color[_ngcontent-%COMP%]{width:20px;min-width:20px;height:20px;border-radius:4px}"]}),k);var H;function We(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-gauge",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("view",t.view)("results",e.\u0275\u0275pipeBind1(1,3,t.data$))("scheme",e.\u0275\u0275pipeBind1(2,5,t.colors$))}}J=(0,d.__decorate)([(0,g.cu)(u.bN.TABLE),(0,g.cu)(u.bN.LIST),(0,g.cu)(u.bN.TABLE,S._.StatletCard),(0,g.cu)(u.bN.LIST,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],J);let ce=((H=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||H)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},H.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["ds-atmire-cua-single-statlet-gauge"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"gauge-chart"],[3,"view","results","scheme",4,"ngIf"],[3,"view","results","scheme"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,We,3,7,"ngx-charts-gauge",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.Ob,c.Ov],styles:[".gauge-chart[_ngcontent-%COMP%]{display:grid;min-height:250px;max-height:300px}"]}),H);var M;function Qe(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-area-chart",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,9,t.data$))("view",t.view)("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(2,11,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(3,13,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("scheme",e.\u0275\u0275pipeBind1(4,15,t.colors$))}}ce=(0,d.__decorate)([(0,g.cu)(u.bN.GAUGE),(0,g.cu)(u.bN.GAUGE,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],ce);let de=((M=class extends w{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.get
1StatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||M)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},M.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["ds-atmire-cua-single-statlet-area"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"area-chart"],[3,"results","view","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","scheme",4,"ngIf"],[3,"results","view","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","scheme"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Qe,5,17,"ngx-charts-area-chart",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.rt,c.Ov,I.X$],styles:[".area-chart[_ngcontent-%COMP%]{min-height:250px;max-height:400px} .horizontal-line-chart path.line{stroke-width:3px}"]}),M);var V;function Je(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-bar-horizontal-stacked",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,10,t.data$))("view",t.view)("scheme",e.\u0275\u0275pipeBind1(2,12,t.colors$))("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(3,14,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(4,16,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("barPadding",1)}}de=(0,d.__decorate)([(0,g.cu)(u.bN.AREA),(0,g.cu)(u.bN.AREA,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],de);let pe=((V=class extends w{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||V)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},V.\u0275cmp=e.\u0275\u0275defineComponent({type:V,selectors:[["ds-atmire-cua-single-statlet-bar-horizontal-stacked"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"horizontal-bar-chart"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding",4,"ngIf"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Je,5,18,"ngx-charts-bar-horizontal-stacked",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.fl,c.Ov,I.X$],styles:[".horizontal-bar-chart[_ngcontent-%COMP%]{min-height:250px}"]}),V);var R;function qe(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-bar-vertical-stacked",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,10,t.data$))("view",t.view)("scheme",e.\u0275\u0275pipeBind1(2,12,t.colors$))("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(3,14,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(4,16,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("barPadding",1)}}pe=(0,d.__decorate)([(0,g.cu)(u.bN.BAR_HORIZONTAL_STACKED),(0,g.cu)(u.bN.BAR_HORIZONTAL_STACKED,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],pe);let he=((R=class extends W{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.get
1StatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||R)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},R.\u0275cmp=e.\u0275\u0275defineComponent({type:R,selectors:[["ds-atmire-cua-single-statlet-bar-vertical-stacked"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"vertical-bar-chart"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding",4,"ngIf"],[3,"results","view","scheme","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","barPadding"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,qe,5,18,"ngx-charts-bar-vertical-stacked",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.XK,c.Ov,I.X$]}),R);var G;function et(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-area-chart-stacked",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,9,t.data$))("view",t.view)("xAxis",!0)("yAxis",!0)("xAxisLabel",e.\u0275\u0275pipeBind1(2,11,"statlets.type."+t.statlet.shortName+".x-axis"))("yAxisLabel",e.\u0275\u0275pipeBind1(3,13,"statlets.type."+t.statlet.shortName+".y-axis"))("showXAxisLabel",!0)("showYAxisLabel",!0)("scheme",e.\u0275\u0275pipeBind1(4,15,t.colors$))}}he=(0,d.__decorate)([(0,g.cu)(u.bN.BAR_VERTICAL_STACKED),(0,g.cu)(u.bN.BAR_VERTICAL_STACKED,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],he);let me=((G=class extends w{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||G)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},G.\u0275cmp=e.\u0275\u0275defineComponent({type:G,selectors:[["ds-atmire-cua-single-statlet-area-stacked"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"area-chart"],[3,"results","view","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","scheme",4,"ngIf"],[3,"results","view","xAxis","yAxis","xAxisLabel","yAxisLabel","showXAxisLabel","showYAxisLabel","scheme"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,et,5,17,"ngx-charts-area-chart-stacked",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.vz,c.Ov,I.X$],styles:[".area-chart[_ngcontent-%COMP%]{min-height:250px;max-height:400px} .horizontal-line-chart path.line{stroke-width:3px}"]}),G);var U;function tt(i,a){if(1&i&&(e.\u0275\u0275element(0,"ngx-charts-pie-chart",2),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("view",t.view)("results",e.\u0275\u0275pipeBind1(1,5,t.data$))("labels","small"!==t.size)("scheme",e.\u0275\u0275pipeBind1(2,7,t.colors$))("doughnut",!0)}}me=(0,d.__decorate)([(0,g.cu)(u.bN.AREA_STACKED),(0,g.cu)(u.bN.AREA_STACKED,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],me);let ge=((U=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}}).\u0275fac=function(a){return new(a||U)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},U.\u0275cmp=e.\u0275\u0275defineComponent({type:U,selectors:[["ds-atmire-cua-single-statlet-donut"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"pie-chart"],[3,"view","results","labels","scheme","doughnut",4,"ngIf"],[3,"view","results","labels","scheme","doughnut"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,tt,3,9,"ngx-charts-pie-chart",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.data$)))},dependencies:[c.O5,v.JU,c.Ov],styles:[".pie-chart[_ngcontent-%COMP%]{min-height:250px}"]}),U);ge=(0,d.__decorate)([(0,g.cu)(u.bN.DONUT),(0,g.cu)(u.bN.DONUT,S._.StatletCard),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],ge);let Ie=(()=>{class i{constructor(){this.hasData=!0}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-atmire-cua-abstract-single-statlet-wrapper"]],inputs:{statlet:"statlet",size:"size",context:"context",palette:"palette",hasData:"hasData"},decls:0,vars:0,template:function(t,n){},encapsulation:2}),i})();var X,ue=o(88912),nt=o(27115),we=o(80161);function at(i,a){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15)(1,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(s.showListView=!s.showListView)}),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()}if(2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,1,t.showListView?"statlets.hide-data":"statlets.show-data"))}}function it(i,a){if(1&i&&(e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275element(1,"ds-atmire-cua-single-statlet-table",18),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("statlet",t.statlet)("inverseData",t.statlet.graphtype.listViewOptions.inverseData)("displayColours",t.statlet.graphtype.listViewOptions.colours)("size",t.size)}}const st=function(i,a){return[i,a]};let q=((X=class extends Ie{constructor(a){super(),this.statletService=a,this.showListView=!1,this.subs=[]}ngOnDestroy(){this.subs.forEach(a=>a.unsubscribe())}downloadCSV(){this.subs.push(this.statletService.exportAsCSV(this.statlet.id).subscribe(a=>{(0,nt.saveAs)(a,`${this.statlet.shortName}.csv`)}))}}).\u0275fac=function(a){return new(a||X)(e.\u0275\u0275directiveInject(we.M))},X.\u0275cmp=e.\u0275\u0275defineComponent({type:X,selectors:[["ds-atmire-cua-single-statlet-card"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:22,vars:24,consts:[["dsExportAsImage","",1,"card",3,"hidden","fileName"],[1,"card-header","d-flex","align-items-baseline"],[1,"flex-grow-1"],["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","","type","button",1,"btn","btn-light","btn-sm","px-1","no-caret"],[1,"fas","fa-fw","fa-ellipsis-v"],["ngbDropdownMenu",""],["dsExportAsImageTrigger","","ngbDropdownItem",""],["ngbDropdownItem","",3,"click"],["dsExportAsImageDom","",1,"overflow-auto"],[1,"card-body","w-100"],["card",""],[3,"statlet","view","context","palette","size"],["data-html2canvas-ignore","true","class","w-100",4,"ngIf"],["class","w-100 overflow-auto",4,"ngIf"],["data-html2canvas-ignore","true",1,"w-100"],[1,"btn","btn-sm","btn-outline-primary","float-right","m-2",3,"click"],[1,"w-100","overflow-auto"],[3,"statlet","inverseData","displayColours","size"]],template:function(a,t){if(1&a&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275element(2,"i"),e.\u0275\u0275elementStart(3,"span",2),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",3)(7,"button",4),e.\u0275\u0275element(8,"i",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",6)(10,"button",7),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"button",8),e.\u0275\u0275listener("click",function(){return t.downloadCSV()}),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(16,"div",9)(17,"div",10,11),e.\u0275\u0275element(19,"ds-atmire-cua-single-statlet-graph-loader",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(20,at,4,3,"div",13),e.\u0275\u0275template(21,it,2,4,"div",14),e.\u0275\u0275elementEnd()()),2&a){const n=e.\u0275\u0275reference(18);e.\u0275\u0275property("hidden",!t.statlet.graphtype||!t.hasData)("fileName",t.statlet.shortName),e.\u0275\u0275advance(2),e.\u0275\u0275classMapInterpolate1("fa fa-",t.statlet.graphtype.fa," mr-2"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,15,"statlets.type."+t.statlet.shortName+".title")),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(12,17,"statlets.options.export-image")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(15,19,"export-as-tabular-data.csv")),e.\u0275\u0275advance(5),e.\u0275\u0275property("statlet",t.statlet)("view",e.\u0275\u0275pureFunction2(21,st,n.offsetWidth,n.offsetHeight))("context",t.context)("palette",t.palette)("size",t.size),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.statlet.graphtype.listViewOptions.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showListView)}},styles:[".card-body[_ngcontent-%COMP%]{display:grid;padding:0;min-height:auto}.flip-horizontal-rotate-90[_ngcontent-%COMP%]{transform:rotate(90deg) scaleX(-1)}"]}),X);var F;q=(0,d.__decorate)([(0,ue.Dn)(ue.go),(0,d.__metadata)("design:paramtypes",[we.M])],q);const rt=function(i,a){return[i,a]};let ee=((F=class extends Ie{constructor(){super(...arguments),this.width=100,this.height=100}}).\u0275fac=function(){let i;
1return function(t){return(i||(i=e.\u0275\u0275getInheritedFactory(F)))(t||F)}}(),F.\u0275cmp=e.\u0275\u0275defineComponent({type:F,selectors:[["ds-atmire-cua-single-statlet-inline"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:14,consts:[[1,"inline-statlet-wrapper","d-inline-block",3,"hidden"],["wrapper",""],[3,"statlet","view","context","palette","size"]],template:function(a,t){if(1&a&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275element(2,"ds-atmire-cua-single-statlet-graph-loader",2),e.\u0275\u0275elementEnd()),2&a){const n=e.\u0275\u0275reference(1);e.\u0275\u0275styleProp("max-width",t.width,"px")("max-height",t.height,"px"),e.\u0275\u0275property("hidden",!t.statlet.graphtype||!t.hasData),e.\u0275\u0275attribute("graphtype",t.statlet.graphtype.id),e.\u0275\u0275advance(2),e.\u0275\u0275property("statlet",t.statlet)("view",e.\u0275\u0275pureFunction2(11,rt,n.offsetWidth,n.offsetHeight))("context",t.context)("palette",t.palette)("size",t.size)}}}),F);ee=(0,d.__decorate)([(0,ue.Dn)(S._.StatletInline)],ee);const lt=["textEl"],ot=["ds-ngx-custom-charts-card-series",""];function ct(i,a){if(1&i&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275element(0,"rect",2)),2&i){const t=a.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("fill",n.emptyColor),e.\u0275\u0275attribute("x",t.x)("y",t.y)("width",t.width)("height",t.height)}}function dt(i,a){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"g")(1,"g",3),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit,l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.onClick(r.data))}),e.\u0275\u0275element(2,"rect",4),e.\u0275\u0275elementStart(3,"text",5),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"text",6,7),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"dsDecimal"),e.\u0275\u0275elementEnd()()()}if(2&i){const t=a.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275attribute("transform","translate("+t.x+","+t.y+")"),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("fill",t.color),e.\u0275\u0275attribute("width",t.width)("height",t.height),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("font-size",10,"pt"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.label," "),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("fill",n.textColor)("font-size",n.txtFontSize,"pt"),e.\u0275\u0275attribute("x",n.cardX)("y",n.cardY),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(8,15,t.data.value,"1.0-2")," ")}}var D=(()=>{return(i=D||(D={}))[i.Center=0]="Center",i[i.BottomLeft=1]="BottomLeft",D;var i})();let pt=(()=>{class i{constructor(t,n){this.cd=t,this.zone=n,this.innerPadding=0,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.alignment=D.Center,this.select=new e.EventEmitter,this.cardX=0,this.cardY=0,this.txtFontSize=18,this.scaling=!0}ngOnChanges(t){this.scaling=!0,this.update()}update(){if(this.data.length>2){const n=this.valueFormatting||(l=>l.value.toLocaleString()),s=this.data.map(l=>l&&l.data&&typeof l.data.value<"u"&&null!==l.data.value?n({data:l.data,label:l?l.data.name:"",value:l&&l.data?l.data.value:""}).length:0).sort((l,x)=>x-l),r=Math.ceil(this.data.length/2);this.medianSize=s[r]}const t=this.getCards();this.cards=t.filter(n=>null!==n.data.value),this.emptySlots=t.filter(n=>null===n.data.value),setTimeout(()=>{this.scaleText()},8)}getCards(){const t="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],n="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map((s,r)=>{let l=s.data.name;l=l&&"Date"===l.constructor.name?l.toLocaleDateString():l&&l.toLocaleString();const x=s.data.value,f=l?this.colors.getColor(l):this.emptyColor;return{x:s.x,y:s.y,width:s.width-n,height:s.height-t,color:this.emptyColor,bandColor:this.emptyColor,textColor:this.textColor||this.cardColor||f||"#000",label:l,data:s.data,tooltipText:`${l}: ${x}`}})}scaleText(){this.zone.run(()=>{const{width:t,height:n}=this.textEl.nativeElement.getBoundingClientRect();if(0!==t&&0!==n){if(t>this.dims.width)return this.txtFontSize-=1,this.cd.markForCheck(),void setTimeout(()=>{this.scaleText()},8);switch(this.alignment){case D.Center:this.cardX=this.dims.width/2-t/2,this.cardY=this.dims.height/2-n/2;break;case D.BottomLeft:this.cardX=0,this.cardY=this.dims.height-n;break;default:this.cardX=this.dims.width/2-t/2,this.cardY=this.dims.height/2-n/2}this.cd.markForCheck(),this.scaling=!1}})}trackBy(t,n){return n.label}onClick(t){this.select.emit(t)}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.NgZone))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["g","ds-ngx-custom-c
1harts-card-series",""]],viewQuery:function(t,n){if(1&t&&e.\u0275\u0275viewQuery(lt,5),2&t){let s;e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(n.textEl=s.first)}},inputs:{data:"data",slots:"slots",dims:"dims",colors:"colors",innerPadding:"innerPadding",cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",animations:"animations",alignment:"alignment"},outputs:{select:"select"},features:[e.\u0275\u0275NgOnChangesFeature],attrs:ot,decls:3,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["text-anchor","start","dominant-baseline","hanging",1,"number-label"],["text-anchor","start","dominant-baseline","hanging",1,"number-value"],["textEl",""]],template:function(t,n){1&t&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"svg"),e.\u0275\u0275template(1,ct,1,6,"rect",0),e.\u0275\u0275template(2,dt,9,18,"g",1),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.emptySlots)("ngForTrackBy",n.trackBy),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.cards)("ngForTrackBy",n.trackBy))},dependencies:[c.sg,ye.k],encapsulation:2,changeDetection:0}),i})();const ht=function(i,a){return[i,a]};let mt=(()=>{class i extends v.ep{constructor(){super(...arguments),this.emptyColor="rgba(0, 0, 0, 0)",this.innerPadding=0,this.margin=[0,0,0,0]}get clickable(){return!!this.select.observers.length}update(){super.update(),this.dims=(0,v.iG)({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`;const t=(0,v.ww)(this.dims,this.results.length,150),n=t[0]*t[1],s=this.results.slice();for(;s.length<n;)s.push({value:null});this.data=(0,v.Rn)(this.dims,s,150,this.designatedTotal)}getDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){this.colors=new v.vH(this.scheme,"ordinal",this.domain,this.customColors)}}return i.\u0275fac=function(){let a;return function(n){return(a||(a=e.\u0275\u0275getInheritedFactory(i)))(n||i)}}(),i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-ngx-custom-number-inline"]],inputs:{cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal",alignment:"alignment"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:5,vars:23,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ds-ngx-custom-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","alignment","select"],["number",""]],template:function(t,n){if(1&t&&(e.\u0275\u0275elementStart(0,"ngx-charts-chart",0),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(1,"svg")(2,"g",1)(3,"g",2,3),e.\u0275\u0275listener("select",function(r){return n.onClick(r)}),e.\u0275\u0275elementEnd()()()()),2&t){const s=e.\u0275\u0275reference(4);e.\u0275\u0275property("view",e.\u0275\u0275pureFunction2(20,ht,n.width,n.height))("showLegend",!1)("animations",n.animations),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("clickable",n.clickable),e.\u0275\u0275attribute("transform",n.transform),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("invisible",s.scaling),e.\u0275\u0275property("colors",n.colors)("cardColor",n.cardColor)("bandColor",n.bandColor)("textColor",n.textColor)("emptyColor",n.emptyColor)("data",n.data)("dims",n.dims)("innerPadding",n.innerPadding)("valueFormatting",n.valueFormatting)("labelFormatting",n.labelFormatting)("animations",n.animations)("alignment",n.alignment)}},dependencies:[v.xH,pt],styles:[".ngx-charts{float:left;overflow:visible} .ngx-charts .circle, .ngx-charts .bar, .ngx-charts .arc{cursor:pointer} .ngx-charts .bar.active, .ngx-charts .bar:hover, .ngx-charts .cell.active, .ngx-charts .cell:hover, .ngx-charts .arc.active, .ngx-charts .arc:hover, .ngx-charts .card.active, .ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out} .ngx-charts .bar:focus, .ngx-charts .cell:focus, .ngx-charts .arc:focus, .ngx-charts .card:focus{outline:none} .ngx-charts .bar.hidden, .ngx-charts .cell.hidden, .ngx-charts .arc.hidden, .ngx-charts .card.hidden{display:none} .ngx-charts g:focus{outline:none} .ngx-charts .line-series.inactive, .ngx-charts .line-series-range.inactive, .ngx-charts .polar-series-path.inactive, .ngx-charts .polar-series-area.inactive, .ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2} .ngx-charts .line-highlight{display:none} .ngx-charts .line-highlight.active{display:block} .ngx-charts .area{opacity:.6}
1 .ngx-charts .circle:hover{cursor:pointer} .ngx-charts .label{font-size:12px;font-weight:400} .ngx-charts .tooltip-anchor{fill:#000} .ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none} .ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5} .ngx-charts .refline-label{font-size:9px} .ngx-charts .reference-area{fill-opacity:.05;fill:#000} .ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3} .ngx-charts .grid-panel rect{fill:none} .ngx-charts .grid-panel.odd rect{fill:#0000000d} .cell .trimmed-label{font-size:12px;pointer-events:none;overflow:hidden;text-align:left;line-height:1em} .cell .trimmed-label p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;padding:0;margin:0} .cell .value-text{pointer-events:none} .number-card.clickable .cell .card, .number-card.clickable .cell .card-band{cursor:pointer}"]}),i})();var Z;const gt=function(i,a){return[i,a]};function ut(i,a){if(1&i&&(e.\u0275\u0275element(0,"ds-ngx-custom-number-inline",3),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext(),n=e.\u0275\u0275reference(1);e.\u0275\u0275property("view",e.\u0275\u0275pureFunction2(10,gt,0===n.offsetWidth?t.view[0]:n.offsetWidth,0===n.offsetHeight?t.view[1]:n.offsetHeight))("results",e.\u0275\u0275pipeBind1(1,6,t.data$))("textColor",t.palette?t.palette[0]:void 0)("scheme",e.\u0275\u0275pipeBind1(2,8,t.colors$))("alignment",t.alignment)("animations",!1)}}let ve=((Z=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r,this.alignment=D.BottomLeft}}).\u0275fac=function(a){return new(a||Z)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},Z.\u0275cmp=e.\u0275\u0275defineComponent({type:Z,selectors:[["ds-atmire-cua-single-statlet-number-inline"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:3,consts:[[1,"number-chart"],["wrapper",""],[3,"view","results","textColor","scheme","alignment","animations",4,"ngIf"],[3,"view","results","textColor","scheme","alignment","animations"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275template(2,ut,3,13,"ds-ngx-custom-number-inline",2),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,1,t.data$)))},dependencies:[c.O5,mt,c.Ov],styles:[".number-chart[_ngcontent-%COMP%]{max-height:30px}"]}),Z);ve=(0,d.__decorate)([(0,g.cu)(u.bN.NUMBER,S._.StatletInline),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],ve);var vt=o(25559),Ae=o(56412);const xt=["tooltipTemplate"],_t=function(i,a){return[i,a]};let ft=(()=>{class i extends v.ep{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.barPadding=8,this.roundDomains=!1,this.roundEdges=!1,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.EventEmitter,this.deactivate=new e.EventEmitter,this.margin=[0,0,0,0],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.dims=(0,v.iG)({width:this.width,height:this.height,margins:this.margin,showXAxis:!1,showYAxis:!1,xAxisHeight:0,yAxisWidth:0,showXLabel:!1,showYLabel:!1,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return(0,vt.Z)().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=(0,Ae.Z)().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(r=>r.value);return[this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}onClick(t){this.select.emit(t)}setColors(){let t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new v.vH(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,n=!1){t=this.results.find(r=>n?r.label===t.name:r.name===t.name),!(this.activeEntries.findIndex(r=>r.name===t.name&&r.value===t.value&&r.series===t.series)>-1)&&(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,n=!1){t=this.results.find(r=>n?r.label===t.name:r.name===t.name);const s=this.activeEntries.findIndex(r=>r.name===t.name&&r.value===t.value&&r.series===t.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return i.\u0275fac=function(){let a;
1return function(n){return(a||(a=e.\u0275\u0275getInheritedFactory(i)))(n||i)}}(),i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-ngx-custom-bar-vertical-inline"]],contentQueries:function(t,n,s){if(1&t&&e.\u0275\u0275contentQuery(s,xt,5),2&t){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(n.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:23,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"]],template:function(t,n){1&t&&(e.\u0275\u0275elementStart(0,"ngx-charts-chart",0),e.\u0275\u0275listener("legendLabelClick",function(r){return n.onClick(r)})("legendLabelActivate",function(r){return n.onActivate(r,!0)})("legendLabelDeactivate",function(r){return n.onDeactivate(r,!0)}),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(1,"svg")(2,"g",1)(3,"g",2),e.\u0275\u0275listener("activate",function(r){return n.onActivate(r)})("deactivate",function(r){return n.onDeactivate(r)})("select",function(r){return n.onClick(r)})("dataLabelHeightChanged",function(r){return n.onDataLabelMaxHeightChanged(r)}),e.\u0275\u0275elementEnd()()()()),2&t&&(e.\u0275\u0275property("view",e.\u0275\u0275pureFunction2(20,_t,n.width,n.height))("showLegend",n.legend)("legendOptions",n.legendOptions)("activeEntries",n.activeEntries)("animations",n.animations),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("transform",n.transform),e.\u0275\u0275advance(1),e.\u0275\u0275property("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("series",n.results)("dims",n.dims)("gradient",n.gradient)("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)("showDataLabel",n.showDataLabel)("dataLabelFormatting",n.dataLabelFormatting)("activeEntries",n.activeEntries)("roundEdges",n.roundEdges)("animations",n.animations)("noBarWhenZero",n.noBarWhenZero))},dependencies:[v.xH,v.Ay],encapsulation:2,changeDetection:0}),i})();var Y;const St=function(i,a){return[i,a]};function bt(i,a){if(1&i&&(e.\u0275\u0275element(0,"ds-ngx-custom-bar-vertical-inline",3),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async")),2&i){const t=e.\u0275\u0275nextContext(),n=e.\u0275\u0275reference(1);e.\u0275\u0275property("results",e.\u0275\u0275pipeBind1(1,5,t.normalizedData$))("view",e.\u0275\u0275pureFunction2(9,St,0===n.offsetWidth?t.view[0]:n.offsetWidth,0===n.offsetHeight?t.view[1]:n.offsetHeight))("scheme",e.\u0275\u0275pipeBind1(2,7,t.colors$))("barPadding",2)("animations",!1)}}let xe=((Y=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.getStatletDataTypeServiceFor=r}loadData(){super.loadData(),this.normalizedData$=this.data$}}).\u0275fac=function(a){return new(a||Y)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},Y.\u0275cmp=e.\u0275\u0275defineComponent({type:Y,selectors:[["ds-atmire-cua-single-statlet-bar-vertical-inline"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:3,consts:[[1,"vertical-bar-chart"],["wrapper",""],[3,"results","view","scheme","barPadding","animations",4,"ngIf"],[3,"results","view","scheme","barPadding","animations"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275template(2,bt,3,12,"ds-ngx-custom-bar-vertical-inline",2),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,1,t.normalizedData$)))},dependencies:[c.O5,ft,c.Ov],styles:[".vertical-bar-chart[_ngcontent-%COMP%]{max-height:30px;height:30px}"]}),Y);xe=(0,d.__decorate)([(0,g.cu)(u.bN.BAR_VERTICAL,S._.StatletInline),(0,g.cu)(u.bN.BAR_VERTICAL_STACKED,S._.StatletInline),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],xe);const Ct=["tooltipTemplate"],yt=["textEl"],It=["labelEl"];function wt(i,a){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"g")(1,"g",5),e.\u0275\u0275element(2,"g",6),e.\u0275\u0275elementStart(3,"g",7),e.\u0275\u0275listener("select",function(s){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(r.select.emit(s))})("activate",function(s){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(r.activate.emit(s))})("deactivate",function(s){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(r.deactivate.emit(s))}),e.\u0275\u0275elementEnd()()()}if(2&i){const t=a.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275attribute("transform",n.rotation),e.\u0275\u0275advance(1),e.\u0275\u0275property("tooltipDisabled",n.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.tooltipTemplate?void 0:n.tooltipText(t.valueArc))("tooltipTemplate",n.tooltipTemplate)("tooltipContext",t.valueArc.data),e.\u0275\u0275advance(1),e.\u0275\u0275property("startAngle",0)("endAngle",t.backgroundArc.endAngle)("innerRadius",t.backgroundArc.innerRadius)("outerRadius",t.backgroundArc.outerRadius)("cornerRadius",n.cornerRadius)("data",t.backgroundArc.data)("animate",!1)("pointerEvents",!1)("fill",n.backgroundArcColor),e.\u0275\u0275advance(1),e.\u0275\u0275property("startAngle",0)("endAngle",t.valueArc.endAngle)("innerRadius",t.valueArc.innerRadius)("outerRadius",t.valueArc.outerRadius)("cornerRadius",n.cornerRadius)("fill",n.colors.getColor(t.valueArc.data.name))("data",t.valueArc.data)("animate",n.animations)("isActive",n.isActive)}}function At(i,a){if(1&i&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"text",8,9)(2,"tspan",10),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("text-anchor","middle"),e.\u0275\u0275attribute("transform",t.textTransform),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.displayValue)}}function Lt(i,a){if(1&i&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"text",11,12)(2,"tspan",13),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("text-anchor","middle"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.label)}}const Tt=function(i,a){return[i,a]};let Ft=(()=>{class i extends v.ep{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.backgroundArcColor="rgb(185,185,185)",this.activate=new e.EventEmitter,this.deactivate=new e.EventEmitter,this.resizeScale=1,this.resizeLabelScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.labelTransform="scale(1, 1)",this.cornerRadius=10}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}update(){super.update(),this.margin=[0,0,0,0],this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=(0,v.iG)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.label=this.getLabel(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${this.margin[0]+this.dims.height/2})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50),setTimeout(()=>this.scaleLabelText(),50)}getArcs(){const t=[],s=Math.min(.7*this.outerRadius,10),r=.7*s;this.textRadius=1.5*(this.outerRadius-s),this.cornerRadius=Math.floor(r/2);const x=this.results[0],f=this.outerRadius-0*s,C=f-r,A={endAngle:this.angleSpan*Math.PI/180,innerRadius:C,outerRadius:f,data:{value:this.max,name:x.name}},E={endAngle:Math.min(this.valueScale(x.value),this.angleSpan)*Math.PI/180,innerRadius:C,outerRadius:f,data:{value:x.value,name:x.name}};return t.push({backgroundArc:A,valueArc:E}),t}getDomain(){return this.results.map(t=>t.name)}getValueDomain(){const t=this.results.map(r=>r.value),n=Math.min(...t),s=Math.max(...t);return this.min=void 0!==this.min?Math.min(this.min,n):n,this.max=void 0!==this.max?Math.max(this.max,s):s,[this.min,this.max]}getValueScale(){return(0,Ae.Z)().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const t=this.max;return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleStr
1ing():this.valueFormatting?this.valueFormatting(t):t.toLocaleString()}getLabel(){return(0,_.UE)(this.gaugeLabel)?this.gaugeLabel:this.results[0].name}scaleText(t=!0){if(!this.showText)return;const{width:n}=this.textEl.nativeElement.getBoundingClientRect(),s=this.resizeScale;this.resizeScale=0===n?1:Math.floor(this.textRadius/(n/this.resizeScale)*100)/100,this.resizeScale>2.4&&(this.resizeScale=2.4),this.resizeScale!==s&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),t&&setTimeout(()=>this.scaleText(!1),50))}scaleLabelText(t=!0){if(!this.showText)return;const{width:n}=this.labelEl.nativeElement.getBoundingClientRect(),s=this.resizeLabelScale;this.resizeLabelScale=0===n?1:Math.floor(this.textRadius/(n/this.resizeLabelScale)*100)/100,this.resizeLabelScale!==s&&(this.labelTransform=`scale(${this.resizeLabelScale}, ${this.resizeLabelScale})`,this.cd.markForCheck(),t&&setTimeout(()=>this.scaleLabelText(!1),50))}onClick(t){this.select.emit(t)}getLegendOptions(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new v.vH(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(t){this.activeEntries.findIndex(s=>s.name===t.name&&s.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const n=this.activeEntries.findIndex(s=>s.name===t.name&&s.value===t.value);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>t.name===s.name&&t.series===s.series)}trackBy(t,n){return n.valueArc.data.name}tooltipText(t){const n=(0,v.N4)(t.data.name);let s;return s=this.valueFormatting?this.valueFormatting(t.data.value):(0,v.N4)(t.data.value),`\n <span class="tooltip-label">${(0,v.QG)(n)}</span>\n <span class="tooltip-val">${s}</span>\n `}}return i.\u0275fac=function(){let a;return function(n){return(a||(a=e.\u0275\u0275getInheritedFactory(i)))(n||i)}}(),i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-ngx-custom-gauge-inline"]],contentQueries:function(t,n,s){if(1&t&&e.\u0275\u0275contentQuery(s,Ct,5),2&t){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(n.tooltipTemplate=r.first)}},viewQuery:function(t,n){if(1&t&&(e.\u0275\u0275viewQuery(yt,5),e.\u0275\u0275viewQuery(It,5)),2&t){let s;e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(n.textEl=s.first),e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(n.labelEl=s.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",textValue:"textValue",bigSegments:"bigSegments",smallSegments:"smallSegments",results:"results",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",axisTickFormatting:"axisTickFormatting",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",showText:"showText",backgroundArcColor:"backgroundArcColor",gaugeLabel:"gaugeLabel",margin:"margin"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["class","gauge-label","alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-tooltip","",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext"],["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents","fill"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","select","activate","deactivate"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["alignment-baseline","central",1,"gauge-label"],["labelEl",""],["x","0","dy","1.2em"]],template:function(t,n){1&t&&(e.\u0275\u0275elementStart(0,"ngx-charts-chart",0),e.\u0275\u0275listener("legendLabelClick",function(r){return n.onClick(r)})("legendLabelActivate",function(r){return n.onActivate(r)})("legendLabelDeactivate",function(r){return n.onDeactivate(r)}),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(1,"svg")(2,"g",1),e.\u0275\u0275template(3,wt,4,25,"g",2),e.\u0275\u0275template(4,At,4,4,"text",3),e.\u0275\u0275template(5,Lt,4,3,"text",4),e.\u0275\u0275elementEnd()()()),2&t&&(e.\u0275\u0275property("view",e.\u0275\u0275pureFunction2(10,Tt,n.width,n.height))("showLegend",n.legend)("legendOptions",n.legendOptions)("activeEntries",n.activeEntries)("animations",n.animations),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("transform",n.transform),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.arcs)("ngForTrackBy",n.trackBy),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.showText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.showText))},dependencies:[c.sg,c.O5,v.i9,v.xH,v.D8],encapsulation:2,changeDetection:0}),i})();var K;const Dt=function(i,a){return[i,a]};function Et(i,a){if(1&i&&(e.\u0275\u0275element(0,"ds-ngx-custom-gauge-inline",3),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"async")),2&i){const t=e.\u0275\u0275nextContext(),n=e.\u0275\u0275reference(1);e.\u0275\u0275property("view",e.\u0275\u0275pureFunction2(12,Dt,0===n.offsetWidth?t.view[0]:n.offsetWidth,0===n.offsetHeight?t.view[1]:n.offsetHeight))("max",t.max)("gaugeLabel",e.\u0275\u0275pipeBind1(1,6,t.label$))("results",e.\u0275\u0275pipeBind1(2,8,t.data$))("scheme",e.\u0275\u0275pipeBind1(3,10,t.colors$))("animations",!1)}}let _e=((K=class extends T{constructor(a,t,n,s,r){super(a,t,n,s,r),this.parentInjector=a,this.colorService=t,this.alternativeLabelService=n,this.windowService=s,this.get
1StatletDataTypeServiceFor=r,this.max=100}loadData(){if(this.data$=this.windowService.widthCategory.pipe((0,L.w)(a=>(0,B.$)(...this.statlet.points.map(t=>{const n=Object.keys(t.values).find(x=>"total"!==x&&"other"!==x);let s=0;(0,_.Uh)(n)?s=t.values[n]:Object.values(t.values).forEach(x=>s+=x);const r=this.getHeaderById((0,_.Uh)(n)?this.statlet.columnHeaders:this.statlet.rowHeaders,(0,_.Uh)(n)?n:t.id),l=this.getStatletDataTypeServiceForHeader(r);return this.getHeaderName(r,l,t.label,a).pipe((0,y.U)(x=>Object.assign({name:x,value:s})))})))),(0,_.UE)(this.statlet.points)){const a=this.getHeaderById(this.statlet.rowHeaders,this.statlet.points[0].id),t=this.getStatletDataTypeServiceForHeader(a);this.label$=this.windowService.widthCategory.pipe((0,L.w)(n=>this.getHeaderName(a,t,this.statlet.points[0].label,n))),(0,_.Uh)(this.statlet.points[0].values.total)&&(this.max=this.statlet.points[0].values.total)}}}).\u0275fac=function(a){return new(a||K)(e.\u0275\u0275directiveInject(e.Injector),e.\u0275\u0275directiveInject(h.F),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(p.I),e.\u0275\u0275directiveInject(b.ZK))},K.\u0275cmp=e.\u0275\u0275defineComponent({type:K,selectors:[["ds-atmire-cua-single-statlet-gauge-inline"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:3,consts:[[1,"gauge-chart"],["wrapper",""],[3,"view","max","gaugeLabel","results","scheme","animations",4,"ngIf"],[3,"view","max","gaugeLabel","results","scheme","animations"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275template(2,Et,4,15,"ds-ngx-custom-gauge-inline",2),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,1,t.data$)))},dependencies:[c.O5,Ft,c.Ov]}),K);_e=(0,d.__decorate)([(0,g.cu)(u.bN.GAUGE,S._.StatletInline),(0,d.__metadata)("design:paramtypes",[e.Injector,h.F,m,p.I,Function])],_e);var Bt=o(78181),jt=o(17232),Ot=o(39392),Pt=o(167),$t=o(89699),te=o(65706),Nt=o(43468),zt=o(55019),kt=o(3580),Le=o(98676);const Ht=[ae,ie,W,re,le,oe,J,ce,de,pe,he,me,ge,q,ee,ve,xe,_e];let Mt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=e.\u0275\u0275defineInjector({imports:[c.ez,Bt.m,jt.B,Ot.U,$t.b,v.a4,Pt.w]}),i})();e.\u0275\u0275setComponentScope(q,[c.O5,te.jt,te.iD,te.Vi,te.TH,Nt.z,zt.R,kt.M,Le.Z,J],[I.X$]),e.\u0275\u0275setComponentScope(ee,[Le.Z],[])}}]);
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.