// 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/CostAnalysis/scenario-selection.html":'\x3cdiv style\x3d"height: 100%; width: 100%"\x3e\r\n  \x3cdiv class\x3d"esriCTRegionDetailsParentDiv" data-dojo-attach-point\x3d"regionDetailsParentContainer"\x3e\r\n    \x3cdiv class\x3d"esriCTRegionLabel"\x3e${nls.scenarioSelection.regionLabel}\x3c/div\x3e\r\n    \x3cinput class\x3d"esriCTRegionTextBox" readonly aria-label\x3d"${nls.scenarioSelection.regionLabel}" data-dojo-attach-point\x3d"regionNameTextBox" data-dojo-type\x3d"dijit/form/TextBox"\r\n    /\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"esriCTScenarioDetailsParentDiv" data-dojo-attach-point\x3d"scenarioDetailsParentDiv"\x3e\r\n    \x3cdiv class\x3d"esriCTScenarioLabel"\x3e${nls.scenarioSelection.scenarioLabel}\x3c/div\x3e\r\n    \x3cselect class\x3d"esriCTScenarioDropdown" data-dojo-attach-point\x3d"scenarioDropDown" aria-label\x3d"${nls.scenarioSelection.scenarioLabel}" data-dojo-type\x3d"jimu/dijit/formSelect"\x3e\x3c/select\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare jimu/BaseWidget dojo/Evented dijit/_WidgetsInTemplateMixin dojo/text!./scenario-selection.html dojo/_base/array dojo/_base/lang dojo/store/Memory dojo/dom-class".split(" "),function(d,e,f,g,h,k,l,m,b){return d([e,f,g],{templateString:h,baseClass:"jimu-widget-cost-analysis-scenario-selection",postCreate:function(){this.inherited(arguments)},startup:function(){this.inherited(arguments);this._init()},_init:function(){this.regionNameTextBox.set("value",this.regionName);this._setScenarioOptions()},
_setScenarioOptions:function(){var c=[];k.forEach(this.scenarioOptions,l.hitch(this,function(a){c.push({name:a.scenario,value:a.scenario,featureTemplate:this.templateName,geographyGlobalID:this.geographyGlobalID,costEquation:a.costEquation})}));var n=new m({idProperty:"value",data:c});this.scenarioDropDown.set("labelAttr","name");this.scenarioDropDown.set("store",n);this.scenarioDropDown.set("value",this.nls.scenarioSelection.noneText);this.costingGeometryLayer?b.remove(this.regionDetailsParentContainer,
"esriCTHidden"):b.add(this.regionDetailsParentContainer,"esriCTHidden")}})});