define(["exports","./../modules/viewmanager/basesettingsview.js","./../modules/loading/loading.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-select/emby-select.js","./../modules/emby-elements/emby-toggle/emby-toggle.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/emby-apiclient/connectionmanager.js","./../modules/approuter.js","./../modules/common/globalize.js","./../modules/common/servicelocator.js"],function(_exports,_basesettingsview,_loading,_embyButton,_embySelect,_embyToggle,_embyScroller,_connectionmanager,_approuter,_globalize,_servicelocator){function onSubmit(e){return _loading.default.show(),_connectionmanager.default.connect().then(function(result){_loading.default.hide(),_approuter.default.handleConnectionResult(result)}),e.preventDefault(),e.stopPropagation(),!1}function View(view,params){var elem,key;_basesettingsview.default.apply(this,arguments),elem=view.querySelector(".displayModePremiere"),key="PlaybackTvModeRequiresEmbyPremiere",_servicelocator.appHost.supports("externallinks")&&_servicelocator.appHost.supports("externalpremium")?elem.innerHTML=_globalize.default.translate(key,'<a is="emby-linkbutton" href="https://emby.media/premiere" data-preset="premiereinfo" target="_blank" class="button-link">',"</a>"):elem.innerHTML=_globalize.default.translate(key,"",""),view.querySelector("form").addEventListener("submit",onSubmit)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["material-icons"]),Object.assign(View.prototype,_basesettingsview.default.prototype),View.prototype.loadSettingsInternal=function(){return this.loadAutoSettings()};_exports.default=View});