// 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
define("dojo/_base/declare dijit/_WidgetBase dojo/_base/lang dojo/_base/array dojo/on dojo/dom-class dojo/dom-construct dijit/registry".split(" "),function(d,e,f,g,h,c,k,l){return d(e,{baseClass:"jimu-radio",declaredClass:"jimu.dijit.RadioBtn",checked:!1,group:null,constructor:function(){},postCreate:function(){k.create("div",{"class":"jimu-radio-inner"},this.domNode);this.checked&&c.add(this.domNode,"jimu-radio-checked");this.own(h(this.domNode,"click",f.hitch(this,function(){this.checked||this.check()})))},
check:function(a){void 0===a&&(a=!0);this.checked=!0;c.add(this.domNode,"jimu-radio-checked");a&&this._changeOthersState(!1);this.onStateChange()},uncheck:function(a){void 0===a&&(a=!0);this.checked=!1;c.remove(this.domNode,"jimu-radio-checked");a&&this._changeOthersState(!1);this.onStateChange()},_changeOthersState:function(a){null!==this.group&&g.forEach(l.toArray(),function(b){b.id!==this.id&&b["class"]===this["class"]&&b.group===this.group&&(a?b.check(!1):b.uncheck(!1))},this)},onStateChange:function(){}})});