"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[16949,96084,40367],{7274:function(e,a,r){r.r(a),r(63855);var t=r(56869),s=r(73233),n=r(9482),i=r(89100);function o(){t.Ay.show();var e=this;return ApiClient.getServerConfiguration().then((function(a){a.MinResumePct=$("#txtMinResumePct",e).val(),a.MaxResumePct=$("#txtMaxResumePct",e).val(),a.MinAudiobookResume=$("#txtMinAudiobookResume",e).val(),a.MaxAudiobookResume=$("#txtMaxAudiobookResume",e).val(),a.MinResumeDurationSeconds=$("#txtMinResumeDuration",e).val(),ApiClient.updateServerConfiguration(a).then(i.default.processServerConfigurationUpdateResult)})),!1}function u(){return[{href:"#/dashboard/playback/transcoding",name:n.Ay.translate("Transcoding")},{href:"#/dashboard/playback/resume",name:n.Ay.translate("ButtonResume")},{href:"#/dashboard/playback/streaming",name:n.Ay.translate("TabStreaming")},{href:"#/dashboard/playback/trickplay",name:n.Ay.translate("Trickplay")}]}$(document).on("pageinit","#playbackConfigurationPage",(function(){$(".playbackConfigurationForm").off("submit",o).on("submit",o)})).on("pageshow","#playbackConfigurationPage",(function(){t.Ay.show(),s.default.setTabs("playback",1,u);var e=this;ApiClient.getServerConfiguration().then((function(a){!function(e,a){$("#txtMinResumePct",e).val(a.MinResumePct),$("#txtMaxResumePct",e).val(a.MaxResumePct),$("#txtMinAudiobookResume",e).val(a.MinAudiobookResume),$("#txtMaxAudiobookResume",e).val(a.MaxAudiobookResume),$("#txtMinResumeDuration",e).val(a.MinResumeDurationSeconds),t.Ay.hide()}(e,a)}))}))},40782:function(e,a,r){var t=r(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 t.D.MusicAlbum:return"album";case t.D.MusicArtist:case t.D.Person:return"person";case t.D.Audio:return"audiotrack";case t.D.Movie:return"movie";case t.D.Episode:case t.D.Series:return"tv";case t.D.Program:return"live_tv";case t.D.Book:return"book";case t.D.Folder:return"folder";case t.D.BoxSet:return"collections";case t.D.Playlist:return"view_list";case t.D.Photo:return"photo";case t.D.PhotoAlbum:return"photo_album";default:return"folder"}}}}}]);