moblor-vue 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +1 -1
- package/dist/moblor-components.esm.js +33 -20
- package/dist/moblor-components.js +1 -1
- package/dist/moblor-vue.esm.js +33 -20
- package/dist/moblor-vue.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("d3-transition"),require("vue-property-decorator"),require("d3-scale"),require("d3-axis"),require("d3-selection"),require("d3-format"),require("d3-array"),require("d3-shape"),require("d3-ease"),require("d3-interpolate"),require("uuid"),require("vue-virtual-scroll-list")):"function"==typeof define&&define.amd?define(["d3-transition","vue-property-decorator","d3-scale","d3-axis","d3-selection","d3-format","d3-array","d3-shape","d3-ease","d3-interpolate","uuid","vue-virtual-scroll-list"],e):(t=t||self).MoblorComponents=e(t.d3Transition,t.vuePropertyDecorator,t.d3Scale,t.d3Axis,t.d3Selection,t.d3Format,t.d3Array,t.d3Shape,t.d3Ease,t.d3Interpolate,t.uuid,t.VirtualList)}(this,function(t,e,l,s,c,d,f,p,h,r,z,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function __extends(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var F=function(){return(F=Object.assign||function __assign(t){for(var e,n=arguments,a=1,o=arguments.length;a<o;a++)for(var r in e=n[a])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function __decorate(t,e,n,a){var o,r=arguments.length,i=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,a);else for(var l=t.length-1;0<=l;l--)(o=t[l])&&(i=(r<3?o(i):3<r?o(e,n,i):o(e,n))||i);return 3<r&&i&&Object.defineProperty(e,n,i),i}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __spreadArrays(){for(var t=arguments,e=0,n=0,a=arguments.length;n<a;n++)e+=t[n].length;var o=Array(e),r=0;for(n=0;n<a;n++)for(var i=arguments[n],l=0,s=i.length;l<s;l++,r++)o[r]=i[l];return o}var o,i=(__extends(ChartMixins,o=e.Vue),ChartMixins.prototype.getWidth=function(){var t=window.getComputedStyle(this.$el,null).width;return t?parseFloat(t.substring(0,t.length-2)):0},ChartMixins.prototype.beforeRedraw=function(){var t=this.$el.querySelector("svg");t&&t.remove()},ChartMixins=__decorate([e.Component],ChartMixins));function ChartMixins(){return null!==o&&o.apply(this,arguments)||this}var m=(ChartService.formatValue=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=2);var a=t.toString();if(!Number.isNaN(Number(t))){var o=ChartService.preciseDecimal(Number(t),n),r=o/Math.pow(1e3,4),i=o/Math.pow(1e3,3),l=o/Math.pow(1e3,2),s=o/Math.pow(1e3,1);1<=r?a=ChartService.preciseDecimal(r,n)+" T":1<=i?a=ChartService.preciseDecimal(i,n)+" B":1<=l?a=ChartService.preciseDecimal(l,n)+" M":1<=s&&(a=ChartService.preciseDecimal(s,n)+" K"),a=a.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")})}return""+e+a},ChartService.preciseDecimal=function(t,e){void 0===e&&(e=2);var n=t.toString().indexOf(".");return!(n<=0)&&e<t.toString().substring(n+1,t.toString().length).length?Number(t.toFixed(e)):t},ChartService.formatDomainValue=function(t,e,n){for(var a=t.toString().length-1,o=n?8:10,r=0;r<a;r+=1)if(e<r*o){a=r;break}return a<t.toString().length-1?t.toString().substring(0,a-2)+"...":t.toString()},ChartService.getPercentage=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),ChartService.preciseDecimal(t/e*100,n)},ChartService.getColor=function(t,e){var n=e||["#5bdcef","#ffe451","#fc7a7a","#8b4fdc","#4653ff","#153e75","#3adfae","#f68c5d","#6663f0","#fe70a2","#438aff","#5ed281","#60afff","#4e4c97","#b6d252","#5acec7","#ff7575","#ffda2b","#3cdbc6","#3f5cba","#383b6b","#fc7a7a","#6663f0","#ffcc51","#56c597","#f678aa","#8ffabf","#5aabff","#4ecaa5","#686edc"];return n[t%n.length]},ChartService.getMaxValue=function(t,e){void 0===e&&(e=0);var n=[],a=function(t){t.pieces&&0<t.pieces.length?t.pieces.forEach(function(t){a(t)}):n.push(t.values[e])};return t.forEach(function(t){a(t)}),f.max(n,function(t){return t})},ChartService.defineAreaGradientsForCover=function(t,e,n){var a=t.append("defs").append("linearGradient").attr("id","MoLineAreaGradientCover"+e).attr("x1","0").attr("y1","0").attr("x2","0").attr("y2","0").attr("y1","100%");a.append("stop").attr("offset","0%").attr("stop-color","white").attr("stop-opacity",n?.4:1),a.append("stop").attr("offset","100%").attr("stop-color","white").attr("stop-opacity",n?1:.4)},ChartService.getInnerText=function(t){void 0===t&&(t={});var e=t.showValue,n=t.innerValue,a=t.value,o=void 0===a?"":a,r=t.showPercentage,i=t.innerPercentage,l=t.total,s=t.decimal,c=t.symbol,d=c||"";if(e&&n&&(d+=ChartService.formatValue(o,c,s)),r&&i){""!==d&&(d+=" : ");var p=ChartService.getPercentage(Number(o),l,s);0<p&&(d+=p+"%")}return d},ChartService.getBottomText=function(t){void 0===t&&(t={});var e=t.showValue,n=t.innerValue,a=t.value,o=void 0===a?"":a,r=t.showPercentage,i=t.innerPercentage,l=t.total,s=t.decimal,c=t.symbol,d=c||"";return e&&!n&&(d+=ChartService.formatValue(o,c,s)),r&&!i&&(""!==d&&(d+=" : "),d+=ChartService.getPercentage(Number(o),l,s)+"%"),d},ChartService);function ChartService(){}var g,u,b=(__extends(MoBarChart,g=e.Mixins(i)),Object.defineProperty(MoBarChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,o=t.left,r=n;return 0<this.groupings.length&&"vertical"===this.xAxisMode&&(a=130),0<this.aggregates.length&&(o=65),this.hasSecondAxis&&(r=Math.max(r,65)),{top:e,right:r,bottom:a,left:o}},enumerable:!0,configurable:!0}),MoBarChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},MoBarChart.prototype.mounted=function(){this.redraw()},MoBarChart.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine();var t=JSON.parse(JSON.stringify(this.data));"stacked"!==this.groupType&&"stacked100"!==this.groupType||(t=this.refactorStackedData()),this.renderBar(t),this.hasLineChart&&this.renderLine(t),0===this.categories.length&&this.aggregates.length<=1&&this.renderData(t),0<this.categories.length&&this.renderLabel(),0<this.aggregates.length&&this.renderMeasure()},MoBarChart.prototype.init=function(){var t,e,n=this;if(this.svgWidth=this.getWidth(),this.svgWidth&&(this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=this.width),this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom,this.xAxisScale=l.scaleBand().domain(this.data.map(function(t){return t.label})).range([0,this.width]).padding(.1).round(!0),this.groupType&&"none"!==this.groupType&&this.data.forEach(function(t){t.pieces&&t.pieces.length>n.categories.length&&(n.categories=[],t.pieces.forEach(function(t){n.categories.push(t.label)}))}),0<this.categories.length&&(this.svgHeight+=25*this.categories.length+50),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+50),t="grouped"===this.groupType?m.getMaxValue(this.data):f.max(this.data,function(t){return t.values[0]}),1<this.aggregates.length&&(e=f.max(this.data,function(t){return f.max(t.values)})),this.xAxisCategories=l.scaleBand().domain(this.categories).range([0,this.xAxisScale.bandwidth()]).round(!0),1<this.aggregates.length&&(this.xAxisAggregates=l.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.xAxisScale.bandwidth()]).round(!0)),this.xAxis=s.axisBottom(this.xAxisScale).tickSize(0).tickFormat(function(t){return m.formatDomainValue(t,n.actualMargin.bottom,!1)}),"stacked100"===this.groupType&&0<this.categories.length)this.yAxisScale=l.scaleLinear().range([this.height,0]).domain([0,1]),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return d.format(".0%")(Number(t))});else if(this.hasLineChart)if(this.hasSecondAxis){this.yAxisScale=l.scaleLinear().domain([0,Number(t)||10]).range([this.height,0]).nice();var a=this.aggregates[0].unitSymbol;this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,a,n.decimal)}),this.secondYAxisScale=l.scaleLinear().domain([0,Number(e)]).range([this.height,0]).nice();var o=this.aggregates[this.secondYIndex].unitSymbol;this.secondYAxis=s.axisRight(this.secondYAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,o,n.decimal)}),this.line=p.line().curve(p.curveLinear).x(function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).y(function(t){return n.secondYAxisScale(n.lineValue(t))})}else{this.yAxisScale=l.scaleLinear().domain([0,Math.max(t||0,e||0)]).range([this.height,0]).nice();var r=this.aggregates[this.secondYIndex].unitSymbol;this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,r,n.decimal)}),this.line=p.line().curve(p.curveLinear).x(function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).y(function(t){return n.yAxisScale(n.lineValue(t))})}else{this.yAxisScale=l.scaleLinear().domain([0,Math.max(t||0,e||0)]).range([this.height,0]).nice();var i=this.aggregates[0].unitSymbol;this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,i,n.decimal)})}this.svg=c.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).append("g").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")")},MoBarChart.prototype.lineValue=function(t){return t.values[this.secondYIndex]},MoBarChart.prototype.renderAxis=function(){var t=this.svg.append("g").attr("class","x mo-axis").attr("transform","translate(0, "+this.height+")").call(this.xAxis);t.selectAll("text").style("text-anchor","middle").attr("class","mo-axis-text").attr("x",0).attr("y",10),"vertical"===this.xAxisMode&&t.selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",10).attr("x",5).attr("transform","rotate(-60, 0, 15)"),this.svg.append("g").attr("class","y mo-axis").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0),this.secondYAxis&&this.svg.append("g").attr("class","y mo-axis").attr("transform","translate("+this.width+", 0)").call(this.secondYAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0)},MoBarChart.prototype.renderAxisLabel=function(){var e=this;m.defineAreaGradientsForCover(this.svg,0,!1),this.svg.append("rect").attr("x",-this.margin.left-10).attr("y",this.height+this.actualMargin.bottom-30).attr("class","mo-cover").attr("height",10).style("fill","none"),this.svg.append("rect").attr("x",-this.actualMargin.left-10).attr("y",this.height+this.actualMargin.bottom-20).attr("class","mo-cover").attr("height",this.svgHeight-this.height-this.actualMargin.bottom+5).style("fill","none"),this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.height+this.actualMargin.bottom-15).text(this.groupings[0].label),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",20-this.actualMargin.left).attr("width",this.height+20).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",-this.actualMargin.left-10).attr("width",this.height+20).attr("height",30).style("fill","none"),this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15-this.actualMargin.left).attr("transform","rotate(-90)").text(function(){var t=__spreadArrays(e.aggregates);return e.hasSecondAxis&&t.splice(e.secondYIndex,1),t.map(function(t){return t.label}).join(", ")}),this.hasSecondAxis&&1<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",this.width+this.actualMargin.left-5).attr("transform","rotate(-90)").text(this.aggregates[this.secondYIndex].label)},MoBarChart.prototype.renderSpaceLine=function(){this.svg.selectAll(".mo-space-line").data(this.yAxisScale.ticks()).enter().append("line").attr("class","mo-space-line").attr("x1",3).attr("x2",this.width).attr("y1",this.yAxisScale).attr("y2",this.yAxisScale)},MoBarChart.prototype.refactorStackedData=function(){function dh(t,e,n){if(e===t.length-1)return"stacked100"===o.groupType?o.yAxisScale(t[e].values[0]/n):o.yAxisScale(t[e].values[0]);var a=t[e+1].y||o.height;return"stacked100"===o.groupType?a-o.height+o.yAxisScale(t[e].values[0]/n):a-o.height+o.yAxisScale(t[e].values[0])}var o=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){for(var e=t.pieces,n=void 0===e?[]:e,a=t.values,o=n.length;0<=o;--o)n.forEach(function(t,e){t.y=dh(n,e,a[0]),t.percentage=t.values[0]/a[0]})}),t},MoBarChart.prototype.renderBar=function(t){var e=this;0<this.categories.length?"grouped"===this.groupType?this.renderGroupedBar(t):"stacked"!==this.groupType&&"stacked100"!==this.groupType||this.renderStackedBar(t):!this.hasLineChart&&1<this.aggregates.length?this.renderGroupedAggregatesBar(t):this.svg.selectAll(".bar").data(t).enter().append("rect").style("fill",m.getColor(0,this.colors)).attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",this.height).attr("width",this.xAxisScale.bandwidth()).attr("height",0).transition().duration(1e3).attr("height",function(t){return e.height-e.yAxisScale(t.values[0])}).attr("y",function(t){return e.yAxisScale(t.values[0])})},MoBarChart.prototype.renderGroupedAggregatesBar=function(t){var n=this;this.svg.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t){return"translate("+n.xAxisScale(t.label)+", 0)"}).selectAll("rect").data(function(t){return t.values}).enter().append("rect").attr("class","rect").attr("width",this.xAxisAggregates.bandwidth()).attr("x",function(t,e){return n.xAxisAggregates(n.aggregates[e].label)}).attr("y",this.yAxisScale(0)).attr("height",0).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return n.yAxisScale(t)}).attr("height",function(t){return n.height-n.yAxisScale(t)})},MoBarChart.prototype.renderGroupedBar=function(t){var n=this;this.svg.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t){return"translate("+n.xAxisScale(t.label)+", 0)"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("width",this.xAxisCategories.bandwidth()).attr("x",function(t){return n.xAxisCategories(t.label)}).attr("y",this.yAxisScale(0)).attr("height",0).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return n.yAxisScale(t.values[0])}).attr("height",function(t){return n.height-n.yAxisScale(t.values[0])})},MoBarChart.prototype.renderStackedBar=function(t){var n=this;this.svg.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t){return"translate("+n.xAxisScale(t.label)+", 0)"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("height",0).attr("width",this.xAxisScale.bandwidth()).attr("y",this.yAxisScale(0)).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return t.y}).attr("height",function(t){return"stacked100"===n.groupType?n.height-n.yAxisScale(t.percentage):n.height-n.yAxisScale(t.values[0])})},MoBarChart.prototype.renderLine=function(t){var e=this,n=m.getColor(this.categories.length||1,this.colors),a=this.svg.append("path").datum(t).attr("d",this.line).attr("class","mo-data-line").style("stroke",n),o=a.node().getTotalLength();a.attr("stroke-dasharray",o+" "+o).attr("stroke-dashoffset",o).transition().duration(1e3).ease(h.easeLinear).attr("stroke-dashoffset",0);var r=this.secondYAxisScale||this.yAxisScale;this.svg.selectAll(".mo-data-point").data(t).enter().append("circle").attr("cx",function(t){return e.xAxisScale(t.label)+e.xAxisScale.bandwidth()/2}).attr("cy",function(t){return r(e.lineValue(t))}).attr("r",3).attr("class","mo-line-point").style("fill",n)},MoBarChart.prototype.renderData=function(t){var n=this,e=this.svg.selectAll(".bar").data(t),a=this.aggregates[0].unitSymbol;e.enter().append("text").attr("class","mo-data-text").style("fill",function(t,e){return 0===n.categories.length?m.getColor(0,n.colors):m.getColor(e,n.colors)}).attr("x",function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).attr("y",this.height).attr("text-anchor","middle").transition().duration(1e3).attr("y",function(t){return n.yAxisScale(t.values[0])-5}).text(function(t){return m.formatValue(t.values[0],a,n.decimal)})},MoBarChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var e=t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");e.append("rect").attr("width",15).attr("height",15).attr("x",0).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",function(){return n.labelColor||""}).text(function(t){return t})},MoBarChart.prototype.renderMeasure=function(){var a=this,n=this.actualMargin.top+this.actualMargin.bottom+this.height;0<this.categories.length&&(n+=25*this.categories.length+50);var t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",n).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",n).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",n+25).attr("class","mo-label-title").text("Measure");var e=t.selectAll(".mo-label").data(this.hasLineChart&&0<this.categories.length?this.aggregates.slice(1,this.aggregates.length):this.aggregates).enter().append("g").attr("class","mo-label");e.append("rect").attr("width",15).attr("height",15).attr("x",0).attr("y",function(t,e){return n+40+25*e}).attr("fill",function(t,e){var n=a.hasLineChart&&0<a.categories.length?a.categories.length||1:e;return m.getColor(n,a.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n+52+25*e}).attr("class","mo-legend-text").style("fill",function(){return a.labelColor||""}).text(function(t){return t.label})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChart.prototype,"data",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"groupings",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"aggregates",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasSecondAxis",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasLineChart",void 0),__decorate([e.Prop({type:Number,default:function(){return 1}}),__metadata("design:type",Number)],MoBarChart.prototype,"secondYIndex",void 0),__decorate([e.Prop({type:String,default:function(){return"horizontal"}}),__metadata("design:type",String)],MoBarChart.prototype,"xAxisMode",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChart.prototype,"colors",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:20,right:0,bottom:80,left:50}}}),__metadata("design:type","function"==typeof(u="undefined"!=typeof ChartMargin&&ChartMargin)?u:Object)],MoBarChart.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChart.prototype,"decimal",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"labelColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"groupType",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChart.prototype,"onDataChanged",null),MoBarChart=__decorate([e.Component({})],MoBarChart));function MoBarChart(){var t=null!==g&&g.apply(this,arguments)||this;return t.svgWidth=0,t.svgHeight=0,t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.yAxisScale=null,t.secondYAxisScale=null,t.xAxis=null,t.yAxis=null,t.secondYAxis=null,t.line=null,t.xAxisCategories=null,t.xAxisAggregates=null,t.categories=[],t}function normalizeComponent(t,e,n,a,o,r,i,l,s,c){"boolean"!=typeof i&&(s=l,l=i,i=!1);var d,p="function"==typeof n?n.options:n;if(t&&t.render&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0,o&&(p.functional=!0)),a&&(p._scopeId=a),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},p._ssrRegister=d):e&&(d=i?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),d)if(p.functional){var h=p.render;p.render=function renderWithStyleInjection(t,e){return d.call(e),h(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,d):[d]}return n}var v,y="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(t){return function(t,e){return function addStyle(t,e){var n=y?e.media||"default":t,a=w[n]||(w[n]={ids:new Set,styles:[]});if(!a.ids.has(t)){a.ids.add(t);var o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",e.media&&a.element.setAttribute("media",e.media),void 0===v&&(v=document.head||document.getElementsByTagName("head")[0]),v.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(o),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var r=a.ids.size-1,i=document.createTextNode(o),l=a.element.childNodes;l[r]&&a.element.removeChild(l[r]),l.length?a.element.insertBefore(i,l[r]):a.element.appendChild(i)}}}(t,e)}}var w={};function x(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var _,C,k=b,S=(x._withStripped=!0,normalizeComponent({render:x,staticRenderFns:[]},function(t){t&&t("data-v-614c16ba_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},k,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MoBarChartHorizontal(){var t=null!==_&&_.apply(this,arguments)||this;return t.svgWidth=0,t.svgHeight=0,t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.yAxisScale=null,t.xAxis=null,t.yAxis=null,t.yAxisCategories=null,t.yAxisAggregates=null,t.categories=[],t.mainChart=null,t.labelGroup=null,t}function G(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var A,T,M,R=(__extends(MoBarChartHorizontal,_=e.Mixins(i)),Object.defineProperty(MoBarChartHorizontal.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,o=t.left;return 0<this.aggregates.length?{top:e,right:n,bottom:60,left:o}:0<this.groupings.length?{top:e,right:n,bottom:a,left:115}:this.margin},enumerable:!0,configurable:!0}),MoBarChartHorizontal.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},MoBarChartHorizontal.prototype.mounted=function(){this.redraw()},MoBarChartHorizontal.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine();var t=JSON.parse(JSON.stringify(this.data));"stacked"!==this.groupType&&"stacked100"!==this.groupType||(t=this.refactorStackedData()),this.renderBar(t),0===this.categories.length&&this.aggregates.length<=1&&this.renderData(t),0<this.categories.length&&this.renderLabel(),1<this.aggregates.length&&this.renderMeasure()},MoBarChartHorizontal.prototype.init=function(){var e=this;this.categories=[];var t,n=this.data.length;this.svgWidth=this.getWidth(),this.svgWidth&&(this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right),this.groupType&&"none"!==this.groupType&&this.data.forEach(function(t){t.pieces&&t.pieces.length>e.categories.length&&(e.categories=[],t.pieces.forEach(function(t){e.categories.push(t.label)}))}),t="grouped"===this.groupType&&0<this.categories.length?(this.height=(this.barHeight*this.categories.length+this.barPadding)*n,m.getMaxValue(this.data)):(1<this.aggregates.length?this.height=(this.barHeight*this.aggregates.length+this.barPadding)*n:this.height=(this.barHeight+this.barPadding)*n,f.max(this.data,function(t){return f.max(t.values)})),this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom,0<this.categories.length&&(this.svgHeight+=25*this.categories.length+10),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+10),this.svg=c.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight),"stacked100"===this.groupType&&0<this.categories.length?(this.xAxisScale=l.scaleLinear().domain([0,1]).range([0,this.width-this.actualMargin.right]),this.xAxis=s.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return d.format(".0%")(Number(t))})):(this.xAxisScale=l.scaleLinear().domain([0,t||10]).range([0,this.width-this.actualMargin.right]).nice(),this.xAxis=s.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,"",e.decimal)})),this.yAxisScale=l.scaleBand().domain(this.data.map(function(t){return t.label})).range([0,this.height]),this.yAxisCategories=l.scaleBand().domain(this.categories).range([0,this.barHeight*this.categories.length]).round(!0),1<this.aggregates.length&&(this.yAxisAggregates=l.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.barHeight*this.aggregates.length]).round(!0)),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return m.formatDomainValue(t,e.actualMargin.left-15,!1)}),this.mainChart=this.svg.append("g").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")"),this.labelGroup=this.svg.append("g"),0<this.aggregates.length&&this.labelGroup.attr("transform","translate( 0, 40 )")},MoBarChartHorizontal.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate("+this.actualMargin.left+", 5)").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",12).attr("x",12).attr("transform","rotate(60, -12, 12)"),this.svg.append("g").attr("class","y mo-axis").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",-Math.round(this.barPadding/2))},MoBarChartHorizontal.prototype.renderAxisLabel=function(){this.svg.append("text").attr("class","mo-axis-label").attr("x",this.svgWidth/2).attr("y",this.height+this.actualMargin.bottom+10).text(this.aggregates.map(function(t){return t.label}).join(", ")),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-30).attr("y",15).attr("width",this.height-10).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-30).attr("y",-10).attr("width",this.height-10).attr("height",25).style("fill","none"),this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15).attr("transform","rotate(-90)").text(this.groupings[0].label)},MoBarChartHorizontal.prototype.renderSpaceLine=function(){this.mainChart.selectAll(".mo-space-line").data(this.xAxisScale.ticks()).enter().append("line").attr("class","mo-space-line").attr("x1",this.xAxisScale).attr("x2",this.xAxisScale).attr("y1",-5).attr("y2",this.height-5),this.mainChart.append("line").attr("class","mo-space-line").attr("x1",0).attr("y1",-5).attr("x2",0).attr("y2",this.height-5)},MoBarChartHorizontal.prototype.refactorStackedData=function(){var s=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){var e=t.pieces,i=void 0===e?[]:e,l=t.values;i.forEach(function(t,e){var n,a,o,r;t.x=(n=i,a=e,o=l[0],r=0,n.forEach(function(t,e){e<a&&("stacked100"===s.groupType?r+=s.xAxisScale(t.values[0]/o):r+=s.xAxisScale(t.values[0]))}),r),t.percentage=t.values[0]/l[0]})}),t},MoBarChartHorizontal.prototype.renderBar=function(t){var n=this;0<this.categories.length?"grouped"===this.groupType?this.renderGroupedBar(t):"stacked"!==this.groupType&&"stacked100"!==this.groupType||this.renderStackedBar(t):1<this.aggregates.length?this.renderGroupedAggregatesBar(t):this.mainChart.selectAll(".bar").data(t).enter().append("rect").attr("width",0).attr("height",this.barHeight).attr("y",function(t,e){return(n.barHeight+n.barPadding)*e}).style("fill",m.getColor(0,this.colors)).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t.values[0])})},MoBarChartHorizontal.prototype.renderGroupedAggregatesBar=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t,e){return"translate(0,\n "+(n.barHeight*n.aggregates.length+n.barPadding)*e+")"}).selectAll("rect").data(function(t){return t.values}).enter().append("rect").attr("class","rect").attr("width",0).attr("height",this.barHeight).attr("y",function(t,e){return n.yAxisAggregates(n.aggregates[e].label)}).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t)})},MoBarChartHorizontal.prototype.renderGroupedBar=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t,e){return"translate(0,\n "+(n.barHeight*n.categories.length+n.barPadding)*e+")"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("width",0).attr("height",this.barHeight).attr("y",function(t){return n.yAxisCategories(t.label)}).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t.values[0])})},MoBarChartHorizontal.prototype.renderStackedBar=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t,e){return"translate(0, "+(n.barHeight+n.barPadding)*e+")"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("width",0).attr("height",this.barHeight).attr("x",this.xAxisScale(0)).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("x",function(t){return t.x}).attr("width",function(t){return"stacked100"===n.groupType?n.xAxisScale(t.percentage):n.xAxisScale(t.values[0])})},MoBarChartHorizontal.prototype.renderData=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("text").attr("class","mo-data-text").attr("x",0).attr("y",function(t){return n.yAxisScale(t.label)+(n.barHeight+n.barPadding)/2-3}).style("fill",function(t,e){return"inner"===n.valuePosition?n.valueColor:0===n.categories.length?m.getColor(0,n.colors):m.getColor(e,n.colors)}).attr("text-anchor","start").transition().duration(1e3).attr("x",function(t){return"inner"===n.valuePosition?10:n.xAxisScale(t.values[0])+5}).text(function(t){var e=n.aggregates[0].unitSymbol;return m.formatValue(t.values[0],e,n.decimal)})},MoBarChartHorizontal.prototype.renderLabel=function(){var n=this;this.labelGroup.append("line").attr("x1",0).attr("y1",this.actualMargin.top+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.height).attr("class","mo-label-line"),this.labelGroup.append("text").attr("x",this.svgWidth/2).attr("y",this.actualMargin.top+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var t=this.labelGroup.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){return n.actualMargin.top+n.height+52+25*e}).attr("class","mo-legend-text").text(function(t){return t})},MoBarChartHorizontal.prototype.renderMeasure=function(){var n=this,a=this.actualMargin.top+this.height;0<this.categories.length&&(a+=25*this.categories.length+10),this.labelGroup.append("line").attr("x1",0).attr("y1",a).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",a).attr("class","mo-label-line"),this.labelGroup.append("text").attr("x",this.svgWidth/2).attr("y",a+25).attr("class","mo-label-title").text("Measure");var t=this.labelGroup.selectAll(".mo-label").data(this.aggregates).enter().append("g").attr("class","mo-label");t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){return a+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){return a+52+25*e}).attr("class","mo-legend-text").text(function(t){return t.label})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"data",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"groupings",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"aggregates",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"colors",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:50,right:10,bottom:20,left:75}}}),__metadata("design:type","function"==typeof(C="undefined"!=typeof ChartMargin&&ChartMargin)?C:Object)],MoBarChartHorizontal.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 25}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barHeight",void 0),__decorate([e.Prop({type:Number,default:function(){return 15}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barPadding",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"decimal",void 0),__decorate([e.Prop({type:String,default:function(){return"top"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valuePosition",void 0),__decorate([e.Prop({type:String,default:function(){return"#fff"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valueColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"groupType",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChartHorizontal.prototype,"onDataChanged",null),MoBarChartHorizontal=__decorate([e.Component({})],MoBarChartHorizontal)),P=(G._withStripped=!0,normalizeComponent({render:G,staticRenderFns:[]},function(t){t&&t("data-v-dad289de_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},R,void 0,!1,void 0,!1,createInjector,void 0,void 0));function PieChart(){var t=null!==A&&A.apply(this,arguments)||this;return t.width=0,t.height=0,t.svg=null,t.total=0,t.arcLayout=null,t.arc3dLayout=null,t.pieLayout=null,t.radius=0,t.innerRadius=0,t.arcGroup=null,t.arc=null,t.centerGroup=null,t.labelGroup=null,t.rightNavImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNCQTdEM0Y5NEVFNTExRTU5NkM0RjIwRkJBMjYwMTUzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNCQTdEM0ZBNEVFNTExRTU5NkM0RjIwRkJBMjYwMTUzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0JBN0QzRjc0RUU1MTFFNTk2QzRGMjBGQkEyNjAxNTMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0JBN0QzRjg0RUU1MTFFNTk2QzRGMjBGQkEyNjAxNTMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4zV8eYAAAB9klEQVR42sSYW0QEYRiGdztSlCillmUVkSK6iSidLrabSiKJIl0UnW5KEUUqSQdFpairKEpGlu1IdBERUUp3RRcRSemgw/vzDeMzqUz7zcvD7sfsPnZm/nn/dWqa5rCQaDAFkkATOHVYTIjF41dAEb3eBnng3MoHBlk4NhTkG94nkFSyXUJvYJjN1KnbBR47hFS6wASbucAOcNsh9AlawTSbu0nKJS2kSzWCeTb3kFSitJAu1QAW2DyFLvR4aSGVD1APltg8laTipIVU3kENrU/GpIEtECstpEtVg1U2zwB+ECMtpK9RVYA/lzJJKlpaSOUVVAAfm2fRLEpaSJcqB5tsng02QKS0kMozKAV7bJ5DUhFmQv3ghdaTQPBITYAnF6wbpXShDhDmsCeFYFzylP0m6VxoiC5Au+LjQt0gHDgDiGqnyyYyV2BW+pQFg0VQyebX1DpvJIXUd8zR48QYJVEALiXXIXWqZkAtm9+SzIXkwqhkJqmSmMmcST86RqlJGnMHisGJ9MN1BLSw2T3JHEvXjwHQ/o3MkXRB6wWdbPYAvOBQusL2EMY8gRJwIF3yO+jXMZPZl94GtYFBkw5UZtKBAi7UTHeUWUv0S2+l68AYLYA/9WgRoSYm891OQ0xI+8Ve7M+x8g9aH9UKL3Xytf+4Xb8EGABhpHk2U/H9dQAAAABJRU5ErkJggg==",t.rotation={index:0,angle:0,startAngle:0,originalAngle:0},t}function Q(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mo-chart"},[e.rotate?n("div",{staticClass:"mo-tip-container"},[n("div",{staticClass:"mo-tip-content"},[n("div",{staticClass:"left-nav",on:{click:function(t){return e.onLeftNavClicked(t)}}},[n("img",{attrs:{src:e.rightNavImage,width:"18"}})]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"right-nav",on:{click:function(t){return e.onRightNavClicked(t)}}},[n("img",{attrs:{src:e.rightNavImage,width:"18"}})])])]):e._e()])}var B,D,j=(__extends(PieChart,A=e.Mixins(i)),PieChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},PieChart.prototype.mounted=function(){this.redraw()},PieChart.prototype.redraw=function(){this.init(),this.renderPie(),this.donut&&(this.addDonut(),this.showTotal&&this.renderTotal()),this.rotate?this.changeContent():(this.renderInnerLabel(),this.renderLabel())},PieChart.prototype.onLeftNavClicked=function(t){var e=this;t.stopPropagation(),t.preventDefault(),this.rotation.index<this.data.length-1?this.rotation.index+=1:this.rotation.index=0;var n=this.pieLayout(this.data)[this.rotation.index];this.rotation.angle=180-(n.startAngle+n.endAngle)/2/Math.PI*180,this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+this.width/2+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.onRightNavClicked=function(t){var e=this;t.stopPropagation(),t.preventDefault(),0<this.rotation.index?--this.rotation.index:this.rotation.index=this.data.length-1;var n=this.pieLayout(this.data)[this.rotation.index];this.rotation.angle=180-(n.startAngle+n.endAngle)/2/Math.PI*180,this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+this.width/2+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.changeContent=function(){-1===this.rotation.index&&(this.rotation.index=0);var t,e=m.getPercentage(this.data[this.rotation.index].values[0],this.total,this.decimal),n=m.formatValue(this.data[this.rotation.index].values[0],this.symbol),a=this.$el.querySelector(".percentage"),o=this.$el.querySelector(".label");a&&((t=c.select(a)).style("color",m.getColor(this.rotation.index,this.colors)),t.text(n+" : "+e+"%")),o&&(t=c.select(o)).text(this.data[this.rotation.index].label)},PieChart.prototype.init=function(){this.width=this.area&&this.area.width&&this.area.height?Math.min(this.area.width-20,this.area.height-60-(this.rotate?54:0)):this.getWidth(),this.height=this.width+10,this.radius=this.width/2-10,this.innerRadius=this.donut?.43*this.radius:0,this.rotation={index:0,angle:0,startAngle:0,originalAngle:0},this.rotate||("horizontal"===this.labelMode?this.height+=60:this.height+=25*this.data.length+34,this.groupBy&&this.aggregate&&(this.height+=50)),this.svg=c.select(this.$el).insert("svg",".mo-tip-container").attr("width",this.width).attr("height",this.height),this.total=f.sum(this.data,function(t){return t.values[0]}),this.arcLayout=p.arc().outerRadius(this.radius).innerRadius(this.innerRadius),this.arc3dLayout=p.arc().outerRadius(this.innerRadius+9).innerRadius(this.innerRadius),this.pieLayout=p.pie().value(function(t){return t.values[0]});var t=this.pieLayout(this.data)[this.rotation.index];this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.arcGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+this.width/2+") rotate("+this.rotation.angle+")"),this.arc=this.arcGroup.selectAll(".arc").data(this.pieLayout(this.data)).enter().append("g").attr("class","arc"),this.centerGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+this.width/2+")"),this.labelGroup=this.svg.append("svg:g")},PieChart.prototype.renderPie=function(){var n=this;this.arc.append("svg:path").style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(750).attrTween("d",function(t){var e=r.interpolateObject({startAngle:0,endAngle:0},t);return function(t){return n.arcLayout(e(t))}})},PieChart.prototype.addDonut=function(){var n=this;this.arc.append("svg:path").attr("class","mo-inner-arc").transition().duration(750).attrTween("d",function(t){var e=r.interpolateObject({startAngle:0,endAngle:0},t);return function(t){return n.arc3dLayout(e(t))}})},PieChart.prototype.renderTotal=function(){this.centerGroup.append("svg:text").style("text-anchor","middle").attr("class","mo-summary-label").transition().delay(500).text(this.totalLabel),this.centerGroup.append("svg:text").attr("y",18).style("text-anchor","middle").attr("class","mo-summary-value").transition().delay(500).text(m.formatValue(this.total,this.symbol))},PieChart.prototype.renderInnerLabel=function(){var n=this;this.arc.append("text").attr("class","mo-inner-text").attr("text-anchor","middle").text(function(t){var e;return m.getInnerText({showValue:n.showValue,innerValue:"inner"===n.valuePosition,value:t.value,showPercentage:n.showPercentage,innerPercentage:"inner"===n.percentagePosition,total:n.total,decimal:n.decimal,symbol:null===(e=n.aggregate)||void 0===e?void 0:e.unitSymbol})}).transition().duration(750).attr("transform",function(t){return"translate("+n.arcLayout.centroid(t)+") rotate("+-n.rotation.angle+")"})},PieChart.prototype.renderLabel=function(){this.groupBy&&this.aggregate&&(this.labelGroup.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",this.width+15).text(this.aggregate.label),this.labelGroup.append("line").attr("class","mo-label-line").attr("x1",0).attr("y1",this.width+30).attr("x2",this.width).attr("y2",this.width+30),this.labelGroup.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",this.width+50).text(this.groupBy.label));var t=this.labelGroup.selectAll(".mo-label").data(this.data).enter().append("g");"horizontal"===this.labelMode?this.renderHorizontalLabel(t):this.renderVerticalLabel(t)},PieChart.prototype.renderHorizontalLabel=function(t){var a=this;t.append("rect").attr("width","15").attr("height","15").attr("x",function(t,e){return e*a.radius+25}).attr("y",function(){var t=a.width+25;return a.groupBy&&a.aggregate&&(t+=55),t}).attr("fill",function(t,e){return m.getColor(e,a.colors)}),t.append("text").attr("x",function(t,e){return e*a.radius+40}).attr("y",function(){var t=a.width+40;return a.groupBy&&a.aggregate&&(t+=55),t}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e,n=m.getBottomText({showValue:a.showValue,innerValue:"inner"===a.valuePosition,value:t.values[0],showPercentage:a.showPercentage,innerPercentage:"inner"===a.percentagePosition,total:a.total,decimal:a.decimal,symbol:null===(e=a.aggregate)||void 0===e?void 0:e.unitSymbol});return""!==n?t.label+" : "+n:t.label})},PieChart.prototype.renderVerticalLabel=function(t){var a=this;t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){var n=a.width+20+25*e;return a.groupBy&&a.aggregate&&(n+=55),n}).attr("fill",function(t,e){return m.getColor(e,a.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){var n=a.width+32+25*e;return a.groupBy&&a.aggregate&&(n+=55),n}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e,n=m.getBottomText({showValue:a.showValue,innerValue:"inner"===a.valuePosition,value:t.values[0],showPercentage:a.showPercentage,innerPercentage:"inner"===a.percentagePosition,total:a.total,decimal:a.decimal,symbol:null===(e=a.aggregate)||void 0===e?void 0:e.unitSymbol});return""!==n?t.label+" : "+n:t.label})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],PieChart.prototype,"data",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showTotal",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showValue",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"symbol",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"valuePosition",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"showPercentage",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"percentagePosition",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],PieChart.prototype,"decimal",void 0),__decorate([e.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],PieChart.prototype,"labelMode",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"labelColor",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"rotate",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],PieChart.prototype,"colors",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"donut",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(T="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?T:Object)],PieChart.prototype,"groupBy",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(M="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?M:Object)],PieChart.prototype,"aggregate",void 0),__decorate([e.Prop({type:String,default:function(){return"Total"}}),__metadata("design:type",String)],PieChart.prototype,"totalLabel",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],PieChart.prototype,"area",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],PieChart.prototype,"onDataChanged",null),PieChart=__decorate([e.Component({})],PieChart)),L=(Q._withStripped=!0,normalizeComponent({render:Q,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[e("span",{staticClass:"percentage"}),this._v(" "),e("span",{staticClass:"label"})])}]},function(t){t&&t("data-v-ce69b8ec_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},j,void 0,!1,void 0,!1,createInjector,void 0,void 0));function LineChart(){var t=null!==B&&B.apply(this,arguments)||this;return t.svgWidth=0,t.svgHeight=0,t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.yAxisScale=null,t.xAxis=null,t.yAxis=null,t.xAxisCategories=null,t.categories=[],t.area=null,t.maxValue=null,t.refactoredData=[],t}function Z(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var E,I,O,X=(__extends(LineChart,B=e.Mixins(i)),Object.defineProperty(LineChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,o=t.left;return 0<this.groupings.length?{top:e,right:n,bottom:130,left:o}:0<this.aggregates.length?{top:e,right:n,bottom:a,left:65}:this.margin},enumerable:!0,configurable:!0}),LineChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},LineChart.prototype.mounted=function(){this.redraw()},LineChart.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine(),this.renderDataLine(),1<this.aggregates.length?this.renderMeasure():0<this.categories.length&&this.renderLabel(),this.showValue&&this.renderData()},LineChart.prototype.init=function(){var e=this;this.svgWidth=this.getWidth(),this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=this.width,this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom+5,this.categories=[],this.maxValue=f.max(this.data,function(t){return f.max(t.values)}),"grouped"!==this.groupType&&"cumulativeGrouped"!==this.groupType||this.refactorGroupedData(),0<this.categories.length&&(this.svgHeight+=25*this.categories.length+50,this.maxValue=m.getMaxValue(this.data)),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+50),this.refactoredData=JSON.parse(JSON.stringify(this.data)),"cumulativeGrouped"!==this.groupType&&"cumulative"!==this.groupType||this.refactorCumulateData(),this.svg=c.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).append("g").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")"),this.xAxisScale=l.scalePoint().domain(this.refactoredData.map(function(t){return t.label})).range([0,this.width-5]),this.xAxis=s.axisBottom(this.xAxisScale).tickSize(0).tickFormat(function(t){return m.formatDomainValue(t,e.actualMargin.bottom,!0)}),this.yAxisScale=l.scaleLinear().domain([0,this.maxValue||10]).range([this.height,0]).nice(),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return m.formatValue(t,"",e.decimal)}),this.area=p.area().x(function(t){return e.xAxisScale(t.label)}).y0(this.height).y1(function(t){return e.yAxisScale(e.lineValue(t))})},LineChart.prototype.lineValue=function(t,e){return void 0===e&&(e=0),"cumulativeGrouped"===this.groupType||"cumulative"===this.groupType?t.cumulates[e]||0:t.values[e]},LineChart.prototype.line=function(e){var n=this;return void 0===e&&(e=0),p.line().curve(p.curveLinear).x(function(t){return n.xAxisScale(t.label)}).y(function(t){return n.yAxisScale(n.lineValue(t,e))})},LineChart.prototype.refactorGroupedData=function(){var n=[];this.data.forEach(function(e){e.pieces&&0<e.pieces.length&&e.pieces.forEach(function(t){n.push({label:e.label,group:t.label,values:t.values})})}),this.categories=Array.from(f.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},LineChart.prototype.refactorCumulateData=function(){var i=this;0<this.categories.length?this.categories.forEach(function(r){r.value.forEach(function(a,o){a.cumulates=a.cumulates||[],a.values.forEach(function(t,e){var n=0<o?r.value[o-1].cumulates[e]+t:t;a.cumulates.push(n),n>i.maxValue&&(i.maxValue=n)})})}):this.refactoredData.forEach(function(a,o){a.cumulates=a.cumulates||[],a.values.forEach(function(t,e){var n=0<o?i.refactoredData[o-1].cumulates[e]+t:t;a.cumulates.push(n),n>i.maxValue&&(i.maxValue=n)})})},LineChart.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate(0, "+this.height+")").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",5).attr("x",5).attr("transform","rotate(-60, 0, 15)"),this.svg.append("g").attr("class","y mo-axis").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0)},LineChart.prototype.renderAxisLabel=function(){m.defineAreaGradientsForCover(this.svg,0,!1),this.svg.append("rect").attr("x",-this.actualMargin.left-10).attr("y",this.height+this.actualMargin.bottom-30).attr("class","mo-cover").attr("height",10).style("fill","none"),this.svg.append("rect").attr("x",-this.actualMargin.left-10).attr("y",this.height+this.actualMargin.bottom-20).attr("class","mo-cover").attr("height",this.svgHeight-this.height-this.actualMargin.bottom+5).style("fill","none"),0<this.groupings.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.height+this.actualMargin.bottom-15).text(this.groupings[0].label),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",20-this.actualMargin.left).attr("width",this.height+20).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",-this.actualMargin.left-10).attr("width",this.height+20).attr("height",30).style("fill","none"),0<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15-this.actualMargin.left).attr("transform","rotate(-90)").text(this.aggregates.map(function(t){return t.label}).join(", "))},LineChart.prototype.renderSpaceLine=function(){var e=this;this.svg.selectAll(".mo-space-line").data(this.yAxisScale.ticks()).enter().append("line").attr("class","mo-space-line").attr("x1",0).attr("x2",this.width-5).attr("y1",this.yAxisScale).attr("y2",this.yAxisScale),this.svg.selectAll(".mo-vertical-line").data(this.refactoredData).enter().append("line").attr("class","mo-space-line").attr("x1",function(t){return e.xAxisScale(t.label)}).attr("y1",this.height).attr("x2",function(t){return e.xAxisScale(t.label)}).attr("y2",0),this.svg.selectAll(".mo-axis-point").data(this.refactoredData).enter().append("circle").attr("class","mo-axis-point").attr("r",2).attr("cx",function(t){return e.xAxisScale(t.label)}).attr("cy",this.height)},LineChart.prototype.renderDataLine=function(){function zn(t,e,n){void 0===n&&(n=!1);var a=n?e:0,o=m.getColor(e,l.colors),r=l.svg.append("path").datum(t).attr("d",l.line(a)).attr("class","mo-data-line").style("stroke",o),i=r.node().getTotalLength();r.attr("stroke-dasharray",i+" "+i).attr("stroke-dashoffset",i).transition().duration(1e3).ease(h.easeLinear).attr("stroke-dashoffset",0),l.svg.selectAll(".mo-data-point").data(t).enter().append("circle").attr("cx",function(t){return l.xAxisScale(t.label)}).attr("cy",function(t){return l.yAxisScale(l.lineValue(t,a))}).attr("r",l.pointRadius).attr("class","mo-line-point").style("fill",o)}var l=this;0<this.categories.length&&("cumulativeGrouped"===this.groupType||"grouped"===this.groupType)?this.categories.forEach(function(t,e){return zn(t.value,e)}):1<this.aggregates.length?this.aggregates.forEach(function(t,e){return zn(l.refactoredData,e,!0)}):(this.defineAreaGradients(0,m.getColor(0,this.colors)),zn(this.refactoredData,0),this.svg.append("path").datum(this.refactoredData).attr("class","mo-line-area").style("fill","url(#MoLineAreaGradient0)").transition().duration(1e3).attr("d",this.area))},LineChart.prototype.defineAreaGradients=function(t,e){var n=this.svg.append("defs").append("linearGradient").attr("id","MoLineAreaGradient"+t).attr("x1","0").attr("y1","0").attr("x2","0").attr("y2","0").attr("y1","100%");n.append("stop").attr("offset","0%").attr("stop-color",e).attr("stop-opacity",0),n.append("stop").attr("offset","100%").attr("stop-color",e).attr("stop-opacity",.7)},LineChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var e=t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");e.append("rect").attr("width","15").attr("height","15").attr("x",0).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){return t.key})},LineChart.prototype.renderMeasure=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text("Measure");var e=t.selectAll(".mo-label").data(this.aggregates).enter().append("g").attr("class","mo-label");e.append("rect").attr("width","15").attr("height","15").attr("x",0).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){return t.label})},LineChart.prototype.renderData=function(){var e=this;this.svg.append("g").selectAll(".mo-data-text").data(this.refactoredData).enter().append("text").attr("class","mo-data-text").attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",function(t){return e.yAxisScale(e.lineValue(t))-5}).attr("text-anchor","middle").text(this.lineValue).style("fill",this.textColor||"")},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],LineChart.prototype,"data",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"groupings",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"aggregates",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],LineChart.prototype,"showValue",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:15,right:0,bottom:80,left:50}}}),__metadata("design:type","function"==typeof(D="undefined"!=typeof ChartMargin&&ChartMargin)?D:Object)],LineChart.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],LineChart.prototype,"pointRadius",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"textColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"labelColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"groupType",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],LineChart.prototype,"colors",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],LineChart.prototype,"decimal",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],LineChart.prototype,"onDataChanged",null),LineChart=__decorate([e.Component({})],LineChart)),N=(Z._withStripped=!0,normalizeComponent({render:Z,staticRenderFns:[]},function(t){t&&t("data-v-ce9f73ba_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},X,void 0,!1,void 0,!1,createInjector,void 0,void 0));function FunnelChart(){var t=null!==E&&E.apply(this,arguments)||this;return t.funnelWidth=0,t.funnelHeight=0,t.legendItemHeight=25,t.svg=null,t.total=0,t.refactoredData=[],t}function ga(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var V,Y,H,W=(__extends(FunnelChart,E=e.Mixins(i)),FunnelChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},FunnelChart.prototype.mounted=function(){this.redraw()},FunnelChart.prototype.redraw=function(){this.init(),this.renderFunnel(),this.renderLegend()},FunnelChart.prototype.init=function(){var p=this;this.funnelWidth=this.getWidth(),this.funnelHeight=this.height||.8*this.funnelWidth;var h=this.data.length,t=this.funnelHeight+this.legendItemHeight*(h+1),m=h<=1?this.funnelWidth/4:this.funnelWidth/(2*h),g=this.funnelHeight/h;this.groupBy&&this.aggregate&&(t+=65),this.data.forEach(function(t,e){var n=e*m,a=e*g,o=p.funnelWidth-n,r=a,i=e===h-1&&1<h?o:o-m,l=r+g,s=e===h-1&&1<h?n:n+m,c=l,d=JSON.parse(JSON.stringify(t));d.points=[{x:n,y:a},{x:o,y:r},{x:i,y:l},{x:s,y:c}],p.refactoredData.push(d)}),this.svg=c.select(this.$el).append("svg").attr("width",this.funnelWidth).attr("height",t),this.total=f.sum(this.refactoredData,function(t){return t.values[0]})},FunnelChart.prototype.renderFunnel=function(){var n=this,t=this.svg.selectAll("g").data(this.refactoredData).enter().append("g");t.append("polygon").attr("points",this.getPoint(this.refactoredData[0].points)).style("fill","#fff").transition().duration(1e3).attr("points",function(t){return t.points.map(function(t){return[t.x,t.y].join(",")}).join(" ")}).style("fill",function(t,e){return m.getColor(e,n.colors)}),t.append("text").attr("class","mo-label-inner").attr("x",this.funnelWidth/2).attr("y",function(t){return(t.points[0].y+t.points[3].y)/2+4}).text(function(t){var e;return m.getInnerText({showValue:n.showValue,innerValue:"inner"===n.valuePosition,value:t.values[0],showPercentage:n.showPercentage,innerPercentage:"inner"===n.percentagePosition,total:n.total,decimal:n.decimal,symbol:null===(e=n.aggregate)||void 0===e?void 0:e.unitSymbol})})},FunnelChart.prototype.getPoint=function(t){for(var e=[],n=0;n<4;n+=1)e.push(t[n].x+","+t[n].y);return e.join(" ")},FunnelChart.prototype.renderLegend=function(){var a=this,t=this.funnelHeight+this.legendItemHeight;this.groupBy&&this.aggregate&&(this.svg.append("text").attr("class","mo-axis-label").attr("x",this.funnelWidth/2).attr("y",this.funnelHeight+25).text(this.aggregate.label),this.svg.append("line").attr("x1",0).attr("y1",this.funnelHeight+40).attr("x2",this.funnelWidth).attr("y2",this.funnelHeight+40).attr("class","mo-label-line"),this.svg.append("text").attr("class","mo-axis-label").attr("x",this.funnelWidth/2).attr("y",this.funnelHeight+65).text(this.groupBy.label),t+=65);var e=this.svg.append("g").attr("transform","translate(0, "+t+")"),n=e.selectAll("rect").data(this.refactoredData).enter().append("rect").attr("width",15).attr("height",15).style("fill",function(t,e){return m.getColor(e,a.colors)}),o=e.selectAll("text").data(this.refactoredData).enter().append("text").attr("class","mo-legend-text").text(function(t){var e,n=m.getBottomText({showValue:a.showValue,innerValue:"inner"===a.valuePosition,value:t.values[0],showPercentage:a.showPercentage,innerPercentage:"inner"===a.percentagePosition,total:a.total,decimal:a.decimal,symbol:null===(e=a.aggregate)||void 0===e?void 0:e.unitSymbol});return""!==n?t.label+" : "+n:t.label});"horizontal"===this.labelMode?(n.attr("x",function(t,e){return 10+100*e}).attr("y",10),o.attr("x",function(t,e){return 35+100*e}).attr("y",23)):(n.attr("x",10).attr("y",function(t,e){return 25*e}),o.attr("x",35).attr("y",function(t,e){return 25*e+13}))},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],FunnelChart.prototype,"data",void 0),__decorate([e.Prop({type:Number}),__metadata("design:type",Number)],FunnelChart.prototype,"height",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],FunnelChart.prototype,"decimal",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],FunnelChart.prototype,"colors",void 0),__decorate([e.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],FunnelChart.prototype,"labelMode",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showValue",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"valuePosition",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showPercentage",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"percentagePosition",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(I="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?I:Object)],FunnelChart.prototype,"groupBy",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(O="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?O:Object)],FunnelChart.prototype,"aggregate",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],FunnelChart.prototype,"onDataChanged",null),FunnelChart=__decorate([e.Component({})],FunnelChart)),U=(ga._withStripped=!0,normalizeComponent({render:ga,staticRenderFns:[]},function(t){t&&t("data-v-e288004c_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},W,void 0,!1,void 0,!1,createInjector,void 0,void 0));function GaugeChart(){var t=null!==V&&V.apply(this,arguments)||this;return t.svg=null,t.width=0,t.height=0,t.radius=0,t.backgroundArc=null,t.arc=null,t.centerArc=null,t.scale=null,t}function pa(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mo-chart"},[t.aggregate?n("div",{staticClass:"mo-axis-div-label"},[t._v("\n "+t._s(t.aggregate.label)+"\n ")]):t._e()])}var J,q,K,$=(__extends(GaugeChart,V=e.Mixins(i)),Object.defineProperty(GaugeChart.prototype,"minValue",{get:function(){return Math.min(this.data.minValue,this.data.value)},enumerable:!0,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"maxValue",{get:function(){return Math.max(this.data.maxValue,this.data.value)},enumerable:!0,configurable:!0}),GaugeChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},GaugeChart.prototype.mounted=function(){this.redraw()},GaugeChart.prototype.redraw=function(){this.init(),this.renderGauge(),this.renderData(),this.renderPointer()},GaugeChart.prototype.init=function(){this.width=this.getWidth();var t=this.width<400?.9:.85;this.height=this.width*t,this.radius=this.width/2-5,this.svg=c.select(this.$el).insert("svg",".mo-axis-div-label").attr("width",this.width).attr("height",this.width/2+100),this.defineGradient(),this.backgroundArc=p.arc().innerRadius(this.radius).outerRadius(this.radius).startAngle(this.angleToRadian(this.minAngle)).endAngle(this.angleToRadian(this.maxAngle)),this.arc=p.arc().innerRadius(this.radius).outerRadius(this.radius),this.centerArc=p.arc().innerRadius(8).outerRadius(22).startAngle(this.angleToRadian(-180)).endAngle(this.angleToRadian(180)),this.scale=l.scaleLinear().range([this.minAngle,this.maxAngle]).domain([this.minValue,this.maxValue])},GaugeChart.prototype.renderGauge=function(){var o=this;this.svg.append("path").attr("class","mo-gauge-back-arc").attr("transform","translate("+this.width/2+", "+this.width/2+")").attr("d",this.backgroundArc),this.svg.append("path").attr("class","mo-gauge-value-arc").attr("transform","translate("+this.width/2+", "+this.width/2+")").transition().duration(1e3).attrTween("d",function(){var t=o.angleToRadian(o.minAngle),e=o.angleToRadian(o.scale(o.data.value)),n={startAngle:t,endAngle:t},a={startAngle:t,endAngle:e};return function(t){return o.arc(r.interpolateObject(n,a)(t))}});var t=this.tickCalc(),e=this.getTicksAngles();this.svg.append("g").selectAll("path").data(e).enter().append("path").attr("d",t).attr("class","mo-gauge-tick"),this.svg.append("path").attr("class","mo-gauge-inner-arc").attr("transform","translate("+this.width/2+", "+this.width/2+")").attr("d",this.centerArc)},GaugeChart.prototype.renderData=function(){var t,e=this.svg.append("g").attr("transform","translate("+this.width/2+", "+(this.width/2+60)+")"),n=null===(t=this.aggregate)||void 0===t?void 0:t.unitSymbol;e.append("text").text(m.formatValue(this.data.value,n,this.decimal)).attr("class","mo-gauge-value"),e.append("text").attr("y",25).text([this.label,m.formatValue(this.data.maxValue,n,this.decimal)].join(" ")).attr("class","mo-gauge-max-value")},GaugeChart.prototype.renderPointer=function(){var n=this,t=[[2.5,0],[0,-(this.radius-10)],[-2.5,0],[2.5,0]],e=p.line().curve(p.curveMonotoneX);this.svg.append("g").data([t]).attr("class","mo-gauge-pointer").attr("transform","translate("+this.width/2+", "+this.width/2+")").append("path").attr("d",e).attr("transform","rotate("+this.scale(this.minValue)+")").transition().duration(1e3).attrTween("transform",function(){var t=n.scale(n.minValue),e=n.scale(n.data.value);return r.interpolateString("rotate("+t+")","rotate("+e+")")}),this.svg.append("circle").attr("class","mo-gauge-inner-bg-arc").attr("cx",this.width/2).attr("cy",this.width/2).attr("r",10)},GaugeChart.prototype.defineGradient=function(){var t=this.svg.append("defs").append("linearGradient").attr("id","MoGaugeGradient").attr("x1","0").attr("y1","0").attr("x2","100%").attr("y2","0");t.append("stop").attr("offset","0%").attr("stop-color",this.gradientColors[0]),t.append("stop").attr("offset","100%").attr("stop-color",this.gradientColors[1])},GaugeChart.prototype.angleToRadian=function(t){return t*(Math.PI/180)},GaugeChart.prototype.getTicksAngles=function(){for(var t=[],e=0,n=(this.scale(this.maxValue)-this.scale(this.minValue))/this.ticksNumber,a=this.minAngle;a<=this.maxAngle;a+=n)t.push(this.minAngle+n*e),e+=1;return t},GaugeChart.prototype.tickCalc=function(){var i=this;return function(t){var e=(t-90)*(Math.PI/180),n=i.radius-15,a=i.width/2+n*Math.sin(e),o=i.width/2+(5+n)*Math.sin(e),r=[{x:i.width/2+n*Math.cos(e),y:a},{x:i.width/2+(5+n)*Math.cos(e),y:o}];return p.line(function(t){return t.x},function(t){return t.y})(r)}},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Y="undefined"!=typeof GaugeData&&GaugeData)?Y:Object)],GaugeChart.prototype,"data",void 0),__decorate([e.Prop({type:String,default:function(){return"Target"}}),__metadata("design:type",String)],GaugeChart.prototype,"label",void 0),__decorate([e.Prop({type:Number,default:function(){return-90}}),__metadata("design:type",Number)],GaugeChart.prototype,"minAngle",void 0),__decorate([e.Prop({type:Number,default:function(){return 90}}),__metadata("design:type",Number)],GaugeChart.prototype,"maxAngle",void 0),__decorate([e.Prop({type:Array,default:function(){return["#7467cd","#00b9ff"]}}),__metadata("design:type",Array)],GaugeChart.prototype,"gradientColors",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],GaugeChart.prototype,"centerColor",void 0),__decorate([e.Prop({type:Number,default:function(){return 40}}),__metadata("design:type",Number)],GaugeChart.prototype,"ticksNumber",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],GaugeChart.prototype,"decimal",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(H="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?H:Object)],GaugeChart.prototype,"aggregate",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],GaugeChart.prototype,"onDataChanged",null),GaugeChart=__decorate([e.Component({})],GaugeChart)),tt=(pa._withStripped=!0,normalizeComponent({render:pa,staticRenderFns:[]},function(t){t&&t("data-v-bbe26ddc_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},$,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MetricChart(){return null!==J&&J.apply(this,arguments)||this}function ya(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mo-chart"},[n("div",{staticClass:"mo-metric"},[n("div",{staticClass:"mo-metric-inner"},[n("div",{staticClass:"mo-metric-label"},[t._v("\n "+t._s(t.data.label)+"\n ")]),t._v(" "),n("div",{staticClass:"mo-metric-value"},[t._v("\n "+t._s(t.value)+"\n ")])])])])}var et,nt,at=(__extends(MetricChart,J=e.Vue),Object.defineProperty(MetricChart.prototype,"value",{get:function(){return m.formatValue(this.data.value,this.aggregate.unitSymbol,this.decimal)},enumerable:!0,configurable:!0}),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(q="undefined"!=typeof MetricData&&MetricData)?q:Object)],MetricChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(K="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?K:Object)],MetricChart.prototype,"aggregate",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MetricChart.prototype,"decimal",void 0),MetricChart=__decorate([e.Component({})],MetricChart)),ot=(ya._withStripped=!0,normalizeComponent({render:ya,staticRenderFns:[]},function(t){t&&t("data-v-297d2cdc_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},at,void 0,!1,void 0,!1,createInjector,void 0,void 0));function ScatterChart(){var t=null!==et&&et.apply(this,arguments)||this;return t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.xAxis=null,t.yAxisScale=null,t.yAxis=null,t.line=null,t.categories=[],t}function Ha(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var rt,it,lt=(__extends(ScatterChart,et=e.Mixins(i)),ScatterChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},ScatterChart.prototype.mounted=function(){this.redraw()},ScatterChart.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine(),this.renderPoint(),1<this.groupings.length&&0<this.categories.length&&this.renderLabel()},ScatterChart.prototype.init=function(){var n=this,t=this.getWidth();this.width=t-this.margin.left-this.margin.right,this.height=this.width;var e=this.height+this.margin.top+this.margin.bottom;this.categories=[];var a=f.max(this.data,function(t){return t.values[0]}),o=f.max(this.data,function(t){return t.values[1]});"grouped"===this.groupType&&this.refactorGroupedData(),0<this.categories.length&&(e+=25*this.categories.length+50,a=m.getMaxValue(this.data,0),o=m.getMaxValue(this.data,1)),this.svg=c.select(this.$el).append("svg").attr("width",t).attr("height",e).append("g").attr("transform","translate("+this.margin.left+", "+this.margin.top+")"),this.xAxisScale=l.scaleLinear().domain([0,a||10]).range([0,this.width-5]).nice(),this.xAxis=s.axisBottom(this.xAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?m.formatValue(t,"",n.decimal):""}),this.yAxisScale=l.scaleLinear().domain([0,o||10]).range([this.height,0]).nice(),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?m.formatValue(t,"",n.decimal):""}),this.line=p.line(function(t){return n.xAxisScale(t.values[0])},function(t){return n.yAxisScale(t.values[1])})},ScatterChart.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate(5, "+this.height+")").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text"),this.svg.append("g").attr("class","y mo-axis").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0)},ScatterChart.prototype.renderAxisLabel=function(){0<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.margin.left)/2).attr("y",this.height+this.margin.bottom-30).text(this.aggregates[0].label),0<this.groupings.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.margin.left)/2).attr("y",this.height+this.margin.bottom-15).text("Plot By "+this.groupings[0].label),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",20-this.margin.left).attr("width",this.height+20).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",-this.margin.left-10).attr("width",this.height+20).attr("height",30).style("fill","none"),0<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15-this.margin.left).attr("transform","rotate(-90)").text(this.aggregates[0].label)},ScatterChart.prototype.renderSpaceLine=function(){this.svg.selectAll(".mo-space-line").data(this.yAxisScale.ticks()).enter().append("line").attr("stroke","").attr("class",function(t,e){return e%2==0?"mo-space-bold-line":"mo-space-line"}).attr("x1",0).attr("x2",this.width-5).attr("y1",this.yAxisScale).attr("y2",this.yAxisScale),this.svg.selectAll(".mo-vertical-line").data(this.xAxisScale.ticks()).enter().append("line").attr("class",function(t,e){return e%2==0?"mo-space-bold-line":"mo-space-line"}).attr("x1",this.xAxisScale).attr("x2",this.xAxisScale).attr("y1",this.height).attr("y2",0),this.svg.selectAll(".mo-axis-point").data(this.xAxisScale.ticks()).enter().append("circle").attr("class","mo-axis-point").attr("r",function(t,e){return e%2==0?2:0}).attr("cx",this.xAxisScale).attr("cy",this.height)},ScatterChart.prototype.renderPoint=function(){function Sq(t,e){var n=m.getColor(e,a.colors);a.svg.append("g").selectAll(".mo-data-point").data(t).enter().append("circle").attr("fill",n).attr("cx",0).attr("cy",a.height).attr("r",a.pointRadius).transition().duration(1e3).attr("cx",function(t){return a.xAxisScale(t.values[0])}).attr("cy",function(t){return a.yAxisScale(t.values[1]||0)})}var a=this;"grouped"===this.groupType&&0<this.categories.length?this.categories.forEach(function(t,e){return Sq(t.value,e)}):Sq(this.data,0)},ScatterChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.margin.left).attr("y1",this.margin.top+this.margin.bottom+this.height).attr("x2",this.width+this.margin.left+this.margin.right).attr("y2",this.margin.top+this.margin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.margin.left)/2).attr("y",this.margin.top+this.margin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var e=t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");e.append("rect").attr("width","15").attr("height","15").attr("x",0).attr("y",function(t,e){return n.margin.top+n.margin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.margin.top+n.margin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){return t.key})},ScatterChart.prototype.refactorGroupedData=function(){var n=[];this.data.forEach(function(e){e.pieces&&0<e.pieces.length&&e.pieces.forEach(function(t){n.push({label:e.label,group:t.label,values:t.values})})}),this.categories=Array.from(f.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],ScatterChart.prototype,"data",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"groupings",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"aggregates",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:15,right:0,bottom:80,left:65}}}),__metadata("design:type","function"==typeof(nt="undefined"!=typeof ChartMargin&&ChartMargin)?nt:Object)],ScatterChart.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],ScatterChart.prototype,"pointRadius",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],ScatterChart.prototype,"decimal",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"groupType",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],ScatterChart.prototype,"colors",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"labelColor",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ScatterChart.prototype,"onDataChanged",null),ScatterChart=__decorate([e.Component({})],ScatterChart)),st=(Ha._withStripped=!0,normalizeComponent({render:Ha,staticRenderFns:[]},function(t){t&&t("data-v-1bd4a6f8_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},lt,void 0,!1,void 0,!1,createInjector,void 0,void 0)),ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUxOTdBMEMwMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUxOTdBMEMxMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTE5N0EwQkUyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTE5N0EwQkYyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4/Y8gIAAAEC0lEQVR42syZS0gVYRTHv3vRHpYtUhdSKQZpCqGQIphFKtSmBxVUUosyRTO1xyqiWvTY9zAxCzcaWpBCEEFFlo/CtDZBPhZFpbiwu+lhckvtf+Q/9DHex+idO3bgz3XuzHznd883833nHF1r7t9QczA3lAXlQZlQMrQCWsLzP6FhaBDqhdqgHmjSPNDg7vKAjiJmCbYSOgYdgFYFuG4htBxaB+3hd1+gO5BEZMiqQ6uAMdAFqBhawO8+QI+hTqgP+gR957loKBFKhXKhrVASdBo6Bd2GzkMeOwD38lfHcoruQlehVwHu8VBvGTUXtIHRl/HK+VnB8fyaK8AzKPDXoTIeP4MqofcqNEvjuPk8rpVx8Sz+8few+7IoqJVw4/ylBTbAKY5RwGiO00drcktNlFVAiVwTtI3TtJlTbLfVcGwPfTUBMsIKYDW0AxrlA96twmfd9DFKn9XBAPdBpdAvaDvUr8JsePb66WtMfCOKhf4AY7RfcCLMkTNDiq+TxgwCMs4X4CUuJU+gOuWwAbKOK4Us8BfNgAnQEUhe9eNq/qyCDEWIYoIOeBSKhJq5KzhlEaYo9nHhjiTTNKDooLZoOmHyKHXJi4FIFZvO3eTnQZxzG1mJJAEfoZcOwclznsNIFZrOd5JFmLLc2pYjG/+UQ3AZPJ4wbwKY5imyiOUJ4HoedMwD3GEAtfi41mDJFMAUbY90FA5qCLBfi6UIYDwPPv8ncDpLvJvJpdKSzVCz7lDhdJZod5ALi7lHdtGZE3AzkgU9TTdbIZeCHDqLdQhuqRFJARzRtjtfqdcE/86wCGlH5BL5OSKAA1oqbrZWDq5DPg0AGcvzIU2rxjIggG94kOvn4gYTZLofSAMuPUQ4naXXzaJasTR0zRHSNjjsvy6yiLUJ4GsW0kl8GVQAyEM+INfaGDlFhiQy9bhZ6zbyZFmQmxt9QL6zEc7ICad9YRucNNZB2bC90H52A2YDGWEXHKY3lQW910giDMAhtiPE2RULY5kh7YicYkEvTPWI3pC5JjF6JVugkllAeu2AQ/RKWNALw1lfRZNHm3+JYrZFyBQb4LK1matC9DyBejO1rI2lmN7kQG0sq0A7JKVmHeBKg3UWqqAHvKGTJUG4LIs+4uiz0krrw8sk4RGL+XZmNXabjPmCPh6KT0TPa7W7JSnWTlZYi6BbXIzTbABL5Vgy5mL62AW4sdkmo7+5cD/n61/ARfkedC1IA3NGH5I7RAXXOQnMV74QTaF2WJv5i6UdUcTFXGS0gDtY7Eua/o33LGP6JtHaqP61gI1HqB46R0gVKqDiQFLpX2YUpNBfzQiXWRxjmMtStQpDE11pO440ws/wDcxn2ZrMQtvIhH/w2kGmc9IU8vlviGD2V4ABANQHM6YP3PIZAAAAAElFTkSuQmCC",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUxOTdBMEJDMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUxOTdBMEJEMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTE5N0EwQkEyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTE5N0EwQkIyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4IXIjoAAADkklEQVR42syZS0hUYRTHv7loD3sssllIpdRCnaBVDoIZpEJtehBBD3JlWVajPTZFWIssqF3lFDWFK2umNkIRQUVWSmFamyAfi6IacWGz6WEyhfY/9f/qMszjljNz74Efw53Hd/73fPf7vnPOuJpPX1b/YQbwgipQBorBAjCLn38Fw2AI9IFO0AsmYgdqObwrqaOcfxS2EOwD28GiJN+bDuaBZWAT3/sAroELIGzVoVWB+eAE2Amm8b034B7oBv3gHfjMz+aAIuABlWANWAyOgEPgKjgOIukQuJl3PZ9TdAOcA8+S/CZCXjJqLrCC0Zfx9vLVx/ESmivJMyjiW0EDrx+CRvBaTc2WctxqXl+ScfEs/kj0sMezPNBBceO805o0iFMco4bRHKePjmNnAnlWBUrkgmAtp2kVpzjddpFjR+grCJE5VgT6wXowyge8R2XOeuhjlD79qQRuAbvBN7AODKgMG569AfoaE9+I4rZEAvNNd3Agw5GLFSm+DuoZhEh3PIEnuZXcBwGVZYPIAHcK2eBbYgUWgh1Alvp+ZZ/5qKEOUSw0C9wDckGIp4Ithij2c+POpaZfAoVa06Zpt+mToxZRNHRWIknAW/DUAQK7qUU0eQ3TkSMH/6Td6jDNk9QiViUCl/OiSznHtJYyEVhiOiOdYlpLiQgs4MV7BwnUWgoMJpfKlGw6wf4kvoZyuBkxabpTbLaOpAgcMR13TrEivo6IwEFTKu4U01oGReALXlQ6SKDW0mewqFYsDV12K8P566IWsU4R+JyFtNStFQ6IXgW1iKZeg7VuOz9scIBAH1/bcS5P6H1QqrYo2MpugF3T62FBH9WVpBYYZjtCyr6zNkavlZraEL1wbE2ieyWrQb0N0atnQS8amuMVTRHT/EsUy7Mortw0c02IXiRRXRxiyi1tiNugNAviSulLfAYg7nqqzkITuAXcTL+9GdTnpQ83fTZaaX3ICpLq/i6L+Sfqd18w3SZjPqaPO+IT0Yta7W5JG2IDp3sGuAIepOm89nAsGXMmfWyEuDGVoJOVyL5z437E5S8r7BW4Cc6r5A3MWHPxhPBxn5PAfOSCCCb7oZUOa4h3LO2IOm7mgm4Bd7HYlzT9E38zl+mbRGul+tsC1o9Qm6wPilRTFag4kFT6pxgFKfSXMMJWj8dhHql+lYEmujKdONIIP8oVWM2ytZiFts6Ev/C7Q0znpCkU92+IVPZTgAEAL2fkkNJ1cvgAAAAASUVORK5CYII=";function TableChart(){var t=null!==rt&&rt.apply(this,arguments)||this;return t.ready=!1,t.checkedImage=ct,t.uncheckedImage=dt,t}function Sa(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"mo-chart"},[n.ready?a("div",{staticClass:"mo-table"},[a("div",{staticClass:"mo-table-row header-row"},n._l(n.data.headers,function(t,e){return a("div",{key:t.label,staticClass:"mo-table-cell",class:{"mo-table-right-cell":n.isNumber(e)},style:{width:n.getCellWidth(e)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.label)+"\n ")])}),0),n._v(" "),n._l(n.data.rows,function(t,e){return a("div",{key:e,staticClass:"mo-table-row"},n._l(t.cells,function(t,e){return a("div",{key:e,staticClass:"mo-table-cell",class:{"mo-table-right-cell":n.isNumber(e)},style:{width:n.getCellWidth(e)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n.isBoolean(e)?a("img",{staticClass:"mo-table-checkbox-cell",attrs:{src:"1"===t.label||"true"===t.label?n.checkedImage:n.uncheckedImage}}):a("span",[n._v(n._s(t.label))])])}),0)}),n._v(" "),a("div",{staticClass:"mo-table-row total-row"},n._l(n.data.totals,function(t,e){return a("div",{key:e,staticClass:"mo-table-cell",class:{"mo-table-right-cell":n.isNumber(e)},style:{width:n.getCellWidth(e)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.label)+"\n ")])}),0)],2):n._e()])}function Za(t){t.component("MoBarChart",S),t.component("MoBarChartHorizontal",P),t.component("MoPieChart",L),t.component("MoLineChart",N),t.component("MoFunnelChart",U),t.component("MoGaugeChart",tt),t.component("MoMetricChart",ot),t.component("MoScatterChart",st),t.component("MoTableChart",ht)}var pt=(__extends(TableChart,rt=e.Mixins(i)),TableChart.prototype.mounted=function(){this.ready=!0},TableChart.prototype.isNumber=function(t){var e=this.data.headers[t];return e&&("datetime"===e.dataType||"currency"===e.dataType||"date"===e.dataType||"int"===e.dataType||"double"===e.dataType||"percent"===e.dataType||"boolean"===e.dataType)},TableChart.prototype.isBoolean=function(t){var e=this.data.headers[t];return e&&"boolean"===e.dataType},TableChart.prototype.getCellWidth=function(t){var e=this.getWidth(),n=this.data.headers.length,a=e/n;return 0<a.toString().indexOf(".")&&t===n-1?e-(n-1)*Math.floor(a):Math.floor(a)},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(it="undefined"!=typeof TableData&&TableData)?it:Object)],TableChart.prototype,"data",void 0),TableChart=__decorate([e.Component({})],TableChart)),ht=(Sa._withStripped=!0,normalizeComponent({render:Sa,staticRenderFns:[]},function(t){t&&t("data-v-9ec4beee_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},pt,void 0,!1,void 0,!1,createInjector,void 0,void 0)),mt=(DataConvertor.prototype.refactorPieces=function(t){var o=this,r=[];if(t.forEach(function(t){var e;t.pieces&&0<(null===(e=t.pieces)||void 0===e?void 0:e.length)&&t.pieces.forEach(function(t){r.indexOf(t.label)<0&&r.push(t.label)})}),0===r.length)return t;var e=[];return t.forEach(function(n){var t=JSON.parse(JSON.stringify(n)),a=[];r.forEach(function(t){if(n.pieces&&0<n.pieces.length){var e=o.getNewPiece(n.pieces,t);a.push(e)}}),t.pieces=a,e.push(t)}),e},DataConvertor.prototype.getNewPiece=function(t,e){var n=t.findIndex(function(t){return t.label===e});return 0<=n?t[n]:{label:e,pieces:[],values:[0]}},DataConvertor);function DataConvertor(){this.metadata=null,this.data=null,this.languageLocaleKey=""}var gt,ft=(__extends(DashboardDataConvertor,gt=mt),DashboardDataConvertor.prototype.init=function(t,e){this.metadata=this.refactorMetadata(t,e),this.data=this.refactorData(t,e)},DashboardDataConvertor.prototype.refactorMetadata=function(t,e){var r={},n=e.reportResult||{},a=n.reportMetadata,i=n.reportExtendedMetadata,l=n.factMap,o=t.properties;if(a&&(r.reportId=a.id,r.reportName=a.name),r.header=t.header,r.footer=t.footer,r.title=t.title,o){if(r.aggregateColumns=[],r.groupingColumns=[],i){var s=o.aggregates,c=o.groupings;s&&s.forEach(function(t,e){var n=i.aggregateColumnInfo[t.name];if(n){var a="";"currency"===n.dataType&&(a=l["T!T"]?l["T!T"].aggregates[e].label.slice(0,1):"");var o={label:n.label,dataType:n.dataType,unitSymbol:a};r.aggregateColumns.push(o)}}),c&&c.forEach(function(t){var e=i.groupingColumnInfo[t.name];if(e){var n={label:e.label,dataType:e.dataType};r.groupingColumns.push(n)}})}var d=o.visualizationType,p=o.visualizationProperties;r.chartType=d;var h=p.showValues,m=p.showPercentages,g=p.showTotal,f=p.groupByType,u=p.aggregateVisualizationInfos,b=void 0===u?[]:u;if(r.showValues=h,r.showPercentages=m,r.showTotal=g,r.groupByType=f,1<b.length){var x=b[0],v=b[1];r.plotOnSecondAxis=x.axis!==v.axis,r.plotAsLineChart="Line"===v.visualizationType}}return r},DashboardDataConvertor.prototype.refactorData=function(t,e){var n,a=e.reportResult,o=t.properties;if(a&&o){var r=a.groupingsDown.groupings,i=a.factMap,l=a.reportExtendedMetadata,s=a.reportMetadata;switch(o.visualizationType){case"Table":case"FlexTable":n=this.refactorTableData({groupings:r,factMap:i,properties:o,reportExtendedMetadata:l,reportMetadata:s});break;case"Gauge":n=this.refactorGaugeData({factMap:i,properties:o,reportExtendedMetadata:l});break;case"Metric":n=this.refactorMetricData({factMap:i,properties:o});break;default:n=this.refactorCommonData({groupings:r,factMap:i,properties:o})}}return n},DashboardDataConvertor.prototype.refactorTableData=function(t){var e=t.groupings,l=t.factMap,n=t.properties,a=t.reportExtendedMetadata,o=t.reportMetadata,s={headers:[],rows:[],totals:[]},r=n.visualizationProperties,i=n.sort,c=n.groupings,d=n.visualizationType,p=r.tableColumns,h=a.groupingColumnInfo,m=a.aggregateColumnInfo,g=a.detailColumnInfo,f=-1,u="",b=c.length,x=[],v=[],y=[],w=[];function cu(t,e){var n=t.cells[f].value,a=e.cells[f].value,o=t.cells[f].label.toLowerCase(),r=e.cells[f].label.toLowerCase();return"date"!==u&&"datetime"!==u||(n=n?new Date(n):n,a=a?new Date(a):a,o=o&&"-"!==o?new Date(o):new Date("1/1/1970 00:00 am"),r=r&&"-"!==r?new Date(r):new Date("1/1/1970 00:00 am")),"desc"===i.sortOrder?a?n<a?1:-1:r.toString().toLowerCase()>o.toString().toLowerCase()?1:-1:n?a<n?1:-1:r<o?1:-1}return s.headers=[],p.forEach(function(t,e){i&&i.column===t.column&&(f=e),t.showTotal&&w.push(e);var n={};"grouping"===t.type&&h[t.column]?(n=h[t.column],0===h[t.column].groupingLevel?x.push(e):1===h[t.column].groupingLevel&&v.push(e)):"aggregate"===t.type&&m[t.column]?(n=m[t.column],y.push(e)):g[t.column]&&(n=g[t.column]),s.headers.push(n)}),s.rows=[],0<e.length?e.forEach(function(t){var r;0<t.groupings.length&&1<b?(r=t).groupings.forEach(function(e){var n={cells:[]};x.forEach(function(t){n.cells[t]={label:r.label}}),v.forEach(function(t){n.cells[t]={label:e.label}});var a=l[e.key+"!T"].aggregates,o=0;y.forEach(function(t){n.cells[t]={label:a[o].label,value:a[o].value},o+=1}),s.rows.push(n)}):function(e){var n={cells:[]};0<x.length?x.forEach(function(t){n.cells[t]={label:e.label}}):v.forEach(function(t){n.cells[t]={label:e.label}});var a=l[e.key+"!T"].aggregates,o=0;y.forEach(function(t){n.cells[t]={label:a[o].label,value:a[o].value},o+=1}),s.rows.push(n)}(t)}):l["T!T"]&&l["T!T"].rows&&l["T!T"].rows.forEach(function(t){var e={cells:[]};t.dataCells.forEach(function(t){e.cells.push({label:t.label})}),s.rows.push(e)}),i&&(h[i.column]?u=h[i.column].dataType:m[i.column]?u=m[i.column].dataType:g[i.column]&&(u=g[i.column].dataType),0<x.indexOf(f)?s.rows.sort(function(t,e){if(t.cells[f].label===e.cells[f].label&&0<v.length){var n=t.cells[v[0]].label,a=e.cells[v[0]].label;return n.toLowerCase()>a.toLowerCase()?1:-1}return cu(t,e)}):0<v.indexOf(f)?s.rows.sort(function(t,e){if(t.cells[f].label!==e.cells[f].label)return cu(t,e);var n=t.cells[0].label,a=e.cells[0].label;return n.toLowerCase()>a.toLowerCase()?1:-1}):s.rows.sort(function(t,e){if(t.cells[f].value===e.cells[f].value&&0<x.length){if(t.cells[0].label===e.cells[0].label&&0<v.length){var n=t.cells[v[0]].label,a=e.cells[v[0]].label;return n.toLowerCase()>a.toLowerCase()?1:-1}return t.cells[0].label.toLowerCase()>e.cells[0].label.toLowerCase()?1:-1}return cu(t,e)})),n.maxRows&&(s.rows=s.rows.slice(0,n.maxRows)),function(){var n;if(s.totals=[],"FlexTable"===d){var r=o.aggregates,i=l["T!T"].aggregates;p.forEach(function(t,e){if(0===e)s.totals[e]={label:"Total"};else{var n=t.column,a=[n,"s!"+n,"a!"+n,"m!"+n,"x!"+n],o=r.findIndex(function(t){return a.includes(t)});s.totals[e]=0<=o?{label:i[o].label}:{label:"-"}}})}else{var a=(n={},s.rows.forEach(function(t){t.cells.forEach(function(t,e){p[e].showTotal&&(void 0===n[e]&&(n[e]=0),n[e]+=t.value)})}),n);0<w.length&&p.forEach(function(t,e){if(0===e)s.totals[0]={label:"Total"};else if(a[e]){var n=a[e];n=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!1);var a=t;n&&(a=100*t),0<t.toString().indexOf(".")&&(a=Number(a.toFixed(e)));var o=a.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")});return n?o+"%":o}(n,t.scale,t.isPercent),s.totals[e]={label:n}}else s.totals[e]={label:"-"}})}}(),s},DashboardDataConvertor.prototype.refactorGaugeData=function(t){var e=t.factMap,n=t.properties,a={value:e["T!T"]?e["T!T"].aggregates[0].value:"",minValue:0,maxValue:0},o=n.visualizationProperties.breakPoints[0].breaks,r=[];return o.forEach(function(t){t.upperBound&&!t.lowerBound&&r.indexOf(0)<0&&r.push(0),t.lowerBound&&r.indexOf(t.lowerBound)<0&&r.push(t.lowerBound),t.upperBound&&r.indexOf(t.upperBound)<0&&r.push(t.upperBound)}),0<r.length?(a.minValue=Math.min.apply(null,r),a.maxValue=Math.max.apply(null,r)):(a.minValue=0,a.maxValue=3),a.value===a.minValue&&a.value===a.maxValue&&(a.maxValue+=1),a},DashboardDataConvertor.prototype.refactorMetricData=function(t){var e=t.properties,n=t.factMap;return{label:e.visualizationProperties.metricLabel,value:n["T!T"]?n["T!T"].aggregates[0].value:0}},DashboardDataConvertor.prototype.refactorCommonData=function(t){var e=this,n=t.groupings,a=t.factMap,o=t.properties,r=[];return(o.maxRows?n.slice(0,o.maxRows):n).forEach(function(t){r.push(e.recursiveGrouping(t,a))}),r=this.refactorPieces(r)},DashboardDataConvertor.prototype.recursiveGrouping=function(t,e){var n=this,a={label:t.label,pieces:[],values:e[t.key+"!T"].aggregates.map(function(t){return t.value})},o=t.groupings;return(void 0===o?[]:o).forEach(function(t){a.pieces.push(n.recursiveGrouping(t,e))}),a},DashboardDataConvertor);function DashboardDataConvertor(t,e){var n=gt.call(this)||this;return n.init(t,e),n}var ut,bt,xt=(__extends(ReportDataConvertor,ut=mt),ReportDataConvertor.prototype.init=function(t){this.metadata=this.refactorMetadata(t),this.data=this.refactorData(t),this.tableData=this.refactorTableData(t)},ReportDataConvertor.prototype.refactorMetadata=function(t){var e=t.reportMetadata,n=t.reportExtendedMetadata,i=t.factMap,a=n.groupingColumnInfo,l=n.aggregateColumnInfo,o=e.chart,s=e.aggregates;if(!o)return{groupingColumns:[],aggregateColumn:[],chartType:"",showPercentages:!1,showTotal:!1,groupByType:""};var r=o.groupings,c=o.summaries,d=o.summaryAxisLocations,p=o.summaryVisualizationTypes,h=o.chartType,m=o.showChartPercentages,g=o.showChartTotal;return{groupingColumns:r.map(function(t){var e=a[t];return{label:e.label,dataType:e.dataType}}),aggregateColumns:c.map(function(t){var e=s.indexOf(t),n=l[t],a=n.label,o=n.dataType,r="";return"currency"===o&&(r=i["T!T"]?i["T!T"].aggregates[e].label.slice(0,1):""),{label:a,dataType:o,unitSymbol:r}}),chartType:h,showPercentages:m,showTotal:g,groupByType:this.getGroupType(o.chartType),plotOnSecondAxis:1<d.length&&d[0]!==d[1],plotAsLineChart:1<p.length&&"Line"===p[1]}},ReportDataConvertor.prototype.refactorData=function(t){var a=t.factMap,e=t.reportMetadata,n=t.groupingsDown,o=e.chart,r=e.aggregates,i=e.groupingsDown,l=n.groupings,s=[];if(o){var c=o.groupings,d=o.summaries,p=d.map(function(t){return r.indexOf(t)}),h=this.getYIndex(i,c),m=this.getGroupedIndex(i,c),g=0,f={},u="",b="",x=function(n){g===m&&(b=n.label),g===h&&(u=n.label,f[u]||(f[u]=h===m?[]:{})),h<=m&&g===m||m<h&&g===h?h===m?(f[u]=f[u]||[],p.forEach(function(t,e){f[u][e]=a[n.key+"!T"].aggregates[t].value})):h<m?(f[u][n.label]=f[u][n.label]||[],p.forEach(function(t,e){f[u][n.label][e]=a[n.key+"!T"].aggregates[t].value})):m<h&&(f[u][b]=f[u][b]||[],p.forEach(function(t,e){f[u][b][e]=a[n.key+"!T"].aggregates[t].value})):(g+=1,n.groupings.forEach(function(t){x(t)}),--g)};l.forEach(function(t){g+=1,x(t),--g});var v=Object.keys(f);v.forEach(function(e){if(h===m)s.push({label:e,values:f[e]});else{var a={label:e,pieces:[],values:[]};Object.keys(f[e]).forEach(function(t){a.pieces.push({label:t,values:f[e][t]})}),a.values=[],(a.pieces||[]).forEach(function(n){d.forEach(function(t,e){a.values[e]=a.values[e]||0,a.values[e]+=n.values[e]||0})}),s.push(a)}}),s=this.refactorPieces(s)}return s},ReportDataConvertor.prototype.getGroupType=function(t){return 0<=t.indexOf(" Cumulative Grouped")?"cumulativeGrouped":0<=t.indexOf(" Cumulative")?"cumulative":0<=t.indexOf(" Grouped")?"grouped":0<=t.indexOf(" Stacked to 100")?"stacked100":0<=t.indexOf(" Stacked")?"stacked":""},ReportDataConvertor.prototype.getYIndex=function(t,e){var n=t.findIndex(function(t){return t.name===e[0]});return 0<=n?n+1:1},ReportDataConvertor.prototype.getGroupedIndex=function(t,e){var n=2===e.length?e[1]:e[0],a=t.findIndex(function(t){return t.name===n});return 0<=a?a+1:1},ReportDataConvertor.prototype.refactorTableData=function(t){var e=t.reportMetadata.reportFormat;return"MATRIX"===e?this.convertMatrix(t):"SUMMARY"===e?this.convertSummary(t):this.convertTabular(t)},ReportDataConvertor.prototype.convertTabular=function(t){var e=t.reportMetadata,n=t.reportExtendedMetadata,a=t.factMap,o=t.hasDetailRows,r=e.reportFormat,i=n.detailColumnInfo,l={format:r,showHeader:o,headers:Object.keys(i).map(function(t){return i[t]}),rows:[]},s=a["T!T"],c=s.rows,d=s.aggregates;o&&(l.rows=c.map(function(t){return{id:z.v4(),type:"data",cells:t.dataCells}}));var p=d.findIndex(function(t){return"RowCount"===t}),h=0;return-1<p?h=d[p].label:1===d.length?h=d[0].label:c&&(h=c.length),l.rows.push({id:z.v4(),type:"grand-total",label:"Grand Totals",grand:!0,background:this.getBackground(3),recordCount:h}),l},ReportDataConvertor.prototype.convertSummary=function(t){var e,x=this,n=t.reportMetadata,a=t.reportExtendedMetadata,o=t.groupingsDown,v=t.factMap,r=n.reportFormat,i=n.groupingsDown,y=n.aggregates,w=n.detailColumns,l=n.hasRecordCount,_=n.hasDetailRows,C=n.showSubtotals,s=n.showGrandTotal,c=a.groupingColumnInfo,d=a.detailColumnInfo,p=o.groupings,k={format:r,showHeader:!0,headers:[],rows:[],hasRecordCount:l},S=0,A=i.map(function(t){return c[t.name].label}),h=y.map(function(t){var e=t.split("!");return e[1]||e[0]});w.forEach(function(t){(_||h.includes(t))&&k.headers.push(d[t])});var T=function(t){var e,n,a=t.key,o=t.label,r=t.groupings,i=t.value,l=a.split("_").length-1,s=x.getBackground(l),c={id:z.v4(),type:"group",level:l,background:s,margin:5*l,label:o,value:i,fieldLabel:A[l],recordCount:0},d=v[a+"!T"],p=d.aggregates,h=d.rows,m=y.findIndex(function(t){return"RowCount"===t});if(-1<m)c.recordCount=p[m].label;else if(h)if((c.recordCount=0)<r.length)r.forEach(function(t){var e=t.groupings;if(0<e.length)e.forEach(function(t){var e=v[t.key+"!T"].rows.length;c.recordCount+=e});else{var n=v[t.key+"!T"].rows.length;c.recordCount+=n,S+=n}});else{var g=h.length;c.recordCount=g,S+=g}if(k.rows.push(c),0===r.length){if(_){var f=h.map(function(t){return{id:z.v4(),type:"data",cells:t.dataCells}});(e=k.rows).push.apply(e,f)}}else r.forEach(function(t){T(t)});if(C){var u={id:z.v4(),type:"subtotals",label:x.languageLocaleKey&&x.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",grand:!1,background:x.getBackground(3)};if(k.rows.push(u),0<y.length){var b=x.getSummaryAggregateRows({aggregates:y,hasDetailRows:_,detailColumns:w,rowAggregates:p,background:u.background});(n=k.rows).push.apply(n,b)}}};p.forEach(function(t){T(t)});var m=v["T!T"].aggregates,g=y.findIndex(function(t){return"RowCount"===t}),f=0;if(f=-1<g?m[g].label:S,s){var u={id:z.v4(),type:"grand-total",label:this.languageLocaleKey&&this.languageLocaleKey.startsWith("zh")?"总计":"Grand Total",grand:!0,background:this.getBackground(3),recordCount:f};if(k.rows.push(u),0<y.length){var b=this.getSummaryAggregateRows({aggregates:y,hasDetailRows:_,detailColumns:w,rowAggregates:m,background:u.background,isGrand:!0});(e=k.rows).push.apply(e,b)}}return k},ReportDataConvertor.prototype.convertMatrix=function(t){function az(t,e,n){for(var a={id:z.v4(),cells:[]},o=0;o<k;o+=1)a.cells.push({value:""});e?a.cells.push({label:g[e.name].label,value:g[e.name].label}):a.cells.push({label:"",value:""});for(var r=0;r<n;r+=1)a.cells.push({value:""});for(var i=0;i<t.dataCells.length;i+=1){if(!e||e.key!==i){a.cells.push({label:1,value:1,type:"int"});break}a.cells.push(F({type:g[e.name].dataType},t.dataCells[i]))}for(var l=T-(k+1)-n-A.length-1,s=0;s<l;s+=1)a.cells.push({value:""});return A.forEach(function(n){t.dataCells.forEach(function(t,e){n.key===e&&a.cells.push(F({type:g[n.name].dataType},t))})}),a}var e,i=this,n=t.reportMetadata,a=t.reportExtendedMetadata,o=t.groupingsAcross,r=t.groupingsDown,u=t.factMap,l=n.groupingsAcross,s=n.groupingsDown,b=n.aggregates,c=n.detailColumns,d=n.reportFormat,x=n.hasRecordCount,v=n.hasDetailRows,p=n.showSubtotals,h=n.showGrandTotal,m=a.groupingColumnInfo,y=a.aggregateColumnInfo,g=a.detailColumnInfo,w=o.groupings,f=r.groupings,_={showHeader:!0,format:d,headers:[],rows:[]},C=l.length,k=s.length,S=[],A=[],T=1<b.length||1<C?k+1:k;if(v&&function(){for(var t=0;t<c.length;t+=1){var e=c[t];0<b[0].indexOf(e)?S.push({key:t,name:e}):A.push({key:t,name:e})}}(),_.headers.push(function(){var t,o={cells:[]},e=1<b.length?"":y[b[0]].label;if(o.cells.push({value:e,colspan:1===C&&1<b.length?k+1:k}),l.forEach(function(t){0===m[t.name].groupingLevel&&o.cells.push({value:m[t.name].label,colspan:1===C?w.length:0,type:1===C?"group-value":""})}),w.forEach(function(t){var e=0,n=t.label,a=t.groupings;1===C||0===a.length?T+=1:(0<a.length&&(e=a.length+1,T+=e),o.cells.push({value:n,colspan:e,type:"group-value"}))}),o.cells.push({value:"Grand Total",type:"double"}),T+=1,v){T+=A.length;var n=A.map(function(){return{value:""}});(t=o.cells).push.apply(t,n)}return o}()),_.headers.push(function(){var t,e,n,a={cells:[]},o=s.map(function(t){return{value:m[t.name].label}});if((t=a.cells).push.apply(t,o),1<C)l.forEach(function(t){1===m[t.name].groupingLevel&&a.cells.push({value:m[t.name].label})}),w.forEach(function(t){t.groupings.forEach(function(t){a.cells.push({value:t.label,type:"group-value"})}),a.cells.push({value:"Subtotal",type:"double"})});else{1<b.length&&(1<k||1===k&&1===C)&&a.cells.push({value:""});var r=w.map(function(t){return{value:t.label,type:"group-value"}});(e=a.cells).push.apply(e,r)}if(a.cells.push({value:""}),v){var i=A.map(function(t){return{value:g[t.name].label,type:g[t.name].dataType}});(n=a.cells).push.apply(n,i)}return a}()),_.columnLength=T,f.forEach(function(o,f){var t,e;if(1<k)o.groupings.forEach(function(t,m){var e,n,a=[],g=[];b.forEach(function(d,p){if("RowCount"!==d||x){var h={id:z.v4(),cells:[]};0===m&&0===p?h.cells.push({label:o.label,value:o.label}):h.cells.push({value:""}),0===p?h.cells.push({label:t.label,value:t.label}):h.cells.push({value:""}),(1<b.length||1<C)&&h.cells.push(y[d]),w.forEach(function(s,c){if(1<C)s.groupings.forEach(function(t,e){var n=[f+"_"+m,c+"_"+e].join("!"),a=u[n],o=a.aggregates,r=a.rows,i=o[p];if(i.type=y[d].dataType,h.cells.push(i),v){var l=(s.groupings.length+1)*c+e;r.forEach(function(e){0<S.length?g.push.apply(g,S.map(function(t){return az(e,t,l)})):g.push(az(e,null,l))})}});else if(v){var t=u[f+"_"+m+"!"+c].rows,a=c;t.forEach(function(n){if(0<S.length)S.forEach(function(t){var e=az(n,t,a);g.push(e)});else{var t=az(n,null,a);g.push(t)}})}h.cells.push(F({type:y[d].dataType},u[f+"_"+m+"!"+c].aggregates[p]))}),h.cells.push(F({type:y[d].dataType},u[f+"_"+m+"!T"].aggregates[p])),v&&A.forEach(function(){h.cells.push({value:""})}),a.push(h)}}),(e=_.rows).push.apply(e,a),(n=_.rows).push.apply(n,g)}),p&&b.forEach(function(t,o){if("RowCount"!==t||x){var r={id:z.v4(),cells:[]};r.cells.push({value:""}),0===o?r.cells.push({label:i.languageLocaleKey&&i.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",value:"Subtotal",type:"double"}):r.cells.push({value:""}),(1<b.length||1<C)&&r.cells.push({label:y[t].label,value:y[t].label}),w.forEach(function(t,a){t.groupings.forEach(function(t,e){var n=[f,a+"_"+e].join("!");r.cells.push(F({type:"double"},u[n].aggregates[o]))});var e=f+"!"+a;r.cells.push(F({type:"double"},u[e].aggregates[o]))});var e=f+"!T";r.cells.push(F({type:"double"},u[e].aggregates[o])),A.forEach(function(){r.cells.push({value:""})}),_.rows.push(r)}});else{var n=[],h=[];b.forEach(function(c,d){if("RowCount"!==c||x){var p={id:z.v4(),cells:[]};0===d?p.cells.push({label:o.label,value:o.value}):p.cells.push({value:""}),(1<b.length||1<C)&&p.cells.push({label:y[c].label,value:y[c].label,type:y[c].dataType}),w.forEach(function(l,s){if(1<C)l.groupings.forEach(function(t,e){var n=[f,s+"_"+e].join("!"),a=u[n],o=a.rows,r=a.aggregates;if(p.cells.push(F({type:y[c].dataType},r[d])),v){var i=(l.groupings.length+1)*s+e;o.forEach(function(n){if(0<S.length)S.forEach(function(t){var e=az(n,t,i);h.push(e)});else{var t=az(n,null,i);h.push(t)}})}});else if(v){var t=u[f+"!"+s].rows,a=s;t.forEach(function(n){if(0<S.length)S.forEach(function(t){var e=az(n,t,a);h.push(e)});else{var t=az(n,null,a);h.push(t)}})}p.cells.push(F({type:y[c].dataType},u[f+"!"+s].aggregates[d]))}),p.cells.push(F({type:y[c].dataType},u[f+"!T"].aggregates[d])),v&&A.forEach(function(){p.cells.push({value:""})}),x&&n.push(p)}}),(t=_.rows).push.apply(t,n),(e=_.rows).push.apply(e,h)}}),h){var M=[];b.forEach(function(a,o){if("RowCount"!==a||x){var r={id:z.v4(),cells:[]};0===o?r.cells.push({label:i.languageLocaleKey&&i.languageLocaleKey.startsWith("zh")?"总计":"Grand Total",value:"Grand Total",type:"double"}):r.cells.push({value:""}),1<k&&r.cells.push({value:""}),(1<b.length||1<C)&&r.cells.push({label:y[a].label,value:y[a].label}),w.forEach(function(t,n){1<C&&t.groupings.forEach(function(t,e){r.cells.push(F({type:y[a].dataType},u["T!"+n+"_"+e].aggregates[o]))}),r.cells.push(F({type:y[a].dataType},u["T!"+n].aggregates[o]))}),r.cells.push(F({type:y[a].dataType},u["T!T"].aggregates[o])),A.forEach(function(){r.cells.push({value:""})}),M.push(r)}}),(e=_.rows).push.apply(e,M)}return _},ReportDataConvertor.prototype.getSummaryAggregateRows=function(t){var s=t.aggregates,e=t.hasDetailRows,n=t.detailColumns,c=t.rowAggregates,a=t.background,o=t.isGrand,r=void 0!==o&&o,i=[],d={},p={s:"",m:"min",mx:"max",a:"avg"};s.forEach(function(t){var e=t.split("!"),n=e[e.length-1];d[n]=d[n]||[],d[n].push(t)});var l=0;Object.keys(d).forEach(function(t){d[t]&&d[t].length>l&&(l=d[t].length)});for(var h=function(l){var t={id:z.v4(),type:"group-aggregate",grand:r,background:a,cells:[]};n.forEach(function(r){if(e||d[r]){var i={label:"",value:""};Object.keys(d).forEach(function(e){if(r===e){var t=s.findIndex(function(t){return t===d[e][l]});if(0<=t){var n=s[t].split("!")[0],a=p[n],o=c[t].label;i.label=a?a+" "+o:o,i.value=c[t].value}}}),t.cells.push(i)}}),i.push(t)},m=0;m<l;m+=1)h(m);return i},ReportDataConvertor.prototype.getBackground=function(t){return"rgb("+(237-10*t)+", "+(241-10*t)+", "+(247-10*t)+")"},ReportDataConvertor);function ReportDataConvertor(t,e){var n=ut.call(this)||this;return n.tableData={headers:[],rows:[],showHeader:!0,format:""},n.languageLocaleKey=e,n.init(t),n}function SFBarChart(){return null!==bt&&bt.apply(this,arguments)||this}function db(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("bar-chart",{attrs:{"x-axis-mode":"vertical",data:t.data,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns,"group-type":t.metadata.groupByType,"has-line-chart":t.metadata.plotAsLineChart,"has-second-axis":t.metadata.plotOnSecondAxis,"second-y-index":1,decimal:2}}):t._e()}var vt,yt=(__extends(SFBarChart,bt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFBarChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFBarChart.prototype,"metadata",void 0),SFBarChart=__decorate([e.Component({components:{BarChart:S}})],SFBarChart)),wt=(db._withStripped=!0,normalizeComponent({render:db,staticRenderFns:[]},void 0,yt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFFunnelChart(){return null!==vt&&vt.apply(this,arguments)||this}function mb(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("funnel-chart",{attrs:{data:t.data,decimal:2,"show-percentage":t.metadata.showPercentages,"show-value":t.metadata.showValues,"group-by":t.metadata.groupingColumns[0],aggregate:t.metadata.aggregateColumns[0]}}):t._e()}var _t,Ct,kt=(__extends(SFFunnelChart,vt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFFunnelChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFFunnelChart.prototype,"metadata",void 0),SFFunnelChart=__decorate([e.Component({components:{FunnelChart:U}})],SFFunnelChart)),St=(mb._withStripped=!0,normalizeComponent({render:mb,staticRenderFns:[]},void 0,kt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFGaugeChart(){return null!==_t&&_t.apply(this,arguments)||this}function vb(){var t=this,e=t.$createElement,n=t._self._c||e;return t.data.isEmpty?t._e():n("gauge-chart",{attrs:{data:t.data,decimal:2,aggregate:t.metadata.aggregateColumns[0]}})}var At,Tt=(__extends(SFGaugeChart,_t=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Ct="undefined"!=typeof GaugeData&&GaugeData)?Ct:Object)],SFGaugeChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGaugeChart.prototype,"metadata",void 0),SFGaugeChart=__decorate([e.Component({components:{GaugeChart:tt}})],SFGaugeChart)),Mt=(vb._withStripped=!0,normalizeComponent({render:vb,staticRenderFns:[]},void 0,Tt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFHorizontalBarChart(){return null!==At&&At.apply(this,arguments)||this}function Eb(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("bar-chart-horizontal",{attrs:{data:t.data,"x-axis-mode":"vertical",decimal:2,"value-position":"inner","bar-height":t.barHeight,"bar-padding":t.barPadding,"group-type":t.metadata.groupByType,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns}}):t._e()}var zt,Ft=(__extends(SFHorizontalBarChart,At=e.Vue),Object.defineProperty(SFHorizontalBarChart.prototype,"isGrouped",{get:function(){return 0<this.data.length&&this.metadata.groupByType&&"none"!==this.metadata.groupByType&&!!this.data[0].pieces&&0<this.data[0].pieces.length},enumerable:!0,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barHeight",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?13:23},enumerable:!0,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barPadding",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?20:15},enumerable:!0,configurable:!0}),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFHorizontalBarChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFHorizontalBarChart.prototype,"metadata",void 0),SFHorizontalBarChart=__decorate([e.Component({components:{BarChartHorizontal:P}})],SFHorizontalBarChart)),Rt=(Eb._withStripped=!0,normalizeComponent({render:Eb,staticRenderFns:[]},void 0,Ft,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFLineChart(){return null!==zt&&zt.apply(this,arguments)||this}function Nb(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("line-chart",{attrs:{data:t.data,"group-type":t.metadata.groupByType,"show-value":t.metadata.showValues,decimal:2,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns}}):t._e()}var Pt,Gt,Bt=(__extends(SFLineChart,zt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFLineChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFLineChart.prototype,"metadata",void 0),SFLineChart=__decorate([e.Component({components:{LineChart:N}})],SFLineChart)),Dt=(Nb._withStripped=!0,normalizeComponent({render:Nb,staticRenderFns:[]},void 0,Bt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFMetricChart(){return null!==Pt&&Pt.apply(this,arguments)||this}function Wb(){var t=this,e=t.$createElement,n=t._self._c||e;return t.data.isEmpty?t._e():n("metric-chart",{attrs:{data:t.data,aggregate:t.metadata.aggregateColumns[0],decimal:2}})}var jt,Lt=(__extends(SFMetricChart,Pt=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Gt="undefined"!=typeof ChartPiece&&ChartPiece)?Gt:Object)],SFMetricChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMetricChart.prototype,"metadata",void 0),SFMetricChart=__decorate([e.Component({components:{MetricChart:ot}})],SFMetricChart)),Et=(Wb._withStripped=!0,normalizeComponent({render:Wb,staticRenderFns:[]},void 0,Lt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFPieChart(){return null!==jt&&jt.apply(this,arguments)||this}function dc(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("pie-chart",{attrs:{data:t.data,donut:"Donut"===t.metadata.chartType,rotate:"Donut"===t.metadata.chartType,"show-value":t.metadata.showValues,"show-percentage":t.metadata.showPercentages,"show-total":t.metadata.showTotal,decimal:2,"group-by":t.metadata.groupingColumns[0],aggregate:t.metadata.aggregateColumns[0],area:t.area}}):t._e()}var It,Ot=(__extends(SFPieChart,jt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFPieChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFPieChart.prototype,"metadata",void 0),__decorate([e.Prop({type:Object,required:!1}),__metadata("design:type",Object)],SFPieChart.prototype,"area",void 0),SFPieChart=__decorate([e.Component({components:{PieChart:L}})],SFPieChart)),Xt=(dc._withStripped=!0,normalizeComponent({render:dc,staticRenderFns:[]},void 0,Ot,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFScatterChart(){return null!==It&&It.apply(this,arguments)||this}function mc(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("scatter-chart",{attrs:{data:t.data,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns,"group-type":t.metadata.groupByType,decimal:2}}):t._e()}var Nt,Vt,Yt=(__extends(SFScatterChart,It=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFScatterChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFScatterChart.prototype,"metadata",void 0),SFScatterChart=__decorate([e.Component({components:{ScatterChart:st}})],SFScatterChart)),Ht=(mc._withStripped=!0,normalizeComponent({render:mc,staticRenderFns:[]},void 0,Yt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFTableChart(){return null!==Nt&&Nt.apply(this,arguments)||this}function vc(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.headers.length?n("table-chart",{attrs:{data:t.data}}):t._e()}var Wt,Ut,Zt=(__extends(SFTableChart,Nt=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Vt="undefined"!=typeof TableData&&TableData)?Vt:Object)],SFTableChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFTableChart.prototype,"metadata",void 0),SFTableChart=__decorate([e.Component({components:{TableChart:ht}})],SFTableChart)),Jt=(vc._withStripped=!0,normalizeComponent({render:vc,staticRenderFns:[]},void 0,Zt,void 0,!1,void 0,!1,void 0,void 0,void 0)),Qt=["All values are negative or zero.","Pie, donut, funnel, and stacked charts require at least one positive value to display."].join(" "),qt=(__extends(SFChartMixins,Wt=e.Vue),SFChartMixins.prototype.renderPrompt=function(t,e){return t("div",{staticClass:"sf-analytics-text"},e)},SFChartMixins.prototype.renderError=function(t,e){return t("div",{staticClass:"sf-analytics-error"},e)},__decorate([e.Prop({type:String,default:function(){return"No data to display."}}),__metadata("design:type",String)],SFChartMixins.prototype,"noDataText",void 0),__decorate([e.Prop({type:String,default:function(){return Qt}}),__metadata("design:type",String)],SFChartMixins.prototype,"negativeDataText",void 0),SFChartMixins=__decorate([e.Component],SFChartMixins));function SFChartMixins(){return null!==Wt&&Wt.apply(this,arguments)||this}function SFDashboardChart(){var t=null!==Ut&&Ut.apply(this,arguments)||this;return t.functional=!0,t}var Kt,$t=normalizeComponent({},function(t){t&&t("data-v-114cb6f0_0",{source:"/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-analytics-chart {\n width: 100%;\n padding: 10px;\n background-color: #fff;\n transform: translate3d(0, 0, 0);\n}\n.sf-analytics-chart .sf-analytics-text {\n width: 100%;\n height: 200px;\n font-size: 14px;\n line-height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.sf-analytics-chart .sf-analytics-error {\n font-size: 14px;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n}\n@media (prefers-color-scheme: dark) {\n.sf-analytics-chart {\n background-color: #1c1c1e;\n}\n.sf-analytics-chart .sf-analytics-text {\n color: #6e6e6e;\n}\n}",map:void 0,media:void 0})},(__extends(SFDashboardChart,Ut=e.Mixins(qt)),Object.defineProperty(SFDashboardChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!0,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"hasError",{get:function(){return this.data.status.errorCode},enumerable:!0,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"isEmpty",{get:function(){return!("NO_DATA"!==this.data.status.dataStatus&&this.chartType&&this.refactoredData&&("Table"===this.chartType||"FlexTable"===this.chartType?0!==this.refactoredData.headers.length:"Gauge"===this.chartType?this.refactoredData.value||0===this.refactoredData.value:!Array.isArray(this.refactoredData)||0!==this.refactoredData.length))},enumerable:!0,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"isNegative",{get:function(){return("Pie"===this.chartType||"Donut"===this.chartType||"Funnel"===this.chartType||("Bar"===this.chartType||"Column"===this.chartType)&&this.refactoredMetadata.groupByType&&this.refactoredMetadata.groupByType.includes("stacked"))&&Array.isArray(this.refactoredData)&&!this.refactoredData.some(function(t){return 0<t.values[0]})},enumerable:!0,configurable:!0}),SFDashboardChart.prototype.render=function(t){var e=new ft(this.metadata,this.data);this.refactoredData=e.data,this.refactoredMetadata=e.metadata;var n=[];if(this.hasError){var a=this.data.status.errorSeverity+": "+this.data.status.errorMessage;n.push(this.renderError(t,a))}else this.isEmpty?n.push(this.renderPrompt(t,this.noDataText)):this.isNegative?n.push(this.renderPrompt(t,this.negativeDataText)):n.push(this.renderChart(t));return t("div",{staticClass:"sf-analytics-chart",class:"sf-"+this.chartType.toLowerCase().replace(/\s/g,"-")+"-chart"},n)},SFDashboardChart.prototype.renderChart=function(t){var e={data:this.refactoredData,metadata:this.refactoredMetadata};return"Bar"===this.chartType?t(Rt,{props:e}):"Column"===this.chartType?t(wt,{props:e}):"Donut"===this.chartType||"Pie"===this.chartType?(e.data=e.data.sort(function(t,e){return t.values[0]<e.values[0]?1:t.values[0]>e.values[0]?-1:t.label>e.label?1:t.label<e.label?-1:0}),t(Xt,{props:e})):"Funnel"===this.chartType?t(St,{props:e}):"Gauge"===this.chartType?t(Mt,{props:e}):"Line"===this.chartType?t(Dt,{props:e}):"Metric"===this.chartType?t(Et,{props:e}):"Scatter"===this.chartType?t(Ht,{props:e}):"Table"===this.chartType||"FlexTable"===this.chartType?t(Jt,{props:e}):(console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart."),t(wt,{props:e}))},__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"data",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"metadata",void 0),SFDashboardChart=__decorate([e.Component({components:{SFBarChart:wt,SFFunnelChart:St,SFHorizontalBarChart:Rt,SFLineChart:Dt,SFGaugeChart:Mt,SFMetricChart:Et,SFPieChart:Xt,SFScatterChart:Ht,SFTableChart:Jt}})],SFDashboardChart)),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFReportChart(){var t=null!==Kt&&Kt.apply(this,arguments)||this;return t.functional=!0,t}var te,ee=normalizeComponent({},function(t){t&&t("data-v-07de57c3_0",{source:"/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-analytics-chart {\n width: 100%;\n padding: 10px;\n background-color: #fff;\n transform: translate3d(0, 0, 0);\n}\n.sf-analytics-chart .sf-analytics-text {\n width: 100%;\n height: 200px;\n font-size: 14px;\n line-height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.sf-analytics-chart .sf-analytics-error {\n font-size: 14px;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n}\n@media (prefers-color-scheme: dark) {\n.sf-analytics-chart {\n background-color: #1c1c1e;\n}\n.sf-analytics-chart .sf-analytics-text {\n color: #6e6e6e;\n}\n}",map:void 0,media:void 0})},(__extends(SFReportChart,Kt=e.Mixins(qt)),Object.defineProperty(SFReportChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!0,configurable:!0}),Object.defineProperty(SFReportChart.prototype,"isEmpty",{get:function(){return!this.refactoredData||0===this.refactoredData.length},enumerable:!0,configurable:!0}),SFReportChart.prototype.render=function(t){var e=new xt(this.data);this.refactoredData=e.data,this.refactoredMetadata=e.metadata;var n=[];return this.isEmpty?n.push(this.renderPrompt(t,this.noDataText)):n.push(this.renderChart(t)),t("div",{staticClass:"sf-analytics-chart",class:"sf-"+this.chartType.toLowerCase().replace(/\s/g,"-")+"-chart"},n)},SFReportChart.prototype.renderChart=function(t){var e={data:this.refactoredData,metadata:this.refactoredMetadata,area:this.area};return"Horizontal Bar"===this.chartType||"Horizontal Bar Grouped"===this.chartType||"Horizontal Bar Stacked"===this.chartType||"Horizontal Bar Stacked to 100"===this.chartType?t(Rt,{props:e}):"Vertical Bar"===this.chartType||"Vertical Bar Line"===this.chartType||"Vertical Bar Grouped"===this.chartType||"Vertical Bar Grouped Line"===this.chartType||"Vertical Bar Stacked"===this.chartType||"Vertical Bar Stacked Line"===this.chartType||"Vertical Bar Stacked to 100"===this.chartType?t(wt,{props:e}):"Donut"===this.chartType||"Pie"===this.chartType?(e.data=e.data.sort(function(t,e){return t.values[0]<e.values[0]?1:t.values[0]>e.values[0]?-1:t.label>e.label?1:t.label<e.label?-1:0}),t(Xt,{props:e})):"Funnel"===this.chartType?t(St,{props:e}):"Line"===this.chartType||"Line Cumulative"===this.chartType||"Line Grouped"===this.chartType||"Line Cumulative Grouped"===this.chartType?t(Dt,{props:e}):"Scatter"===this.chartType||"Scatter Grouped"===this.chartType?t(Ht,{props:e}):(console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart."),t(wt,{props:e}))},__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"data",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"area",void 0),SFReportChart=__decorate([e.Component({components:{SFBarChart:wt,SFFunnelChart:St,SFHorizontalBarChart:Rt,SFLineChart:Dt,SFPieChart:Xt,SFScatterChart:Ht}})],SFReportChart)),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFGroupingTableGroupRow(){return null!==te&&te.apply(this,arguments)||this}function Vc(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"group-row"},[n("div",{staticClass:"label",style:{"margin-left":e.data.margin}},[e._v(e._s(e.data.fieldLabel))]),e._v(" "),n("div",{staticClass:"label-mark"},[e._v(":")]),e._v(" "),n("div",{class:["value",e.isID(e.data.value)?"id":""],on:{click:function(t){return e.$emit("cell-clicked",e.data)}}},[e._v(e._s(e.data.label))]),e._v(" "),e.hasRecordCount?n("div",{staticClass:"count-left-mark"},[e._v("(")]):e._e(),e._v(" "),e.hasRecordCount?n("div",{staticClass:"count"},[e._v(e._s(e.data.recordCount))]):e._e(),e._v(" "),e.hasRecordCount?n("div",{staticClass:"count-right-mark"},[e._v(")")]):e._e()])}var ne,ae=(__extends(SFGroupingTableGroupRow,te=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"data",void 0),__decorate([e.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"hasRecordCount",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"isID",void 0),SFGroupingTableGroupRow=__decorate([e.Component({})],SFGroupingTableGroupRow)),oe=(Vc._withStripped=!0,normalizeComponent({render:Vc,staticRenderFns:[]},function(t){t&&t("data-v-18fe4fc8_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.group-row[data-v-18fe4fc8] {\n font-size: 11px;\n padding: 0px 10px;\n position: relative;\n}\n.group-row[data-v-18fe4fc8]:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .group-row[data-v-18fe4fc8]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-18fe4fc8]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-18fe4fc8]:before {\n transform-origin: 0% 33%;\n}\n.group-row[data-v-18fe4fc8]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .group-row[data-v-18fe4fc8]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-18fe4fc8]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-18fe4fc8]:after {\n transform-origin: 66% 33%;\n}\n.group-row .label[data-v-18fe4fc8], .group-row .value[data-v-18fe4fc8], .group-row .count[data-v-18fe4fc8] {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.group-row .label[data-v-18fe4fc8], .group-row .count[data-v-18fe4fc8] {\n font-weight: bold;\n}\n.group-row .value[data-v-18fe4fc8], .group-row .count-left-mark[data-v-18fe4fc8] {\n margin-left: 5px;\n}\n.group-row .label[data-v-18fe4fc8], .group-row .value[data-v-18fe4fc8] {\n max-width: 30%;\n}\n.group-row .count[data-v-18fe4fc8] {\n max-width: calc(40% - 22px);\n}\n.group-row .label-mark[data-v-18fe4fc8], .group-row .count-left-mark[data-v-18fe4fc8], .group-row .count-right-mark[data-v-18fe4fc8] {\n float: left;\n width: 4px;\n}\n.group-row .value.id[data-v-18fe4fc8] {\n color: #09afe6;\n}',map:void 0,media:void 0})},ae,"data-v-18fe4fc8",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableAggregateRow(){return null!==ne&&ne.apply(this,arguments)||this}function cd(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"aggregate-row"},n._l(n.data.cells,function(e,t){return a("div",{key:t,staticClass:"data-cell",on:{click:function(t){return n.$emit("cell-clicked",e)}}},[n._v("\n "+n._s(e.label)+"\n ")])}),0)}var ie,le=(__extends(SFGroupingTableAggregateRow,ne=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableAggregateRow.prototype,"data",void 0),SFGroupingTableAggregateRow=__decorate([e.Component({})],SFGroupingTableAggregateRow)),se=(cd._withStripped=!0,normalizeComponent({render:cd,staticRenderFns:[]},function(t){t&&(t("data-v-3461bed6_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.aggregate-row[data-v-3461bed6] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 11px;\n}\n.aggregate-row .data-cell[data-v-3461bed6] {\n flex: 1;\n padding: 0px 10px;\n height: 41px;\n text-align: right;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform-origin: 0% 33%;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform-origin: 66% 33%;\n}',map:void 0,media:void 0}),t("data-v-3461bed6_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n@media (prefers-color-scheme: dark) {\n.aggregate-row .data-cell[data-v-3461bed6] {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform-origin: 66% 33%;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))},le,"data-v-3461bed6",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableTotalRow(){return null!==ie&&ie.apply(this,arguments)||this}function ld(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"total-row"},[n("div",{staticClass:"label"},[t._v(t._s(t.data.label))]),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?n("div",{staticClass:"count-left-mark"},[t._v("(")]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?n("div",{staticClass:"count"},[t._v(t._s(t.data.recordCount))]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?n("div",{staticClass:"count-right-mark"},[t._v(")")]):t._e()])}var ce,pe=(__extends(SFGroupingTableTotalRow,ie=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"data",void 0),__decorate([e.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"hasRecordCount",void 0),SFGroupingTableTotalRow=__decorate([e.Component({})],SFGroupingTableTotalRow)),he=(ld._withStripped=!0,normalizeComponent({render:ld,staticRenderFns:[]},function(t){t&&t("data-v-2f4037e0_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.total-row[data-v-2f4037e0] {\n font-size: 11px;\n padding: 0px 10px;\n position: relative;\n}\n.total-row[data-v-2f4037e0]:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .total-row[data-v-2f4037e0]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-2f4037e0]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-2f4037e0]:before {\n transform-origin: 0% 33%;\n}\n.total-row[data-v-2f4037e0]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .total-row[data-v-2f4037e0]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-2f4037e0]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-2f4037e0]:after {\n transform-origin: 66% 33%;\n}\n.total-row .label[data-v-2f4037e0], .total-row .count[data-v-2f4037e0] {\n float: left;\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.total-row .count-left-mark[data-v-2f4037e0] {\n margin-left: 5px;\n}\n.total-row .label[data-v-2f4037e0] {\n max-width: 20%;\n}\n.total-row .count[data-v-2f4037e0] {\n max-width: calc(80% - 13px);\n}\n.total-row .count-left-mark[data-v-2f4037e0], .total-row .count-right-mark[data-v-2f4037e0] {\n float: left;\n width: 4px;\n}',map:void 0,media:void 0})},pe,"data-v-2f4037e0",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableDataRow(){var t=null!==ce&&ce.apply(this,arguments)||this;return t.checkedImage=ct,t.uncheckedImage=dt,t}function ud(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"data-row"},n._l(n.data.cells,function(e,t){return a("div",{key:t,class:["data-cell",n.isNumber(t)?"number-cell":""],on:{click:function(t){return n.$emit("cell-clicked",e)}}},[n.isID(e.value)?a("span",{staticClass:"id"},[n._v("\n "+n._s(e.label)+"\n ")]):n.isText(t)?a("span",[n._v("\n "+n._s(e.label)+"\n ")]):n.isHTML(t)?a("span",{domProps:{innerHTML:n._s(e.label)}}):n.isURL(t)||n.isPhone(t)||n.isEmail(t)?a("span",[n.isURL(t)&&e.value?a("a",{attrs:{href:e.value}},[n._v("\n "+n._s(e.value)+"\n ")]):n.isEmail(t)&&e.value?a("a",{attrs:{href:"mailto:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")]):n.isPhone(t)&&e.value?a("a",{attrs:{href:"tel:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")]):e.value?n._e():a("span",[n._v("\n "+n._s(e.label)+"\n ")])]):n.isBoolean(t)?a("img",{staticClass:"checkbox",attrs:{src:"true"===e.label?n.checkedImage:n.uncheckedImage}}):n._e()])}),0)}var me,ge,fe=(__extends(SFGroupingTableDataRow,ce=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"data",void 0),__decorate([e.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isNumber",void 0),__decorate([e.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isBoolean",void 0),__decorate([e.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isHTML",void 0),__decorate([e.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isURL",void 0),__decorate([e.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isPhone",void 0),__decorate([e.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isEmail",void 0),__decorate([e.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isText",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isID",void 0),SFGroupingTableDataRow=__decorate([e.Component({})],SFGroupingTableDataRow)),ue=(ud._withStripped=!0,normalizeComponent({render:ud,staticRenderFns:[]},function(t){t&&(t("data-v-6fc5da42_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.data-row[data-v-6fc5da42] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 11px;\n}\n.data-row .data-cell[data-v-6fc5da42] {\n flex: 1;\n padding: 0px 10px;\n height: 41px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.data-row .data-cell[data-v-6fc5da42]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-6fc5da42]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform-origin: 0% 33%;\n}\n.data-row .data-cell .checkbox[data-v-6fc5da42] {\n width: 18px;\n padding-top: 13px;\n}\n.data-row .data-cell.number-cell[data-v-6fc5da42] {\n text-align: right;\n}\n.data-row .data-cell .id[data-v-6fc5da42] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-6fc5da42_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n@media (prefers-color-scheme: dark) {\n.data-row .data-cell[data-v-6fc5da42] {\n position: relative;\n}\n.data-row .data-cell[data-v-6fc5da42]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-6fc5da42]:first-child {\n position: relative;\n}\n.data-row .data-cell[data-v-6fc5da42]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))},fe,"data-v-6fc5da42",!1,void 0,!1,createInjector,void 0,void 0)),be=(__extends(SFTableRowMixins,me=e.Vue),SFTableRowMixins.prototype.dispatch=function(t,e){for(var n=arguments,a=[],o=2;o<arguments.length;o++)a[o-2]=n[o];for(var r=this.$parent||this.$root,i=r.$options.name;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.name);r&&r.$emit.apply(r,__spreadArrays([e],a))},SFTableRowMixins=__decorate([e.Component],SFTableRowMixins));function SFTableRowMixins(){return null!==me&&me.apply(this,arguments)||this}function SFGroupingTableRow(){var t=null!==ge&&ge.apply(this,arguments)||this;return t.isNumber=t.isCellNumber,t.isBoolean=t.isCellBoolean,t.isURL=t.isCellURL,t.isHTML=t.isCellHTML,t.isPhone=t.isCellPhone,t.isEmail=t.isCellEmail,t.isText=t.isCellText,t.isID=t.isCellID,t.functional=!0,t}var xe,ve=normalizeComponent({},void 0,(__extends(SFGroupingTableRow,ge=e.Mixins(be)),SFGroupingTableRow.prototype.render=function(t){return t("div",{staticClass:"sf-grouping-table-row",class:[{"grand-row":this.source.grand},this.source.type],style:{background:this.source.background}},this.createChildren(t))},SFGroupingTableRow.prototype.createChildren=function(t){var e=this,n=[],a={data:this.source,hasRecordCount:this.hasRecordCount};return"group"===this.source.type?n.push(t(oe,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})):"group-aggregate"===this.source.type?n.push(t(se,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})):"grand-total"===this.source.type||"subtotals"===this.source.type?n.push(t(he,{props:a})):"data"===this.source.type&&n.push(t(ue,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})),n},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"source",void 0),__decorate([e.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"hasRecordCount",void 0),__decorate([e.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellNumber",void 0),__decorate([e.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellBoolean",void 0),__decorate([e.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellHTML",void 0),__decorate([e.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellURL",void 0),__decorate([e.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellPhone",void 0),__decorate([e.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellEmail",void 0),__decorate([e.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellText",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellID",void 0),__decorate([e.Provide("isNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isNumber",void 0),__decorate([e.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isBoolean",void 0),__decorate([e.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isURL",void 0),__decorate([e.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isHTML",void 0),__decorate([e.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isPhone",void 0),__decorate([e.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isEmail",void 0),__decorate([e.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isText",void 0),__decorate([e.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isID",void 0),SFGroupingTableRow=__decorate([e.Component({components:{GroupRow:oe,AggregateRow:se,TotalRow:he,DataRow:ue}})],SFGroupingTableRow)),void 0,void 0,void 0,!1,void 0,void 0,void 0);function SFGroupingTable(){var t=null!==xe&&xe.apply(this,arguments)||this;return t.isCellNumber=t.isNumber,t.isCellBoolean=t.isBoolean,t.isCellURL=t.isURL,t.isCellHTML=t.isHTML,t.isCellPhone=t.isPhone,t.isCellEmail=t.isEmail,t.isCellText=t.isText,t.isCellID=t.isID,t.parentWidth="100%",t.cellWidth=0,t.rowComponent=ve,t}function Md(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"sf-grouping-table"},[n.data.showHeader&&0<n.data.headers.length&&0<n.data.rows.length?a("div",{staticClass:"sf-grouping-table-header",style:{width:n.parentWidth}},n._l(n.data.headers,function(t,e){return a("div",{key:e,staticClass:"sf-grouping-table-header-cell",class:{"number-cell":n.isNumber(e)},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.label)+"\n ")])}),0):n._e(),n._v(" "),a("virtual-list",{ref:"VirtualList",staticClass:"sf-grouping-table-content",style:{width:n.parentWidth},attrs:{"data-key":"id","data-sources":n.data.rows,"data-component":n.rowComponent,"estimate-size":41,"extra-props":{hasRecordCount:n.data.hasRecordCount}}})],1)}var ye,we=(__extends(SFGroupingTable,xe=e.Vue),SFGroupingTable.prototype.onDataChanged=function(){this.init()},SFGroupingTable.prototype.mounted=function(){this.init()},SFGroupingTable.prototype.init=function(){var t=100*this.data.headers.length;t>this.$el.offsetWidth?this.parentWidth=t+"px":this.parentWidth="100%"},SFGroupingTable.prototype.isNumber=function(t){var e=this.data.headers[t];return!!e&&("datetime"===e.dataType||"currency"===e.dataType||"date"===e.dataType||"int"===e.dataType||"double"===e.dataType||"percent"===e.dataType||"boolean"===e.dataType)},SFGroupingTable.prototype.isBoolean=function(t){var e=this.data.headers[t];return!!e&&"boolean"===e.dataType},SFGroupingTable.prototype.isURL=function(t){var e=this.data.headers[t];return!!e&&"url"===e.dataType},SFGroupingTable.prototype.isHTML=function(t){var e=this.data.headers[t];return!!e&&"html"===e.dataType},SFGroupingTable.prototype.isPhone=function(t){var e=this.data.headers[t];return!!e&&"phone"===e.dataType},SFGroupingTable.prototype.isEmail=function(t){var e=this.data.headers[t];return!!e&&"email"===e.dataType},SFGroupingTable.prototype.isText=function(t){return!(this.isBoolean(t)||this.isURL(t)||this.isHTML(t)||this.isEmail(t)||this.isPhone(t))},SFGroupingTable.prototype.isID=function(e){return!!e&&this.sobjects.some(function(t){return t.layoutable&&(""+e).startsWith(t.keyPrefix)})},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTable.prototype,"data",void 0),__decorate([e.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFGroupingTable.prototype,"sobjects",void 0),__decorate([e.Provide("isCellNumber"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellNumber",void 0),__decorate([e.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellBoolean",void 0),__decorate([e.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellURL",void 0),__decorate([e.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellHTML",void 0),__decorate([e.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellPhone",void 0),__decorate([e.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellEmail",void 0),__decorate([e.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellText",void 0),__decorate([e.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellID",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFGroupingTable.prototype,"onDataChanged",null),SFGroupingTable=__decorate([e.Component({components:{VirtualList:n}})],SFGroupingTable)),_e=(Md._withStripped=!0,normalizeComponent({render:Md,staticRenderFns:[]},function(t){t&&(t("data-v-f51b545a_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-grouping-table-content .sf-grouping-table-row {\n position: relative;\n width: 100%;\n height: 41px;\n line-height: 41px;\n}\n.sf-grouping-table-content .sf-grouping-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table-content .sf-grouping-table-row:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table-content .sf-grouping-table-row.data {\n background-color: #fff;\n}\n.sf-grouping-table-content .sf-grouping-table-row a {\n color: #00A383;\n}\n.sf-grouping-table-content .list-item:first-child .sf-grouping-table-row {\n position: relative;\n}\n.sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform-origin: 33% 0%;\n}\n@media (prefers-color-scheme: dark) {\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row {\n color: #f2f2f7;\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.group {\n background-color: #2c2c2e !important;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.group-aggregate {\n background-color: #2c2c2e !important;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data {\n background-color: #1c1c1e;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row, .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals {\n background-color: #2c2c2e !important;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row .group, .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals .group {\n color: #f2f2f7;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row {\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform-origin: 33% 0%;\n}\n}',map:void 0,media:void 0}),t("data-v-f51b545a_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-grouping-table[data-v-f51b545a] {\n position: relative;\n width: 100%;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n transform: translate3d(0, 0, 0);\n}\n.sf-grouping-table .sf-grouping-table-header[data-v-f51b545a] {\n width: 100%;\n height: 44px;\n background: #00A383;\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-f51b545a] {\n flex: 1;\n color: #ffffff;\n font-size: 16px;\n font-weight: bold;\n padding: 0 10px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-f51b545a]:not(:last-child) {\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-f51b545a]:not(:last-child):after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-f51b545a]:not(:last-child):after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-f51b545a]:not(:last-child):after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-f51b545a]:not(:last-child):after {\n transform-origin: 66% 33%;\n}\n.sf-grouping-table .sf-grouping-table-content[data-v-f51b545a] {\n width: 100%;\n height: calc(100% - 44px);\n overflow-y: auto;\n}',map:void 0,media:void 0}))},we,"data-v-f51b545a",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTableRow(){var t=null!==ye&&ye.apply(this,arguments)||this;return t.checkedImage=ct,t.uncheckedImage=dt,t}function Vd(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"sf-matrix-table-row"},n._l(n.source.cells,function(e,t){return a("div",{key:t,staticClass:"sf-matrix-table-cell",class:n.getCellClass(e.type),style:{width:n.cellWidth+"px"},on:{click:function(t){return n.dispatch("SFMatrixTable","cell-clicked",e)}}},[n.isCellID(e.value)?a("span",{staticClass:"id"},[n._v("\n "+n._s(e.label)+"\n ")]):n.isText(e.type)?a("span",[n._v("\n "+n._s(e.label)+"\n ")]):"html"===e.type?a("span",{domProps:{innerHTML:n._s(e.label)}}):"url"===e.type||"email"===e.type||"phone"===e.type?a("span",[e.value?a("span",["url"===e.type?a("a",{attrs:{href:e.value}},[n._v("\n "+n._s(e.value)+"\n ")]):"email"===e.type?a("a",{attrs:{href:"mailto:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")]):a("a",{attrs:{href:"tel:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")])]):a("span",[n._v(n._s(e.label))])]):"boolean"===e.type?a("img",{staticClass:"checkbox",attrs:{src:"true"==e.label?n.checkedImage:n.uncheckedImage}}):n._e()])}),0)}var Ce,ke=(__extends(SFMatrixTableRow,ye=e.Mixins(be)),SFMatrixTableRow.prototype.isText=function(t){return"boolean"!==t&&"url"!==t&&"html"!==t&&"email"!==t&&"phone"!==t},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"source",void 0),__decorate([e.Prop({type:Number,required:!0}),__metadata("design:type",Number)],SFMatrixTableRow.prototype,"cellWidth",void 0),__decorate([e.Inject("getCellClass"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"getCellClass",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"isCellID",void 0),SFMatrixTableRow=__decorate([e.Component({})],SFMatrixTableRow)),Se=(Vd._withStripped=!0,normalizeComponent({render:Vd,staticRenderFns:[]},function(t){t&&(t("data-v-2c5d0f2b_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table-cell[data-v-2c5d0f2b] {\n float: left;\n height: 41px;\n font-size: 11px;\n text-align: left;\n padding: 0 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform-origin: 66% 33%;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell.right-align-cell[data-v-2c5d0f2b] {\n text-align: right;\n}\n.android .sf-matrix-table-cell.right-align-cell[data-v-2c5d0f2b] {\n padding-right: 20px;\n}\n.sf-matrix-table-cell.center-align-cell[data-v-2c5d0f2b] {\n text-align: center;\n}\n.sf-matrix-table-cell .checkbox[data-v-2c5d0f2b] {\n width: 18px;\n padding-top: 13px;\n}\n.sf-matrix-table-cell a[data-v-2c5d0f2b] {\n color: #00A383;\n}\n.sf-matrix-table-cell .id[data-v-2c5d0f2b] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-2c5d0f2b_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n@media (prefers-color-scheme: dark) {\n.sf-matrix-table-cell[data-v-2c5d0f2b] {\n color: #f2f2f7;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform-origin: 66% 33%;\n}\n}',map:void 0,media:void 0}))},ke,"data-v-2c5d0f2b",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTable(){var t=null!==Ce&&Ce.apply(this,arguments)||this;return t.getCellClass=t.getClass,t.isCellID=t.isID,t.parentWidth="100%",t.cellWidth=120,t.rowComponent=Se,t}function de(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"sf-matrix-table"},[0<n.data.headers.length?a("div",{staticClass:"sf-matrix-table-header",style:{width:n.parentWidth}},n._l(n.data.headers,function(t,e){return a("div",{key:e,staticClass:"sf-matrix-table-header-row"},n._l(t.cells,function(t,e){return a("div",{key:e,staticClass:"sf-matrix-table-header-cell",class:n.getClass(t.type),style:{width:n.getWidth(t.colspan)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.value)+"\n ")])}),0)}),0):n._e(),n._v(" "),a("virtual-list",{staticClass:"sf-matrix-table-content",style:{width:n.parentWidth,height:n.contentHeight},attrs:{"data-key":"id","data-sources":n.data.rows,"data-component":n.rowComponent,"estimate-size":41,"extra-props":{cellWidth:n.cellWidth}}})],1)}var Ae,Te=(__extends(SFMatrixTable,Ce=e.Vue),Object.defineProperty(SFMatrixTable.prototype,"contentHeight",{get:function(){return"calc(100% - "+41*this.data.headers.length+"px)"},enumerable:!0,configurable:!0}),SFMatrixTable.prototype.onDataChanged=function(){this.init()},SFMatrixTable.prototype.mounted=function(){this.init()},SFMatrixTable.prototype.init=function(){var t=this.data.columnLength,e=this.$el.offsetWidth,n=120*t;e<n?(this.parentWidth=n+"px",this.cellWidth=120):(this.parentWidth="100%",this.cellWidth=e/t)},SFMatrixTable.prototype.getWidth=function(t){return t?this.cellWidth*t:this.cellWidth},SFMatrixTable.prototype.getClass=function(t){return"datetime"===t||"currency"===t||"date"===t||"int"===t||"double"===t||"percent"===t||"boolean"===t?"right-align-cell":"group-value"===t?"center-align-cell":""},SFMatrixTable.prototype.isID=function(e){return!!e&&this.sobjects.some(function(t){return t.layoutable&&(""+e).startsWith(t.keyPrefix)})},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTable.prototype,"data",void 0),__decorate([e.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFMatrixTable.prototype,"sobjects",void 0),__decorate([e.Provide("getCellClass"),__metadata("design:type",Object)],SFMatrixTable.prototype,"getCellClass",void 0),__decorate([e.Provide("isCellID"),__metadata("design:type",Object)],SFMatrixTable.prototype,"isCellID",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFMatrixTable.prototype,"onDataChanged",null),SFMatrixTable=__decorate([e.Component({components:{VirtualList:n}})],SFMatrixTable)),Me=(de._withStripped=!0,normalizeComponent({render:de,staticRenderFns:[]},function(t){t&&(t("data-v-3e56d4ca_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table-content .sf-matrix-table-row {\n width: 100%;\n height: 41px;\n line-height: 41px;\n position: relative;\n}\n.sf-matrix-table-content .sf-matrix-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform-origin: 33% 66%;\n}\n.sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row {\n position: relative;\n}\n.sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n transform-origin: 33% 0%;\n}\n@media (prefers-color-scheme: dark) {\n.sf-matrix-table-content .sf-matrix-table-row {\n position: relative;\n}\n.sf-matrix-table-content .sf-matrix-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform-origin: 33% 66%;\n}\n}',map:void 0,media:void 0}),t("data-v-3e56d4ca_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table[data-v-3e56d4ca] {\n position: relative;\n width: 100%;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n transform: translate3d(0, 0, 0);\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-3e56d4ca] {\n background: #00A383;\n height: 41px;\n line-height: 41px;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-3e56d4ca]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-3e56d4ca]:not(:last-child):after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table .sf-matrix-table-header-row[data-v-3e56d4ca]:not(:last-child):after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row[data-v-3e56d4ca]:not(:last-child):after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row[data-v-3e56d4ca]:not(:last-child):after {\n transform-origin: 33% 66%;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-3e56d4ca] {\n float: left;\n height: 41px;\n font-size: 16px;\n color: #ffffff;\n font-weight: bold;\n text-align: left;\n padding: 0 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-3e56d4ca]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-3e56d4ca]:not(:last-child):after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-3e56d4ca]:not(:last-child):after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-3e56d4ca]:not(:last-child):after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-3e56d4ca]:not(:last-child):after {\n transform-origin: 66% 33%;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.right-align-cell[data-v-3e56d4ca] {\n text-align: right;\n}\n.android .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.right-align-cell[data-v-3e56d4ca] {\n padding-right: 20px;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.center-align-cell[data-v-3e56d4ca] {\n text-align: center;\n}\n.sf-matrix-table .sf-matrix-table-content[data-v-3e56d4ca] {\n position: relative;\n overflow-y: auto;\n}',map:void 0,media:void 0}))},Te,"data-v-3e56d4ca",!1,void 0,!1,createInjector,void 0,void 0));function SFReportTable(){var t=null!==Ae&&Ae.apply(this,arguments)||this;return t.functional=!0,t}function re(t){t.component("SfDashboardChart",$t),t.component("SfReportChart",ee),t.component("SfReportTable",ze)}var ze=normalizeComponent({},void 0,(__extends(SFReportTable,Ae=e.Vue),SFReportTable.prototype.render=function(t){var e=new xt(this.data,this.languageLocaleKey);return this.refactoredData=e.tableData,"MATRIX"===this.refactoredData.format?this.createMatrixTable(t):this.createGroupingTable(t)},SFReportTable.prototype.createMatrixTable=function(t){var e=this;return t(Me,{props:{data:this.refactoredData,sobjects:this.sobjects},on:{"cell-clicked":function(t){e.$emit("cell-clicked",t)}}})},SFReportTable.prototype.createGroupingTable=function(t){var e=this;return t(_e,{props:{data:this.refactoredData,sobjects:this.sobjects},on:{"cell-clicked":function(t){e.$emit("cell-clicked",t)}}})},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFReportTable.prototype,"data",void 0),__decorate([e.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"sobjects",void 0),__decorate([e.Prop({type:String,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"languageLocaleKey",void 0),SFReportTable=__decorate([e.Component({components:{SFGroupingTable:_e,SFMatrixTable:Me}})],SFReportTable)),void 0,void 0,void 0,!1,void 0,void 0,void 0);return function(t){t.use(Za),t.use(re)}});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("d3-transition"),require("vue-property-decorator"),require("d3-scale"),require("d3-axis"),require("d3-selection"),require("d3-format"),require("d3-array"),require("d3-shape"),require("d3-ease"),require("d3-interpolate"),require("uuid"),require("vue-virtual-scroll-list")):"function"==typeof define&&define.amd?define(["d3-transition","vue-property-decorator","d3-scale","d3-axis","d3-selection","d3-format","d3-array","d3-shape","d3-ease","d3-interpolate","uuid","vue-virtual-scroll-list"],e):(t=t||self).MoblorComponents=e(t.d3Transition,t.vuePropertyDecorator,t.d3Scale,t.d3Axis,t.d3Selection,t.d3Format,t.d3Array,t.d3Shape,t.d3Ease,t.d3Interpolate,t.uuid,t.VirtualList)}(this,function(t,e,l,s,c,d,f,p,h,r,z,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function __extends(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var F=function(){return(F=Object.assign||function __assign(t){for(var e,n=arguments,a=1,o=arguments.length;a<o;a++)for(var r in e=n[a])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function __decorate(t,e,n,a){var o,r=arguments.length,i=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,a);else for(var l=t.length-1;0<=l;l--)(o=t[l])&&(i=(r<3?o(i):3<r?o(e,n,i):o(e,n))||i);return 3<r&&i&&Object.defineProperty(e,n,i),i}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __spreadArrays(){for(var t=arguments,e=0,n=0,a=arguments.length;n<a;n++)e+=t[n].length;var o=Array(e),r=0;for(n=0;n<a;n++)for(var i=arguments[n],l=0,s=i.length;l<s;l++,r++)o[r]=i[l];return o}var o,i=(__extends(ChartMixins,o=e.Vue),ChartMixins.prototype.getWidth=function(){var t=window.getComputedStyle(this.$el,null).width;return t?parseFloat(t.substring(0,t.length-2)):0},ChartMixins.prototype.beforeRedraw=function(){var t=this.$el.querySelector("svg");t&&t.remove()},ChartMixins=__decorate([e.Component],ChartMixins));function ChartMixins(){return null!==o&&o.apply(this,arguments)||this}var m=(ChartService.formatValue=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=2);var a=t.toString();if(!Number.isNaN(Number(t))){var o=ChartService.preciseDecimal(Number(t),n),r=o/Math.pow(1e3,4),i=o/Math.pow(1e3,3),l=o/Math.pow(1e3,2),s=o/Math.pow(1e3,1);1<=r?a=ChartService.preciseDecimal(r,n)+" T":1<=i?a=ChartService.preciseDecimal(i,n)+" B":1<=l?a=ChartService.preciseDecimal(l,n)+" M":1<=s&&(a=ChartService.preciseDecimal(s,n)+" K"),a=a.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")})}return""+e+a},ChartService.preciseDecimal=function(t,e){void 0===e&&(e=2);var n=t.toString().indexOf(".");return!(n<=0)&&e<t.toString().substring(n+1,t.toString().length).length?Number(t.toFixed(e)):t},ChartService.formatDomainValue=function(t,e,n){for(var a=t.toString().length-1,o=n?8:10,r=0;r<a;r+=1)if(e<r*o){a=r;break}return a<t.toString().length-1?t.toString().substring(0,a-2)+"...":t.toString()},ChartService.getPercentage=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),ChartService.preciseDecimal(t/e*100,n)},ChartService.getColor=function(t,e){var n=e||["#5bdcef","#ffe451","#fc7a7a","#8b4fdc","#4653ff","#153e75","#3adfae","#f68c5d","#6663f0","#fe70a2","#438aff","#5ed281","#60afff","#4e4c97","#b6d252","#5acec7","#ff7575","#ffda2b","#3cdbc6","#3f5cba","#383b6b","#fc7a7a","#6663f0","#ffcc51","#56c597","#f678aa","#8ffabf","#5aabff","#4ecaa5","#686edc"];return n[t%n.length]},ChartService.getMaxValue=function(t,e){void 0===e&&(e=0);var n=[],a=function(t){t.pieces&&0<t.pieces.length?t.pieces.forEach(function(t){a(t)}):n.push(t.values[e])};return t.forEach(function(t){a(t)}),f.max(n,function(t){return t})},ChartService.defineAreaGradientsForCover=function(t,e,n){var a=t.append("defs").append("linearGradient").attr("id","MoLineAreaGradientCover"+e).attr("x1","0").attr("y1","0").attr("x2","0").attr("y2","0").attr("y1","100%");a.append("stop").attr("offset","0%").attr("stop-color","white").attr("stop-opacity",n?.4:1),a.append("stop").attr("offset","100%").attr("stop-color","white").attr("stop-opacity",n?1:.4)},ChartService.getInnerText=function(t){void 0===t&&(t={});var e=t.showValue,n=t.innerValue,a=t.value,o=void 0===a?"":a,r=t.showPercentage,i=t.innerPercentage,l=t.total,s=t.decimal,c=t.symbol,d=c||"";if(e&&n&&(d+=ChartService.formatValue(o,c,s)),r&&i){""!==d&&(d+=" : ");var p=ChartService.getPercentage(Number(o),l,s);0<p&&(d+=p+"%")}return d},ChartService.getBottomText=function(t){void 0===t&&(t={});var e=t.showValue,n=t.innerValue,a=t.value,o=void 0===a?"":a,r=t.showPercentage,i=t.innerPercentage,l=t.total,s=t.decimal,c=t.symbol,d=c||"";return e&&!n&&(d+=ChartService.formatValue(o,c,s)),r&&!i&&(""!==d&&(d+=" : "),d+=ChartService.getPercentage(Number(o),l,s)+"%"),d},ChartService);function ChartService(){}var g,u,b=(__extends(MoBarChart,g=e.Mixins(i)),Object.defineProperty(MoBarChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,o=t.left,r=n;return 0<this.groupings.length&&"vertical"===this.xAxisMode&&(a=130),0<this.aggregates.length&&(o=65),this.hasSecondAxis&&(r=Math.max(r,65)),{top:e,right:r,bottom:a,left:o}},enumerable:!0,configurable:!0}),MoBarChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},MoBarChart.prototype.mounted=function(){this.redraw()},MoBarChart.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine();var t=JSON.parse(JSON.stringify(this.data));"stacked"!==this.groupType&&"stacked100"!==this.groupType||(t=this.refactorStackedData()),this.renderBar(t),this.hasLineChart&&this.renderLine(t),0===this.categories.length&&this.aggregates.length<=1&&this.renderData(t),0<this.categories.length&&this.renderLabel(),0<this.aggregates.length&&this.renderMeasure()},MoBarChart.prototype.init=function(){var t,e,n=this;if(this.svgWidth=Math.max(this.getWidth(),this.data.length*this.MIN_WIDTH),this.needScroll=this.svgWidth>this.getWidth(),this.svgWidth&&(this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=this.getWidth()-this.actualMargin.left-this.actualMargin.right),this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom,this.xAxisScale=l.scaleBand().domain(this.data.map(function(t){return t.label})).range([0,this.width]).padding(.1).round(!0),this.groupType&&"none"!==this.groupType&&this.data.forEach(function(t){t.pieces&&t.pieces.length>n.categories.length&&(n.categories=[],t.pieces.forEach(function(t){n.categories.push(t.label)}))}),0<this.categories.length&&(this.svgHeight+=25*this.categories.length+50),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+50),t="grouped"===this.groupType?m.getMaxValue(this.data):f.max(this.data,function(t){return t.values[0]}),1<this.aggregates.length&&(e=f.max(this.data,function(t){return f.max(t.values)})),this.xAxisCategories=l.scaleBand().domain(this.categories).range([0,this.xAxisScale.bandwidth()]).round(!0),1<this.aggregates.length&&(this.xAxisAggregates=l.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.xAxisScale.bandwidth()]).round(!0)),this.xAxis=s.axisBottom(this.xAxisScale).tickSize(0).tickFormat(function(t){return m.formatDomainValue(t,n.actualMargin.bottom,!1)}),"stacked100"===this.groupType&&0<this.categories.length)this.yAxisScale=l.scaleLinear().range([this.height,0]).domain([0,1]),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return d.format(".0%")(Number(t))});else if(this.hasLineChart)if(this.hasSecondAxis){this.yAxisScale=l.scaleLinear().domain([0,Number(t)||10]).range([this.height,0]).nice();var a=this.aggregates[0].unitSymbol;this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,a,n.decimal)}),this.secondYAxisScale=l.scaleLinear().domain([0,Number(e)]).range([this.height,0]).nice();var o=this.aggregates[this.secondYIndex].unitSymbol;this.secondYAxis=s.axisRight(this.secondYAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,o,n.decimal)}),this.line=p.line().curve(p.curveLinear).x(function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).y(function(t){return n.secondYAxisScale(n.lineValue(t))})}else{this.yAxisScale=l.scaleLinear().domain([0,Math.max(t||0,e||0)]).range([this.height,0]).nice();var r=this.aggregates[this.secondYIndex].unitSymbol;this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,r,n.decimal)}),this.line=p.line().curve(p.curveLinear).x(function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).y(function(t){return n.yAxisScale(n.lineValue(t))})}else{this.yAxisScale=l.scaleLinear().domain([0,Math.max(t||0,e||0)]).range([this.height,0]).nice();var i=this.aggregates[0].unitSymbol;this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,i,n.decimal)})}this.svg=c.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).append("g").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")")},MoBarChart.prototype.lineValue=function(t){return t.values[this.secondYIndex]},MoBarChart.prototype.renderAxis=function(){var t=this.svg.append("g").attr("class","x mo-axis").attr("transform","translate(0, "+this.height+")").call(this.xAxis);t.selectAll("text").style("text-anchor","middle").attr("class","mo-axis-text").attr("x",0).attr("y",10),"vertical"===this.xAxisMode&&t.selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",10).attr("x",5).attr("transform","rotate(-60, 0, 15)"),this.svg.append("g").attr("class","y mo-axis").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0),this.secondYAxis&&this.svg.append("g").attr("class","y mo-axis").attr("transform","translate("+this.width+", 0)").call(this.secondYAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0)},MoBarChart.prototype.renderAxisLabel=function(){var e=this;m.defineAreaGradientsForCover(this.svg,0,!1),this.svg.append("rect").attr("x",-this.margin.left-10).attr("y",this.height+this.actualMargin.bottom-30).attr("class","mo-cover").attr("height",10).style("fill","none"),this.svg.append("rect").attr("x",-this.actualMargin.left-10).attr("y",this.height+this.actualMargin.bottom-20).attr("class","mo-cover").attr("height",this.svgHeight-this.height-this.actualMargin.bottom+5).style("fill","none"),this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.height+this.actualMargin.bottom-15).text(this.groupings[0].label),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",20-this.actualMargin.left).attr("width",this.height+20).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",-this.actualMargin.left-10).attr("width",this.height+20).attr("height",30).style("fill","none"),this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15-this.actualMargin.left).attr("transform","rotate(-90)").text(function(){var t=__spreadArrays(e.aggregates);return e.hasSecondAxis&&t.splice(e.secondYIndex,1),t.map(function(t){return t.label}).join(", ")}),this.hasSecondAxis&&1<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",this.width+this.actualMargin.left-5).attr("transform","rotate(-90)").text(this.aggregates[this.secondYIndex].label)},MoBarChart.prototype.renderSpaceLine=function(){this.svg.selectAll(".mo-space-line").data(this.yAxisScale.ticks()).enter().append("line").attr("class","mo-space-line").attr("x1",3).attr("x2",this.width).attr("y1",this.yAxisScale).attr("y2",this.yAxisScale)},MoBarChart.prototype.refactorStackedData=function(){function dh(t,e,n){if(e===t.length-1)return"stacked100"===o.groupType?o.yAxisScale(t[e].values[0]/n):o.yAxisScale(t[e].values[0]);var a=t[e+1].y||o.height;return"stacked100"===o.groupType?a-o.height+o.yAxisScale(t[e].values[0]/n):a-o.height+o.yAxisScale(t[e].values[0])}var o=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){for(var e=t.pieces,n=void 0===e?[]:e,a=t.values,o=n.length;0<=o;--o)n.forEach(function(t,e){t.y=dh(n,e,a[0]),t.percentage=t.values[0]/a[0]})}),t},MoBarChart.prototype.renderBar=function(t){var e=this;0<this.categories.length?"grouped"===this.groupType?this.renderGroupedBar(t):"stacked"!==this.groupType&&"stacked100"!==this.groupType||this.renderStackedBar(t):!this.hasLineChart&&1<this.aggregates.length?this.renderGroupedAggregatesBar(t):this.svg.selectAll(".bar").data(t).enter().append("rect").style("fill",m.getColor(0,this.colors)).attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",this.height).attr("width",this.xAxisScale.bandwidth()).attr("height",0).transition().duration(1e3).attr("height",function(t){return e.height-e.yAxisScale(t.values[0])}).attr("y",function(t){return e.yAxisScale(t.values[0])})},MoBarChart.prototype.renderGroupedAggregatesBar=function(t){var n=this;this.svg.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t){return"translate("+n.xAxisScale(t.label)+", 0)"}).selectAll("rect").data(function(t){return t.values}).enter().append("rect").attr("class","rect").attr("width",this.xAxisAggregates.bandwidth()).attr("x",function(t,e){return n.xAxisAggregates(n.aggregates[e].label)}).attr("y",this.yAxisScale(0)).attr("height",0).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return n.yAxisScale(t)}).attr("height",function(t){return n.height-n.yAxisScale(t)})},MoBarChart.prototype.renderGroupedBar=function(t){var n=this;this.svg.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t){return"translate("+n.xAxisScale(t.label)+", 0)"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("width",this.xAxisCategories.bandwidth()).attr("x",function(t){return n.xAxisCategories(t.label)}).attr("y",this.yAxisScale(0)).attr("height",0).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return n.yAxisScale(t.values[0])}).attr("height",function(t){return n.height-n.yAxisScale(t.values[0])})},MoBarChart.prototype.renderStackedBar=function(t){var n=this;this.svg.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t){return"translate("+n.xAxisScale(t.label)+", 0)"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("height",0).attr("width",this.xAxisScale.bandwidth()).attr("y",this.yAxisScale(0)).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return t.y}).attr("height",function(t){return"stacked100"===n.groupType?n.height-n.yAxisScale(t.percentage):n.height-n.yAxisScale(t.values[0])})},MoBarChart.prototype.renderLine=function(t){var e=this,n=m.getColor(this.categories.length||1,this.colors),a=this.svg.append("path").datum(t).attr("d",this.line).attr("class","mo-data-line").style("stroke",n),o=a.node().getTotalLength();a.attr("stroke-dasharray",o+" "+o).attr("stroke-dashoffset",o).transition().duration(1e3).ease(h.easeLinear).attr("stroke-dashoffset",0);var r=this.secondYAxisScale||this.yAxisScale;this.svg.selectAll(".mo-data-point").data(t).enter().append("circle").attr("cx",function(t){return e.xAxisScale(t.label)+e.xAxisScale.bandwidth()/2}).attr("cy",function(t){return r(e.lineValue(t))}).attr("r",3).attr("class","mo-line-point").style("fill",n)},MoBarChart.prototype.renderData=function(t){var n=this,e=this.svg.selectAll(".bar").data(t),a=this.aggregates[0].unitSymbol;e.enter().append("text").attr("class","mo-data-text").style("fill",function(t,e){return 0===n.categories.length?m.getColor(0,n.colors):m.getColor(e,n.colors)}).attr("x",function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).attr("y",this.height).attr("text-anchor","middle").transition().duration(1e3).attr("y",function(t){return n.yAxisScale(t.values[0])-5}).text(function(t){return m.formatValue(t.values[0],a,n.decimal)})},MoBarChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var e=t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");e.append("rect").attr("width",15).attr("height",15).attr("x",0).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",function(){return n.labelColor||""}).text(function(t){return t})},MoBarChart.prototype.renderMeasure=function(){var a=this,n=this.actualMargin.top+this.actualMargin.bottom+this.height;0<this.categories.length&&(n+=25*this.categories.length+50);var t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",n).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",n).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",n+25).attr("class","mo-label-title").text("Measure");var e=t.selectAll(".mo-label").data(this.hasLineChart&&0<this.categories.length?this.aggregates.slice(1,this.aggregates.length):this.aggregates).enter().append("g").attr("class","mo-label");e.append("rect").attr("width",15).attr("height",15).attr("x",0).attr("y",function(t,e){return n+40+25*e}).attr("fill",function(t,e){var n=a.hasLineChart&&0<a.categories.length?a.categories.length||1:e;return m.getColor(n,a.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n+52+25*e}).attr("class","mo-legend-text").style("fill",function(){return a.labelColor||""}).text(function(t){return t.label})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChart.prototype,"data",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"groupings",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"aggregates",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasSecondAxis",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasLineChart",void 0),__decorate([e.Prop({type:Number,default:function(){return 1}}),__metadata("design:type",Number)],MoBarChart.prototype,"secondYIndex",void 0),__decorate([e.Prop({type:String,default:function(){return"horizontal"}}),__metadata("design:type",String)],MoBarChart.prototype,"xAxisMode",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChart.prototype,"colors",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:20,right:0,bottom:80,left:50}}}),__metadata("design:type","function"==typeof(u="undefined"!=typeof ChartMargin&&ChartMargin)?u:Object)],MoBarChart.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChart.prototype,"decimal",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"labelColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"groupType",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChart.prototype,"onDataChanged",null),MoBarChart=__decorate([e.Component({})],MoBarChart));function MoBarChart(){var t=null!==g&&g.apply(this,arguments)||this;return t.MIN_WIDTH=20,t.svgWidth=0,t.svgHeight=0,t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.yAxisScale=null,t.secondYAxisScale=null,t.xAxis=null,t.yAxis=null,t.secondYAxis=null,t.line=null,t.xAxisCategories=null,t.xAxisAggregates=null,t.categories=[],t.needScroll=!1,t}function normalizeComponent(t,e,n,a,o,r,i,l,s,c){"boolean"!=typeof i&&(s=l,l=i,i=!1);var d,p="function"==typeof n?n.options:n;if(t&&t.render&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0,o&&(p.functional=!0)),a&&(p._scopeId=a),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},p._ssrRegister=d):e&&(d=i?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),d)if(p.functional){var h=p.render;p.render=function renderWithStyleInjection(t,e){return d.call(e),h(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,d):[d]}return n}var v,y="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(t){return function(t,e){return function addStyle(t,e){var n=y?e.media||"default":t,a=w[n]||(w[n]={ids:new Set,styles:[]});if(!a.ids.has(t)){a.ids.add(t);var o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",e.media&&a.element.setAttribute("media",e.media),void 0===v&&(v=document.head||document.getElementsByTagName("head")[0]),v.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(o),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var r=a.ids.size-1,i=document.createTextNode(o),l=a.element.childNodes;l[r]&&a.element.removeChild(l[r]),l.length?a.element.insertBefore(i,l[r]):a.element.appendChild(i)}}}(t,e)}}var w={};function x(){var t=this.$createElement;return(this._self._c||t)("div",{class:["mo-chart",this.needScroll?"x-scroll":""]})}var _,C,k=b,S=(x._withStripped=!0,normalizeComponent({render:x,staticRenderFns:[]},function(t){t&&t("data-v-218fcb0a_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},k,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MoBarChartHorizontal(){var t=null!==_&&_.apply(this,arguments)||this;return t.svgWidth=0,t.svgHeight=0,t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.yAxisScale=null,t.xAxis=null,t.yAxis=null,t.yAxisCategories=null,t.yAxisAggregates=null,t.categories=[],t.mainChart=null,t.labelGroup=null,t}function G(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var A,T,M,R=(__extends(MoBarChartHorizontal,_=e.Mixins(i)),Object.defineProperty(MoBarChartHorizontal.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,o=t.left;return 0<this.aggregates.length?{top:e,right:n,bottom:60,left:o}:0<this.groupings.length?{top:e,right:n,bottom:a,left:115}:this.margin},enumerable:!0,configurable:!0}),MoBarChartHorizontal.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},MoBarChartHorizontal.prototype.mounted=function(){this.redraw()},MoBarChartHorizontal.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine();var t=JSON.parse(JSON.stringify(this.data));"stacked"!==this.groupType&&"stacked100"!==this.groupType||(t=this.refactorStackedData()),this.renderBar(t),0===this.categories.length&&this.aggregates.length<=1&&this.renderData(t),0<this.categories.length&&this.renderLabel(),1<this.aggregates.length&&this.renderMeasure()},MoBarChartHorizontal.prototype.init=function(){var e=this;this.categories=[];var t,n=this.data.length;this.svgWidth=this.getWidth(),this.svgWidth&&(this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right),this.groupType&&"none"!==this.groupType&&this.data.forEach(function(t){t.pieces&&t.pieces.length>e.categories.length&&(e.categories=[],t.pieces.forEach(function(t){e.categories.push(t.label)}))}),t="grouped"===this.groupType&&0<this.categories.length?(this.height=(this.barHeight*this.categories.length+this.barPadding)*n,m.getMaxValue(this.data)):(1<this.aggregates.length?this.height=(this.barHeight*this.aggregates.length+this.barPadding)*n:this.height=(this.barHeight+this.barPadding)*n,f.max(this.data,function(t){return f.max(t.values)})),this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom,0<this.categories.length&&(this.svgHeight+=25*this.categories.length+10),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+10),this.svg=c.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight),"stacked100"===this.groupType&&0<this.categories.length?(this.xAxisScale=l.scaleLinear().domain([0,1]).range([0,this.width-this.actualMargin.right]),this.xAxis=s.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return d.format(".0%")(Number(t))})):(this.xAxisScale=l.scaleLinear().domain([0,t||10]).range([0,this.width-this.actualMargin.right]).nice(),this.xAxis=s.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return m.formatValue(t,"",e.decimal)})),this.yAxisScale=l.scaleBand().domain(this.data.map(function(t){return t.label})).range([0,this.height]),this.yAxisCategories=l.scaleBand().domain(this.categories).range([0,this.barHeight*this.categories.length]).round(!0),1<this.aggregates.length&&(this.yAxisAggregates=l.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.barHeight*this.aggregates.length]).round(!0)),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return m.formatDomainValue(t,e.actualMargin.left-15,!1)}),this.mainChart=this.svg.append("g").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")"),this.labelGroup=this.svg.append("g"),0<this.aggregates.length&&this.labelGroup.attr("transform","translate( 0, 40 )")},MoBarChartHorizontal.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate("+this.actualMargin.left+", 5)").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",12).attr("x",12).attr("transform","rotate(60, -12, 12)"),this.svg.append("g").attr("class","y mo-axis").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",-Math.round(this.barPadding/2))},MoBarChartHorizontal.prototype.renderAxisLabel=function(){this.svg.append("text").attr("class","mo-axis-label").attr("x",this.svgWidth/2).attr("y",this.height+this.actualMargin.bottom+10).text(this.aggregates.map(function(t){return t.label}).join(", ")),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-30).attr("y",15).attr("width",this.height-10).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-30).attr("y",-10).attr("width",this.height-10).attr("height",25).style("fill","none"),this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15).attr("transform","rotate(-90)").text(this.groupings[0].label)},MoBarChartHorizontal.prototype.renderSpaceLine=function(){this.mainChart.selectAll(".mo-space-line").data(this.xAxisScale.ticks()).enter().append("line").attr("class","mo-space-line").attr("x1",this.xAxisScale).attr("x2",this.xAxisScale).attr("y1",-5).attr("y2",this.height-5),this.mainChart.append("line").attr("class","mo-space-line").attr("x1",0).attr("y1",-5).attr("x2",0).attr("y2",this.height-5)},MoBarChartHorizontal.prototype.refactorStackedData=function(){var s=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){var e=t.pieces,i=void 0===e?[]:e,l=t.values;i.forEach(function(t,e){var n,a,o,r;t.x=(n=i,a=e,o=l[0],r=0,n.forEach(function(t,e){e<a&&("stacked100"===s.groupType?r+=s.xAxisScale(t.values[0]/o):r+=s.xAxisScale(t.values[0]))}),r),t.percentage=t.values[0]/l[0]})}),t},MoBarChartHorizontal.prototype.renderBar=function(t){var n=this;0<this.categories.length?"grouped"===this.groupType?this.renderGroupedBar(t):"stacked"!==this.groupType&&"stacked100"!==this.groupType||this.renderStackedBar(t):1<this.aggregates.length?this.renderGroupedAggregatesBar(t):this.mainChart.selectAll(".bar").data(t).enter().append("rect").attr("width",0).attr("height",this.barHeight).attr("y",function(t,e){return(n.barHeight+n.barPadding)*e}).style("fill",m.getColor(0,this.colors)).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t.values[0])})},MoBarChartHorizontal.prototype.renderGroupedAggregatesBar=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t,e){return"translate(0,\n "+(n.barHeight*n.aggregates.length+n.barPadding)*e+")"}).selectAll("rect").data(function(t){return t.values}).enter().append("rect").attr("class","rect").attr("width",0).attr("height",this.barHeight).attr("y",function(t,e){return n.yAxisAggregates(n.aggregates[e].label)}).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t)})},MoBarChartHorizontal.prototype.renderGroupedBar=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t,e){return"translate(0,\n "+(n.barHeight*n.categories.length+n.barPadding)*e+")"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("width",0).attr("height",this.barHeight).attr("y",function(t){return n.yAxisCategories(t.label)}).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t.values[0])})},MoBarChartHorizontal.prototype.renderStackedBar=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("g").attr("transform",function(t,e){return"translate(0, "+(n.barHeight+n.barPadding)*e+")"}).selectAll("rect").data(function(t){return t.pieces}).enter().append("rect").attr("class","rect").attr("width",0).attr("height",this.barHeight).attr("x",this.xAxisScale(0)).style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(1e3).attr("x",function(t){return t.x}).attr("width",function(t){return"stacked100"===n.groupType?n.xAxisScale(t.percentage):n.xAxisScale(t.values[0])})},MoBarChartHorizontal.prototype.renderData=function(t){var n=this;this.mainChart.selectAll(".bar").data(t).enter().append("text").attr("class","mo-data-text").attr("x",0).attr("y",function(t){return n.yAxisScale(t.label)+(n.barHeight+n.barPadding)/2-3}).style("fill",function(t,e){return"inner"===n.valuePosition?n.valueColor:0===n.categories.length?m.getColor(0,n.colors):m.getColor(e,n.colors)}).attr("text-anchor","start").transition().duration(1e3).attr("x",function(t){return"inner"===n.valuePosition?10:n.xAxisScale(t.values[0])+5}).text(function(t){var e=n.aggregates[0].unitSymbol;return m.formatValue(t.values[0],e,n.decimal)})},MoBarChartHorizontal.prototype.renderLabel=function(){var n=this;this.labelGroup.append("line").attr("x1",0).attr("y1",this.actualMargin.top+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.height).attr("class","mo-label-line"),this.labelGroup.append("text").attr("x",this.svgWidth/2).attr("y",this.actualMargin.top+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var t=this.labelGroup.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){return n.actualMargin.top+n.height+52+25*e}).attr("class","mo-legend-text").text(function(t){return t})},MoBarChartHorizontal.prototype.renderMeasure=function(){var n=this,a=this.actualMargin.top+this.height;0<this.categories.length&&(a+=25*this.categories.length+10),this.labelGroup.append("line").attr("x1",0).attr("y1",a).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",a).attr("class","mo-label-line"),this.labelGroup.append("text").attr("x",this.svgWidth/2).attr("y",a+25).attr("class","mo-label-title").text("Measure");var t=this.labelGroup.selectAll(".mo-label").data(this.aggregates).enter().append("g").attr("class","mo-label");t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){return a+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){return a+52+25*e}).attr("class","mo-legend-text").text(function(t){return t.label})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"data",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"groupings",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"aggregates",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"colors",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:50,right:10,bottom:20,left:75}}}),__metadata("design:type","function"==typeof(C="undefined"!=typeof ChartMargin&&ChartMargin)?C:Object)],MoBarChartHorizontal.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 25}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barHeight",void 0),__decorate([e.Prop({type:Number,default:function(){return 15}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barPadding",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"decimal",void 0),__decorate([e.Prop({type:String,default:function(){return"top"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valuePosition",void 0),__decorate([e.Prop({type:String,default:function(){return"#fff"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valueColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"groupType",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChartHorizontal.prototype,"onDataChanged",null),MoBarChartHorizontal=__decorate([e.Component({})],MoBarChartHorizontal)),P=(G._withStripped=!0,normalizeComponent({render:G,staticRenderFns:[]},function(t){t&&t("data-v-dad289de_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},R,void 0,!1,void 0,!1,createInjector,void 0,void 0));function PieChart(){var t=null!==A&&A.apply(this,arguments)||this;return t.width=0,t.height=0,t.svg=null,t.total=0,t.arcLayout=null,t.arc3dLayout=null,t.pieLayout=null,t.radius=0,t.innerRadius=0,t.arcGroup=null,t.arc=null,t.centerGroup=null,t.labelGroup=null,t.rightNavImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNCQTdEM0Y5NEVFNTExRTU5NkM0RjIwRkJBMjYwMTUzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNCQTdEM0ZBNEVFNTExRTU5NkM0RjIwRkJBMjYwMTUzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0JBN0QzRjc0RUU1MTFFNTk2QzRGMjBGQkEyNjAxNTMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0JBN0QzRjg0RUU1MTFFNTk2QzRGMjBGQkEyNjAxNTMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4zV8eYAAAB9klEQVR42sSYW0QEYRiGdztSlCillmUVkSK6iSidLrabSiKJIl0UnW5KEUUqSQdFpairKEpGlu1IdBERUUp3RRcRSemgw/vzDeMzqUz7zcvD7sfsPnZm/nn/dWqa5rCQaDAFkkATOHVYTIjF41dAEb3eBnng3MoHBlk4NhTkG94nkFSyXUJvYJjN1KnbBR47hFS6wASbucAOcNsh9AlawTSbu0nKJS2kSzWCeTb3kFSitJAu1QAW2DyFLvR4aSGVD1APltg8laTipIVU3kENrU/GpIEtECstpEtVg1U2zwB+ECMtpK9RVYA/lzJJKlpaSOUVVAAfm2fRLEpaSJcqB5tsng02QKS0kMozKAV7bJ5DUhFmQv3ghdaTQPBITYAnF6wbpXShDhDmsCeFYFzylP0m6VxoiC5Au+LjQt0gHDgDiGqnyyYyV2BW+pQFg0VQyebX1DpvJIXUd8zR48QYJVEALiXXIXWqZkAtm9+SzIXkwqhkJqmSmMmcST86RqlJGnMHisGJ9MN1BLSw2T3JHEvXjwHQ/o3MkXRB6wWdbPYAvOBQusL2EMY8gRJwIF3yO+jXMZPZl94GtYFBkw5UZtKBAi7UTHeUWUv0S2+l68AYLYA/9WgRoSYm891OQ0xI+8Ve7M+x8g9aH9UKL3Xytf+4Xb8EGABhpHk2U/H9dQAAAABJRU5ErkJggg==",t.rotation={index:0,angle:0,startAngle:0,originalAngle:0},t}function Q(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mo-chart"},[e.rotate?n("div",{staticClass:"mo-tip-container"},[n("div",{staticClass:"mo-tip-content"},[n("div",{staticClass:"left-nav",on:{click:function(t){return e.onLeftNavClicked(t)}}},[n("img",{attrs:{src:e.rightNavImage,width:"18"}})]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"right-nav",on:{click:function(t){return e.onRightNavClicked(t)}}},[n("img",{attrs:{src:e.rightNavImage,width:"18"}})])])]):e._e()])}var B,D,j=(__extends(PieChart,A=e.Mixins(i)),PieChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},PieChart.prototype.mounted=function(){this.redraw()},PieChart.prototype.redraw=function(){this.init(),this.renderPie(),this.donut&&(this.addDonut(),this.showTotal&&this.renderTotal()),this.rotate?this.changeContent():(this.renderInnerLabel(),this.renderLabel())},PieChart.prototype.onLeftNavClicked=function(t){var e=this;t.stopPropagation(),t.preventDefault(),this.rotation.index<this.data.length-1?this.rotation.index+=1:this.rotation.index=0;var n=this.pieLayout(this.data)[this.rotation.index];this.rotation.angle=180-(n.startAngle+n.endAngle)/2/Math.PI*180,this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+this.width/2+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.onRightNavClicked=function(t){var e=this;t.stopPropagation(),t.preventDefault(),0<this.rotation.index?--this.rotation.index:this.rotation.index=this.data.length-1;var n=this.pieLayout(this.data)[this.rotation.index];this.rotation.angle=180-(n.startAngle+n.endAngle)/2/Math.PI*180,this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+this.width/2+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.changeContent=function(){-1===this.rotation.index&&(this.rotation.index=0);var t,e=m.getPercentage(this.data[this.rotation.index].values[0],this.total,this.decimal),n=m.formatValue(this.data[this.rotation.index].values[0],this.symbol),a=this.$el.querySelector(".percentage"),o=this.$el.querySelector(".label");a&&((t=c.select(a)).style("color",m.getColor(this.rotation.index,this.colors)),t.text(n+" : "+e+"%")),o&&(t=c.select(o)).text(this.data[this.rotation.index].label)},PieChart.prototype.init=function(){this.width=this.area&&this.area.width&&this.area.height?Math.min(this.area.width-20,this.area.height-60-(this.rotate?54:0)):this.getWidth(),this.height=this.width+10,this.radius=this.width/2-10,this.innerRadius=this.donut?.43*this.radius:0,this.rotation={index:0,angle:0,startAngle:0,originalAngle:0},this.rotate||("horizontal"===this.labelMode?this.height+=60:this.height+=25*this.data.length+34,this.groupBy&&this.aggregate&&(this.height+=50)),this.svg=c.select(this.$el).insert("svg",".mo-tip-container").attr("width",this.width).attr("height",this.height),this.total=f.sum(this.data,function(t){return t.values[0]}),this.arcLayout=p.arc().outerRadius(this.radius).innerRadius(this.innerRadius),this.arc3dLayout=p.arc().outerRadius(this.innerRadius+9).innerRadius(this.innerRadius),this.pieLayout=p.pie().value(function(t){return t.values[0]});var t=this.pieLayout(this.data)[this.rotation.index];this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.arcGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+this.width/2+") rotate("+this.rotation.angle+")"),this.arc=this.arcGroup.selectAll(".arc").data(this.pieLayout(this.data)).enter().append("g").attr("class","arc"),this.centerGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+this.width/2+")"),this.labelGroup=this.svg.append("svg:g")},PieChart.prototype.renderPie=function(){var n=this;this.arc.append("svg:path").style("fill",function(t,e){return m.getColor(e,n.colors)}).transition().duration(750).attrTween("d",function(t){var e=r.interpolateObject({startAngle:0,endAngle:0},t);return function(t){return n.arcLayout(e(t))}})},PieChart.prototype.addDonut=function(){var n=this;this.arc.append("svg:path").attr("class","mo-inner-arc").transition().duration(750).attrTween("d",function(t){var e=r.interpolateObject({startAngle:0,endAngle:0},t);return function(t){return n.arc3dLayout(e(t))}})},PieChart.prototype.renderTotal=function(){this.centerGroup.append("svg:text").style("text-anchor","middle").attr("class","mo-summary-label").transition().delay(500).text(this.totalLabel),this.centerGroup.append("svg:text").attr("y",18).style("text-anchor","middle").attr("class","mo-summary-value").transition().delay(500).text(m.formatValue(this.total,this.symbol))},PieChart.prototype.renderInnerLabel=function(){var n=this;this.arc.append("text").attr("class","mo-inner-text").attr("text-anchor","middle").text(function(t){var e;return m.getInnerText({showValue:n.showValue,innerValue:"inner"===n.valuePosition,value:t.value,showPercentage:n.showPercentage,innerPercentage:"inner"===n.percentagePosition,total:n.total,decimal:n.decimal,symbol:null===(e=n.aggregate)||void 0===e?void 0:e.unitSymbol})}).transition().duration(750).attr("transform",function(t){return"translate("+n.arcLayout.centroid(t)+") rotate("+-n.rotation.angle+")"})},PieChart.prototype.renderLabel=function(){this.groupBy&&this.aggregate&&(this.labelGroup.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",this.width+15).text(this.aggregate.label),this.labelGroup.append("line").attr("class","mo-label-line").attr("x1",0).attr("y1",this.width+30).attr("x2",this.width).attr("y2",this.width+30),this.labelGroup.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",this.width+50).text(this.groupBy.label));var t=this.labelGroup.selectAll(".mo-label").data(this.data).enter().append("g");"horizontal"===this.labelMode?this.renderHorizontalLabel(t):this.renderVerticalLabel(t)},PieChart.prototype.renderHorizontalLabel=function(t){var a=this;t.append("rect").attr("width","15").attr("height","15").attr("x",function(t,e){return e*a.radius+25}).attr("y",function(){var t=a.width+25;return a.groupBy&&a.aggregate&&(t+=55),t}).attr("fill",function(t,e){return m.getColor(e,a.colors)}),t.append("text").attr("x",function(t,e){return e*a.radius+40}).attr("y",function(){var t=a.width+40;return a.groupBy&&a.aggregate&&(t+=55),t}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e,n=m.getBottomText({showValue:a.showValue,innerValue:"inner"===a.valuePosition,value:t.values[0],showPercentage:a.showPercentage,innerPercentage:"inner"===a.percentagePosition,total:a.total,decimal:a.decimal,symbol:null===(e=a.aggregate)||void 0===e?void 0:e.unitSymbol});return""!==n?t.label+" : "+n:t.label})},PieChart.prototype.renderVerticalLabel=function(t){var a=this;t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){var n=a.width+20+25*e;return a.groupBy&&a.aggregate&&(n+=55),n}).attr("fill",function(t,e){return m.getColor(e,a.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){var n=a.width+32+25*e;return a.groupBy&&a.aggregate&&(n+=55),n}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e,n=m.getBottomText({showValue:a.showValue,innerValue:"inner"===a.valuePosition,value:t.values[0],showPercentage:a.showPercentage,innerPercentage:"inner"===a.percentagePosition,total:a.total,decimal:a.decimal,symbol:null===(e=a.aggregate)||void 0===e?void 0:e.unitSymbol});return""!==n?t.label+" : "+n:t.label})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],PieChart.prototype,"data",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showTotal",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showValue",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"symbol",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"valuePosition",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"showPercentage",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"percentagePosition",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],PieChart.prototype,"decimal",void 0),__decorate([e.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],PieChart.prototype,"labelMode",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"labelColor",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"rotate",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],PieChart.prototype,"colors",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"donut",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(T="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?T:Object)],PieChart.prototype,"groupBy",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(M="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?M:Object)],PieChart.prototype,"aggregate",void 0),__decorate([e.Prop({type:String,default:function(){return"Total"}}),__metadata("design:type",String)],PieChart.prototype,"totalLabel",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],PieChart.prototype,"area",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],PieChart.prototype,"onDataChanged",null),PieChart=__decorate([e.Component({})],PieChart)),L=(Q._withStripped=!0,normalizeComponent({render:Q,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[e("span",{staticClass:"percentage"}),this._v(" "),e("span",{staticClass:"label"})])}]},function(t){t&&t("data-v-ce69b8ec_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},j,void 0,!1,void 0,!1,createInjector,void 0,void 0));function LineChart(){var t=null!==B&&B.apply(this,arguments)||this;return t.svgWidth=0,t.svgHeight=0,t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.yAxisScale=null,t.xAxis=null,t.yAxis=null,t.xAxisCategories=null,t.categories=[],t.area=null,t.maxValue=null,t.refactoredData=[],t}function Z(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var E,I,O,X=(__extends(LineChart,B=e.Mixins(i)),Object.defineProperty(LineChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,o=t.left;return 0<this.groupings.length?{top:e,right:n,bottom:130,left:o}:0<this.aggregates.length?{top:e,right:n,bottom:a,left:65}:this.margin},enumerable:!0,configurable:!0}),LineChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},LineChart.prototype.mounted=function(){this.redraw()},LineChart.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine(),this.renderDataLine(),1<this.aggregates.length?this.renderMeasure():0<this.categories.length&&this.renderLabel(),this.showValue&&this.renderData()},LineChart.prototype.init=function(){var e=this;this.svgWidth=this.getWidth(),this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=this.width,this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom+5,this.categories=[],this.maxValue=f.max(this.data,function(t){return f.max(t.values)}),"grouped"!==this.groupType&&"cumulativeGrouped"!==this.groupType||this.refactorGroupedData(),0<this.categories.length&&(this.svgHeight+=25*this.categories.length+50,this.maxValue=m.getMaxValue(this.data)),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+50),this.refactoredData=JSON.parse(JSON.stringify(this.data)),"cumulativeGrouped"!==this.groupType&&"cumulative"!==this.groupType||this.refactorCumulateData(),this.svg=c.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).append("g").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")"),this.xAxisScale=l.scalePoint().domain(this.refactoredData.map(function(t){return t.label})).range([0,this.width-5]),this.xAxis=s.axisBottom(this.xAxisScale).tickSize(0).tickFormat(function(t){return m.formatDomainValue(t,e.actualMargin.bottom,!0)}),this.yAxisScale=l.scaleLinear().domain([0,this.maxValue||10]).range([this.height,0]).nice(),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return m.formatValue(t,"",e.decimal)}),this.area=p.area().x(function(t){return e.xAxisScale(t.label)}).y0(this.height).y1(function(t){return e.yAxisScale(e.lineValue(t))})},LineChart.prototype.lineValue=function(t,e){return void 0===e&&(e=0),"cumulativeGrouped"===this.groupType||"cumulative"===this.groupType?t.cumulates[e]||0:t.values[e]},LineChart.prototype.line=function(e){var n=this;return void 0===e&&(e=0),p.line().curve(p.curveLinear).x(function(t){return n.xAxisScale(t.label)}).y(function(t){return n.yAxisScale(n.lineValue(t,e))})},LineChart.prototype.refactorGroupedData=function(){var n=[];this.data.forEach(function(e){e.pieces&&0<e.pieces.length&&e.pieces.forEach(function(t){n.push({label:e.label,group:t.label,values:t.values})})}),this.categories=Array.from(f.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},LineChart.prototype.refactorCumulateData=function(){var i=this;0<this.categories.length?this.categories.forEach(function(r){r.value.forEach(function(a,o){a.cumulates=a.cumulates||[],a.values.forEach(function(t,e){var n=0<o?r.value[o-1].cumulates[e]+t:t;a.cumulates.push(n),n>i.maxValue&&(i.maxValue=n)})})}):this.refactoredData.forEach(function(a,o){a.cumulates=a.cumulates||[],a.values.forEach(function(t,e){var n=0<o?i.refactoredData[o-1].cumulates[e]+t:t;a.cumulates.push(n),n>i.maxValue&&(i.maxValue=n)})})},LineChart.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate(0, "+this.height+")").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",5).attr("x",5).attr("transform","rotate(-60, 0, 15)"),this.svg.append("g").attr("class","y mo-axis").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0)},LineChart.prototype.renderAxisLabel=function(){m.defineAreaGradientsForCover(this.svg,0,!1),this.svg.append("rect").attr("x",-this.actualMargin.left-10).attr("y",this.height+this.actualMargin.bottom-30).attr("class","mo-cover").attr("height",10).style("fill","none"),this.svg.append("rect").attr("x",-this.actualMargin.left-10).attr("y",this.height+this.actualMargin.bottom-20).attr("class","mo-cover").attr("height",this.svgHeight-this.height-this.actualMargin.bottom+5).style("fill","none"),0<this.groupings.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.height+this.actualMargin.bottom-15).text(this.groupings[0].label),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",20-this.actualMargin.left).attr("width",this.height+20).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",-this.actualMargin.left-10).attr("width",this.height+20).attr("height",30).style("fill","none"),0<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15-this.actualMargin.left).attr("transform","rotate(-90)").text(this.aggregates.map(function(t){return t.label}).join(", "))},LineChart.prototype.renderSpaceLine=function(){var e=this;this.svg.selectAll(".mo-space-line").data(this.yAxisScale.ticks()).enter().append("line").attr("class","mo-space-line").attr("x1",0).attr("x2",this.width-5).attr("y1",this.yAxisScale).attr("y2",this.yAxisScale),this.svg.selectAll(".mo-vertical-line").data(this.refactoredData).enter().append("line").attr("class","mo-space-line").attr("x1",function(t){return e.xAxisScale(t.label)}).attr("y1",this.height).attr("x2",function(t){return e.xAxisScale(t.label)}).attr("y2",0),this.svg.selectAll(".mo-axis-point").data(this.refactoredData).enter().append("circle").attr("class","mo-axis-point").attr("r",2).attr("cx",function(t){return e.xAxisScale(t.label)}).attr("cy",this.height)},LineChart.prototype.renderDataLine=function(){function zn(t,e,n){void 0===n&&(n=!1);var a=n?e:0,o=m.getColor(e,l.colors),r=l.svg.append("path").datum(t).attr("d",l.line(a)).attr("class","mo-data-line").style("stroke",o),i=r.node().getTotalLength();r.attr("stroke-dasharray",i+" "+i).attr("stroke-dashoffset",i).transition().duration(1e3).ease(h.easeLinear).attr("stroke-dashoffset",0),l.svg.selectAll(".mo-data-point").data(t).enter().append("circle").attr("cx",function(t){return l.xAxisScale(t.label)}).attr("cy",function(t){return l.yAxisScale(l.lineValue(t,a))}).attr("r",l.pointRadius).attr("class","mo-line-point").style("fill",o)}var l=this;0<this.categories.length&&("cumulativeGrouped"===this.groupType||"grouped"===this.groupType)?this.categories.forEach(function(t,e){return zn(t.value,e)}):1<this.aggregates.length?this.aggregates.forEach(function(t,e){return zn(l.refactoredData,e,!0)}):(this.defineAreaGradients(0,m.getColor(0,this.colors)),zn(this.refactoredData,0),this.svg.append("path").datum(this.refactoredData).attr("class","mo-line-area").style("fill","url(#MoLineAreaGradient0)").transition().duration(1e3).attr("d",this.area))},LineChart.prototype.defineAreaGradients=function(t,e){var n=this.svg.append("defs").append("linearGradient").attr("id","MoLineAreaGradient"+t).attr("x1","0").attr("y1","0").attr("x2","0").attr("y2","0").attr("y1","100%");n.append("stop").attr("offset","0%").attr("stop-color",e).attr("stop-opacity",0),n.append("stop").attr("offset","100%").attr("stop-color",e).attr("stop-opacity",.7)},LineChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var e=t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");e.append("rect").attr("width","15").attr("height","15").attr("x",0).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){return t.key})},LineChart.prototype.renderMeasure=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.actualMargin.left).attr("y1",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",this.actualMargin.top+this.actualMargin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.actualMargin.left)/2).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text("Measure");var e=t.selectAll(".mo-label").data(this.aggregates).enter().append("g").attr("class","mo-label");e.append("rect").attr("width","15").attr("height","15").attr("x",0).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.actualMargin.top+n.actualMargin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){return t.label})},LineChart.prototype.renderData=function(){var e=this;this.svg.append("g").selectAll(".mo-data-text").data(this.refactoredData).enter().append("text").attr("class","mo-data-text").attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",function(t){return e.yAxisScale(e.lineValue(t))-5}).attr("text-anchor","middle").text(this.lineValue).style("fill",this.textColor||"")},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],LineChart.prototype,"data",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"groupings",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"aggregates",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],LineChart.prototype,"showValue",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:15,right:0,bottom:80,left:50}}}),__metadata("design:type","function"==typeof(D="undefined"!=typeof ChartMargin&&ChartMargin)?D:Object)],LineChart.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],LineChart.prototype,"pointRadius",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"textColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"labelColor",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"groupType",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],LineChart.prototype,"colors",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],LineChart.prototype,"decimal",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],LineChart.prototype,"onDataChanged",null),LineChart=__decorate([e.Component({})],LineChart)),N=(Z._withStripped=!0,normalizeComponent({render:Z,staticRenderFns:[]},function(t){t&&t("data-v-ce9f73ba_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},X,void 0,!1,void 0,!1,createInjector,void 0,void 0));function FunnelChart(){var t=null!==E&&E.apply(this,arguments)||this;return t.funnelWidth=0,t.funnelHeight=0,t.legendItemHeight=25,t.svg=null,t.total=0,t.refactoredData=[],t}function ga(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var V,Y,H,W=(__extends(FunnelChart,E=e.Mixins(i)),FunnelChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},FunnelChart.prototype.mounted=function(){this.redraw()},FunnelChart.prototype.redraw=function(){this.init(),this.renderFunnel(),this.renderLegend()},FunnelChart.prototype.init=function(){var p=this;this.funnelWidth=this.getWidth(),this.funnelHeight=this.height||.8*this.funnelWidth;var h=this.data.length,t=this.funnelHeight+this.legendItemHeight*(h+1),m=h<=1?this.funnelWidth/4:this.funnelWidth/(2*h),g=this.funnelHeight/h;this.groupBy&&this.aggregate&&(t+=65),this.data.forEach(function(t,e){var n=e*m,a=e*g,o=p.funnelWidth-n,r=a,i=e===h-1&&1<h?o:o-m,l=r+g,s=e===h-1&&1<h?n:n+m,c=l,d=JSON.parse(JSON.stringify(t));d.points=[{x:n,y:a},{x:o,y:r},{x:i,y:l},{x:s,y:c}],p.refactoredData.push(d)}),this.svg=c.select(this.$el).append("svg").attr("width",this.funnelWidth).attr("height",t),this.total=f.sum(this.refactoredData,function(t){return t.values[0]})},FunnelChart.prototype.renderFunnel=function(){var n=this,t=this.svg.selectAll("g").data(this.refactoredData).enter().append("g");t.append("polygon").attr("points",this.getPoint(this.refactoredData[0].points)).style("fill","#fff").transition().duration(1e3).attr("points",function(t){return t.points.map(function(t){return[t.x,t.y].join(",")}).join(" ")}).style("fill",function(t,e){return m.getColor(e,n.colors)}),t.append("text").attr("class","mo-label-inner").attr("x",this.funnelWidth/2).attr("y",function(t){return(t.points[0].y+t.points[3].y)/2+4}).text(function(t){var e;return m.getInnerText({showValue:n.showValue,innerValue:"inner"===n.valuePosition,value:t.values[0],showPercentage:n.showPercentage,innerPercentage:"inner"===n.percentagePosition,total:n.total,decimal:n.decimal,symbol:null===(e=n.aggregate)||void 0===e?void 0:e.unitSymbol})})},FunnelChart.prototype.getPoint=function(t){for(var e=[],n=0;n<4;n+=1)e.push(t[n].x+","+t[n].y);return e.join(" ")},FunnelChart.prototype.renderLegend=function(){var a=this,t=this.funnelHeight+this.legendItemHeight;this.groupBy&&this.aggregate&&(this.svg.append("text").attr("class","mo-axis-label").attr("x",this.funnelWidth/2).attr("y",this.funnelHeight+25).text(this.aggregate.label),this.svg.append("line").attr("x1",0).attr("y1",this.funnelHeight+40).attr("x2",this.funnelWidth).attr("y2",this.funnelHeight+40).attr("class","mo-label-line"),this.svg.append("text").attr("class","mo-axis-label").attr("x",this.funnelWidth/2).attr("y",this.funnelHeight+65).text(this.groupBy.label),t+=65);var e=this.svg.append("g").attr("transform","translate(0, "+t+")"),n=e.selectAll("rect").data(this.refactoredData).enter().append("rect").attr("width",15).attr("height",15).style("fill",function(t,e){return m.getColor(e,a.colors)}),o=e.selectAll("text").data(this.refactoredData).enter().append("text").attr("class","mo-legend-text").text(function(t){var e,n=m.getBottomText({showValue:a.showValue,innerValue:"inner"===a.valuePosition,value:t.values[0],showPercentage:a.showPercentage,innerPercentage:"inner"===a.percentagePosition,total:a.total,decimal:a.decimal,symbol:null===(e=a.aggregate)||void 0===e?void 0:e.unitSymbol});return""!==n?t.label+" : "+n:t.label});"horizontal"===this.labelMode?(n.attr("x",function(t,e){return 10+100*e}).attr("y",10),o.attr("x",function(t,e){return 35+100*e}).attr("y",23)):(n.attr("x",10).attr("y",function(t,e){return 25*e}),o.attr("x",35).attr("y",function(t,e){return 25*e+13}))},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],FunnelChart.prototype,"data",void 0),__decorate([e.Prop({type:Number}),__metadata("design:type",Number)],FunnelChart.prototype,"height",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],FunnelChart.prototype,"decimal",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],FunnelChart.prototype,"colors",void 0),__decorate([e.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],FunnelChart.prototype,"labelMode",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showValue",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"valuePosition",void 0),__decorate([e.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showPercentage",void 0),__decorate([e.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"percentagePosition",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(I="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?I:Object)],FunnelChart.prototype,"groupBy",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(O="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?O:Object)],FunnelChart.prototype,"aggregate",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],FunnelChart.prototype,"onDataChanged",null),FunnelChart=__decorate([e.Component({})],FunnelChart)),U=(ga._withStripped=!0,normalizeComponent({render:ga,staticRenderFns:[]},function(t){t&&t("data-v-e288004c_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},W,void 0,!1,void 0,!1,createInjector,void 0,void 0));function GaugeChart(){var t=null!==V&&V.apply(this,arguments)||this;return t.svg=null,t.width=0,t.height=0,t.radius=0,t.backgroundArc=null,t.arc=null,t.centerArc=null,t.scale=null,t}function pa(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mo-chart"},[t.aggregate?n("div",{staticClass:"mo-axis-div-label"},[t._v("\n "+t._s(t.aggregate.label)+"\n ")]):t._e()])}var J,q,K,$=(__extends(GaugeChart,V=e.Mixins(i)),Object.defineProperty(GaugeChart.prototype,"minValue",{get:function(){return Math.min(this.data.minValue,this.data.value)},enumerable:!0,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"maxValue",{get:function(){return Math.max(this.data.maxValue,this.data.value)},enumerable:!0,configurable:!0}),GaugeChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},GaugeChart.prototype.mounted=function(){this.redraw()},GaugeChart.prototype.redraw=function(){this.init(),this.renderGauge(),this.renderData(),this.renderPointer()},GaugeChart.prototype.init=function(){this.width=this.getWidth();var t=this.width<400?.9:.85;this.height=this.width*t,this.radius=this.width/2-5,this.svg=c.select(this.$el).insert("svg",".mo-axis-div-label").attr("width",this.width).attr("height",this.width/2+100),this.defineGradient(),this.backgroundArc=p.arc().innerRadius(this.radius).outerRadius(this.radius).startAngle(this.angleToRadian(this.minAngle)).endAngle(this.angleToRadian(this.maxAngle)),this.arc=p.arc().innerRadius(this.radius).outerRadius(this.radius),this.centerArc=p.arc().innerRadius(8).outerRadius(22).startAngle(this.angleToRadian(-180)).endAngle(this.angleToRadian(180)),this.scale=l.scaleLinear().range([this.minAngle,this.maxAngle]).domain([this.minValue,this.maxValue])},GaugeChart.prototype.renderGauge=function(){var o=this;this.svg.append("path").attr("class","mo-gauge-back-arc").attr("transform","translate("+this.width/2+", "+this.width/2+")").attr("d",this.backgroundArc),this.svg.append("path").attr("class","mo-gauge-value-arc").attr("transform","translate("+this.width/2+", "+this.width/2+")").transition().duration(1e3).attrTween("d",function(){var t=o.angleToRadian(o.minAngle),e=o.angleToRadian(o.scale(o.data.value)),n={startAngle:t,endAngle:t},a={startAngle:t,endAngle:e};return function(t){return o.arc(r.interpolateObject(n,a)(t))}});var t=this.tickCalc(),e=this.getTicksAngles();this.svg.append("g").selectAll("path").data(e).enter().append("path").attr("d",t).attr("class","mo-gauge-tick"),this.svg.append("path").attr("class","mo-gauge-inner-arc").attr("transform","translate("+this.width/2+", "+this.width/2+")").attr("d",this.centerArc)},GaugeChart.prototype.renderData=function(){var t,e=this.svg.append("g").attr("transform","translate("+this.width/2+", "+(this.width/2+60)+")"),n=null===(t=this.aggregate)||void 0===t?void 0:t.unitSymbol;e.append("text").text(m.formatValue(this.data.value,n,this.decimal)).attr("class","mo-gauge-value"),e.append("text").attr("y",25).text([this.label,m.formatValue(this.data.maxValue,n,this.decimal)].join(" ")).attr("class","mo-gauge-max-value")},GaugeChart.prototype.renderPointer=function(){var n=this,t=[[2.5,0],[0,-(this.radius-10)],[-2.5,0],[2.5,0]],e=p.line().curve(p.curveMonotoneX);this.svg.append("g").data([t]).attr("class","mo-gauge-pointer").attr("transform","translate("+this.width/2+", "+this.width/2+")").append("path").attr("d",e).attr("transform","rotate("+this.scale(this.minValue)+")").transition().duration(1e3).attrTween("transform",function(){var t=n.scale(n.minValue),e=n.scale(n.data.value);return r.interpolateString("rotate("+t+")","rotate("+e+")")}),this.svg.append("circle").attr("class","mo-gauge-inner-bg-arc").attr("cx",this.width/2).attr("cy",this.width/2).attr("r",10)},GaugeChart.prototype.defineGradient=function(){var t=this.svg.append("defs").append("linearGradient").attr("id","MoGaugeGradient").attr("x1","0").attr("y1","0").attr("x2","100%").attr("y2","0");t.append("stop").attr("offset","0%").attr("stop-color",this.gradientColors[0]),t.append("stop").attr("offset","100%").attr("stop-color",this.gradientColors[1])},GaugeChart.prototype.angleToRadian=function(t){return t*(Math.PI/180)},GaugeChart.prototype.getTicksAngles=function(){for(var t=[],e=0,n=(this.scale(this.maxValue)-this.scale(this.minValue))/this.ticksNumber,a=this.minAngle;a<=this.maxAngle;a+=n)t.push(this.minAngle+n*e),e+=1;return t},GaugeChart.prototype.tickCalc=function(){var i=this;return function(t){var e=(t-90)*(Math.PI/180),n=i.radius-15,a=i.width/2+n*Math.sin(e),o=i.width/2+(5+n)*Math.sin(e),r=[{x:i.width/2+n*Math.cos(e),y:a},{x:i.width/2+(5+n)*Math.cos(e),y:o}];return p.line(function(t){return t.x},function(t){return t.y})(r)}},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Y="undefined"!=typeof GaugeData&&GaugeData)?Y:Object)],GaugeChart.prototype,"data",void 0),__decorate([e.Prop({type:String,default:function(){return"Target"}}),__metadata("design:type",String)],GaugeChart.prototype,"label",void 0),__decorate([e.Prop({type:Number,default:function(){return-90}}),__metadata("design:type",Number)],GaugeChart.prototype,"minAngle",void 0),__decorate([e.Prop({type:Number,default:function(){return 90}}),__metadata("design:type",Number)],GaugeChart.prototype,"maxAngle",void 0),__decorate([e.Prop({type:Array,default:function(){return["#7467cd","#00b9ff"]}}),__metadata("design:type",Array)],GaugeChart.prototype,"gradientColors",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],GaugeChart.prototype,"centerColor",void 0),__decorate([e.Prop({type:Number,default:function(){return 40}}),__metadata("design:type",Number)],GaugeChart.prototype,"ticksNumber",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],GaugeChart.prototype,"decimal",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type","function"==typeof(H="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?H:Object)],GaugeChart.prototype,"aggregate",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],GaugeChart.prototype,"onDataChanged",null),GaugeChart=__decorate([e.Component({})],GaugeChart)),tt=(pa._withStripped=!0,normalizeComponent({render:pa,staticRenderFns:[]},function(t){t&&t("data-v-bbe26ddc_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},$,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MetricChart(){return null!==J&&J.apply(this,arguments)||this}function ya(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mo-chart"},[n("div",{staticClass:"mo-metric"},[n("div",{staticClass:"mo-metric-inner"},[n("div",{staticClass:"mo-metric-label"},[t._v("\n "+t._s(t.data.label)+"\n ")]),t._v(" "),n("div",{staticClass:"mo-metric-value"},[t._v("\n "+t._s(t.value)+"\n ")])])])])}var et,nt,at=(__extends(MetricChart,J=e.Vue),Object.defineProperty(MetricChart.prototype,"value",{get:function(){return m.formatValue(this.data.value,this.aggregate.unitSymbol,this.decimal)},enumerable:!0,configurable:!0}),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(q="undefined"!=typeof MetricData&&MetricData)?q:Object)],MetricChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(K="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?K:Object)],MetricChart.prototype,"aggregate",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MetricChart.prototype,"decimal",void 0),MetricChart=__decorate([e.Component({})],MetricChart)),ot=(ya._withStripped=!0,normalizeComponent({render:ya,staticRenderFns:[]},function(t){t&&t("data-v-297d2cdc_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},at,void 0,!1,void 0,!1,createInjector,void 0,void 0));function ScatterChart(){var t=null!==et&&et.apply(this,arguments)||this;return t.width=0,t.height=0,t.svg=null,t.xAxisScale=null,t.xAxis=null,t.yAxisScale=null,t.yAxis=null,t.line=null,t.categories=[],t}function Ha(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}var rt,it,lt=(__extends(ScatterChart,et=e.Mixins(i)),ScatterChart.prototype.onDataChanged=function(){this.beforeRedraw(),this.redraw()},ScatterChart.prototype.mounted=function(){this.redraw()},ScatterChart.prototype.redraw=function(){this.init(),this.renderAxis(),this.renderAxisLabel(),this.renderSpaceLine(),this.renderPoint(),1<this.groupings.length&&0<this.categories.length&&this.renderLabel()},ScatterChart.prototype.init=function(){var n=this,t=this.getWidth();this.width=t-this.margin.left-this.margin.right,this.height=this.width;var e=this.height+this.margin.top+this.margin.bottom;this.categories=[];var a=f.max(this.data,function(t){return t.values[0]}),o=f.max(this.data,function(t){return t.values[1]});"grouped"===this.groupType&&this.refactorGroupedData(),0<this.categories.length&&(e+=25*this.categories.length+50,a=m.getMaxValue(this.data,0),o=m.getMaxValue(this.data,1)),this.svg=c.select(this.$el).append("svg").attr("width",t).attr("height",e).append("g").attr("transform","translate("+this.margin.left+", "+this.margin.top+")"),this.xAxisScale=l.scaleLinear().domain([0,a||10]).range([0,this.width-5]).nice(),this.xAxis=s.axisBottom(this.xAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?m.formatValue(t,"",n.decimal):""}),this.yAxisScale=l.scaleLinear().domain([0,o||10]).range([this.height,0]).nice(),this.yAxis=s.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?m.formatValue(t,"",n.decimal):""}),this.line=p.line(function(t){return n.xAxisScale(t.values[0])},function(t){return n.yAxisScale(t.values[1])})},ScatterChart.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate(5, "+this.height+")").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text"),this.svg.append("g").attr("class","y mo-axis").call(this.yAxis).selectAll("text").attr("class","mo-axis-text").attr("y",0)},ScatterChart.prototype.renderAxisLabel=function(){0<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.margin.left)/2).attr("y",this.height+this.margin.bottom-30).text(this.aggregates[0].label),0<this.groupings.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",(this.width-this.margin.left)/2).attr("y",this.height+this.margin.bottom-15).text("Plot By "+this.groupings[0].label),m.defineAreaGradientsForCover(this.svg,1,!0),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",20-this.margin.left).attr("width",this.height+20).attr("height",10).style("fill","none"),this.svg.append("rect").attr("transform","rotate(-90)").attr("x",-this.height-10).attr("y",-this.margin.left-10).attr("width",this.height+20).attr("height",30).style("fill","none"),0<this.aggregates.length&&this.svg.append("text").attr("class","mo-axis-label").attr("x",-this.height/2).attr("y",15-this.margin.left).attr("transform","rotate(-90)").text(this.aggregates[0].label)},ScatterChart.prototype.renderSpaceLine=function(){this.svg.selectAll(".mo-space-line").data(this.yAxisScale.ticks()).enter().append("line").attr("stroke","").attr("class",function(t,e){return e%2==0?"mo-space-bold-line":"mo-space-line"}).attr("x1",0).attr("x2",this.width-5).attr("y1",this.yAxisScale).attr("y2",this.yAxisScale),this.svg.selectAll(".mo-vertical-line").data(this.xAxisScale.ticks()).enter().append("line").attr("class",function(t,e){return e%2==0?"mo-space-bold-line":"mo-space-line"}).attr("x1",this.xAxisScale).attr("x2",this.xAxisScale).attr("y1",this.height).attr("y2",0),this.svg.selectAll(".mo-axis-point").data(this.xAxisScale.ticks()).enter().append("circle").attr("class","mo-axis-point").attr("r",function(t,e){return e%2==0?2:0}).attr("cx",this.xAxisScale).attr("cy",this.height)},ScatterChart.prototype.renderPoint=function(){function Sq(t,e){var n=m.getColor(e,a.colors);a.svg.append("g").selectAll(".mo-data-point").data(t).enter().append("circle").attr("fill",n).attr("cx",0).attr("cy",a.height).attr("r",a.pointRadius).transition().duration(1e3).attr("cx",function(t){return a.xAxisScale(t.values[0])}).attr("cy",function(t){return a.yAxisScale(t.values[1]||0)})}var a=this;"grouped"===this.groupType&&0<this.categories.length?this.categories.forEach(function(t,e){return Sq(t.value,e)}):Sq(this.data,0)},ScatterChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g");t.append("line").attr("x1",-this.margin.left).attr("y1",this.margin.top+this.margin.bottom+this.height).attr("x2",this.width+this.margin.left+this.margin.right).attr("y2",this.margin.top+this.margin.bottom+this.height).attr("class","mo-label-line"),t.append("text").attr("x",(this.width-this.margin.left)/2).attr("y",this.margin.top+this.margin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label);var e=t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label");e.append("rect").attr("width","15").attr("height","15").attr("x",0).attr("y",function(t,e){return n.margin.top+n.margin.bottom+n.height+40+25*e}).attr("fill",function(t,e){return m.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return n.margin.top+n.margin.bottom+n.height+52+25*e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){return t.key})},ScatterChart.prototype.refactorGroupedData=function(){var n=[];this.data.forEach(function(e){e.pieces&&0<e.pieces.length&&e.pieces.forEach(function(t){n.push({label:e.label,group:t.label,values:t.values})})}),this.categories=Array.from(f.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],ScatterChart.prototype,"data",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"groupings",void 0),__decorate([e.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"aggregates",void 0),__decorate([e.Prop({type:Object,default:function(){return{top:15,right:0,bottom:80,left:65}}}),__metadata("design:type","function"==typeof(nt="undefined"!=typeof ChartMargin&&ChartMargin)?nt:Object)],ScatterChart.prototype,"margin",void 0),__decorate([e.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],ScatterChart.prototype,"pointRadius",void 0),__decorate([e.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],ScatterChart.prototype,"decimal",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"groupType",void 0),__decorate([e.Prop({type:Array}),__metadata("design:type",Array)],ScatterChart.prototype,"colors",void 0),__decorate([e.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"labelColor",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ScatterChart.prototype,"onDataChanged",null),ScatterChart=__decorate([e.Component({})],ScatterChart)),st=(Ha._withStripped=!0,normalizeComponent({render:Ha,staticRenderFns:[]},function(t){t&&t("data-v-1bd4a6f8_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},lt,void 0,!1,void 0,!1,createInjector,void 0,void 0)),ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUxOTdBMEMwMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUxOTdBMEMxMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTE5N0EwQkUyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTE5N0EwQkYyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4/Y8gIAAAEC0lEQVR42syZS0gVYRTHv3vRHpYtUhdSKQZpCqGQIphFKtSmBxVUUosyRTO1xyqiWvTY9zAxCzcaWpBCEEFFlo/CtDZBPhZFpbiwu+lhckvtf+Q/9DHex+idO3bgz3XuzHznd883833nHF1r7t9QczA3lAXlQZlQMrQCWsLzP6FhaBDqhdqgHmjSPNDg7vKAjiJmCbYSOgYdgFYFuG4htBxaB+3hd1+gO5BEZMiqQ6uAMdAFqBhawO8+QI+hTqgP+gR957loKBFKhXKhrVASdBo6Bd2GzkMeOwD38lfHcoruQlehVwHu8VBvGTUXtIHRl/HK+VnB8fyaK8AzKPDXoTIeP4MqofcqNEvjuPk8rpVx8Sz+8few+7IoqJVw4/ylBTbAKY5RwGiO00drcktNlFVAiVwTtI3TtJlTbLfVcGwPfTUBMsIKYDW0AxrlA96twmfd9DFKn9XBAPdBpdAvaDvUr8JsePb66WtMfCOKhf4AY7RfcCLMkTNDiq+TxgwCMs4X4CUuJU+gOuWwAbKOK4Us8BfNgAnQEUhe9eNq/qyCDEWIYoIOeBSKhJq5KzhlEaYo9nHhjiTTNKDooLZoOmHyKHXJi4FIFZvO3eTnQZxzG1mJJAEfoZcOwclznsNIFZrOd5JFmLLc2pYjG/+UQ3AZPJ4wbwKY5imyiOUJ4HoedMwD3GEAtfi41mDJFMAUbY90FA5qCLBfi6UIYDwPPv8ncDpLvJvJpdKSzVCz7lDhdJZod5ALi7lHdtGZE3AzkgU9TTdbIZeCHDqLdQhuqRFJARzRtjtfqdcE/86wCGlH5BL5OSKAA1oqbrZWDq5DPg0AGcvzIU2rxjIggG94kOvn4gYTZLofSAMuPUQ4naXXzaJasTR0zRHSNjjsvy6yiLUJ4GsW0kl8GVQAyEM+INfaGDlFhiQy9bhZ6zbyZFmQmxt9QL6zEc7ICad9YRucNNZB2bC90H52A2YDGWEXHKY3lQW910giDMAhtiPE2RULY5kh7YicYkEvTPWI3pC5JjF6JVugkllAeu2AQ/RKWNALw1lfRZNHm3+JYrZFyBQb4LK1matC9DyBejO1rI2lmN7kQG0sq0A7JKVmHeBKg3UWqqAHvKGTJUG4LIs+4uiz0krrw8sk4RGL+XZmNXabjPmCPh6KT0TPa7W7JSnWTlZYi6BbXIzTbABL5Vgy5mL62AW4sdkmo7+5cD/n61/ARfkedC1IA3NGH5I7RAXXOQnMV74QTaF2WJv5i6UdUcTFXGS0gDtY7Eua/o33LGP6JtHaqP61gI1HqB46R0gVKqDiQFLpX2YUpNBfzQiXWRxjmMtStQpDE11pO440ws/wDcxn2ZrMQtvIhH/w2kGmc9IU8vlviGD2V4ABANQHM6YP3PIZAAAAAElFTkSuQmCC",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUxOTdBMEJDMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUxOTdBMEJEMkEwQzExRTZCMjUzODM5RjQyNEZFMUQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTE5N0EwQkEyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTE5N0EwQkIyQTBDMTFFNkIyNTM4MzlGNDI0RkUxRDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4IXIjoAAADkklEQVR42syZS0hUYRTHv7loD3sssllIpdRCnaBVDoIZpEJtehBBD3JlWVajPTZFWIssqF3lFDWFK2umNkIRQUVWSmFamyAfi6IacWGz6WEyhfY/9f/qMszjljNz74Efw53Hd/73fPf7vnPOuJpPX1b/YQbwgipQBorBAjCLn38Fw2AI9IFO0AsmYgdqObwrqaOcfxS2EOwD28GiJN+bDuaBZWAT3/sAroELIGzVoVWB+eAE2Amm8b034B7oBv3gHfjMz+aAIuABlWANWAyOgEPgKjgOIukQuJl3PZ9TdAOcA8+S/CZCXjJqLrCC0Zfx9vLVx/ESmivJMyjiW0EDrx+CRvBaTc2WctxqXl+ScfEs/kj0sMezPNBBceO805o0iFMco4bRHKePjmNnAnlWBUrkgmAtp2kVpzjddpFjR+grCJE5VgT6wXowyge8R2XOeuhjlD79qQRuAbvBN7AODKgMG569AfoaE9+I4rZEAvNNd3Agw5GLFSm+DuoZhEh3PIEnuZXcBwGVZYPIAHcK2eBbYgUWgh1Alvp+ZZ/5qKEOUSw0C9wDckGIp4Ithij2c+POpaZfAoVa06Zpt+mToxZRNHRWIknAW/DUAQK7qUU0eQ3TkSMH/6Td6jDNk9QiViUCl/OiSznHtJYyEVhiOiOdYlpLiQgs4MV7BwnUWgoMJpfKlGw6wf4kvoZyuBkxabpTbLaOpAgcMR13TrEivo6IwEFTKu4U01oGReALXlQ6SKDW0mewqFYsDV12K8P566IWsU4R+JyFtNStFQ6IXgW1iKZeg7VuOz9scIBAH1/bcS5P6H1QqrYo2MpugF3T62FBH9WVpBYYZjtCyr6zNkavlZraEL1wbE2ieyWrQb0N0atnQS8amuMVTRHT/EsUy7Mortw0c02IXiRRXRxiyi1tiNugNAviSulLfAYg7nqqzkITuAXcTL+9GdTnpQ83fTZaaX3ICpLq/i6L+Sfqd18w3SZjPqaPO+IT0Yta7W5JG2IDp3sGuAIepOm89nAsGXMmfWyEuDGVoJOVyL5z437E5S8r7BW4Cc6r5A3MWHPxhPBxn5PAfOSCCCb7oZUOa4h3LO2IOm7mgm4Bd7HYlzT9E38zl+mbRGul+tsC1o9Qm6wPilRTFag4kFT6pxgFKfSXMMJWj8dhHql+lYEmujKdONIIP8oVWM2ytZiFts6Ev/C7Q0znpCkU92+IVPZTgAEAL2fkkNJ1cvgAAAAASUVORK5CYII=";function TableChart(){var t=null!==rt&&rt.apply(this,arguments)||this;return t.ready=!1,t.checkedImage=ct,t.uncheckedImage=dt,t}function Sa(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"mo-chart"},[n.ready?a("div",{staticClass:"mo-table"},[a("div",{staticClass:"mo-table-row header-row"},n._l(n.data.headers,function(t,e){return a("div",{key:t.label,staticClass:"mo-table-cell",class:{"mo-table-right-cell":n.isNumber(e)},style:{width:n.getCellWidth(e)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.label)+"\n ")])}),0),n._v(" "),n._l(n.data.rows,function(t,e){return a("div",{key:e,staticClass:"mo-table-row"},n._l(t.cells,function(t,e){return a("div",{key:e,staticClass:"mo-table-cell",class:{"mo-table-right-cell":n.isNumber(e)},style:{width:n.getCellWidth(e)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n.isBoolean(e)?a("img",{staticClass:"mo-table-checkbox-cell",attrs:{src:"1"===t.label||"true"===t.label?n.checkedImage:n.uncheckedImage}}):a("span",[n._v(n._s(t.label))])])}),0)}),n._v(" "),a("div",{staticClass:"mo-table-row total-row"},n._l(n.data.totals,function(t,e){return a("div",{key:e,staticClass:"mo-table-cell",class:{"mo-table-right-cell":n.isNumber(e)},style:{width:n.getCellWidth(e)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.label)+"\n ")])}),0)],2):n._e()])}function Za(t){t.component("MoBarChart",S),t.component("MoBarChartHorizontal",P),t.component("MoPieChart",L),t.component("MoLineChart",N),t.component("MoFunnelChart",U),t.component("MoGaugeChart",tt),t.component("MoMetricChart",ot),t.component("MoScatterChart",st),t.component("MoTableChart",ht)}var pt=(__extends(TableChart,rt=e.Mixins(i)),TableChart.prototype.mounted=function(){this.ready=!0},TableChart.prototype.isNumber=function(t){var e=this.data.headers[t];return e&&("datetime"===e.dataType||"currency"===e.dataType||"date"===e.dataType||"int"===e.dataType||"double"===e.dataType||"percent"===e.dataType||"boolean"===e.dataType)},TableChart.prototype.isBoolean=function(t){var e=this.data.headers[t];return e&&"boolean"===e.dataType},TableChart.prototype.getCellWidth=function(t){var e=this.getWidth(),n=this.data.headers.length,a=e/n;return 0<a.toString().indexOf(".")&&t===n-1?e-(n-1)*Math.floor(a):Math.floor(a)},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(it="undefined"!=typeof TableData&&TableData)?it:Object)],TableChart.prototype,"data",void 0),TableChart=__decorate([e.Component({})],TableChart)),ht=(Sa._withStripped=!0,normalizeComponent({render:Sa,staticRenderFns:[]},function(t){t&&t("data-v-9ec4beee_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-chart {\n position: relative;\n width: 100%;\n height: 100%;\n font: 10px sans-serif;\n text-align: center;\n}\n.mo-chart.x-scroll {\n overflow-x: scroll;\n}\n.mo-piece-active:active {\n opacity: 0.8;\n}\n.mo-inner-arc {\n fill: #000;\n opacity: 0.28;\n}\n.mo-inner-text {\n fill: #fff;\n font-size: 16px;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 18px;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 18px;\n}\n.mo-axis path {\n fill: none;\n stroke-width: 0;\n}\n.mo-space-line {\n stroke: #e4e7ed;\n stroke-width: 0.5px;\n}\n.mo-space-bold-line {\n stroke: #e4e5e9;\n stroke-width: 1px;\n}\n.mo-axis-point {\n fill: #abb4c7;\n}\n.mo-data-line {\n fill: none;\n stroke: #b8b8b8;\n stroke-width: 1.5px;\n}\n.mo-data-text {\n font-size: 14px;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 14px;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-axis-div-label {\n width: 100%;\n height: 20px;\n text-align: center;\n color: #3e4759;\n font-size: 14px;\n clear: both;\n}\n.mo-legend-text {\n font-size: 14px;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 16px;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 16px;\n fill: #fff;\n}\n.mo-gauge-back-arc {\n stroke-width: 6;\n stroke-linejoin: round;\n stroke: #f9f9f9;\n}\n.mo-gauge-value {\n font-size: 40px;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-gauge-value-arc {\n stroke-width: 6;\n stroke: url(#MoGaugeGradient);\n stroke-linejoin: round;\n}\n.mo-gauge-inner-arc {\n fill: #6e71ca;\n}\n.mo-gauge-tick {\n stroke: #323233;\n stroke-width: 0.5;\n}\n.mo-gauge-pointer {\n fill: #323233;\n}\n\n/* line */\n.mo-line-area {\n fill: url(#MoLineAreaGradient);\n stroke-width: 0;\n opacity: 0.6;\n}\n.mo-line-point {\n fill: #00A383;\n stroke: #fff;\n stroke-width: 1px;\n}\n\n/* rotate */\n.mo-tip-container {\n width: 100%;\n height: 40px;\n line-height: 40px;\n border-radius: 18px;\n border: 1px solid #c5c7c9;\n margin: -5px 0 10px 0;\n}\n.mo-tip-pointer {\n position: relative;\n top: -40px;\n width: 100%;\n}\n.mo-triangle-mark {\n position: relative;\n top: 22px;\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid white;\n}\n.mo-triangle {\n margin-right: auto;\n margin-left: auto;\n height: 20px;\n width: 20px;\n border: 10px solid transparent;\n border-bottom: 10px solid #c5c7c9;\n}\n.mo-tip-content {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #3e4759;\n}\n.mo-tip-content:before {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #c5c7c9;\n position: absolute;\n top: -20px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content:after {\n width: 0px;\n height: 0px;\n border: 10px transparent solid;\n border-bottom-color: #fff;\n position: absolute;\n top: -18px;\n left: calc( 50% - 10px );\n content: "";\n}\n.mo-tip-content .left-nav {\n width: 15%;\n float: left;\n}\n.mo-tip-content .left-nav img {\n -webkit-transform: rotate(180deg);\n -moz-transform: rotate(180deg);\n transform: rotate(180deg);\n margin-top: 10px;\n}\n.mo-tip-content .right-nav {\n width: 15%;\n float: right;\n}\n.mo-tip-content .right-nav img {\n margin-top: 10px;\n}\n.mo-tip-content .tip {\n width: 70%;\n max-width: 70%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n float: left;\n}\n.mo-tip-content .tip .label {\n margin-left: 10px;\n}\n.mo-metric {\n width: 100%;\n font-size: 16px;\n color: #323233;\n position: relative;\n}\n.mo-metric:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:before {\n transform-origin: 33% 0%;\n}\n.mo-metric:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-metric:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-metric:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-metric:after {\n transform-origin: 33% 66%;\n}\n.mo-metric .mo-metric-inner {\n display: table;\n table-layout: fixed;\n width: 100%;\n height: 40px;\n position: relative;\n}\n.mo-metric .mo-metric-inner:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:before {\n transform-origin: 0% 33%;\n}\n.mo-metric .mo-metric-inner:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #c8cacc;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-metric .mo-metric-inner:after {\n transform-origin: 66% 33%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n display: table-cell;\n vertical-align: middle;\n}\n.mo-metric .mo-metric-label {\n text-align: left;\n padding-left: 5px;\n max-width: 80%;\n width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mo-metric .mo-metric-value {\n text-align: right;\n padding-right: 5px;\n max-width: 20%;\n width: 20%;\n}\n.mo-table {\n width: 100%;\n}\n.mo-table .mo-table-row {\n color: #323233;\n position: relative;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.header-row {\n background-color: #00A383;\n color: #fff;\n font-weight: 700;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell {\n position: relative;\n}\n.mo-table .mo-table-row.header-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row.header-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #c8cacc;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell {\n display: inline-block;\n font-size: 16px;\n height: 44px;\n line-height: 44px;\n text-align: left;\n padding: 0 10px;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-table .mo-table-row .mo-table-cell .mo-table-cell-check, .mo-table .mo-table-row .mo-table-cell .mo-table-cell-uncheck {\n font-size: 22px;\n position: relative;\n top: 10px;\n}\n.mo-table .mo-table-row .mo-table-right-cell {\n text-align: right;\n}\n.mo-table .mo-table-row .mo-table-checkbox-cell {\n width: 18px;\n margin-top: 13px;\n}\n.mo-label-line {\n stroke: #c8cacc;\n stroke-width: 0.5px;\n}\n.mo-label-title {\n font-size: 14px;\n fill: #3e4759;\n text-anchor: middle;\n}\n.mo-cover {\n width: calc( 100% + 20px );\n}\n.mo-gauge-inner-bg-arc {\n fill: #fff;\n}\n@media (prefers-color-scheme: dark) {\n.mo-axis-label,\n.mo-axis-text,\n.mo-axis-number,\n.mo-axis-div-label,\n.mo-summary-label,\n.mo-legend-text,\n.mo-label-title {\n fill: #f2f2f7;\n}\n.mo-table .mo-table-row {\n color: #f2f2f7;\n}\n.mo-table .mo-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:after {\n transform-origin: 33% 66%;\n}\n.mo-table .mo-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row:before {\n transform-origin: 0% 33%;\n}\n.mo-table .mo-table-row.total-row {\n background-color: #2c2c2e;\n color: #f2f2f7;\n font-weight: 700;\n}\n.mo-table .mo-table-row .mo-table-cell:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .mo-table .mo-table-row .mo-table-cell:after {\n transform-origin: 66% 33%;\n}\n.mo-tip-content .tip .label {\n color: #f2f2f7;\n}\n.mo-metric .mo-metric-label {\n color: #6e6e6e;\n}\n.mo-metric .mo-metric-value {\n color: #f2f2f7;\n}\n.mo-axis-div-label {\n color: #f2f2f7;\n}\n.mo-gauge-value {\n fill: #f2f2f7;\n}\n.mo-gauge-max-value {\n fill: #f2f2f7;\n}\n.mo-gauge-tick {\n stroke: #fff;\n}\n.mo-gauge-pointer {\n fill: #fff;\n}\n.mo-gauge-inner-bg-arc {\n fill: #1c1c1e;\n}\n.mo-gauge-back-arc {\n stroke: #2c2c2e;\n}\n}',map:void 0,media:void 0})},pt,void 0,!1,void 0,!1,createInjector,void 0,void 0)),mt=(DataConvertor.prototype.refactorPieces=function(t){var o=this,r=[];if(t.forEach(function(t){var e;t.pieces&&0<(null===(e=t.pieces)||void 0===e?void 0:e.length)&&t.pieces.forEach(function(t){r.indexOf(t.label)<0&&r.push(t.label)})}),0===r.length)return t;var e=[];return t.forEach(function(n){var t=JSON.parse(JSON.stringify(n)),a=[];r.forEach(function(t){if(n.pieces&&0<n.pieces.length){var e=o.getNewPiece(n.pieces,t);a.push(e)}}),t.pieces=a,e.push(t)}),e},DataConvertor.prototype.getNewPiece=function(t,e){var n=t.findIndex(function(t){return t.label===e});return 0<=n?t[n]:{label:e,pieces:[],values:[0]}},DataConvertor);function DataConvertor(){this.metadata=null,this.data=null,this.languageLocaleKey=""}var gt,ft=(__extends(DashboardDataConvertor,gt=mt),DashboardDataConvertor.prototype.init=function(t,e){this.metadata=this.refactorMetadata(t,e),this.data=this.refactorData(t,e)},DashboardDataConvertor.prototype.refactorMetadata=function(t,e){var r={},n=e.reportResult||{},a=n.reportMetadata,i=n.reportExtendedMetadata,l=n.factMap,o=t.properties;if(a&&(r.reportId=a.id,r.reportName=a.name),r.header=t.header,r.footer=t.footer,r.title=t.title,o){if(r.aggregateColumns=[],r.groupingColumns=[],i){var s=o.aggregates,c=o.groupings;s&&s.forEach(function(t,e){var n=i.aggregateColumnInfo[t.name];if(n){var a="";"currency"===n.dataType&&(a=l["T!T"]?l["T!T"].aggregates[e].label.slice(0,1):"");var o={label:n.label,dataType:n.dataType,unitSymbol:a};r.aggregateColumns.push(o)}}),c&&c.forEach(function(t){var e=i.groupingColumnInfo[t.name];if(e){var n={label:e.label,dataType:e.dataType};r.groupingColumns.push(n)}})}var d=o.visualizationType,p=o.visualizationProperties;r.chartType=d;var h=p.showValues,m=p.showPercentages,g=p.showTotal,f=p.groupByType,u=p.aggregateVisualizationInfos,b=void 0===u?[]:u;if(r.showValues=h,r.showPercentages=m,r.showTotal=g,r.groupByType=f,1<b.length){var x=b[0],v=b[1];r.plotOnSecondAxis=x.axis!==v.axis,r.plotAsLineChart="Line"===v.visualizationType}}return r},DashboardDataConvertor.prototype.refactorData=function(t,e){var n,a=e.reportResult,o=t.properties;if(a&&o){var r=a.groupingsDown.groupings,i=a.factMap,l=a.reportExtendedMetadata,s=a.reportMetadata;switch(o.visualizationType){case"Table":case"FlexTable":n=this.refactorTableData({groupings:r,factMap:i,properties:o,reportExtendedMetadata:l,reportMetadata:s});break;case"Gauge":n=this.refactorGaugeData({factMap:i,properties:o,reportExtendedMetadata:l});break;case"Metric":n=this.refactorMetricData({factMap:i,properties:o});break;default:n=this.refactorCommonData({groupings:r,factMap:i,properties:o})}}return n},DashboardDataConvertor.prototype.refactorTableData=function(t){var e=t.groupings,l=t.factMap,n=t.properties,a=t.reportExtendedMetadata,o=t.reportMetadata,s={headers:[],rows:[],totals:[]},r=n.visualizationProperties,i=n.sort,c=n.groupings,d=n.visualizationType,p=r.tableColumns,h=a.groupingColumnInfo,m=a.aggregateColumnInfo,g=a.detailColumnInfo,f=-1,u="",b=c.length,x=[],v=[],y=[],w=[];function cu(t,e){var n=t.cells[f].value,a=e.cells[f].value,o=t.cells[f].label.toLowerCase(),r=e.cells[f].label.toLowerCase();return"date"!==u&&"datetime"!==u||(n=n?new Date(n):n,a=a?new Date(a):a,o=o&&"-"!==o?new Date(o):new Date("1/1/1970 00:00 am"),r=r&&"-"!==r?new Date(r):new Date("1/1/1970 00:00 am")),"desc"===i.sortOrder?a?n<a?1:-1:r.toString().toLowerCase()>o.toString().toLowerCase()?1:-1:n?a<n?1:-1:r<o?1:-1}return s.headers=[],p.forEach(function(t,e){i&&i.column===t.column&&(f=e),t.showTotal&&w.push(e);var n={};"grouping"===t.type&&h[t.column]?(n=h[t.column],0===h[t.column].groupingLevel?x.push(e):1===h[t.column].groupingLevel&&v.push(e)):"aggregate"===t.type&&m[t.column]?(n=m[t.column],y.push(e)):g[t.column]&&(n=g[t.column]),s.headers.push(n)}),s.rows=[],0<e.length?e.forEach(function(t){var r;0<t.groupings.length&&1<b?(r=t).groupings.forEach(function(e){var n={cells:[]};x.forEach(function(t){n.cells[t]={label:r.label}}),v.forEach(function(t){n.cells[t]={label:e.label}});var a=l[e.key+"!T"].aggregates,o=0;y.forEach(function(t){n.cells[t]={label:a[o].label,value:a[o].value},o+=1}),s.rows.push(n)}):function(e){var n={cells:[]};0<x.length?x.forEach(function(t){n.cells[t]={label:e.label}}):v.forEach(function(t){n.cells[t]={label:e.label}});var a=l[e.key+"!T"].aggregates,o=0;y.forEach(function(t){n.cells[t]={label:a[o].label,value:a[o].value},o+=1}),s.rows.push(n)}(t)}):l["T!T"]&&l["T!T"].rows&&l["T!T"].rows.forEach(function(t){var e={cells:[]};t.dataCells.forEach(function(t){e.cells.push({label:t.label})}),s.rows.push(e)}),i&&(h[i.column]?u=h[i.column].dataType:m[i.column]?u=m[i.column].dataType:g[i.column]&&(u=g[i.column].dataType),0<x.indexOf(f)?s.rows.sort(function(t,e){if(t.cells[f].label===e.cells[f].label&&0<v.length){var n=t.cells[v[0]].label,a=e.cells[v[0]].label;return n.toLowerCase()>a.toLowerCase()?1:-1}return cu(t,e)}):0<v.indexOf(f)?s.rows.sort(function(t,e){if(t.cells[f].label!==e.cells[f].label)return cu(t,e);var n=t.cells[0].label,a=e.cells[0].label;return n.toLowerCase()>a.toLowerCase()?1:-1}):s.rows.sort(function(t,e){if(t.cells[f].value===e.cells[f].value&&0<x.length){if(t.cells[0].label===e.cells[0].label&&0<v.length){var n=t.cells[v[0]].label,a=e.cells[v[0]].label;return n.toLowerCase()>a.toLowerCase()?1:-1}return t.cells[0].label.toLowerCase()>e.cells[0].label.toLowerCase()?1:-1}return cu(t,e)})),n.maxRows&&(s.rows=s.rows.slice(0,n.maxRows)),function(){var n;if(s.totals=[],"FlexTable"===d){var r=o.aggregates,i=l["T!T"].aggregates;p.forEach(function(t,e){if(0===e)s.totals[e]={label:"Total"};else{var n=t.column,a=[n,"s!"+n,"a!"+n,"m!"+n,"x!"+n],o=r.findIndex(function(t){return a.includes(t)});s.totals[e]=0<=o?{label:i[o].label}:{label:"-"}}})}else{var a=(n={},s.rows.forEach(function(t){t.cells.forEach(function(t,e){p[e].showTotal&&(void 0===n[e]&&(n[e]=0),n[e]+=t.value)})}),n);0<w.length&&p.forEach(function(t,e){if(0===e)s.totals[0]={label:"Total"};else if(a[e]){var n=a[e];n=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!1);var a=t;n&&(a=100*t),0<t.toString().indexOf(".")&&(a=Number(a.toFixed(e)));var o=a.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")});return n?o+"%":o}(n,t.scale,t.isPercent),s.totals[e]={label:n}}else s.totals[e]={label:"-"}})}}(),s},DashboardDataConvertor.prototype.refactorGaugeData=function(t){var e=t.factMap,n=t.properties,a={value:e["T!T"]?e["T!T"].aggregates[0].value:"",minValue:0,maxValue:0},o=n.visualizationProperties.breakPoints[0].breaks,r=[];return o.forEach(function(t){t.upperBound&&!t.lowerBound&&r.indexOf(0)<0&&r.push(0),t.lowerBound&&r.indexOf(t.lowerBound)<0&&r.push(t.lowerBound),t.upperBound&&r.indexOf(t.upperBound)<0&&r.push(t.upperBound)}),0<r.length?(a.minValue=Math.min.apply(null,r),a.maxValue=Math.max.apply(null,r)):(a.minValue=0,a.maxValue=3),a.value===a.minValue&&a.value===a.maxValue&&(a.maxValue+=1),a},DashboardDataConvertor.prototype.refactorMetricData=function(t){var e=t.properties,n=t.factMap;return{label:e.visualizationProperties.metricLabel,value:n["T!T"]?n["T!T"].aggregates[0].value:0}},DashboardDataConvertor.prototype.refactorCommonData=function(t){var e=this,n=t.groupings,a=t.factMap,o=t.properties,r=[];return(o.maxRows?n.slice(0,o.maxRows):n).forEach(function(t){r.push(e.recursiveGrouping(t,a))}),r=this.refactorPieces(r)},DashboardDataConvertor.prototype.recursiveGrouping=function(t,e){var n=this,a={label:t.label,pieces:[],values:e[t.key+"!T"].aggregates.map(function(t){return t.value})},o=t.groupings;return(void 0===o?[]:o).forEach(function(t){a.pieces.push(n.recursiveGrouping(t,e))}),a},DashboardDataConvertor);function DashboardDataConvertor(t,e){var n=gt.call(this)||this;return n.init(t,e),n}var ut,bt,xt=(__extends(ReportDataConvertor,ut=mt),ReportDataConvertor.prototype.init=function(t){this.metadata=this.refactorMetadata(t),this.data=this.refactorData(t),this.tableData=this.refactorTableData(t)},ReportDataConvertor.prototype.refactorMetadata=function(t){var e=t.reportMetadata,n=t.reportExtendedMetadata,i=t.factMap,a=n.groupingColumnInfo,l=n.aggregateColumnInfo,o=e.chart,s=e.aggregates;if(!o)return{groupingColumns:[],aggregateColumn:[],chartType:"",showPercentages:!1,showTotal:!1,groupByType:""};var r=o.groupings,c=o.summaries,d=o.summaryAxisLocations,p=o.summaryVisualizationTypes,h=o.chartType,m=o.showChartPercentages,g=o.showChartTotal;return{groupingColumns:r.map(function(t){var e=a[t];return{label:e.label,dataType:e.dataType}}),aggregateColumns:c.map(function(t){var e=s.indexOf(t),n=l[t],a=n.label,o=n.dataType,r="";return"currency"===o&&(r=i["T!T"]?i["T!T"].aggregates[e].label.slice(0,1):""),{label:a,dataType:o,unitSymbol:r}}),chartType:h,showPercentages:m,showTotal:g,groupByType:this.getGroupType(o.chartType),plotOnSecondAxis:1<d.length&&d[0]!==d[1],plotAsLineChart:1<p.length&&"Line"===p[1]}},ReportDataConvertor.prototype.refactorData=function(t){var a=t.factMap,e=t.reportMetadata,n=t.groupingsDown,o=e.chart,r=e.aggregates,i=e.groupingsDown,l=n.groupings,s=[];if(o){var c=o.groupings,d=o.summaries,p=d.map(function(t){return r.indexOf(t)}),h=this.getYIndex(i,c),m=this.getGroupedIndex(i,c),g=0,f={},u="",b="",x=function(n){g===m&&(b=n.label),g===h&&(u=n.label,f[u]||(f[u]=h===m?[]:{})),h<=m&&g===m||m<h&&g===h?h===m?(f[u]=f[u]||[],p.forEach(function(t,e){f[u][e]=a[n.key+"!T"].aggregates[t].value})):h<m?(f[u][n.label]=f[u][n.label]||[],p.forEach(function(t,e){f[u][n.label][e]=a[n.key+"!T"].aggregates[t].value})):m<h&&(f[u][b]=f[u][b]||[],p.forEach(function(t,e){f[u][b][e]=a[n.key+"!T"].aggregates[t].value})):(g+=1,n.groupings.forEach(function(t){x(t)}),--g)};l.forEach(function(t){g+=1,x(t),--g});var v=Object.keys(f);v.forEach(function(e){if(h===m)s.push({label:e,values:f[e]});else{var a={label:e,pieces:[],values:[]};Object.keys(f[e]).forEach(function(t){a.pieces.push({label:t,values:f[e][t]})}),a.values=[],(a.pieces||[]).forEach(function(n){d.forEach(function(t,e){a.values[e]=a.values[e]||0,a.values[e]+=n.values[e]||0})}),s.push(a)}}),s=this.refactorPieces(s)}return s},ReportDataConvertor.prototype.getGroupType=function(t){return 0<=t.indexOf(" Cumulative Grouped")?"cumulativeGrouped":0<=t.indexOf(" Cumulative")?"cumulative":0<=t.indexOf(" Grouped")?"grouped":0<=t.indexOf(" Stacked to 100")?"stacked100":0<=t.indexOf(" Stacked")?"stacked":""},ReportDataConvertor.prototype.getYIndex=function(t,e){var n=t.findIndex(function(t){return t.name===e[0]});return 0<=n?n+1:1},ReportDataConvertor.prototype.getGroupedIndex=function(t,e){var n=2===e.length?e[1]:e[0],a=t.findIndex(function(t){return t.name===n});return 0<=a?a+1:1},ReportDataConvertor.prototype.refactorTableData=function(t){var e=t.reportMetadata.reportFormat;return"MATRIX"===e?this.convertMatrix(t):"SUMMARY"===e?this.convertSummary(t):this.convertTabular(t)},ReportDataConvertor.prototype.convertTabular=function(t){var e=t.reportMetadata,n=t.reportExtendedMetadata,a=t.factMap,o=t.hasDetailRows,r=e.reportFormat,i=n.detailColumnInfo,l={format:r,showHeader:o,headers:Object.keys(i).map(function(t){return i[t]}),rows:[]},s=a["T!T"],c=s.rows,d=s.aggregates;o&&(l.rows=c.map(function(t){return{id:z.v4(),type:"data",cells:t.dataCells}}));var p=d.findIndex(function(t){return"RowCount"===t}),h=0;return-1<p?h=d[p].label:1===d.length?h=d[0].label:c&&(h=c.length),l.rows.push({id:z.v4(),type:"grand-total",label:"Grand Totals",grand:!0,background:this.getBackground(3),recordCount:h}),l},ReportDataConvertor.prototype.convertSummary=function(t){var e,x=this,n=t.reportMetadata,a=t.reportExtendedMetadata,o=t.groupingsDown,v=t.factMap,r=n.reportFormat,i=n.groupingsDown,y=n.aggregates,w=n.detailColumns,l=n.hasRecordCount,_=n.hasDetailRows,C=n.showSubtotals,s=n.showGrandTotal,c=a.groupingColumnInfo,d=a.detailColumnInfo,p=o.groupings,k={format:r,showHeader:!0,headers:[],rows:[],hasRecordCount:l},S=0,A=i.map(function(t){return c[t.name].label}),h=y.map(function(t){var e=t.split("!");return e[1]||e[0]});w.forEach(function(t){(_||h.includes(t))&&k.headers.push(d[t])});var T=function(t){var e,n,a=t.key,o=t.label,r=t.groupings,i=t.value,l=a.split("_").length-1,s=x.getBackground(l),c={id:z.v4(),type:"group",level:l,background:s,margin:5*l,label:o,value:i,fieldLabel:A[l],recordCount:0},d=v[a+"!T"],p=d.aggregates,h=d.rows,m=y.findIndex(function(t){return"RowCount"===t});if(-1<m)c.recordCount=p[m].label;else if(h)if((c.recordCount=0)<r.length)r.forEach(function(t){var e=t.groupings;if(0<e.length)e.forEach(function(t){var e=v[t.key+"!T"].rows.length;c.recordCount+=e});else{var n=v[t.key+"!T"].rows.length;c.recordCount+=n,S+=n}});else{var g=h.length;c.recordCount=g,S+=g}if(k.rows.push(c),0===r.length){if(_){var f=h.map(function(t){return{id:z.v4(),type:"data",cells:t.dataCells}});(e=k.rows).push.apply(e,f)}}else r.forEach(function(t){T(t)});if(C){var u={id:z.v4(),type:"subtotals",label:x.languageLocaleKey&&x.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",grand:!1,background:x.getBackground(3)};if(k.rows.push(u),0<y.length){var b=x.getSummaryAggregateRows({aggregates:y,hasDetailRows:_,detailColumns:w,rowAggregates:p,background:u.background});(n=k.rows).push.apply(n,b)}}};p.forEach(function(t){T(t)});var m=v["T!T"].aggregates,g=y.findIndex(function(t){return"RowCount"===t}),f=0;if(f=-1<g?m[g].label:S,s){var u={id:z.v4(),type:"grand-total",label:this.languageLocaleKey&&this.languageLocaleKey.startsWith("zh")?"总计":"Grand Total",grand:!0,background:this.getBackground(3),recordCount:f};if(k.rows.push(u),0<y.length){var b=this.getSummaryAggregateRows({aggregates:y,hasDetailRows:_,detailColumns:w,rowAggregates:m,background:u.background,isGrand:!0});(e=k.rows).push.apply(e,b)}}return k},ReportDataConvertor.prototype.convertMatrix=function(t){function az(t,e,n){for(var a={id:z.v4(),cells:[]},o=0;o<k;o+=1)a.cells.push({value:""});e?a.cells.push({label:g[e.name].label,value:g[e.name].label}):a.cells.push({label:"",value:""});for(var r=0;r<n;r+=1)a.cells.push({value:""});for(var i=0;i<t.dataCells.length;i+=1){if(!e||e.key!==i){a.cells.push({label:1,value:1,type:"int"});break}a.cells.push(F({type:g[e.name].dataType},t.dataCells[i]))}for(var l=T-(k+1)-n-A.length-1,s=0;s<l;s+=1)a.cells.push({value:""});return A.forEach(function(n){t.dataCells.forEach(function(t,e){n.key===e&&a.cells.push(F({type:g[n.name].dataType},t))})}),a}var e,i=this,n=t.reportMetadata,a=t.reportExtendedMetadata,o=t.groupingsAcross,r=t.groupingsDown,u=t.factMap,l=n.groupingsAcross,s=n.groupingsDown,b=n.aggregates,c=n.detailColumns,d=n.reportFormat,x=n.hasRecordCount,v=n.hasDetailRows,p=n.showSubtotals,h=n.showGrandTotal,m=a.groupingColumnInfo,y=a.aggregateColumnInfo,g=a.detailColumnInfo,w=o.groupings,f=r.groupings,_={showHeader:!0,format:d,headers:[],rows:[]},C=l.length,k=s.length,S=[],A=[],T=1<b.length||1<C?k+1:k;if(v&&function(){for(var t=0;t<c.length;t+=1){var e=c[t];0<b[0].indexOf(e)?S.push({key:t,name:e}):A.push({key:t,name:e})}}(),_.headers.push(function(){var t,o={cells:[]},e=1<b.length?"":y[b[0]].label;if(o.cells.push({value:e,colspan:1===C&&1<b.length?k+1:k}),l.forEach(function(t){0===m[t.name].groupingLevel&&o.cells.push({value:m[t.name].label,colspan:1===C?w.length:0,type:1===C?"group-value":""})}),w.forEach(function(t){var e=0,n=t.label,a=t.groupings;1===C||0===a.length?T+=1:(0<a.length&&(e=a.length+1,T+=e),o.cells.push({value:n,colspan:e,type:"group-value"}))}),o.cells.push({value:"Grand Total",type:"double"}),T+=1,v){T+=A.length;var n=A.map(function(){return{value:""}});(t=o.cells).push.apply(t,n)}return o}()),_.headers.push(function(){var t,e,n,a={cells:[]},o=s.map(function(t){return{value:m[t.name].label}});if((t=a.cells).push.apply(t,o),1<C)l.forEach(function(t){1===m[t.name].groupingLevel&&a.cells.push({value:m[t.name].label})}),w.forEach(function(t){t.groupings.forEach(function(t){a.cells.push({value:t.label,type:"group-value"})}),a.cells.push({value:"Subtotal",type:"double"})});else{1<b.length&&(1<k||1===k&&1===C)&&a.cells.push({value:""});var r=w.map(function(t){return{value:t.label,type:"group-value"}});(e=a.cells).push.apply(e,r)}if(a.cells.push({value:""}),v){var i=A.map(function(t){return{value:g[t.name].label,type:g[t.name].dataType}});(n=a.cells).push.apply(n,i)}return a}()),_.columnLength=T,f.forEach(function(o,f){var t,e;if(1<k)o.groupings.forEach(function(t,m){var e,n,a=[],g=[];b.forEach(function(d,p){if("RowCount"!==d||x){var h={id:z.v4(),cells:[]};0===m&&0===p?h.cells.push({label:o.label,value:o.label}):h.cells.push({value:""}),0===p?h.cells.push({label:t.label,value:t.label}):h.cells.push({value:""}),(1<b.length||1<C)&&h.cells.push(y[d]),w.forEach(function(s,c){if(1<C)s.groupings.forEach(function(t,e){var n=[f+"_"+m,c+"_"+e].join("!"),a=u[n],o=a.aggregates,r=a.rows,i=o[p];if(i.type=y[d].dataType,h.cells.push(i),v){var l=(s.groupings.length+1)*c+e;r.forEach(function(e){0<S.length?g.push.apply(g,S.map(function(t){return az(e,t,l)})):g.push(az(e,null,l))})}});else if(v){var t=u[f+"_"+m+"!"+c].rows,a=c;t.forEach(function(n){if(0<S.length)S.forEach(function(t){var e=az(n,t,a);g.push(e)});else{var t=az(n,null,a);g.push(t)}})}h.cells.push(F({type:y[d].dataType},u[f+"_"+m+"!"+c].aggregates[p]))}),h.cells.push(F({type:y[d].dataType},u[f+"_"+m+"!T"].aggregates[p])),v&&A.forEach(function(){h.cells.push({value:""})}),a.push(h)}}),(e=_.rows).push.apply(e,a),(n=_.rows).push.apply(n,g)}),p&&b.forEach(function(t,o){if("RowCount"!==t||x){var r={id:z.v4(),cells:[]};r.cells.push({value:""}),0===o?r.cells.push({label:i.languageLocaleKey&&i.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",value:"Subtotal",type:"double"}):r.cells.push({value:""}),(1<b.length||1<C)&&r.cells.push({label:y[t].label,value:y[t].label}),w.forEach(function(t,a){t.groupings.forEach(function(t,e){var n=[f,a+"_"+e].join("!");r.cells.push(F({type:"double"},u[n].aggregates[o]))});var e=f+"!"+a;r.cells.push(F({type:"double"},u[e].aggregates[o]))});var e=f+"!T";r.cells.push(F({type:"double"},u[e].aggregates[o])),A.forEach(function(){r.cells.push({value:""})}),_.rows.push(r)}});else{var n=[],h=[];b.forEach(function(c,d){if("RowCount"!==c||x){var p={id:z.v4(),cells:[]};0===d?p.cells.push({label:o.label,value:o.value}):p.cells.push({value:""}),(1<b.length||1<C)&&p.cells.push({label:y[c].label,value:y[c].label,type:y[c].dataType}),w.forEach(function(l,s){if(1<C)l.groupings.forEach(function(t,e){var n=[f,s+"_"+e].join("!"),a=u[n],o=a.rows,r=a.aggregates;if(p.cells.push(F({type:y[c].dataType},r[d])),v){var i=(l.groupings.length+1)*s+e;o.forEach(function(n){if(0<S.length)S.forEach(function(t){var e=az(n,t,i);h.push(e)});else{var t=az(n,null,i);h.push(t)}})}});else if(v){var t=u[f+"!"+s].rows,a=s;t.forEach(function(n){if(0<S.length)S.forEach(function(t){var e=az(n,t,a);h.push(e)});else{var t=az(n,null,a);h.push(t)}})}p.cells.push(F({type:y[c].dataType},u[f+"!"+s].aggregates[d]))}),p.cells.push(F({type:y[c].dataType},u[f+"!T"].aggregates[d])),v&&A.forEach(function(){p.cells.push({value:""})}),x&&n.push(p)}}),(t=_.rows).push.apply(t,n),(e=_.rows).push.apply(e,h)}}),h){var M=[];b.forEach(function(a,o){if("RowCount"!==a||x){var r={id:z.v4(),cells:[]};0===o?r.cells.push({label:i.languageLocaleKey&&i.languageLocaleKey.startsWith("zh")?"总计":"Grand Total",value:"Grand Total",type:"double"}):r.cells.push({value:""}),1<k&&r.cells.push({value:""}),(1<b.length||1<C)&&r.cells.push({label:y[a].label,value:y[a].label}),w.forEach(function(t,n){1<C&&t.groupings.forEach(function(t,e){r.cells.push(F({type:y[a].dataType},u["T!"+n+"_"+e].aggregates[o]))}),r.cells.push(F({type:y[a].dataType},u["T!"+n].aggregates[o]))}),r.cells.push(F({type:y[a].dataType},u["T!T"].aggregates[o])),A.forEach(function(){r.cells.push({value:""})}),M.push(r)}}),(e=_.rows).push.apply(e,M)}return _},ReportDataConvertor.prototype.getSummaryAggregateRows=function(t){var s=t.aggregates,e=t.hasDetailRows,n=t.detailColumns,c=t.rowAggregates,a=t.background,o=t.isGrand,r=void 0!==o&&o,i=[],d={},p={s:"",m:"min",mx:"max",a:"avg"};s.forEach(function(t){var e=t.split("!"),n=e[e.length-1];d[n]=d[n]||[],d[n].push(t)});var l=0;Object.keys(d).forEach(function(t){d[t]&&d[t].length>l&&(l=d[t].length)});for(var h=function(l){var t={id:z.v4(),type:"group-aggregate",grand:r,background:a,cells:[]};n.forEach(function(r){if(e||d[r]){var i={label:"",value:""};Object.keys(d).forEach(function(e){if(r===e){var t=s.findIndex(function(t){return t===d[e][l]});if(0<=t){var n=s[t].split("!")[0],a=p[n],o=c[t].label;i.label=a?a+" "+o:o,i.value=c[t].value}}}),t.cells.push(i)}}),i.push(t)},m=0;m<l;m+=1)h(m);return i},ReportDataConvertor.prototype.getBackground=function(t){return"rgb("+(237-10*t)+", "+(241-10*t)+", "+(247-10*t)+")"},ReportDataConvertor);function ReportDataConvertor(t,e){var n=ut.call(this)||this;return n.tableData={headers:[],rows:[],showHeader:!0,format:""},n.languageLocaleKey=e,n.init(t),n}function SFBarChart(){return null!==bt&&bt.apply(this,arguments)||this}function db(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("bar-chart",{attrs:{"x-axis-mode":"vertical",data:t.data,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns,"group-type":t.metadata.groupByType,"has-line-chart":t.metadata.plotAsLineChart,"has-second-axis":t.metadata.plotOnSecondAxis,"second-y-index":1,decimal:2}}):t._e()}var vt,yt=(__extends(SFBarChart,bt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFBarChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFBarChart.prototype,"metadata",void 0),SFBarChart=__decorate([e.Component({components:{BarChart:S}})],SFBarChart)),wt=(db._withStripped=!0,normalizeComponent({render:db,staticRenderFns:[]},void 0,yt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFFunnelChart(){return null!==vt&&vt.apply(this,arguments)||this}function mb(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("funnel-chart",{attrs:{data:t.data,decimal:2,"show-percentage":t.metadata.showPercentages,"show-value":t.metadata.showValues,"group-by":t.metadata.groupingColumns[0],aggregate:t.metadata.aggregateColumns[0]}}):t._e()}var _t,Ct,kt=(__extends(SFFunnelChart,vt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFFunnelChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFFunnelChart.prototype,"metadata",void 0),SFFunnelChart=__decorate([e.Component({components:{FunnelChart:U}})],SFFunnelChart)),St=(mb._withStripped=!0,normalizeComponent({render:mb,staticRenderFns:[]},void 0,kt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFGaugeChart(){return null!==_t&&_t.apply(this,arguments)||this}function vb(){var t=this,e=t.$createElement,n=t._self._c||e;return t.data.isEmpty?t._e():n("gauge-chart",{attrs:{data:t.data,decimal:2,aggregate:t.metadata.aggregateColumns[0]}})}var At,Tt=(__extends(SFGaugeChart,_t=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Ct="undefined"!=typeof GaugeData&&GaugeData)?Ct:Object)],SFGaugeChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGaugeChart.prototype,"metadata",void 0),SFGaugeChart=__decorate([e.Component({components:{GaugeChart:tt}})],SFGaugeChart)),Mt=(vb._withStripped=!0,normalizeComponent({render:vb,staticRenderFns:[]},void 0,Tt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFHorizontalBarChart(){return null!==At&&At.apply(this,arguments)||this}function Eb(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("bar-chart-horizontal",{attrs:{data:t.data,"x-axis-mode":"vertical",decimal:2,"value-position":"inner","bar-height":t.barHeight,"bar-padding":t.barPadding,"group-type":t.metadata.groupByType,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns}}):t._e()}var zt,Ft=(__extends(SFHorizontalBarChart,At=e.Vue),Object.defineProperty(SFHorizontalBarChart.prototype,"isGrouped",{get:function(){return 0<this.data.length&&this.metadata.groupByType&&"none"!==this.metadata.groupByType&&!!this.data[0].pieces&&0<this.data[0].pieces.length},enumerable:!0,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barHeight",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?13:23},enumerable:!0,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barPadding",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?20:15},enumerable:!0,configurable:!0}),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFHorizontalBarChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFHorizontalBarChart.prototype,"metadata",void 0),SFHorizontalBarChart=__decorate([e.Component({components:{BarChartHorizontal:P}})],SFHorizontalBarChart)),Rt=(Eb._withStripped=!0,normalizeComponent({render:Eb,staticRenderFns:[]},void 0,Ft,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFLineChart(){return null!==zt&&zt.apply(this,arguments)||this}function Nb(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("line-chart",{attrs:{data:t.data,"group-type":t.metadata.groupByType,"show-value":t.metadata.showValues,decimal:2,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns}}):t._e()}var Pt,Gt,Bt=(__extends(SFLineChart,zt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFLineChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFLineChart.prototype,"metadata",void 0),SFLineChart=__decorate([e.Component({components:{LineChart:N}})],SFLineChart)),Dt=(Nb._withStripped=!0,normalizeComponent({render:Nb,staticRenderFns:[]},void 0,Bt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFMetricChart(){return null!==Pt&&Pt.apply(this,arguments)||this}function Wb(){var t=this,e=t.$createElement,n=t._self._c||e;return t.data.isEmpty?t._e():n("metric-chart",{attrs:{data:t.data,aggregate:t.metadata.aggregateColumns[0],decimal:2}})}var jt,Lt=(__extends(SFMetricChart,Pt=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Gt="undefined"!=typeof ChartPiece&&ChartPiece)?Gt:Object)],SFMetricChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMetricChart.prototype,"metadata",void 0),SFMetricChart=__decorate([e.Component({components:{MetricChart:ot}})],SFMetricChart)),Et=(Wb._withStripped=!0,normalizeComponent({render:Wb,staticRenderFns:[]},void 0,Lt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFPieChart(){return null!==jt&&jt.apply(this,arguments)||this}function dc(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("pie-chart",{attrs:{data:t.data,donut:"Donut"===t.metadata.chartType,rotate:"Donut"===t.metadata.chartType,"show-value":t.metadata.showValues,"show-percentage":t.metadata.showPercentages,"show-total":t.metadata.showTotal,decimal:2,"group-by":t.metadata.groupingColumns[0],aggregate:t.metadata.aggregateColumns[0],area:t.area}}):t._e()}var It,Ot=(__extends(SFPieChart,jt=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFPieChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFPieChart.prototype,"metadata",void 0),__decorate([e.Prop({type:Object,required:!1}),__metadata("design:type",Object)],SFPieChart.prototype,"area",void 0),SFPieChart=__decorate([e.Component({components:{PieChart:L}})],SFPieChart)),Xt=(dc._withStripped=!0,normalizeComponent({render:dc,staticRenderFns:[]},void 0,Ot,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFScatterChart(){return null!==It&&It.apply(this,arguments)||this}function mc(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.length?n("scatter-chart",{attrs:{data:t.data,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns,"group-type":t.metadata.groupByType,decimal:2}}):t._e()}var Nt,Vt,Yt=(__extends(SFScatterChart,It=e.Vue),__decorate([e.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFScatterChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFScatterChart.prototype,"metadata",void 0),SFScatterChart=__decorate([e.Component({components:{ScatterChart:st}})],SFScatterChart)),Ht=(mc._withStripped=!0,normalizeComponent({render:mc,staticRenderFns:[]},void 0,Yt,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFTableChart(){return null!==Nt&&Nt.apply(this,arguments)||this}function vc(){var t=this,e=t.$createElement,n=t._self._c||e;return 0<t.data.headers.length?n("table-chart",{attrs:{data:t.data}}):t._e()}var Wt,Ut,Zt=(__extends(SFTableChart,Nt=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(Vt="undefined"!=typeof TableData&&TableData)?Vt:Object)],SFTableChart.prototype,"data",void 0),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFTableChart.prototype,"metadata",void 0),SFTableChart=__decorate([e.Component({components:{TableChart:ht}})],SFTableChart)),Jt=(vc._withStripped=!0,normalizeComponent({render:vc,staticRenderFns:[]},void 0,Zt,void 0,!1,void 0,!1,void 0,void 0,void 0)),Qt=["All values are negative or zero.","Pie, donut, funnel, and stacked charts require at least one positive value to display."].join(" "),qt=(__extends(SFChartMixins,Wt=e.Vue),SFChartMixins.prototype.renderPrompt=function(t,e){return t("div",{staticClass:"sf-analytics-text"},e)},SFChartMixins.prototype.renderError=function(t,e){return t("div",{staticClass:"sf-analytics-error"},e)},__decorate([e.Prop({type:String,default:function(){return"No data to display."}}),__metadata("design:type",String)],SFChartMixins.prototype,"noDataText",void 0),__decorate([e.Prop({type:String,default:function(){return Qt}}),__metadata("design:type",String)],SFChartMixins.prototype,"negativeDataText",void 0),SFChartMixins=__decorate([e.Component],SFChartMixins));function SFChartMixins(){return null!==Wt&&Wt.apply(this,arguments)||this}function SFDashboardChart(){var t=null!==Ut&&Ut.apply(this,arguments)||this;return t.functional=!0,t}var Kt,$t=normalizeComponent({},function(t){t&&t("data-v-114cb6f0_0",{source:"/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-analytics-chart {\n width: 100%;\n padding: 10px;\n background-color: #fff;\n transform: translate3d(0, 0, 0);\n}\n.sf-analytics-chart .sf-analytics-text {\n width: 100%;\n height: 200px;\n font-size: 14px;\n line-height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.sf-analytics-chart .sf-analytics-error {\n font-size: 14px;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n}\n@media (prefers-color-scheme: dark) {\n.sf-analytics-chart {\n background-color: #1c1c1e;\n}\n.sf-analytics-chart .sf-analytics-text {\n color: #6e6e6e;\n}\n}",map:void 0,media:void 0})},(__extends(SFDashboardChart,Ut=e.Mixins(qt)),Object.defineProperty(SFDashboardChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!0,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"hasError",{get:function(){return this.data.status.errorCode},enumerable:!0,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"isEmpty",{get:function(){return!("NO_DATA"!==this.data.status.dataStatus&&this.chartType&&this.refactoredData&&("Table"===this.chartType||"FlexTable"===this.chartType?0!==this.refactoredData.headers.length:"Gauge"===this.chartType?this.refactoredData.value||0===this.refactoredData.value:!Array.isArray(this.refactoredData)||0!==this.refactoredData.length))},enumerable:!0,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"isNegative",{get:function(){return("Pie"===this.chartType||"Donut"===this.chartType||"Funnel"===this.chartType||("Bar"===this.chartType||"Column"===this.chartType)&&this.refactoredMetadata.groupByType&&this.refactoredMetadata.groupByType.includes("stacked"))&&Array.isArray(this.refactoredData)&&!this.refactoredData.some(function(t){return 0<t.values[0]})},enumerable:!0,configurable:!0}),SFDashboardChart.prototype.render=function(t){var e=new ft(this.metadata,this.data);this.refactoredData=e.data,this.refactoredMetadata=e.metadata;var n=[];if(this.hasError){var a=this.data.status.errorSeverity+": "+this.data.status.errorMessage;n.push(this.renderError(t,a))}else this.isEmpty?n.push(this.renderPrompt(t,this.noDataText)):this.isNegative?n.push(this.renderPrompt(t,this.negativeDataText)):n.push(this.renderChart(t));return t("div",{staticClass:"sf-analytics-chart",class:"sf-"+this.chartType.toLowerCase().replace(/\s/g,"-")+"-chart"},n)},SFDashboardChart.prototype.renderChart=function(t){var e={data:this.refactoredData,metadata:this.refactoredMetadata};return"Bar"===this.chartType?t(Rt,{props:e}):"Column"===this.chartType?t(wt,{props:e}):"Donut"===this.chartType||"Pie"===this.chartType?(e.data=e.data.sort(function(t,e){return t.values[0]<e.values[0]?1:t.values[0]>e.values[0]?-1:t.label>e.label?1:t.label<e.label?-1:0}),t(Xt,{props:e})):"Funnel"===this.chartType?t(St,{props:e}):"Gauge"===this.chartType?t(Mt,{props:e}):"Line"===this.chartType?t(Dt,{props:e}):"Metric"===this.chartType?t(Et,{props:e}):"Scatter"===this.chartType?t(Ht,{props:e}):"Table"===this.chartType||"FlexTable"===this.chartType?t(Jt,{props:e}):(console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart."),t(wt,{props:e}))},__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"data",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"metadata",void 0),SFDashboardChart=__decorate([e.Component({components:{SFBarChart:wt,SFFunnelChart:St,SFHorizontalBarChart:Rt,SFLineChart:Dt,SFGaugeChart:Mt,SFMetricChart:Et,SFPieChart:Xt,SFScatterChart:Ht,SFTableChart:Jt}})],SFDashboardChart)),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFReportChart(){var t=null!==Kt&&Kt.apply(this,arguments)||this;return t.functional=!0,t}var te,ee=normalizeComponent({},function(t){t&&t("data-v-07de57c3_0",{source:"/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-analytics-chart {\n width: 100%;\n padding: 10px;\n background-color: #fff;\n transform: translate3d(0, 0, 0);\n}\n.sf-analytics-chart .sf-analytics-text {\n width: 100%;\n height: 200px;\n font-size: 14px;\n line-height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.sf-analytics-chart .sf-analytics-error {\n font-size: 14px;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n}\n@media (prefers-color-scheme: dark) {\n.sf-analytics-chart {\n background-color: #1c1c1e;\n}\n.sf-analytics-chart .sf-analytics-text {\n color: #6e6e6e;\n}\n}",map:void 0,media:void 0})},(__extends(SFReportChart,Kt=e.Mixins(qt)),Object.defineProperty(SFReportChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!0,configurable:!0}),Object.defineProperty(SFReportChart.prototype,"isEmpty",{get:function(){return!this.refactoredData||0===this.refactoredData.length},enumerable:!0,configurable:!0}),SFReportChart.prototype.render=function(t){var e=new xt(this.data);this.refactoredData=e.data,this.refactoredMetadata=e.metadata;var n=[];return this.isEmpty?n.push(this.renderPrompt(t,this.noDataText)):n.push(this.renderChart(t)),t("div",{staticClass:"sf-analytics-chart",class:"sf-"+this.chartType.toLowerCase().replace(/\s/g,"-")+"-chart"},n)},SFReportChart.prototype.renderChart=function(t){var e={data:this.refactoredData,metadata:this.refactoredMetadata,area:this.area};return"Horizontal Bar"===this.chartType||"Horizontal Bar Grouped"===this.chartType||"Horizontal Bar Stacked"===this.chartType||"Horizontal Bar Stacked to 100"===this.chartType?t(Rt,{props:e}):"Vertical Bar"===this.chartType||"Vertical Bar Line"===this.chartType||"Vertical Bar Grouped"===this.chartType||"Vertical Bar Grouped Line"===this.chartType||"Vertical Bar Stacked"===this.chartType||"Vertical Bar Stacked Line"===this.chartType||"Vertical Bar Stacked to 100"===this.chartType?t(wt,{props:e}):"Donut"===this.chartType||"Pie"===this.chartType?(e.data=e.data.sort(function(t,e){return t.values[0]<e.values[0]?1:t.values[0]>e.values[0]?-1:t.label>e.label?1:t.label<e.label?-1:0}),t(Xt,{props:e})):"Funnel"===this.chartType?t(St,{props:e}):"Line"===this.chartType||"Line Cumulative"===this.chartType||"Line Grouped"===this.chartType||"Line Cumulative Grouped"===this.chartType?t(Dt,{props:e}):"Scatter"===this.chartType||"Scatter Grouped"===this.chartType?t(Ht,{props:e}):(console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart."),t(wt,{props:e}))},__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"data",void 0),__decorate([e.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"area",void 0),SFReportChart=__decorate([e.Component({components:{SFBarChart:wt,SFFunnelChart:St,SFHorizontalBarChart:Rt,SFLineChart:Dt,SFPieChart:Xt,SFScatterChart:Ht}})],SFReportChart)),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFGroupingTableGroupRow(){return null!==te&&te.apply(this,arguments)||this}function Vc(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"group-row"},[n("div",{staticClass:"label",style:{"margin-left":e.data.margin}},[e._v(e._s(e.data.fieldLabel))]),e._v(" "),n("div",{staticClass:"label-mark"},[e._v(":")]),e._v(" "),n("div",{class:["value",e.isID(e.data.value)?"id":""],on:{click:function(t){return e.$emit("cell-clicked",e.data)}}},[e._v(e._s(e.data.label))]),e._v(" "),e.hasRecordCount?n("div",{staticClass:"count-left-mark"},[e._v("(")]):e._e(),e._v(" "),e.hasRecordCount?n("div",{staticClass:"count"},[e._v(e._s(e.data.recordCount))]):e._e(),e._v(" "),e.hasRecordCount?n("div",{staticClass:"count-right-mark"},[e._v(")")]):e._e()])}var ne,ae=(__extends(SFGroupingTableGroupRow,te=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"data",void 0),__decorate([e.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"hasRecordCount",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"isID",void 0),SFGroupingTableGroupRow=__decorate([e.Component({})],SFGroupingTableGroupRow)),oe=(Vc._withStripped=!0,normalizeComponent({render:Vc,staticRenderFns:[]},function(t){t&&t("data-v-18fe4fc8_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.group-row[data-v-18fe4fc8] {\n font-size: 11px;\n padding: 0px 10px;\n position: relative;\n}\n.group-row[data-v-18fe4fc8]:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .group-row[data-v-18fe4fc8]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-18fe4fc8]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-18fe4fc8]:before {\n transform-origin: 0% 33%;\n}\n.group-row[data-v-18fe4fc8]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .group-row[data-v-18fe4fc8]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-18fe4fc8]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-18fe4fc8]:after {\n transform-origin: 66% 33%;\n}\n.group-row .label[data-v-18fe4fc8], .group-row .value[data-v-18fe4fc8], .group-row .count[data-v-18fe4fc8] {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.group-row .label[data-v-18fe4fc8], .group-row .count[data-v-18fe4fc8] {\n font-weight: bold;\n}\n.group-row .value[data-v-18fe4fc8], .group-row .count-left-mark[data-v-18fe4fc8] {\n margin-left: 5px;\n}\n.group-row .label[data-v-18fe4fc8], .group-row .value[data-v-18fe4fc8] {\n max-width: 30%;\n}\n.group-row .count[data-v-18fe4fc8] {\n max-width: calc(40% - 22px);\n}\n.group-row .label-mark[data-v-18fe4fc8], .group-row .count-left-mark[data-v-18fe4fc8], .group-row .count-right-mark[data-v-18fe4fc8] {\n float: left;\n width: 4px;\n}\n.group-row .value.id[data-v-18fe4fc8] {\n color: #09afe6;\n}',map:void 0,media:void 0})},ae,"data-v-18fe4fc8",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableAggregateRow(){return null!==ne&&ne.apply(this,arguments)||this}function cd(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"aggregate-row"},n._l(n.data.cells,function(e,t){return a("div",{key:t,staticClass:"data-cell",on:{click:function(t){return n.$emit("cell-clicked",e)}}},[n._v("\n "+n._s(e.label)+"\n ")])}),0)}var ie,le=(__extends(SFGroupingTableAggregateRow,ne=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableAggregateRow.prototype,"data",void 0),SFGroupingTableAggregateRow=__decorate([e.Component({})],SFGroupingTableAggregateRow)),se=(cd._withStripped=!0,normalizeComponent({render:cd,staticRenderFns:[]},function(t){t&&(t("data-v-3461bed6_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.aggregate-row[data-v-3461bed6] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 11px;\n}\n.aggregate-row .data-cell[data-v-3461bed6] {\n flex: 1;\n padding: 0px 10px;\n height: 41px;\n text-align: right;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform-origin: 0% 33%;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform-origin: 66% 33%;\n}',map:void 0,media:void 0}),t("data-v-3461bed6_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n@media (prefers-color-scheme: dark) {\n.aggregate-row .data-cell[data-v-3461bed6] {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:after {\n transform-origin: 66% 33%;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-3461bed6]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))},le,"data-v-3461bed6",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableTotalRow(){return null!==ie&&ie.apply(this,arguments)||this}function ld(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"total-row"},[n("div",{staticClass:"label"},[t._v(t._s(t.data.label))]),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?n("div",{staticClass:"count-left-mark"},[t._v("(")]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?n("div",{staticClass:"count"},[t._v(t._s(t.data.recordCount))]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?n("div",{staticClass:"count-right-mark"},[t._v(")")]):t._e()])}var ce,pe=(__extends(SFGroupingTableTotalRow,ie=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"data",void 0),__decorate([e.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"hasRecordCount",void 0),SFGroupingTableTotalRow=__decorate([e.Component({})],SFGroupingTableTotalRow)),he=(ld._withStripped=!0,normalizeComponent({render:ld,staticRenderFns:[]},function(t){t&&t("data-v-2f4037e0_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.total-row[data-v-2f4037e0] {\n font-size: 11px;\n padding: 0px 10px;\n position: relative;\n}\n.total-row[data-v-2f4037e0]:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .total-row[data-v-2f4037e0]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-2f4037e0]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-2f4037e0]:before {\n transform-origin: 0% 33%;\n}\n.total-row[data-v-2f4037e0]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .total-row[data-v-2f4037e0]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-2f4037e0]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-2f4037e0]:after {\n transform-origin: 66% 33%;\n}\n.total-row .label[data-v-2f4037e0], .total-row .count[data-v-2f4037e0] {\n float: left;\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.total-row .count-left-mark[data-v-2f4037e0] {\n margin-left: 5px;\n}\n.total-row .label[data-v-2f4037e0] {\n max-width: 20%;\n}\n.total-row .count[data-v-2f4037e0] {\n max-width: calc(80% - 13px);\n}\n.total-row .count-left-mark[data-v-2f4037e0], .total-row .count-right-mark[data-v-2f4037e0] {\n float: left;\n width: 4px;\n}',map:void 0,media:void 0})},pe,"data-v-2f4037e0",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableDataRow(){var t=null!==ce&&ce.apply(this,arguments)||this;return t.checkedImage=ct,t.uncheckedImage=dt,t}function ud(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"data-row"},n._l(n.data.cells,function(e,t){return a("div",{key:t,class:["data-cell",n.isNumber(t)?"number-cell":""],on:{click:function(t){return n.$emit("cell-clicked",e)}}},[n.isID(e.value)?a("span",{staticClass:"id"},[n._v("\n "+n._s(e.label)+"\n ")]):n.isText(t)?a("span",[n._v("\n "+n._s(e.label)+"\n ")]):n.isHTML(t)?a("span",{domProps:{innerHTML:n._s(e.label)}}):n.isURL(t)||n.isPhone(t)||n.isEmail(t)?a("span",[n.isURL(t)&&e.value?a("a",{attrs:{href:e.value}},[n._v("\n "+n._s(e.value)+"\n ")]):n.isEmail(t)&&e.value?a("a",{attrs:{href:"mailto:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")]):n.isPhone(t)&&e.value?a("a",{attrs:{href:"tel:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")]):e.value?n._e():a("span",[n._v("\n "+n._s(e.label)+"\n ")])]):n.isBoolean(t)?a("img",{staticClass:"checkbox",attrs:{src:"true"===e.label?n.checkedImage:n.uncheckedImage}}):n._e()])}),0)}var me,ge,fe=(__extends(SFGroupingTableDataRow,ce=e.Vue),__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"data",void 0),__decorate([e.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isNumber",void 0),__decorate([e.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isBoolean",void 0),__decorate([e.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isHTML",void 0),__decorate([e.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isURL",void 0),__decorate([e.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isPhone",void 0),__decorate([e.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isEmail",void 0),__decorate([e.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isText",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isID",void 0),SFGroupingTableDataRow=__decorate([e.Component({})],SFGroupingTableDataRow)),ue=(ud._withStripped=!0,normalizeComponent({render:ud,staticRenderFns:[]},function(t){t&&(t("data-v-6fc5da42_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.data-row[data-v-6fc5da42] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 11px;\n}\n.data-row .data-cell[data-v-6fc5da42] {\n flex: 1;\n padding: 0px 10px;\n height: 41px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.data-row .data-cell[data-v-6fc5da42]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-6fc5da42]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform-origin: 0% 33%;\n}\n.data-row .data-cell .checkbox[data-v-6fc5da42] {\n width: 18px;\n padding-top: 13px;\n}\n.data-row .data-cell.number-cell[data-v-6fc5da42] {\n text-align: right;\n}\n.data-row .data-cell .id[data-v-6fc5da42] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-6fc5da42_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n@media (prefers-color-scheme: dark) {\n.data-row .data-cell[data-v-6fc5da42] {\n position: relative;\n}\n.data-row .data-cell[data-v-6fc5da42]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-6fc5da42]:first-child {\n position: relative;\n}\n.data-row .data-cell[data-v-6fc5da42]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-6fc5da42]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))},fe,"data-v-6fc5da42",!1,void 0,!1,createInjector,void 0,void 0)),be=(__extends(SFTableRowMixins,me=e.Vue),SFTableRowMixins.prototype.dispatch=function(t,e){for(var n=arguments,a=[],o=2;o<arguments.length;o++)a[o-2]=n[o];for(var r=this.$parent||this.$root,i=r.$options.name;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.name);r&&r.$emit.apply(r,__spreadArrays([e],a))},SFTableRowMixins=__decorate([e.Component],SFTableRowMixins));function SFTableRowMixins(){return null!==me&&me.apply(this,arguments)||this}function SFGroupingTableRow(){var t=null!==ge&&ge.apply(this,arguments)||this;return t.isNumber=t.isCellNumber,t.isBoolean=t.isCellBoolean,t.isURL=t.isCellURL,t.isHTML=t.isCellHTML,t.isPhone=t.isCellPhone,t.isEmail=t.isCellEmail,t.isText=t.isCellText,t.isID=t.isCellID,t.functional=!0,t}var xe,ve=normalizeComponent({},void 0,(__extends(SFGroupingTableRow,ge=e.Mixins(be)),SFGroupingTableRow.prototype.render=function(t){return t("div",{staticClass:"sf-grouping-table-row",class:[{"grand-row":this.source.grand},this.source.type],style:{background:this.source.background}},this.createChildren(t))},SFGroupingTableRow.prototype.createChildren=function(t){var e=this,n=[],a={data:this.source,hasRecordCount:this.hasRecordCount};return"group"===this.source.type?n.push(t(oe,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})):"group-aggregate"===this.source.type?n.push(t(se,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})):"grand-total"===this.source.type||"subtotals"===this.source.type?n.push(t(he,{props:a})):"data"===this.source.type&&n.push(t(ue,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})),n},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"source",void 0),__decorate([e.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"hasRecordCount",void 0),__decorate([e.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellNumber",void 0),__decorate([e.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellBoolean",void 0),__decorate([e.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellHTML",void 0),__decorate([e.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellURL",void 0),__decorate([e.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellPhone",void 0),__decorate([e.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellEmail",void 0),__decorate([e.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellText",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellID",void 0),__decorate([e.Provide("isNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isNumber",void 0),__decorate([e.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isBoolean",void 0),__decorate([e.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isURL",void 0),__decorate([e.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isHTML",void 0),__decorate([e.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isPhone",void 0),__decorate([e.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isEmail",void 0),__decorate([e.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isText",void 0),__decorate([e.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isID",void 0),SFGroupingTableRow=__decorate([e.Component({components:{GroupRow:oe,AggregateRow:se,TotalRow:he,DataRow:ue}})],SFGroupingTableRow)),void 0,void 0,void 0,!1,void 0,void 0,void 0);function SFGroupingTable(){var t=null!==xe&&xe.apply(this,arguments)||this;return t.isCellNumber=t.isNumber,t.isCellBoolean=t.isBoolean,t.isCellURL=t.isURL,t.isCellHTML=t.isHTML,t.isCellPhone=t.isPhone,t.isCellEmail=t.isEmail,t.isCellText=t.isText,t.isCellID=t.isID,t.parentWidth="100%",t.cellWidth=0,t.rowComponent=ve,t}function Md(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"sf-grouping-table"},[n.data.showHeader&&0<n.data.headers.length&&0<n.data.rows.length?a("div",{staticClass:"sf-grouping-table-header",style:{width:n.parentWidth}},n._l(n.data.headers,function(t,e){return a("div",{key:e,staticClass:"sf-grouping-table-header-cell",class:{"number-cell":n.isNumber(e)},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.label)+"\n ")])}),0):n._e(),n._v(" "),a("virtual-list",{ref:"VirtualList",staticClass:"sf-grouping-table-content",style:{width:n.parentWidth},attrs:{"data-key":"id","data-sources":n.data.rows,"data-component":n.rowComponent,"estimate-size":41,"extra-props":{hasRecordCount:n.data.hasRecordCount}}})],1)}var ye,we=(__extends(SFGroupingTable,xe=e.Vue),SFGroupingTable.prototype.onDataChanged=function(){this.init()},SFGroupingTable.prototype.mounted=function(){this.init()},SFGroupingTable.prototype.init=function(){var t=100*this.data.headers.length;t>this.$el.offsetWidth?this.parentWidth=t+"px":this.parentWidth="100%"},SFGroupingTable.prototype.isNumber=function(t){var e=this.data.headers[t];return!!e&&("datetime"===e.dataType||"currency"===e.dataType||"date"===e.dataType||"int"===e.dataType||"double"===e.dataType||"percent"===e.dataType||"boolean"===e.dataType)},SFGroupingTable.prototype.isBoolean=function(t){var e=this.data.headers[t];return!!e&&"boolean"===e.dataType},SFGroupingTable.prototype.isURL=function(t){var e=this.data.headers[t];return!!e&&"url"===e.dataType},SFGroupingTable.prototype.isHTML=function(t){var e=this.data.headers[t];return!!e&&"html"===e.dataType},SFGroupingTable.prototype.isPhone=function(t){var e=this.data.headers[t];return!!e&&"phone"===e.dataType},SFGroupingTable.prototype.isEmail=function(t){var e=this.data.headers[t];return!!e&&"email"===e.dataType},SFGroupingTable.prototype.isText=function(t){return!(this.isBoolean(t)||this.isURL(t)||this.isHTML(t)||this.isEmail(t)||this.isPhone(t))},SFGroupingTable.prototype.isID=function(e){if(!e)return!1;var n=new RegExp("^[a-zA-Z0-9]+$");return this.sobjects.some(function(t){return n.test(e)&&(15===e.length||18===e.length)&&t.layoutable&&(""+e).startsWith(t.keyPrefix)})},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTable.prototype,"data",void 0),__decorate([e.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFGroupingTable.prototype,"sobjects",void 0),__decorate([e.Provide("isCellNumber"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellNumber",void 0),__decorate([e.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellBoolean",void 0),__decorate([e.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellURL",void 0),__decorate([e.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellHTML",void 0),__decorate([e.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellPhone",void 0),__decorate([e.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellEmail",void 0),__decorate([e.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellText",void 0),__decorate([e.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellID",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFGroupingTable.prototype,"onDataChanged",null),SFGroupingTable=__decorate([e.Component({components:{VirtualList:n}})],SFGroupingTable)),_e=(Md._withStripped=!0,normalizeComponent({render:Md,staticRenderFns:[]},function(t){t&&(t("data-v-5dd7e585_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-grouping-table-content .sf-grouping-table-row {\n position: relative;\n width: 100%;\n height: 41px;\n line-height: 41px;\n}\n.sf-grouping-table-content .sf-grouping-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table-content .sf-grouping-table-row:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table-content .sf-grouping-table-row.data {\n background-color: #fff;\n}\n.sf-grouping-table-content .sf-grouping-table-row a {\n color: #00A383;\n}\n.sf-grouping-table-content .list-item:first-child .sf-grouping-table-row {\n position: relative;\n}\n.sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform-origin: 33% 0%;\n}\n@media (prefers-color-scheme: dark) {\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row {\n color: #f2f2f7;\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.group {\n background-color: #2c2c2e !important;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.group-aggregate {\n background-color: #2c2c2e !important;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data {\n background-color: #1c1c1e;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.data:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row, .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals {\n background-color: #2c2c2e !important;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row:after, .android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.grand-row .group, .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row.subtotals .group {\n color: #f2f2f7;\n}\n.sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .sf-grouping-table-row:after {\n transform-origin: 33% 66%;\n}\n.sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row {\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #646466;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-content .list-item:first-child .sf-grouping-table-row:before {\n transform-origin: 33% 0%;\n}\n}',map:void 0,media:void 0}),t("data-v-5dd7e585_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-grouping-table[data-v-5dd7e585] {\n position: relative;\n width: 100%;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n transform: translate3d(0, 0, 0);\n}\n.sf-grouping-table .sf-grouping-table-header[data-v-5dd7e585] {\n width: 100%;\n height: 44px;\n background: #00A383;\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-5dd7e585] {\n flex: 1;\n color: #ffffff;\n font-size: 16px;\n font-weight: bold;\n padding: 0 10px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-5dd7e585]:not(:last-child) {\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-5dd7e585]:not(:last-child):after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-5dd7e585]:not(:last-child):after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-5dd7e585]:not(:last-child):after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-5dd7e585]:not(:last-child):after {\n transform-origin: 66% 33%;\n}\n.sf-grouping-table .sf-grouping-table-content[data-v-5dd7e585] {\n width: 100%;\n height: calc(100% - 44px);\n overflow-y: auto;\n}',map:void 0,media:void 0}))},we,"data-v-5dd7e585",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTableRow(){var t=null!==ye&&ye.apply(this,arguments)||this;return t.checkedImage=ct,t.uncheckedImage=dt,t}function Vd(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"sf-matrix-table-row"},n._l(n.source.cells,function(e,t){return a("div",{key:t,staticClass:"sf-matrix-table-cell",class:n.getCellClass(e.type),style:{width:n.cellWidth+"px"},on:{click:function(t){return n.dispatch("SFMatrixTable","cell-clicked",e)}}},[n.isCellID(e.value)?a("span",{staticClass:"id"},[n._v("\n "+n._s(e.label)+"\n ")]):n.isText(e.type)?a("span",[n._v("\n "+n._s(e.label)+"\n ")]):"html"===e.type?a("span",{domProps:{innerHTML:n._s(e.label)}}):"url"===e.type||"email"===e.type||"phone"===e.type?a("span",[e.value?a("span",["url"===e.type?a("a",{attrs:{href:e.value}},[n._v("\n "+n._s(e.value)+"\n ")]):"email"===e.type?a("a",{attrs:{href:"mailto:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")]):a("a",{attrs:{href:"tel:"+e.value}},[n._v("\n "+n._s(e.label)+"\n ")])]):a("span",[n._v(n._s(e.label))])]):"boolean"===e.type?a("img",{staticClass:"checkbox",attrs:{src:"true"==e.label?n.checkedImage:n.uncheckedImage}}):n._e()])}),0)}var Ce,ke=(__extends(SFMatrixTableRow,ye=e.Mixins(be)),SFMatrixTableRow.prototype.isText=function(t){return"boolean"!==t&&"url"!==t&&"html"!==t&&"email"!==t&&"phone"!==t},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"source",void 0),__decorate([e.Prop({type:Number,required:!0}),__metadata("design:type",Number)],SFMatrixTableRow.prototype,"cellWidth",void 0),__decorate([e.Inject("getCellClass"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"getCellClass",void 0),__decorate([e.Inject("isCellID"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"isCellID",void 0),SFMatrixTableRow=__decorate([e.Component({})],SFMatrixTableRow)),Se=(Vd._withStripped=!0,normalizeComponent({render:Vd,staticRenderFns:[]},function(t){t&&(t("data-v-2c5d0f2b_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table-cell[data-v-2c5d0f2b] {\n float: left;\n height: 41px;\n font-size: 11px;\n text-align: left;\n padding: 0 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform-origin: 66% 33%;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell.right-align-cell[data-v-2c5d0f2b] {\n text-align: right;\n}\n.android .sf-matrix-table-cell.right-align-cell[data-v-2c5d0f2b] {\n padding-right: 20px;\n}\n.sf-matrix-table-cell.center-align-cell[data-v-2c5d0f2b] {\n text-align: center;\n}\n.sf-matrix-table-cell .checkbox[data-v-2c5d0f2b] {\n width: 18px;\n padding-top: 13px;\n}\n.sf-matrix-table-cell a[data-v-2c5d0f2b] {\n color: #00A383;\n}\n.sf-matrix-table-cell .id[data-v-2c5d0f2b] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-2c5d0f2b_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n@media (prefers-color-scheme: dark) {\n.sf-matrix-table-cell[data-v-2c5d0f2b] {\n color: #f2f2f7;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 0% 50%;\n left: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-2c5d0f2b]:after {\n transform-origin: 66% 33%;\n}\n}',map:void 0,media:void 0}))},ke,"data-v-2c5d0f2b",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTable(){var t=null!==Ce&&Ce.apply(this,arguments)||this;return t.getCellClass=t.getClass,t.isCellID=t.isID,t.parentWidth="100%",t.cellWidth=120,t.rowComponent=Se,t}function de(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"sf-matrix-table"},[0<n.data.headers.length?a("div",{staticClass:"sf-matrix-table-header",style:{width:n.parentWidth}},n._l(n.data.headers,function(t,e){return a("div",{key:e,staticClass:"sf-matrix-table-header-row"},n._l(t.cells,function(t,e){return a("div",{key:e,staticClass:"sf-matrix-table-header-cell",class:n.getClass(t.type),style:{width:n.getWidth(t.colspan)+"px"},on:{click:function(t){return n.$emit("cell-clicked",t)}}},[n._v("\n "+n._s(t.value)+"\n ")])}),0)}),0):n._e(),n._v(" "),a("virtual-list",{staticClass:"sf-matrix-table-content",style:{width:n.parentWidth,height:n.contentHeight},attrs:{"data-key":"id","data-sources":n.data.rows,"data-component":n.rowComponent,"estimate-size":41,"extra-props":{cellWidth:n.cellWidth}}})],1)}var Ae,Te=(__extends(SFMatrixTable,Ce=e.Vue),Object.defineProperty(SFMatrixTable.prototype,"contentHeight",{get:function(){return"calc(100% - "+41*this.data.headers.length+"px)"},enumerable:!0,configurable:!0}),SFMatrixTable.prototype.onDataChanged=function(){this.init()},SFMatrixTable.prototype.mounted=function(){this.init()},SFMatrixTable.prototype.init=function(){var t=this.data.columnLength,e=this.$el.offsetWidth,n=120*t;e<n?(this.parentWidth=n+"px",this.cellWidth=120):(this.parentWidth="100%",this.cellWidth=e/t)},SFMatrixTable.prototype.getWidth=function(t){return t?this.cellWidth*t:this.cellWidth},SFMatrixTable.prototype.getClass=function(t){return"datetime"===t||"currency"===t||"date"===t||"int"===t||"double"===t||"percent"===t||"boolean"===t?"right-align-cell":"group-value"===t?"center-align-cell":""},SFMatrixTable.prototype.isID=function(e){if(!e)return!1;var n=new RegExp("^[a-zA-Z0-9]+$");return this.sobjects.some(function(t){return n.test(e)&&(15===e.length||18===e.length)&&t.layoutable&&(""+e).startsWith(t.keyPrefix)})},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTable.prototype,"data",void 0),__decorate([e.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFMatrixTable.prototype,"sobjects",void 0),__decorate([e.Provide("getCellClass"),__metadata("design:type",Object)],SFMatrixTable.prototype,"getCellClass",void 0),__decorate([e.Provide("isCellID"),__metadata("design:type",Object)],SFMatrixTable.prototype,"isCellID",void 0),__decorate([e.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFMatrixTable.prototype,"onDataChanged",null),SFMatrixTable=__decorate([e.Component({components:{VirtualList:n}})],SFMatrixTable)),Me=(de._withStripped=!0,normalizeComponent({render:de,staticRenderFns:[]},function(t){t&&(t("data-v-77804d66_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table-content .sf-matrix-table-row {\n width: 100%;\n height: 41px;\n line-height: 41px;\n position: relative;\n}\n.sf-matrix-table-content .sf-matrix-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform-origin: 33% 66%;\n}\n.sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row {\n position: relative;\n}\n.sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #e3e5e8;\n display: block;\n z-index: 15;\n transform-origin: 50% 0%;\n left: 0;\n top: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-content .list-item:first-child .sf-matrix-table-header-row:before {\n transform-origin: 33% 0%;\n}\n@media (prefers-color-scheme: dark) {\n.sf-matrix-table-content .sf-matrix-table-row {\n position: relative;\n}\n.sf-matrix-table-content .sf-matrix-table-row:after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #444447;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-content .sf-matrix-table-row:after {\n transform-origin: 33% 66%;\n}\n}',map:void 0,media:void 0}),t("data-v-77804d66_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table[data-v-77804d66] {\n position: relative;\n width: 100%;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n transform: translate3d(0, 0, 0);\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-77804d66] {\n background: #00A383;\n height: 41px;\n line-height: 41px;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-77804d66]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-77804d66]:not(:last-child):after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 50% 100%;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table .sf-matrix-table-header-row[data-v-77804d66]:not(:last-child):after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row[data-v-77804d66]:not(:last-child):after {\n transform: scaleY(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row[data-v-77804d66]:not(:last-child):after {\n transform-origin: 33% 66%;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-77804d66] {\n float: left;\n height: 41px;\n font-size: 16px;\n color: #ffffff;\n font-weight: bold;\n text-align: left;\n padding: 0 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-77804d66]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-77804d66]:not(:last-child):after {\n content: "";\n position: absolute;\n bottom: auto;\n right: auto;\n background-color: #39a393;\n display: block;\n z-index: 15;\n transform-origin: 100% 50%;\n right: 0;\n top: 0;\n width: 1px;\n height: 100%;\n}\n.pixel-ratio-2 .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-77804d66]:not(:last-child):after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-77804d66]:not(:last-child):after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-77804d66]:not(:last-child):after {\n transform-origin: 66% 33%;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.right-align-cell[data-v-77804d66] {\n text-align: right;\n}\n.android .sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.right-align-cell[data-v-77804d66] {\n padding-right: 20px;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.center-align-cell[data-v-77804d66] {\n text-align: center;\n}\n.sf-matrix-table .sf-matrix-table-content[data-v-77804d66] {\n position: relative;\n overflow-y: auto;\n}',map:void 0,media:void 0}))},Te,"data-v-77804d66",!1,void 0,!1,createInjector,void 0,void 0));function SFReportTable(){var t=null!==Ae&&Ae.apply(this,arguments)||this;return t.functional=!0,t}function re(t){t.component("SfDashboardChart",$t),t.component("SfReportChart",ee),t.component("SfReportTable",ze)}var ze=normalizeComponent({},void 0,(__extends(SFReportTable,Ae=e.Vue),SFReportTable.prototype.render=function(t){var e=new xt(this.data,this.languageLocaleKey);return this.refactoredData=e.tableData,"MATRIX"===this.refactoredData.format?this.createMatrixTable(t):this.createGroupingTable(t)},SFReportTable.prototype.createMatrixTable=function(t){var e=this;return t(Me,{props:{data:this.refactoredData,sobjects:this.sobjects},on:{"cell-clicked":function(t){e.$emit("cell-clicked",t)}}})},SFReportTable.prototype.createGroupingTable=function(t){var e=this;return t(_e,{props:{data:this.refactoredData,sobjects:this.sobjects},on:{"cell-clicked":function(t){e.$emit("cell-clicked",t)}}})},__decorate([e.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFReportTable.prototype,"data",void 0),__decorate([e.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"sobjects",void 0),__decorate([e.Prop({type:String,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"languageLocaleKey",void 0),SFReportTable=__decorate([e.Component({components:{SFGroupingTable:_e,SFMatrixTable:Me}})],SFReportTable)),void 0,void 0,void 0,!1,void 0,void 0,void 0);return function(t){t.use(Za),t.use(re)}});
|