define(["exports","./../emby-apiclient/connectionmanager.js"],function(_exports,_connectionmanager){function BackdropScreenSaver(){this.name="Backdrop Screen Saver",this.type="screensaver",this.id="backdropscreensaver",this.supportsAnonymous=!1}function getItems(query){query=Object.assign({ImageTypes:"Backdrop",EnableImageTypes:"Backdrop",IncludeItemTypes:"Movie,Series,MusicArtist,Game",SortBy:"Random",Recursive:!0,ImageTypeLimit:1,Fields:"ProductionYear"},query);var apiClient=_connectionmanager.default.currentApiClient();return apiClient.getItems(apiClient.getCurrentUserId(),query)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,BackdropScreenSaver.prototype.show=function(){var instance;this.currentSlideshow||(instance=this,Emby.importModule("./modules/slideshow/slideshow.js").then(function(slideshow){instance.currentSlideshow||((slideshow=new slideshow({showTitle:!0,cover:!0,getItems:getItems,cardFields:["Name","ProductionYear"],interactive:!1,autoplay:!0})).show(),instance.currentSlideshow=slideshow)}))},BackdropScreenSaver.prototype.hide=function(){var currentSlideshow=this.currentSlideshow;currentSlideshow&&(currentSlideshow.hide(),this.currentSlideshow=null)};_exports.default=BackdropScreenSaver});