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-scroller/emby-scroller.js","./../modules/emby-apiclient/connectionmanager.js","./../modules/common/servicelocator.js","./../modules/approuter.js"],function(_exports,_baseview,_loading,_globalize,_embyButton,_embyScroller,_connectionmanager,_servicelocator,_approuter){function onSubmit(e){if(e.preventDefault(),e.stopPropagation(),!_servicelocator.appHost.supports("displaymode")||"ontouchstart"in document)return _loading.default.show(),_connectionmanager.default.connect().then(function(result){_loading.default.hide(),_approuter.default.handleConnectionResult(result)}),!1;_approuter.default.show("/startup/welcome_settings.html")}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("targetblank")&&_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});