"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5617,96084,40367],{85420:function(e,r,a){a.r(r),a(86584),a(83810),a(78557),a(90076);var s=a(89166),t=a(82885),n=a(73233),i=a(89100),o={};(0,i.pageClassOn)("pageshow","page",(function(){var e,r,a,i=this;i.classList.contains("selfBackdropPage")||(i.classList.contains("backdropPage")?t.enableBackdrops()?(e=i.getAttribute("data-backdroptype"),r=i.classList.contains("globalBackdropPage")?"":n.default.getTopParentId(),(a=window.ApiClient)&&function(e,r,a,s){var t="backdrops2_".concat(r+(a||"")+(s||"")),n=o[t];if(n)return console.debug("Found backdrop id list in cache. Key: ".concat(t)),n=JSON.parse(n),Promise.resolve(n);var i={SortBy:"IsFavoriteOrLiked,Random",Limit:20,Recursive:!0,IncludeItemTypes:a,ImageTypes:"Backdrop",ParentId:s,EnableTotalRecordCount:!1,MaxOfficialRating:s?"":"PG-13"};return e.getItems(e.getCurrentUserId(),i).then((function(e){var r=e.Items.map((function(e){return{Id:e.Id,tag:e.BackdropImageTags[0],ServerId:e.ServerId}}));return o[t]=JSON.stringify(r),r}))}(a,a.getCurrentUserId(),e,r).then((function(e){e.length?(0,s.C9)(e.map((function(e){return e.BackdropImageTags=[e.tag],e}))):(0,s.gJ)()}))):(i.classList.remove("backdropPage"),(0,s.gJ)()):(0,s.gJ)())}))},40782:function(e,r,a){var s=a(11444),t="assets/img/devices/";r.Ay={getDeviceIcon:function(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return t+"samsung.svg";case"Xbox One":return t+"xbox.svg";case"Sony PS4":return t+"playstation.svg";case"Kodi":case"Kodi JellyCon":return t+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return t+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Infuse":return t+"apple.svg";case"Home Assistant":return t+"home-assistant.svg";case"Jellyfin Roku":return t+"roku.svg";case"Finamp":return t+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return t+"opera.svg";case"Chrome":case"Chrome Android":return t+"chrome.svg";case"Firefox":case"Firefox Android":return t+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return t+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return t+"edgechromium.svg";case"Edge":return t+"edge.svg";case"Internet Explorer":return t+"msie.svg";default:return t+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(r=e.Capabilities)||void 0===r?void 0:r.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(r){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,r)}return t+"other.svg"}},getLibraryIcon:function(e){switch(e){case"movies":return"video_library";case"music":return"library_music";case"photos":case"homevideos":return"photo_library";case"livetv":return"live_tv";case"tvshows":return"tv";case"trailers":return"local_movies";case"musicvideos":return"music_video";case"books":return"library_books";case"channels":return"videocam";case"playlists":return"view_list";default:return"folder"}},getItemTypeIcon:function(e){switch(e){case s.D.MusicAlbum:return"album";case s.D.MusicArtist:case s.D.Person:return"person";case s.D.Audio:return"audiotrack";case s.D.Movie:return"movie";case s.D.Episode:case s.D.Series:return"tv";case s.D.Program:return"live_tv";case s.D.Book:return"book";case s.D.Folder:return"folder";case s.D.BoxSet:return"collections";case s.D.Playlist:return"view_list";case s.D.Photo:return"photo";case s.D.PhotoAlbum:return"photo_album";default:return"folder"}}}}}]);