define(["loading","css!./wizard","emby-button"],function(loading){"use strict";function onFinish(){loading.show(),ApiClient.ajax({url:ApiClient.getUrl("Startup/Complete"),type:"POST"}).then(function(){loading.hide(),window.location="index.html?#!/startup/login.html?serverId="+ApiClient.serverId()})}return function(view){view.querySelector(".btnWizardNext").addEventListener("click",onFinish)}});