// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/charts/_ChartComparisonSupport","dojo/_base/declare dojo/when dojo/dom-class ../../../OnDemandSelect ./chartUtils/ChartTypes ../../dataProviders/supportClasses/ge/LocalGEChart ../supportClasses/comparison/ComparisonListUtil esri/dijit/geoenrichment/utils/DomUtil dojo/i18n!../../../../../nls/jsapi".split(" "),function(f,l,m,g,h,k,b,d,c){c=c.geoenrichment.dijit.ReportPlayer.ReportPlayer;return f(null,{comparisonSelect:null,_comparisonValue:null,_ge:null,
_initChartComparisonSelect:function(){var a=this;d.hide(this.comparisonSelectBlock);if(this._currentComparisonInfo){this.comparisonLabel.innerHTML=h.isColumnBarLike(this._getComparisonChartType())?c.comparisonLabelBars:c.comparisonLabelDots;var e=this._getComparisonListOptions();e.length?(this._comparisonValue=b.getDefaultOptionValue(e),this.comparisonSelect=(new this._getComparisonSelectClass)({listClass:"esriGEOnDemandSelectVeryTallList",options:e,value:this._comparisonValue,itemRenderer:new b.ComparisonListItemRenderer,
onChange:function(){a._setComparisonId(a.comparisonSelect.get("value"))}}).placeAt(this.comparisonSelectDiv),this.own(this.comparisonSelect),d.show(this.comparisonSelectBlock),d.enableContent(this.comparisonSelectBlock,!!this.viewModel.dynamicReportInfo)):this._currentComparisonInfo=null}},_getComparisonSelectClass:function(){return g},_createDummyGE:function(){return null},_getComparisonChartType:function(){return this._currentComparisonInfo&&this._currentComparisonInfo.chartType||this._currentChartType},
_getGeoenrichment:function(){return this._currentComparisonInfo?this._ge?this._ge:this._ge=this.viewModel.dynamicReportInfo?new k(this._currentComparisonInfo,this.viewModel.dynamicReportInfo.fieldData.areaData[0]):this._createDummyGE():null},_getComparisonListOptions:function(){return b.getListOptions(this._getGeoenrichment().getData().features)},_getSelectedComparisonAreaName:function(){return this._ge&&this._ge.getFieldValueAt("name",this._getSelectedComparisonIndex())},_getSelectedComparisonIndex:function(){return b.listValueToAreaID(this._comparisonValue)},
_setComparisonId:function(a){a!==this._comparisonValue&&(this._comparisonValue=a,this.comparisonSelect.get("value")!==this._comparisonValue&&this.comparisonSelect.set("value",this._comparisonValue),this._updateSeries())}})});