System.register(["./p-38846ea9.system.js"],(function(e){"use strict";var t,r,a,n,o;return{setters:[function(e){t=e.r;r=e.c;a=e.h;n=e.H;o=e.g}],execute:function(){var i="@-webkit-keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.sc-bal-radio-group-h{display:inline-block;position:relative}.bal-select-button.sc-bal-radio-group-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;border:1px solid #d3dbeb;border-radius:100px;padding:5px}";var s=e("bal_radio_group",function(){function e(e){var a=this;t(this,e);this.balChange=r(this,"balChange",7);this.interface="radio";this.inverted=false;this.value="";this.onClick=function(e){var t=e.target&&e.target.closest("bal-radio");if(t&&!t.disabled){var r=a.value;var n=t.value;if(n!==r){a.value=n}}}}e.prototype.valueChanged=function(e,t){if(e!==t){this.sync();this.balChange.emit(e)}};e.prototype.componentWillLoad=function(){this.sync()};Object.defineProperty(e.prototype,"children",{get:function(){return Array.from(this.element.querySelectorAll("bal-radio"))},enumerable:false,configurable:true});e.prototype.sync=function(){var e=this;this.children.forEach((function(t){t.interface=e.interface;t.inverted=e.inverted;if(t.value===e.value){t.checked=true}else{t.checked=false}}))};e.prototype.render=function(){return a(n,{role:"radiogroup",onClick:this.onClick,class:"bal-"+this.interface},a("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}());s.style=i}}}));