define(["exports","./../modules/viewmanager/baseview.js","./../modules/loading/loading.js","./../modules/common/globalize.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-checkbox/emby-checkbox.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/emby-apiclient/connectionmanager.js","./../modules/common/servicelocator.js","./../modules/approuter.js"],function(_exports,_baseview,_loading,_globalize,_embyButton,_embyCheckbox,_embyScroller,_connectionmanager,_servicelocator,_approuter){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){_baseview.default.apply(this,arguments),view.querySelector("form").addEventListener("submit",onSubmit);var downloadMessage=view.querySelector(".embyIntroDownloadMessage");_servicelocator.appHost.supports("externallinks")&&_servicelocator.appHost.supports("externalappinfo")?downloadMessage.innerHTML=_globalize.default.translate("ServerDownloadMessage",'<a is="emby-linkbutton" class="button-link" href="https://emby.media" target="_blank">https://emby.media</a>'):_servicelocator.appHost.supports("externallinkdisplay")?downloadMessage.innerHTML=_globalize.default.translate("ServerDownloadMessage","https://emby.media"):downloadMessage.innerHTML=_globalize.default.translate("ServerDownloadMessageWithoutLink")}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["material-icons"]),Object.assign(View.prototype,_baseview.default.prototype),View.prototype.onResume=function(options){_baseview.default.prototype.onResume.apply(this,arguments),_loading.default.hide()};_exports.default=View});