// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
require({cache:{"url:esri/dijit/geoenrichment/DataBrowser/templates/VariableInfo.html":'\x3cdiv\x3e\r\n    \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"descriptionHeader"\x3e${nls.name}\x3c/div\x3e\r\n    \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"descriptionValue"\x3e\x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"fullNameGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"fullNameHeader"\x3e${nls.variable}\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"fullNameValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"percentBaseGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"percentBaseHeader"\x3ePercent Base\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"percentBaseValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"averageBaseGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"averageBaseHeader"\x3eAverage Base\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"averageBaseValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"sourceGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"sourceHeader"\x3e${nls.source}\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"sourceValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"vintageGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"vintageHeader"\x3e${nls.vintage}\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"vintageValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"definitionGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"definitionHeader"\x3eDefinition\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"definitionValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"indexBaseGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"indexBaseHeader"\x3eIndex Base\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"indexBaseValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"filteringTagsGroup"\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Spacer"\x3e\x26nbsp;\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Header" data-dojo-attach-point\x3d"filteringTagsHeader"\x3eFilters\x3c/div\x3e\r\n        \x3cdiv class\x3d"VariableInfo_Value" data-dojo-attach-point\x3d"filteringTagsValue"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("esri/dijit/geoenrichment/DataBrowser/VariableInfo",["../../../declare","dojo/dom-construct","dojox/mvc/Templated","dojo/text!./templates/VariableInfo.html","dojo/i18n!../../../nls/jsapi"],function(g,f,h,k,d){d=d.geoenrichment.dijit.VariableInfo;return g("esri.dijit.geoenrichment.VariableInfo",h,{nls:d,templateString:k,infoFields:null,postCreate:function(){this.inherited(arguments);if("string"==typeof this.infoFields)this.infoFields=this.infoFields.split(",");else if(!(this.infoFields instanceof
Array)){this.infoFields={};return}for(var a={},b=0;b<this.infoFields.length;b++){var c=this.infoFields[b],e=c.indexOf(":");if(0<e){var d=c.substr(e+1),c=c.substr(0,e);if(e=this[c+"Header"])e.innerHTML=d}a[c]=!0}this.infoFields=a},_setVariableAttr:function(a){this.descriptionValue.innerHTML=a.description;this._updateGroup(a,"vintage");var b=a.filteringTags.Source;this._updateGroup(a,"source",b&&b.value);this._updateGroup(a,"fullName",!0);b=this._getOptionalField(a,"percentBase");this._updateGroup(a,
"percentBase",b&&this._getBaseFieldDescription(a,"percentBase"));b=this._getOptionalField(a,"averageBase");this._updateGroup(a,"averageBase",b&&this._getBaseFieldDescription(a,"averageBase"));this._updateGroup(a,"indexBase",!0);this._updateGroup(a,"definition");a=this._getOptionalField(a,"filteringTags");this.filteringTagsGroup.style.display=a?"":"none";if(a){f.empty(this.filteringTagsValue);for(var c in a)b=a[c],f.create("div",{innerHTML:b.name+": "+b.value},this.filteringTagsValue)}},_getBaseFieldDescription:function(a,
b){return a[b+"Alias"]+" ("+a[b]+")"},_updateGroup:function(a,b,c){"undefined"==typeof c?c=a[b]:!0===c&&(c=this._getOptionalField(a,b));a=this[b+"Value"];a.innerHTML=c;a=this[b+"Group"];a.style.display=c?"":"none"},_getOptionalField:function(a,b){return this.infoFields["*"]||this.infoFields[b]?a[b]:null}})});