define(["exports","./../modules/viewmanager/baseview.js","./../modules/loading/loading.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-checkbox/emby-checkbox.js","./../modules/emby-elements/emby-select/emby-select.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/approuter.js"],function(_exports,_baseview,_loading,_embyButton,_embyCheckbox,_embySelect,_embyScroller,_approuter){function save(page){_loading.default.show();var apiClient=ApiClient,config={};config.EnableAutomaticPortMapping=page.querySelector(".chkEnableUpnp").checked,apiClient.ajax({type:"POST",data:config,url:apiClient.getUrl("Startup/RemoteAccess")}).then(function(){_loading.default.hide(),_approuter.default.show("wizard/wizardagreement.html")})}function onSubmit(e){return save(this),e.preventDefault(),!1}function View(view,params){_baseview.default.apply(this,arguments),view.querySelector(".wizardSettingsForm").addEventListener("submit",onSubmit)}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});