define(["exports","./../modules/tabbedview/basesettingstab.js","./../modules/emby-elements/emby-input/emby-input.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-select/emby-select.js","./../modules/emby-elements/emby-toggle/emby-toggle.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/emby-elements/emby-itemscontainer/emby-itemscontainer.js"],function(_exports,_basesettingstab,_embyInput,_embyButton,_embySelect,_embyToggle,_embyScroller,_embyItemscontainer){function LogSettingsTab(view,params){_basesettingstab.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["flexStyles","material-icons"]),Object.assign(LogSettingsTab.prototype,_basesettingstab.default.prototype),LogSettingsTab.prototype.loadTemplate=function(){return require(["text!logs/serverlogsettingstab.html"])},LogSettingsTab.prototype.onTemplateLoaded=function(){_basesettingstab.default.prototype.onTemplateLoaded.apply(this,arguments),this.view.querySelector(".selectLogLevel").addEventListener("change",function(e){var value=e.target.value,apiClient=this.getApiClient();apiClient.getServerConfiguration().then(function(config){config.EnableDebugLevelLogging=!!value,config.EnableDebugLevelLogging?config.RevertDebugLogging="yes"===value?null:value:config.RevertDebugLogging=null,apiClient.updateServerConfiguration(config)})}.bind(this))},LogSettingsTab.prototype.loadSettingsInternal=function(){var instance=this;return this.getApiClient().getServerConfiguration().then(function(config){var value="";return config.EnableDebugLevelLogging&&(value="restart"===config.RevertDebugLogging?"restart":"rotate"===config.RevertDebugLogging?"rotate":"yes"),instance.view.querySelector(".selectLogLevel").value=value,instance.loadAutoSettings()})};_exports.default=LogSettingsTab});