define(["exports","./../modules/tabbedview/itemstab.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/common/globalize.js","./../modules/common/servicelocator.js"],function(_exports,_itemstab,_embyScroller,_embyButton,_globalize,_servicelocator){function LogsTab(view,params){this.enableAlphaNumericShortcuts=!1,_itemstab.default.call(this,view,params)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["flexStyles"]),Object.assign(LogsTab.prototype,_itemstab.default.prototype),LogsTab.prototype.getMode=function(){return-1===window.location.href.toString().toLowerCase().indexOf("applog")?"server":"app"},LogsTab.prototype.getApiClientQueryMethodName=function(){return"getLogs"},LogsTab.prototype.getItems=function(query){return"server"===this.getMode()?_itemstab.default.prototype.getItems.apply(this,arguments):_servicelocator.appLogger.getLogFiles(query||{})},LogsTab.prototype.getBaseListRendererOptions=function(){var options=_itemstab.default.prototype.getBaseListRendererOptions.apply(this,arguments);return options.draggable=!1,options.draggableXActions=!0,options.action="link",options},LogsTab.prototype.getListViewOptions=function(items,settings){var options=_itemstab.default.prototype.getListViewOptions.apply(this,arguments);return options.transparentIcon=!0,options.enableDefaultIcon=!0,options.roundImage=!0,options.moreButton=!0,options.downloadButton=!0,options},LogsTab.prototype.getCardOptions=function(items,settings){var options=_itemstab.default.prototype.getCardOptions.apply(this,arguments);return options.shape="backdrop",options.defaultBackground=!0,options},LogsTab.prototype.getItemTypes=function(){return["Log"]},LogsTab.prototype.getSettingsKey=function(){return"logs"},LogsTab.prototype.setTitle=function(){},LogsTab.prototype.getViewSettingDefaults=function(){var viewSettings=_itemstab.default.prototype.getViewSettingDefaults.apply(this,arguments);return viewSettings.imageType="list",viewSettings},LogsTab.prototype.getItemCountText=function(numItems){return 1===numItems?_globalize.default.translate("OneLog"):_globalize.default.translate("LogCountValue",numItems)},LogsTab.prototype.loadTemplate=function(){return this.loadItemsTemplate()};_exports.default=LogsTab});