define(["exports","./../modules/tabbedview/tabbedview.js","./../modules/common/globalize.js","./../modules/emby-elements/emby-itemscontainer/emby-itemscontainer.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-scroller/emby-scroller.js"],function(_exports,_tabbedview,_globalize,_embyItemscontainer,_embyButton,_embyScroller){function MusicView(view,params){_tabbedview.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(MusicView.prototype,_tabbedview.default.prototype),MusicView.prototype.getTabs=function(){var subviews=this.item.Subviews||["albums","albumartists","artists","playlists","songs","genres","folders"],collectionType=this.item.CollectionType;return[{name:_globalize.default.translate("Suggestions"),id:"suggestions"},{name:"audiobooks"===collectionType?_globalize.default.translate("Books"):_globalize.default.translate("Albums"),id:"albums",enabled:subviews.includes("albums")},{name:_globalize.default.translate("HeaderAlbumArtists"),id:"albumartists",enabled:"audiobooks"!==collectionType},{name:"audiobooks"===collectionType?_globalize.default.translate("Authors"):_globalize.default.translate("Artists"),id:"artists",enabled:subviews.includes("artists")},{name:_globalize.default.translate("Composers"),id:"composers",enabled:"audiobooks"!==collectionType},{name:_globalize.default.translate("Playlists"),id:"playlists",enabled:subviews.includes("playlists")},{name:_globalize.default.translate("Genres"),id:"genres",enabled:subviews.includes("genres")},{name:_globalize.default.translate("Songs"),id:"songs",enabled:"audiobooks"!==collectionType},{name:_globalize.default.translate("Tags"),id:"tags",enabled:subviews.includes("tags")},{name:_globalize.default.translate("Folders"),id:"folders"}]},MusicView.prototype.loadTabController=function(id){switch(id){case"suggestions":return Emby.importModule("./music/suggestions.js");case"albums":return Emby.importModule("./music/albums.js");case"albumartists":case"artists":case"composers":return Emby.importModule("./modules/tabbedview/artiststab.js");case"playlists":return Emby.importModule("./modules/tabbedview/playliststab.js");case"genres":return Emby.importModule("./modules/tabbedview/genrestab.js");case"songs":return Emby.importModule("./music/songs.js");case"tags":return Emby.importModule("./modules/tabbedview/tagstab.js");case"folders":return Emby.importModule("./modules/tabbedview/folderstab.js");default:throw new Error("tab not found: "+id)}},MusicView.prototype.getAutoBackdropItemTypes=function(){return["MusicAlbum"]},MusicView.prototype.getTabControllerOptions=function(id){var options=_tabbedview.default.prototype.getTabControllerOptions.apply(this,arguments);return"genres"===id&&(options.queryIncludeItemTypes=["MusicAlbum"]),options};_exports.default=MusicView});