// 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/SuitabilityModeler/wro/templates/Colormap.html":'\x3cspan class\x3d"modeler-color-ramp" style\x3d"width:100%;height:100%;"\r\n  data-dojo-attach-point\x3d"__ramp"\x3e\r\n  \x3cspan class\x3d"modeler-color-rampLabel"\r\n    data-dojo-attach-point\x3d"__lowNode" \x3e${i18n.util.colorRamp.low}\x3c/span\x3e\r\n  \x3cspan class\x3d"modeler-color-ramp-colors"\r\n    data-dojo-attach-point\x3d"__colorsNode"\x3e\x3c/span\x3e\r\n  \x3cspan class\x3d"modeler-color-rampLabel"\r\n    data-dojo-attach-point\x3d"__highNode"\x3e${i18n.util.colorRamp.high}\x3c/span\x3e\r\n\x3c/span\x3e\r\n'}});
define("dojo/_base/declare dojo/_base/array dojo/_base/Color dojo/dom-construct dojo/dom-style dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./templates/Colormap.html".split(" "),function(f,g,h,k,l,m,n,p,q){return f([m,n,p],{context:null,i18n:null,templateString:q,definition:null,showLabels:!0,postCreate:function(){this.inherited(arguments);this.showLabels||(this.__lowNode.style.display="none",this.__highNode.style.display="none")},_addColor:function(e,d){var b=null,
a=d.label,c=d.value;a&&(a=a.trim());c&&(c=(""+c).trim());a&&0<a.length&&c&&0<c.length?(b=this.i18n.util.colorRamp.tipPattern,b=b.replace("{label}",a),b=b.replace("{value}",c)):a&&0<a.length?b=a:c&&0<c.length&&(b=c);d=new h(d.rgb);a=k.create("span",{className:"modeler-color-ramp-color"});l.set(a,"backgroundColor",d.toCss());b&&0<b.length&&(a.title=b);e.appendChild(a)},_setDefinitionAttr:function(e){this.definition=e;var d=this.__colorsNode;d.innerHTML="";this.definition.colors&&g.forEach(this.definition.colors,
function(b){this._addColor(d,b)},this)}})});