// 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/DataVariablesPage.html":'\x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane" data-dojo-props\x3d"row: 0"\x3e\r\n    \x3cdiv class\x3d"BreadcrumbHeight"\x3e\x3c/div\x3e\r\n    \x3cdiv class\x3d"DataBrowserVarHeader DataVariablesPage_VarCount" data-dojo-attach-point\x3d"varCountNode"\x3e\x3c/div\x3e\r\n\x3c/div\x3e\r\n\x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane" data-dojo-props\x3d"row: 1"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"divTree" class\x3d"DataVariablesPage_Container DataVariablesPage_Variables"\x3e\x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"progressDiv"\x3e\x3c/div\x3e\r\n\x3c/div\x3e\r\n\x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane" data-dojo-props\x3d"row: 2"\x3e\x3c/div\x3e\r\n'}});
define("esri/dijit/geoenrichment/DataBrowser/DataVariablesPage","dojo/_base/declare dojo/_base/lang dojo/string dojo/when dojo/i18n!../../../nls/jsapi dojo/text!./templates/DataVariablesPage.html ./DataVariableGrid".split(" "),function(h,g,k,l,b,m,n){b=b.geoenrichment.dijit.DataVariablesPage;return h(null,{templateString:m,nls:b,baseClass:"DataVariablesPage",searchResults:null,manager:null,_grid:null,postCreate:function(){this.inherited(arguments);this._grid=this.manager.createVariableGrid({groupCategories:!0},
this.divTree);this.manager.allowShoppingCart&&(this._grid.animateSelection=g.hitch(this.manager,this.manager.animateSelection))},_setPageIsActiveAttr:function(a){this._started&&(this._grid.setVariables([]),a&&this._querySelectedVariables())},startup:function(){this._started||(this.inherited(arguments),this._grid.startup(),this._querySelectedVariables())},_querySelectedVariables:function(){this.varCountNode.innerHTML="";var a=this.searchResults||this.manager.queryVariables();this.searchResults=null;
l(this.showProgress(a),g.hitch(this,this._showVariables))},_showVariables:function(a){this._composeVarTitle(a.length);this._grid.setVariables(a)},_composeVarTitle:function(a){var c=this.manager.variableQuery,d=c.searchString,e=c.dataCollectionID?this.manager.getDataCollection()||{}:c.categoryID?this.manager.getCategory()||{}:null;"*"==d&&e&&(d=null);var f={searchKey:d,groupName:e&&(e.title||e.name||"?")};this.varCountNode.innerHTML=k.substitute(e?d?b.searchInGroupVariables:b.groupVariables:c.favorites?
b.favoriteVariables:"*"==d?b.allVariables:b.searchVariables,f)+" ("+a+")";a=["c:"+(c.countryID||"_")];f.searchKey&&a.push("s:"+f.searchKey);f.groupName&&a.push("g:"+f.groupName);c.favorites&&a.push("f");this._grid.queryID=a.join("/")}})});