"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8652],{48652:function(e,t,r){r.d(t,{JA:function(){return k},K5:function(){return f},KN:function(){return L},Vd:function(){return O},Xr:function(){return w},bK:function(){return A},dw:function(){return y},fE:function(){return X},iN:function(){return E},rt:function(){return S},ss:function(){return I},yB:function(){return Y},zd:function(){return F}});var l=r(45987),a=r(12611),i=r.n(a),o=r(24839),n=r(82017),d=r(49573),s=(r(91391),r(87415)),c=void r(46572),p=["data","series","legend","isLegendCheckbox","renderOutside","xAxes","yAxes","isSparkline","minHeight","minWidth","strokeWidth","tooltipText","cursorLineX","cursorLineY","lineSeries","onClickColumn"],m=["data","series","legend","isLegendCheckbox","isLegendInactive","xAxes","yAxes","isSparkline","minHeight","minWidth","strokeWidth","tooltipText","cursorLineX","cursorLineY","lineSeries"],u=["data","valueX","valueY","scrollY","imgHref","imgField","imgHeight","imgWidth","barHeight","series2","tooltipText","onClickColumn","hoverAnimation","fontSize","crnerRad1","crnerRad2","circleRadius","outlineCircle","hideValueAxis","hideZoomOutBtn","hideCategoryAxisLabel"],h=["data","valueX","valueY","scrollX","imgHref","imgField","imgHeight","imgWidth","tooltipText","hoverAnimation","fontSize"],b=["data","value","category","radius","legend","legendPosition","labelText","onClickSlice"],g=["data","value","category","radius","color","titleText","labelText","onClickSlice"],v=["data","value","category","legend","legendPosition","labelText","onClickSlice","showLabel"],x=["data","series","legend","xAxes","yAxes","isSparkline","minHeight","minWidth","strokeWidth","tooltipText","cursorLineX","cursorLineY","isLegendCheckbox"],f=[o.colors.primary,o.colors.cta,o.colors.special1,o.colors.special2,o.colors.primary10,o.colors.primary0,o.colors.primary100,o.colors.error],y={OPPORTUNITY:{main:o.colors.orders.OPPORTUNITY.main},PRESENTATION:{main:o.colors.orders.PRESENTATION.main},ESTIMATE:{main:o.colors.orders.ESTIMATE.main},"PRE-SALES":{main:o.colors.orders["PRE-SALES"].main},"SALES ORDER":{main:o.colors.orders["SALES ORDER"].main},INVOICE:{main:o.colors.orders.INVOICE.main},TARGET:{main:o.colors.orders.TARGET.main}},C=["#00B9D5","orange","#F8D548","#cf3476","#FA2272","#088F8F","#0096FF","#89CFF0","#F0FFFF"],k=function(e){return n.color(e)},S=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(k)},T=f.map(k),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"currency";return"currency"===e?"$#,###.##":"number"===e?"#,###":"roundedCurrency"===e?"$#,###.":["percent","percentage"].includes(e)?"###.##%":{}},L=function(e,t){t.data;var r=t.series,a=t.legend,o=void 0===a||a,s=t.isLegendCheckbox,m=void 0!==s&&s,u=(t.renderOutside,t.xAxes),h=t.yAxes,b=void 0===h?[{title:"Totals"}]:h,g=t.isSparkline,v=void 0!==g&&g,x=(t.minHeight,t.minWidth,t.strokeWidth),f=t.tooltipText,y=void 0===f?"{valueX.value}":f,C=t.cursorLineX,k=void 0===C||C,S=t.cursorLineY,w=void 0===S||S,L=t.lineSeries,A=t.onClickColumn,E=void 0===A?null:A,F=(0,l.Z)(t,p);if(e.hiddenState.properties.opacity=0,e.colors.list=F.chartColors||T,F.chartColorsAnalytics&&(e.colors.list=F.chartColorsAnalytics.map((function(e){return new n.color(e)}))),e.cursor=new d.XYCursor,i().isBoolean(k)&&(e.cursor.lineX.disabled=!k),i().isBoolean(w)&&(e.cursor.lineY.disabled=!w),F.formatNumber&&(e.numberFormatter.numberFormat=F.formatNumber),!1!==F.isExportable&&(e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}]),u.forEach((function(t){var r=e.xAxes.push(new d.CategoryAxis);r.dataFields.category=t.category,r.renderer.grid.template.location=0,r.renderer.labels.template.wrap=!0,r.renderer.labels.template.maxWidth=t.maxWidth||55,r.renderer.minGridDistance=30,t.darkerGridLines&&(r.renderer.grid.template.stroke="#000000",r.renderer.grid.template.strokeWidth=2),t.disableGridTemplate&&(r.renderer.grid.template.disabled=!0,r.renderer.line.strokeOpacity=1,r.renderer.line.stroke="#d3d3d3"),t.title&&(r.title.text=t.title),i().isBoolean(t.cursorTooltipEnabled)&&(r.cursorTooltipEnabled=t.cursorTooltipEnabled),t.cellStartLocation&&(r.renderer.cellStartLocation=t.cellStartLocation),t.cellEndLocation&&(r.renderer.cellEndLocation=t.cellEndLocation),v&&(r.renderer.grid.template.disabled=!0,r.renderer.labels.template.disabled=!0,r.cursorTooltipEnabled=!1,r.title.text=null),t.showLabel&&(r.renderer.labels.template.disabled=!1)})),b.forEach((function(t){var r=e.yAxes.push(new d.ValueAxis);t.keepSelection&&(r.keepSelection=!0),r.title.text=t.title,r.renderer.inside=!0,t.renderOutside&&(r.renderer.inside=!1),r.renderer.labels.template.disabled=!0,t.disableGridTemplate&&(r.renderer.grid.template.disabled=!0,t.showAxis&&(r.renderer.line.strokeOpacity=1,r.renderer.line.stroke="#d3d3d3")),i().isBoolean(t.cursorTooltipEnabled)&&(r.cursorTooltipEnabled=t.cursorTooltipEnabled),i().has(t,"min")&&i().isNumber(t.min)&&(r.min=t.min),v&&(r.renderer.grid.template.disabled=!0,r.renderer.baseGrid.disabled=!0,r.renderer.labels.template.disabled=!0,r.cursorTooltipEnabled=!1,r.title.text=null),t.showLabel&&(r.renderer.labels.template.disabled=!1),t.darkerGridLines&&(r.renderer.grid.template.stroke="#000000",r.renderer.grid.template.strokeWidth=2)})),r.forEach((function(t){var r=e.series.push(new d.ColumnSeries);if(r.dataFields.valueY=t.valueY,r.dataFields.categoryX=t.categoryX,r.tooltipText=t.tooltipText||y,r.strokeWidth=t.strokeWidth||x,r.sequencedInterpolation=!0,r.tooltip.cursorOverStyle=n.MouseCursorStyle.pointer,r.tooltip.keepTargetHover=!0,r.tooltip.events.on("hit",(function(e){E&&E(e.target.dataItem.dataContext,i().get(e.target.dataItem,["component","dataFields","valueY"],null))}),c),r.columns.template.events.on("hit",(function(e){E&&E(e.target.dataItem.dataContext,i().get(e.target.dataItem,["component","dataFields","valueY"],null))}),c),t.hidden&&(r.hidden=!0),t.name&&(r.name=t.name,r.id=t.name),t.stroke&&(r.stroke=n.color(t.stroke)),t.fillColor&&(r.columns.template.fill=n.color(t.fillColor)),t.fillPropertyOpacity&&(r.columns.template.propertyFields.fillOpacity=t.fillPropertyOpacity),t.fillOpacity&&(r.fillOpacity=t.fillOpacity),t.stacked&&(r.stacked=!0),v){r.labels&&(r.labels.template.disabled=!0),r.ticks&&(r.ticks.template.disabled=!0);var l=r.bullets.push(new d.CircleBullet);l.circle.opacity=0,l.circle.propertyFields.opacity="opacity",l.circle.radius=3}t.fillAdapter&&r.columns.template.adapter.add("fill",t.fillAdapter),t.strokeAdapter&&r.columns.template.adapter.add("stroke",t.strokeAdapter),t.fillDifferentColors&&r.columns.template.events.once("inited",(function(t){t.target.fill=e.colors.getIndex(t.target.dataItem.index),t.target.stroke=e.colors.getIndex(t.target.dataItem.index)}))})),F.scrollbarY&&(e.scrollbarY=new n.Scrollbar),F.scrollbarX&&(e.scrollbarX=new n.Scrollbar,F.scrollbarXStart&&(e.scrollbarX.start=F.scrollbarXStart),F.scrollbarXEnd&&(e.scrollbarX.end=F.scrollbarXEnd)),v&&(e.cursor=new d.XYCursor,e.cursor.lineY.disabled=!0,e.padding(0,0,0,0),e.chartContainer.minHeight=50,e.chartContainer.minWidth=50),o&&!v){if(e.legend=new d.Legend,m){e.legend.useDefaultMarker=!0;var O=e.legend.markers.template,X=O.children.getIndex(0);X.states.getKey("active"),X.cornerRadius(3,3,3,3),X.defaultState.properties.strokeWidth=0;var Y=O.createChild(n.Label);Y.html="<span style='color:white ;padding-left:5px'> &#10004; <span>",Y.states.create("active").properties.opacity=0}F.reverseLegend&&(e.legend.reverseOrder=!0)}return L&&L.forEach((function(t){var r=e.series.push(new d.LineSeries);r.dataFields.valueY=t.valueY,r.dataFields.categoryX=t.categoryX,r.strokeWidth=3,t.name&&(r.name=t.name),t.strokeDasharrayField&&(r.propertyFields.strokeDasharray=t.strokeDasharrayField),r.tooltip.label.textAlign="middle",t.stroke&&(r.stroke=n.color(t.stroke)),v&&(r.labels&&(r.labels.template.disabled=!0),r.ticks&&(r.ticks.template.disabled=!0)),F.toggleInvoiceLegend&&e.events.on("datavalidated",(function(t){t.target.data[0].hasOwnProperty("target")?(r.hiddenInLegend=!1,e.feedLegend()):(r.hiddenInLegend=!0,e.feedLegend())})),F.toggleSalesLegend&&e.events.on("datavalidated",(function(t){t.target.data[0].hasOwnProperty("sales_orders_target")?(r.hiddenInLegend=!1,e.feedLegend()):(r.hiddenInLegend=!0,e.feedLegend())}));var l=r.bullets.push(new d.Bullet);r.tooltipText=t.tooltipText||"[#fff font-size: 15px]{categoryX}:\n[/][#fff font-size: 20px]{valueY}";var a=l.createChild(n.Circle);a.radius=4,a.fill=n.color("#fff"),a.strokeWidth=3})),e},A=function(e,t){t.data;var r=t.series,a=t.legend,o=void 0!==a&&a,s=t.isLegendCheckbox,c=void 0!==s&&s,p=t.isLegendInactive,u=void 0!==p&&p,h=t.xAxes,b=t.yAxes,g=void 0===b?[{title:"Totals"}]:b,v=t.isSparkline,x=void 0!==v&&v,f=(t.minHeight,t.minWidth,t.strokeWidth),y=t.tooltipText,k=void 0===y?"{valueX.value}":y,S=t.cursorLineX,T=void 0===S||S,w=t.cursorLineY,L=void 0===w||w,A=(t.lineSeries,(0,l.Z)(t,m));if(e.hiddenState.properties.opacity=0,e.cursor=new d.XYCursor,i().isBoolean(T)&&(e.cursor.lineX.disabled=!T),i().isBoolean(L)&&(e.cursor.lineY.disabled=!L),A.formatNumber&&(e.numberFormatter.numberFormat=A.formatNumber),!1!==A.isExportable&&(e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}]),h.forEach((function(t){var r=e.yAxes.push(new d.CategoryAxis);r.dataFields.category=t.category,r.renderer.grid.template.location=0,t.truncate?r.renderer.labels.template.truncate=t.truncate:r.renderer.labels.template.wrap=!0,t.labelTooltipText&&(r.renderer.labels.template.tooltipText=t.labelTooltipText),t.fontSize&&(r.renderer.labels.template.fontSize=t.fontSize),t.labelWidth&&(r.renderer.labels.template.maxWidth=t.labelWidth),r.renderer.minGridDistance=30,t.maxZoomCount&&(r.maxZoomCount=t.maxZoomCount),t.disableGridTemplate&&(r.renderer.grid.template.disabled=!0,t.showAxis&&(r.renderer.line.strokeOpacity=1,r.renderer.line.stroke="#d3d3d3")),t.title&&(r.title.text=t.title),i().isBoolean(t.cursorTooltipEnabled)&&(r.cursorTooltipEnabled=t.cursorTooltipEnabled),t.cellStartLocation&&(r.renderer.cellStartLocation=t.cellStartLocation),t.cellEndLocation&&(r.renderer.cellEndLocation=t.cellEndLocation),x&&(r.renderer.grid.template.disabled=!0,r.renderer.labels.template.disabled=!0,r.cursorTooltipEnabled=!1,r.title.text=null),t.showLabel?r.renderer.labels.template.disabled=!1:r.renderer.labels.template.disabled=!0})),g.forEach((function(t){var r=e.xAxes.push(new d.ValueAxis);r.min=0,t.showTitle&&(r.title.text=t.title),t.disableGridTemplate&&(r.renderer.grid.template.disabled=!0,t.showAxis&&(r.renderer.line.strokeOpacity=1,r.renderer.line.stroke="#d3d3d3")),i().isBoolean(t.cursorTooltipEnabled)&&(r.cursorTooltipEnabled=t.cursorTooltipEnabled),i().has(t,"min")&&i().isNumber(t.min)&&(r.min=t.min),x&&(r.renderer.grid.template.disabled=!0,r.renderer.baseGrid.disabled=!0,r.renderer.labels.template.disabled=!0,r.cursorTooltipEnabled=!1,r.title.text=null),t.showLabel&&(r.renderer.labels.template.disabled=!1)})),r.forEach((function(t){e.colors.list=C.map((function(e){return new n.color(e)}));var r=e.series.push(new d.ColumnSeries);if(r.dataFields.valueX=t.valueY,r.dataFields.categoryY=t.categoryX,r.tooltip.label.maxWidth=300,r.tooltip.label.wrap=!0,r.tooltipText=t.tooltipText||k,r.strokeWidth=t.strokeWidth||f,r.sequencedInterpolation=!0,r.columns.width=0,t.cornerRadius&&(r.columns.template.column.cornerRadiusTopRight=t.cornerRadius,r.columns.template.column.cornerRadiusBottomRight=t.cornerRadius),t.CountHeightChange?r.columns.template.events.on("beforevalidated",(function(r){e.data.length>t.CountHeightChange?r.target.maxHeight=t.maxHeight:r.target.maxHeight=t.maxHeight2})):t.maxHeight&&(r.columns.template.maxHeight=t.maxHeight),t.fillDifferentColors&&r.columns.template.events.once("inited",(function(t){t.target.fill=e.colors.getIndex(t.target.dataItem.index),t.target.stroke=e.colors.getIndex(t.target.dataItem.index)})),t.name&&(r.name=t.name),t.stroke&&(r.stroke=n.color(t.stroke)),t.fillColor&&(r.columns.template.fill=n.color(t.fillColor)),t.fillPropertyOpacity&&(r.columns.template.propertyFields.fillOpacity=t.fillPropertyOpacity),t.fillOpacity&&(r.fillOpacity=t.fillOpacity),t.stacked&&(r.stacked=!0),t.isInsideBarLabel){var l=r.columns.template.createChild(n.Label);l.text=t.insideBarLabelText,l.fontSize=12,l.valign="middle",l.dx=10,l.strokeWidth=0,l.maxWidth=450,l.truncate=!0}if(x){r.labels&&(r.labels.template.disabled=!0),r.ticks&&(r.ticks.template.disabled=!0);var a=r.bullets.push(new d.CircleBullet);a.circle.opacity=0,a.circle.propertyFields.opacity="opacity",a.circle.radius=3}t.fillAdapter&&r.columns.template.adapter.add("fill",t.fillAdapter),t.strokeAdapter&&r.columns.template.adapter.add("stroke",t.strokeAdapter),t.isScrollbarY&&(e.scrollbarY=new n.Scrollbar,e.scrollbarY.startGrip.disabled=!0,e.scrollbarY.endGrip.disabled=!0)})),x&&(e.cursor=new d.XYCursor,e.cursor.lineY.disabled=!0,e.padding(0,0,0,0),e.chartContainer.minHeight=50,e.chartContainer.minWidth=50),o&&!x){if(e.legend=new d.Legend,c){e.legend.useDefaultMarker=!0;var E=e.legend.markers.template,F=E.children.getIndex(0);F.states.getKey("active"),F.cornerRadius(3,3,3,3),F.defaultState.properties.strokeWidth=0;var O=E.createChild(n.Label);O.html="<span style='color:white ;padding-left:5px; '> &#10004; <span>",O.states.create("active").properties.opacity=0}u&&(e.legend.itemContainers.template.clickable=!1,e.legend.itemContainers.template.focusable=!1,e.legend.itemContainers.template.cursorOverStyle=n.MouseCursorStyle.default)}return e},E=function(e,t){var r=t.data,a=t.valueX,o=t.valueY,s=t.scrollY,p=void 0!==s&&s,m=t.imgHref,h=t.imgField,b=t.imgHeight,g=void 0===b?50:b,v=t.imgWidth,x=void 0===v?50:v,f=t.barHeight,y=void 0===f?25:f,C=t.series2,k=t.tooltipText,S=void 0===k?"{valueX.value}":k,w=t.onClickColumn,L=void 0===w?null:w,A=t.hoverAnimation,E=void 0!==A&&A,F=t.fontSize,O=void 0===F?10:F,X=t.crnerRad1,Y=void 0===X?60:X,I=t.crnerRad2,W=void 0===I?15:I,H=t.circleRadius,R=void 0===H?20:H,z=t.outlineCircle,N=void 0===z||z,B=t.hideValueAxis,D=void 0!==B&&B,G=t.hideZoomOutBtn,P=void 0!==G&&G,M=t.hideCategoryAxisLabel,_=void 0!==M&&M,V=(0,l.Z)(t,u);e.hiddenState.properties.opacity=0,P&&(e.zoomOutButton.disabled=!0),e.colors.list=T,V.chartColorsAnalytics&&(e.colors.list=V.chartColorsAnalytics.map((function(e){return new n.color(e)}))),e.paddingLeft=-120,V.formatNumber&&(e.numberFormatter.numberFormat=V.formatNumber),!1!==V.isExportable&&(e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}]);var Z=e.yAxes.push(new d.CategoryAxis);Z.dataFields.category=o,Z.renderer.grid.template.strokeOpacity=0,Z.renderer.minGridDistance=12,Z.renderer.labels.template.dx=180,Z.renderer.labels.template.dy=-20,Z.renderer.labels.template.align="left",Z.renderer.labels.template.fontSize=O||10,V.differentOpacity&&Z.renderer.labels.template.events.once("inited",(function(e){e.target.dataItem._dataContext&&(e.target.fillOpacity=e.target.dataItem._dataContext.opacity)})),Z.renderer.labels.template.maxWidth=170,Z.renderer.maxWidth=170,Z.renderer.minWidth=160,Z.renderer.tooltip.dx=140,Z.cursorTooltipEnabled=!1,V.valueText&&Z.renderer.labels.template.adapter.add("text",(function(e,t,r){return V.valueText})),_&&(Z.renderer.labels.template.disabled=!0);var K=e.xAxes.push(new d.ValueAxis);K.renderer.inside=!0,K.renderer.labels.template.fillOpacity=.3,K.renderer.grid.template.strokeOpacity=0,K.min=0,K.cursorTooltipEnabled=!1,K.renderer.baseGrid.strokeOpacity=0,K.renderer.labels.template.dy=20,V.scaleMax&&(K.min=0,K.max=V.scaleMax,K.strictMinMax=!0,e.invalidateData()),D&&(K.renderer.labels.template.disabled=!0);var q=e.series.push(new d.ColumnSeries);if(q.dataFields.valueX=a,q.dataFields.categoryY=o,q.tooltipText=S,V.tooltipPointerOrientation?q.tooltip.pointerOrientation=V.tooltipPointerOrientation:q.tooltip.pointerOrientation="vertical",q.tooltip.dy=-30,q.columnsContainer.zIndex=100,V.mousePointer&&(q.columns.template.cursorOverStyle=n.MouseCursorStyle.pointer),q.columns.template.events.on("hit",(function(e){L&&L(e.target.dataItem.dataContext,i().get(e.target.dataItem,["component","dataFields","valueY"],null))}),c),V.insideBarLabelText){var U=q.columns.template.createChild(n.Label);U.text=V.insideBarLabelText,U.fontSize=16,U.valign="middle",U.dx=35,U.strokeWidth=0,U.maxWidth=450,U.truncate=!0}var $=q.columns.template;$.height=n.percent(50),$.maxHeight=y,$.column.cornerRadius(Y,W,Y,W),$.strokeOpacity=0,V.chartColorsAnalytics||q.heatRules.push({target:$,property:"fill",dataField:"valueX",min:n.color("#e5dc36"),max:n.color("#5faa46")}),q.mainContainer.mask=void 0,V.onHit&&$.events.on("hit",V.onHit);var j=new d.XYCursor;e.cursor=j,j.lineX.disabled=!0,j.lineY.disabled=!0,j.behavior="none";var J=$.createChild(d.CircleBullet);J.circle.radius=R,J.valign="middle",J.align="left",J.isMeasured=!0,J.interactionsEnabled=!1,J.horizontalCenter="right",J.interactionsEnabled=!1,E&&J.states.create("hover"),N&&J.createChild(n.Circle).adapter.add("radius",(function(e,t){return t.parent.circle.pixelRadius+5}));var Q,ee=J.createChild(n.Image);if(ee.width=x,ee.height=g,ee.horizontalCenter="middle",ee.verticalCenter="middle",ee.clickable=!0,m?ee.href=m:ee.propertyFields.href=h,ee.adapter.add("mask",(function(e,t){return t.parent.circle})),V.autoAdjustHeight&&e.events.on("datavalidated",(function(e){var t=e.target,r=t.yAxes.getIndex(0),l=60*t.data.length-r.pixelHeight,a=t.pixelHeight+l;t.svgContainer.htmlElement.style.height=a+"px"})),C){var te=e.series.push(new d.ColumnSeries);te.dataFields.valueX=C.valueX,te.dataFields.categoryY=C.valueY,te.tooltipText=C.tooltipText||S||"{valueX.value}",te.tooltip.pointerOrientation="down",te.tooltip.dy=-60,te.columnsContainer.zIndex=100,te.heatRules.push({target:$,property:"fill",dataField:"valueX",min:n.color("#e5dc36"),max:n.color("#5faa46")}),te.mainContainer.mask=void 0,te.columns.template.height=n.percent(10),te.columns.template.radius=15,te.columns.template.column.cornerRadius(60,10,60,10),te.clustered=!1,te.columns.template.dx=0}return E&&e.cursor.events.on("cursorpositionchanged",(function(e){if(r&&0==r.length)return null;try{var t=q.tooltipDataItem;if(t.column){var l=t.column.children.getIndex(1);Q&&Q!=l&&Q._disposers&&Q._disposers.length>0&&(Q.isHover=!1),Q!=l&&l&&l.states&&(l.states.getKey("hover").properties.dx=t.column.pixelWidth,l.isHover=!0,Q=l)}}catch(e){console.log(e)}})),p&&(e.scrollbarY=new n.Scrollbar,e.scrollbarY.end=10,e.scrollbarY.parent=e.rightAxesContainer),e},F=function(e,t){var r=t.data,a=t.valueX,i=t.valueY,o=t.scrollX,s=void 0!==o&&o,c=t.imgHref,p=t.imgField,m=t.imgHeight,u=void 0===m?50:m,b=t.imgWidth,g=void 0===b?50:b,v=t.tooltipText,x=void 0===v?"{valueY.value}":v,f=t.hoverAnimation,y=void 0!==f&&f,C=t.fontSize,k=void 0===C?10:C,S=(0,l.Z)(t,h);e.hiddenState.properties.opacity=0,e.colors.list=T,e.paddingBottom=60,S.formatNumber&&(e.numberFormatter.numberFormat=S.formatNumber),e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}];var w=e.xAxes.push(new d.CategoryAxis);w.dataFields.category=a,w.renderer.grid.template.strokeOpacity=0,w.renderer.minGridDistance=10,w.renderer.labels.template.dy=-35,w.renderer.tooltip.dy=35,w.cursorTooltipEnabled=!1,w.renderer.labels.template.fontSize=k||10,w.renderer.labels.template.rotation=-90,w.renderer.labels.template.horizontalCenter="left",w.renderer.labels.template.location=.5,w.renderer.inside=!0,w.renderer.labels.template.adapter.add("dx",(function(e,t){return-t.maxRight/2}));var L=e.yAxes.push(new d.ValueAxis);L.renderer.inside=!0,L.renderer.labels.template.fillOpacity=.3,L.renderer.grid.template.strokeOpacity=0,L.min=0,L.cursorTooltipEnabled=!1,L.renderer.baseGrid.strokeOpacity=0;var A=e.series.push(new d.ColumnSeries);A.dataFields.valueY=i,A.dataFields.categoryX=a,A.tooltipText=x,A.tooltip.pointerOrientation="vertical",A.tooltip.dy=-6,A.columnsContainer.zIndex=100;var E=A.columns.template;E.width=n.percent(50),E.maxWidth=25,E.column.cornerRadius(60,60,15,15),E.strokeOpacity=0,A.heatRules.push({target:E,property:"fill",dataField:"valueY",min:n.color("#e5dc36"),max:n.color("#5faa46")}),A.mainContainer.mask=void 0;var F=new d.XYCursor;e.cursor=F,F.lineX.disabled=!0,F.lineY.disabled=!0,F.behavior="none";var O=E.createChild(d.CircleBullet);O.circle.radius=20,O.valign="bottom",O.align="center",O.isMeasured=!0,O.mouseEnabled=!1,O.verticalCenter="bottom",O.interactionsEnabled=!1,y&&O.states.create("hover"),O.createChild(n.Circle).adapter.add("radius",(function(e,t){return t.parent.circle.pixelRadius+5}));var X,Y=O.createChild(n.Image);return Y.width=g,Y.height=u,Y.horizontalCenter="middle",Y.verticalCenter="middle",c?Y.href=c:Y.propertyFields.href=p,Y.adapter.add("mask",(function(e,t){return t.parent.circle})),y&&e.cursor.events.on("cursorpositionchanged",(function(e){if(r&&0==r.length)return null;try{var t=A.tooltipDataItem;if(t.column){var l=t.column.children.getIndex(1);X&&X!=l&&X._disposers&&X._disposers.length>0&&(X.isHover=!1),X!=l&&l&&l.states&&(l.states.getKey("hover").properties.dy=30-l.parent.pixelHeight,l.isHover=!0,X=l)}}catch(e){console.log(e)}})),s&&(e.scrollX=new n.Scrollbar,e.scrollX.end=10,e.scrollX.parent=e.rightAxesContainer),e};function O(e,t){t.data;var r=t.value,a=t.category,o=t.radius,s=t.legend,c=void 0===s||s,p=t.legendPosition,m=void 0===p?"right":p,u=t.labelText,h=void 0===u?"{values.value.sum}":u,g=t.onClickSlice,v=void 0===g?null:g,x=(0,l.Z)(t,b),f=e.series.push(new d.PieSeries);f.dataFields.value=r,f.dataFields.category=a,f.labels.template.disabled=!0,f.ticks.template.disabled=!0,x.tooltipText&&(f.slices.template.tooltipText=x.tooltipText),x.formatNumber&&(e.numberFormatter.numberFormat=x.formatNumber),!1!==x.isExportable&&(e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}]),v&&i().isFunction(v)&&f.slices.template.events.on("hit",(function(t){v(t,e)})),e.seriesContainer.zIndex=-1,c&&(e.legend=new d.Legend,e.legend.position=m||"right",e.legend.labels.template.text="{category}"),e.innerRadius=n.percent(o);var y=new n.Container;y.parent=f,y.horizontalCenter="middle",y.verticalCenter="middle",y.width=n.percent(40)/Math.sqrt(2),y.fill="white";var C=new n.Label;return C.parent=y,C.text=h,C.horizontalCenter="middle",C.verticalCenter="middle",C.fontSize=30,C.wrap=!0,C.maxWidth=170,C.textAlign="middle",e}function X(e,t){t.data;var r=t.value,a=t.category,o=t.radius,c=(t.color,t.titleText),p=t.labelText,m=void 0===p?"${values.value.sum}":p,u=t.onClickSlice,h=void 0===u?null:u,b=(0,l.Z)(t,g),v=e.series.push(new d.PieSeries);v.dataFields.value=r,v.dataFields.category=a,v.slices.template.stroke=n.color("#fff"),v.slices.template.strokeWidth=2,v.slices.template.strokeOpacity=1,v.slices.template.states.getKey("active").properties.shiftRadius=0;var x=new n.ColorSet;x.list=C.map((function(e){return new n.color(e)})),v.colors=x,b.tooltipText&&(v.slices.template.tooltipText=b.tooltipText),b.formatNumber&&(e.numberFormatter.numberFormat=b.formatNumber),!1!==b.isExportable&&(e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}]),v.labels.template.fontSize=13,v.labels.template.maxWidth=130,v.labels.template.wrap=!0,v.labels.template.text="{category}\n[bold]${value}",v.labels.template.adapter.add("text",(function(e,t){return t.dataItem&&t.dataItem.values.value.percent<5?"":e})),e.events.on("datavalidated",(function(e){var t=e.target.data,r=t.findIndex((function(e){return e.hasOwnProperty("sliceGrouperOther")}));r>-1&&t.splice(r,1)}));var f=v.plugins.push(new s.SliceGrouper);f.threshold=5,f.groupName="Other",f.clickBehavior="zoom",v.slices.template.events.on("hit",(function(e){var t=e.target;"Other"===e.target.dataItem.category&&(t.isActive=!t.isActive)})),v.slices.template.events.on("hit",(function(e){h&&h(e.target.dataItem.dataContext,i().get(e.target.dataItem,["component","dataFields","valueY"],null))}),this),e.seriesContainer.zIndex=-1,e.innerRadius=n.percent(o);var y=new n.Container;y.parent=v,y.horizontalCenter="middle",y.verticalCenter="middle",y.width=n.percent(60)/Math.sqrt(2),y.fill="white";var k=new n.Label;k.parent=y,k.text=m,k.horizontalCenter="middle",k.verticalCenter="middle",k.fontSize=25,k.wrap=!0,k.maxWidth=170,k.textAlign="middle";var S=e.titles.create();return S.text=c,S.fontSize=20,e}function Y(e,t){t.data;var r=t.value,a=t.category,o=t.legend,s=void 0===o||o,c=t.legendPosition,p=void 0===c?"right":c,m=t.labelText,u=void 0===m?"{values.value.sum}":m,h=t.onClickSlice,b=void 0===h?null:h,g=t.showLabel,x=void 0!==g&&g,f=(0,l.Z)(t,v);e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}];var y=e.series.push(new d.PieSeries);y.dataFields.value=r,y.dataFields.category=a,f.enableHidden&&(y.dataFields.hidden="show"),f.showTicks||(y.labels.template.disabled=!0,y.ticks.template.disabled=!0),f.showSliceLabel&&(y.ticks.template.disabled=!0,y.alignLabels=!1,y.labels.template.text="{value.percent.formatNumber('#.0')}%",y.labels.template.radius=n.percent(-40),y.labels.template.fill=n.color("white"),f.sliceLabelRotate&&(y.labels.template.relativeRotation=90)),f.strokeColor&&(y.slices.template.stroke=n.color(f.strokeColor)),f.strokeWidth&&(y.slices.template.strokeWidth=f.strokeWidth),i().has(f,"strokeOpacity")&&(y.slices.template.strokeOpacity=f.strokeOpacity),y.hiddenState.properties.opacity=1,y.hiddenState.properties.endAngle=-90,y.hiddenState.properties.startAngle=-90,f.tooltipText&&(y.slices.template.tooltipText=f.tooltipText),f.formatNumber&&(e.numberFormatter.numberFormat=f.formatNumber),f.mousePointer&&(y.slices.template.cursorOverStyle=n.MouseCursorStyle.pointer),b&&i().isFunction(b)&&y.slices.template.events.on("hit",(function(t){b(t,e)})),e.seriesContainer.zIndex=-1,s&&(e.legend=new d.Legend,e.legend.position=p||"right",e.legend.labels.template.text="{category}",f.legendMaxHeight&&(e.legend.maxHeight=f.legendMaxHeight),f.legendScrollable&&(e.legend.scrollable=!0),f.onClickLegend&&i().isFunction(f.onClickLegend)&&e.legend.itemContainers.template.events.on("hit",(function(t){f.onClickLegend(t,e)})),f.clickableLegend||(e.legend.itemContainers.template.togglable=!1,e.legend.itemContainers.template.events.on("hit",(function(e){var t=e.target.dataItem.dataContext.slice;t.isActive=!t.isActive})))),f.shiftOnClick||(y.slices.template.states.getKey("active").properties.shiftRadius=0);var C=new n.Container;if(C.parent=y,C.horizontalCenter="middle",C.verticalCenter="middle",C.width=n.percent(40)/Math.sqrt(2),C.fill="white",x){var k=new n.Label;k.parent=C,k.text=u,k.horizontalCenter="middle",k.verticalCenter="middle",k.fontSize=30,k.wrap=!0,k.maxWidth=170,k.textAlign="middle"}return e}var I=function(e,t){t.data;var r=t.series,a=t.legend,o=void 0===a||a,s=t.xAxes,c=t.yAxes,p=void 0===c?[{title:"Totals"}]:c,m=t.isSparkline,u=void 0!==m&&m,h=(t.minHeight,t.minWidth,t.strokeWidth,t.tooltipText),b=void 0===h?"{valueX.value}":h,g=t.cursorLineX,v=void 0===g||g,f=t.cursorLineY,y=void 0===f||f,C=t.isLegendCheckbox,k=void 0!==C&&C,S=(0,l.Z)(t,x);if(e.hiddenState.properties.opacity=0,e.colors.list=S.chartColors||T,e.cursor=new d.XYCursor,i().isBoolean(v)&&(e.cursor.lineX.disabled=!v),i().isBoolean(y)&&(e.cursor.lineY.disabled=!y),S.formatNumber&&(e.numberFormatter.numberFormat=S.formatNumber),!1!==S.isExportable&&(e.exporting.menu.items=[{label:"...",menu:[{type:"csv",label:"CSV"}]}]),s&&s.forEach((function(t){var r=e.xAxes.push(new d.CategoryAxis);r.dataFields.category=t.category,t.cellStartLocation&&(r.startLocation=t.cellStartLocation),t.cellEndLocation&&(r.endLocation=t.cellEndLocation),t.title&&(r.title.text=t.title),i().isBoolean(t.cursorTooltipEnabled)&&(r.cursorTooltipEnabled=t.cursorTooltipEnabled),!1===t.showGrid&&(r.renderer.grid.template.disabled=!0),!1===t.showAxis&&(r.renderer.labels.template.disabled=!0),!1===t.showTitle&&(r.title.text=null),t.darkerGridLines&&(r.renderer.grid.template.stroke="#000000",r.renderer.grid.template.strokeWidth=2),u&&(r.cursorTooltipEnabled=!1,t.showGrid||(r.renderer.grid.template.disabled=!0),t.showAxis||(r.renderer.labels.template.disabled=!0),t.showTitle||(r.title.text=null),t.showLabel&&(r.renderer.labels.template.disabled=!1)),r.strictMinMax=!1})),p&&p.forEach((function(t){var r=e.yAxes.push(new d.ValueAxis);r.title.text=t.title,r.renderer.baseGrid.disabled=!0,t.keepSelection&&(r.keepSelection=!0),t.minGridDistance&&i().isNumber(t.minGridDistance)&&(r.renderer.minGridDistance=t.minGridDistance),i().isBoolean(t.cursorTooltipEnabled)&&(r.cursorTooltipEnabled=t.cursorTooltipEnabled),i().has(t,"max")&&i().isNumber(t.max)&&(r.max=t.max),!1===t.showGrid&&(r.renderer.grid.template.disabled=!0),t.darkerGridLines&&(r.renderer.grid.template.stroke="#000000",r.renderer.grid.template.strokeWidth=2),!1===t.showAxis&&(r.renderer.labels.template.disabled=!0),!1===t.showTitle&&(r.title.text=null),i().has(t,"min")&&i().isNumber(t.min)&&(r.min=t.min),u&&(r.cursorTooltipEnabled=!1,t.showGrid||(r.renderer.grid.template.disabled=!0,r.renderer.baseGrid.disabled=!0),t.showAxis||(r.renderer.labels.template.disabled=!0),t.showTitle||(r.title.text=null))})),r.forEach((function(t){var r=e.series.push(new d.LineSeries);r.dataFields.valueY=t.valueY,r.dataFields.categoryX=t.categoryX,r.tooltipText=t.tooltipText||b,r.strokeWidth=3,r.tooltip.label.textAlign="middle",t.hidden&&(r.hidden=!0),t.name&&(r.name=t.name),t.stroke&&(r.stroke=n.color(t.stroke)),t.fillOpacity&&(r.fillOpacity=t.fillOpacity),t.strokeDasharrayField&&(r.propertyFields.strokeDasharray=t.strokeDasharrayField),u&&(r.labels&&(r.labels.template.disabled=!0),r.ticks&&(r.ticks.template.disabled=!0));var l=r.bullets.push(new d.Bullet);l.tooltipText=t.tooltipText||"[#fff font-size: 15px]{categoryX}:\n[/][#fff font-size: 20px]{valueY}";var a=l.createChild(n.Circle);a.radius=4,a.fill=n.color("#fff"),a.strokeWidth=3})),u&&(e.cursor=new d.XYCursor,e.cursor.lineY.disabled=!0,e.padding(0,0,0,0),e.chartContainer.minHeight=50,e.chartContainer.minWidth=50),o&&!u||S.forceLegend){if(e.legend=new d.Legend,k){e.legend.useDefaultMarker=!0;var w=e.legend.markers.template,L=w.children.getIndex(0);L.states.getKey("active"),L.cornerRadius(3,3,3,3),L.defaultState.properties.strokeWidth=0;var A=w.createChild(n.Label);A.html="<span style='color:white ;padding-left:5px'> &#10004; <span>",A.states.create("active").properties.opacity=0}S.reverseLegend&&(e.legend.reverseOrder=!0)}return S.scrollbarY&&(e.scrollbarY=new n.Scrollbar),S.scrollbarX&&(e.scrollbarX=new n.Scrollbar,S.scrollbarXStart&&(e.scrollbarX.start=S.scrollbarXStart),S.scrollbarXEnd&&(e.scrollbarX.end=S.scrollbarXEnd)),e}}}]);
//# sourceMappingURL=8652.a0a29dfc.chunk.js.map