moblor-vue 0.1.39 → 0.1.41

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.
@@ -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).MoblorVue=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(V,t,i,l,s,H,c,d,W,r,R,e){e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var X=function(t,e){return(X=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}X(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;for(var o=Array(e),r=0,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}__extends(ChartMixins,n=t.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()};var n,a=__decorate([t.Component],ChartMixins);function ChartMixins(){return null!==n&&n.apply(this,arguments)||this}ChartService.formatValue=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=2);var a,o,r,i=t.toString();return Number.isNaN(Number(t))||(a=(t=ChartService.preciseDecimal(Number(t),n))/Math.pow(1e3,4),o=t/Math.pow(1e3,3),r=t/Math.pow(1e3,2),t=t/Math.pow(1e3,1),1<=a?i=ChartService.preciseDecimal(a,n)+" T":1<=o?i=ChartService.preciseDecimal(o,n)+" B":1<=r?i=ChartService.preciseDecimal(r,n)+" M":1<=t&&(i=ChartService.preciseDecimal(t,n)+" K"),i=i.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")})),e+" "+i},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 ChartService.preciseDecimal((t=void 0===t?0:t)/(e=void 0===e?0:e)*100,n=void 0===n?0:n)},ChartService.getColor=function(t,e){e=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 e[t%e.length]},ChartService.getMaxValue=function(t,e){void 0===e&&(e=0);function Z2(t){t.pieces&&0<t.pieces.length?t.pieces.forEach(function(t){Z2(t)}):n.push(t.values[e])}var n=[];return t.forEach(function(t){Z2(t)}),c.max(n,function(t){return t})},ChartService.getMinValue=function(t,e){void 0===e&&(e=0);function fd(t){t.pieces&&0<t.pieces.length?t.pieces.forEach(function(t){fd(t)}):n.push(t.values[e])}var n=[];return t.forEach(function(t){fd(t)}),c.min(n,function(t){return t})},ChartService.defineAreaGradientsForCover=function(t,e,n){t=t.append("defs").append("linearGradient").attr("id","MoLineAreaGradientCover"+e).attr("x1","0").attr("y1","0").attr("x2","0").attr("y2","0").attr("y1","100%");t.append("stop").attr("offset","0%").attr("stop-color","white").attr("stop-opacity",n?.4:1),t.append("stop").attr("offset","100%").attr("stop-color","white").attr("stop-opacity",n?1:.4)},ChartService.getInnerText=function(t){var e=(t=void 0===t?{}:t).showValue,n=t.innerValue,a=t.value,a=void 0===a?"":a,o=t.showPercentage,r=t.innerPercentage,i=t.total,l=t.decimal,t=t.symbol,s=t||"";return e&&n&&(s+=ChartService.formatValue(a,t,l)),o&&r&&0<(e=ChartService.getPercentage(Number(a),i,l))&&(s+=": "+e+"%"),s},ChartService.getBottomText=function(t){var e=(t=void 0===t?{}:t).showValue,n=t.innerValue,a=t.value,a=void 0===a?"":a,o=t.showPercentage,r=t.innerPercentage,i=t.total,l=t.decimal,t=t.symbol,s=t||"";return e&&!n&&(s+=ChartService.formatValue(a,t,l)),o&&!r&&(""!==s&&(s+=" : "),s+=ChartService.getPercentage(Number(a),i,l)+"%"),s};var f=ChartService;function ChartService(){}__extends(MoBarChart,o=t.Mixins(a)),Object.defineProperty(MoBarChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,t=t.left;return 0<this.groupings.length&&"vertical"===this.xAxisMode&&(a=160),0<this.aggregates.length&&(t=75),{top:e,right:n=this.hasSecondAxis?Math.max(n,65):n,bottom:a,left:t}},enumerable:!1,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),this.renderData(t),0<this.categories.length&&this.renderLabel(),0<this.aggregates.length&&this.renderMeasure()},MoBarChart.prototype.init=function(){var e=this,t=this.getWidth(),n=this.data.slice(0,this.maxDisplayCount),a=n.length,a=(this.svgWidth=Math.min(t,Math.max(40*a,t)),this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=Math.min(694<=t?t/2:t,400)-this.actualMargin.top-this.actualMargin.bottom,this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom,this.xAxisScale=i.scaleBand().domain(n.map(function(t){return t.label})).range([0,this.width]).padding(.3).round(!0),this.groupType&&"none"!==this.groupType&&(this.categories=[],n.forEach(function(t){t.pieces&&t.pieces.length>e.categories.length&&(e.categories=t.pieces.map(function(t){return t.label}))})),0<this.categories.length&&(this.additionalHeight=Math.min(25*this.categories.length+50,150)),1<this.aggregates.length&&(this.additionalHeight+=Math.min(25*this.aggregates.length+50,150)),this.svgHeight+=this.additionalHeight,0),t=0,o=0,r=0,t="grouped"===this.groupType?(a=f.getMaxValue(n)||0,f.getMinValue(n)||0):(a=c.max(n,function(t){return t.values[0]})||0,c.min(n,function(t){return t.values[0]})||0),n=(1<this.aggregates.length&&(o=c.max(this.data,function(t){return c.max(t.values)})||0,r=c.min(this.data,function(t){return c.min(t.values)})||0),a+.1*Math.abs(a-t)),a=t<0?t-.1*Math.abs(a-t):0;this.xAxisCategories=i.scaleBand().domain(this.categories).range([0,this.xAxisScale.bandwidth()]).padding(.4).round(!1),1<this.aggregates.length&&(this.xAxisAggregates=i.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.xAxisScale.bandwidth()]).padding(.4).round(!1)),this.xAxis=l.axisBottom(this.xAxisScale).tickSize(0).tickFormat(function(t){return f.formatDomainValue(t,e.actualMargin.bottom,!1)}),"stacked100"===this.groupType&&0<this.categories.length?(this.yAxisScale=i.scaleLinear().range([this.height,0]).domain([0,1]),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return H.format(".0%")(Number(t))})):this.hasLineChart?this.hasSecondAxis?(this.yAxisScale=i.scaleLinear().domain([a,n]).range([this.height,0]).nice(),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return f.formatValue(t,"",e.decimal)}),this.secondYAxisScale=i.scaleLinear().domain([r<0?r:0,o]).range([this.height,0]).nice(),this.secondYAxis=l.axisRight(this.secondYAxisScale).tickSize(0).tickFormat(function(t){return f.formatValue(t,"",e.decimal)}),this.line=d.line().curve(d.curveLinear).x(function(t){return e.xAxisScale(t.label)+e.xAxisScale.bandwidth()/2}).y(function(t){return e.secondYAxisScale(e.lineValue(t))})):(this.yAxisScale=i.scaleLinear().domain([a,n]).range([this.height,0]).nice(),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return f.formatValue(t,"",e.decimal)}),this.line=d.line().curve(d.curveLinear).x(function(t){return e.xAxisScale(t.label)+e.xAxisScale.bandwidth()/2}).y(function(t){return e.yAxisScale(e.lineValue(t))})):(this.yAxisScale=i.scaleLinear().domain([a,n]).range([this.height,0]).nice(),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return f.formatValue(t,"",e.decimal)})),this.svg=s.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(-70, 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 t,n=this;f.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-20).text((null==(t=this.groupings[0])?void 0:t.label)||""),f.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("transform","rotate(-90)").attr("y",15-this.actualMargin.left).attr("x",-this.height/2).attr("dy","1em").style("text-anchor","middle").text(0<this.aggregates.length?this.aggregates.map(function(t,e){return n.hasSecondAxis&&e===n.secondYIndex?"":(e="currency"===t.dataType?null==(e=null==(e=n.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"")?t.label+" ("+e+")":t.label}).filter(Boolean).join(", "):""),this.hasSecondAxis&&this.svg.append("text").attr("class","mo-axis-label").attr("transform","rotate(-90)").attr("y",this.width+this.actualMargin.right-15).attr("x",-this.height/2).attr("dy","1em").style("text-anchor","middle").text(function(){var t,e=n.aggregates[n.secondYIndex];return e?(t=(null==(t=null==(t=n.data[0])?void 0:t.reportMetadata)?void 0:t.currency)||"")?e.label+" ("+t+")":e.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(){var l=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){for(var e=t.pieces,r=void 0===e?[]:e,i=t.values,n=r.length;0<=n;--n)r.forEach(function(t,e){var n,a,o;t.y=(n=r,e=e,a=i[0],e===n.length-1?"stacked100"===l.groupType?l.yAxisScale(n[e].values[0]/a):l.yAxisScale(n[e].values[0]):(o=n[e+1].y||l.height,"stacked100"===l.groupType?o-l.height+l.yAxisScale(n[e].values[0]/a):o-l.height+l.yAxisScale(n[e].values[0]))),t.percentage=t.values[0]/i[0]})}),t},MoBarChart.prototype.renderBar=function(t){var e=this,t=t.slice(0,this.maxDisplayCount);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",f.getColor(0,this.colors)).attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",function(t){t=t.values[0];return 0<=t?e.yAxisScale(t):e.yAxisScale(0)}).attr("width",this.xAxisScale.bandwidth()).attr("height",0).transition().duration(1e3).attr("height",function(t){t=t.values[0];return Math.abs(e.yAxisScale(t)-e.yAxisScale(0))}).attr("y",function(t){t=t.values[0];return 0<=t?e.yAxisScale(t):e.yAxisScale(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",function(t){return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",0).style("fill",function(t,e){return f.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",function(t){return Math.abs(n.yAxisScale(t)-n.yAxisScale(0))})},MoBarChart.prototype.renderGroupedBar=function(t){var n=this,t=t.slice(0,this.maxDisplayCount);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",function(t){t=t.values[0];return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",0).style("fill",function(t,e){return f.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){t=t.values[0];return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",function(t){t=t.values[0];return Math.abs(n.yAxisScale(t)-n.yAxisScale(0))})},MoBarChart.prototype.renderStackedBar=function(t){var n=this,t=t.slice(0,this.maxDisplayCount);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",function(t){return"stacked100"!==n.groupType&&0<=(t=t.values[0])?n.yAxisScale(t):n.yAxisScale(0)}).style("fill",function(t,e){return f.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):(t=t.values[0],Math.abs(n.yAxisScale(t)-n.yAxisScale(0)))})},MoBarChart.prototype.renderLine=function(t){var e=this,n=f.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(),r=(a.attr("stroke-dasharray",o+" "+o).attr("stroke-dashoffset",o).transition().duration(1e3).ease(W.easeLinear).attr("stroke-dashoffset",0),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,t=t.slice(0,this.maxDisplayCount);this.svg.selectAll(".bar").data(t).enter().append("text").attr("class","mo-data-text").style("fill","#5bdcef").attr("x",function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).attr("y",this.height).attr("text-anchor","middle").style("font-size","12px").transition().duration(1e3).attr("y",function(t){var t=t.values[0],e=n.yAxisScale(t);return 0<=t?e-8:e+20}).text(function(t){return f.formatValue(t.values[0],"",n.decimal)})},MoBarChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g"),e=this.getWidth(),e=(("stacked"===this.groupType||"stacked100"===this.groupType)&&694<=e?t.attr("transform","translate( "+this.svgWidth+",\n -"+(this.svgHeight-this.additionalHeight-100)+" )"):(t.attr("transform","translate( 0, 0 )"),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",0).attr("y",this.actualMargin.top+this.actualMargin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label),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 f.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 n=this,a=this.actualMargin.top+this.actualMargin.bottom+this.height,t=(0<this.categories.length&&(a+=25*this.categories.length+50),this.svg.append("g")),e=this.getWidth(),e=(("stacked"===this.groupType||"stacked100"===this.groupType)&&694<=e?t.attr("transform","translate( "+this.svgWidth+",\n -"+(this.svgHeight-this.additionalHeight-100)+" )"):t.attr("transform","translate( 0, 0 )"),t.append("line").attr("x1",-this.actualMargin.left).attr("y1",a).attr("x2",this.width+this.actualMargin.left+this.actualMargin.right).attr("y2",a).attr("class","mo-label-line"),t.append("text").attr("x",0).attr("y",a+25).attr("class","mo-label-title").text("Measure"),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 a+40+25*e}).attr("fill",function(t,e){e=n.hasLineChart&&0<n.categories.length?n.categories.length||1:e;return f.getColor(e,n.colors)}),e.append("text").attr("x",25).attr("y",function(t,e){return a+52+25*e}).attr("class","mo-legend-text").style("fill",function(){return n.labelColor||""}).text(function(t){return t.label})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChart.prototype,"data",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"groupings",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"aggregates",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasSecondAxis",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasLineChart",void 0),__decorate([t.Prop({type:Number,default:function(){return 1}}),__metadata("design:type",Number)],MoBarChart.prototype,"secondYIndex",void 0),__decorate([t.Prop({type:String,default:function(){return"horizontal"}}),__metadata("design:type",String)],MoBarChart.prototype,"xAxisMode",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChart.prototype,"colors",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:20,right:30,bottom:120,left:50}}}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartMargin&&ChartMargin)?p:Object)],MoBarChart.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChart.prototype,"decimal",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"labelColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"groupType",void 0),__decorate([t.Prop({type:Number,default:function(){return 20}}),__metadata("design:type",Number)],MoBarChart.prototype,"maxDisplayCount",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChart.prototype,"onDataChanged",null);var o,p=__decorate([t.Component({})],MoBarChart);function MoBarChart(){var t=null!==o&&o.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.additionalHeight=0,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,h="function"==typeof n?n.options:n;return t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,o)&&(h.functional=!0),a&&(h._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)},h._ssrRegister=d):e&&(d=i?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),d&&(h.functional?(p=h.render,h.render=function renderWithStyleInjection(t,e){return d.call(e),p(t,e)}):(t=h.beforeCreate,h.beforeCreate=t?[].concat(t,d):[d])),n}var h,Y="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(t){return function addStyle(t,e){var n=Y?e.media||"default":t,n=U[n]||(U[n]={ids:new Set,styles:[]});{var a;n.ids.has(t)||(n.ids.add(t),t=e.source,e.map&&(t=(t+="\n/*# sourceURL="+e.map.sources[0]+" */")+"\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),(h=void 0===h?document.head||document.getElementsByTagName("head")[0]:h).appendChild(n.element)),"styleSheet"in n.element?(n.styles.push(t),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n")):(e=n.ids.size-1,t=document.createTextNode(t),(a=n.element.childNodes)[e]&&n.element.removeChild(a[e]),a.length?n.element.insertBefore(t,a[e]):n.element.appendChild(t)))}}}var U={};function x(){var t=this.$createElement;return(this._self._c||t)("div",{class:["mo-chart",this.needScroll?"x-scroll":""]})}function z(t){t&&t("data-v-398abc06_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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._withStripped=!0;var m,J=normalizeComponent({render:x,staticRenderFns:[]},z,p,void 0,!1,void 0,!1,createInjector,void 0,void 0);function MoBarChartHorizontal(){var t=null!==m&&m.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.additionalHeight=0,t}__extends(MoBarChartHorizontal,m=t.Mixins(a)),Object.defineProperty(MoBarChartHorizontal.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,t=t.left;return 0<this.aggregates.length?{top:e,right:n,bottom:60,left:t}:0<this.groupings.length?{top:e,right:n,bottom:a,left:115}:this.margin},enumerable:!1,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,t=(this.categories=[],this.data.length),n=this.getWidth(),a="grouped"===this.groupType&&0<this.categories.length?f.getMaxValue(this.data):c.max(this.data,function(t){return c.max(t.values)}),o=((null==(o=this.aggregates)?void 0:o[0])||{}).unitSymbol,o=8*f.formatValue(a||0,o,this.decimal).length;("stacked"===this.groupType||"stacked100"===this.groupType)&&694<=n?this.svgWidth=Math.min(n/2+150,n):this.svgWidth=n,this.actualMargin.right=Math.max(this.margin.right,20+o),this.svgWidth&&(this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right),"grouped"===this.groupType&&0<this.categories.length?this.height=(this.barHeight*this.categories.length+this.barPadding)*t:(o=1<this.aggregates.length?this.aggregates.length:1,this.height=(this.barHeight*o+this.barPadding)*t),this.svgHeight=694<=n?this.height+this.actualMargin.top+this.actualMargin.bottom:this.height+this.actualMargin.top+this.actualMargin.bottom+100,0<this.categories.length&&(this.additionalHeight=25*this.categories.length+10),1<this.aggregates.length&&(this.additionalHeight=25*this.aggregates.length+10),this.svgHeight+=this.additionalHeight,("stacked"===this.groupType||"stacked100"===this.groupType)&&694<=n?this.svg=s.select(this.$el).style("text-align","left").append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).style("overflow","visible"):this.svg=s.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight),"stacked100"===this.groupType&&0<this.categories.length?(this.xAxisScale=i.scaleLinear().domain([0,1]).range([0,this.width]),this.xAxis=l.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return H.format(".0%")(Number(t))})):(this.xAxisScale=i.scaleLinear().domain([0,a||10]).range([0,this.width]).nice(),this.xAxis=l.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return f.formatValue(t,"",e.decimal)})),this.yAxisScale=i.scaleBand().domain(this.data.map(function(t){return t.label})).range([0,this.height]),this.yAxisCategories=i.scaleBand().domain(this.categories).range([0,this.barHeight*this.categories.length]).round(!0),1<this.aggregates.length&&(this.yAxisAggregates=i.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.barHeight*this.aggregates.length]).round(!0)),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return f.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&&(("stacked"===this.groupType||"stacked100"===this.groupType)&&694<=n?this.labelGroup.attr("transform","translate( "+(this.svgWidth+50)+",\n -"+(this.svgHeight-this.additionalHeight-this.actualMargin.top)+" )"):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+", "+this.actualMargin.top/2+")").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",12).attr("x",12).attr("transform","rotate(70, -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(){var n=this;this.svg.append("text").attr("class","mo-axis-label").attr("x",this.svgWidth/2).attr("y",25).text(function(){var t=n.aggregates.map(function(t){return t.label}).join(", "),e="currency"===(null==(e=n.aggregates[0])?void 0:e.dataType)?null==(e=null==(e=n.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"";return e?t+" ("+e+")":t}),f.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/1.5).attr("y",10.5).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 l=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){var e=t.pieces,r=void 0===e?[]:e,i=t.values;r.forEach(function(t,e){var n,a,o;t.x=(n=e,a=i[0],o=0,r.forEach(function(t,e){e<n&&("stacked100"===l.groupType?o+=l.xAxisScale(t.values[0]/a):o+=l.xAxisScale(t.values[0]))}),o),t.percentage=t.values[0]/i[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",f.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 f.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 f.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 f.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 e=this;this.mainChart.selectAll(".bar").data(t).enter().append("text").attr("class","mo-data-text").attr("x",0).attr("y",function(t){return e.yAxisScale(t.label)+(e.barHeight+e.barPadding)/2-3}).style("fill",this.valueColor).attr("text-anchor","start").transition().duration(1e3).attr("x",function(t){return e.xAxisScale(t.values[0])+5}).text(function(t){return f.formatValue(t.values[0],"",e.decimal)})},MoBarChartHorizontal.prototype.renderLabel=function(){var n=this,t=this.getWidth(),t=(("stacked"===this.groupType||"stacked100"===this.groupType)&&694<=t||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",50).attr("y",this.actualMargin.top+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label),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",50).attr("y",function(t,e){return n.actualMargin.top+n.height+40+25*e}).attr("fill",function(t,e){return f.getColor(e,n.colors)}),t.append("text").attr("x",75).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,t=(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",50).attr("y",a+25).attr("class","mo-label-title").text("Measure"),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",50).attr("y",function(t,e){return a+40+25*e}).attr("fill",function(t,e){return f.getColor(e,n.colors)}),t.append("text").attr("x",75).attr("y",function(t,e){return a+52+25*e}).attr("class","mo-legend-text").text(function(t){return t.label})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"data",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"groupings",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"aggregates",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"colors",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:80,right:80,bottom:20,left:95}}}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartMargin&&ChartMargin)?p:Object)],MoBarChartHorizontal.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 25}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barHeight",void 0),__decorate([t.Prop({type:Number,default:function(){return 15}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barPadding",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"decimal",void 0),__decorate([t.Prop({type:String,default:function(){return"outer"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valuePosition",void 0),__decorate([t.Prop({type:String,default:function(){return"#5bdcef"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valueColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"groupType",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChartHorizontal.prototype,"onDataChanged",null);function G(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function I(t){t&&t("data-v-fd84cef6_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var g,p=__decorate([t.Component({})],MoBarChartHorizontal),q=(G._withStripped=!0,normalizeComponent({render:G,staticRenderFns:[]},I,p,void 0,!1,void 0,!1,createInjector,void 0,void 0));function PieChart(){var t=null!==g&&g.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}__extends(PieChart,g=t.Mixins(a)),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=(t.stopPropagation(),t.preventDefault(),this.rotation.index<this.data.length-1?this.rotation.index+=1:this.rotation.index=0,this.pieLayout(this.data)[this.rotation.index]),t=(this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.aggregate?40:0);this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+(this.width/2+t)+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.onRightNavClicked=function(t){var e=this,t=(t.stopPropagation(),t.preventDefault(),0<this.rotation.index?--this.rotation.index:this.rotation.index=this.data.length-1,this.pieLayout(this.data)[this.rotation.index]),t=(this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.aggregate?40:0);this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+(this.width/2+t)+") 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=f.getPercentage(this.data[this.rotation.index].values[0],this.total,this.decimal),n=f.formatValue(this.data[this.rotation.index].values[0],this.symbol),a=this.$el.querySelector(".percentage"),o=this.$el.querySelector(".label");a&&((t=s.select(a)).style("color",f.getColor(this.rotation.index,this.colors)),t.text(n+" : "+e+"%")),o&&(t=s.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.aggregate&&(this.height+=40),this.svg=s.select(this.$el).insert("svg",".mo-tip-container").attr("width",this.width).attr("height",this.height),this.aggregate&&(t="currency"===this.aggregate.dataType?null==(t=null==(t=this.data[0])?void 0:t.reportMetadata)?void 0:t.currency:"",e=this.svg.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",35),t?e.text(this.aggregate.label+" ("+t+")"):e.text(this.aggregate.label)),this.total=c.sum(this.data,function(t){return t.values[0]}),this.arcLayout=d.arc().outerRadius(this.radius).innerRadius(this.innerRadius),this.arc3dLayout=d.arc().outerRadius(this.innerRadius+9).innerRadius(this.innerRadius),this.pieLayout=d.pie().value(function(t){return t.values[0]});var t=this.pieLayout(this.data)[this.rotation.index],e=(this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.aggregate?40:0);this.arcGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+(this.width/2+e)+") 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+e)+")"),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 f.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(f.formatValue(this.total,this.symbol))},PieChart.prototype.renderInnerLabel=function(){var e=this;this.arc.append("text").attr("class","mo-inner-text").attr("text-anchor","middle").text(function(t){return f.getInnerText({showValue:e.showValue,innerValue:"inner"===e.valuePosition,value:t.value,showPercentage:e.showPercentage,innerPercentage:"inner"===e.percentagePosition,total:e.total,decimal:e.decimal,symbol:null==(t=e.aggregate)?void 0:t.unitSymbol})}).transition().duration(750).attr("transform",function(t){return"translate("+e.arcLayout.centroid(t)+") rotate("+-e.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 n=this;t.append("rect").attr("width","15").attr("height","15").attr("x",function(t,e){return e*n.radius+25}).attr("y",function(){var t=n.width+25;return n.groupBy&&n.aggregate&&(t+=55),t}).attr("fill",function(t,e){return f.getColor(e,n.colors)}),t.append("text").attr("x",function(t,e){return e*n.radius+40}).attr("y",function(){var t=n.width+40;return n.groupBy&&n.aggregate&&(t+=55),t}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e=f.getBottomText({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.unitSymbol});return""!==e?t.label+" : "+e:t.label})},PieChart.prototype.renderVerticalLabel=function(t){var n=this;t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){e=n.width+20+25*e;return n.groupBy&&n.aggregate&&(e+=55),e}).attr("fill",function(t,e){return f.getColor(e,n.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){e=n.width+32+25*e;return n.groupBy&&n.aggregate&&(e+=55),e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e=f.getBottomText({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.unitSymbol});return""!==e?t.label+" : "+e:t.label})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],PieChart.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showTotal",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showValue",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"symbol",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"valuePosition",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"showPercentage",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"percentagePosition",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],PieChart.prototype,"decimal",void 0),__decorate([t.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],PieChart.prototype,"labelMode",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"labelColor",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"rotate",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],PieChart.prototype,"colors",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"donut",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?p:Object)],PieChart.prototype,"groupBy",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?p:Object)],PieChart.prototype,"aggregate",void 0),__decorate([t.Prop({type:String,default:function(){return"Total"}}),__metadata("design:type",String)],PieChart.prototype,"totalLabel",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],PieChart.prototype,"area",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],PieChart.prototype,"onDataChanged",null);function Q(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"mo-chart"},[e.rotate?t("div",{staticClass:"mo-tip-container"},[t("div",{staticClass:"mo-tip-content"},[t("div",{staticClass:"left-nav",on:{click:function(t){return e.onLeftNavClicked(t)}}},[t("img",{attrs:{src:e.rightNavImage,width:"18"}})]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"right-nav",on:{click:function(t){return e.onRightNavClicked(t)}}},[t("img",{attrs:{src:e.rightNavImage,width:"18"}})])])]):e._e()])}function S(t){t&&t("data-v-7a5cdc78_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var u,p=__decorate([t.Component({})],PieChart),$=(Q._withStripped=!0,normalizeComponent({render:Q,staticRenderFns:[function(){var t=this.$createElement,t=this._self._c||t;return t("div",{staticClass:"tip"},[t("span",{staticClass:"percentage"}),this._v(" "),t("span",{staticClass:"label"})])}]},S,p,void 0,!1,void 0,!1,createInjector,void 0,void 0));function LineChart(){var t=null!==u&&u.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}__extends(LineChart,u=t.Mixins(a)),Object.defineProperty(LineChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,t=t.left;return 0<this.groupings.length?{top:e,right:n,bottom:130,left:t}:0<this.aggregates.length?{top:e,right:n,bottom:a,left:65}:this.margin},enumerable:!1,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,t=this.getWidth(),t=(this.svgWidth=t<694?t:t/1.2,this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=t<694?this.width:this.width/2,this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom+40,this.categories=[],this.data.slice(-20));this.maxValue=c.max(t,function(t){return c.max(t.values)}),"grouped"!==this.groupType&&"cumulativeGrouped"!==this.groupType||this.refactorGroupedData(),0<this.categories.length&&(this.svgHeight+=25*this.categories.length+80,this.maxValue=f.getMaxValue(t)),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+80),this.refactoredData=JSON.parse(JSON.stringify(t)),"cumulativeGrouped"!==this.groupType&&"cumulative"!==this.groupType||this.refactorCumulateData(),this.svg=s.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=i.scalePoint().domain(this.refactoredData.map(function(t){return t.label})).range([0,this.width-5]).padding(.5),this.xAxis=l.axisBottom(this.xAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return f.formatValue(t,"",e.decimal)}),this.yAxisScale=i.scaleLinear().domain([0,this.maxValue||10]).range([this.height,0]).nice(),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return f.formatValue(t,"",e.decimal)}),this.area=d.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),d.line().curve(d.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(c.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},LineChart.prototype.refactorCumulateData=function(){var r=this;0<this.categories.length?this.categories.forEach(function(o){o.value.forEach(function(n,a){n.cumulates=n.cumulates||[],n.values.forEach(function(t,e){e=0<a?o.value[a-1].cumulates[e]+t:t;n.cumulates.push(e),e>r.maxValue&&(r.maxValue=e)})})}):this.refactoredData.forEach(function(n,a){n.cumulates=n.cumulates||[],n.values.forEach(function(t,e){e=0<a?r.refactoredData[a-1].cumulates[e]+t:t;n.cumulates.push(e),e>r.maxValue&&(r.maxValue=e)})})},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",10).attr("x",-8).attr("transform","rotate(-60)"),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(){var n=this;this.svg.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",this.height+this.actualMargin.bottom).text(this.groupings[0].label),this.svg.append("text").attr("class","mo-axis-label").attr("transform","rotate(-90)").attr("x",-this.height/2).attr("y",-this.actualMargin.left).attr("dy","1em").style("text-anchor","middle").text(0<this.aggregates.length?this.aggregates.map(function(t){var e="currency"===t.dataType?null==(e=null==(e=n.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"";return e?t.label+" ("+e+")":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 $h(t,e,n){var a=(n=void 0===n?!1:n)?e:0,n=f.getColor(e,r.colors),o=(e=r.svg.append("path").datum(t).attr("d",r.line(a)).attr("class","mo-data-line").style("stroke",n)).node().getTotalLength();e.attr("stroke-dasharray",o+" "+o).attr("stroke-dashoffset",o).transition().duration(1e3).ease(W.easeLinear).attr("stroke-dashoffset",0),r.svg.selectAll(".mo-data-point").data(t).enter().append("circle").attr("cx",function(t){return r.xAxisScale(t.label)}).attr("cy",function(t){return r.yAxisScale(r.lineValue(t,a))}).attr("r",r.pointRadius).attr("class","mo-line-point").style("fill",n)}var r=this;0<this.categories.length&&("cumulativeGrouped"===this.groupType||"grouped"===this.groupType)?this.categories.forEach(function(t,e){return $h(t.value,e)}):1<this.aggregates.length?this.aggregates.forEach(function(t,e){return $h(r.refactoredData,e,!0)}):(this.defineAreaGradients(0,f.getColor(0,this.colors)),$h(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){t=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%");t.append("stop").attr("offset","0%").attr("stop-color",e).attr("stop-opacity",0),t.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=(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),t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label"));t.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 f.getColor(e,n.colors)}),t.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=(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"),t.selectAll(".mo-label").data(this.aggregates).enter().append("g").attr("class","mo-label"));t.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 f.getColor(e,n.colors)}),t.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.selectAll(".line-text").data(this.data).enter().append("text").attr("class","mo-data-text").attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",function(t){return e.yAxisScale(t.values[0])-5}).attr("text-anchor","middle").text(function(t){return f.formatValue(t.values[0],"",e.decimal)})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],LineChart.prototype,"data",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"groupings",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"aggregates",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],LineChart.prototype,"showValue",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:15,right:0,bottom:100,left:60}}}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartMargin&&ChartMargin)?p:Object)],LineChart.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],LineChart.prototype,"pointRadius",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"textColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"labelColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"groupType",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],LineChart.prototype,"colors",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],LineChart.prototype,"decimal",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],LineChart.prototype,"onDataChanged",null);function Z(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function _(t){t&&t("data-v-22d38a80_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var b,p=__decorate([t.Component({})],LineChart),K=(Z._withStripped=!0,normalizeComponent({render:Z,staticRenderFns:[]},_,p,void 0,!1,void 0,!1,createInjector,void 0,void 0));function FunnelChart(){var t=null!==b&&b.apply(this,arguments)||this;return t.funnelWidth=0,t.funnelHeight=0,t.legendItemHeight=25,t.svg=null,t.total=0,t.refactoredData=[],t.colorMap=new Map,t}__extends(FunnelChart,b=t.Mixins(a)),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 d=this,t=(this.colorMap.clear(),this.refactoredData=[],__spreadArrays(this.data).sort(function(t,e){return e.values[0]-t.values[0]})),e=(t.forEach(function(t,e){d.colorMap.set(t.label,f.getColor(e,d.colors))}),this.getWidth()),n=(this.funnelWidth=e<694?e:e/2+150,this.funnelHeight=this.height||this.funnelWidth,t.length),n=this.funnelHeight+this.legendItemHeight*(n+1),p=c.sum(t,function(t){return t.values[0]}),a=t.filter(function(t){return 0===t.values[0]}).length,h=this.funnelHeight-20*a,m=0,g=(this.groupBy&&this.aggregate&&(n+=65),this.funnelWidth),u=.3*this.funnelWidth;t.forEach(function(t){var e=m/d.funnelHeight,n=0===t.values[0]?20:t.values[0]/p*h,a=(m+n)/d.funnelHeight,e=g-(g-u)*e,a=g-(g-u)*a,o=(d.funnelWidth-e)/2,r=m,e=o+e,i=r,l=(d.funnelWidth-a)/2+a,s=r+n,a=(d.funnelWidth-a)/2,c=s,n=(m+=n,JSON.parse(JSON.stringify(t)));n.points=[{x:o,y:r},{x:e,y:i},{x:l,y:s},{x:a,y:c}],d.refactoredData.push(n)}),this.svg=e<694?s.select(this.$el).append("svg").attr("width",this.funnelWidth).attr("height",n):s.select(this.$el).style("text-align","left").append("svg").attr("width",this.funnelWidth).attr("height",n).style("overflow","visible"),this.total=p},FunnelChart.prototype.renderFunnel=function(){var e=this,t=(this.svg.selectAll("*").remove(),this.svg.selectAll("g").data(this.refactoredData).enter().append("g"));t.append("polygon").attr("points",this.getPoint(this.refactoredData[0].points)).style("fill",function(t){return e.colorMap.get(t.label)||"#fff"}).transition().duration(1e3).attr("points",function(t){return t.points.map(function(t){return[t.x,t.y].join(",")}).join(" ")}),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){return f.getInnerText({showValue:e.showValue,innerValue:"inner"===e.valuePosition,value:t.values[0],showPercentage:e.showPercentage,innerPercentage:"inner"===e.percentagePosition,total:e.total,decimal:e.decimal,symbol:""})})},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 n,a=this,t=(this.svg.selectAll(".legend").remove(),this.getWidth()),e=this.funnelHeight+this.legendItemHeight,o=(this.groupBy&&this.aggregate&&(n="currency"===(null==(o=this.aggregate)?void 0:o.dataType)?null==(o=null==(o=this.data[0])?void 0:o.reportMetadata)?void 0:o.currency:"",this.svg.append("text").attr("class","mo-axis-label").attr("x",this.funnelWidth/2).attr("y",this.funnelHeight+25).text(function(){var t=(null==(t=a.aggregate)?void 0:t.label)||"",e=f.formatValue(a.total,"",a.decimal);return n?t+" ("+n+"): "+e:t+": "+e}),t<694&&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"),(t<694?this.svg.append("text").attr("class","mo-label-title").attr("x",50).attr("y",this.funnelHeight+65):this.svg.append("text").attr("class","mo-label-title").attr("x",this.funnelWidth+50).attr("y",20)).text(this.groupBy.label),e+=65),this.svg.append("g").attr("class","legend")),t=(t<694?o.attr("transform","translate( 50, "+e+" )"):o.attr("transform","translate( "+(this.funnelWidth+50)+", 50 )"),o.selectAll("rect").data(this.refactoredData).enter().append("rect").attr("width",15).attr("height",15).style("fill",function(t){return a.colorMap.get(t.label)||"#fff"})),e=o.selectAll("text").data(this.refactoredData).enter().append("text").attr("class","mo-legend-text").text(function(t){var e=f.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:""});return""!==e?t.label+" : "+e:t.label});"horizontal"===this.labelMode?(t.attr("x",function(t,e){return 10+100*e}).attr("y",10),e.attr("x",function(t,e){return 35+100*e}).attr("y",23)):(t.attr("x",0).attr("y",function(t,e){return 25*e}),e.attr("x",25).attr("y",function(t,e){return 25*e+13}))},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],FunnelChart.prototype,"data",void 0),__decorate([t.Prop({type:Number}),__metadata("design:type",Number)],FunnelChart.prototype,"height",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],FunnelChart.prototype,"decimal",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],FunnelChart.prototype,"colors",void 0),__decorate([t.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],FunnelChart.prototype,"labelMode",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showValue",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"valuePosition",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showPercentage",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"percentagePosition",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?p:Object)],FunnelChart.prototype,"groupBy",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?p:Object)],FunnelChart.prototype,"aggregate",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],FunnelChart.prototype,"onDataChanged",null);function ga(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function ia(t){t&&t("data-v-03e70940_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var y,p=__decorate([t.Component({})],FunnelChart),tt=(ga._withStripped=!0,normalizeComponent({render:ga,staticRenderFns:[]},ia,p,void 0,!1,void 0,!1,createInjector,void 0,void 0));function GaugeChart(){var t=null!==y&&y.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}__extends(GaugeChart,y=t.Mixins(a)),Object.defineProperty(GaugeChart.prototype,"minValue",{get:function(){var t="string"==typeof this.data.value?parseFloat(this.data.value):this.data.value;return Math.min(this.data.minValue,t)},enumerable:!1,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"maxValue",{get:function(){var t="string"==typeof this.data.value?parseFloat(this.data.value):this.data.value;return Math.max(this.data.maxValue,t)},enumerable:!1,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"labelWithCurrency",{get:function(){var t=(null==(t=this.aggregate)?void 0:t.label)||"",e="currency"===(null==(e=this.aggregate)?void 0:e.dataType)?null==(e=this.data.reportMetadata)?void 0:e.currency:"";return e?t+" ("+e+")":t},enumerable:!1,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"valueWithCurrency",{get:function(){var t=(null==(t=this.data)?void 0:t.value)||0;return f.formatValue(t,"",this.decimal)},enumerable:!1,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=s.select(this.$el).insert("svg",".mo-axis-div-label").attr("width",this.width).attr("height",this.width/2+100),this.defineGradient(),this.backgroundArc=d.arc().innerRadius(this.radius).outerRadius(this.radius).startAngle(this.angleToRadian(this.minAngle)).endAngle(this.angleToRadian(this.maxAngle)),this.arc=d.arc().innerRadius(this.radius).outerRadius(this.radius),this.centerArc=d.arc().innerRadius(8).outerRadius(22).startAngle(this.angleToRadian(-180)).endAngle(this.angleToRadian(180)),this.scale=i.scaleLinear().range([this.minAngle,this.maxAngle]).domain([this.minValue,this.maxValue])},GaugeChart.prototype.renderGauge=function(){var o=this,t=(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))}}),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=this.svg.append("g").attr("transform","translate("+this.width/2+", "+(this.width/2+60)+")");t.append("text").text(f.formatValue(this.data.value,"",this.decimal)).attr("class","mo-gauge-value"),t.append("text").attr("y",25).text([this.label,f.formatValue(this.data.maxValue,"",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=d.line().curve(d.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 o=this;return function(t){var t=(t-90)*(Math.PI/180),e=o.radius-15,n=o.width/2+e*Math.sin(t),a=o.width/2+(5+e)*Math.sin(t),n=[{x:o.width/2+e*Math.cos(t),y:n},{x:o.width/2+(5+e)*Math.cos(t),y:a}];return d.line(function(t){return t.x},function(t){return t.y})(n)}},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof GaugeData&&GaugeData)?p:Object)],GaugeChart.prototype,"data",void 0),__decorate([t.Prop({type:String,default:function(){return"Target"}}),__metadata("design:type",String)],GaugeChart.prototype,"label",void 0),__decorate([t.Prop({type:Number,default:function(){return-90}}),__metadata("design:type",Number)],GaugeChart.prototype,"minAngle",void 0),__decorate([t.Prop({type:Number,default:function(){return 90}}),__metadata("design:type",Number)],GaugeChart.prototype,"maxAngle",void 0),__decorate([t.Prop({type:Array,default:function(){return["#7467cd","#00b9ff"]}}),__metadata("design:type",Array)],GaugeChart.prototype,"gradientColors",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],GaugeChart.prototype,"centerColor",void 0),__decorate([t.Prop({type:Number,default:function(){return 40}}),__metadata("design:type",Number)],GaugeChart.prototype,"ticksNumber",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],GaugeChart.prototype,"decimal",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?p:Object)],GaugeChart.prototype,"aggregate",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],GaugeChart.prototype,"onDataChanged",null);function pa(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"mo-chart"},[t.aggregate?e("div",{staticClass:"mo-axis-div-label"},[t._v("\n "+t._s(t.labelWithCurrency)+"\n ")]):t._e()])}function ra(t){t&&t("data-v-68d16acb_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var v,p=__decorate([t.Component({})],GaugeChart),et=(pa._withStripped=!0,normalizeComponent({render:pa,staticRenderFns:[]},ra,p,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MetricChart(){return null!==v&&v.apply(this,arguments)||this}__extends(MetricChart,v=t.Vue),Object.defineProperty(MetricChart.prototype,"value",{get:function(){return f.formatValue(this.data.value,this.aggregate.unitSymbol,this.decimal)},enumerable:!1,configurable:!0}),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof MetricData&&MetricData)?p:Object)],MetricChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?p:Object)],MetricChart.prototype,"aggregate",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MetricChart.prototype,"decimal",void 0);function ya(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"mo-chart"},[e("div",{staticClass:"mo-metric"},[e("div",{staticClass:"mo-metric-inner"},[e("div",{staticClass:"mo-metric-label"},[t._v("\n "+t._s(t.data.label)+"\n ")]),t._v(" "),e("div",{staticClass:"mo-metric-value"},[t._v("\n "+t._s(t.value)+"\n ")])])])])}function Aa(t){t&&t("data-v-1c412e41_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var w,p=__decorate([t.Component({})],MetricChart),nt=(ya._withStripped=!0,normalizeComponent({render:ya,staticRenderFns:[]},Aa,p,void 0,!1,void 0,!1,createInjector,void 0,void 0));function ScatterChart(){var t=null!==w&&w.apply(this,arguments)||this;return t.width=0,t.height=0,t.svgWidth=0,t.svgHeight=0,t.svg=null,t.xAxisScale=null,t.xAxis=null,t.yAxisScale=null,t.yAxis=null,t.line=null,t.categories=[],t.additionalHeight=0,t}__extends(ScatterChart,w=t.Mixins(a)),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(),e=(this.svgWidth=t,this.svgWidth=t<694?t:t/2+150,this.width=this.svgWidth-this.margin.left-this.margin.right,this.height=this.width,this.svgHeight=this.height+this.margin.top+this.margin.bottom,this.categories=[],this.data.slice(-20)),a=c.max(e,function(t){return t.values[0]}),o=c.max(e,function(t){return t.values[1]});"grouped"===this.groupType&&this.refactorGroupedData(),0<this.categories.length&&(this.additionalHeight=25*this.categories.length+50,a=f.getMaxValue(e,0),o=f.getMaxValue(e,1)),this.svgHeight+=this.additionalHeight,this.svg=(t<694?s.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight):s.select(this.$el).style("text-align","left").append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).style("overflow","visible")).append("g").attr("transform","translate("+this.margin.left+", "+this.margin.top+")"),this.xAxisScale=i.scaleLinear().domain([0,a||10]).range([0,this.width-5]).nice(),this.xAxis=l.axisBottom(this.xAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?f.formatValue(t,"",n.decimal):""}),this.yAxisScale=i.scaleLinear().domain([0,o||10]).range([this.height,0]).nice(),this.yAxis=l.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?f.formatValue(t,"",n.decimal):""}),this.line=d.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(){var t,e;0<this.aggregates.length&&(e=(t="currency"===this.aggregates[0].dataType?null==(t=null==(t=this.data[0])?void 0:t.reportMetadata)?void 0:t.currency:"")?this.aggregates[0].label+" ("+t+")":this.aggregates[0].label,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(e)),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),f.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"),1<this.aggregates.length&&(e=(t="currency"===this.aggregates[1].dataType?null==(e=null==(e=this.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"")?this.aggregates[1].label+" ("+t+")":this.aggregates[1].label,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(e))},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 $j(t,e){e=f.getColor(e,n.colors),n.svg.append("g").selectAll(".mo-data-point").data(t).enter().append("circle").attr("fill",e).attr("cx",0).attr("cy",n.height).attr("r",n.pointRadius).transition().duration(1e3).attr("cx",function(t){return n.xAxisScale(t.values[0])}).attr("cy",function(t){return n.yAxisScale(t.values[1]||0)})}var n=this;"grouped"===this.groupType&&0<this.categories.length?this.categories.forEach(function(t,e){return $j(t.value,e)}):$j(this.data,0)},ScatterChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g"),t=(this.getWidth()<694?(t.attr("transform","translate( 0, 0 )"),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.attr("transform","translate( "+this.svgWidth+",\n -"+(this.svgHeight-this.additionalHeight)+" )"),t.append("text").attr("x",0).attr("y",this.margin.top+this.margin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label),t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label"));t.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 f.getColor(e,n.colors)}),t.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(c.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],ScatterChart.prototype,"data",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"groupings",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"aggregates",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:15,right:0,bottom:80,left:65}}}),__metadata("design:type","function"==typeof(p="undefined"!=typeof ChartMargin&&ChartMargin)?p:Object)],ScatterChart.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],ScatterChart.prototype,"pointRadius",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],ScatterChart.prototype,"decimal",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"groupType",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],ScatterChart.prototype,"colors",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"labelColor",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ScatterChart.prototype,"onDataChanged",null);function Ha(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function Ja(t){t&&t("data-v-e784c97e_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var C,p=__decorate([t.Component({})],ScatterChart),at=(Ha._withStripped=!0,normalizeComponent({render:Ha,staticRenderFns:[]},Ja,p,void 0,!1,void 0,!1,createInjector,void 0,void 0)),k="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",A="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!==C&&C.apply(this,arguments)||this;return t.ready=!1,t.checkedImage=k,t.uncheckedImage=A,t}__extends(TableChart,C=t.Mixins(a)),TableChart.prototype.mounted=function(){this.ready=!0},TableChart.prototype.isNumber=function(t){t=this.data.headers[t];return t&&("datetime"===t.dataType||"currency"===t.dataType||"date"===t.dataType||"int"===t.dataType||"double"===t.dataType||"percent"===t.dataType||"boolean"===t.dataType)},TableChart.prototype.isBoolean=function(t){t=this.data.headers[t];return t&&"boolean"===t.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([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof TableData&&TableData)?p:Object)],TableChart.prototype,"data",void 0);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 Ua(t){t&&t("data-v-44e6dcb5_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var T,a=__decorate([t.Component({})],TableChart),ot=(Sa._withStripped=!0,normalizeComponent({render:Sa,staticRenderFns:[]},Ua,a,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MoGlossaryChart(){return null!==T&&T.apply(this,arguments)||this}__extends(MoGlossaryChart,T=t.Vue),MoGlossaryChart.prototype.parseRichText=function(e){try{return JSON.parse(e).map(function(t){var e,n=t.insert;return"↵"===n||"\n"===n?n="<br />":(n.includes("↵")||n.includes("\n"))&&(n=n.replace(/[\u21B5\n]/g,"<br />")),n=t.attributes&&(e=[],(t=t.attributes).size&&e.push("font-size: "+t.size),t.bold&&(n="<strong>"+n+"</strong>"),t.align&&e.push("text-align: "+t.align),0<e.length)?'<p style="'+e.join(";")+'">'+n+"</p>":n}).join("")}catch(t){return console.error("解析富文本失败:",t),e}},__decorate([t.Prop({type:String,required:!0}),__metadata("design:type",String)],MoGlossaryChart.prototype,"content",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoGlossaryChart.prototype,"title",void 0);function _a(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"mo-glossary-chart"},[t.title?e("div",{staticClass:"mo-glossary-header"},[e("h3",{staticClass:"mo-glossary-title"},[t._v(t._s(t.title))])]):t._e(),t._v(" "),e("div",{staticClass:"mo-glossary-content"},[e("div",{domProps:{innerHTML:t._s(t.parseRichText(t.content))}})])])}function b0(t){t&&t("data-v-cf6c9538_0",{source:"/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-glossary-chart[data-v-cf6c9538] {\n padding: 2rem 1rem;\n width: 100%;\n background-color: #fff;\n color: #16325c;\n line-height: 2rem;\n text-align: left !important;\n}\n.mo-glossary-header[data-v-cf6c9538] {\n margin-bottom: 16px;\n}\n.mo-glossary-title[data-v-cf6c9538] {\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n}\n@media (prefers-color-scheme: dark) {\n.mo-glossary-chart[data-v-cf6c9538] {\n background-color: #1c1c1e;\n color: #f2f2f7;\n}\n}",map:void 0,media:void 0})}var p=__decorate([t.Component({})],MoGlossaryChart),rt=(_a._withStripped=!0,normalizeComponent({render:_a,staticRenderFns:[]},b0,p,"data-v-cf6c9538",!1,void 0,!1,createInjector,void 0,void 0)),it=function(t){t.component("MoBarChart",J),t.component("MoBarChartHorizontal",q),t.component("MoPieChart",$),t.component("MoLineChart",K),t.component("MoFunnelChart",tt),t.component("MoGaugeChart",et),t.component("MoMetricChart",nt),t.component("MoScatterChart",at),t.component("MoTableChart",ot),t.component("MoGlossaryChart",rt)},a=(DataConvertor.prototype.refactorPieces=function(t){var a,o=this,r=[];return t.forEach(function(t){var e;t.pieces&&0<(null==(e=t.pieces)?void 0:e.length)&&t.pieces.forEach(function(t){r.indexOf(t.label)<0&&r.push(t.label)})}),0===r.length?t:(a=[],t.forEach(function(e){var t=JSON.parse(JSON.stringify(e)),n=[];r.forEach(function(t){e.pieces&&0<e.pieces.length&&(t=o.getNewPiece(e.pieces,t),n.push(t))}),t.pieces=n,a.push(t)}),a)},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=""}__extends(DashboardDataConvertor,lt=a),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 a={},e=e.reportResult||{},o=e.reportMetadata,r=e.reportExtendedMetadata,e=t.properties;if(o&&(a.reportId=o.id,a.reportName=o.name),a.header=t.header,a.footer=t.footer,a.title=t.title,e){if("RichText"===e.visualizationType)return a.content=e.content.richTextContent,a.title=e.additionalInfo,a.chartType="RichText",a;a.aggregateColumns=[],a.groupingColumns=[],r&&(t=e.aggregates,n=e.groupings,t&&t.forEach(function(t){var e,n,t=r.aggregateColumnInfo[t.name];t&&(e="","currency"===t.dataType&&(e=(null==o?void 0:o.currency)||""),n=t.label,t=t.dataType,a.aggregateColumns.push({label:n,dataType:t,unitSymbol:e}))}),n)&&n.forEach(function(t){var e,t=r.groupingColumnInfo[t.name];t&&(e=t.label,t=t.dataType,a.groupingColumns.push({label:e,dataType:t}))});var t=e.visualizationType,n=e.visualizationProperties,e=(a.chartType=t,n.showValues),t=n.showPercentages,i=n.showTotal,l=n.groupByType,n=n.aggregateVisualizationInfos,n=void 0===n?[]:n;a.showValues=e,a.showPercentages=t,a.showTotal=i,a.groupByType=l,1<n.length&&(e=n[0],t=n[1],a.plotOnSecondAxis=e.axis!==t.axis,a.plotAsLineChart="Line"===t.visualizationType)}return a},DashboardDataConvertor.prototype.refactorData=function(t,e){var n,e=e.reportResult,a=t.properties;if(a&&"RichText"===a.visualizationType&&((n={}).content=a.content.richTextContent,n.title=a.additionalInfo,n.chartType="RichText"),e&&a){var o=e.groupingsDown.groupings,r=e.factMap,i=e.reportExtendedMetadata,l=e.reportMetadata;switch(a.visualizationType){case"Table":case"FlexTable":n=this.refactorTableData({groupings:o,factMap:r,properties:a,reportExtendedMetadata:i,reportMetadata:l});break;case"Gauge":n=this.refactorGaugeData({factMap:r,properties:a,reportMetadata:l});break;case"Metric":n=this.refactorMetricData({properties:a,factMap:r,reportMetadata:l});break;default:n=this.refactorCommonData({groupings:o,factMap:r,reportMetadata:l,properties:a})}}return n},DashboardDataConvertor.prototype.refactorTableData=function(t){var a,o,r,n,l=this,e=t.groupings,s=t.factMap,i=t.properties,c=t.reportExtendedMetadata,d=t.reportMetadata,p={headers:[],rows:[],totals:[],reportMetadata:d},t=i.visualizationProperties,h=i.sort,m=i.groupings,g=i.visualizationType,u=t.tableColumns,f=c.groupingColumnInfo,b=c.aggregateColumnInfo,x=c.detailColumnInfo,y=-1,v="",w=m.length,_=[],C=[],k=[],S=[];function Mm(t,e){var n=t.cells[y].value,a=e.cells[y].value,t=t.cells[y].label.toLowerCase(),e=e.cells[y].label.toLowerCase();return"date"!==v&&"datetime"!==v||(n=n&&new Date(n),a=a&&new Date(a),t=t&&"-"!==t?new Date(t):new Date("1/1/1970 00:00 am"),e=e&&"-"!==e?new Date(e):new Date("1/1/1970 00:00 am")),"desc"===h.sortOrder?a?n<a?1:-1:e.toString().toLowerCase()>t.toString().toLowerCase()?1:-1:n?a<n?1:-1:e<t?1:-1}return p.headers=[],u.forEach(function(t,e){h&&h.column===t.column&&(y=e),t.showTotal&&S.push(e);var n={};"grouping"===t.type&&f[t.column]?(n=f[t.column],0===f[t.column].groupingLevel?_.push(e):1===f[t.column].groupingLevel&&C.push(e)):"aggregate"===t.type&&b[t.column]?(n=b[t.column],k.push(e)):x[t.column]&&(n=x[t.column]),p.headers.push(n)}),p.rows=[],0<e.length?e.forEach(function(t){var e,o,r,i,n;0<t.groupings.length&&1<w?(n=t).groupings.forEach(function(e){var o={cells:[]},r=(_.forEach(function(t){o.cells[t]={label:n.label}}),C.forEach(function(t){o.cells[t]={label:e.label}}),s[e.key+"!T"].aggregates),i=0;k.forEach(function(t){var e=u[t].column,e=(b[e]||{}).dataType,e="currency"===(void 0===e?"":e)&&(null==d?void 0:d.currency)||"",n=r[i],a=n.value,n=n.label,n=l.formatCurrencyLabel(n,e);o.cells[t]={label:n,value:a||0},i+=1}),p.rows.push(o)}):(e=t,o={cells:[]},0<_.length?_.forEach(function(t){o.cells[t]={label:e.label}}):C.forEach(function(t){o.cells[t]={label:e.label}}),r=s[e.key+"!T"].aggregates,i=0,k.forEach(function(t){var e=u[t].column,e=(b[e]||{}).dataType,e="currency"===(void 0===e?"":e)&&(null==d?void 0:d.currency)||"",n=r[i],a=n.value,n=n.label,n=l.formatCurrencyLabel(n,e);o.cells[t]={label:n,value:a||0},i+=1}),p.rows.push(o))}):s["T!T"]&&s["T!T"].rows&&s["T!T"].rows.forEach(function(t){var e={cells:[]};t.dataCells.forEach(function(t){e.cells.push({label:t.label})}),p.rows.push(e)}),h&&(f[h.column]?v=f[h.column].dataType:b[h.column]?v=b[h.column].dataType:x[h.column]&&(v=x[h.column].dataType),0<_.indexOf(y)?p.rows.sort(function(t,e){var n,a;return t.cells[y].label===e.cells[y].label&&0<C.length?(n=t.cells[C[0]].label,a=e.cells[C[0]].label,n.toLowerCase()>a.toLowerCase()?1:-1):Mm(t,e)}):0<C.indexOf(y)?p.rows.sort(function(t,e){var n,a;return t.cells[y].label===e.cells[y].label?(n=t.cells[0].label,a=e.cells[0].label,n.toLowerCase()>a.toLowerCase()?1:-1):Mm(t,e)}):p.rows.sort(function(t,e){var n,a;return t.cells[y].value===e.cells[y].value&&0<_.length?t.cells[0].label===e.cells[0].label&&0<C.length?(n=t.cells[C[0]].label,a=e.cells[C[0]].label,n.toLowerCase()>a.toLowerCase()?1:-1):t.cells[0].label.toLowerCase()>e.cells[0].label.toLowerCase()?1:-1:Mm(t,e)})),i.maxRows&&(p.rows=p.rows.slice(0,i.maxRows)),p.totals=[],"FlexTable"===g?(a=d.aggregates,o=s["T!T"].aggregates,u.forEach(function(t,e){var n;0===e?p.totals[e]={label:"Total"}:(t=t.column,n=[t,"s!"+t,"a!"+t,"m!"+t,"x!"+t],t=a.findIndex(function(t){return n.includes(t)}),p.totals[e]=0<=t?{label:o[t].label}:{label:"-"})})):(n={},p.rows.forEach(function(t){t.cells.forEach(function(t,e){u[e].showTotal&&(void 0===n[e]&&(n[e]=0),n[e]+=t.value)})}),r=n,0<S.length&&u.forEach(function(t,e){var n,a,o;0===e?p.totals[0]={label:"Total"}:r[e]?(n=r[e],a=t.scale,t=t.isPercent,void 0===a&&(a=2),o=(t=void 0!==t&&t)?100*n:n,n=(o=0<n.toString().indexOf(".")?Number(o.toFixed(a)):o).toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")}),p.totals[e]={label:t?n+"%":n}):p.totals[e]={label:"-"}})),p},DashboardDataConvertor.prototype.refactorGaugeData=function(t){var e=t.factMap,n=t.properties,t=t.reportMetadata,e={value:e["T!T"]?e["T!T"].aggregates[0].value:"",minValue:0,maxValue:0,reportMetadata:t},t=n.visualizationProperties.breakPoints[0].breaks,a=[];return t.forEach(function(t){t.upperBound&&!t.lowerBound&&a.indexOf(0)<0&&a.push(0),t.lowerBound&&a.indexOf(t.lowerBound)<0&&a.push(t.lowerBound),t.upperBound&&a.indexOf(t.upperBound)<0&&a.push(t.upperBound)}),0<a.length?(e.minValue=Math.min.apply(null,a),e.maxValue=Math.max.apply(null,a)):(e.minValue=0,e.maxValue=3),e.value===e.minValue&&e.value===e.maxValue&&(e.maxValue+=1),e},DashboardDataConvertor.prototype.refactorMetricData=function(t){var e=t.properties,n=t.factMap,t=t.reportMetadata;return{label:e.visualizationProperties.metricLabel,value:n["T!T"]?n["T!T"].aggregates[0].value:0,reportMetadata:t}},DashboardDataConvertor.prototype.refactorCommonData=function(t){var e=this,n=t.groupings,a=t.factMap,o=t.reportMetadata,t=t.properties,r=[];return(t.maxRows?n.slice(0,t.maxRows):n).forEach(function(t){r.push(e.recursiveGrouping(t,a,o))}),r=this.refactorPieces(r)},DashboardDataConvertor.prototype.recursiveGrouping=function(t,e,n){var a=this,o={label:t.label,pieces:[],values:e[t.key+"!T"].aggregates.map(function(t){return t.value}),reportMetadata:n},t=t.groupings;return(void 0===t?[]:t).forEach(function(t){o.pieces.push(a.recursiveGrouping(t,e,n))}),o},DashboardDataConvertor.prototype.formatCurrencyLabel=function(t,e){return t.includes(e)?t:e+" "+t};var lt,st=DashboardDataConvertor;function DashboardDataConvertor(t,e){var n=lt.call(this)||this;return n.init(t,e),n}__extends(ReportDataConvertor,ct=a),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,n,a,o,r,i=t.reportMetadata,l=t.reportExtendedMetadata,s=t.factMap,c=l.groupingColumnInfo,d=l.aggregateColumnInfo,t=i.chart,p=i.aggregates;return t?(l=t.groupings,i=t.summaries,e=t.summaryAxisLocations,n=t.summaryVisualizationTypes,a=t.chartType,o=t.showChartPercentages,r=t.showChartTotal,{groupingColumns:l.map(function(t){t=c[t];return{label:t.label,dataType:t.dataType}}),aggregateColumns:i.map(function(t){var e=p.indexOf(t),t=d[t],n=t.label,t=t.dataType,a="";return{label:n,dataType:t,unitSymbol:a="currency"===t?(t=(n=s["T!T"])&&n.aggregates?n.aggregates:[])&&0<t.length&&t[e]&&t[e].label?t[e].label.slice(0,1):"":a}}),chartType:a,showPercentages:o,showTotal:r,groupByType:this.getGroupType(t.chartType),plotOnSecondAxis:1<e.length&&e[0]!==e[1],plotAsLineChart:1<n.length&&"Line"===n[1]}):{groupingColumns:[],aggregateColumn:[],chartType:"",showPercentages:!1,showTotal:!1,groupByType:""}},ReportDataConvertor.prototype.refactorData=function(t){var e,o,a,r,i,l,s,c,d,p,h=t.factMap,n=t.reportMetadata,t=t.groupingsDown,m=n.chart,g=n.aggregates,n=n.groupingsDown,t=t.groupings,u=[];return m&&(e=m.groupings,o=m.summaries,a=o.map(function(t){return g.indexOf(t)}),r=this.getYIndex(n,e),i=this.getGroupedIndex(n,e),l=0,s={},d=c="",p=function(n){l===i&&(d=n.label),l===r&&(c=n.label,s[c]||(s[c]=r===i?[]:{})),r<=i&&l===i||i<r&&l===r?r===i?(s[c]=s[c]||[],a.forEach(function(t,e){s[c][e]=h[n.key+"!T"].aggregates[t].value})):r<i?(s[c][n.label]=s[c][n.label]||[],a.forEach(function(t,e){s[c][n.label][e]=h[n.key+"!T"].aggregates[t].value})):i<r&&(s[c][d]=s[c][d]||[],a.forEach(function(t,e){s[c][d][e]=h[n.key+"!T"].aggregates[t].value})):(l+=1,n.groupings.forEach(function(t){p(t)}),--l)},t.forEach(function(t){l+=1,p(t),--l}),m=Object.keys(s),m.forEach(function(e){var a;r===i?u.push({label:e,values:s[e]}):(a={label:e,pieces:[],values:[]},Object.keys(s[e]).forEach(function(t){a.pieces.push({label:t,values:s[e][t]})}),a.values=[],(a.pieces||[]).forEach(function(n){o.forEach(function(t,e){a.values[e]=a.values[e]||0,a.values[e]+=n.values[e]||0})}),u.push(a))}),u=this.refactorPieces(u)),u},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){t=t.findIndex(function(t){return t.name===e[0]});return 0<=t?t+1:1},ReportDataConvertor.prototype.getGroupedIndex=function(t,e){var n=2===e.length?e[1]:e[0],e=t.findIndex(function(t){return t.name===n});return 0<=e?e+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,t=t.hasDetailRows,e=e.reportFormat,o=n.detailColumnInfo,n={format:e,showHeader:t,headers:Object.keys(o).map(function(t){return o[t]}),rows:[]},e=a["T!T"],a=e.rows,e=e.aggregates,t=(t&&(n.rows=a.map(function(t){return{id:R.v4(),type:"data",cells:t.dataCells}})),e.findIndex(function(t){return"RowCount"===t})),r=0;return-1<t?r=e[t].label:1===e.length?r=e[0].label:a&&(r=a.length),n.rows.push({id:R.v4(),type:"grand-total",label:"Grand Totals",grand:!0,background:this.getBackground(3),recordCount:r}),n},ReportDataConvertor.prototype.convertSummary=function(t){var l=this,e=t.reportMetadata,n=t.reportExtendedMetadata,a=t.groupingsDown,s=t.factMap,t=e.reportFormat,o=e.groupingsDown,c=e.aggregates,d=e.detailColumns,r=e.hasRecordCount,p=e.hasDetailRows,h=e.showSubtotals,e=e.showGrandTotal,i=n.groupingColumnInfo,m=n.detailColumnInfo,n=a.groupings,g={format:t,showHeader:!0,headers:[],rows:[],hasRecordCount:r},u=0,f=o.map(function(t){return i[t.name].label}),b=c.map(function(t){t=t.split("!");return t[1]||t[0]}),x=(d.forEach(function(t){(p||b.includes(t))&&g.headers.push(m[t])}),function(t){var e=t.key,n=t.label,a=t.groupings,t=t.value,o=e.split("_").length-1,r=l.getBackground(o),i={id:R.v4(),type:"group",level:o,background:r,margin:5*o,label:n,value:t,fieldLabel:f[o],recordCount:0},r=s[e+"!T"],n=r.aggregates,t=r.rows,o=c.findIndex(function(t){return"RowCount"===t});-1<o?i.recordCount=n[o].label:t&&((i.recordCount=0)<a.length?a.forEach(function(t){var e=t.groupings;0<e.length?e.forEach(function(t){t=s[t.key+"!T"].rows.length;i.recordCount+=t}):(e=s[t.key+"!T"].rows.length,i.recordCount+=e,u+=e)}):(e=t.length,u+=i.recordCount=e)),g.rows.push(i),0===a.length?p&&(r=t.map(function(t){return{id:R.v4(),type:"data",cells:t.dataCells}}),(o=g.rows).push.apply(o,r)):a.forEach(function(t){x(t)}),h&&(e={id:R.v4(),type:"subtotals",label:l.languageLocaleKey&&l.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",grand:!1,background:l.getBackground(3)},g.rows.push(e),0<c.length)&&(t=l.getSummaryAggregateRows({aggregates:c,hasDetailRows:p,detailColumns:d,rowAggregates:n,background:e.background}),(o=g.rows).push.apply(o,t))}),a=(n.forEach(function(t){x(t)}),s["T!T"].aggregates),t=c.findIndex(function(t){return"RowCount"===t}),r=0,r=-1<t?a[t].label:u;return e&&(o={id:R.v4(),type:"grand-total",label:this.languageLocaleKey&&this.languageLocaleKey.startsWith("zh")?"总计":"Grand Total",grand:!0,background:this.getBackground(3),recordCount:r},g.rows.push(o),0<c.length)&&(n=this.getSummaryAggregateRows({aggregates:c,hasDetailRows:p,detailColumns:d,rowAggregates:a,background:o.background,isGrand:!0}),(t=g.rows).push.apply(t,n)),g},ReportDataConvertor.prototype.convertMatrix=function(t){function Ur(t,e,n){for(var a={id:R.v4(),cells:[]},o=0;o<C;o+=1)a.cells.push({value:""});e?a.cells.push({label:y[e.name].label,value:y[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:y[e.name].dataType},t.dataCells[i]))}for(var l=A-(C+1)-n-S.length-1,s=0;s<l;s+=1)a.cells.push({value:""});return S.forEach(function(n){t.dataCells.forEach(function(t,e){n.key===e&&a.cells.push(F({type:y[n.name].dataType},t))})}),a}var a,e,n,i=this,o=t.reportMetadata,r=t.reportExtendedMetadata,l=t.groupingsAcross,s=t.groupingsDown,m=t.factMap,t=o.groupingsAcross,c=o.groupingsDown,g=o.aggregates,d=o.detailColumns,p=o.reportFormat,u=o.hasRecordCount,f=o.hasDetailRows,b=o.showSubtotals,o=o.showGrandTotal,h=r.groupingColumnInfo,x=r.aggregateColumnInfo,y=r.detailColumnInfo,v=l.groupings,r=s.groupings,w={showHeader:!0,format:p,headers:[],rows:[]},_=t.length,C=c.length,k=[],S=[],A=1<g.length||1<_?C+1:C;if(f)for(var T=0;T<d.length;T+=1){var M=d[T];(0<g[0].indexOf(M)?k:S).push({key:T,name:M})}return w.headers.push((a={cells:[]},l=1<g.length?"":x[g[0]].label,a.cells.push({value:l,colspan:1===_&&1<g.length?C+1:C}),t.forEach(function(t){0===h[t.name].groupingLevel&&a.cells.push({value:h[t.name].label,colspan:1===_?v.length:0,type:1===_?"group-value":""})}),v.forEach(function(t){var e=0,n=t.label,t=t.groupings;1===_||0===t.length?A+=1:(0<t.length&&(e=t.length+1,A+=e),a.cells.push({value:n,colspan:e,type:"group-value"}))}),a.cells.push({value:"Grand Total",type:"double"}),A+=1,f&&(A+=S.length,l=S.map(function(){return{value:""}}),(s=a.cells).push.apply(s,l)),a)),w.headers.push((e={cells:[]},p=c.map(function(t){return{value:h[t.name].label}}),(s=e.cells).push.apply(s,p),1<_?(t.forEach(function(t){1===h[t.name].groupingLevel&&e.cells.push({value:h[t.name].label})}),v.forEach(function(t){t.groupings.forEach(function(t){e.cells.push({value:t.label,type:"group-value"})}),e.cells.push({value:"Subtotal",type:"double"})})):(1<g.length&&(1<C||1===C&&1===_)&&e.cells.push({value:""}),s=v.map(function(t){return{value:t.label,type:"group-value"}}),(p=e.cells).push.apply(p,s)),e.cells.push({value:""}),f&&(p=S.map(function(t){return{value:y[t.name].label,type:y[t.name].dataType}}),(s=e.cells).push.apply(s,p)),e)),w.columnLength=A,r.forEach(function(a,h){var t,e,d;1<C?(a.groupings.forEach(function(e,d){var t,n=[],p=[];g.forEach(function(l,s){var c,t;"RowCount"===l&&!u||(c={id:R.v4(),cells:[]},0===d&&0===s?c.cells.push({label:a.label,value:a.label}):c.cells.push({value:""}),0===s?c.cells.push({label:e.label,value:e.label}):c.cells.push({value:""}),(1<g.length||1<_)&&c.cells.push(x[l]),v.forEach(function(r,i){1<_?r.groupings.forEach(function(t,e){var n,a=[h+"_"+d,i+"_"+e].join("!"),a=m[a],o=a&&a.aggregates?a.aggregates:[],a=a&&a.rows?a.rows:[],o=o[s]||{};o.type=x[l]?x[l].dataType:"",c.cells.push(o),f&&(n=(r.groupings.length+1)*i+e,a.forEach(function(e){0<k.length?p.push.apply(p,k.map(function(t){return Ur(e,t,n)})):p.push(Ur(e,null,n))}))}):f&&(t=(t=m[h+"_"+d+"!"+i])&&t.rows?t.rows:[],n=i,t.forEach(function(e){var t;0<k.length?k.forEach(function(t){t=Ur(e,t,n);p.push(t)}):(t=Ur(e,null,n),p.push(t))}));var n,t=m[h+"_"+d+"!"+i],t=t&&t.aggregates?t.aggregates:[];t&&0<t.length&&c.cells.push(F({type:x[l].dataType},t[s]))}),(t=(t=m[h+"_"+d+"!T"])&&t.aggregates?t.aggregates:[])&&0<t.length&&c.cells.push(F({type:x[l].dataType},t[s])),f&&S.forEach(function(){c.cells.push({value:""})}),n.push(c))}),(t=w.rows).push.apply(t,n),(t=w.rows).push.apply(t,p)}),b&&g.forEach(function(t,a){var o;"RowCount"===t&&!u||((o={id:R.v4(),cells:[]}).cells.push({value:""}),0===a?o.cells.push({label:i.languageLocaleKey&&i.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",value:"Subtotal",type:"double"}):o.cells.push({value:""}),(1<g.length||1<_)&&o.cells.push({label:x[t].label,value:x[t].label}),v.forEach(function(t,n){t.groupings.forEach(function(t,e){e=[h,n+"_"+e].join("!");o.cells.push(F({type:"double"},m[e].aggregates[a]))}),o.cells.push(F({type:"double"},m[h+"!"+n].aggregates[a]))}),o.cells.push(F({type:"double"},m[h+"!T"].aggregates[a])),S.forEach(function(){o.cells.push({value:""})}),w.rows.push(o))})):(e=[],d=[],g.forEach(function(l,s){var c;("RowCount"!==l||u)&&(c={id:R.v4(),cells:[]},0===s?c.cells.push({label:a.label,value:a.value}):c.cells.push({value:""}),(1<g.length||1<_)&&c.cells.push({label:x[l].label,value:x[l].label,type:x[l].dataType}),v.forEach(function(r,i){var t,n;1<_?r.groupings.forEach(function(t,e){var n,a=[h,i+"_"+e].join("!"),a=m[a],o=a&&a.rows?a.rows:[],a=a&&a.aggregates?a.aggregates:[];c.cells.push(F({type:x[l].dataType},a[s])),f&&(n=(r.groupings.length+1)*i+e,o.forEach(function(e){var t;0<k.length?k.forEach(function(t){t=Ur(e,t,n);d.push(t)}):(t=Ur(e,null,n),d.push(t))}))}):f&&(t=(t=m[h+"!"+i])&&t.rows?t.rows:[],n=i,t.forEach(function(e){var t;0<k.length?k.forEach(function(t){t=Ur(e,t,n);d.push(t)}):(t=Ur(e,null,n),d.push(t))})),c.cells.push(F({type:x[l].dataType},m[h+"!"+i].aggregates[s]))}),c.cells.push(F({type:x[l].dataType},m[h+"!T"].aggregates[s])),f&&S.forEach(function(){c.cells.push({value:""})}),u)&&e.push(c)}),(t=w.rows).push.apply(t,e),(t=w.rows).push.apply(t,d))}),o&&(n=[],g.forEach(function(a,o){var r;"RowCount"===a&&!u||(r={id:R.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<C&&r.cells.push({value:""}),(1<g.length||1<_)&&r.cells.push({label:x[a].label,value:x[a].label}),v.forEach(function(t,n){1<_&&t.groupings.forEach(function(t,e){r.cells.push(F({type:x[a].dataType},m["T!"+n+"_"+e].aggregates[o]))}),r.cells.push(F({type:x[a].dataType},m["T!"+n].aggregates[o]))}),r.cells.push(F({type:x[a].dataType},m["T!T"].aggregates[o])),S.forEach(function(){r.cells.push({value:""})}),n.push(r))}),(l=w.rows).push.apply(l,n)),w},ReportDataConvertor.prototype.getSummaryAggregateRows=function(t){for(var l=t.aggregates,e=t.hasDetailRows,n=t.detailColumns,s=t.rowAggregates,a=t.background,t=t.isGrand,o=void 0!==t&&t,r=[],c={},d={s:"",m:"min",mx:"max",a:"avg"},i=(l.forEach(function(t){var e=t.split("!"),e=e[e.length-1];c[e]=c[e]||[],c[e].push(t)}),0),p=(Object.keys(c).forEach(function(t){c[t]&&c[t].length>i&&(i=c[t].length)}),0);p<i;p+=1)!function(i){var t={id:R.v4(),type:"group-aggregate",grand:o,background:a,cells:[]};n.forEach(function(o){var r;(e||c[o])&&(r={label:"",value:""},Object.keys(c).forEach(function(e){var t,n,a;o===e&&0<=(t=l.findIndex(function(t){return t===c[e][i]}))&&(n=l[t].split("!")[0],a=s[t].label,r.label=(n=d[n])?n+" "+a:a,r.value=s[t].value)}),t.cells.push(r))}),r.push(t)}(p);return r},ReportDataConvertor.prototype.getBackground=function(t){return"rgb("+(237-10*t)+", "+(241-10*t)+", "+(247-10*t)+")"};var ct,M,dt=ReportDataConvertor;function ReportDataConvertor(t,e){var n=ct.call(this)||this;return n.tableData={headers:[],rows:[],showHeader:!0,format:""},n.languageLocaleKey=e,n.init(t),n}function SFBarChart(){return null!==M&&M.apply(this,arguments)||this}__extends(SFBarChart,M=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFBarChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFBarChart.prototype,"metadata",void 0);function m0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 P,p=__decorate([t.Component({components:{BarChart:J}})],SFBarChart),j=(m0._withStripped=!0,normalizeComponent({render:m0,staticRenderFns:[]},void 0,p,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFFunnelChart(){return null!==P&&P.apply(this,arguments)||this}__extends(SFFunnelChart,P=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFFunnelChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFFunnelChart.prototype,"metadata",void 0);function v0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 B,a=__decorate([t.Component({components:{FunnelChart:tt}})],SFFunnelChart),D=(v0._withStripped=!0,normalizeComponent({render:v0,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFGaugeChart(){return null!==B&&B.apply(this,arguments)||this}__extends(SFGaugeChart,B=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof GaugeData&&GaugeData)?p:Object)],SFGaugeChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGaugeChart.prototype,"metadata",void 0);function E0(){var t=this,e=t.$createElement,e=t._self._c||e;return void 0!==t.data.value?e("gauge-chart",{attrs:{data:t.data,decimal:2,aggregate:t.metadata.aggregateColumns[0]}}):t._e()}var pt,a=__decorate([t.Component({components:{GaugeChart:et}})],SFGaugeChart),ht=(E0._withStripped=!0,normalizeComponent({render:E0,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFHorizontalBarChart(){return null!==pt&&pt.apply(this,arguments)||this}__extends(SFHorizontalBarChart,pt=t.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:!1,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barHeight",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?13:23},enumerable:!1,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barPadding",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?20:15},enumerable:!1,configurable:!0}),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFHorizontalBarChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFHorizontalBarChart.prototype,"metadata",void 0);function N0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 mt,p=__decorate([t.Component({components:{BarChartHorizontal:q}})],SFHorizontalBarChart),L=(N0._withStripped=!0,normalizeComponent({render:N0,staticRenderFns:[]},void 0,p,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFLineChart(){return null!==mt&&mt.apply(this,arguments)||this}__extends(SFLineChart,mt=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFLineChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFLineChart.prototype,"metadata",void 0);function W0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 gt,a=__decorate([t.Component({components:{LineChart:K}})],SFLineChart),E=(W0._withStripped=!0,normalizeComponent({render:W0,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFMetricChart(){return null!==gt&&gt.apply(this,arguments)||this}__extends(SFMetricChart,gt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof MetricData&&MetricData)?p:Object)],SFMetricChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMetricChart.prototype,"metadata",void 0);function db(){var t=this.$createElement;return(this._self._c||t)("metric-chart",{attrs:{data:this.data,aggregate:this.metadata.aggregateColumns[0],decimal:2}})}var ut,a=__decorate([t.Component({components:{MetricChart:nt}})],SFMetricChart),ft=(db._withStripped=!0,normalizeComponent({render:db,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFPieChart(){return null!==ut&&ut.apply(this,arguments)||this}__extends(SFPieChart,ut=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFPieChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFPieChart.prototype,"metadata",void 0),__decorate([t.Prop({type:Object,required:!1}),__metadata("design:type",Object)],SFPieChart.prototype,"area",void 0);function mb(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 bt,p=__decorate([t.Component({components:{PieChart:$}})],SFPieChart),O=(mb._withStripped=!0,normalizeComponent({render:mb,staticRenderFns:[]},void 0,p,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFScatterChart(){return null!==bt&&bt.apply(this,arguments)||this}__extends(SFScatterChart,bt=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFScatterChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFScatterChart.prototype,"metadata",void 0);function vb(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("scatter-chart",{attrs:{data:t.data,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns,"group-type":t.metadata.groupByType,decimal:2}}):t._e()}var xt,a=__decorate([t.Component({components:{ScatterChart:at}})],SFScatterChart),N=(vb._withStripped=!0,normalizeComponent({render:vb,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFTableChart(){return null!==xt&&xt.apply(this,arguments)||this}__extends(SFTableChart,xt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(p="undefined"!=typeof TableData&&TableData)?p:Object)],SFTableChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFTableChart.prototype,"metadata",void 0);function Eb(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.headers.length?e("table-chart",{attrs:{data:t.data}}):t._e()}var yt,a=__decorate([t.Component({components:{TableChart:ot}})],SFTableChart),vt=(Eb._withStripped=!0,normalizeComponent({render:Eb,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFGlossaryChart(){return null!==yt&&yt.apply(this,arguments)||this}__extends(SFGlossaryChart,yt=t.Vue),Object.defineProperty(SFGlossaryChart.prototype,"content",{get:function(){var t;return(null==(t=this.data)?void 0:t.content)||""},enumerable:!1,configurable:!0}),Object.defineProperty(SFGlossaryChart.prototype,"title",{get:function(){var t;return(null==(t=this.metadata)?void 0:t.title)||""},enumerable:!1,configurable:!0}),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGlossaryChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGlossaryChart.prototype,"metadata",void 0);function Nb(){var t=this.$createElement;return(this._self._c||t)("glossary-chart",{attrs:{content:this.content,title:this.title}})}var wt,_t,p=__decorate([t.Component({components:{GlossaryChart:rt}})],SFGlossaryChart),Ct=(Nb._withStripped=!0,normalizeComponent({render:Nb,staticRenderFns:[]},void 0,p,void 0,!1,void 0,!1,void 0,void 0,void 0)),kt=["All values are negative or zero.","Pie, donut, funnel, and stacked charts require at least one positive value to display."].join(" "),a=(__extends(SFChartMixins,wt=t.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([t.Prop({type:String,default:function(){return"No data to display."}}),__metadata("design:type",String)],SFChartMixins.prototype,"noDataText",void 0),__decorate([t.Prop({type:String,default:function(){return kt}}),__metadata("design:type",String)],SFChartMixins.prototype,"negativeDataText",void 0),__decorate([t.Component],SFChartMixins));function SFChartMixins(){return null!==wt&&wt.apply(this,arguments)||this}function SFDashboardChart(){var t=null!==_t&&_t.apply(this,arguments)||this;return t.functional=!0,t}__extends(SFDashboardChart,_t=t.Mixins(a)),Object.defineProperty(SFDashboardChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!1,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"hasError",{get:function(){return this.data.status.errorCode},enumerable:!1,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:!1,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:!1,configurable:!0}),SFDashboardChart.prototype.render=function(t){var e,n=new st(this.metadata,this.data),n=(this.refactoredData=n.data,this.refactoredMetadata=n.metadata,[]);return"RichText"===this.chartType?n.push(this.renderChart(t)):this.hasError?(e=this.data.status.errorSeverity+": "+this.data.status.errorMessage,n.push(this.renderError(t,e))):this.isEmpty?n.push(this.renderPrompt(t,this.noDataText)):this.isNegative?n.push(this.renderPrompt(t,this.negativeDataText)):n.push(this.renderChart(t)),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};if("RichText"===this.chartType)return t(Ct,{props:e});if("Bar"===this.chartType)return t(L,{props:e});if("Column"!==this.chartType){if("Donut"===this.chartType||"Pie"===this.chartType)return 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(O,{props:e});if("Funnel"===this.chartType)return t(D,{props:e});if("Gauge"===this.chartType)return t(ht,{props:e});if("Line"===this.chartType)return t(E,{props:e});if("Metric"===this.chartType)return t(ft,{props:e});if("Scatter"===this.chartType)return t(N,{props:e});if("Table"===this.chartType||"FlexTable"===this.chartType)return t(vt,{props:e});console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart.")}return t(j,{props:e})},__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"data",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"metadata",void 0);var St,At=normalizeComponent({},function(t){t&&t("data-v-f74e543c_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: 1.4rem;\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: 1.4rem;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n height: 100% !important;\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})},__decorate([t.Component({components:{SFBarChart:j,SFFunnelChart:D,SFHorizontalBarChart:L,SFLineChart:E,SFGaugeChart:ht,SFMetricChart:ft,SFPieChart:O,SFScatterChart:N,SFTableChart:vt,SFGlossaryChart:Ct}})],SFDashboardChart),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFReportChart(){var t=null!==St&&St.apply(this,arguments)||this;return t.functional=!0,t}__extends(SFReportChart,St=t.Mixins(a)),Object.defineProperty(SFReportChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!1,configurable:!0}),Object.defineProperty(SFReportChart.prototype,"isEmpty",{get:function(){return!this.refactoredData||0===this.refactoredData.length},enumerable:!1,configurable:!0}),SFReportChart.prototype.render=function(t){var e=new dt(this.data),e=(this.refactoredData=e.data,this.refactoredMetadata=e.metadata,[]);return this.isEmpty?e.push(this.renderPrompt(t,this.noDataText)):e.push(this.renderChart(t)),t("div",{staticClass:"sf-analytics-chart",class:"sf-"+this.chartType.toLowerCase().replace(/\s/g,"-")+"-chart"},e)},SFReportChart.prototype.renderChart=function(t){var e={data:this.refactoredData,metadata:this.refactoredMetadata,area:this.area};if("Horizontal Bar"===this.chartType||"Horizontal Bar Grouped"===this.chartType||"Horizontal Bar Stacked"===this.chartType||"Horizontal Bar Stacked to 100"===this.chartType)return t(L,{props:e});if("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){if("Donut"===this.chartType||"Pie"===this.chartType)return 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(O,{props:e});if("Funnel"===this.chartType)return t(D,{props:e});if("Line"===this.chartType||"Line Cumulative"===this.chartType||"Line Grouped"===this.chartType||"Line Cumulative Grouped"===this.chartType)return t(E,{props:e});if("Scatter"===this.chartType||"Scatter Grouped"===this.chartType)return t(N,{props:e});console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart.")}return t(j,{props:e})},__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"data",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"area",void 0);var Tt,Mt=normalizeComponent({},function(t){t&&t("data-v-6f6bdd71_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: 1.4rem;\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: 1.4rem;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n height: 100% !important;\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})},__decorate([t.Component({components:{SFBarChart:j,SFFunnelChart:D,SFHorizontalBarChart:L,SFLineChart:E,SFPieChart:O,SFScatterChart:N}})],SFReportChart),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFGroupingTableGroupRow(){return null!==Tt&&Tt.apply(this,arguments)||this}__extends(SFGroupingTableGroupRow,Tt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"hasRecordCount",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"isID",void 0);function l1(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"group-row"},[t("div",{staticClass:"label",style:{"margin-left":e.data.margin}},[e._v(e._s(e.data.fieldLabel))]),e._v(" "),t("div",{staticClass:"label-mark"},[e._v(":")]),e._v(" "),t("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?t("div",{staticClass:"count-left-mark"},[e._v("(")]):e._e(),e._v(" "),e.hasRecordCount?t("div",{staticClass:"count"},[e._v(e._s(e.data.recordCount))]):e._e(),e._v(" "),e.hasRecordCount?t("div",{staticClass:"count-right-mark"},[e._v(")")]):e._e()])}function n1(t){t&&t("data-v-bf797e44_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.group-row[data-v-bf797e44] {\n font-size: 1.2rem;\n padding: 0px 10px;\n position: relative;\n}\n.group-row[data-v-bf797e44]: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-bf797e44]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-bf797e44]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-bf797e44]:before {\n transform-origin: 0% 33%;\n}\n.group-row[data-v-bf797e44]: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-bf797e44]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-bf797e44]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-bf797e44]:after {\n transform-origin: 66% 33%;\n}\n.group-row .label[data-v-bf797e44], .group-row .value[data-v-bf797e44], .group-row .count[data-v-bf797e44] {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.group-row .label[data-v-bf797e44], .group-row .count[data-v-bf797e44] {\n font-weight: bold;\n}\n.group-row .value[data-v-bf797e44], .group-row .count-left-mark[data-v-bf797e44] {\n margin-left: 5px;\n}\n.group-row .label[data-v-bf797e44], .group-row .value[data-v-bf797e44] {\n max-width: 30%;\n}\n.group-row .count[data-v-bf797e44] {\n max-width: calc(40% - 22px);\n}\n.group-row .label-mark[data-v-bf797e44], .group-row .count-left-mark[data-v-bf797e44], .group-row .count-right-mark[data-v-bf797e44] {\n float: left;\n width: 4px;\n}\n.group-row .value.id[data-v-bf797e44] {\n color: #09afe6;\n}',map:void 0,media:void 0})}var zt,p=__decorate([t.Component({})],SFGroupingTableGroupRow),Rt=(l1._withStripped=!0,normalizeComponent({render:l1,staticRenderFns:[]},n1,p,"data-v-bf797e44",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableAggregateRow(){return null!==zt&&zt.apply(this,arguments)||this}__extends(SFGroupingTableAggregateRow,zt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableAggregateRow.prototype,"data",void 0);function u1(){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)}function w1(t){t&&(t("data-v-312cab28_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.aggregate-row[data-v-312cab28] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 1.2rem;\n}\n.aggregate-row .data-cell[data-v-312cab28] {\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-312cab28]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform-origin: 0% 33%;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform-origin: 66% 33%;\n}',map:void 0,media:void 0}),t("data-v-312cab28_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-312cab28] {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform-origin: 66% 33%;\n}\n.aggregate-row .data-cell[data-v-312cab28]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))}var Ft,a=__decorate([t.Component({})],SFGroupingTableAggregateRow),Pt=(u1._withStripped=!0,normalizeComponent({render:u1,staticRenderFns:[]},w1,a,"data-v-312cab28",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableTotalRow(){return null!==Ft&&Ft.apply(this,arguments)||this}__extends(SFGroupingTableTotalRow,Ft=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"hasRecordCount",void 0);function D1(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"total-row"},[e("div",{staticClass:"label"},[t._v(t._s(t.data.label))]),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?e("div",{staticClass:"count-left-mark"},[t._v("(")]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?e("div",{staticClass:"count"},[t._v(t._s(t.data.recordCount))]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?e("div",{staticClass:"count-right-mark"},[t._v(")")]):t._e()])}function F1(t){t&&t("data-v-1772f5f6_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.total-row[data-v-1772f5f6] {\n font-size: 1.2rem;\n padding: 0px 10px;\n position: relative;\n}\n.total-row[data-v-1772f5f6]: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-1772f5f6]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-1772f5f6]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-1772f5f6]:before {\n transform-origin: 0% 33%;\n}\n.total-row[data-v-1772f5f6]: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-1772f5f6]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-1772f5f6]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-1772f5f6]:after {\n transform-origin: 66% 33%;\n}\n.total-row .label[data-v-1772f5f6], .total-row .count[data-v-1772f5f6] {\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-1772f5f6] {\n margin-left: 5px;\n}\n.total-row .label[data-v-1772f5f6] {\n max-width: 20%;\n}\n.total-row .count[data-v-1772f5f6] {\n max-width: calc(80% - 13px);\n}\n.total-row .count-left-mark[data-v-1772f5f6], .total-row .count-right-mark[data-v-1772f5f6] {\n float: left;\n width: 4px;\n}',map:void 0,media:void 0})}var Gt,p=__decorate([t.Component({})],SFGroupingTableTotalRow),jt=(D1._withStripped=!0,normalizeComponent({render:D1,staticRenderFns:[]},F1,p,"data-v-1772f5f6",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableDataRow(){var t=null!==Gt&&Gt.apply(this,arguments)||this;return t.checkedImage=k,t.uncheckedImage=A,t}__extends(SFGroupingTableDataRow,Gt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"data",void 0),__decorate([t.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isNumber",void 0),__decorate([t.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isBoolean",void 0),__decorate([t.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isHTML",void 0),__decorate([t.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isURL",void 0),__decorate([t.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isPhone",void 0),__decorate([t.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isEmail",void 0),__decorate([t.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isText",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isID",void 0);function M1(){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)}function O1(t){t&&(t("data-v-1e6a0df5_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.data-row[data-v-1e6a0df5] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 1.2rem;\n}\n.data-row .data-cell[data-v-1e6a0df5] {\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-1e6a0df5]: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-1e6a0df5]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-1e6a0df5]: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-1e6a0df5]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform-origin: 0% 33%;\n}\n.data-row .data-cell .checkbox[data-v-1e6a0df5] {\n width: 18px;\n padding-top: 13px;\n}\n.data-row .data-cell.number-cell[data-v-1e6a0df5] {\n text-align: right;\n}\n.data-row .data-cell .id[data-v-1e6a0df5] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-1e6a0df5_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-1e6a0df5] {\n position: relative;\n}\n.data-row .data-cell[data-v-1e6a0df5]: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-1e6a0df5]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-1e6a0df5]:first-child {\n position: relative;\n}\n.data-row .data-cell[data-v-1e6a0df5]: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-1e6a0df5]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))}var Bt,Dt,a=__decorate([t.Component({})],SFGroupingTableDataRow),Lt=(M1._withStripped=!0,normalizeComponent({render:M1,staticRenderFns:[]},O1,a,"data-v-1e6a0df5",!1,void 0,!1,createInjector,void 0,void 0)),p=(__extends(SFTableRowMixins,Bt=t.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))},__decorate([t.Component],SFTableRowMixins));function SFTableRowMixins(){return null!==Bt&&Bt.apply(this,arguments)||this}function SFGroupingTableRow(){var t=null!==Dt&&Dt.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}__extends(SFGroupingTableRow,Dt=t.Mixins(p)),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(Rt,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})):"group-aggregate"===this.source.type?n.push(t(Pt,{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(jt,{props:a})):"data"===this.source.type&&n.push(t(Lt,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})),n},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"source",void 0),__decorate([t.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"hasRecordCount",void 0),__decorate([t.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellNumber",void 0),__decorate([t.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellBoolean",void 0),__decorate([t.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellHTML",void 0),__decorate([t.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellURL",void 0),__decorate([t.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellPhone",void 0),__decorate([t.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellEmail",void 0),__decorate([t.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellText",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellID",void 0),__decorate([t.Provide("isNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isNumber",void 0),__decorate([t.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isBoolean",void 0),__decorate([t.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isURL",void 0),__decorate([t.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isHTML",void 0),__decorate([t.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isPhone",void 0),__decorate([t.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isEmail",void 0),__decorate([t.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isText",void 0),__decorate([t.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isID",void 0);var Et,It=normalizeComponent({},void 0,__decorate([t.Component({components:{GroupRow:Rt,AggregateRow:Pt,TotalRow:jt,DataRow:Lt}})],SFGroupingTableRow),void 0,void 0,void 0,!1,void 0,void 0,void 0);function SFGroupingTable(){var t=null!==Et&&Et.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=It,t}__extends(SFGroupingTable,Et=t.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){t=this.data.headers[t];return!!t&&("datetime"===t.dataType||"currency"===t.dataType||"date"===t.dataType||"int"===t.dataType||"double"===t.dataType||"percent"===t.dataType||"boolean"===t.dataType)},SFGroupingTable.prototype.isBoolean=function(t){t=this.data.headers[t];return!!t&&"boolean"===t.dataType},SFGroupingTable.prototype.isURL=function(t){t=this.data.headers[t];return!!t&&"url"===t.dataType},SFGroupingTable.prototype.isHTML=function(t){t=this.data.headers[t];return!!t&&"html"===t.dataType},SFGroupingTable.prototype.isPhone=function(t){t=this.data.headers[t];return!!t&&"phone"===t.dataType},SFGroupingTable.prototype.isEmail=function(t){t=this.data.headers[t];return!!t&&"email"===t.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){var n;return!!e&&(n=new RegExp("^[a-zA-Z0-9]+$"),this.sobjects.some(function(t){return n.test(e)&&(15===e.length||18===e.length)&&t.layoutable&&(""+e).startsWith(t.keyPrefix)}))},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTable.prototype,"data",void 0),__decorate([t.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFGroupingTable.prototype,"sobjects",void 0),__decorate([t.Provide("isCellNumber"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellNumber",void 0),__decorate([t.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellBoolean",void 0),__decorate([t.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellURL",void 0),__decorate([t.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellHTML",void 0),__decorate([t.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellPhone",void 0),__decorate([t.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellEmail",void 0),__decorate([t.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellText",void 0),__decorate([t.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellID",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFGroupingTable.prototype,"onDataChanged",null);function cc(){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)}function ec(t){t&&(t("data-v-74212ca2_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-74212ca2_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-grouping-table[data-v-74212ca2] {\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-74212ca2] {\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-74212ca2] {\n flex: 1;\n color: #ffffff;\n font-size: 1.6rem;\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-74212ca2]:not(:last-child) {\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-74212ca2]: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-74212ca2]: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-74212ca2]: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-74212ca2]:not(:last-child):after {\n transform-origin: 66% 33%;\n}\n.sf-grouping-table .sf-grouping-table-content[data-v-74212ca2] {\n width: 100%;\n height: calc(100% - 44px);\n overflow-y: auto;\n}',map:void 0,media:void 0}))}var Ot,a=__decorate([t.Component({components:{VirtualList:e}})],SFGroupingTable),Nt=(cc._withStripped=!0,normalizeComponent({render:cc,staticRenderFns:[]},ec,a,"data-v-74212ca2",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTableRow(){var t=null!==Ot&&Ot.apply(this,arguments)||this;return t.checkedImage=k,t.uncheckedImage=A,t}__extends(SFMatrixTableRow,Ot=t.Mixins(p)),SFMatrixTableRow.prototype.isText=function(t){return"boolean"!==t&&"url"!==t&&"html"!==t&&"email"!==t&&"phone"!==t},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"source",void 0),__decorate([t.Prop({type:Number,required:!0}),__metadata("design:type",Number)],SFMatrixTableRow.prototype,"cellWidth",void 0),__decorate([t.Inject("getCellClass"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"getCellClass",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"isCellID",void 0);function lc(){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)}function nc(t){t&&(t("data-v-242b2855_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table-cell[data-v-242b2855] {\n float: left;\n height: 41px;\n font-size: 1.2rem;\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-242b2855]: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-242b2855]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform-origin: 66% 33%;\n}\n.sf-matrix-table-cell[data-v-242b2855]: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-242b2855]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell.right-align-cell[data-v-242b2855] {\n text-align: right;\n}\n.android .sf-matrix-table-cell.right-align-cell[data-v-242b2855] {\n padding-right: 20px;\n}\n.sf-matrix-table-cell.center-align-cell[data-v-242b2855] {\n text-align: center;\n}\n.sf-matrix-table-cell .checkbox[data-v-242b2855] {\n width: 18px;\n padding-top: 13px;\n}\n.sf-matrix-table-cell a[data-v-242b2855] {\n color: #00A383;\n}\n.sf-matrix-table-cell .id[data-v-242b2855] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-242b2855_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-242b2855] {\n color: #f2f2f7;\n}\n.sf-matrix-table-cell[data-v-242b2855]: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-242b2855]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell[data-v-242b2855]: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-242b2855]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform-origin: 66% 33%;\n}\n}',map:void 0,media:void 0}))}var Vt,a=__decorate([t.Component({})],SFMatrixTableRow),Ht=(lc._withStripped=!0,normalizeComponent({render:lc,staticRenderFns:[]},nc,a,"data-v-242b2855",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTable(){var t=null!==Vt&&Vt.apply(this,arguments)||this;return t.getCellClass=t.getClass,t.isCellID=t.isID,t.parentWidth="100%",t.cellWidth=120,t.rowComponent=Ht,t}__extends(SFMatrixTable,Vt=t.Vue),Object.defineProperty(SFMatrixTable.prototype,"contentHeight",{get:function(){return"calc(100% - "+41*this.data.headers.length+"px)"},enumerable:!1,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){var n;return!!e&&(n=new RegExp("^[a-zA-Z0-9]+$"),this.sobjects.some(function(t){return n.test(e)&&(15===e.length||18===e.length)&&t.layoutable&&(""+e).startsWith(t.keyPrefix)}))},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTable.prototype,"data",void 0),__decorate([t.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFMatrixTable.prototype,"sobjects",void 0),__decorate([t.Provide("getCellClass"),__metadata("design:type",Object)],SFMatrixTable.prototype,"getCellClass",void 0),__decorate([t.Provide("isCellID"),__metadata("design:type",Object)],SFMatrixTable.prototype,"isCellID",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFMatrixTable.prototype,"onDataChanged",null);function vc(){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)}function xc(t){t&&(t("data-v-2cb308e3_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-2cb308e3_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table[data-v-2cb308e3] {\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-2cb308e3] {\n background: #00A383;\n height: 41px;\n line-height: 41px;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-2cb308e3]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-2cb308e3]: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-2cb308e3]:not(:last-child):after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row[data-v-2cb308e3]: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-2cb308e3]: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-2cb308e3] {\n float: left;\n height: 41px;\n font-size: 1.6rem;\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-2cb308e3]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-2cb308e3]: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-2cb308e3]: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-2cb308e3]: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-2cb308e3]: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-2cb308e3] {\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-2cb308e3] {\n padding-right: 20px;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.center-align-cell[data-v-2cb308e3] {\n text-align: center;\n}\n.sf-matrix-table .sf-matrix-table-content[data-v-2cb308e3] {\n position: relative;\n overflow-y: auto;\n}',map:void 0,media:void 0}))}var Wt,p=__decorate([t.Component({components:{VirtualList:e}})],SFMatrixTable),Xt=(vc._withStripped=!0,normalizeComponent({render:vc,staticRenderFns:[]},xc,p,"data-v-2cb308e3",!1,void 0,!1,createInjector,void 0,void 0));function SFReportTable(){var t=null!==Wt&&Wt.apply(this,arguments)||this;return t.functional=!0,t}__extends(SFReportTable,Wt=t.Vue),SFReportTable.prototype.render=function(t){var e=new dt(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(Xt,{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(Nt,{props:{data:this.refactoredData,sobjects:this.sobjects},on:{"cell-clicked":function(t){e.$emit("cell-clicked",t)}}})},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFReportTable.prototype,"data",void 0),__decorate([t.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"sobjects",void 0),__decorate([t.Prop({type:String,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"languageLocaleKey",void 0);function Kc(t){t.use(it),t.use(Ut)}var Yt=normalizeComponent({},void 0,__decorate([t.Component({components:{SFGroupingTable:Nt,SFMatrixTable:Xt}})],SFReportTable),void 0,void 0,void 0,!1,void 0,void 0,void 0),Ut=function(t){t.component("SfDashboardChart",At),t.component("SfReportChart",Mt),t.component("SfReportTable",Yt)};return function(t){t.use(Kc)}});
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).MoblorVue=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(H,t,s,c,f,V,b,d,W,r,F,e){e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var X=function(t,e){return(X=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}X(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var R=function(){return(R=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;for(var o=Array(e),r=0,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}__extends(ChartMixins,n=t.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()};var n,a=__decorate([t.Component],ChartMixins);function ChartMixins(){return null!==n&&n.apply(this,arguments)||this}ChartService.formatValue=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=2);var a,o,r,i=t.toString();return Number.isNaN(Number(t))||(a=(t=ChartService.preciseDecimal(Number(t),n))/Math.pow(1e3,4),o=t/Math.pow(1e3,3),r=t/Math.pow(1e3,2),t=t/Math.pow(1e3,1),1<=a?i=ChartService.preciseDecimal(a,n)+" T":1<=o?i=ChartService.preciseDecimal(o,n)+" B":1<=r?i=ChartService.preciseDecimal(r,n)+" M":1<=t&&(i=ChartService.preciseDecimal(t,n)+" K"),i=i.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")})),e+" "+i},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 ChartService.preciseDecimal((t=void 0===t?0:t)/(e=void 0===e?0:e)*100,n=void 0===n?0:n)},ChartService.getColor=function(t,e){e=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 e[t%e.length]},ChartService.getMaxValue=function(t,e){void 0===e&&(e=0);function Z2(t){t.pieces&&0<t.pieces.length?t.pieces.forEach(function(t){Z2(t)}):n.push(t.values[e])}var n=[];return t.forEach(function(t){Z2(t)}),b.max(n,function(t){return t})},ChartService.getMinValue=function(t,e){void 0===e&&(e=0);function fd(t){t.pieces&&0<t.pieces.length?t.pieces.forEach(function(t){fd(t)}):n.push(t.values[e])}var n=[];return t.forEach(function(t){fd(t)}),b.min(n,function(t){return t})},ChartService.defineAreaGradientsForCover=function(t,e,n){t=t.append("defs").append("linearGradient").attr("id","MoLineAreaGradientCover"+e).attr("x1","0").attr("y1","0").attr("x2","0").attr("y2","0").attr("y1","100%");t.append("stop").attr("offset","0%").attr("stop-color","white").attr("stop-opacity",n?.4:1),t.append("stop").attr("offset","100%").attr("stop-color","white").attr("stop-opacity",n?1:.4)},ChartService.getInnerText=function(t){var e=(t=void 0===t?{}:t).showValue,n=t.innerValue,a=t.value,a=void 0===a?"":a,o=t.showPercentage,r=t.innerPercentage,i=t.total,l=t.decimal,t=t.symbol,s=t||"";return e&&n&&(s+=ChartService.formatValue(a,t,l)),o&&r&&0<(e=ChartService.getPercentage(Number(a),i,l))&&(s+=": "+e+"%"),s},ChartService.getBottomText=function(t){var e=(t=void 0===t?{}:t).showValue,n=t.innerValue,a=t.value,a=void 0===a?"":a,o=t.showPercentage,r=t.innerPercentage,i=t.total,l=t.decimal,t=t.symbol,s=t||"";return e&&!n&&(s+=ChartService.formatValue(a,t,l)),o&&!r&&(""!==s&&(s+=" : "),s+=ChartService.getPercentage(Number(a),i,l)+"%"),s},ChartService.combineSmallGroups=function(t,e,n){void 0===e&&(e=.05),void 0===n&&(n="Others");var a,o,r,i=t.reduce(function(t,e){return t+e.values[0]},0);return 0===i?[]:(a=[],o=0,r=[],t.forEach(function(t){t.values[0]/i<e?(o+=t.values[0],t.pieces&&(r=r.concat(t.pieces))):a.push(t)}),0<o&&(t=t.find(function(t){return t.label!==n})||t[0],a.push(R(R({},t),{label:n,values:[o],pieces:0<r.length?r:void 0}))),a.filter(function(t){return 0<t.values[0]}))};var y=ChartService;function ChartService(){}__extends(MoBarChart,o=t.Mixins(a)),Object.defineProperty(MoBarChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,t=t.left;return 0<this.groupings.length&&"vertical"===this.xAxisMode&&(a=160),0<this.aggregates.length&&(t=75),{top:e,right:n=this.hasSecondAxis?Math.max(n,65):n,bottom:a,left:t}},enumerable:!1,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)),t=("stacked"!==this.groupType&&"stacked100"!==this.groupType||(t=this.refactorStackedData()),this.renderBar(t),this.hasLineChart&&this.renderLine(t),this.renderData(t),this.labelGroup.selectAll("*").remove(),this.getWidth()),e="stacked"===this.groupType||"stacked100"===this.groupType,n=this.actualMargin.left,a=this.actualMargin.top;694<=t&&e?n=this.actualMargin.left+this.width+80:a=this.actualMargin.top+this.height+180,this.labelGroup.attr("transform","translate("+n+", "+a+")"),0<this.categories.length&&this.renderLabel(),0<this.aggregates.length&&this.renderMeasure()},MoBarChart.prototype.init=function(){var e=this,t=this.getWidth(),n=694<=t,a="stacked"===this.groupType||"stacked100"===this.groupType,o=(this.svgWidth=t,0),o="grouped"===this.groupType&&0<this.categories.length?y.getMaxValue(this.data):b.max(this.data,function(t){return b.max(t.values)})||0,r=((null==(r=this.aggregates)?void 0:r[0])||{}).unitSymbol,r=8*y.formatValue(o,r,this.decimal).length,r=(this.actualMargin.right=Math.max(this.margin.right,20+r),this.width=n&&a?.75*t-this.actualMargin.left-this.actualMargin.right:t-this.actualMargin.left-this.actualMargin.right,.4*this.width),t=(this.height=Math.min(300,Math.max(200,r)),0),r=0,i=(0<this.categories.length&&(t=(Boolean(null==(l=this.groupings[1])?void 0:l.label)?this.TITLE_HEIGHT:0)+(l=this.categories.length*this.ITEM_HEIGHT)),1<this.aggregates.length&&(i=0<this.categories.length?this.SEPARATOR_HEIGHT:0,l=this.aggregates.length*this.ITEM_HEIGHT,r=this.TITLE_HEIGHT+i+l),0),i=0<t&&0<r?t+this.SECTION_SPACING+r+40:t+r,r=(n&&a?(l=this.height+this.actualMargin.top+this.actualMargin.bottom,t=i+this.actualMargin.top+this.actualMargin.bottom,this.svgHeight=Math.max(l,t)):this.svgHeight=this.height+this.CHART_TO_ANNOTATION_SPACING+i+this.actualMargin.top+this.actualMargin.bottom,f.select(this.$el).selectAll("svg").remove(),f.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight)),a=(this.svg=r.append("g").attr("class","chart-group").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top+")"),this.labelGroup=r.append("g").attr("class","label-group"),this.xAxisScale=s.scaleBand().domain(this.data.slice(0,this.maxDisplayCount).map(function(t){return t.label})).range([0,this.width]).padding(.3).round(!0),this.yAxisScale=s.scaleLinear().domain([0,o]).range([this.height,0]).nice(),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return y.formatValue(t,"",e.decimal)}),this.groupType&&"none"!==this.groupType&&(this.categories=[],this.data.forEach(function(t){t.pieces&&t.pieces.length>e.categories.length&&(e.categories=t.pieces.map(function(t){return t.label}))})),0<this.categories.length&&(this.xAxisCategories=s.scaleBand().domain(this.categories).range([0,this.xAxisScale.bandwidth()]).padding(.4).round(!1)),1<this.aggregates.length&&(n=this.aggregates.map(function(t){return t.label}),this.xAxisAggregates=s.scaleBand().domain(n).range([0,this.xAxisScale.bandwidth()]).padding(.4).round(!1)),0),l=0,t=0,i=0,l="grouped"===this.groupType?(a=y.getMaxValue(this.data)||0,y.getMinValue(this.data)||0):(a=b.max(this.data,function(t){return t.values[0]})||0,b.min(this.data,function(t){return t.values[0]})||0),r=(1<this.aggregates.length&&(t=b.max(this.data,function(t){return b.max(t.values)})||0,i=b.min(this.data,function(t){return b.min(t.values)})||0),a+.1*Math.abs(a-l)),o=l<0?l-.1*Math.abs(a-l):0;this.xAxis=c.axisBottom(this.xAxisScale).tickSize(0).tickFormat(function(t){return y.formatDomainValue(t,e.actualMargin.bottom,!1)}),"stacked100"===this.groupType&&0<this.categories.length?(this.yAxisScale=s.scaleLinear().range([this.height,0]).domain([0,1]),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return V.format(".0%")(Number(t))})):this.hasLineChart?this.hasSecondAxis?(this.yAxisScale=s.scaleLinear().domain([o,r]).range([this.height,0]).nice(),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return y.formatValue(t,"",e.decimal)}),this.secondYAxisScale=s.scaleLinear().domain([i<0?i:0,t]).range([this.height,0]).nice(),this.secondYAxis=c.axisRight(this.secondYAxisScale).tickSize(0).tickFormat(function(t){return y.formatValue(t,"",e.decimal)}),this.line=d.line().curve(d.curveLinear).x(function(t){return e.xAxisScale(t.label)+e.xAxisScale.bandwidth()/2}).y(function(t){return e.secondYAxisScale(e.lineValue(t))})):(this.yAxisScale=s.scaleLinear().domain([o,r]).range([this.height,0]).nice(),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return y.formatValue(t,"",e.decimal)}),this.line=d.line().curve(d.curveLinear).x(function(t){return e.xAxisScale(t.label)+e.xAxisScale.bandwidth()/2}).y(function(t){return e.yAxisScale(e.lineValue(t))})):(this.yAxisScale=s.scaleLinear().domain([o,r]).range([this.height,0]).nice(),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickFormat(function(t){return y.formatValue(t,"",e.decimal)}))},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(-70, 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 t,n=this;y.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-20).text((null==(t=this.groupings[0])?void 0:t.label)||""),y.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("transform","rotate(-90)").attr("y",15-this.actualMargin.left).attr("x",-this.height/2).attr("dy","1em").style("text-anchor","middle").text(0<this.aggregates.length?this.aggregates.map(function(t,e){return n.hasSecondAxis&&e===n.secondYIndex?"":(e="currency"===t.dataType?null==(e=null==(e=n.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"")?t.label+" ("+e+")":t.label}).filter(Boolean).join(", "):""),this.hasSecondAxis&&this.svg.append("text").attr("class","mo-axis-label").attr("transform","rotate(-90)").attr("y",this.width+this.actualMargin.right-15).attr("x",-this.height/2).attr("dy","1em").style("text-anchor","middle").text(function(){var t,e=n.aggregates[n.secondYIndex];return e?(t=(null==(t=null==(t=n.data[0])?void 0:t.reportMetadata)?void 0:t.currency)||"")?e.label+" ("+t+")":e.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(){var l=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){for(var e=t.pieces,r=void 0===e?[]:e,i=t.values,n=r.length;0<=n;--n)r.forEach(function(t,e){var n,a,o;t.y=(n=r,e=e,a=i[0],e===n.length-1?"stacked100"===l.groupType?l.yAxisScale(n[e].values[0]/a):l.yAxisScale(n[e].values[0]):(o=n[e+1].y||l.height,"stacked100"===l.groupType?o-l.height+l.yAxisScale(n[e].values[0]/a):o-l.height+l.yAxisScale(n[e].values[0]))),t.percentage=t.values[0]/i[0]})}),t},MoBarChart.prototype.renderBar=function(t){var e=this,t=t.slice(0,this.maxDisplayCount);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",y.getColor(0,this.colors)).attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",function(t){t=t.values[0];return 0<=t?e.yAxisScale(t):e.yAxisScale(0)}).attr("width",this.xAxisScale.bandwidth()).attr("height",0).transition().duration(1e3).attr("height",function(t){t=t.values[0];return Math.abs(e.yAxisScale(t)-e.yAxisScale(0))}).attr("y",function(t){t=t.values[0];return 0<=t?e.yAxisScale(t):e.yAxisScale(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",function(t){return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",0).style("fill",function(t,e){return y.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",function(t){return Math.abs(n.yAxisScale(t)-n.yAxisScale(0))})},MoBarChart.prototype.renderGroupedBar=function(t){var n=this,t=t.slice(0,this.maxDisplayCount);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",function(t){t=t.values[0];return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",0).style("fill",function(t,e){return y.getColor(e,n.colors)}).transition().duration(1e3).attr("y",function(t){t=t.values[0];return 0<=t?n.yAxisScale(t):n.yAxisScale(0)}).attr("height",function(t){t=t.values[0];return Math.abs(n.yAxisScale(t)-n.yAxisScale(0))})},MoBarChart.prototype.renderStackedBar=function(t){var n=this,t=t.slice(0,this.maxDisplayCount);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",function(t){return"stacked100"!==n.groupType&&0<=(t=t.values[0])?n.yAxisScale(t):n.yAxisScale(0)}).style("fill",function(t,e){return y.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):(t=t.values[0],Math.abs(n.yAxisScale(t)-n.yAxisScale(0)))})},MoBarChart.prototype.renderLine=function(t){var e=this,n=y.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(),r=(a.attr("stroke-dasharray",o+" "+o).attr("stroke-dashoffset",o).transition().duration(1e3).ease(W.easeLinear).attr("stroke-dashoffset",0),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,t=t.slice(0,this.maxDisplayCount);this.svg.selectAll(".bar").data(t).enter().append("text").attr("class","mo-data-text").style("fill","#5bdcef").attr("x",function(t){return n.xAxisScale(t.label)+n.xAxisScale.bandwidth()/2}).attr("y",this.height).attr("text-anchor","middle").style("font-size","12px").transition().duration(1e3).attr("y",function(t){var t=t.values[0],e=n.yAxisScale(t);return 0<=t?e-8:e+20}).text(function(t){return y.formatValue(t.values[0],"",n.decimal)})},MoBarChart.prototype.renderMeasure=function(){var n,t,a=this;0!==this.aggregates.length&&((n=0)<this.categories.length&&(n=(Boolean(null==(t=this.groupings[1])?void 0:t.label)?this.TITLE_HEIGHT:0)+25*this.categories.length+40),0<this.categories.length&&this.labelGroup.append("line").attr("x1",0).attr("y1",n-20).attr("x2",150).attr("y2",n-20).attr("class","mo-label-line").style("stroke","#ccc").style("stroke-width",1),this.labelGroup.append("text").attr("x",0).attr("y",n+5).attr("class","mo-label-title").text("Measure"),n+=30,(t=this.labelGroup.selectAll(".mo-measure").data(this.aggregates).enter().append("g").attr("class","mo-measure")).append("rect").attr("width",15).attr("height",15).attr("x",0).attr("y",function(t,e){return n+25*e}).attr("fill",function(t,e){return y.getColor(e,a.colors)}),t.append("text").attr("x",25).attr("y",function(t,e){return n+12+25*e}).attr("class","mo-legend-text").text(function(t){return t.label}))},MoBarChart.prototype.renderLabel=function(){var n,t,a=this;0!==this.categories.length&&(n=0,null!=(t=this.groupings[1])&&t.label&&(this.labelGroup.append("text").attr("x",0).attr("y",20).attr("class","mo-label-title").text(this.groupings[1].label),n=this.TITLE_HEIGHT),(t=this.labelGroup.selectAll(".mo-legend").data(this.categories).enter().append("g").attr("class","mo-legend")).append("rect").attr("width",15).attr("height",15).attr("x",0).attr("y",function(t,e){return n+25*e}).attr("fill",function(t,e){return y.getColor(e,a.colors)}),t.append("text").attr("x",25).attr("y",function(t,e){return n+12+25*e}).attr("class","mo-legend-text").text(function(t){return t}))},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChart.prototype,"data",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"groupings",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],MoBarChart.prototype,"aggregates",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasSecondAxis",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],MoBarChart.prototype,"hasLineChart",void 0),__decorate([t.Prop({type:Number,default:function(){return 1}}),__metadata("design:type",Number)],MoBarChart.prototype,"secondYIndex",void 0),__decorate([t.Prop({type:String,default:function(){return"horizontal"}}),__metadata("design:type",String)],MoBarChart.prototype,"xAxisMode",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChart.prototype,"colors",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:20,right:30,bottom:20,left:50}}}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartMargin&&ChartMargin)?i:Object)],MoBarChart.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChart.prototype,"decimal",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"labelColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoBarChart.prototype,"groupType",void 0),__decorate([t.Prop({type:Number,default:function(){return 20}}),__metadata("design:type",Number)],MoBarChart.prototype,"maxDisplayCount",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChart.prototype,"onDataChanged",null);var o,i=__decorate([t.Component({})],MoBarChart);function MoBarChart(){var t=null!==o&&o.apply(this,arguments)||this;return t.ITEM_HEIGHT=25,t.TITLE_HEIGHT=40,t.SECTION_SPACING=60,t.SEPARATOR_HEIGHT=40,t.CHART_TO_ANNOTATION_SPACING=120,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.additionalHeight=0,t.labelGroup=null,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,h="function"==typeof n?n.options:n;return t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,o)&&(h.functional=!0),a&&(h._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)},h._ssrRegister=d):e&&(d=i?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),d&&(h.functional?(p=h.render,h.render=function renderWithStyleInjection(t,e){return d.call(e),p(t,e)}):(t=h.beforeCreate,h.beforeCreate=t?[].concat(t,d):[d])),n}var l,Y="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(t){return function addStyle(t,e){var n=Y?e.media||"default":t,n=U[n]||(U[n]={ids:new Set,styles:[]});{var a;n.ids.has(t)||(n.ids.add(t),t=e.source,e.map&&(t=(t+="\n/*# sourceURL="+e.map.sources[0]+" */")+"\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),(l=void 0===l?document.head||document.getElementsByTagName("head")[0]:l).appendChild(n.element)),"styleSheet"in n.element?(n.styles.push(t),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n")):(e=n.ids.size-1,t=document.createTextNode(t),(a=n.element.childNodes)[e]&&n.element.removeChild(a[e]),a.length?n.element.insertBefore(t,a[e]):n.element.appendChild(t)))}}}var U={};function x(){var t=this.$createElement;return(this._self._c||t)("div",{class:["mo-chart",this.needScroll?"x-scroll":""]})}function z(t){t&&t("data-v-05477153_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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._withStripped=!0;var p,J=normalizeComponent({render:x,staticRenderFns:[]},z,i,void 0,!1,void 0,!1,createInjector,void 0,void 0);function MoBarChartHorizontal(){var t=null!==p&&p.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.additionalHeight=0,t}__extends(MoBarChartHorizontal,p=t.Mixins(a)),Object.defineProperty(MoBarChartHorizontal.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,t=t.left;return 0<this.aggregates.length?{top:e,right:n,bottom:60,left:t}:0<this.groupings.length?{top:e,right:n,bottom:a,left:115}:this.margin},enumerable:!1,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 t,e=this,n=(this.categories=[],this.data.length),a=this.getWidth(),o=694<=a,r="stacked"===this.groupType||"stacked100"===this.groupType,i=(this.groupType&&"none"!==this.groupType&&this.data.forEach(function(t){t.pieces&&t.pieces.length>e.categories.length&&(e.categories=t.pieces.map(function(t){return t.label}))}),t="grouped"===this.groupType&&0<this.categories.length?y.getMaxValue(this.data):b.max(this.data,function(t){return b.max(t.values)}),this.svgWidth=a,((null==(i=this.aggregates)?void 0:i[0])||{}).unitSymbol),i=8*y.formatValue(t||0,i,this.decimal).length;this.actualMargin.right=Math.max(this.margin.right,20+i),this.width=o&&r?.8*a-this.actualMargin.left-this.actualMargin.right:a-this.actualMargin.left-this.actualMargin.right,"grouped"===this.groupType&&0<this.categories.length?this.height=(this.barHeight*this.categories.length+this.barPadding)*n:(i=1<this.aggregates.length?this.aggregates.length:1,this.height=(this.barHeight*i+this.barPadding)*n),o&&r?this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom:(this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom,0<this.categories.length&&(this.additionalHeight=Math.min(30*this.categories.length+80,200),this.svgHeight+=this.additionalHeight),1<this.aggregates.length&&(this.additionalHeight+=Math.min(30*this.aggregates.length+80,200),this.svgHeight+=this.additionalHeight)),this.svg=f.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight),"stacked100"===this.groupType&&0<this.categories.length?(this.xAxisScale=s.scaleLinear().domain([0,1]).range([0,this.width]),this.xAxis=c.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return V.format(".0%")(Number(t))})):(this.xAxisScale=s.scaleLinear().domain([0,t||10]).range([0,this.width]).nice(),this.xAxis=c.axisTop(this.xAxisScale).tickSize(0).tickFormat(function(t){return y.formatValue(t,"",e.decimal)})),this.yAxisScale=s.scaleBand().domain(this.data.map(function(t){return t.label})).range([0,this.height]),this.yAxisCategories=s.scaleBand().domain(this.categories).range([0,this.barHeight*this.categories.length]).round(!0),1<this.aggregates.length&&(this.yAxisAggregates=s.scaleBand().domain(this.aggregates.map(function(t){return t.label})).range([0,this.barHeight*this.aggregates.length]).round(!0)),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return y.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&&(o&&r?this.labelGroup.attr("transform","translate("+(this.width+100)+", 0)"):this.labelGroup.attr("transform","translate(0, 60)"))},MoBarChartHorizontal.prototype.renderAxis=function(){this.svg.append("g").attr("class","x mo-axis").attr("transform","translate("+this.actualMargin.left+", "+this.actualMargin.top/2+")").call(this.xAxis).selectAll("text").style("text-anchor","end").attr("class","mo-axis-text").attr("y",12).attr("x",12).attr("transform","rotate(70, -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(){var n=this;this.svg.append("text").attr("class","mo-axis-label").attr("x",this.svgWidth/2).attr("y",25).text(function(){var t=n.aggregates.map(function(t){return t.label}).join(", "),e="currency"===(null==(e=n.aggregates[0])?void 0:e.dataType)?null==(e=null==(e=n.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"";return e?t+" ("+e+")":t}),y.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/1.2).attr("y",10.5).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 l=this,t=JSON.parse(JSON.stringify(this.data));return t.forEach(function(t){var e=t.pieces,r=void 0===e?[]:e,i=t.values;r.forEach(function(t,e){var n,a,o;t.x=(n=e,a=i[0],o=0,r.forEach(function(t,e){e<n&&("stacked100"===l.groupType?o+=l.xAxisScale(t.values[0]/a):o+=l.xAxisScale(t.values[0]))}),o),t.percentage=t.values[0]/i[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",y.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 y.getColor(e,n.colors)}).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t)})},MoBarChartHorizontal.prototype.renderGroupedBar=function(t){var n=this,t=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+")"});t.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 y.getColor(e,n.colors)}).transition().duration(1e3).attr("width",function(t){return n.xAxisScale(t.values[0])}),t.selectAll(".mo-data-text").data(function(t){return t.pieces||[]}).enter().append("text").attr("class","mo-data-text").attr("x",0).attr("y",function(t){return n.yAxisCategories(t.label)+n.barHeight/2+4}).style("fill",this.valueColor).attr("text-anchor","start").transition().duration(1e3).attr("x",function(t){return n.xAxisScale(t.values[0])+5}).text(function(t){return y.formatValue(t.values[0],"",n.decimal)})},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 y.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 e=this;this.mainChart.selectAll(".bar").data(t).enter().append("text").attr("class","mo-data-text").attr("x",0).attr("y",function(t){return e.yAxisScale(t.label)+(e.barHeight+e.barPadding)/2-3}).style("fill",this.valueColor).attr("text-anchor","start").transition().duration(1e3).attr("x",function(t){return e.xAxisScale(t.values[0])+5}).text(function(t){return y.formatValue(t.values[0],"",e.decimal)})},MoBarChartHorizontal.prototype.renderLabel=function(){var n=this,t=694<=this.getWidth(),e="stacked"===this.groupType||"stacked100"===this.groupType,t=(t&&e?this.labelGroup.attr("transform","translate("+(this.width+100)+", 0)"):this.labelGroup.attr("transform","translate(0, "+(this.height+this.actualMargin.top+20)+")"),t&&e||this.labelGroup.append("line").attr("x1",0).attr("y1",0).attr("x2",this.svgWidth).attr("y2",0).attr("class","mo-label-line"),this.labelGroup.append("text").attr("x",50).attr("y",30).attr("class","mo-label-title").text(this.groupings[1].label),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",50).attr("y",function(t,e){return 50+30*e}).attr("fill",function(t,e){return y.getColor(e,n.colors)}),t.append("text").attr("x",75).attr("y",function(t,e){return 62+30*e}).attr("class","mo-legend-text").text(function(t){return t})},MoBarChartHorizontal.prototype.renderMeasure=function(){var n=this,a=this.actualMargin.top+this.height,t=(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",50).attr("y",a+25).attr("class","mo-label-title").text("Measure"),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",50).attr("y",function(t,e){return a+40+25*e}).attr("fill",function(t,e){return y.getColor(e,n.colors)}),t.append("text").attr("x",75).attr("y",function(t,e){return a+52+25*e}).attr("class","mo-legend-text").text(function(t){return t.label})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"data",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"groupings",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"aggregates",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],MoBarChartHorizontal.prototype,"colors",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:80,right:80,bottom:20,left:95}}}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartMargin&&ChartMargin)?i:Object)],MoBarChartHorizontal.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 25}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barHeight",void 0),__decorate([t.Prop({type:Number,default:function(){return 15}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"barPadding",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MoBarChartHorizontal.prototype,"decimal",void 0),__decorate([t.Prop({type:String,default:function(){return"outer"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valuePosition",void 0),__decorate([t.Prop({type:String,default:function(){return"#5bdcef"}}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"valueColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoBarChartHorizontal.prototype,"groupType",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],MoBarChartHorizontal.prototype,"onDataChanged",null);function G(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function I(t){t&&t("data-v-9799e9b6_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var h,i=__decorate([t.Component({})],MoBarChartHorizontal),q=(G._withStripped=!0,normalizeComponent({render:G,staticRenderFns:[]},I,i,void 0,!1,void 0,!1,createInjector,void 0,void 0));function PieChart(){var t=null!==h&&h.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}__extends(PieChart,h=t.Mixins(a)),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=(t.stopPropagation(),t.preventDefault(),this.chartDataForLegend),t=(this.rotation.index<t.length-1?this.rotation.index+=1:this.rotation.index=0,this.pieLayout(t)[this.rotation.index]),t=(this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.aggregate?40:0);this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+(this.width/2+t)+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.onRightNavClicked=function(t){var e=this,t=(t.stopPropagation(),t.preventDefault(),this.chartDataForLegend),t=(0<this.rotation.index?--this.rotation.index:this.rotation.index=t.length-1,this.pieLayout(t)[this.rotation.index]),t=(this.rotation.angle=180-(t.startAngle+t.endAngle)/2/Math.PI*180,this.aggregate?40:0);this.arcGroup.transition().duration(100).attr("transform","translate("+this.width/2+", "+(this.width/2+t)+") rotate("+this.rotation.angle+")"),setTimeout(function(){e.changeContent(),e.rotation.originalAngle=e.rotation.angle},100)},PieChart.prototype.changeContent=function(){var t,e=this.chartDataForLegend,n=(-1===this.rotation.index&&(this.rotation.index=0),y.getPercentage(e[this.rotation.index].values[0],this.total,this.decimal)),a=y.formatValue(e[this.rotation.index].values[0],this.symbol),o=this.$el.querySelector(".percentage"),r=this.$el.querySelector(".label");o&&((t=f.select(o)).style("color",y.getColor(this.rotation.index,this.colors)),t.text(a+" : "+n+"%")),r&&(t=f.select(r)).text(e[this.rotation.index].label)},PieChart.prototype.init=function(){var t=this.combineSmallGroups?y.combineSmallGroups(__spreadArrays(this.data),.05,"Others"):__spreadArrays(this.data),e=(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*t.length+34,this.groupBy&&this.aggregate&&(this.height+=50)),this.aggregate&&(this.height+=40),this.svg=f.select(this.$el).insert("svg",".mo-tip-container").attr("width",this.width).attr("height",this.height),this.aggregate&&(e="currency"===this.aggregate.dataType?null==(e=null==(e=this.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"",n=this.svg.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",35),e?n.text(this.aggregate.label+" ("+e+")"):n.text(this.aggregate.label)),this.total=b.sum(t,function(t){return t.values[0]}),this.arcLayout=d.arc().outerRadius(this.radius).innerRadius(this.innerRadius),this.arc3dLayout=d.arc().outerRadius(this.innerRadius+9).innerRadius(this.innerRadius),this.pieLayout=d.pie().value(function(t){return t.values[0]}),this.pieLayout(t)[this.rotation.index]),n=(this.rotation.angle=180-(e.startAngle+e.endAngle)/2/Math.PI*180,this.aggregate?40:0);this.arcGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+(this.width/2+n)+") rotate("+this.rotation.angle+")"),this.arc=this.arcGroup.selectAll(".arc").data(this.pieLayout(t)).enter().append("g").attr("class","arc"),this.centerGroup=this.svg.append("svg:g").attr("transform","translate("+this.width/2+", "+(this.width/2+n)+")"),this.labelGroup=this.svg.append("svg:g"),this.chartDataForLegend=t},PieChart.prototype.renderPie=function(){var n=this;this.arc.append("svg:path").style("fill",function(t,e){return y.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(y.formatValue(this.total,this.symbol))},PieChart.prototype.renderInnerLabel=function(){var e=this;this.arc.append("text").attr("class","mo-inner-text").attr("text-anchor","middle").text(function(t){return y.getInnerText({showValue:e.showValue,innerValue:"inner"===e.valuePosition,value:t.value,showPercentage:e.showPercentage,innerPercentage:"inner"===e.percentagePosition,total:e.total,decimal:e.decimal,symbol:null==(t=e.aggregate)?void 0:t.unitSymbol})}).transition().duration(750).attr("transform",function(t){return"translate("+e.arcLayout.centroid(t)+") rotate("+-e.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.chartDataForLegend,t=this.labelGroup.selectAll(".mo-label").data(t).enter().append("g");"horizontal"===this.labelMode?this.renderHorizontalLabel(t):this.renderVerticalLabel(t)},PieChart.prototype.renderHorizontalLabel=function(t){var n=this;t.append("rect").attr("width","15").attr("height","15").attr("x",function(t,e){return e*n.radius+25}).attr("y",function(){var t=n.width+25;return n.groupBy&&n.aggregate&&(t+=55),t}).attr("fill",function(t,e){return y.getColor(e,n.colors)}),t.append("text").attr("x",function(t,e){return e*n.radius+40}).attr("y",function(){var t=n.width+40;return n.groupBy&&n.aggregate&&(t+=55),t}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e=y.getBottomText({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.unitSymbol});return""!==e?t.label+" : "+e:t.label})},PieChart.prototype.renderVerticalLabel=function(t){var n=this;t.append("rect").attr("width","15").attr("height","15").attr("x",25).attr("y",function(t,e){e=n.width+20+25*e;return n.groupBy&&n.aggregate&&(e+=55),e}).attr("fill",function(t,e){return y.getColor(e,n.colors)}),t.append("text").attr("x",50).attr("y",function(t,e){e=n.width+32+25*e;return n.groupBy&&n.aggregate&&(e+=55),e}).attr("class","mo-legend-text").style("fill",this.labelColor||"").text(function(t){var e=y.getBottomText({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.unitSymbol});return""!==e?t.label+" : "+e:t.label})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],PieChart.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"combineSmallGroups",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showTotal",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],PieChart.prototype,"showValue",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"symbol",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"valuePosition",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"showPercentage",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],PieChart.prototype,"percentagePosition",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],PieChart.prototype,"decimal",void 0),__decorate([t.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],PieChart.prototype,"labelMode",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],PieChart.prototype,"labelColor",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"rotate",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],PieChart.prototype,"colors",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],PieChart.prototype,"donut",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?i:Object)],PieChart.prototype,"groupBy",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?i:Object)],PieChart.prototype,"aggregate",void 0),__decorate([t.Prop({type:String,default:function(){return"Total"}}),__metadata("design:type",String)],PieChart.prototype,"totalLabel",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],PieChart.prototype,"area",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],PieChart.prototype,"onDataChanged",null);function Q(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"mo-chart"},[e.rotate?t("div",{staticClass:"mo-tip-container"},[t("div",{staticClass:"mo-tip-content"},[t("div",{staticClass:"left-nav",on:{click:function(t){return e.onLeftNavClicked(t)}}},[t("img",{attrs:{src:e.rightNavImage,width:"18"}})]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"right-nav",on:{click:function(t){return e.onRightNavClicked(t)}}},[t("img",{attrs:{src:e.rightNavImage,width:"18"}})])])]):e._e()])}function S(t){t&&t("data-v-516ad978_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var m,i=__decorate([t.Component({})],PieChart),$=(Q._withStripped=!0,normalizeComponent({render:Q,staticRenderFns:[function(){var t=this.$createElement,t=this._self._c||t;return t("div",{staticClass:"tip"},[t("span",{staticClass:"percentage"}),this._v(" "),t("span",{staticClass:"label"})])}]},S,i,void 0,!1,void 0,!1,createInjector,void 0,void 0));function LineChart(){var t=null!==m&&m.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}__extends(LineChart,m=t.Mixins(a)),Object.defineProperty(LineChart.prototype,"actualMargin",{get:function(){var t=this.margin,e=t.top,n=t.right,a=t.bottom,t=t.left;return 0<this.groupings.length?{top:e,right:n,bottom:130,left:t}:0<this.aggregates.length?{top:e,right:n,bottom:a,left:65}:this.margin},enumerable:!1,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,t=this.getWidth(),t=(this.svgWidth=t<694?t:t/1.2,this.width=this.svgWidth-this.actualMargin.left-this.actualMargin.right,this.height=t<694?this.width:this.width/2,this.svgHeight=this.height+this.actualMargin.top+this.actualMargin.bottom+40,this.categories=[],this.data.slice(-20));this.maxValue=b.max(t,function(t){return b.max(t.values)}),"grouped"!==this.groupType&&"cumulativeGrouped"!==this.groupType||this.refactorGroupedData(),0<this.categories.length&&(this.svgHeight+=25*this.categories.length+80,this.maxValue=y.getMaxValue(t)),1<this.aggregates.length&&(this.svgHeight+=25*this.aggregates.length+80),this.refactoredData=JSON.parse(JSON.stringify(t)),"cumulativeGrouped"!==this.groupType&&"cumulative"!==this.groupType||this.refactorCumulateData(),this.svg=f.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=s.scalePoint().domain(this.refactoredData.map(function(t){return t.label})).range([0,this.width-5]).padding(.5),this.xAxis=c.axisBottom(this.xAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){t=t.toString();return 18<t.length?t.slice(0,15)+"...":t}),this.yAxisScale=s.scaleLinear().domain([0,this.maxValue||10]).range([this.height,0]).nice(),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t){return y.formatValue(t,"",e.decimal)}),this.area=d.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),d.line().curve(d.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(b.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},LineChart.prototype.refactorCumulateData=function(){var r=this;0<this.categories.length?this.categories.forEach(function(o){o.value.forEach(function(n,a){n.cumulates=n.cumulates||[],n.values.forEach(function(t,e){e=0<a?o.value[a-1].cumulates[e]+t:t;n.cumulates.push(e),e>r.maxValue&&(r.maxValue=e)})})}):this.refactoredData.forEach(function(n,a){n.cumulates=n.cumulates||[],n.values.forEach(function(t,e){e=0<a?r.refactoredData[a-1].cumulates[e]+t:t;n.cumulates.push(e),e>r.maxValue&&(r.maxValue=e)})})},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",10).attr("x",-8).attr("transform","rotate(-60)"),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(){var n=this;this.svg.append("text").attr("class","mo-axis-label").attr("x",this.width/2).attr("y",this.height+this.actualMargin.bottom+20).text(this.groupings[0].label),this.svg.append("text").attr("class","mo-axis-label").attr("transform","rotate(-90)").attr("x",-this.height/2).attr("y",-this.actualMargin.left).attr("dy","1em").style("text-anchor","middle").text(0<this.aggregates.length?this.aggregates.map(function(t){var e="currency"===t.dataType?null==(e=null==(e=n.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"";return e?t.label+" ("+e+")":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 ci(t,e,n){var a=(n=void 0===n?!1:n)?e:0,n=y.getColor(e,r.colors),o=(e=r.svg.append("path").datum(t).attr("d",r.line(a)).attr("class","mo-data-line").style("stroke",n)).node().getTotalLength();e.attr("stroke-dasharray",o+" "+o).attr("stroke-dashoffset",o).transition().duration(1e3).ease(W.easeLinear).attr("stroke-dashoffset",0),r.svg.selectAll(".mo-data-point").data(t).enter().append("circle").attr("cx",function(t){return r.xAxisScale(t.label)}).attr("cy",function(t){return r.yAxisScale(r.lineValue(t,a))}).attr("r",r.pointRadius).attr("class","mo-line-point").style("fill",n)}var r=this;0<this.categories.length&&("cumulativeGrouped"===this.groupType||"grouped"===this.groupType)?this.categories.forEach(function(t,e){return ci(t.value,e)}):1<this.aggregates.length?this.aggregates.forEach(function(t,e){return ci(r.refactoredData,e,!0)}):(this.defineAreaGradients(0,y.getColor(0,this.colors)),ci(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){t=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%");t.append("stop").attr("offset","0%").attr("stop-color",e).attr("stop-opacity",0),t.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=(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),t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label"));t.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 y.getColor(e,n.colors)}),t.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=(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"),t.selectAll(".mo-label").data(this.aggregates).enter().append("g").attr("class","mo-label"));t.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 y.getColor(e,n.colors)}),t.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.selectAll(".line-text").data(this.data).enter().append("text").attr("class","mo-data-text").attr("x",function(t){return e.xAxisScale(t.label)}).attr("y",function(t){return e.yAxisScale(t.values[0])-5}).attr("text-anchor","middle").text(function(t){return y.formatValue(t.values[0],"",e.decimal)})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],LineChart.prototype,"data",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"groupings",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],LineChart.prototype,"aggregates",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],LineChart.prototype,"showValue",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:15,right:0,bottom:100,left:60}}}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartMargin&&ChartMargin)?i:Object)],LineChart.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],LineChart.prototype,"pointRadius",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"textColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"labelColor",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],LineChart.prototype,"groupType",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],LineChart.prototype,"colors",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],LineChart.prototype,"decimal",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],LineChart.prototype,"onDataChanged",null);function Z(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function _(t){t&&t("data-v-176eb6e9_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var g,i=__decorate([t.Component({})],LineChart),K=(Z._withStripped=!0,normalizeComponent({render:Z,staticRenderFns:[]},_,i,void 0,!1,void 0,!1,createInjector,void 0,void 0));function FunnelChart(){var t=null!==g&&g.apply(this,arguments)||this;return t.funnelWidth=0,t.funnelHeight=0,t.legendItemHeight=25,t.svg=null,t.total=0,t.refactoredData=[],t.colorMap=new Map,t}__extends(FunnelChart,g=t.Mixins(a)),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 t,d=this,p=(this.colorMap.clear(),this.refactoredData=[],t=this.combineSmallGroups?y.combineSmallGroups(__spreadArrays(this.data),.05,"Others"):__spreadArrays(this.data),b.sum(t,function(t){return t.values[0]})),e=__spreadArrays(t).sort(function(t,e){return t.label.localeCompare(e.label)}),n=(e.forEach(function(t,e){d.colorMap.set(t.label,y.getColor(e,d.colors))}),this.getWidth()),a=(this.funnelWidth=n<694?n:n/2+150,this.funnelHeight=this.height||this.funnelWidth,e.length),a=this.funnelHeight+this.legendItemHeight*(a+1),o=e.filter(function(t){return t.values[0]<=5}).length,h=this.funnelHeight-20*o,m=0,g=(this.groupBy&&this.aggregate&&(a+=65),this.funnelWidth),u=.3*this.funnelWidth;e.forEach(function(t){var e=m/d.funnelHeight,n=Math.max(t.values[0]/p*h,20),a=(m+n)/d.funnelHeight,e=g-(g-u)*e,a=g-(g-u)*a,o=(d.funnelWidth-e)/2,r=m,e=o+e,i=r,l=(d.funnelWidth-a)/2+a,s=r+n,a=(d.funnelWidth-a)/2,c=s;m+=n,0<t.values[0]&&((n=JSON.parse(JSON.stringify(t))).points=[{x:o,y:r},{x:e,y:i},{x:l,y:s},{x:a,y:c}],d.refactoredData.push(n))}),this.svg=n<694?f.select(this.$el).append("svg").attr("width",this.funnelWidth).attr("height",a):f.select(this.$el).style("text-align","left").append("svg").attr("width",this.funnelWidth).attr("height",a).style("overflow","visible"),this.total=p,this.chartDataForLegend=t},FunnelChart.prototype.renderFunnel=function(){var e=this,t=(this.svg.selectAll("*").remove(),this.svg.selectAll("g").data(this.refactoredData).enter().append("g"));t.append("polygon").attr("points",this.getPoint(this.refactoredData[0].points)).style("fill",function(t){return e.colorMap.get(t.label)||"#fff"}).transition().duration(1e3).attr("points",function(t){return t.points.map(function(t){return[t.x,t.y].join(",")}).join(" ")}),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){return y.getInnerText({showValue:e.showValue,innerValue:"inner"===e.valuePosition,value:t.values[0],showPercentage:e.showPercentage,innerPercentage:"inner"===e.percentagePosition,total:e.total,decimal:e.decimal,symbol:""})})},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 n,a=this,t=(this.svg.selectAll(".legend").remove(),this.getWidth()),e=this.funnelHeight+this.legendItemHeight,o=(this.groupBy&&this.aggregate&&(n="currency"===(null==(o=this.aggregate)?void 0:o.dataType)?null==(o=null==(o=this.data[0])?void 0:o.reportMetadata)?void 0:o.currency:"",this.svg.append("text").attr("class","mo-axis-label").attr("x",this.funnelWidth/2).attr("y",this.funnelHeight+10*this.refactoredData.length).text(function(){var t=(null==(t=a.aggregate)?void 0:t.label)||"",e=y.formatValue(a.total,"",a.decimal);return n?t+" ("+n+"): "+e:t+": "+e}),t<694&&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"),(t<694?this.svg.append("text").attr("class","mo-label-title").attr("x",50).attr("y",this.funnelHeight+65):this.svg.append("text").attr("class","mo-label-title").attr("x",this.funnelWidth+50).attr("y",20)).text(this.groupBy.label),e+=65),this.chartDataForLegend),r=this.svg.append("g").attr("class","legend"),t=(t<694?r.attr("transform","translate( 50, "+e+" )"):r.attr("transform","translate( "+(this.funnelWidth+50)+", 50 )"),r.selectAll("rect").data(o).enter().append("rect").attr("width",15).attr("height",15).style("fill",function(t){return a.colorMap.get(t.label)||"#fff"})),e=r.selectAll("text").data(o).enter().append("text").attr("class","mo-legend-text").text(function(t){return t.label});"horizontal"===this.labelMode?(t.attr("x",function(t,e){return 10+100*e}).attr("y",10),e.attr("x",function(t,e){return 35+100*e}).attr("y",23)):(t.attr("x",0).attr("y",function(t,e){return 25*e}),e.attr("x",25).attr("y",function(t,e){return 25*e+13}))},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],FunnelChart.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!1}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"combineSmallGroups",void 0),__decorate([t.Prop({type:Number}),__metadata("design:type",Number)],FunnelChart.prototype,"height",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],FunnelChart.prototype,"decimal",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],FunnelChart.prototype,"colors",void 0),__decorate([t.Prop({type:String,default:function(){return"vertical"}}),__metadata("design:type",String)],FunnelChart.prototype,"labelMode",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showValue",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"valuePosition",void 0),__decorate([t.Prop({type:Boolean,default:function(){return!0}}),__metadata("design:type",Boolean)],FunnelChart.prototype,"showPercentage",void 0),__decorate([t.Prop({type:String,default:function(){return"inner"}}),__metadata("design:type",String)],FunnelChart.prototype,"percentagePosition",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartGroupingColumn&&ChartGroupingColumn)?i:Object)],FunnelChart.prototype,"groupBy",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?i:Object)],FunnelChart.prototype,"aggregate",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],FunnelChart.prototype,"onDataChanged",null);function ga(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function ia(t){t&&t("data-v-a99ac804_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var u,i=__decorate([t.Component({})],FunnelChart),tt=(ga._withStripped=!0,normalizeComponent({render:ga,staticRenderFns:[]},ia,i,void 0,!1,void 0,!1,createInjector,void 0,void 0));function GaugeChart(){var t=null!==u&&u.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}__extends(GaugeChart,u=t.Mixins(a)),Object.defineProperty(GaugeChart.prototype,"minValue",{get:function(){var t="string"==typeof this.data.value?parseFloat(this.data.value):this.data.value;return Math.min(this.data.minValue,t)},enumerable:!1,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"maxValue",{get:function(){var t="string"==typeof this.data.value?parseFloat(this.data.value):this.data.value;return Math.max(this.data.maxValue,t)},enumerable:!1,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"labelWithCurrency",{get:function(){var t=(null==(t=this.aggregate)?void 0:t.label)||"",e="currency"===(null==(e=this.aggregate)?void 0:e.dataType)?null==(e=this.data.reportMetadata)?void 0:e.currency:"";return e?t+" ("+e+")":t},enumerable:!1,configurable:!0}),Object.defineProperty(GaugeChart.prototype,"valueWithCurrency",{get:function(){var t=(null==(t=this.data)?void 0:t.value)||0;return y.formatValue(t,"",this.decimal)},enumerable:!1,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=f.select(this.$el).insert("svg",".mo-axis-div-label").attr("width",this.width).attr("height",this.width/2+100),this.defineGradient(),this.backgroundArc=d.arc().innerRadius(this.radius).outerRadius(this.radius).startAngle(this.angleToRadian(this.minAngle)).endAngle(this.angleToRadian(this.maxAngle)),this.arc=d.arc().innerRadius(this.radius).outerRadius(this.radius),this.centerArc=d.arc().innerRadius(8).outerRadius(22).startAngle(this.angleToRadian(-180)).endAngle(this.angleToRadian(180)),this.scale=s.scaleLinear().range([this.minAngle,this.maxAngle]).domain([this.minValue,this.maxValue])},GaugeChart.prototype.renderGauge=function(){var o=this,t=(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))}}),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=this.svg.append("g").attr("transform","translate("+this.width/2+", "+(this.width/2+60)+")");t.append("text").text(y.formatValue(this.data.value,"",this.decimal)).attr("class","mo-gauge-value"),t.append("text").attr("y",25).text([this.label,y.formatValue(this.data.maxValue,"",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=d.line().curve(d.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 o=this;return function(t){var t=(t-90)*(Math.PI/180),e=o.radius-15,n=o.width/2+e*Math.sin(t),a=o.width/2+(5+e)*Math.sin(t),n=[{x:o.width/2+e*Math.cos(t),y:n},{x:o.width/2+(5+e)*Math.cos(t),y:a}];return d.line(function(t){return t.x},function(t){return t.y})(n)}},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof GaugeData&&GaugeData)?i:Object)],GaugeChart.prototype,"data",void 0),__decorate([t.Prop({type:String,default:function(){return"Target"}}),__metadata("design:type",String)],GaugeChart.prototype,"label",void 0),__decorate([t.Prop({type:Number,default:function(){return-90}}),__metadata("design:type",Number)],GaugeChart.prototype,"minAngle",void 0),__decorate([t.Prop({type:Number,default:function(){return 90}}),__metadata("design:type",Number)],GaugeChart.prototype,"maxAngle",void 0),__decorate([t.Prop({type:Array,default:function(){return["#7467cd","#00b9ff"]}}),__metadata("design:type",Array)],GaugeChart.prototype,"gradientColors",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],GaugeChart.prototype,"centerColor",void 0),__decorate([t.Prop({type:Number,default:function(){return 40}}),__metadata("design:type",Number)],GaugeChart.prototype,"ticksNumber",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],GaugeChart.prototype,"decimal",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?i:Object)],GaugeChart.prototype,"aggregate",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],GaugeChart.prototype,"onDataChanged",null);function pa(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"mo-chart"},[t.aggregate?e("div",{staticClass:"mo-axis-div-label"},[t._v("\n "+t._s(t.labelWithCurrency)+"\n ")]):t._e()])}function ra(t){t&&t("data-v-68d16acb_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var v,i=__decorate([t.Component({})],GaugeChart),et=(pa._withStripped=!0,normalizeComponent({render:pa,staticRenderFns:[]},ra,i,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MetricChart(){return null!==v&&v.apply(this,arguments)||this}__extends(MetricChart,v=t.Vue),Object.defineProperty(MetricChart.prototype,"value",{get:function(){return y.formatValue(this.data.value,this.aggregate.unitSymbol,this.decimal)},enumerable:!1,configurable:!0}),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof MetricData&&MetricData)?i:Object)],MetricChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartAggregateColumn&&ChartAggregateColumn)?i:Object)],MetricChart.prototype,"aggregate",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],MetricChart.prototype,"decimal",void 0);function ya(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"mo-chart"},[e("div",{staticClass:"mo-metric"},[e("div",{staticClass:"mo-metric-inner"},[e("div",{staticClass:"mo-metric-label"},[t._v("\n "+t._s(t.data.label)+"\n ")]),t._v(" "),e("div",{staticClass:"mo-metric-value"},[t._v("\n "+t._s(t.value)+"\n ")])])])])}function Aa(t){t&&t("data-v-1c412e41_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var w,i=__decorate([t.Component({})],MetricChart),nt=(ya._withStripped=!0,normalizeComponent({render:ya,staticRenderFns:[]},Aa,i,void 0,!1,void 0,!1,createInjector,void 0,void 0));function ScatterChart(){var t=null!==w&&w.apply(this,arguments)||this;return t.width=0,t.height=0,t.svgWidth=0,t.svgHeight=0,t.svg=null,t.xAxisScale=null,t.xAxis=null,t.yAxisScale=null,t.yAxis=null,t.line=null,t.categories=[],t.additionalHeight=0,t}__extends(ScatterChart,w=t.Mixins(a)),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(),e=(this.svgWidth=t,this.svgWidth=t<694?t:t/2+150,this.width=this.svgWidth-this.margin.left-this.margin.right,this.height=this.width,this.svgHeight=this.height+this.margin.top+this.margin.bottom,this.categories=[],this.data.slice(-20)),a=b.max(e,function(t){return t.values[0]}),o=b.max(e,function(t){return t.values[1]});"grouped"===this.groupType&&this.refactorGroupedData(),0<this.categories.length&&(this.additionalHeight=25*this.categories.length+50,a=y.getMaxValue(e,0),o=y.getMaxValue(e,1)),this.svgHeight+=this.additionalHeight,this.svg=(t<694?f.select(this.$el).append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight):f.select(this.$el).style("text-align","left").append("svg").attr("width",this.svgWidth).attr("height",this.svgHeight).style("overflow","visible")).append("g").attr("transform","translate("+this.margin.left+", "+this.margin.top+")"),this.xAxisScale=s.scaleLinear().domain([0,a||10]).range([0,this.width-5]).nice(),this.xAxis=c.axisBottom(this.xAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?y.formatValue(t,"",n.decimal):""}),this.yAxisScale=s.scaleLinear().domain([0,o||10]).range([this.height,0]).nice(),this.yAxis=c.axisLeft(this.yAxisScale).tickSize(0).tickPadding(6).tickFormat(function(t,e){return e%2==0?y.formatValue(t,"",n.decimal):""}),this.line=d.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(){var t,e;0<this.aggregates.length&&(e=(t="currency"===this.aggregates[0].dataType?null==(t=null==(t=this.data[0])?void 0:t.reportMetadata)?void 0:t.currency:"")?this.aggregates[0].label+" ("+t+")":this.aggregates[0].label,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(e)),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),y.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"),1<this.aggregates.length&&(e=(t="currency"===this.aggregates[1].dataType?null==(e=null==(e=this.data[0])?void 0:e.reportMetadata)?void 0:e.currency:"")?this.aggregates[1].label+" ("+t+")":this.aggregates[1].label,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(e))},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 dk(t,e){e=y.getColor(e,n.colors),n.svg.append("g").selectAll(".mo-data-point").data(t).enter().append("circle").attr("fill",e).attr("cx",0).attr("cy",n.height).attr("r",n.pointRadius).transition().duration(1e3).attr("cx",function(t){return n.xAxisScale(t.values[0])}).attr("cy",function(t){return n.yAxisScale(t.values[1]||0)})}var n=this;"grouped"===this.groupType&&0<this.categories.length?this.categories.forEach(function(t,e){return dk(t.value,e)}):dk(this.data,0)},ScatterChart.prototype.renderLabel=function(){var n=this,t=this.svg.append("g"),t=(this.getWidth()<694?(t.attr("transform","translate( 0, 0 )"),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.attr("transform","translate( "+this.svgWidth+",\n -"+(this.svgHeight-this.additionalHeight)+" )"),t.append("text").attr("x",0).attr("y",this.margin.top+this.margin.bottom+this.height+25).attr("class","mo-label-title").text(this.groupings[1].label),t.selectAll(".mo-label").data(this.categories).enter().append("g").attr("class","mo-label"));t.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 y.getColor(e,n.colors)}),t.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(b.group(n,function(t){return t.group}),function(t){return{key:t[0],value:t[1]}})},__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],ScatterChart.prototype,"data",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"groupings",void 0),__decorate([t.Prop({type:Array,default:function(){return[]}}),__metadata("design:type",Array)],ScatterChart.prototype,"aggregates",void 0),__decorate([t.Prop({type:Object,default:function(){return{top:15,right:0,bottom:80,left:65}}}),__metadata("design:type","function"==typeof(i="undefined"!=typeof ChartMargin&&ChartMargin)?i:Object)],ScatterChart.prototype,"margin",void 0),__decorate([t.Prop({type:Number,default:function(){return 3}}),__metadata("design:type",Number)],ScatterChart.prototype,"pointRadius",void 0),__decorate([t.Prop({type:Number,default:function(){return 2}}),__metadata("design:type",Number)],ScatterChart.prototype,"decimal",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"groupType",void 0),__decorate([t.Prop({type:Array}),__metadata("design:type",Array)],ScatterChart.prototype,"colors",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],ScatterChart.prototype,"labelColor",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ScatterChart.prototype,"onDataChanged",null);function Ha(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mo-chart"})}function Ja(t){t&&t("data-v-e784c97e_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var C,i=__decorate([t.Component({})],ScatterChart),at=(Ha._withStripped=!0,normalizeComponent({render:Ha,staticRenderFns:[]},Ja,i,void 0,!1,void 0,!1,createInjector,void 0,void 0)),k="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",A="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!==C&&C.apply(this,arguments)||this;return t.ready=!1,t.checkedImage=k,t.uncheckedImage=A,t}__extends(TableChart,C=t.Mixins(a)),TableChart.prototype.mounted=function(){this.ready=!0},TableChart.prototype.isNumber=function(t){t=this.data.headers[t];return t&&("datetime"===t.dataType||"currency"===t.dataType||"date"===t.dataType||"int"===t.dataType||"double"===t.dataType||"percent"===t.dataType||"boolean"===t.dataType)},TableChart.prototype.isBoolean=function(t){t=this.data.headers[t];return t&&"boolean"===t.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([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof TableData&&TableData)?i:Object)],TableChart.prototype,"data",void 0);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 Ua(t){t&&t("data-v-44e6dcb5_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: 1rem 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: 1.6rem;\n fill-opacity: 1;\n}\n.mo-summary-label {\n fill: #323233;\n font-size: 1.8rem;\n}\n.mo-summary-value {\n fill: #00A383;\n font-size: 1.8rem;\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: 1.4rem;\n fill: #3e3f41;\n}\n.mo-axis-text {\n font-size: 1.4rem;\n fill: #323233;\n}\n.mo-axis-label {\n font-size: 1.4rem;\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: 1.4rem;\n clear: both;\n}\n.mo-legend-text {\n font-size: 1.4rem;\n fill: #3e4759;\n}\n.mo-legend-percentage {\n font-size: 1.6rem;\n}\n.mo-label-inner {\n text-anchor: middle;\n font-size: 1.4rem;\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: 4rem;\n font-weight: 200;\n text-anchor: middle;\n fill: #323233;\n}\n.mo-gauge-max-value {\n font-size: 1.4rem;\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: 1.4rem;\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 height: 100%;\n color: #323233;\n}\n.mo-metric .mo-metric-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.mo-metric .mo-metric-label, .mo-metric .mo-metric-value {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.mo-metric .mo-metric-label {\n padding-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 2.4rem;\n}\n.mo-metric .mo-metric-value {\n padding-right: 5px;\n font-size: 7.3rem;\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: 1.6rem;\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: 2.2rem;\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: 1.4rem;\n fill: #3e4759;\n text-anchor: start;\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})}var T,a=__decorate([t.Component({})],TableChart),ot=(Sa._withStripped=!0,normalizeComponent({render:Sa,staticRenderFns:[]},Ua,a,void 0,!1,void 0,!1,createInjector,void 0,void 0));function MoGlossaryChart(){return null!==T&&T.apply(this,arguments)||this}__extends(MoGlossaryChart,T=t.Vue),MoGlossaryChart.prototype.parseRichText=function(e){try{return JSON.parse(e).map(function(t){var e,n=t.insert;return"↵"===n||"\n"===n?n="<br />":(n.includes("↵")||n.includes("\n"))&&(n=n.replace(/[\u21B5\n]/g,"<br />")),n=t.attributes&&(e=[],(t=t.attributes).size&&e.push("font-size: "+t.size),t.bold&&(n="<strong>"+n+"</strong>"),t.align&&e.push("text-align: "+t.align),0<e.length)?'<p style="'+e.join(";")+'">'+n+"</p>":n}).join("")}catch(t){return console.error("解析富文本失败:",t),e}},__decorate([t.Prop({type:String,required:!0}),__metadata("design:type",String)],MoGlossaryChart.prototype,"content",void 0),__decorate([t.Prop({type:String}),__metadata("design:type",String)],MoGlossaryChart.prototype,"title",void 0);function _a(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"mo-glossary-chart"},[t.title?e("div",{staticClass:"mo-glossary-header"},[e("h3",{staticClass:"mo-glossary-title"},[t._v(t._s(t.title))])]):t._e(),t._v(" "),e("div",{staticClass:"mo-glossary-content"},[e("div",{domProps:{innerHTML:t._s(t.parseRichText(t.content))}})])])}function b0(t){t&&t("data-v-cf6c9538_0",{source:"/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.mo-glossary-chart[data-v-cf6c9538] {\n padding: 2rem 1rem;\n width: 100%;\n background-color: #fff;\n color: #16325c;\n line-height: 2rem;\n text-align: left !important;\n}\n.mo-glossary-header[data-v-cf6c9538] {\n margin-bottom: 16px;\n}\n.mo-glossary-title[data-v-cf6c9538] {\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n}\n@media (prefers-color-scheme: dark) {\n.mo-glossary-chart[data-v-cf6c9538] {\n background-color: #1c1c1e;\n color: #f2f2f7;\n}\n}",map:void 0,media:void 0})}var i=__decorate([t.Component({})],MoGlossaryChart),rt=(_a._withStripped=!0,normalizeComponent({render:_a,staticRenderFns:[]},b0,i,"data-v-cf6c9538",!1,void 0,!1,createInjector,void 0,void 0)),it=function(t){t.component("MoBarChart",J),t.component("MoBarChartHorizontal",q),t.component("MoPieChart",$),t.component("MoLineChart",K),t.component("MoFunnelChart",tt),t.component("MoGaugeChart",et),t.component("MoMetricChart",nt),t.component("MoScatterChart",at),t.component("MoTableChart",ot),t.component("MoGlossaryChart",rt)},a=(DataConvertor.prototype.refactorPieces=function(t){var a,o=this,r=[];return t.forEach(function(t){var e;t.pieces&&0<(null==(e=t.pieces)?void 0:e.length)&&t.pieces.forEach(function(t){r.indexOf(t.label)<0&&r.push(t.label)})}),0===r.length?t:(a=[],t.forEach(function(e){var t=JSON.parse(JSON.stringify(e)),n=[];r.forEach(function(t){e.pieces&&0<e.pieces.length&&(t=o.getNewPiece(e.pieces,t),n.push(t))}),t.pieces=n,a.push(t)}),a)},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=""}__extends(DashboardDataConvertor,lt=a),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 a={},e=e.reportResult||{},o=e.reportMetadata,r=e.reportExtendedMetadata,e=t.properties;if(o&&(a.reportId=o.id,a.reportName=o.name),a.header=t.header,a.footer=t.footer,a.title=t.title,a.combineSmallGroups=t.combineSmallGroups,e){if("RichText"===e.visualizationType)return a.content=e.content.richTextContent,a.title=e.additionalInfo,a.chartType="RichText",a;a.aggregateColumns=[],a.groupingColumns=[],r&&(t=e.aggregates,n=e.groupings,t&&t.forEach(function(t){var e,n,t=r.aggregateColumnInfo[t.name];t&&(e="","currency"===t.dataType&&(e=(null==o?void 0:o.currency)||""),n=t.label,t=t.dataType,a.aggregateColumns.push({label:n,dataType:t,unitSymbol:e}))}),n)&&n.forEach(function(t){var e,t=r.groupingColumnInfo[t.name];t&&(e=t.label,t=t.dataType,a.groupingColumns.push({label:e,dataType:t}))});var t=e.visualizationType,n=e.visualizationProperties,e=(a.chartType=t,n.showValues),t=n.showPercentages,i=n.showTotal,l=n.groupByType,n=n.aggregateVisualizationInfos,n=void 0===n?[]:n;a.showValues=e,a.showPercentages=t,a.showTotal=i,a.groupByType=l,1<n.length&&(e=n[0],t=n[1],a.plotOnSecondAxis=e.axis!==t.axis,a.plotAsLineChart="Line"===t.visualizationType)}return a},DashboardDataConvertor.prototype.refactorData=function(t,e){var n,e=e.reportResult,a=t.properties;if(a&&"RichText"===a.visualizationType&&((n={}).content=a.content.richTextContent,n.title=a.additionalInfo,n.chartType="RichText"),e&&a){var o=e.groupingsDown.groupings,r=e.factMap,i=e.reportExtendedMetadata,l=e.reportMetadata;switch(a.visualizationType){case"Table":case"FlexTable":n=this.refactorTableData({groupings:o,factMap:r,properties:a,reportExtendedMetadata:i,reportMetadata:l});break;case"Gauge":n=this.refactorGaugeData({factMap:r,properties:a,reportMetadata:l});break;case"Metric":n=this.refactorMetricData({properties:a,factMap:r,reportMetadata:l});break;default:n=this.refactorCommonData({groupings:o,factMap:r,reportMetadata:l,properties:a})}}return n},DashboardDataConvertor.prototype.refactorTableData=function(t){var a,o,r,n,l=this,e=t.groupings,s=t.factMap,i=t.properties,c=t.reportExtendedMetadata,d=t.reportMetadata,p={headers:[],rows:[],totals:[],reportMetadata:d},t=i.visualizationProperties,h=i.sort,m=i.groupings,g=i.visualizationType,u=t.tableColumns,f=c.groupingColumnInfo,b=c.aggregateColumnInfo,x=c.detailColumnInfo,y=-1,v="",w=m.length,_=[],C=[],k=[],S=[];function Sn(t,e){var n=t.cells[y].value,a=e.cells[y].value,t=t.cells[y].label.toLowerCase(),e=e.cells[y].label.toLowerCase();return"date"!==v&&"datetime"!==v||(n=n&&new Date(n),a=a&&new Date(a),t=t&&"-"!==t?new Date(t):new Date("1/1/1970 00:00 am"),e=e&&"-"!==e?new Date(e):new Date("1/1/1970 00:00 am")),"desc"===h.sortOrder?a?n<a?1:-1:e.toString().toLowerCase()>t.toString().toLowerCase()?1:-1:n?a<n?1:-1:e<t?1:-1}return p.headers=[],u.forEach(function(t,e){h&&h.column===t.column&&(y=e),t.showTotal&&S.push(e);var n={};"grouping"===t.type&&f[t.column]?(n=f[t.column],0===f[t.column].groupingLevel?_.push(e):1===f[t.column].groupingLevel&&C.push(e)):"aggregate"===t.type&&b[t.column]?(n=b[t.column],k.push(e)):x[t.column]&&(n=x[t.column]),p.headers.push(n)}),p.rows=[],0<e.length?e.forEach(function(t){var e,o,r,i,n;0<t.groupings.length&&1<w?(n=t).groupings.forEach(function(e){var o={cells:[]},r=(_.forEach(function(t){o.cells[t]={label:n.label}}),C.forEach(function(t){o.cells[t]={label:e.label}}),s[e.key+"!T"].aggregates),i=0;k.forEach(function(t){var e=u[t].column,e=(b[e]||{}).dataType,e="currency"===(void 0===e?"":e)&&(null==d?void 0:d.currency)||"",n=r[i],a=n.value,n=n.label,n=l.formatCurrencyLabel(n,e);o.cells[t]={label:n,value:a||0},i+=1}),p.rows.push(o)}):(e=t,o={cells:[]},0<_.length?_.forEach(function(t){o.cells[t]={label:e.label}}):C.forEach(function(t){o.cells[t]={label:e.label}}),r=s[e.key+"!T"].aggregates,i=0,k.forEach(function(t){var e=u[t].column,e=(b[e]||{}).dataType,e="currency"===(void 0===e?"":e)&&(null==d?void 0:d.currency)||"",n=r[i],a=n.value,n=n.label,n=l.formatCurrencyLabel(n,e);o.cells[t]={label:n,value:a||0},i+=1}),p.rows.push(o))}):s["T!T"]&&s["T!T"].rows&&s["T!T"].rows.forEach(function(t){var e={cells:[]};t.dataCells.forEach(function(t){e.cells.push({label:t.label})}),p.rows.push(e)}),h&&(f[h.column]?v=f[h.column].dataType:b[h.column]?v=b[h.column].dataType:x[h.column]&&(v=x[h.column].dataType),0<_.indexOf(y)?p.rows.sort(function(t,e){var n,a;return t.cells[y].label===e.cells[y].label&&0<C.length?(n=t.cells[C[0]].label,a=e.cells[C[0]].label,n.toLowerCase()>a.toLowerCase()?1:-1):Sn(t,e)}):0<C.indexOf(y)?p.rows.sort(function(t,e){var n,a;return t.cells[y].label===e.cells[y].label?(n=t.cells[0].label,a=e.cells[0].label,n.toLowerCase()>a.toLowerCase()?1:-1):Sn(t,e)}):p.rows.sort(function(t,e){var n,a;return t.cells[y].value===e.cells[y].value&&0<_.length?t.cells[0].label===e.cells[0].label&&0<C.length?(n=t.cells[C[0]].label,a=e.cells[C[0]].label,n.toLowerCase()>a.toLowerCase()?1:-1):t.cells[0].label.toLowerCase()>e.cells[0].label.toLowerCase()?1:-1:Sn(t,e)})),i.maxRows&&(p.rows=p.rows.slice(0,i.maxRows)),p.totals=[],"FlexTable"===g?(a=d.aggregates,o=s["T!T"].aggregates,u.forEach(function(t,e){var n;0===e?p.totals[e]={label:"Total"}:(t=t.column,n=[t,"s!"+t,"a!"+t,"m!"+t,"x!"+t],t=a.findIndex(function(t){return n.includes(t)}),p.totals[e]=0<=t?{label:o[t].label}:{label:"-"})})):(n={},p.rows.forEach(function(t){t.cells.forEach(function(t,e){u[e].showTotal&&(void 0===n[e]&&(n[e]=0),n[e]+=t.value)})}),r=n,0<S.length&&u.forEach(function(t,e){var n,a,o;0===e?p.totals[0]={label:"Total"}:r[e]?(n=r[e],a=t.scale,t=t.isPercent,void 0===a&&(a=2),o=(t=void 0!==t&&t)?100*n:n,n=(o=0<n.toString().indexOf(".")?Number(o.toFixed(a)):o).toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")}),p.totals[e]={label:t?n+"%":n}):p.totals[e]={label:"-"}})),p},DashboardDataConvertor.prototype.refactorGaugeData=function(t){var e=t.factMap,n=t.properties,t=t.reportMetadata,e={value:e["T!T"]?e["T!T"].aggregates[0].value:"",minValue:0,maxValue:0,reportMetadata:t},t=n.visualizationProperties.breakPoints[0].breaks,a=[];return t.forEach(function(t){t.upperBound&&!t.lowerBound&&a.indexOf(0)<0&&a.push(0),t.lowerBound&&a.indexOf(t.lowerBound)<0&&a.push(t.lowerBound),t.upperBound&&a.indexOf(t.upperBound)<0&&a.push(t.upperBound)}),0<a.length?(e.minValue=Math.min.apply(null,a),e.maxValue=Math.max.apply(null,a)):(e.minValue=0,e.maxValue=3),e.value===e.minValue&&e.value===e.maxValue&&(e.maxValue+=1),e},DashboardDataConvertor.prototype.refactorMetricData=function(t){var e=t.properties,n=t.factMap,t=t.reportMetadata;return{label:e.visualizationProperties.metricLabel,value:n["T!T"]?n["T!T"].aggregates[0].value:0,reportMetadata:t}},DashboardDataConvertor.prototype.refactorCommonData=function(t){var e=this,n=t.groupings,a=t.factMap,o=t.reportMetadata,t=t.properties,r=[];return(t.maxRows?n.slice(0,t.maxRows):n).forEach(function(t){r.push(e.recursiveGrouping(t,a,o))}),r=this.refactorPieces(r)},DashboardDataConvertor.prototype.recursiveGrouping=function(t,e,n){var a=this,o={label:t.label,pieces:[],values:e[t.key+"!T"].aggregates.map(function(t){return t.value}),reportMetadata:n},t=t.groupings;return(void 0===t?[]:t).forEach(function(t){o.pieces.push(a.recursiveGrouping(t,e,n))}),o},DashboardDataConvertor.prototype.formatCurrencyLabel=function(t,e){return t.includes(e)?t:e+" "+t};var lt,st=DashboardDataConvertor;function DashboardDataConvertor(t,e){var n=lt.call(this)||this;return n.init(t,e),n}__extends(ReportDataConvertor,ct=a),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,n,a,o,r,i,l=t.reportMetadata,s=t.reportExtendedMetadata,c=t.factMap,d=s.groupingColumnInfo,p=s.aggregateColumnInfo,t=l.chart,h=l.aggregates;return t?(s=t.groupings,l=t.summaries,e=t.summaryAxisLocations,n=t.summaryVisualizationTypes,a=t.chartType,o=t.showChartPercentages,r=t.showChartTotal,i=t.combineSmallGroups,{groupingColumns:s.map(function(t){t=d[t];return{label:t.label,dataType:t.dataType}}),aggregateColumns:l.map(function(t){var e=h.indexOf(t),t=p[t],n=t.label,t=t.dataType,a="";return{label:n,dataType:t,unitSymbol:a="currency"===t?(t=(n=c["T!T"])&&n.aggregates?n.aggregates:[])&&0<t.length&&t[e]&&t[e].label?t[e].label.slice(0,1):"":a}}),chartType:a,showPercentages:o,showTotal:r,combineSmallGroups:i,groupByType:this.getGroupType(t.chartType),plotOnSecondAxis:1<e.length&&e[0]!==e[1],plotAsLineChart:1<n.length&&"Line"===n[1]}):{groupingColumns:[],aggregateColumn:[],chartType:"",showPercentages:!1,showTotal:!1,groupByType:"",combineSmallGroups:!1}},ReportDataConvertor.prototype.refactorData=function(t){var e,o,a,r,i,l,s,c,d,p,h=t.factMap,n=t.reportMetadata,t=t.groupingsDown,m=n.chart,g=n.aggregates,n=n.groupingsDown,t=t.groupings,u=[];return m&&(e=m.groupings,o=m.summaries,a=o.map(function(t){return g.indexOf(t)}),r=this.getYIndex(n,e),i=this.getGroupedIndex(n,e),l=0,s={},d=c="",p=function(n){l===i&&(d=n.label),l===r&&(c=n.label,s[c]||(s[c]=r===i?[]:{})),r<=i&&l===i||i<r&&l===r?r===i?(s[c]=s[c]||[],a.forEach(function(t,e){s[c][e]=h[n.key+"!T"].aggregates[t].value})):r<i?(s[c][n.label]=s[c][n.label]||[],a.forEach(function(t,e){s[c][n.label][e]=h[n.key+"!T"].aggregates[t].value})):i<r&&(s[c][d]=s[c][d]||[],a.forEach(function(t,e){s[c][d][e]=h[n.key+"!T"].aggregates[t].value})):(l+=1,n.groupings.forEach(function(t){p(t)}),--l)},t.forEach(function(t){l+=1,p(t),--l}),m=Object.keys(s),m.forEach(function(e){var a;r===i?u.push({label:e,values:s[e]}):(a={label:e,pieces:[],values:[]},Object.keys(s[e]).forEach(function(t){a.pieces.push({label:t,values:s[e][t]})}),a.values=[],(a.pieces||[]).forEach(function(n){o.forEach(function(t,e){a.values[e]=a.values[e]||0,a.values[e]+=n.values[e]||0})}),u.push(a))}),u=this.refactorPieces(u)),u},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){t=t.findIndex(function(t){return t.name===e[0]});return 0<=t?t+1:1},ReportDataConvertor.prototype.getGroupedIndex=function(t,e){var n=2===e.length?e[1]:e[0],e=t.findIndex(function(t){return t.name===n});return 0<=e?e+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,t=t.hasDetailRows,e=e.reportFormat,o=n.detailColumnInfo,n={format:e,showHeader:t,headers:Object.keys(o).map(function(t){return o[t]}),rows:[]},e=a["T!T"],a=e.rows,e=e.aggregates,t=(t&&(n.rows=a.map(function(t){return{id:F.v4(),type:"data",cells:t.dataCells}})),e.findIndex(function(t){return"RowCount"===t})),r=0;return-1<t?r=e[t].label:1===e.length?r=e[0].label:a&&(r=a.length),n.rows.push({id:F.v4(),type:"grand-total",label:"Grand Totals",grand:!0,background:this.getBackground(3),recordCount:r}),n},ReportDataConvertor.prototype.convertSummary=function(t){var l=this,e=t.reportMetadata,n=t.reportExtendedMetadata,a=t.groupingsDown,s=t.factMap,t=e.reportFormat,o=e.groupingsDown,c=e.aggregates,d=e.detailColumns,r=e.hasRecordCount,p=e.hasDetailRows,h=e.showSubtotals,e=e.showGrandTotal,i=n.groupingColumnInfo,m=n.detailColumnInfo,n=a.groupings,g={format:t,showHeader:!0,headers:[],rows:[],hasRecordCount:r},u=0,f=o.map(function(t){return i[t.name].label}),b=c.map(function(t){t=t.split("!");return t[1]||t[0]}),x=(d.forEach(function(t){(p||b.includes(t))&&g.headers.push(m[t])}),function(t){var e=t.key,n=t.label,a=t.groupings,t=t.value,o=e.split("_").length-1,r=l.getBackground(o),i={id:F.v4(),type:"group",level:o,background:r,margin:5*o,label:n,value:t,fieldLabel:f[o],recordCount:0},r=s[e+"!T"],n=r.aggregates,t=r.rows,o=c.findIndex(function(t){return"RowCount"===t});-1<o?i.recordCount=n[o].label:t&&((i.recordCount=0)<a.length?a.forEach(function(t){var e=t.groupings;0<e.length?e.forEach(function(t){t=s[t.key+"!T"].rows.length;i.recordCount+=t}):(e=s[t.key+"!T"].rows.length,i.recordCount+=e,u+=e)}):(e=t.length,u+=i.recordCount=e)),g.rows.push(i),0===a.length?p&&(r=t.map(function(t){return{id:F.v4(),type:"data",cells:t.dataCells}}),(o=g.rows).push.apply(o,r)):a.forEach(function(t){x(t)}),h&&(e={id:F.v4(),type:"subtotals",label:l.languageLocaleKey&&l.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",grand:!1,background:l.getBackground(3)},g.rows.push(e),0<c.length)&&(t=l.getSummaryAggregateRows({aggregates:c,hasDetailRows:p,detailColumns:d,rowAggregates:n,background:e.background}),(o=g.rows).push.apply(o,t))}),a=(n.forEach(function(t){x(t)}),s["T!T"].aggregates),t=c.findIndex(function(t){return"RowCount"===t}),r=0,r=-1<t?a[t].label:u;return e&&(o={id:F.v4(),type:"grand-total",label:this.languageLocaleKey&&this.languageLocaleKey.startsWith("zh")?"总计":"Grand Total",grand:!0,background:this.getBackground(3),recordCount:r},g.rows.push(o),0<c.length)&&(n=this.getSummaryAggregateRows({aggregates:c,hasDetailRows:p,detailColumns:d,rowAggregates:a,background:o.background,isGrand:!0}),(t=g.rows).push.apply(t,n)),g},ReportDataConvertor.prototype.convertMatrix=function(t){function $s(t,e,n){for(var a={id:F.v4(),cells:[]},o=0;o<C;o+=1)a.cells.push({value:""});e?a.cells.push({label:y[e.name].label,value:y[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(R({type:y[e.name].dataType},t.dataCells[i]))}for(var l=A-(C+1)-n-S.length-1,s=0;s<l;s+=1)a.cells.push({value:""});return S.forEach(function(n){t.dataCells.forEach(function(t,e){n.key===e&&a.cells.push(R({type:y[n.name].dataType},t))})}),a}var a,e,n,i=this,o=t.reportMetadata,r=t.reportExtendedMetadata,l=t.groupingsAcross,s=t.groupingsDown,m=t.factMap,t=o.groupingsAcross,c=o.groupingsDown,g=o.aggregates,d=o.detailColumns,p=o.reportFormat,u=o.hasRecordCount,f=o.hasDetailRows,b=o.showSubtotals,o=o.showGrandTotal,h=r.groupingColumnInfo,x=r.aggregateColumnInfo,y=r.detailColumnInfo,v=l.groupings,r=s.groupings,w={showHeader:!0,format:p,headers:[],rows:[]},_=t.length,C=c.length,k=[],S=[],A=1<g.length||1<_?C+1:C;if(f)for(var T=0;T<d.length;T+=1){var M=d[T];(0<g[0].indexOf(M)?k:S).push({key:T,name:M})}return w.headers.push((a={cells:[]},l=1<g.length?"":x[g[0]].label,a.cells.push({value:l,colspan:1===_&&1<g.length?C+1:C}),t.forEach(function(t){0===h[t.name].groupingLevel&&a.cells.push({value:h[t.name].label,colspan:1===_?v.length:0,type:1===_?"group-value":""})}),v.forEach(function(t){var e=0,n=t.label,t=t.groupings;1===_||0===t.length?A+=1:(0<t.length&&(e=t.length+1,A+=e),a.cells.push({value:n,colspan:e,type:"group-value"}))}),a.cells.push({value:"Grand Total",type:"double"}),A+=1,f&&(A+=S.length,l=S.map(function(){return{value:""}}),(s=a.cells).push.apply(s,l)),a)),w.headers.push((e={cells:[]},p=c.map(function(t){return{value:h[t.name].label}}),(s=e.cells).push.apply(s,p),1<_?(t.forEach(function(t){1===h[t.name].groupingLevel&&e.cells.push({value:h[t.name].label})}),v.forEach(function(t){t.groupings.forEach(function(t){e.cells.push({value:t.label,type:"group-value"})}),e.cells.push({value:"Subtotal",type:"double"})})):(1<g.length&&(1<C||1===C&&1===_)&&e.cells.push({value:""}),s=v.map(function(t){return{value:t.label,type:"group-value"}}),(p=e.cells).push.apply(p,s)),e.cells.push({value:""}),f&&(p=S.map(function(t){return{value:y[t.name].label,type:y[t.name].dataType}}),(s=e.cells).push.apply(s,p)),e)),w.columnLength=A,r.forEach(function(a,h){var t,e,d;1<C?(a.groupings.forEach(function(e,d){var t,n=[],p=[];g.forEach(function(l,s){var c,t;"RowCount"===l&&!u||(c={id:F.v4(),cells:[]},0===d&&0===s?c.cells.push({label:a.label,value:a.label}):c.cells.push({value:""}),0===s?c.cells.push({label:e.label,value:e.label}):c.cells.push({value:""}),(1<g.length||1<_)&&c.cells.push(x[l]),v.forEach(function(r,i){1<_?r.groupings.forEach(function(t,e){var n,a=[h+"_"+d,i+"_"+e].join("!"),a=m[a],o=a&&a.aggregates?a.aggregates:[],a=a&&a.rows?a.rows:[],o=o[s]||{};o.type=x[l]?x[l].dataType:"",c.cells.push(o),f&&(n=(r.groupings.length+1)*i+e,a.forEach(function(e){0<k.length?p.push.apply(p,k.map(function(t){return $s(e,t,n)})):p.push($s(e,null,n))}))}):f&&(t=(t=m[h+"_"+d+"!"+i])&&t.rows?t.rows:[],n=i,t.forEach(function(e){var t;0<k.length?k.forEach(function(t){t=$s(e,t,n);p.push(t)}):(t=$s(e,null,n),p.push(t))}));var n,t=m[h+"_"+d+"!"+i],t=t&&t.aggregates?t.aggregates:[];t&&0<t.length&&c.cells.push(R({type:x[l].dataType},t[s]))}),(t=(t=m[h+"_"+d+"!T"])&&t.aggregates?t.aggregates:[])&&0<t.length&&c.cells.push(R({type:x[l].dataType},t[s])),f&&S.forEach(function(){c.cells.push({value:""})}),n.push(c))}),(t=w.rows).push.apply(t,n),(t=w.rows).push.apply(t,p)}),b&&g.forEach(function(t,a){var o;"RowCount"===t&&!u||((o={id:F.v4(),cells:[]}).cells.push({value:""}),0===a?o.cells.push({label:i.languageLocaleKey&&i.languageLocaleKey.startsWith("zh")?"小计":"Subtotals",value:"Subtotal",type:"double"}):o.cells.push({value:""}),(1<g.length||1<_)&&o.cells.push({label:x[t].label,value:x[t].label}),v.forEach(function(t,n){t.groupings.forEach(function(t,e){e=[h,n+"_"+e].join("!");o.cells.push(R({type:"double"},m[e].aggregates[a]))}),o.cells.push(R({type:"double"},m[h+"!"+n].aggregates[a]))}),o.cells.push(R({type:"double"},m[h+"!T"].aggregates[a])),S.forEach(function(){o.cells.push({value:""})}),w.rows.push(o))})):(e=[],d=[],g.forEach(function(l,s){var c;("RowCount"!==l||u)&&(c={id:F.v4(),cells:[]},0===s?c.cells.push({label:a.label,value:a.value}):c.cells.push({value:""}),(1<g.length||1<_)&&c.cells.push({label:x[l].label,value:x[l].label,type:x[l].dataType}),v.forEach(function(r,i){var t,n;1<_?r.groupings.forEach(function(t,e){var n,a=[h,i+"_"+e].join("!"),a=m[a],o=a&&a.rows?a.rows:[],a=a&&a.aggregates?a.aggregates:[];c.cells.push(R({type:x[l].dataType},a[s])),f&&(n=(r.groupings.length+1)*i+e,o.forEach(function(e){var t;0<k.length?k.forEach(function(t){t=$s(e,t,n);d.push(t)}):(t=$s(e,null,n),d.push(t))}))}):f&&(t=(t=m[h+"!"+i])&&t.rows?t.rows:[],n=i,t.forEach(function(e){var t;0<k.length?k.forEach(function(t){t=$s(e,t,n);d.push(t)}):(t=$s(e,null,n),d.push(t))})),c.cells.push(R({type:x[l].dataType},m[h+"!"+i].aggregates[s]))}),c.cells.push(R({type:x[l].dataType},m[h+"!T"].aggregates[s])),f&&S.forEach(function(){c.cells.push({value:""})}),u)&&e.push(c)}),(t=w.rows).push.apply(t,e),(t=w.rows).push.apply(t,d))}),o&&(n=[],g.forEach(function(a,o){var r;"RowCount"===a&&!u||(r={id:F.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<C&&r.cells.push({value:""}),(1<g.length||1<_)&&r.cells.push({label:x[a].label,value:x[a].label}),v.forEach(function(t,n){1<_&&t.groupings.forEach(function(t,e){r.cells.push(R({type:x[a].dataType},m["T!"+n+"_"+e].aggregates[o]))}),r.cells.push(R({type:x[a].dataType},m["T!"+n].aggregates[o]))}),r.cells.push(R({type:x[a].dataType},m["T!T"].aggregates[o])),S.forEach(function(){r.cells.push({value:""})}),n.push(r))}),(l=w.rows).push.apply(l,n)),w},ReportDataConvertor.prototype.getSummaryAggregateRows=function(t){for(var l=t.aggregates,e=t.hasDetailRows,n=t.detailColumns,s=t.rowAggregates,a=t.background,t=t.isGrand,o=void 0!==t&&t,r=[],c={},d={s:"",m:"min",mx:"max",a:"avg"},i=(l.forEach(function(t){var e=t.split("!"),e=e[e.length-1];c[e]=c[e]||[],c[e].push(t)}),0),p=(Object.keys(c).forEach(function(t){c[t]&&c[t].length>i&&(i=c[t].length)}),0);p<i;p+=1)!function(i){var t={id:F.v4(),type:"group-aggregate",grand:o,background:a,cells:[]};n.forEach(function(o){var r;(e||c[o])&&(r={label:"",value:""},Object.keys(c).forEach(function(e){var t,n,a;o===e&&0<=(t=l.findIndex(function(t){return t===c[e][i]}))&&(n=l[t].split("!")[0],a=s[t].label,r.label=(n=d[n])?n+" "+a:a,r.value=s[t].value)}),t.cells.push(r))}),r.push(t)}(p);return r},ReportDataConvertor.prototype.getBackground=function(t){return"rgb("+(237-10*t)+", "+(241-10*t)+", "+(247-10*t)+")"};var ct,M,dt=ReportDataConvertor;function ReportDataConvertor(t,e){var n=ct.call(this)||this;return n.tableData={headers:[],rows:[],showHeader:!0,format:""},n.languageLocaleKey=e,n.init(t),n}function SFBarChart(){return null!==M&&M.apply(this,arguments)||this}__extends(SFBarChart,M=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFBarChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFBarChart.prototype,"metadata",void 0);function m0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 P,i=__decorate([t.Component({components:{BarChart:J}})],SFBarChart),B=(m0._withStripped=!0,normalizeComponent({render:m0,staticRenderFns:[]},void 0,i,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFFunnelChart(){return null!==P&&P.apply(this,arguments)||this}__extends(SFFunnelChart,P=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFFunnelChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFFunnelChart.prototype,"metadata",void 0);function v0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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],"combine-small-groups":t.metadata.combineSmallGroups}}):t._e()}var j,a=__decorate([t.Component({components:{FunnelChart:tt}})],SFFunnelChart),D=(v0._withStripped=!0,normalizeComponent({render:v0,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFGaugeChart(){return null!==j&&j.apply(this,arguments)||this}__extends(SFGaugeChart,j=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof GaugeData&&GaugeData)?i:Object)],SFGaugeChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGaugeChart.prototype,"metadata",void 0);function E0(){var t=this,e=t.$createElement,e=t._self._c||e;return void 0!==t.data.value?e("gauge-chart",{attrs:{data:t.data,decimal:2,aggregate:t.metadata.aggregateColumns[0]}}):t._e()}var pt,a=__decorate([t.Component({components:{GaugeChart:et}})],SFGaugeChart),ht=(E0._withStripped=!0,normalizeComponent({render:E0,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFHorizontalBarChart(){return null!==pt&&pt.apply(this,arguments)||this}__extends(SFHorizontalBarChart,pt=t.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:!1,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barHeight",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?13:23},enumerable:!1,configurable:!0}),Object.defineProperty(SFHorizontalBarChart.prototype,"barPadding",{get:function(){return 1<this.metadata.aggregateColumns.length||this.isGrouped&&"grouped"===this.metadata.groupByType?20:15},enumerable:!1,configurable:!0}),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFHorizontalBarChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFHorizontalBarChart.prototype,"metadata",void 0);function N0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 mt,i=__decorate([t.Component({components:{BarChartHorizontal:q}})],SFHorizontalBarChart),E=(N0._withStripped=!0,normalizeComponent({render:N0,staticRenderFns:[]},void 0,i,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFLineChart(){return null!==mt&&mt.apply(this,arguments)||this}__extends(SFLineChart,mt=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFLineChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFLineChart.prototype,"metadata",void 0);function W0(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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 gt,a=__decorate([t.Component({components:{LineChart:K}})],SFLineChart),L=(W0._withStripped=!0,normalizeComponent({render:W0,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFMetricChart(){return null!==gt&&gt.apply(this,arguments)||this}__extends(SFMetricChart,gt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof MetricData&&MetricData)?i:Object)],SFMetricChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMetricChart.prototype,"metadata",void 0);function db(){var t=this.$createElement;return(this._self._c||t)("metric-chart",{attrs:{data:this.data,aggregate:this.metadata.aggregateColumns[0],decimal:2}})}var ut,a=__decorate([t.Component({components:{MetricChart:nt}})],SFMetricChart),ft=(db._withStripped=!0,normalizeComponent({render:db,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFPieChart(){return null!==ut&&ut.apply(this,arguments)||this}__extends(SFPieChart,ut=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFPieChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFPieChart.prototype,"metadata",void 0),__decorate([t.Prop({type:Object,required:!1}),__metadata("design:type",Object)],SFPieChart.prototype,"area",void 0);function mb(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("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],"combine-small-groups":t.metadata.combineSmallGroups,area:t.area}}):t._e()}var bt,i=__decorate([t.Component({components:{PieChart:$}})],SFPieChart),O=(mb._withStripped=!0,normalizeComponent({render:mb,staticRenderFns:[]},void 0,i,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFScatterChart(){return null!==bt&&bt.apply(this,arguments)||this}__extends(SFScatterChart,bt=t.Vue),__decorate([t.Prop({type:Array,required:!0}),__metadata("design:type",Array)],SFScatterChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFScatterChart.prototype,"metadata",void 0);function vb(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.length?e("scatter-chart",{attrs:{data:t.data,groupings:t.metadata.groupingColumns,aggregates:t.metadata.aggregateColumns,"group-type":t.metadata.groupByType,decimal:2}}):t._e()}var xt,a=__decorate([t.Component({components:{ScatterChart:at}})],SFScatterChart),N=(vb._withStripped=!0,normalizeComponent({render:vb,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFTableChart(){return null!==xt&&xt.apply(this,arguments)||this}__extends(SFTableChart,xt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type","function"==typeof(i="undefined"!=typeof TableData&&TableData)?i:Object)],SFTableChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFTableChart.prototype,"metadata",void 0);function Eb(){var t=this,e=t.$createElement,e=t._self._c||e;return 0<t.data.headers.length?e("table-chart",{attrs:{data:t.data}}):t._e()}var yt,a=__decorate([t.Component({components:{TableChart:ot}})],SFTableChart),vt=(Eb._withStripped=!0,normalizeComponent({render:Eb,staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0));function SFGlossaryChart(){return null!==yt&&yt.apply(this,arguments)||this}__extends(SFGlossaryChart,yt=t.Vue),Object.defineProperty(SFGlossaryChart.prototype,"content",{get:function(){var t;return(null==(t=this.data)?void 0:t.content)||""},enumerable:!1,configurable:!0}),Object.defineProperty(SFGlossaryChart.prototype,"title",{get:function(){var t;return(null==(t=this.metadata)?void 0:t.title)||""},enumerable:!1,configurable:!0}),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGlossaryChart.prototype,"data",void 0),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGlossaryChart.prototype,"metadata",void 0);function Nb(){var t=this.$createElement;return(this._self._c||t)("glossary-chart",{attrs:{content:this.content,title:this.title}})}var wt,_t,i=__decorate([t.Component({components:{GlossaryChart:rt}})],SFGlossaryChart),Ct=(Nb._withStripped=!0,normalizeComponent({render:Nb,staticRenderFns:[]},void 0,i,void 0,!1,void 0,!1,void 0,void 0,void 0)),kt=["All values are negative or zero.","Pie, donut, funnel, and stacked charts require at least one positive value to display."].join(" "),a=(__extends(SFChartMixins,wt=t.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([t.Prop({type:String,default:function(){return"No data to display."}}),__metadata("design:type",String)],SFChartMixins.prototype,"noDataText",void 0),__decorate([t.Prop({type:String,default:function(){return kt}}),__metadata("design:type",String)],SFChartMixins.prototype,"negativeDataText",void 0),__decorate([t.Component],SFChartMixins));function SFChartMixins(){return null!==wt&&wt.apply(this,arguments)||this}function SFDashboardChart(){var t=null!==_t&&_t.apply(this,arguments)||this;return t.functional=!0,t}__extends(SFDashboardChart,_t=t.Mixins(a)),Object.defineProperty(SFDashboardChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!1,configurable:!0}),Object.defineProperty(SFDashboardChart.prototype,"hasError",{get:function(){return this.data.status.errorCode},enumerable:!1,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:!1,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:!1,configurable:!0}),SFDashboardChart.prototype.render=function(t){var e,n=new st(this.metadata,this.data),n=(this.refactoredData=n.data,this.refactoredMetadata=n.metadata,[]);return"RichText"===this.chartType?n.push(this.renderChart(t)):this.hasError?(e=this.data.status.errorSeverity+": "+this.data.status.errorMessage,n.push(this.renderError(t,e))):this.isEmpty?n.push(this.renderPrompt(t,this.noDataText)):this.isNegative?n.push(this.renderPrompt(t,this.negativeDataText)):n.push(this.renderChart(t)),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};if("RichText"===this.chartType)return t(Ct,{props:e});if("Bar"===this.chartType)return t(E,{props:e});if("Column"!==this.chartType){if("Donut"===this.chartType||"Pie"===this.chartType)return 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(O,{props:e});if("Funnel"===this.chartType)return t(D,{props:e});if("Gauge"===this.chartType)return t(ht,{props:e});if("Line"===this.chartType)return t(L,{props:e});if("Metric"===this.chartType)return t(ft,{props:e});if("Scatter"===this.chartType)return t(N,{props:e});if("Table"===this.chartType||"FlexTable"===this.chartType)return t(vt,{props:e});console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart.")}return t(B,{props:e})},__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"data",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFDashboardChart.prototype,"metadata",void 0);var St,At=normalizeComponent({},function(t){t&&t("data-v-f74e543c_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: 1.4rem;\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: 1.4rem;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n height: 100% !important;\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})},__decorate([t.Component({components:{SFBarChart:B,SFFunnelChart:D,SFHorizontalBarChart:E,SFLineChart:L,SFGaugeChart:ht,SFMetricChart:ft,SFPieChart:O,SFScatterChart:N,SFTableChart:vt,SFGlossaryChart:Ct}})],SFDashboardChart),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFReportChart(){var t=null!==St&&St.apply(this,arguments)||this;return t.functional=!0,t}__extends(SFReportChart,St=t.Mixins(a)),Object.defineProperty(SFReportChart.prototype,"chartType",{get:function(){return this.refactoredMetadata&&this.refactoredMetadata.chartType||""},enumerable:!1,configurable:!0}),Object.defineProperty(SFReportChart.prototype,"isEmpty",{get:function(){return!this.refactoredData||0===this.refactoredData.length},enumerable:!1,configurable:!0}),SFReportChart.prototype.render=function(t){var e=new dt(this.data),e=(this.refactoredData=e.data,this.refactoredMetadata=e.metadata,[]);return this.isEmpty?e.push(this.renderPrompt(t,this.noDataText)):e.push(this.renderChart(t)),t("div",{staticClass:"sf-analytics-chart",class:"sf-"+this.chartType.toLowerCase().replace(/\s/g,"-")+"-chart"},e)},SFReportChart.prototype.renderChart=function(t){var e={data:this.refactoredData,metadata:this.refactoredMetadata,area:this.area};if("Horizontal Bar"===this.chartType||"Horizontal Bar Grouped"===this.chartType||"Horizontal Bar Stacked"===this.chartType||"Horizontal Bar Stacked to 100"===this.chartType)return t(E,{props:e});if("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){if("Donut"===this.chartType||"Pie"===this.chartType)return 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(O,{props:e});if("Funnel"===this.chartType)return t(D,{props:e});if("Line"===this.chartType||"Line Cumulative"===this.chartType||"Line Grouped"===this.chartType||"Line Cumulative Grouped"===this.chartType)return t(L,{props:e});if("Scatter"===this.chartType||"Scatter Grouped"===this.chartType)return t(N,{props:e});console.warn("What should I do? "+this.chartType),console.warn("Render as a bar chart.")}return t(B,{props:e})},__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"data",void 0),__decorate([t.Prop({type:Object}),__metadata("design:type",Object)],SFReportChart.prototype,"area",void 0);var Tt,Mt=normalizeComponent({},function(t){t&&t("data-v-6f6bdd71_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: 1.4rem;\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: 1.4rem;\n line-height: 20px;\n color: #d74c3b;\n min-height: 200px;\n}\n.sf-analytics-chart.sf-metric-chart {\n padding: 20px 10px;\n height: 100% !important;\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})},__decorate([t.Component({components:{SFBarChart:B,SFFunnelChart:D,SFHorizontalBarChart:E,SFLineChart:L,SFPieChart:O,SFScatterChart:N}})],SFReportChart),void 0,void 0,void 0,!1,createInjector,void 0,void 0);function SFGroupingTableGroupRow(){return null!==Tt&&Tt.apply(this,arguments)||this}__extends(SFGroupingTableGroupRow,Tt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"hasRecordCount",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableGroupRow.prototype,"isID",void 0);function l1(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"group-row"},[t("div",{staticClass:"label",style:{"margin-left":e.data.margin}},[e._v(e._s(e.data.fieldLabel))]),e._v(" "),t("div",{staticClass:"label-mark"},[e._v(":")]),e._v(" "),t("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?t("div",{staticClass:"count-left-mark"},[e._v("(")]):e._e(),e._v(" "),e.hasRecordCount?t("div",{staticClass:"count"},[e._v(e._s(e.data.recordCount))]):e._e(),e._v(" "),e.hasRecordCount?t("div",{staticClass:"count-right-mark"},[e._v(")")]):e._e()])}function n1(t){t&&t("data-v-bf797e44_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.group-row[data-v-bf797e44] {\n font-size: 1.2rem;\n padding: 0px 10px;\n position: relative;\n}\n.group-row[data-v-bf797e44]: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-bf797e44]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-bf797e44]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-bf797e44]:before {\n transform-origin: 0% 33%;\n}\n.group-row[data-v-bf797e44]: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-bf797e44]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .group-row[data-v-bf797e44]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .group-row[data-v-bf797e44]:after {\n transform-origin: 66% 33%;\n}\n.group-row .label[data-v-bf797e44], .group-row .value[data-v-bf797e44], .group-row .count[data-v-bf797e44] {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.group-row .label[data-v-bf797e44], .group-row .count[data-v-bf797e44] {\n font-weight: bold;\n}\n.group-row .value[data-v-bf797e44], .group-row .count-left-mark[data-v-bf797e44] {\n margin-left: 5px;\n}\n.group-row .label[data-v-bf797e44], .group-row .value[data-v-bf797e44] {\n max-width: 30%;\n}\n.group-row .count[data-v-bf797e44] {\n max-width: calc(40% - 22px);\n}\n.group-row .label-mark[data-v-bf797e44], .group-row .count-left-mark[data-v-bf797e44], .group-row .count-right-mark[data-v-bf797e44] {\n float: left;\n width: 4px;\n}\n.group-row .value.id[data-v-bf797e44] {\n color: #09afe6;\n}',map:void 0,media:void 0})}var zt,i=__decorate([t.Component({})],SFGroupingTableGroupRow),Gt=(l1._withStripped=!0,normalizeComponent({render:l1,staticRenderFns:[]},n1,i,"data-v-bf797e44",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableAggregateRow(){return null!==zt&&zt.apply(this,arguments)||this}__extends(SFGroupingTableAggregateRow,zt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableAggregateRow.prototype,"data",void 0);function u1(){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)}function w1(t){t&&(t("data-v-312cab28_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.aggregate-row[data-v-312cab28] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 1.2rem;\n}\n.aggregate-row .data-cell[data-v-312cab28] {\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-312cab28]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform-origin: 0% 33%;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform-origin: 66% 33%;\n}',map:void 0,media:void 0}),t("data-v-312cab28_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-312cab28] {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:after {\n transform-origin: 66% 33%;\n}\n.aggregate-row .data-cell[data-v-312cab28]:first-child {\n position: relative;\n}\n.aggregate-row .data-cell[data-v-312cab28]: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-312cab28]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .aggregate-row .data-cell[data-v-312cab28]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))}var Ft,a=__decorate([t.Component({})],SFGroupingTableAggregateRow),Rt=(u1._withStripped=!0,normalizeComponent({render:u1,staticRenderFns:[]},w1,a,"data-v-312cab28",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableTotalRow(){return null!==Ft&&Ft.apply(this,arguments)||this}__extends(SFGroupingTableTotalRow,Ft=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"data",void 0),__decorate([t.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableTotalRow.prototype,"hasRecordCount",void 0);function D1(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{staticClass:"total-row"},[e("div",{staticClass:"label"},[t._v(t._s(t.data.label))]),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?e("div",{staticClass:"count-left-mark"},[t._v("(")]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?e("div",{staticClass:"count"},[t._v(t._s(t.data.recordCount))]):t._e(),t._v(" "),t.hasRecordCount&&"subtotals"!==t.data.type?e("div",{staticClass:"count-right-mark"},[t._v(")")]):t._e()])}function F1(t){t&&t("data-v-1772f5f6_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.total-row[data-v-1772f5f6] {\n font-size: 1.2rem;\n padding: 0px 10px;\n position: relative;\n}\n.total-row[data-v-1772f5f6]: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-1772f5f6]:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-1772f5f6]:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-1772f5f6]:before {\n transform-origin: 0% 33%;\n}\n.total-row[data-v-1772f5f6]: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-1772f5f6]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .total-row[data-v-1772f5f6]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .total-row[data-v-1772f5f6]:after {\n transform-origin: 66% 33%;\n}\n.total-row .label[data-v-1772f5f6], .total-row .count[data-v-1772f5f6] {\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-1772f5f6] {\n margin-left: 5px;\n}\n.total-row .label[data-v-1772f5f6] {\n max-width: 20%;\n}\n.total-row .count[data-v-1772f5f6] {\n max-width: calc(80% - 13px);\n}\n.total-row .count-left-mark[data-v-1772f5f6], .total-row .count-right-mark[data-v-1772f5f6] {\n float: left;\n width: 4px;\n}',map:void 0,media:void 0})}var Pt,i=__decorate([t.Component({})],SFGroupingTableTotalRow),Bt=(D1._withStripped=!0,normalizeComponent({render:D1,staticRenderFns:[]},F1,i,"data-v-1772f5f6",!1,void 0,!1,createInjector,void 0,void 0));function SFGroupingTableDataRow(){var t=null!==Pt&&Pt.apply(this,arguments)||this;return t.checkedImage=k,t.uncheckedImage=A,t}__extends(SFGroupingTableDataRow,Pt=t.Vue),__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"data",void 0),__decorate([t.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isNumber",void 0),__decorate([t.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isBoolean",void 0),__decorate([t.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isHTML",void 0),__decorate([t.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isURL",void 0),__decorate([t.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isPhone",void 0),__decorate([t.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isEmail",void 0),__decorate([t.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isText",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableDataRow.prototype,"isID",void 0);function M1(){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)}function O1(t){t&&(t("data-v-1e6a0df5_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.data-row[data-v-1e6a0df5] {\n width: 100%;\n display: flex;\n flex-flow: row;\n align-items: center;\n font-size: 1.2rem;\n}\n.data-row .data-cell[data-v-1e6a0df5] {\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-1e6a0df5]: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-1e6a0df5]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-1e6a0df5]: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-1e6a0df5]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform-origin: 0% 33%;\n}\n.data-row .data-cell .checkbox[data-v-1e6a0df5] {\n width: 18px;\n padding-top: 13px;\n}\n.data-row .data-cell.number-cell[data-v-1e6a0df5] {\n text-align: right;\n}\n.data-row .data-cell .id[data-v-1e6a0df5] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-1e6a0df5_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-1e6a0df5] {\n position: relative;\n}\n.data-row .data-cell[data-v-1e6a0df5]: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-1e6a0df5]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:after {\n transform-origin: 66% 33%;\n}\n.data-row .data-cell[data-v-1e6a0df5]:first-child {\n position: relative;\n}\n.data-row .data-cell[data-v-1e6a0df5]: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-1e6a0df5]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .data-row .data-cell[data-v-1e6a0df5]:first-child:before {\n transform-origin: 0% 33%;\n}\n}',map:void 0,media:void 0}))}var jt,Dt,a=__decorate([t.Component({})],SFGroupingTableDataRow),Et=(M1._withStripped=!0,normalizeComponent({render:M1,staticRenderFns:[]},O1,a,"data-v-1e6a0df5",!1,void 0,!1,createInjector,void 0,void 0)),i=(__extends(SFTableRowMixins,jt=t.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))},__decorate([t.Component],SFTableRowMixins));function SFTableRowMixins(){return null!==jt&&jt.apply(this,arguments)||this}function SFGroupingTableRow(){var t=null!==Dt&&Dt.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}__extends(SFGroupingTableRow,Dt=t.Mixins(i)),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(Gt,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})):"group-aggregate"===this.source.type?n.push(t(Rt,{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(Bt,{props:a})):"data"===this.source.type&&n.push(t(Et,{props:a,on:{"cell-clicked":function(t){e.dispatch("SFGroupingTable","cell-clicked",t)}}})),n},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"source",void 0),__decorate([t.Prop({type:Boolean,required:!1}),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"hasRecordCount",void 0),__decorate([t.Inject("isCellNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellNumber",void 0),__decorate([t.Inject("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellBoolean",void 0),__decorate([t.Inject("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellHTML",void 0),__decorate([t.Inject("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellURL",void 0),__decorate([t.Inject("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellPhone",void 0),__decorate([t.Inject("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellEmail",void 0),__decorate([t.Inject("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellText",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isCellID",void 0),__decorate([t.Provide("isNumber"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isNumber",void 0),__decorate([t.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isBoolean",void 0),__decorate([t.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isURL",void 0),__decorate([t.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isHTML",void 0),__decorate([t.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isPhone",void 0),__decorate([t.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isEmail",void 0),__decorate([t.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isText",void 0),__decorate([t.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTableRow.prototype,"isID",void 0);var It,Lt=normalizeComponent({},void 0,__decorate([t.Component({components:{GroupRow:Gt,AggregateRow:Rt,TotalRow:Bt,DataRow:Et}})],SFGroupingTableRow),void 0,void 0,void 0,!1,void 0,void 0,void 0);function SFGroupingTable(){var t=null!==It&&It.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=Lt,t}__extends(SFGroupingTable,It=t.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){t=this.data.headers[t];return!!t&&("datetime"===t.dataType||"currency"===t.dataType||"date"===t.dataType||"int"===t.dataType||"double"===t.dataType||"percent"===t.dataType||"boolean"===t.dataType)},SFGroupingTable.prototype.isBoolean=function(t){t=this.data.headers[t];return!!t&&"boolean"===t.dataType},SFGroupingTable.prototype.isURL=function(t){t=this.data.headers[t];return!!t&&"url"===t.dataType},SFGroupingTable.prototype.isHTML=function(t){t=this.data.headers[t];return!!t&&"html"===t.dataType},SFGroupingTable.prototype.isPhone=function(t){t=this.data.headers[t];return!!t&&"phone"===t.dataType},SFGroupingTable.prototype.isEmail=function(t){t=this.data.headers[t];return!!t&&"email"===t.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){var n;return!!e&&(n=new RegExp("^[a-zA-Z0-9]+$"),this.sobjects.some(function(t){return n.test(e)&&(15===e.length||18===e.length)&&t.layoutable&&(""+e).startsWith(t.keyPrefix)}))},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFGroupingTable.prototype,"data",void 0),__decorate([t.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFGroupingTable.prototype,"sobjects",void 0),__decorate([t.Provide("isCellNumber"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellNumber",void 0),__decorate([t.Provide("isCellBoolean"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellBoolean",void 0),__decorate([t.Provide("isCellURL"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellURL",void 0),__decorate([t.Provide("isCellHTML"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellHTML",void 0),__decorate([t.Provide("isCellPhone"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellPhone",void 0),__decorate([t.Provide("isCellEmail"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellEmail",void 0),__decorate([t.Provide("isCellText"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellText",void 0),__decorate([t.Provide("isCellID"),__metadata("design:type",Object)],SFGroupingTable.prototype,"isCellID",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFGroupingTable.prototype,"onDataChanged",null);function cc(){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)}function ec(t){t&&(t("data-v-74212ca2_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-74212ca2_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-grouping-table[data-v-74212ca2] {\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-74212ca2] {\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-74212ca2] {\n flex: 1;\n color: #ffffff;\n font-size: 1.6rem;\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-74212ca2]:not(:last-child) {\n position: relative;\n}\n.sf-grouping-table .sf-grouping-table-header .sf-grouping-table-header-cell[data-v-74212ca2]: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-74212ca2]: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-74212ca2]: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-74212ca2]:not(:last-child):after {\n transform-origin: 66% 33%;\n}\n.sf-grouping-table .sf-grouping-table-content[data-v-74212ca2] {\n width: 100%;\n height: calc(100% - 44px);\n overflow-y: auto;\n}',map:void 0,media:void 0}))}var Ot,a=__decorate([t.Component({components:{VirtualList:e}})],SFGroupingTable),Nt=(cc._withStripped=!0,normalizeComponent({render:cc,staticRenderFns:[]},ec,a,"data-v-74212ca2",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTableRow(){var t=null!==Ot&&Ot.apply(this,arguments)||this;return t.checkedImage=k,t.uncheckedImage=A,t}__extends(SFMatrixTableRow,Ot=t.Mixins(i)),SFMatrixTableRow.prototype.isText=function(t){return"boolean"!==t&&"url"!==t&&"html"!==t&&"email"!==t&&"phone"!==t},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"source",void 0),__decorate([t.Prop({type:Number,required:!0}),__metadata("design:type",Number)],SFMatrixTableRow.prototype,"cellWidth",void 0),__decorate([t.Inject("getCellClass"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"getCellClass",void 0),__decorate([t.Inject("isCellID"),__metadata("design:type",Object)],SFMatrixTableRow.prototype,"isCellID",void 0);function lc(){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)}function nc(t){t&&(t("data-v-242b2855_0",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table-cell[data-v-242b2855] {\n float: left;\n height: 41px;\n font-size: 1.2rem;\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-242b2855]: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-242b2855]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform-origin: 66% 33%;\n}\n.sf-matrix-table-cell[data-v-242b2855]: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-242b2855]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell.right-align-cell[data-v-242b2855] {\n text-align: right;\n}\n.android .sf-matrix-table-cell.right-align-cell[data-v-242b2855] {\n padding-right: 20px;\n}\n.sf-matrix-table-cell.center-align-cell[data-v-242b2855] {\n text-align: center;\n}\n.sf-matrix-table-cell .checkbox[data-v-242b2855] {\n width: 18px;\n padding-top: 13px;\n}\n.sf-matrix-table-cell a[data-v-242b2855] {\n color: #00A383;\n}\n.sf-matrix-table-cell .id[data-v-242b2855] {\n color: #09afe6;\n}',map:void 0,media:void 0}),t("data-v-242b2855_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-242b2855] {\n color: #f2f2f7;\n}\n.sf-matrix-table-cell[data-v-242b2855]: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-242b2855]:first-child:before {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:first-child:before {\n transform-origin: 0% 33%;\n}\n.sf-matrix-table-cell[data-v-242b2855]: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-242b2855]:after {\n transform: scaleX(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform: scaleX(0.33);\n}\n.android.pixel-ratio-3 .sf-matrix-table-cell[data-v-242b2855]:after {\n transform-origin: 66% 33%;\n}\n}',map:void 0,media:void 0}))}var Ht,a=__decorate([t.Component({})],SFMatrixTableRow),Vt=(lc._withStripped=!0,normalizeComponent({render:lc,staticRenderFns:[]},nc,a,"data-v-242b2855",!1,void 0,!1,createInjector,void 0,void 0));function SFMatrixTable(){var t=null!==Ht&&Ht.apply(this,arguments)||this;return t.getCellClass=t.getClass,t.isCellID=t.isID,t.parentWidth="100%",t.cellWidth=120,t.rowComponent=Vt,t}__extends(SFMatrixTable,Ht=t.Vue),Object.defineProperty(SFMatrixTable.prototype,"contentHeight",{get:function(){return"calc(100% - "+41*this.data.headers.length+"px)"},enumerable:!1,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){var n;return!!e&&(n=new RegExp("^[a-zA-Z0-9]+$"),this.sobjects.some(function(t){return n.test(e)&&(15===e.length||18===e.length)&&t.layoutable&&(""+e).startsWith(t.keyPrefix)}))},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFMatrixTable.prototype,"data",void 0),__decorate([t.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFMatrixTable.prototype,"sobjects",void 0),__decorate([t.Provide("getCellClass"),__metadata("design:type",Object)],SFMatrixTable.prototype,"getCellClass",void 0),__decorate([t.Provide("isCellID"),__metadata("design:type",Object)],SFMatrixTable.prototype,"isCellID",void 0),__decorate([t.Watch("data",{deep:!0}),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],SFMatrixTable.prototype,"onDataChanged",null);function vc(){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)}function xc(t){t&&(t("data-v-2cb308e3_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-2cb308e3_1",{source:'/* Colors\n========================================================================== */\n/* Typography\n========================================================================== */\n/* Border Radius\n========================================================================== */\n/* Table */\n/* Safe Area */\n.sf-matrix-table[data-v-2cb308e3] {\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-2cb308e3] {\n background: #00A383;\n height: 41px;\n line-height: 41px;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-2cb308e3]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row[data-v-2cb308e3]: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-2cb308e3]:not(:last-child):after {\n transform: scaleY(0.5);\n}\n.pixel-ratio-3 .sf-matrix-table .sf-matrix-table-header-row[data-v-2cb308e3]: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-2cb308e3]: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-2cb308e3] {\n float: left;\n height: 41px;\n font-size: 1.6rem;\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-2cb308e3]:not(:last-child) {\n position: relative;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell[data-v-2cb308e3]: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-2cb308e3]: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-2cb308e3]: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-2cb308e3]: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-2cb308e3] {\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-2cb308e3] {\n padding-right: 20px;\n}\n.sf-matrix-table .sf-matrix-table-header-row .sf-matrix-table-header-cell.center-align-cell[data-v-2cb308e3] {\n text-align: center;\n}\n.sf-matrix-table .sf-matrix-table-content[data-v-2cb308e3] {\n position: relative;\n overflow-y: auto;\n}',map:void 0,media:void 0}))}var Wt,i=__decorate([t.Component({components:{VirtualList:e}})],SFMatrixTable),Xt=(vc._withStripped=!0,normalizeComponent({render:vc,staticRenderFns:[]},xc,i,"data-v-2cb308e3",!1,void 0,!1,createInjector,void 0,void 0));function SFReportTable(){var t=null!==Wt&&Wt.apply(this,arguments)||this;return t.functional=!0,t}__extends(SFReportTable,Wt=t.Vue),SFReportTable.prototype.render=function(t){var e=new dt(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(Xt,{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(Nt,{props:{data:this.refactoredData,sobjects:this.sobjects},on:{"cell-clicked":function(t){e.$emit("cell-clicked",t)}}})},__decorate([t.Prop({type:Object,required:!0}),__metadata("design:type",Object)],SFReportTable.prototype,"data",void 0),__decorate([t.Prop({type:Array,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"sobjects",void 0),__decorate([t.Prop({type:String,required:!1}),__metadata("design:type",Object)],SFReportTable.prototype,"languageLocaleKey",void 0);function Kc(t){t.use(it),t.use(Ut)}var Yt=normalizeComponent({},void 0,__decorate([t.Component({components:{SFGroupingTable:Nt,SFMatrixTable:Xt}})],SFReportTable),void 0,void 0,void 0,!1,void 0,void 0,void 0),Ut=function(t){t.component("SfDashboardChart",At),t.component("SfReportChart",Mt),t.component("SfReportTable",Yt)};return function(t){t.use(Kc)}});