define(["exports","./../../input/keyboard.js"],function(_exports,_keyboard){function onKeyDown(e){var key=_keyboard.default.normalizeKeyFromEvent(e);if("Enter"===key)return e.preventDefault(),e.repeat?void 0:(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),!1)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/emby-elements/emby-radio/emby-radio.css","css!tv|modules/emby-elements/emby-radio/emby-radio_tv.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){function EmbyRadio(){var _this,self=_this=_HTMLInputElement.call(this)||this;return onInit.call(self),babelHelpers.possibleConstructorReturn(_this,self)}return babelHelpers.inherits(EmbyRadio,_HTMLInputElement),babelHelpers.createClass(EmbyRadio,[{key:"connectedCallback",value:function(){onInit.call(this),function(){var labelElement;this.classList.contains("emby-radio")||(this.classList.add("emby-radio"),(labelElement=this.parentNode).classList.add("emby-radio-label"),labelElement.querySelector("span").classList.add("radioButtonLabel"),labelElement.insertAdjacentHTML("beforeend",'<span class="emby-radio-focusoutline"></span><span class="emby-radio-outer-circle"></span><span class="emby-radio-inner-circle"></span>'))}.call(this)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("keydown",onKeyDown)}}])}(babelHelpers.wrapNativeSuper(HTMLInputElement));customElements.define("emby-radio",EmbyRadio,{extends:"input"}),_exports.default=EmbyRadio});