define(["exports","./../../input/keyboard.js"],function(_exports,_keyboard){function onKeyDown(e){"Enter"===_keyboard.default.normalizeKeyFromEvent(e)&&(e.preventDefault(),this.checked=!0)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/emby-elements/emby-radio/emby-radio.css"]);var inputId=0;function onInit(){this.hasInit||(this.hasInit=!0,this.id||(this.id="embyradio"+inputId,inputId++),this.addEventListener("keydown",onKeyDown))}var EmbyRadio=function(_HTMLInputElement){babelHelpers.inherits(EmbyRadio,_HTMLInputElement);var _super=_createSuper(EmbyRadio);function EmbyRadio(){babelHelpers.classCallCheck(this,EmbyRadio);var _this,self=_this=_super.call(this);return onInit.call(self),babelHelpers.possibleConstructorReturn(_this,self)}return babelHelpers.createClass(EmbyRadio,[{key:"connectedCallback",value:function(){onInit.call(this),function(){var labelElement,labelTextElement;this.classList.contains("emby-radio")||(this.classList.add("emby-radio"),this.classList.add("mdl-radio__button"),(labelElement=this.parentNode).classList.add("mdl-radio"),labelElement.classList.add("mdl-js-radio"),labelElement.classList.add("mdl-js-ripple-effect"),(labelTextElement=labelElement.querySelector("span")).classList.add("radioButtonLabel"),labelTextElement.classList.add("mdl-radio__label"),labelElement.insertAdjacentHTML("beforeend",'<span class="mdl-radio__outer-circle"></span><span class="mdl-radio__inner-circle"></span>'))}.call(this)}}]),EmbyRadio}(babelHelpers.wrapNativeSuper(HTMLInputElement));customElements.define("emby-radio",EmbyRadio,{extends:"input"}),_exports.default=EmbyRadio});