// 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/Chart/setting/UpdownArrow.html":'\x3cdiv\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"upper" class\x3d"sort-icon asc selected"\x3e\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"down" class\x3d"sort-icon desc"\x3e\x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare dojo/_base/html dojo/on dijit/_WidgetBase dijit/_TemplatedMixin dojo/Evented dojo/text!./UpdownArrow.html".split(" "),function(c,b,d,e,f,g,h){return c([e,g,f],{baseClass:"jimu-widget-chart-setting-updown-arrow",templateString:h,state:!0,postCreate:function(){this.inherited(arguments);this.own(d(this.domNode,"click",this._onDomClicked.bind(this)))},setState:function(a){(this.state=a)?this._selectAscBtn():this._selectDescBtn()},getState:function(){return this.state},_onDomClicked:function(a){a.stopPropagation();
a=a.target;b.hasClass(a,"asc")?(this.state=!0,this._selectAscBtn()):b.hasClass(a,"desc")&&(this.state=!1,this._selectDescBtn());this._onChange()},_onChange:function(){this.emit("change")},_selectAscBtn:function(){b.addClass(this.upper,"selected");b.removeClass(this.down,"selected")},_selectDescBtn:function(){b.removeClass(this.upper,"selected");b.addClass(this.down,"selected")}})});