define(["dom","globalize","appRouter","emby-linkbutton","emby-checkbox","css!./wizard"],function(dom,globalize,appRouter){"use strict";function onSubmit(e){var options;return this.closest(".page").querySelector(".chkAccept").checked?appRouter.show("wizard/wizardfinish.html"):(options={text:globalize.translate("MessagePleaseAcceptTermsOfServiceBeforeContinuing"),title:""},require(["alert"]).then(function(responses){responses[0](options)})),e.preventDefault(),!1}return function(view){view.querySelector(".wizardAgreementForm").addEventListener("submit",onSubmit)}});