System.register(["./index-0425c4de.system.js"],(function(e){"use strict";var t,n,r,i,o;return{setters:[function(e){t=e.r;n=e.e;r=e.h;i=e.f;o=e.g}],execute:function(){var a=e("bds_radio_group",function(){function e(e){var r=this;t(this,e);this.bdsRadioGroupChange=n(this,"bdsRadioGroupChange",7);this.radioGroupElement=null;this.chagedOptions=function(e,t){if(t.detail.checked==true){r.value=e}};this.value=undefined}e.prototype.valueChanged=function(e){this.setSelectedRadio(e);this.bdsRadioGroupChange.emit({value:e})};e.prototype.componentWillRender=function(){var e=this;this.radioGroupElement=this.element.getElementsByTagName("bds-radio");var t=function(t){n.radioGroupElement[t].addEventListener("bdsChange",(function(n){return e.chagedOptions(e.radioGroupElement[t].value,n)}))};var n=this;for(var r=0;r<this.radioGroupElement.length;r++){t(r)}};e.prototype.setSelectedRadio=function(e){var t=this.radioGroupElement;for(var n=0;n<t.length;n++){var r=t[n].value;t[n].checked=false;if(t[n].checked==false&&e==r){t[n].checked=true}}};e.prototype.render=function(){return r(i,null,r("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return e}())}}}));