// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"url:widgets/Infographic/setting/dijitsSetting/_dijits/ValueProvider/RangeProvider.html":'\x3cdiv\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"title" class\x3d"title"\x3e\x3c/div\x3e\r\n\t\x3cdiv class\x3d"content"\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"typeContainer" class\x3d"row value-type"\x3e\r\n\t\t\t\x3cdiv class\x3d"col-2"\x3e\r\n\t\t\t\t\x3cspan class\x3d"label"\x3e${nls.valueType}\x3c/span\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\t\x3cdiv class\x3d"col-2"\x3e\r\n\t\t\t\t\x3cdiv class\x3d"btn-group-2" data-dojo-attach-event\x3d"click:_onValueTypeChanged"\x3e\r\n\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"fixedBtn" data-name\x3d"fixed" class\x3d"btn jimu-auto-vertical textOverFlow selected" title\x3d"${nls.fixed}"\x3e${nls.fixed}\x3c/div\x3e\r\n\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"statBtn" data-name\x3d"stat" class\x3d"btn jimu-auto-vertical textOverFlow" title\x3d"${nls.statistic}"\x3e${nls.statistic}\x3c/div\x3e\r\n\t\t\t\t\x3c/div\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"valueContainer" class\x3d"row fixed-value-container"\x3e\r\n\t\t\t\x3cdiv class\x3d"col-2"\x3e\r\n\t\t\t\t\x3cspan class\x3d"label"\x3e${nls.valueString}\x3c/span\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\t\x3cdiv class\x3d"col-2"\x3e\r\n\t\t\t\t\x3cinput data-dojo-props\x3d"intermediateChanges:true"  data-dojo-attach-event\x3d"change:_onValueInputChanged" class\x3d"value-input" data-dojo-type\x3d"dijit/form/NumberTextBox" required data-dojo-attach-point\x3d"fixedValue"/\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\t\t\x3cdiv class\x3d"hide" data-dojo-attach-point\x3d"statContainer"\x3e\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare dojo/Evented dojo/on dojo/_base/html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./RangeProvider.html ./StatRange jimu/utils dijit/form/RadioButton dijit/form/Select dijit/form/NumberTextBox".split(" "),function(e,f,d,b,g,h,k,l,m,n){return e([g,h,k,f],{baseClass:"infograpgic-range-provider",templateString:l,postCreate:function(){this.inherited(arguments);this._setTitle();this._initUI()},reset:function(){this._onFixedValueBtnClick();this._showFixedValueContainer();
this.fixedValue.reset();this.statRange&&this.statRange.reset()},setConfig:function(a){var c=a.value;"fixed"===a.type?(this._onFixedValueBtnClick(),this._showFixedValueContainer(),this.fixedValue.set("value",c),this.statRange&&this.statRange.setConfig({})):(this._onStatBtnClick(),this._showStatContainer(),this.statRange&&this.statRange.setConfig(c))},getConfig:function(){if(!this.isValid())return!1;var a=this._getType();var c="fixed"===a?this.fixedValue.get("value"):this.statRange.getConfig();return{type:a,
value:c}},isValid:function(){return"fixed"===this._getType()?this.fixedValue.isValid():this.statRange.isValid()},setLayerDefinition:function(a){a&&this.statRange&&this.statRange.setLayerDefinition(a)},_setTitle:function(){this.title.innerHTML=n.sanitizeHTML("undefined"!==typeof this.titleText?this.titleText:"$Value")},_initUI:function(){this.statRange=new m({nls:this.nls,appConfig:this.appConfig});this.statRange.placeAt(this.statContainer);this.own(d(this.statRange,"change",function(){this._onChange()}.bind(this)));
this.own(d(this.statRange,"ds-change",function(a){this._onDataSourceChanged(a)}.bind(this)))},_onDataSourceChanged:function(a){this.emit("ds-change",a)},_onChange:function(){this.emit("change")},_getType:function(){return b.hasClass(this.fixedBtn,"selected")?"fixed":"stat"},_onValueTypeChanged:function(a){a.stopPropagation();a=a.target.dataset.name;if("fixed"===a||"stat"===a)"fixed"===a?(this._onFixedValueBtnClick(),this._showFixedValueContainer()):(this._onStatBtnClick(),this._showStatContainer(),
this.triggerChange()),setTimeout(function(){this._onChange()}.bind(this),200)},triggerChange:function(){this.statRange&&this.statRange.triggerChange()},updateFetchState:function(a){this.statRange&&this.statRange.updateFetchState(a)},_onValueInputChanged:function(){this._onChange()},_onFixedValueBtnClick:function(){b.removeClass(this.statBtn,"selected");b.addClass(this.fixedBtn,"selected")},_onStatBtnClick:function(){b.removeClass(this.fixedBtn,"selected");b.addClass(this.statBtn,"selected")},_showFixedValueContainer:function(){b.removeClass(this.valueContainer,
"hide");b.addClass(this.statContainer,"hide")},_showStatContainer:function(){b.addClass(this.valueContainer,"hide");b.removeClass(this.statContainer,"hide")}})});