"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[73730,96084,40367],{80927:function(e,r,t){t.r(r),t(67593),t(96054),t(63855);var a=t(73233),i=t(56869),s=t(9482),n=t(89100);function o(){i.Ay.show();var e=this;return ApiClient.getServerConfiguration().then((function(r){r.RemoteClientBitrateLimit=parseInt(1e6*parseFloat($("#txtRemoteClientBitrateLimit",e).val()||"0"),10),ApiClient.updateServerConfiguration(r).then(n.default.processServerConfigurationUpdateResult)})),!1}function c(){return[{href:"#/dashboard/playback/transcoding",name:s.Ay.translate("Transcoding")},{href:"#/dashboard/playback/resume",name:s.Ay.translate("ButtonResume")},{href:"#/dashboard/playback/streaming",name:s.Ay.translate("TabStreaming")},{href:"#/dashboard/playback/trickplay",name:s.Ay.translate("Trickplay")}]}$(document).on("pageinit","#streamingSettingsPage",(function(){$(".streamingSettingsForm").off("submit",o).on("submit",o)})).on("pageshow","#streamingSettingsPage",(function(){i.Ay.show(),a.default.setTabs("playback",2,c);var e=this;ApiClient.getServerConfiguration().then((function(r){!function(e,r){$("#txtRemoteClientBitrateLimit",e).val(r.RemoteClientBitrateLimit/1e6||""),i.Ay.hide()}(e,r)}))}))},40782:function(e,r,t){var a=t(11444),i="assets/img/devices/";r.Ay={getDeviceIcon:function(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return i+"samsung.svg";case"Xbox One":return i+"xbox.svg";case"Sony PS4":return i+"playstation.svg";case"Kodi":case"Kodi JellyCon":return i+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return i+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Infuse":return i+"apple.svg";case"Home Assistant":return i+"home-assistant.svg";case"Jellyfin Roku":return i+"roku.svg";case"Finamp":return i+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return i+"opera.svg";case"Chrome":case"Chrome Android":return i+"chrome.svg";case"Firefox":case"Firefox Android":return i+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return i+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return i+"edgechromium.svg";case"Edge":return i+"edge.svg";case"Internet Explorer":return i+"msie.svg";default:return i+"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 i+"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"}}}}}]);