"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[56376,96084,40367],{71609:function(e,a,t){t.r(a),t(44962),t(86584),t(78557),t(90076),t(83994),t(82367);var r=t(22696),s=t.n(r),n=(t(63855),t(56869)),i=t(73233),o=t(9482),c=t(89100),u=t(41177);function l(){n.Ay.show();var e=this;return ApiClient.getNamedConfiguration(h).then((function(a){a.UserId=$("#selectUser",e).val()||null,a.ReleaseDateFormat=$("#selectReleaseDateFormat",e).val(),a.SaveImagePathsInNfo=e.querySelector("#chkSaveImagePaths").checked,a.EnablePathSubstitution=e.querySelector("#chkEnablePathSubstitution").checked,a.EnableExtraThumbsDuplication=e.querySelector("#chkEnableExtraThumbs").checked,ApiClient.updateNamedConfiguration(h,a).then((function(){var e;c.default.processServerConfigurationUpdateResult(),(e=[]).push(o.Ay.translate("MetadataSettingChangeHelp")),(0,u.A)({text:e.join("<br/><br/>")})}))})),!1}function d(){return[{href:"#/dashboard/libraries",name:o.Ay.translate("HeaderLibraries")},{href:"#/dashboard/libraries/display",name:o.Ay.translate("Display")},{href:"#/dashboard/libraries/metadata",name:o.Ay.translate("Metadata")},{href:"#/dashboard/libraries/nfo",name:o.Ay.translate("TabNfoSettings")}]}var h="xbmcmetadata";$(document).on("pageinit","#metadataNfoPage",(function(){$(".metadataNfoForm").off("submit",l).on("submit",l)})).on("pageshow","#metadataNfoPage",(function(){i.default.setTabs("metadata",3,d),n.Ay.show();var e=this,a=ApiClient.getUsers(),t=ApiClient.getNamedConfiguration(h);Promise.all([a,t]).then((function(a){!function(e,a,t){var r='<option value="" selected="selected">'+o.Ay.translate("None")+"</option>";r+=t.map((function(e){return'<option value="'+e.Id+'">'+s()(e.Name)+"</option>"})).join(""),$("#selectUser",e).html(r).val(a.UserId||""),$("#selectReleaseDateFormat",e).val(a.ReleaseDateFormat),e.querySelector("#chkSaveImagePaths").checked=a.SaveImagePathsInNfo,e.querySelector("#chkEnablePathSubstitution").checked=a.EnablePathSubstitution,e.querySelector("#chkEnableExtraThumbs").checked=a.EnableExtraThumbsDuplication,n.Ay.hide()}(e,a[1],a[0])}))}))},40782:function(e,a,t){var r=t(11444),s="assets/img/devices/";a.Ay={getDeviceIcon:function(e){var a;switch(e.AppName||e.Client){case"Samsung Smart TV":return s+"samsung.svg";case"Xbox One":return s+"xbox.svg";case"Sony PS4":return s+"playstation.svg";case"Kodi":case"Kodi JellyCon":return s+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return s+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Infuse":return s+"apple.svg";case"Home Assistant":return s+"home-assistant.svg";case"Jellyfin Roku":return s+"roku.svg";case"Finamp":return s+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return s+"opera.svg";case"Chrome":case"Chrome Android":return s+"chrome.svg";case"Firefox":case"Firefox Android":return s+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return s+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return s+"edgechromium.svg";case"Edge":return s+"edge.svg";case"Internet Explorer":return s+"msie.svg";default:return s+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(a=e.Capabilities)||void 0===a?void 0:a.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(a){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,a)}return s+"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 r.D.MusicAlbum:return"album";case r.D.MusicArtist:case r.D.Person:return"person";case r.D.Audio:return"audiotrack";case r.D.Movie:return"movie";case r.D.Episode:case r.D.Series:return"tv";case r.D.Program:return"live_tv";case r.D.Book:return"book";case r.D.Folder:return"folder";case r.D.BoxSet:return"collections";case r.D.Playlist:return"view_list";case r.D.Photo:return"photo";case r.D.PhotoAlbum:return"photo_album";default:return"folder"}}}}}]);