"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[50463,96084,40367],{72816:function(e,r,t){t.r(r),t.d(r,{default:function(){return c}});var a=t(9482),n=t(56869),i=t(73233),s=(t(77157),t(10353),t(89100));function o(){return[{href:"#/dashboard/libraries",name:a.Ay.translate("HeaderLibraries")},{href:"#/dashboard/libraries/display",name:a.Ay.translate("Display")},{href:"#/dashboard/libraries/metadata",name:a.Ay.translate("Metadata")},{href:"#/dashboard/libraries/nfo",name:a.Ay.translate("TabNfoSettings")}]}function c(e){e.querySelector("form").addEventListener("submit",(function(e){n.Ay.show();var r=this;return ApiClient.getServerConfiguration().then((function(e){e.EnableFolderView=r.querySelector(".chkFolderView").checked,e.EnableGroupingIntoCollections=r.querySelector(".chkGroupMoviesIntoCollections").checked,e.DisplaySpecialsWithinSeasons=r.querySelector(".chkDisplaySpecialsWithinSeasons").checked,e.EnableExternalContentInSuggestions=r.querySelector(".chkExternalContentInSuggestions").checked,e.SaveMetadataHidden=r.querySelector("#chkSaveMetadataHidden").checked,ApiClient.updateServerConfiguration(e).then(s.default.processServerConfigurationUpdateResult)})),ApiClient.getNamedConfiguration("metadata").then((function(e){e.UseFileCreationTimeForDateAdded="1"===$("#selectDateAdded",r).val(),ApiClient.updateNamedConfiguration("metadata",e)})),e.preventDefault(),n.Ay.hide(),!1})),e.addEventListener("viewshow",(function(){i.default.setTabs("librarysetup",1,o),ApiClient.getServerConfiguration().then((function(r){e.querySelector(".chkFolderView").checked=r.EnableFolderView,e.querySelector(".chkGroupMoviesIntoCollections").checked=r.EnableGroupingIntoCollections,e.querySelector(".chkDisplaySpecialsWithinSeasons").checked=r.DisplaySpecialsWithinSeasons,e.querySelector(".chkExternalContentInSuggestions").checked=r.EnableExternalContentInSuggestions,e.querySelector("#chkSaveMetadataHidden").checked=r.SaveMetadataHidden})),ApiClient.getNamedConfiguration("metadata").then((function(r){e.querySelector("#selectDateAdded").selectedIndex=r.UseFileCreationTimeForDateAdded?1:0})),ApiClient.getSystemInfo().then((function(r){"Windows"===r.OperatingSystem?e.querySelector(".fldSaveMetadataHidden").classList.remove("hide"):e.querySelector(".fldSaveMetadataHidden").classList.add("hide")}))}))}},40782:function(e,r,t){var a=t(11444),n="assets/img/devices/";r.Ay={getDeviceIcon:function(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return n+"samsung.svg";case"Xbox One":return n+"xbox.svg";case"Sony PS4":return n+"playstation.svg";case"Kodi":case"Kodi JellyCon":return n+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return n+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Infuse":return n+"apple.svg";case"Home Assistant":return n+"home-assistant.svg";case"Jellyfin Roku":return n+"roku.svg";case"Finamp":return n+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return n+"opera.svg";case"Chrome":case"Chrome Android":return n+"chrome.svg";case"Firefox":case"Firefox Android":return n+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return n+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return n+"edgechromium.svg";case"Edge":return n+"edge.svg";case"Internet Explorer":return n+"msie.svg";default:return n+"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 n+"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 a.D.MusicAlbum:return"album";case a.D.MusicArtist:case a.D.Person:return"person";case a.D.Audio:return"audiotrack";case a.D.Movie:return"movie";case a.D.Episode:case a.D.Series:return"tv";case a.D.Program:return"live_tv";case a.D.Book:return"book";case a.D.Folder:return"folder";case a.D.BoxSet:return"collections";case a.D.Playlist:return"view_list";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return"folder"}}}}}]);