define(["exports","./../modules/viewmanager/baseview.js","./../modules/common/globalize.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-toggle/emby-toggle.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/approuter.js"],function(_exports,_baseview,_globalize,_embyButton,_embyToggle,_embyScroller,_approuter){function onSubmit(e){var options;return this.querySelector(".chkAccept").checked?_approuter.default.show("wizard/wizardfinish.html"):(options={text:_globalize.default.translate("MessagePleaseAcceptTermsOfServiceBeforeContinuing"),title:""},Emby.importModule("./modules/common/dialogs/alert.js").then(function(alert){return alert(options)})),e.preventDefault(),!1}function onBack(e){_approuter.default.back()}function View(view,params){_baseview.default.apply(this,arguments),view.querySelector("form").addEventListener("submit",onSubmit),view.querySelector(".button-cancel").addEventListener("click",onBack)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!wizard/wizard.css"]),Object.assign(View.prototype,_baseview.default.prototype);_exports.default=View});