@mibmo/jellyfin-tizen 10.11.5 → 10.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/tizen-adapter.js +1 -1
  3. package/www/24468.0965909e13c9a8e197d0.chunk.js +1 -0
  4. package/www/32721.7df69cb5f2d12904581b.chunk.js +2 -0
  5. package/www/{38122.c2d024b452ef9603b24b.chunk.js → 38122.5484b7a8e84127a41eab.chunk.js} +1 -1
  6. package/www/68603.927deb4f3fa3d339662d.chunk.js +1 -0
  7. package/www/81954.300ea98bc9f7b1557160.chunk.js +1 -0
  8. package/www/8575.9930ac44b80fc0c13f36.chunk.js +1 -0
  9. package/www/{99883.9e6528daf81363afcc83.chunk.js → 99883.9ffc7cabe8574ec089b7.chunk.js} +1 -1
  10. package/www/assets/img/devices/firetv.svg +1 -0
  11. package/www/devices.01bfe1e86e6bdfcde095.chunk.js +1 -0
  12. package/www/index.2619e1ebaee8f0dd41ff.chunk.js +1 -0
  13. package/www/index.html +1 -1
  14. package/www/libraries.38e69a6fc429a33d86f9.chunk.js +1 -0
  15. package/www/library.6e684507234df3a63964.chunk.js +1 -0
  16. package/www/lyrics.c31f5e5752833ba34655.chunk.js +1 -0
  17. package/www/{main.jellyfin.9c6fd4f27ea6ac4a6d6f.css → main.jellyfin.7eaf27d20464cbe82c37.css} +1 -1
  18. package/www/main.jellyfin.bundle.js +1 -1
  19. package/www/playback-video.643576d4f0393b6775e4.chunk.js +2 -0
  20. package/www/plugins.56e584230d162132aeb5.chunk.js +1 -0
  21. package/www/runtime.bundle.js +1 -1
  22. package/www/{session-login.c08895ee559e30dd0241.chunk.js → session-login.772912551717410a1de5.chunk.js} +2 -2
  23. package/www/{session-selectServer.d08dd2225623662430d8.chunk.js → session-selectServer.11b3f8f84ec57fe3334e.chunk.js} +1 -1
  24. package/www/24468.cc4786b370fe6972ab57.chunk.js +0 -1
  25. package/www/32721.1565fbee2f79c634a171.chunk.js +0 -2
  26. package/www/68603.dd143553b71a7dcbae51.chunk.js +0 -1
  27. package/www/81954.221ec67f79242f490c86.chunk.js +0 -1
  28. package/www/8575.22b3385f8c1742fe35c4.chunk.js +0 -1
  29. package/www/devices.77000b3a9001dd7234e5.chunk.js +0 -1
  30. package/www/index.fcbffddb8832efcc3aa0.chunk.js +0 -1
  31. package/www/libraries.4988e265e604bcb0e445.chunk.js +0 -1
  32. package/www/library.0578cfcc17ad4ce09d2b.chunk.js +0 -1
  33. package/www/lyrics.05d5ed668649f4fe72bd.chunk.js +0 -1
  34. package/www/playback-video.1bb437c4ee35983c6b77.chunk.js +0 -2
  35. package/www/plugins.79d12abe5ee75e209e7e.chunk.js +0 -1
  36. /package/www/{32721.1565fbee2f79c634a171.chunk.js.LICENSE.txt → 32721.7df69cb5f2d12904581b.chunk.js.LICENSE.txt} +0 -0
  37. /package/www/{playback-video.1bb437c4ee35983c6b77.chunk.js.LICENSE.txt → playback-video.643576d4f0393b6775e4.chunk.js.LICENSE.txt} +0 -0
  38. /package/www/{session-login.c08895ee559e30dd0241.chunk.js.LICENSE.txt → session-login.772912551717410a1de5.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Amazon Fire TV</title><path d="M20.196 15.12c.265.337-.294 1.73-.542 2.353-.077.19.085.266.257.123 1.106-.926 1.39-2.867 1.166-3.149-.226-.277-2.16-.516-3.341.314-.183.127-.151.304.05.279.665-.08 2.147-.257 2.41.08m-.858.981c-2.064 1.523-5.056 2.333-7.632 2.333-3.611 0-6.862-1.334-9.322-3.555-.194-.176-.02-.414.21-.28 2.655 1.545 5.939 2.477 9.328 2.477 2.287 0 4.803-.476 7.115-1.458.348-.147.642.231.3.483m2.034-3.155a.388.388 0 0 1-.201-.04c-.041-.026-.087-.1-.133-.225l-1.734-4.355a1.79 1.79 0 0 0-.046-.117.266.266 0 0 1-.023-.108c0-.084.049-.128.146-.128h.58c.098 0 .165.014.205.04.04.026.082.102.127.226l1.344 3.823 1.343-3.823c.046-.124.089-.2.128-.226a.402.402 0 0 1 .205-.04h.54c.1 0 .148.044.148.128a.3.3 0 0 1-.025.108c-.016.04-.032.078-.044.117l-1.727 4.355c-.045.124-.09.199-.132.225a.388.388 0 0 1-.201.04zm-3.644.068c-.929 0-1.392-.463-1.392-1.392V8.739h-.706c-.13 0-.197-.066-.197-.196v-.246a.22.22 0 0 1 .045-.147c.03-.031.086-.055.171-.067l.717-.09.127-1.215c.013-.13.082-.196.207-.196h.41c.13 0 .196.066.196.196v1.196h1.276c.13 0 .195.065.195.197v.372c0 .13-.064.196-.195.196h-1.276v2.834c0 .243.055.411.162.51.108.098.293.147.555.147.124 0 .277-.016.46-.049.099-.02.164-.03.197-.03.052 0 .088.014.108.044.02.03.029.077.029.142v.266a.366.366 0 0 1-.04.19c-.026.043-.078.078-.157.103a3.018 3.018 0 0 1-.892.118m-4.665-2.976c.006-.052.011-.137.011-.255 0-.399-.094-.698-.28-.901-.186-.204-.46-.306-.818-.306-.412 0-.732.123-.962.369-.228.245-.36.61-.392 1.093zm-.942 3.07c-.803 0-1.411-.222-1.824-.667-.412-.444-.616-1.102-.616-1.972 0-.83.204-1.475.616-1.937.413-.46.988-.691 1.728-.691.62 0 1.098.176 1.432.524.332.351.5.846.5 1.487 0 .21-.017.422-.05.638-.014.077-.034.13-.064.156-.029.027-.077.04-.142.04h-3.08c.013.563.154.977.418 1.245.265.268.674.403 1.23.403.196 0 .385-.014.564-.04a5.04 5.04 0 0 0 .682-.166l.117-.035a.284.284 0 0 1 .09-.016c.085 0 .125.06.125.177v.276c0 .085-.012.144-.037.18a.441.441 0 0 1-.167.114 3.38 3.38 0 0 1-.701.205 4.236 4.236 0 0 1-.82.079m-5.424-.147c-.13 0-.195-.066-.195-.197v-4.58c0-.13.064-.195.195-.195h.432c.064 0 .116.012.153.039.036.025.06.076.072.146l.07.55c.176-.19.343-.34.499-.452a1.725 1.725 0 0 1 1.02-.323c.079 0 .158.003.235.01.112.014.168.072.168.176v.53c0 .117-.058.177-.178.177-.058 0-.114-.004-.17-.01a1.638 1.638 0 0 0-.18-.01c-.524 0-.973.157-1.346.47v3.472c0 .131-.066.197-.195.197zm-2.249 0c-.13 0-.196-.066-.196-.197v-4.58c0-.13.066-.195.196-.195h.579c.13 0 .195.064.195.195v4.58c0 .131-.065.197-.195.197zm.295-5.856c-.19 0-.339-.054-.447-.16a.581.581 0 0 1-.161-.428c0-.176.054-.318.16-.426.11-.109.257-.163.448-.163.189 0 .337.054.446.163.107.108.16.25.16.426a.581.581 0 0 1-.16.427.608.608 0 0 1-.446.161m-3.625 5.856c-.132 0-.197-.066-.197-.197v-4.01H.195c-.13 0-.195-.066-.195-.197v-.245c0-.065.014-.114.043-.147.03-.033.088-.055.173-.07l.705-.087v-.804c0-1.091.523-1.638 1.57-1.638.248 0 .51.036.784.109.072.019.122.047.152.088.029.038.044.107.044.205v.255c0 .124-.048.186-.148.186-.058 0-.14-.01-.248-.029-.11-.02-.23-.03-.369-.03-.3 0-.51.057-.633.172-.121.115-.181.303-.181.564v.903h1.324c.131 0 .197.064.197.195v.373c0 .13-.066.197-.197.197H1.892v4.01c0 .131-.065.197-.196.197Z" fill="#fff"/></svg>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[23920],{7397:function(e,t,n){var r=n(30177),o=n(41906);t.A=function(e){var t=e.cell,n=(0,o.Y)().dateFnsLocale;return(0,r.A)(t.getValue(),"Pp",{locale:n})}},32203:function(e,t,n){n.d(t,{Bq:function(){return u},Jd:function(){return c},yq:function(){return a}});var r=n(65369),o=n(11444),i="assets/img/devices/";function a(e){var t;switch(e.AppName||e.Client){case"Samsung Smart TV":return i+"samsungtv.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"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return i+"apple.svg";case"Home Assistant":return i+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return i+"webos.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";case"Titan OS":return i+"titanos.svg";case"Vega OS":return i+"firetv.svg";default:return i+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(t=e.Capabilities)||void 0===t?void 0:t.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(t){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,t)}return i+"other.svg"}}function c(e){switch(e){case r.X.Movies:return"movie";case r.X.Music:return"music_note";case r.X.Homevideos:case r.X.Photos:return"photo";case r.X.Livetv:return"live_tv";case r.X.Tvshows:return"tv";case r.X.Trailers:return"theaters";case r.X.Musicvideos:return"music_video";case r.X.Books:return"book";case r.X.Boxsets:return"video_library";case r.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function u(e,t){switch(e){case o.D.MusicAlbum:return"album";case o.D.MusicArtist:case o.D.Person:return"person";case o.D.Audio:return"audiotrack";case o.D.Movie:return"movie";case o.D.Episode:case o.D.Series:return"tv";case o.D.Program:return"live_tv";case o.D.Book:return"book";case o.D.Folder:return"folder";case o.D.BoxSet:return"video_library";case o.D.Playlist:return"queue";case o.D.Photo:return"photo";case o.D.PhotoAlbum:return"photo_album";default:return t}}t.Ay={getDeviceIcon:a,getLibraryIcon:c,getItemTypeIcon:u}},36589:function(e,t,n){n.d(t,{O:function(){return s}});var r=n(62540),o=n(92779),i=n(70140),a=n(89348),c=n(51602),u=(n(63696),n(65242)),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},s={enableColumnPinning:!0,enableColumnResizing:!0,enableStickyFooter:!0,enableStickyHeader:!0,muiTableContainerProps:{sx:{maxHeight:"calc(100% - 7rem)"}}};t.A=function(e){var t=e.title,n=e.subtitle,s=e.table,f=e.children,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["title","subtitle","table","children"]);return(0,r.jsxs)(u.A,l({title:t},d,{children:[(0,r.jsxs)(o.A,{className:"content-primary",sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,r.jsxs)(i.A,{spacing:2,sx:{marginBottom:1},children:[(0,r.jsx)(a.A,{variant:"h1",children:t}),n&&(0,r.jsx)(a.A,{children:n})]}),(0,r.jsx)(c.zp,{table:s})]}),f]}))}},38596:function(e,t,n){n.d(t,{n:function(){return p}}),n(29305),n(32733),n(84701),n(81678),n(14382),n(69892),n(44962),n(89336),n(4754),n(94),n(33087),n(36947),n(36457),n(88908),n(83810),n(78557),n(95021),n(73687),n(83994),n(23630),n(82367);var r=n(63696),o=n(427),i=n(52672),a=n(26073),c=n(9790);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n,u,l=(0,c.jE)(t),f=(n=r.useState((function(){return new o._(l,e)})),u=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,u)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(n,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];r.useEffect((function(){f.setOptions(e)}),[f,e]);var p=r.useSyncExternalStore(r.useCallback((function(e){return f.subscribe(i.jG.batchCalls(e))}),[f]),(function(){return f.getCurrentResult()}),(function(){return f.getCurrentResult()})),y=r.useCallback((function(e,t){f.mutate(e,t).catch(a.lQ)}),[f]);if(p.error&&(0,a.GU)(f.options.throwOnError,[p.error]))throw p.error;return s(s({},p),{},{mutate:y,mutateAsync:p.mutate})}},41906:function(e,t,n){n.d(t,{Y:function(){return f}});var r=n(62864),o=n(63696),i=n(5898),a=n(93721),c=n(28626),u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function f(){var e=this,t=(0,c.Q)(),n=t.dateTimeLocale,f=t.language,d=s((0,o.useState)(r.A),2),p=d[0],y=d[1],v=(0,o.useMemo)((function(){return(0,i.Tl)(f||(0,i.i5)())}),[f]),b=(0,o.useMemo)((function(){return n?(0,i.Tl)(n):v}),[n,v]);return(0,o.useEffect)((function(){u(e,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,a.Fq)((0,a.QC)(b))];case 1:return e=n.sent(),y(e),[3,3];case 2:return t=n.sent(),console.warn("[useLocale] failed to fetch dateFns locale",t),[3,3];case 3:return[2]}}))}))}),[b]),{locale:v,dateTimeLocale:b,dateFnsLocale:p}}},56080:function(e,t,n){n.r(t),n.d(t,{Component:function(){return E}});var r=n(62540),o=n(31858),i=n(17997),a=n(92779),c=n(63703),u=n(75487),l=n(96156),s=n(72073),f=n(34401),d=n(51602),p=n(63696),y=n(7397),v=n(36589),b=n(57227),m=n(81098),h=n(38596),g=n(69410),O=n(31297),x=n(80401),A="Devices",w=function(e){var t=(0,g.gf)().api;return(0,x.I)({queryKey:[A,e],queryFn:function(n){var r=n.signal;return function(e,t,n){return r=void 0,o=void 0,a=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,m.g)(e).getDevices(t,{signal:null==n?void 0:n.signal})];case 1:return[2,r.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{u(a.next(e))}catch(e){t(e)}}function c(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,c)}u((a=a.apply(r,o||[])).next())}));var r,o,i,a}(t,e,{signal:r})},enabled:!!t})},j=n(32203),S=function(e){var t=e.row,n=e.renderedCellValue;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{alt:t.original.AppName||void 0,src:(0,j.yq)(t.original),style:{display:"inline-block",maxWidth:"1.5em",maxHeight:"1.5em",marginRight:"1rem"}}),n]})},C=n(57807),P=n(92058),D=n(5898),I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)},k=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},E=function(){var e=(0,g.gf)().api,t=w({}),n=t.data,x=t.isLoading,j=t.isRefetching,E=(0,p.useMemo)((function(){return(null==n?void 0:n.Items)||[]}),[n]),T=(0,P.y)(),L=T.usersById,N=T.names,B=T.isLoading,F=(0,l.A)(),q=k((0,p.useState)(!1),2),M=q[0],R=q[1],U=k((0,p.useState)(!1),2),V=U[0],X=U[1],J=k((0,p.useState)(),2),z=J[0],_=J[1],H=function(){var e=(0,g.gf)().api;return(0,h.n)({mutationFn:function(t){return(0,m.g)(e).deleteDevice(t)},onSuccess:function(){O.q.invalidateQueries({queryKey:[A]})}})}(),K=function(){var e=(0,g.gf)().api;return(0,h.n)({mutationFn:function(t){return(0,m.g)(e).updateDeviceOptions(t)},onSuccess:function(){O.q.invalidateQueries({queryKey:[A]})}})}(),G=x||B,Q=(0,p.useCallback)((function(e){return function(){e&&(_(e),R(!0))}}),[]),W=(0,p.useCallback)((function(){_(void 0),R(!1)}),[]),Y=(0,p.useCallback)((function(){z&&H.mutate({id:z},{onSettled:W})}),[H,W,z]),$=(0,p.useCallback)((function(){X(!0)}),[]),Z=(0,p.useCallback)((function(){X(!1)}),[]),ee=(0,p.useCallback)((function(){E&&Promise.all(E.map((function(t){return e&&t.Id&&e.deviceInfo.id===t.Id?H.mutateAsync({id:t.Id}):Promise.resolve()}))).catch((function(e){console.error("[DevicesPage] failed deleting all devices",e)})).finally((function(){Z()}))}),[e,H,E,Z]),te=function(e){return function(t){var n=t.renderedCellValue,o=t.row;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.A,{user:o.original.LastUserId&&e[o.original.LastUserId]||void 0,sx:{mr:"1rem"}}),n]})}}(L),ne=(0,p.useMemo)((function(){return[{id:"DateLastActivity",accessorFn:function(e){return e.DateLastActivity?(0,f.A)(e.DateLastActivity):void 0},header:D.Ay.translate("LastActive"),size:160,Cell:y.A,filterVariant:"datetime-range",enableEditing:!1},{id:"Name",accessorFn:function(e){return e.CustomName||e.Name},header:D.Ay.translate("LabelDevice"),size:200,Cell:S},{id:"App",accessorFn:function(e){return[e.AppName,e.AppVersion].filter((function(e){return!!e})).join(" ")},header:D.Ay.translate("LabelAppName"),size:200,enableEditing:!1},{accessorKey:"LastUserName",header:D.Ay.translate("LabelUser"),size:120,enableEditing:!1,Cell:te,filterVariant:"multi-select",filterSelectOptions:N}]}),[te,N]),re=(0,p.useMemo)((function(){return{baseBackgroundColor:F.palette.background.paper}}),[F]),oe=(0,d.Up)(I(I({},v.O),{mrtTheme:re,columns:ne,data:E,initialState:{density:"compact",pagination:{pageIndex:0,pageSize:25}},state:{isLoading:G},autoResetPageIndex:!j,enableEditing:!0,onEditingRowSave:function(e){var t,n=e.table,r=e.row,o=null===(t=e.values.Name)||void 0===t?void 0:t.trim(),i=r.original.CustomName?o!==r.original.CustomName:o!==r.original.Name;r.original.Id&&i&&K.mutate({id:r.original.Id,deviceOptionsDto:{CustomName:o||void 0}}),n.setEditingRow(null)},enableRowActions:!0,positionActionsColumn:"last",displayColumnDefOptions:{"mrt-row-actions":{header:"",size:100}},renderRowActions:function(t){var n=t.row,c=t.table,l=e&&n.original.Id&&e.deviceInfo.id===n.original.Id;return(0,r.jsxs)(a.A,{sx:{display:"flex",gap:1,"&&":{backgroundColor:"transparent !important"}},children:[(0,r.jsx)(s.A,{title:D.Ay.translate("Edit"),children:(0,r.jsx)(u.A,{onClick:function(){return c.setEditingRow(n)},children:(0,r.jsx)(i.A,{})})}),l?(0,r.jsx)(u.A,{color:"error",disabled:!0,children:(0,r.jsx)(o.A,{})}):(0,r.jsx)(s.A,{title:D.Ay.translate("Delete"),children:(0,r.jsx)(u.A,{color:"error",onClick:Q(n.original.Id),children:(0,r.jsx)(o.A,{})})})]})},renderTopToolbarCustomActions:function(){return(0,r.jsx)(c.A,{color:"error",startIcon:(0,r.jsx)(o.A,{}),onClick:$,children:D.Ay.translate("DeleteAll")})}}));return(0,r.jsxs)(v.A,{id:"devicesPage",title:D.Ay.translate("HeaderDevices"),className:"mainAnimatedPage type-interior",table:oe,children:[(0,r.jsx)(C.A,{open:M,title:D.Ay.translate("HeaderDeleteDevice"),text:D.Ay.translate("DeleteDeviceConfirmation"),onCancel:W,onConfirm:Y,confirmButtonColor:"error",confirmButtonText:D.Ay.translate("Delete")}),(0,r.jsx)(C.A,{open:V,title:D.Ay.translate("HeaderDeleteDevices"),text:D.Ay.translate("DeleteDevicesConfirmation"),onCancel:Z,onConfirm:ee,confirmButtonColor:"error",confirmButtonText:D.Ay.translate("Delete")})]})};E.displayName="DevicesPage"},57227:function(e,t,n){var r=n(62540),o=n(75487),i=(n(63696),n(9055)),a=n(81965),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};t.A=function(e){var t=e.user,n=e.sx;return(null==t?void 0:t.Id)?(0,r.jsx)(o.A,{size:"large",color:"inherit",sx:c({padding:0},n),title:t.Name||void 0,component:i.N_,to:"/dashboard/users/profile?userId=".concat(t.Id),children:(0,r.jsx)(a.A,{user:t})}):void 0}},57807:function(e,t,n){var r=n(62540),o=n(63703),i=n(62010),a=n(98756),c=n(37793),u=n(75720),l=n(9042),s=(n(63696),n(5898)),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};t.A=function(e){var t=e.confirmButtonColor,n=void 0===t?"primary":t,d=e.confirmButtonText,p=e.title,y=e.text,v=e.onCancel,b=e.onConfirm,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["confirmButtonColor","confirmButtonText","title","text","onCancel","onConfirm"]);return(0,r.jsxs)(i.A,f({onClose:v},m,{children:[(0,r.jsx)(l.A,{children:p}),(0,r.jsx)(c.A,{children:(0,r.jsx)(u.A,{sx:{whiteSpace:"pre-wrap"},children:y})}),(0,r.jsxs)(a.A,{children:[(0,r.jsx)(o.A,{variant:"text",onClick:v,children:s.Ay.translate("ButtonCancel")}),(0,r.jsx)(o.A,{color:n,onClick:b,children:d||s.Ay.translate("ButtonOk")})]})]}))}},92058:function(e,t,n){n.d(t,{k:function(){return c},y:function(){return u}});var r=n(18879),o=n(80401),i=n(69410),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},c=function(e){var t=(0,i.gf)().api;return(0,o.I)({queryKey:["Users"],queryFn:function(n){var o=n.signal;return function(e,t,n){return o=void 0,i=void 0,c=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,r.q)(e).getUsers(t,{signal:null==n?void 0:n.signal})];case 1:return[2,o.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{u(c.next(e))}catch(e){t(e)}}function r(e){try{u(c.throw(e))}catch(e){t(e)}}function u(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}u((c=c.apply(o,i||[])).next())}));var o,i,a,c}(t,e,{signal:o})},enabled:!!t})},u=function(){var e=c(),t=e.data,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["data"]),r={},o=[];return t&&t.forEach((function(e){var t=e.Id;t&&(r[t]=e),e.Name&&o.push(e.Name)})),a({users:t,usersById:r,names:o},n)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[13057],{4838:function(e,n,t){n.A={getDisplayPlayMethod:function(e){var n,t,r,a;return e.NowPlayingItem?(null!==(n=e.TranscodingInfo)&&void 0!==n&&n.IsVideoDirect||null===(t=e.TranscodingInfo)||void 0===t||!t.VideoCodec)&&null!==(r=e.TranscodingInfo)&&void 0!==r&&r.IsAudioDirect?"Remux":null!==(a=e.TranscodingInfo)&&void 0!==a&&a.IsVideoDirect?"DirectStream":"Transcode"===e.PlayState.PlayMethod?"Transcode":"DirectStream"===e.PlayState.PlayMethod||"DirectPlay"===e.PlayState.PlayMethod?"DirectPlay":void 0:null}}},8375:function(e,n,t){var r=t(62540),a=t(63703),o=t(62010),i=t(98756),s=t(37793),c=t(75720),l=t(9042),u=t(5898);t(63696),n.A=function(e){var n=e.open,t=e.title,d=e.text,f=e.onClose;return(0,r.jsxs)(o.A,{open:n,onClose:f,children:[t&&(0,r.jsx)(l.A,{children:t}),(0,r.jsx)(s.A,{children:(0,r.jsx)(c.A,{sx:{whiteSpace:"pre-wrap"},children:d})}),(0,r.jsx)(i.A,{children:(0,r.jsx)(a.A,{onClick:f,children:u.Ay.translate("ButtonGotIt")})})]})}},22147:function(e,n,t){var r=t(62540),a=t(63696),o=t(63703),i=t(62010),s=t(98756),c=t(37793),l=t(9042),u=t(57836),d=t(5898),f=t(70140);n.A=function(e){var n=e.open,t=e.title,h=e.label,v=e.helperText,y=e.initialText,m=e.onClose,p=e.confirmButtonText,g=e.onConfirm,x=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,a,o=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(a)throw a.error}}return i}((0,a.useState)(y||""),2),A=x[0],b=x[1],j=(0,a.useCallback)((function(e){b(e.target.value)}),[]),w=(0,a.useCallback)((function(){g(A),b("")}),[A,g]);return(0,r.jsxs)(i.A,{open:n,onClose:m,maxWidth:"xs",fullWidth:!0,children:[t&&(0,r.jsx)(l.A,{children:t||""}),(0,r.jsx)(c.A,{children:(0,r.jsx)(f.A,{children:(0,r.jsx)(u.A,{label:h,value:A,helperText:v,onChange:j,variant:"standard"})})}),(0,r.jsx)(s.A,{children:(0,r.jsx)(o.A,{onClick:w,children:p||d.Ay.translate("ButtonOk")})})]})}},32203:function(e,n,t){t.d(n,{Bq:function(){return c},Jd:function(){return s},yq:function(){return i}});var r=t(65369),a=t(11444),o="assets/img/devices/";function i(e){var n;switch(e.AppName||e.Client){case"Samsung Smart TV":return o+"samsungtv.svg";case"Xbox One":return o+"xbox.svg";case"Sony PS4":return o+"playstation.svg";case"Kodi":case"Kodi JellyCon":return o+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return o+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return o+"apple.svg";case"Home Assistant":return o+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return o+"webos.svg";case"Jellyfin Roku":return o+"roku.svg";case"Finamp":return o+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return o+"opera.svg";case"Chrome":case"Chrome Android":return o+"chrome.svg";case"Firefox":case"Firefox Android":return o+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return o+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return o+"edgechromium.svg";case"Edge":return o+"edge.svg";case"Internet Explorer":return o+"msie.svg";case"Titan OS":return o+"titanos.svg";case"Vega OS":return o+"firetv.svg";default:return o+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(n=e.Capabilities)||void 0===n?void 0:n.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(n){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,n)}return o+"other.svg"}}function s(e){switch(e){case r.X.Movies:return"movie";case r.X.Music:return"music_note";case r.X.Homevideos:case r.X.Photos:return"photo";case r.X.Livetv:return"live_tv";case r.X.Tvshows:return"tv";case r.X.Trailers:return"theaters";case r.X.Musicvideos:return"music_video";case r.X.Books:return"book";case r.X.Boxsets:return"video_library";case r.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function c(e,n){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"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return n}}n.Ay={getDeviceIcon:i,getLibraryIcon:s,getItemTypeIcon:c}},36645:function(e,n,t){t.d(n,{QW:function(){return A},Qp:function(){return p},Rn:function(){return m},Tj:function(){return h},a_:function(){return v},hn:function(){return u},n5:function(){return d},uA:function(){return y},w:function(){return f},zo:function(){return x}});var r=t(76942),a=t(58953),o=t(4452),i=t.n(o),s=2/3,c=16/9,l=1e3/185,u=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var n=window.screen;return!!(n&&n.availWidth-e>20)},h=function(e){return null==e?r.G8.MixedSquare:e>=1.33?r.G8.MixedBackdrop:e>.8?r.G8.MixedSquare:r.G8.MixedPortrait},v=function(e){var n;return i()(((n={card:!0})["".concat(e.shape,"Card")]=e.shape,n["".concat(e.cardCssClass)]=e.cardCssClass,n["".concat(e.cardClass)]=e.cardClass,n["card-hoverable"]=e.isDesktop,n["show-focus"]=e.isTV,n["show-animation"]=e.isTV&&e.enableFocusTransform,n.groupedCard=e.showChildCountIndicator&&e.childCount,n["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),n.itemAction="button"===e.tagName,n))},y=function(e){var n;return i()(((n={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[p(e.itemName)]=!e.imgUrl,n))},m=function(e){return i()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},p=function(e){return"defaultCardBackground defaultCardBackground".concat(g(e))},g=function(e){if(e){for(var n=Math.floor(e.length/2),t=String(e.slice(n,n+1).charCodeAt(0)),r=0,o=0;o<t.length;o++)r+=parseInt(t.charAt(o),10);return parseInt(String(r).slice(-1),10)%5+1}return(0,a.HO)(1,5)},x=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?s:-1!==e.indexOf("backdrop")?c:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?l:null:null},A=function(e,n,t,r){switch(e){case"portrait":return b(n,r);case"square":return j(n,r);case"banner":return w(n);case"backdrop":return I(n,r);case"smallBackdrop":return S(n);case"overflowSmallBackdrop":return C(n,t,r);case"overflowPortrait":return k(n,t,r);case"overflowSquare":return T(n,t,r);case"overflowBackdrop":return P(n,t,r);default:return 4}},b=function(e,n){switch(!0){case n:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},j=function(e,n){switch(!0){case n:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},w=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},I=function(e,n){switch(!0){case n:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},S=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},C=function(e,n,t){switch(!0){case t:return 100/18.9;case n&&e>=800:return 100/15.5;case n:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},k=function(e,n,t){switch(!0){case t:return 100/15.5;case n&&e>=1700:return 100/11.6;case n:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},T=function(e,n,t){switch(!0){case t:return 100/15.5;case n&&e>=1700:return 100/11.6;case n:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},P=function(e,n,t){switch(!0){case t:return 100/23.3;case n&&e>=1700:return 100/18.5;case n:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},38742:function(e,n,t){t.d(n,{Y:function(){return i}});var r=t(24698),a=t(80401),o=t(69410),i=function(e){var n=(0,o.gf)().api;return(0,a.I)({queryKey:["ActivityLogEntries",e],queryFn:function(t){var a=t.signal;return function(e,n,t){return a=void 0,o=void 0,s=function(){return function(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(a){switch(a.label){case 0:return[4,(0,r.A)(e).getLogEntries(n,{signal:null==t?void 0:t.signal})];case 1:return[2,a.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,n){function t(e){try{c(s.next(e))}catch(e){n(e)}}function r(e){try{c(s.throw(e))}catch(e){n(e)}}function c(n){var a;n.done?e(n.value):(a=n.value,a instanceof i?a:new i((function(e){e(a)}))).then(t,r)}c((s=s.apply(a,o||[])).next())}));var a,o,i,s}(n,e,{signal:a})},enabled:!!n,refetchOnMount:!1})}},42305:function(e,n,t){t.d(n,{L:function(){return c}});var r=t(8280),a=t(80401),o=t(48272),i=t(69410),s=function(e){return(0,r.j)({queryKey:["SystemInfo"],queryFn:function(n){var t=n.signal;return function(e,n){return t=void 0,r=void 0,i=function(){return function(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(t){switch(t.label){case 0:return[4,(0,o.c)(e).getSystemInfo(n)];case 1:return[2,t.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,n){function o(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,s)}c((i=i.apply(t,r||[])).next())}));var t,r,a,i}(e,{signal:t,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},c=function(){var e=(0,i.gf)().api;return(0,a.I)(s(e))}},45939:function(e,n,t){var r=t(10104);n.A=function(e){switch(e){case r.$.Information:return"info";case r.$.Warning:return"warning";case r.$.Error:case r.$.Critical:return"error"}}},57807:function(e,n,t){var r=t(62540),a=t(63703),o=t(62010),i=t(98756),s=t(37793),c=t(75720),l=t(9042),u=(t(63696),t(5898)),d=function(){return d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},d.apply(this,arguments)};n.A=function(e){var n=e.confirmButtonColor,t=void 0===n?"primary":n,f=e.confirmButtonText,h=e.title,v=e.text,y=e.onCancel,m=e.onConfirm,p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t}(e,["confirmButtonColor","confirmButtonText","title","text","onCancel","onConfirm"]);return(0,r.jsxs)(o.A,d({onClose:y},p,{children:[(0,r.jsx)(l.A,{children:h}),(0,r.jsx)(s.A,{children:(0,r.jsx)(c.A,{sx:{whiteSpace:"pre-wrap"},children:v})}),(0,r.jsxs)(i.A,{children:[(0,r.jsx)(a.A,{variant:"text",onClick:y,children:u.Ay.translate("ButtonCancel")}),(0,r.jsx)(a.A,{color:t,onClick:m,children:f||u.Ay.translate("ButtonOk")})]})]}))}},73422:function(e,n,t){t.r(n),t.d(n,{Component:function(){return on}});var r,a=t(62540),o=t(63696),i=t(65242),s=t(5898),c=t(92779),l=t(57962),u=t(28335),d=t(10822),f=t(35117),h=t(44790),v=t(60434),y=t(90158),m=t(89348),p=t(76562);!function(e){e.CDRom="CDRom",e.Fixed="Fixed",e.Network="Network",e.NoRootDirectory="NoRootDirectory",e.Ram="Ram",e.Removable="Removable",e.Unknown="Unknown"}(r||(r={}));var g=function(e){return void 0===(null==e?void 0:e.UsedSpace)||e.UsedSpace<0?-1:Math.max(0,e.FreeSpace||0)+Math.max(0,e.UsedSpace)},x=t(95326),A=t(48066),b=t(22802),j=t(13960),w=t(49107),I=function(e){switch(e.type){case r.CDRom:return(0,a.jsx)(x.A,{});case r.Network:return(0,a.jsx)(A.A,{});case r.Ram:return(0,a.jsx)(b.A,{});case r.Removable:return(0,a.jsx)(w.A,{});default:return(0,a.jsx)(j.A,{})}},S=function(e){if(e)return Object.keys(r).includes(e)?s.Ay.translate("StorageType.".concat(e)):e},C=function(e){var n,t=e.label,r=e.folder,o=void 0===(null==r?void 0:r.UsedSpace)||r.UsedSpace<0?"?":(0,p.iJ)(r.UsedSpace),i=g(r),s=i<0?"?":(0,p.iJ)(i),c=function(e){var n=g(e);if(n<=0)return 0;var t=(null==e?void 0:e.UsedSpace)||0;return Math.min(100,t/n*100)}(r),l=r?(n=c)>=90?"error":n>=80?"warning":"success":"primary";return(0,a.jsxs)(f.Ay,{children:[(0,a.jsx)(h.A,{title:S(null==r?void 0:r.StorageType),children:(0,a.jsx)(I,{type:null==r?void 0:r.StorageType})}),(0,a.jsx)(v.A,{primary:(0,a.jsx)(m.A,{component:"span",variant:"body2",children:t}),secondary:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{color:"textPrimary",sx:{paddingBottom:.5,lineBreak:"anywhere"},children:r?r.Path:(0,a.jsx)(y.A,{})}),(0,a.jsx)(d.A,{variant:r?"determinate":"indeterminate",color:l,value:c}),(0,a.jsx)(m.A,{variant:"body2",color:"textSecondary",sx:{textAlign:"end"},children:"".concat(o," / ").concat(s)})]}),slots:{secondary:"div"}})]})},k=t(63703),T=t(65090),P=t(9055),D=function(e){var n=e.title,t=e.href,r=e.children;return(0,a.jsxs)(c.A,{children:[(0,a.jsx)(k.A,{component:P.N_,to:t,variant:"text",color:"inherit",endIcon:(0,a.jsx)(T.A,{}),sx:{marginTop:1,marginBottom:1},children:(0,a.jsx)(m.A,{variant:"h3",component:"span",children:n})}),r]})},O=t(48272),M=t(8280),B=t(80401),L=t(69410),R=function(e){return(0,M.j)({queryKey:["SystemStorage"],queryFn:function(n){var t=n.signal;return function(e,n){return t=void 0,r=void 0,o=function(){return function(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(t){switch(t.label){case 0:return[4,(0,O.c)(e).getSystemStorage(n)];case 1:return[2,t.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function s(e){try{c(o.throw(e))}catch(e){n(e)}}function c(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,s)}c((o=o.apply(t,r||[])).next())}));var t,r,a,o}(e,{signal:t})},enabled:!!e,refetchOnWindowFocus:!1})},F=function(){var e,n=(e=(0,L.gf)().api,(0,B.I)(R(e))).data;return(0,a.jsx)(D,{title:s.Ay.translate("HeaderPaths"),href:"/dashboard/settings",children:(0,a.jsxs)(u.A,{sx:{bgcolor:"background.paper"},children:[(0,a.jsx)(C,{label:s.Ay.translate("LabelCache"),folder:null==n?void 0:n.CacheFolder}),(0,a.jsx)(C,{label:s.Ay.translate("LabelImageCache"),folder:null==n?void 0:n.ImageCacheFolder}),(0,a.jsx)(C,{label:s.Ay.translate("LabelProgramData"),folder:null==n?void 0:n.ProgramDataFolder}),(0,a.jsx)(C,{label:s.Ay.translate("LabelLogs"),folder:null==n?void 0:n.LogFolder}),(0,a.jsx)(C,{label:s.Ay.translate("LabelMetadata"),folder:null==n?void 0:n.InternalMetadataFolder}),(0,a.jsx)(C,{label:s.Ay.translate("LabelTranscodes"),folder:null==n?void 0:n.TranscodingTempFolder}),(0,a.jsx)(C,{label:s.Ay.translate("LabelWeb"),folder:null==n?void 0:n.WebFolder})]})})},W=t(69856),N=t(70140),U=t(67702),q=t(22487),V=t(50299),E=t(42305),G=function(e){var n=e.onScanLibrariesClick,t=e.onRestartClick,r=e.onShutdownClick,o=e.isScanning,i=(0,E.L)(),c=i.data,l=i.isPending;return(0,a.jsx)(D,{title:s.Ay.translate("TabServer"),href:"/dashboard/settings",children:(0,a.jsxs)(N.A,{spacing:2,children:[(0,a.jsx)(W.A,{sx:{padding:2},children:(0,a.jsxs)(N.A,{direction:"row",children:[(0,a.jsxs)(N.A,{flexGrow:1,spacing:1,children:[(0,a.jsx)(m.A,{fontWeight:"bold",children:s.Ay.translate("LabelServerName")}),(0,a.jsx)(m.A,{fontWeight:"bold",children:s.Ay.translate("LabelServerVersion")}),(0,a.jsx)(m.A,{fontWeight:"bold",children:s.Ay.translate("LabelWebVersion")}),(0,a.jsx)(m.A,{fontWeight:"bold",children:s.Ay.translate("LabelBuildVersion")})]}),(0,a.jsx)(N.A,{flexGrow:5,spacing:1,children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.A,{}),(0,a.jsx)(y.A,{}),(0,a.jsx)(y.A,{}),(0,a.jsx)(y.A,{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{children:null==c?void 0:c.ServerName}),(0,a.jsx)(m.A,{children:null==c?void 0:c.Version}),(0,a.jsx)(m.A,{children:"10.11.6"}),(0,a.jsx)(m.A,{children:"Release"})]})})]})}),(0,a.jsxs)(N.A,{direction:"row",spacing:1.5,children:[(0,a.jsx)(k.A,{onClick:n,startIcon:(0,a.jsx)(U.A,{}),sx:{fontWeight:"bold"},disabled:o,children:s.Ay.translate("ButtonScanAllLibraries")}),(0,a.jsx)(k.A,{onClick:t,startIcon:(0,a.jsx)(q.A,{}),color:"error",sx:{fontWeight:"bold"},children:s.Ay.translate("Restart")}),(0,a.jsx)(k.A,{onClick:r,startIcon:(0,a.jsx)(V.A,{}),color:"error",sx:{fontWeight:"bold"},children:s.Ay.translate("ButtonShutdown")})]})]})})},H=t(50501),J=t(69018),K=t(73828),_=t(20558),X=t(93721),Y=t(45939),Q=t(10104),$=t(95858),z=function(e){var n=e.item,t=e.displayShortOverview,r=e.to,i=(0,o.useMemo)((function(){return n.Date?(0,_.A)(Date.parse(n.Date),Date.now(),{locale:(0,X.JK)()}):"N/A"}),[n]);return(0,a.jsx)(f.Ay,{disablePadding:!0,children:(0,a.jsxs)($.A,{to:r,children:[(0,a.jsx)(K.A,{children:(0,a.jsx)(J.A,{sx:{bgcolor:(0,Y.A)(n.Severity||Q.$.Information)+".main"},children:(0,a.jsx)(H.A,{sx:{color:"#fff"}})})}),(0,a.jsx)(v.A,{primary:(0,a.jsx)(m.A,{sx:{whiteSpace:"pre-wrap"},children:n.Name}),secondary:(0,a.jsxs)(N.A,{children:[(0,a.jsx)(m.A,{sx:{textOverflow:"ellipsis",overflow:"hidden"},variant:"body1",color:"text.secondary",children:i}),t&&(0,a.jsx)(m.A,{sx:{textOverflow:"ellipsis",overflow:"hidden"},variant:"body1",color:"text.secondary",children:n.ShortOverview})]}),disableTypography:!0})]})})},Z=t(38742),ee=t(34630),ne=function(){var e,n=(0,o.useMemo)((function(){return(0,ee.A)(new Date,86400).toISOString()}),[]),t=(0,Z.Y)({startIndex:0,limit:7,minDate:n,hasUserId:!0}),r=t.data,i=t.isPending;return(0,a.jsx)(D,{title:s.Ay.translate("HeaderActivity"),href:"/dashboard/activity?useractivity=true",children:i?(0,a.jsxs)(N.A,{spacing:2,children:[(0,a.jsx)(y.A,{variant:"rounded",height:60}),(0,a.jsx)(y.A,{variant:"rounded",height:60}),(0,a.jsx)(y.A,{variant:"rounded",height:60}),(0,a.jsx)(y.A,{variant:"rounded",height:60})]}):(0,a.jsx)(u.A,{sx:{bgcolor:"background.paper"},children:null===(e=null==r?void 0:r.Items)||void 0===e?void 0:e.map((function(e){return(0,a.jsx)(z,{item:e,displayShortOverview:!0,to:"/dashboard/activity?useractivity=true"},e.Id)}))})})},te=function(){var e,n,t=(0,o.useMemo)((function(){return(0,ee.A)(new Date,604800).toISOString()}),[]),r=(0,Z.Y)({startIndex:0,limit:4,minDate:t,hasUserId:!1}),i=r.data;return r.isPending||0===(null===(e=null==i?void 0:i.Items)||void 0===e?void 0:e.length)?null:(0,a.jsx)(D,{title:s.Ay.translate("Alerts"),href:"/dashboard/activity?useractivity=false",children:(0,a.jsx)(u.A,{sx:{bgcolor:"background.paper"},children:null===(n=null==i?void 0:i.Items)||void 0===n?void 0:n.map((function(e){return(0,a.jsx)(z,{item:e,displayShortOverview:!1,to:"/dashboard/activity?useractivity=false"},e.Id)}))})})},re=t(38596),ae=t(57807),oe=t(54861),ie=t(50909),se=t(13478),ce=function(e){var n=e.tasks,t=(0,o.useMemo)((function(){return(null==n?void 0:n.filter((function(e){return e.State==ie.D.Running})))||[]}),[n]);return 0==t.length?null:(0,a.jsx)(D,{title:s.Ay.translate("HeaderRunningTasks"),href:"/dashboard/tasks",children:(0,a.jsx)(W.A,{sx:{padding:2},children:(0,a.jsx)(N.A,{spacing:2,maxWidth:"330px",children:t.map((function(e){return(0,a.jsxs)(c.A,{children:[(0,a.jsx)(m.A,{children:e.Name}),(0,a.jsx)(se.A,{task:e})]},e.Id)}))})})})},le=t(13786),ue=t(47587),de=t(32203),fe=t(23648),he=t(80096),ve=t(67430),ye=t(98320),me=t(64680),pe=t(36300),ge=t(36645),xe=t(30032),Ae=t(2066),be=t(37631),je=t(7729),we=t(37745),Ie=t(68569),Se=t(75487),Ce=t(8375),ke=t(4838),Te=t(61432),Pe=t(59225),De=t(22147),Oe=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,a,o=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(a)throw a.error}}return i},Me=function(e){var n,t,r,i,c,l=e.device,u=Oe((0,o.useState)(""),2),f=u[0],h=u[1],v=Oe((0,o.useState)(""),2),y=v[0],p=v[1],g=Oe((0,o.useState)(!1),2),x=g[0],A=g[1],b=Oe((0,o.useState)(!1),2),j=b[0],w=b[1],I=(c=(0,L.gf)().api,(0,re.n)({mutationFn:function(e){return(0,Te.v)(c).sendMessageCommand(e)}})),S=function(){var e=(0,L.gf)().api;return(0,re.n)({mutationFn:function(n){return(0,Te.v)(e).sendPlaystateCommand(n)}})}(),C=(0,o.useCallback)((function(){l.Id&&S.mutate({sessionId:l.Id,command:Pe.t.PlayPause})}),[l,S]),k=(0,o.useCallback)((function(){l.Id&&S.mutate({sessionId:l.Id,command:Pe.t.Stop})}),[l,S]),T=(0,o.useCallback)((function(e){l.Id&&(I.mutate({sessionId:l.Id,messageCommand:{Text:e,TimeoutMs:5e3}}),w(!1))}),[I,l]),P=(0,o.useCallback)((function(){w(!0)}),[]),D=(0,o.useCallback)((function(){w(!1)}),[]),O=(0,o.useCallback)((function(){A(!1)}),[]),M=(0,o.useCallback)((function(){var e;switch(ke.A.getDisplayPlayMethod(l)){case"Remux":h(s.Ay.translate("Remuxing")),p(s.Ay.translate("RemuxHelp1")+"\n"+s.Ay.translate("RemuxHelp2"));break;case"DirectStream":h(s.Ay.translate("DirectStreaming")),p(s.Ay.translate("DirectStreamHelp1")+"\n"+s.Ay.translate("DirectStreamHelp2"));break;case"DirectPlay":h(s.Ay.translate("DirectPlaying")),p(s.Ay.translate("DirectPlayHelp"));break;case"Transcode":var n=null===(e=l.TranscodingInfo)||void 0===e?void 0:e.TranscodeReasons,t=(null==n?void 0:n.map((function(e){return s.Ay.translate(e)})))||[];h(s.Ay.translate("Transcoding")),p(s.Ay.translate("MediaIsBeingConverted")+"\n\n"+function(e){var n,t="",r=!1,a=ke.A.getDisplayPlayMethod(e);if("DirectPlay"===a?t+=s.Ay.translate("DirectPlaying"):"Remux"===a?t+=s.Ay.translate("Remuxing"):"DirectStream"===a?t+=s.Ay.translate("DirectStreaming"):"Transcode"===a&&((null===(n=e.TranscodingInfo)||void 0===n?void 0:n.Framerate)&&(t+="".concat(s.Ay.translate("Framerate"),": ").concat(e.TranscodingInfo.Framerate,"fps")),r=!0),r){var o=[];e.TranscodingInfo&&(e.TranscodingInfo.Bitrate&&(e.TranscodingInfo.Bitrate>1e6?o.push((e.TranscodingInfo.Bitrate/1e6).toFixed(1)+" Mbps"):o.push(Math.floor(e.TranscodingInfo.Bitrate/1e3)+" Kbps")),e.TranscodingInfo.Container&&o.push(e.TranscodingInfo.Container.toUpperCase()),e.TranscodingInfo.VideoCodec&&o.push(e.TranscodingInfo.VideoCodec.toUpperCase()),e.TranscodingInfo.AudioCodec&&e.TranscodingInfo.AudioCodec!==e.TranscodingInfo.Container&&o.push(e.TranscodingInfo.AudioCodec.toUpperCase())),o.length&&(t+="\n\n"+o.join(" "))}return t}(l)+"\n\n"+s.Ay.translate("LabelReasonForTranscoding")+"\n"+t.join("\n"))}A(!0)}),[l]),B=(0,o.useMemo)((function(){return function(e){var n,t,r="",a=e.NowPlayingItem;if(!a)return{bottomText:s.Ay.translate("LastSeen",(0,he.A)(Date.parse(e.LastActivityDate),(0,X.OE)()))};var o=fe.Ay.getDisplayName(a),i="";return(null===(n=a.Artists)||void 0===n?void 0:n.length)?(i=o,o=a.Artists[0]):a.SeriesName||a.Album?(i=o,o=a.SeriesName||a.Album):a.ProductionYear&&(i=a.ProductionYear.toString()),(null===(t=a.ImageTags)||void 0===t?void 0:t.Logo)?r=ve.tF.getApiClient(e.ServerId).getScaledImageUrl(a.Id,{tag:a.ImageTags.Logo,maxHeight:24,maxWidth:130,type:"Logo"}):a.ParentLogoImageTag&&(r=ve.tF.getApiClient(e.ServerId).getScaledImageUrl(a.ParentLogoItemId,{tag:a.ParentLogoImageTag,maxHeight:24,maxWidth:130,type:"Logo"})),{topText:o,bottomText:i,image:r}}(l)}),[l]),R=(0,o.useMemo)((function(){return l.NowPlayingItem&&function(e){var n,t;if(!e.ServerId)return null;var r=ve.tF.getApiClient(e.ServerId);if((null===(n=null==e?void 0:e.BackdropImageTags)||void 0===n?void 0:n.length)&&e.Id)return r.getScaledImageUrl(e.Id,{maxWidth:Math.round(.2*pe.Ay.getScreenWidth()),type:me.y.Backdrop,tag:e.BackdropImageTags[0]});if((null===(t=null==e?void 0:e.ParentBackdropImageTags)||void 0===t?void 0:t.length)&&e.ParentBackdropItemId)return r.getScaledImageUrl(e.ParentBackdropItemId,{maxWidth:Math.round(.2*pe.Ay.getScreenWidth()),type:me.y.Backdrop,tag:e.ParentBackdropImageTags[0]});var a=(null==e?void 0:e.ImageTags)||{};return(null==e?void 0:e.Id)&&a.Thumb?r.getScaledImageUrl(e.Id,{maxWidth:Math.round(.2*pe.Ay.getScreenWidth()),type:me.y.Thumb,tag:a.Thumb}):(null==e?void 0:e.ParentThumbImageTag)&&e.ParentThumbItemId?r.getScaledImageUrl(e.ParentThumbItemId,{maxWidth:Math.round(.2*pe.Ay.getScreenWidth()),type:me.y.Thumb,tag:e.ParentThumbImageTag}):(null==e?void 0:e.Id)&&a.Primary?r.getScaledImageUrl(e.Id,{maxWidth:Math.round(.2*pe.Ay.getScreenWidth()),type:me.y.Primary,tag:a.Primary}):(null==e?void 0:e.AlbumPrimaryImageTag)&&e.AlbumId?r.getScaledImageUrl(e.AlbumId,{maxWidth:Math.round(.2*pe.Ay.getScreenWidth()),type:me.y.Primary,tag:e.AlbumPrimaryImageTag}):null}(l.NowPlayingItem)}),[l]),F=(0,o.useMemo)((function(){return function(e){var n,t=e.NowPlayingItem,r="0:00",a="0:00";return t&&((null===(n=e.PlayState)||void 0===n?void 0:n.PositionTicks)&&(r=ye.Ay.getDisplayRunningTime(e.PlayState.PositionTicks)),t.RunTimeTicks&&(a=ye.Ay.getDisplayRunningTime(t.RunTimeTicks))),{start:r,end:a}}(l)}),[l]),W=(0,o.useMemo)((function(){return(0,de.yq)(l)}),[l]),U=l.ServerId&&l.SupportsRemoteControl,q=!!l.NowPlayingItem;return(0,a.jsxs)(le.A,{sx:{width:{xs:"100%",sm:"360px"}},children:[(0,a.jsx)(De.A,{open:j,onClose:D,title:s.Ay.translate("HeaderSendMessage"),label:s.Ay.translate("LabelMessageText"),confirmButtonText:s.Ay.translate("ButtonSend"),onConfirm:T}),(0,a.jsx)(Ce.A,{open:x,title:f,text:y,onClose:O}),(0,a.jsx)(ue.A,{sx:{height:200,display:"flex"},className:(0,ge.Qp)(l.Id),image:R||void 0,children:(0,a.jsxs)(N.A,{justifyContent:"space-between",flexGrow:1,sx:{backgroundColor:R?"rgba(0, 0, 0, 0.7)":null,padding:2},children:[(0,a.jsxs)(N.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)("img",{src:W,style:{maxWidth:"2.5em",maxHeight:"2.5em"},alt:l.DeviceName||""}),(0,a.jsxs)(N.A,{children:[(0,a.jsx)(m.A,{children:l.DeviceName}),(0,a.jsx)(m.A,{children:l.Client+" "+l.ApplicationVersion})]})]}),(0,a.jsxs)(N.A,{direction:"row",alignItems:"end",children:[(0,a.jsxs)(N.A,{flexGrow:1,children:[B.image?(0,a.jsx)("img",{src:B.image,style:{maxHeight:"24px",maxWidth:"130px",alignSelf:"flex-start"},alt:"Media Icon"}):(0,a.jsx)(m.A,{children:B.topText}),(0,a.jsx)(m.A,{children:B.bottomText})]}),l.NowPlayingItem&&(0,a.jsxs)(m.A,{children:[F.start," / ",F.end]})]})]})}),null!=(null===(n=l.PlayState)||void 0===n?void 0:n.PositionTicks)&&null!=(null===(t=l.NowPlayingItem)||void 0===t?void 0:t.RunTimeTicks)&&(0,a.jsx)(d.A,{variant:"buffer",value:l.PlayState.PositionTicks/l.NowPlayingItem.RunTimeTicks*100,valueBuffer:(null===(r=l.TranscodingInfo)||void 0===r?void 0:r.CompletionPercentage)||0,sx:{"& .MuiLinearProgress-dashed":{animation:"none",backgroundImage:"none",backgroundColor:"background.paper"},"& .MuiLinearProgress-bar2":{backgroundColor:"#dd4919"}}}),(0,a.jsx)(Ie.A,{disableSpacing:!0,children:(0,a.jsxs)(N.A,{direction:"row",flexGrow:1,justifyContent:"center",children:[U&&q&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Se.A,{onClick:C,children:(null===(i=l.PlayState)||void 0===i?void 0:i.IsPaused)?(0,a.jsx)(Ae.A,{}):(0,a.jsx)(be.A,{})}),(0,a.jsx)(Se.A,{onClick:k,children:(0,a.jsx)(je.A,{})})]}),q&&(0,a.jsx)(Se.A,{onClick:M,children:(0,a.jsx)(we.A,{})}),U&&(0,a.jsx)(Se.A,{onClick:P,children:(0,a.jsx)(xe.A,{})})]})}),l.UserName&&(0,a.jsx)(N.A,{direction:"row",flexGrow:1,justifyContent:"center",sx:{paddingBottom:2},children:(0,a.jsx)(m.A,{children:l.UserName})})]})},Be=t(10749),Le=t(10736),Re=t(44797),Fe="Sessions",We=function(e){var n=(0,L.gf)().api;return(0,B.I)({queryKey:[Fe,e],queryFn:function(t){var r=t.signal;return function(e,n,t){return r=void 0,a=void 0,i=function(){return function(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,Te.v)(e).getSessions(n,{signal:null==t?void 0:t.signal})];case 1:return[2,r.sent().data]}}))},new((o=void 0)||(o=Promise))((function(e,n){function t(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(n){var r;n.done?e(n.value):(r=n.value,r instanceof o?r:new o((function(e){e(r)}))).then(t,s)}c((i=i.apply(r,a||[])).next())}));var r,a,o,i}(n,e,{signal:r})},enabled:!!n,refetchOnWindowFocus:!1})},Ne=t(31297),Ue=t(34401),qe={activeWithinSeconds:960},Ve=function(){var e=(0,L.gf)().__legacyApiClient__,n=We(qe),t=(0,o.useCallback)((function(e){var n,t,r=function(e){void 0===e&&(e=[]);var n=(0,ee.A)(new Date,95);return e.filter((function(e){return!!e.LastActivityDate&&!!((0,Ue.A)(e.LastActivityDate)>=n&&(e.NowPlayingItem||e.UserId))}))}(e),a=Ne.q.getQueryData([Fe,qe]);if(a){var o=function(e,n,t){if(t||2===arguments.length)for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,a,o=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(a)throw a.error}}return i}(a),!1),i=function(e){var n=o.findIndex((function(n){return n.DeviceId===e.DeviceId}));-1==n?o.push(e):o[n]=e};try{for(var s=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),c=s.next();!c.done;c=s.next())i(c.value)}catch(e){n={error:e}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(n)throw n.error}}return o}return r}),[]);return(0,o.useEffect)((function(){var n=function(e,n,r){Ne.q.setQueryData([Fe,qe],t(r))};return null==e||e.sendMessage(Be.Y.SessionsStart,"0,1500"),Re.A.on(Le.default,Be.Y.Sessions,n),function(){null==e||e.sendMessage(Be.Y.SessionsStop,null),Re.A.off(Le.default,Be.Y.Sessions,n)}}),[]),n},Ee=function(){var e=Ve().data;return(0,a.jsx)(D,{title:s.Ay.translate("HeaderDevices"),href:"/dashboard/devices",children:(0,a.jsx)(N.A,{direction:"row",flexWrap:"wrap",gap:2,children:null==e?void 0:e.map((function(e){return(0,a.jsx)(Me,{device:e},e.Id)}))})})},Ge=t(22204),He=t(94200),Je=t(3889),Ke=t(46550),_e=t(66563),Xe=t(42663),Ye=t(53455),Qe=t(71857),$e=function(e,n){return(0,M.j)({queryKey:["ItemCounts",n],queryFn:function(t){var r=t.signal;return function(e,n,t){return r=void 0,a=void 0,i=function(){return function(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,Qe.Q)(e).getItemCounts(n,t)];case 1:return[2,r.sent().data]}}))},new((o=void 0)||(o=Promise))((function(e,n){function t(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(n){var r;n.done?e(n.value):(r=n.value,r instanceof o?r:new o((function(e){e(r)}))).then(t,s)}c((i=i.apply(r,a||[])).next())}));var r,a,o,i}(e,n,{signal:r})},enabled:!!e,refetchOnWindowFocus:!1})},ze=t(41906),Ze=t(58953),en=function(e){var n=e.metrics,t=e.Icon,r=(0,ze.Y)().dateTimeLocale;return(0,a.jsx)(le.A,{sx:{display:"flex",alignItems:"center",height:"100%"},children:(0,a.jsxs)(N.A,{direction:"row",sx:{width:"100%",padding:2,justifyContent:"space-between",alignItems:"center"},children:[n.map((function(e){var n=e.label,t=e.value;return(0,a.jsxs)(c.A,{children:[(0,a.jsx)(m.A,{variant:"body2",color:"text.secondary",children:n}),(0,a.jsx)(m.A,{variant:"h5",component:"div",children:void 0!==t?(0,Ze.WZ)(t,r):(0,a.jsx)(y.A,{})})]},n)})),(0,a.jsx)(t,{fontSize:"large"})]})})},nn=function(){return nn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},nn.apply(this,arguments)},tn=[{Icon:Je.A,metrics:[{key:"MovieCount",i18n:"Movies"}]},{Icon:Xe.A,metrics:[{key:"SeriesCount",i18n:"Series"},{key:"EpisodeCount",i18n:"Episodes"}]},{Icon:Ke.A,metrics:[{key:"AlbumCount",i18n:"Albums"},{key:"SongCount",i18n:"Songs"}]},{Icon:_e.A,metrics:[{key:"MusicVideoCount",i18n:"MusicVideos"}]},{Icon:He.A,metrics:[{key:"BookCount",i18n:"Books"}]},{Icon:Ye.A,metrics:[{key:"BoxSetCount",i18n:"Collections"}]}],rn=function(){var e,n=(e=(0,L.gf)().api,(0,B.I)($e(e,undefined))),t=n.data,r=n.isPending,i=(0,o.useMemo)((function(){return tn.filter((function(e){return r||e.metrics.some((function(e){var n=e.key;return null==t?void 0:t[n]}))})).map((function(e){return{Icon:e.Icon,metrics:e.metrics.map((function(e){var n=e.i18n,r=e.key;return{label:s.Ay.translate(n),value:null==t?void 0:t[r]}}))}}))}),[t,r]);return(0,a.jsx)(c.A,{children:(0,a.jsx)(l.Ay,{container:!0,spacing:2,sx:{alignItems:"stretch"},children:i.map((function(e){return(0,a.jsx)(l.Ay,{item:!0,xs:12,sm:6,lg:4,children:(0,a.jsx)(en,nn({},e))},e.metrics.map((function(e){return e.label})).join("-"))}))})})},an=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,a,o=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(a)throw a.error}}return i},on=function(){var e,n=an((0,o.useState)(!1),2),t=n[0],r=n[1],u=an((0,o.useState)(!1),2),d=u[0],f=u[1],h=(0,Ge.V)(),v=(e=(0,L.gf)().api,(0,re.n)({mutationFn:function(){return(0,O.c)(e).restartApplication()}})),y=function(){var e=(0,L.gf)().api;return(0,re.n)({mutationFn:function(){return(0,O.c)(e).shutdownApplication()}})}(),m=(0,oe.A)({isHidden:!1}).data,p=(0,o.useMemo)((function(){return null==m?void 0:m.find((function(e){return"RefreshLibrary"===e.Key}))}),[m]),g=(0,o.useCallback)((function(){r(!0)}),[]),x=(0,o.useCallback)((function(){r(!1)}),[]),A=(0,o.useCallback)((function(){f(!0)}),[]),b=(0,o.useCallback)((function(){f(!1)}),[]),j=(0,o.useCallback)((function(){var e=null==m?void 0:m.find((function(e){return"RefreshLibrary"===e.Key}));(null==e?void 0:e.Id)&&h.mutate({taskId:e.Id})}),[h,m]),w=(0,o.useCallback)((function(){v.mutate(),r(!1)}),[v]),I=(0,o.useCallback)((function(){y.mutate(),f(!1)}),[y]);return(0,a.jsxs)(i.A,{id:"dashboardPage",title:s.Ay.translate("TabDashboard"),className:"mainAnimatedPage type-interior",children:[(0,a.jsx)(ae.A,{open:t,title:s.Ay.translate("Restart"),text:s.Ay.translate("MessageConfirmRestart"),onConfirm:w,onCancel:x,confirmButtonText:s.Ay.translate("Restart"),confirmButtonColor:"error"}),(0,a.jsx)(ae.A,{open:d,title:s.Ay.translate("ButtonShutdown"),text:s.Ay.translate("MessageConfirmShutdown"),onConfirm:I,onCancel:b,confirmButtonText:s.Ay.translate("ButtonShutdown"),confirmButtonColor:"error"}),(0,a.jsx)(c.A,{className:"content-primary",children:(0,a.jsxs)(l.Ay,{container:!0,spacing:3,children:[(0,a.jsx)(l.Ay,{item:!0,xs:12,md:7,lg:7,xl:6,children:(0,a.jsxs)(N.A,{spacing:3,children:[(0,a.jsx)(G,{onScanLibrariesClick:j,onRestartClick:g,onShutdownClick:A,isScanning:(null==p?void 0:p.State)!==ie.D.Idle}),(0,a.jsx)(rn,{}),(0,a.jsx)(ce,{tasks:m}),(0,a.jsx)(Ee,{})]})}),(0,a.jsx)(l.Ay,{item:!0,xs:12,md:5,lg:5,xl:3,children:(0,a.jsx)(ne,{})}),(0,a.jsx)(l.Ay,{item:!0,xs:12,md:6,lg:12,xl:3,children:(0,a.jsxs)(N.A,{spacing:3,children:[(0,a.jsx)(te,{}),(0,a.jsx)(F,{})]})})]})})]})};on.displayName="DashboardPage"},76562:function(e,n,t){function r(e){return new Promise((function(n,t){var r=new FileReader;r.onload=function(e){var t,r,a,o=null===(a=null===(r=null===(t=e.target)||void 0===t?void 0:t.result)||void 0===r?void 0:r.split)||void 0===a?void 0:a.call(r,",")[1];n(o)},r.onerror=t,r.readAsDataURL(e)}))}function a(e){return new Promise((function(n,t){var r=new FileReader;r.onload=function(e){var t,r=null===(t=e.target)||void 0===t?void 0:t.result;n(r)},r.onerror=t,r.readAsText(e)}))}function o(e,n){void 0===n&&(n=1);var t=Math.log(e)/Math.log(1024)|0;return(e/Math.pow(1024,t)).toFixed(n)+" "+(t?"KMGTPEZY"[--t]+"iB":"Bytes")}t.d(n,{Qv:function(){return a},We:function(){return r},iJ:function(){return o}})},76942:function(e,n,t){var r;function a(e){return void 0===e&&(e=!0),e?r.SquareOverflow:r.Square}function o(e){return void 0===e&&(e=!0),e?r.BackdropOverflow:r.Backdrop}function i(e){return void 0===e&&(e=!0),e?r.PortraitOverflow:r.Portrait}t.d(n,{G8:function(){return r},UI:function(){return o},xK:function(){return i},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(r||(r={}))}}]);
package/www/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="preload" dir="ltr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"><link rel="manifest" href="manifest.json"><meta name="format-detection" content="telephone=no"><meta name="msapplication-tap-highlight" content="no"><meta http-equiv="X-UA-Compatibility" content="IE=Edge"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Jellyfin"><meta name="robots" content="noindex, nofollow, noarchive"><meta name="referrer" content="no-referrer"><meta id="themeColor" name="theme-color" content="#202020"><link rel="apple-touch-icon" sizes="180x180" href="touchicon.f5bbb798cb2c65908633.png"><link rel="shortcut icon" href="favicon.bc8d51405ec040305a87.ico"><meta name="msapplication-TileImage" content="touchicon144.39209dd2362c0db7c673.png"><meta name="msapplication-TileColor" content="#333333"><title>Jellyfin</title><style>.backgroundContainer-transparent:not(.withBackdrop),.transparentDocument{background:0 0!important;background-color:transparent!important}.layout-tv .mouseIdle,.layout-tv .mouseIdle a,.layout-tv .mouseIdle button,.layout-tv .mouseIdle input,.layout-tv .mouseIdle label,.layout-tv .mouseIdle select,.layout-tv .mouseIdle textarea,.screensaver-noScroll.mouseIdle,.screensaver-noScroll.mouseIdle a,.screensaver-noScroll.mouseIdle button,.screensaver-noScroll.mouseIdle input,.screensaver-noScroll.mouseIdle label,.screensaver-noScroll.mouseIdle select,.screensaver-noScroll.mouseIdle textarea,.transparentDocument .mouseIdle,.transparentDocument .mouseIdle a,.transparentDocument .mouseIdle button,.transparentDocument .mouseIdle input,.transparentDocument .mouseIdle label,.transparentDocument .mouseIdle select,.transparentDocument .mouseIdle textarea{cursor:none!important}.preload{background-color:#101010}.hide,.layout-desktop .hide-desktop,.layout-mobile .hide-mobile,.layout-tv .hide-tv,.mouseIdle .hide-mouse-idle,.mouseIdle-tv .hide-mouse-idle-tv{display:none!important}.mainDrawerHandle{position:fixed;top:0;bottom:0;z-index:1;width:.8em;padding-left:env(safe-area-inset-left);caret-color:transparent}[dir=ltr] .mainDrawerHandle{left:0}[dir=rtl] .mainDrawerHandle{left:0}</style><script defer="defer" src="runtime.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40jellyfin.sdk.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40mui.material.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40mui.system.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40mui.utils.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40mui.icons-material.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40tanstack.query-core.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.date-fns.esm.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.lodash-es.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.react-transition-group.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.core-js.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40popperjs.core.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.axios.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.react-dom.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.jquery.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.webcomponents.js.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.resize-observer-polyfill.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.regenerator-runtime.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.jellyfin-apiclient.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.intersection-observer.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.history.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.dompurify.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.react-router.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.react-router-dom.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.%40remix-run.router.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="node_modules.abortcontroller-polyfill.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="46967.bundle.js?6e9b465276cec63eef0e"></script><script src="../tizen-adapter.js"></script><script>window.appMode='cordova';</script><script src="../tizen.js" defer=""></script><script src="https://cdn.jsdelivr.net/gh/jumoog/intro-skipper/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js" defer=""></script><script defer="" src="main.jellyfin.bundle.js?6e9b465276cec63eef0e"></script><script defer="defer" src="serviceworker.js?6e9b465276cec63eef0e"></script><link href="46967.03edf3bb7ee048ee10be.css?6e9b465276cec63eef0e" rel="stylesheet"><link href="main.jellyfin.9c6fd4f27ea6ac4a6d6f.css?6e9b465276cec63eef0e" rel="stylesheet"><meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: file: filesystem: ws: wss:;"></head><body dir="ltr"><div id="reactRoot"><div class="splashLogo"></div></div></body></html>
1
+ <!DOCTYPE html><html class="preload" dir="ltr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"><link rel="manifest" href="manifest.json"><meta name="format-detection" content="telephone=no"><meta name="msapplication-tap-highlight" content="no"><meta http-equiv="X-UA-Compatibility" content="IE=Edge"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Jellyfin"><meta name="robots" content="noindex, nofollow, noarchive"><meta name="referrer" content="no-referrer"><meta id="themeColor" name="theme-color" content="#202020"><link rel="apple-touch-icon" sizes="180x180" href="touchicon.f5bbb798cb2c65908633.png"><link rel="shortcut icon" href="favicon.bc8d51405ec040305a87.ico"><meta name="msapplication-TileImage" content="touchicon144.39209dd2362c0db7c673.png"><meta name="msapplication-TileColor" content="#333333"><title>Jellyfin</title><style>.backgroundContainer-transparent:not(.withBackdrop),.transparentDocument{background:0 0!important;background-color:transparent!important}.layout-tv .mouseIdle,.layout-tv .mouseIdle a,.layout-tv .mouseIdle button,.layout-tv .mouseIdle input,.layout-tv .mouseIdle label,.layout-tv .mouseIdle select,.layout-tv .mouseIdle textarea,.screensaver-noScroll.mouseIdle,.screensaver-noScroll.mouseIdle a,.screensaver-noScroll.mouseIdle button,.screensaver-noScroll.mouseIdle input,.screensaver-noScroll.mouseIdle label,.screensaver-noScroll.mouseIdle select,.screensaver-noScroll.mouseIdle textarea,.transparentDocument .mouseIdle,.transparentDocument .mouseIdle a,.transparentDocument .mouseIdle button,.transparentDocument .mouseIdle input,.transparentDocument .mouseIdle label,.transparentDocument .mouseIdle select,.transparentDocument .mouseIdle textarea{cursor:none!important}.preload{background-color:#101010}.hide,.layout-desktop .hide-desktop,.layout-mobile .hide-mobile,.layout-tv .hide-tv,.mouseIdle .hide-mouse-idle,.mouseIdle-tv .hide-mouse-idle-tv{display:none!important}.mainDrawerHandle{position:fixed;top:0;bottom:0;z-index:1;width:.8em;padding-left:env(safe-area-inset-left);caret-color:transparent}[dir=ltr] .mainDrawerHandle{left:0}[dir=rtl] .mainDrawerHandle{left:0}</style><script defer="defer" src="runtime.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40jellyfin.sdk.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40mui.material.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40mui.system.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40mui.utils.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40mui.icons-material.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40tanstack.query-core.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.date-fns.esm.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.lodash-es.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.react-transition-group.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.core-js.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40popperjs.core.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.axios.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.react-dom.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.jquery.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.webcomponents.js.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.resize-observer-polyfill.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.regenerator-runtime.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.jellyfin-apiclient.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.intersection-observer.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.history.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.dompurify.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.react-router.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.react-router-dom.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.%40remix-run.router.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="node_modules.abortcontroller-polyfill.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="46967.bundle.js?0e1f46131828fd2b8849"></script><script src="../tizen-adapter.js"></script><script>window.appMode='cordova';</script><script src="../tizen.js" defer=""></script><script src="https://cdn.jsdelivr.net/gh/jumoog/intro-skipper/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js" defer=""></script><script defer="" src="main.jellyfin.bundle.js?0e1f46131828fd2b8849"></script><script defer="defer" src="serviceworker.js?0e1f46131828fd2b8849"></script><link href="46967.03edf3bb7ee048ee10be.css?0e1f46131828fd2b8849" rel="stylesheet"><link href="main.jellyfin.7eaf27d20464cbe82c37.css?0e1f46131828fd2b8849" rel="stylesheet"><meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: file: filesystem: ws: wss:;"></head><body dir="ltr"><div id="reactRoot"><div class="splashLogo"></div></div></body></html>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1831,28312,30657,40248,91068,96084],{13478:function(e,t,r){var n=r(62540),a=(r(63696),r(92779)),i=r(10822),o=r(89348);t.A=function(e){var t=e.task.CurrentProgressPercentage;return(0,n.jsx)(a.A,{sx:{display:"flex",alignItems:"center",height:"1.2rem",mr:2,minWidth:"170px"},children:null!=t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{sx:{width:"100%",mr:1},children:(0,n.jsx)(i.A,{variant:"determinate",value:t})}),(0,n.jsx)(a.A,{children:(0,n.jsx)(o.A,{variant:"body1",children:"".concat(Math.round(t),"%")})})]}):(0,n.jsx)(a.A,{sx:{width:"100%"},children:(0,n.jsx)(i.A,{})})})}},22147:function(e,t,r){var n=r(62540),a=r(63696),i=r(63703),o=r(62010),l=r(98756),s=r(37793),c=r(9042),u=r(57836),d=r(5898),f=r(70140);t.A=function(e){var t=e.open,r=e.title,y=e.label,v=e.helperText,m=e.initialText,h=e.onClose,p=e.confirmButtonText,b=e.onConfirm,g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}((0,a.useState)(m||""),2),A=g[0],x=g[1],w=(0,a.useCallback)((function(e){x(e.target.value)}),[]),S=(0,a.useCallback)((function(){b(A),x("")}),[A,b]);return(0,n.jsxs)(o.A,{open:t,onClose:h,maxWidth:"xs",fullWidth:!0,children:[r&&(0,n.jsx)(c.A,{children:r||""}),(0,n.jsx)(s.A,{children:(0,n.jsx)(f.A,{children:(0,n.jsx)(u.A,{label:y,value:A,helperText:v,onChange:w,variant:"standard"})})}),(0,n.jsx)(l.A,{children:(0,n.jsx)(i.A,{onClick:S,children:p||d.Ay.translate("ButtonOk")})})]})}},22204:function(e,t,r){r.d(t,{V:function(){return s}});var n=r(53875),a=r(38596),i=r(69410),o=r(31297),l=r(71607),s=function(){var e=(0,i.gf)().api;return(0,a.n)({mutationFn:function(t){return(0,n.g)(e).startTask(t)},onSuccess:function(){o.q.invalidateQueries({queryKey:[l.t]})}})}},32203:function(e,t,r){r.d(t,{Bq:function(){return s},Jd:function(){return l},yq:function(){return o}});var n=r(65369),a=r(11444),i="assets/img/devices/";function o(e){var t;switch(e.AppName||e.Client){case"Samsung Smart TV":return i+"samsungtv.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"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return i+"apple.svg";case"Home Assistant":return i+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return i+"webos.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";case"Titan OS":return i+"titanos.svg";case"Vega OS":return i+"firetv.svg";default:return i+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(t=e.Capabilities)||void 0===t?void 0:t.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(t){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,t)}return i+"other.svg"}}function l(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function s(e,t){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"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return t}}t.Ay={getDeviceIcon:o,getLibraryIcon:l,getItemTypeIcon:s}},36645:function(e,t,r){r.d(t,{QW:function(){return A},Qp:function(){return p},Rn:function(){return h},Tj:function(){return y},a_:function(){return v},hn:function(){return u},n5:function(){return d},uA:function(){return m},w:function(){return f},zo:function(){return g}});var n=r(76942),a=r(58953),i=r(4452),o=r.n(i),l=2/3,s=16/9,c=1e3/185,u=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var t=window.screen;return!!(t&&t.availWidth-e>20)},y=function(e){return null==e?n.G8.MixedSquare:e>=1.33?n.G8.MixedBackdrop:e>.8?n.G8.MixedSquare:n.G8.MixedPortrait},v=function(e){var t;return o()(((t={card:!0})["".concat(e.shape,"Card")]=e.shape,t["".concat(e.cardCssClass)]=e.cardCssClass,t["".concat(e.cardClass)]=e.cardClass,t["card-hoverable"]=e.isDesktop,t["show-focus"]=e.isTV,t["show-animation"]=e.isTV&&e.enableFocusTransform,t.groupedCard=e.showChildCountIndicator&&e.childCount,t["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),t.itemAction="button"===e.tagName,t))},m=function(e){var t;return o()(((t={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[p(e.itemName)]=!e.imgUrl,t))},h=function(e){return o()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},p=function(e){return"defaultCardBackground defaultCardBackground".concat(b(e))},b=function(e){if(e){for(var t=Math.floor(e.length/2),r=String(e.slice(t,t+1).charCodeAt(0)),n=0,i=0;i<r.length;i++)n+=parseInt(r.charAt(i),10);return parseInt(String(n).slice(-1),10)%5+1}return(0,a.HO)(1,5)},g=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?l:-1!==e.indexOf("backdrop")?s:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?c:null:null},A=function(e,t,r,n){switch(e){case"portrait":return x(t,n);case"square":return w(t,n);case"banner":return S(t);case"backdrop":return C(t,n);case"smallBackdrop":return k(t);case"overflowSmallBackdrop":return j(t,r,n);case"overflowPortrait":return I(t,r,n);case"overflowSquare":return P(t,r,n);case"overflowBackdrop":return O(t,r,n);default:return 4}},x=function(e,t){switch(!0){case t:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},w=function(e,t){switch(!0){case t:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},S=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},C=function(e,t){switch(!0){case t:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},k=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},j=function(e,t,r){switch(!0){case r:return 100/18.9;case t&&e>=800:return 100/15.5;case t:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},I=function(e,t,r){switch(!0){case r:return 100/15.5;case t&&e>=1700:return 100/11.6;case t:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},P=function(e,t,r){switch(!0){case r:return 100/15.5;case t&&e>=1700:return 100/11.6;case t:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},O=function(e,t,r){switch(!0){case r:return 100/23.3;case t&&e>=1700:return 100/18.5;case t:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},38596:function(e,t,r){r.d(t,{n:function(){return y}}),r(29305),r(32733),r(84701),r(81678),r(14382),r(69892),r(44962),r(89336),r(4754),r(94),r(33087),r(36947),r(36457),r(88908),r(83810),r(78557),r(95021),r(73687),r(83994),r(23630),r(82367);var n=r(63696),a=r(427),i=r(52672),o=r(26073),l=r(9790);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r,s,c=(0,l.jE)(t),d=(r=n.useState((function(){return new a._(c,e)})),s=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(r,s)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(r,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];n.useEffect((function(){d.setOptions(e)}),[d,e]);var y=n.useSyncExternalStore(n.useCallback((function(e){return d.subscribe(i.jG.batchCalls(e))}),[d]),(function(){return d.getCurrentResult()}),(function(){return d.getCurrentResult()})),v=n.useCallback((function(e,t){d.mutate(e,t).catch(o.lQ)}),[d]);if(y.error&&(0,o.GU)(d.options.throwOnError,[y.error]))throw y.error;return u(u({},y),{},{mutate:v,mutateAsync:y.mutate})}},54861:function(e,t,r){var n=r(63696),a=r(69410),i=r(71607),o=r(31297),l=r(44797),s=r(10736),c=r(10749);t.A=function(e){var t=(0,a.gf)().__legacyApiClient__,r=(0,i.s)(e);return(0,n.useEffect)((function(){var e=function(e,t,r){o.q.setQueryData([i.t],r)},r=setInterval((function(){(null==t?void 0:t.isMessageChannelOpen())||o.q.invalidateQueries({queryKey:[i.t]})}),1e4);return null==t||t.sendMessage(c.Y.ScheduledTasksInfoStart,"1000,1000"),l.A.on(s.default,c.Y.ScheduledTasksInfo,e),function(){clearInterval(r),null==t||t.sendMessage(c.Y.ScheduledTasksInfoStop,null),l.A.off(s.default,c.Y.ScheduledTasksInfo,e)}}),[t]),r}},57415:function(e,t,r){r.r(t),r.d(t,{Component:function(){return $}});var n=r(62540),a=r(63696),i=r(65242),o=r(5898),l=r(92779),s=r(63703),c=r(70140),u=r(80401),d=r(69410),f=r(98183),y=function(){var e=(0,d.gf)().api;return(0,u.I)({queryKey:["VirtualFolders"],queryFn:function(t){var r=t.signal;return function(e,t){return r=void 0,n=void 0,i=function(){return function(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(a=2&l[0]?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,f.X)(e).getVirtualFolders(t)];case 1:return[2,r.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,t){function o(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(o,l)}s((i=i.apply(r,n||[])).next())}));var r,n,a,i}(e,{signal:r})},enabled:!!e})},v=r(54861),m=r(22204),h=r(13478),p=r(50909),b=r(57962),g=r(69880),A=function(){return[{name:"",value:""},{name:o.Ay.translate("Movies"),value:"movies"},{name:o.Ay.translate("TabMusic"),value:"music"},{name:o.Ay.translate("Shows"),value:"tvshows"},{name:o.Ay.translate("Books"),value:"books"},{name:o.Ay.translate("HomeVideosPhotos"),value:"homevideos"},{name:o.Ay.translate("MusicVideos"),value:"musicvideos"},{name:o.Ay.translate("MixedMoviesShows"),value:"mixed"}]},x=r(44185),w=r(32203),S=r(73696),C=r(31297),k=r(48402),j=r(85637),I=r(44790),P=r(82225),O=r(45464),L=r(17997),T=r(67702),q=r(31858),M=r(60434),B=r(4350),D=r(67430),F=r(22147),R=r(38596),E=r(77004),N=r(57807),V=r(64788),H=r(64680),W=r(36300),_=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},G=function(e){var t,r,i=e.virtualFolder,l=(0,d.gf)().api,s=(0,a.useRef)(null),c=_((0,a.useState)(null),2),u=c[0],y=c[1],v=_((0,a.useState)(!1),2),m=v[0],h=v[1],p=_((0,a.useState)(!1),2),b=p[0],G=p[1],X=_((0,a.useState)(!1),2),Q=X[0],K=X[1],$=function(){var e=(0,d.gf)().api;return(0,R.n)({mutationFn:function(t){return(0,f.X)(e).renameVirtualFolder(t)},onSuccess:function(){C.q.invalidateQueries({queryKey:["VirtualFolders"]})}})}(),J=function(){var e=(0,d.gf)().api;return(0,R.n)({mutationFn:function(t){return(0,f.X)(e).removeVirtualFolder(t)},onSuccess:function(){C.q.invalidateQueries({queryKey:["VirtualFolders"]})}})}(),Y=(0,a.useMemo)((function(){if(i.PrimaryImageItemId&&i.ItemId&&l)return(0,V.C)(l).getItemImageUrlById(i.ItemId,H.y.Primary,{maxWidth:Math.round(.4*W.Ay.getScreenWidth())})}),[l,i]),z=(null===(t=A().filter((function(e){return e.value==i.CollectionType}))[0])||void 0===t?void 0:t.name)||o.Ay.translate("Other"),U=(0,a.useCallback)((function(){y(null),h(!1),G(!0)}),[]),Z=(0,a.useCallback)((function(){G(!1)}),[]),ee=(0,a.useCallback)((function(){y(null),h(!1)}),[]),te=(0,a.useCallback)((function(){y(s.current),h(!0)}),[]),re=(0,a.useCallback)((function(e){i.Name&&$.mutate({refreshLibrary:!0,newName:e,name:i.Name},{onSettled:function(){Z()}})}),[$,i,Z]),ne=(0,a.useCallback)((function(){var e;y(null),h(!1),new E.default({itemIds:[i.ItemId],serverId:null===(e=D.tF.currentApiClient())||void 0===e?void 0:e.serverId(),mode:"scan"}).show()}),[i]),ae=(0,a.useCallback)((function(){y(null),h(!1),new S.default({library:i}).then((function(e){e&&C.q.invalidateQueries({queryKey:["VirtualFolders"]})}))}),[i]),ie=(0,a.useCallback)((function(){var e;y(null),h(!1),B.default.show({itemId:i.ItemId,serverId:null===(e=D.tF.currentApiClient())||void 0===e?void 0:e.serverId()}).then((function(){C.q.invalidateQueries({queryKey:["VirtualFolders"]})})).catch((function(){}))}),[i]),oe=(0,a.useCallback)((function(){y(null),h(!1),K(!0)}),[]),le=(0,a.useCallback)((function(){K(!1)}),[]),se=(0,a.useCallback)((function(){i.Name&&J.mutate({name:i.Name,refreshLibrary:!0},{onSettled:function(){K(!1)}})}),[i,J]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F.A,{title:o.Ay.translate("ButtonRename"),open:b,onClose:Z,label:o.Ay.translate("LabelNewName"),helperText:o.Ay.translate("MessageRenameMediaFolder"),initialText:i.Name||"",confirmButtonText:o.Ay.translate("ButtonRename"),onConfirm:re}),(0,n.jsx)(N.A,{open:Q,title:o.Ay.translate("HeaderRemoveMediaFolder"),text:o.Ay.translate("MessageAreYouSureYouWishToRemoveMediaFolder")+"\n\n"+o.Ay.translate("MessageTheFollowingLocationWillBeRemovedFromLibrary")+"\n\n"+(null===(r=i.Locations)||void 0===r?void 0:r.join("\n")),confirmButtonText:o.Ay.translate("Delete"),confirmButtonColor:"error",onConfirm:se,onCancel:le}),(0,n.jsx)(g.A,{title:i.Name||"",text:z,image:Y,icon:(0,n.jsx)(x.A,{sx:{fontSize:70},children:(0,w.Jd)(i.CollectionType)}),action:!0,actionRef:s,onActionClick:te,onClick:ae,height:260}),(0,n.jsxs)(k.A,{anchorEl:u,open:m,onClose:ee,children:[(0,n.jsxs)(j.A,{onClick:ie,children:[(0,n.jsx)(I.A,{children:(0,n.jsx)(O.A,{})}),(0,n.jsx)(M.A,{children:o.Ay.translate("EditImages")})]}),(0,n.jsxs)(j.A,{onClick:ae,children:[(0,n.jsx)(I.A,{children:(0,n.jsx)(P.A,{})}),(0,n.jsx)(M.A,{children:o.Ay.translate("ManageLibrary")})]}),(0,n.jsxs)(j.A,{onClick:U,children:[(0,n.jsx)(I.A,{children:(0,n.jsx)(L.A,{})}),(0,n.jsx)(M.A,{children:o.Ay.translate("ButtonRename")})]}),(0,n.jsxs)(j.A,{onClick:ne,children:[(0,n.jsx)(I.A,{children:(0,n.jsx)(T.A,{})}),(0,n.jsx)(M.A,{children:o.Ay.translate("ScanLibrary")})]}),(0,n.jsxs)(j.A,{onClick:oe,children:[(0,n.jsx)(I.A,{children:(0,n.jsx)(q.A,{})}),(0,n.jsx)(M.A,{children:o.Ay.translate("ButtonRemove")})]})]})]})},X=r(84849),Q=r(84826),K=r(30374),$=function(){var e=y(),t=e.data,r=e.isPending,u=(0,m.V)(),d=(0,v.A)({isHidden:!1}),f=d.data,g=d.isPending,x=(0,a.useMemo)((function(){return null==f?void 0:f.find((function(e){return"RefreshLibrary"===e.Key}))}),[f]),w=(0,a.useCallback)((function(){new Q.default({collectionTypeOptions:A(),refresh:!0}).then((function(e){e&&C.q.invalidateQueries({queryKey:["VirtualFolders"]})}))}),[]),S=(0,a.useCallback)((function(){(null==x?void 0:x.Id)&&u.mutate({taskId:x.Id})}),[u,x]);return r||g?(0,n.jsx)(X.A,{}):(0,n.jsx)(i.A,{id:"mediaLibraryPage",title:o.Ay.translate("HeaderLibraries"),className:"mainAnimatedPage type-interior",children:(0,n.jsx)(l.A,{className:"content-primary",children:(0,n.jsxs)(c.A,{spacing:3,mt:2,children:[(0,n.jsxs)(c.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,n.jsx)(s.A,{startIcon:(0,n.jsx)(K.A,{}),onClick:w,children:o.Ay.translate("ButtonAddMediaLibrary")}),(0,n.jsx)(s.A,{onClick:S,startIcon:(0,n.jsx)(T.A,{}),loading:x&&x.State!==p.D.Idle,loadingPosition:"start",variant:"outlined",children:o.Ay.translate("ButtonScanAllLibraries")}),x&&x.State==p.D.Running&&(0,n.jsx)(h.A,{task:x})]}),(0,n.jsx)(l.A,{children:(0,n.jsx)(b.Ay,{container:!0,spacing:2,children:null==t?void 0:t.map((function(e){return(0,n.jsx)(b.Ay,{item:!0,xs:12,sm:6,md:3,lg:2.4,children:(0,n.jsx)(G,{virtualFolder:e})},null==e?void 0:e.ItemId)}))})})]})})})};$.displayName="LibrariesPage"},57807:function(e,t,r){var n=r(62540),a=r(63703),i=r(62010),o=r(98756),l=r(37793),s=r(75720),c=r(9042),u=(r(63696),r(5898)),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},d.apply(this,arguments)};t.A=function(e){var t=e.confirmButtonColor,r=void 0===t?"primary":t,f=e.confirmButtonText,y=e.title,v=e.text,m=e.onCancel,h=e.onConfirm,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["confirmButtonColor","confirmButtonText","title","text","onCancel","onConfirm"]);return(0,n.jsxs)(i.A,d({onClose:m},p,{children:[(0,n.jsx)(c.A,{children:y}),(0,n.jsx)(l.A,{children:(0,n.jsx)(s.A,{sx:{whiteSpace:"pre-wrap"},children:v})}),(0,n.jsxs)(o.A,{children:[(0,n.jsx)(a.A,{variant:"text",onClick:m,children:u.Ay.translate("ButtonCancel")}),(0,n.jsx)(a.A,{color:r,onClick:h,children:f||u.Ay.translate("ButtonOk")})]})]}))}},69880:function(e,t,r){var n=r(62540),a=(r(63696),r(92779)),i=r(13786),o=r(91520),l=r(47587),s=r(75487),c=r(89348),u=r(15723),d=r(36645),f=r(42087),y=r(70140),v=r(9055),m=function(){return m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},m.apply(this,arguments)};t.A=function(e){var t=e.title,r=e.text,h=e.image,p=e.icon,b=e.to,g=e.onClick,A=e.action,x=e.actionRef,w=e.onActionClick,S=e.height,C=e.width;return(0,n.jsxs)(i.A,{sx:{display:"flex",flexDirection:"column",height:S||240,width:C},children:[(0,n.jsx)(f.A,m({},b&&{component:v.N_,to:b},{onClick:g,sx:{display:"flex",flexGrow:1,alignItems:"stretch"},children:h?(0,n.jsx)(l.A,{sx:{flexGrow:1},image:h,title:t}):(0,n.jsx)(a.A,{className:(0,d.Qp)(t),sx:{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center"},children:p})})),(0,n.jsx)(o.A,{sx:{minHeight:50,"&:last-child":{paddingBottom:2,paddingRight:1}},children:(0,n.jsxs)(y.A,{flexGrow:1,direction:"row",children:[(0,n.jsxs)(y.A,{flexGrow:1,children:[(0,n.jsx)(c.A,{gutterBottom:!0,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:t}),r&&(0,n.jsx)(c.A,{variant:"body2",color:"text.secondary",sx:{lineBreak:"anywhere"},children:r})]}),(0,n.jsx)(a.A,{children:A?(0,n.jsx)(s.A,{ref:x,onClick:w,children:(0,n.jsx)(u.A,{})}):null})]})})]})}},71607:function(e,t,r){r.d(t,{s:function(){return l},t:function(){return o}});var n=r(53875),a=r(80401),i=r(69410),o="Tasks",l=function(e){var t=(0,i.gf)().api;return(0,a.I)({queryKey:[o],queryFn:function(r){var a=r.signal;return function(e,t,r){return a=void 0,i=void 0,l=function(){return function(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(a=2&l[0]?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(a){switch(a.label){case 0:return[4,(0,n.g)(e).getTasks(t,r)];case 1:return[2,a.sent().data]}}))},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{s(l.next(e))}catch(e){t(e)}}function n(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var a;t.done?e(t.value):(a=t.value,a instanceof o?a:new o((function(e){e(a)}))).then(r,n)}s((l=l.apply(a,i||[])).next())}));var a,i,o,l}(t,e,{signal:a})},enabled:!!t})}},73696:function(e,t,r){r.r(t),r.d(t,{MediaLibraryEditor:function(){return I},default:function(){return L}}),r(29305),r(32733),r(84701),r(81678),r(14382),r(44962),r(86584),r(4754),r(94),r(77575),r(36947),r(78557),r(96054),r(90076),r(83994),r(82367);var n=r(22696),a=r.n(n),i=(r(63855),r(8566)),o=r(79754),l=r(36300),s=r(9938),c=r(5898),u=(r(10353),r(15453),r(6882),r(41177)),d=r(71866),f=r(47602);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function m(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function p(){if(O)return!1;O=!0,i.Ay.show();var e=l.Ay.parentWithClass(this,"dlg-libraryeditor");if(!j.library.ItemId)return i.Ay.hide(),o.default.close(e),(0,u.A)({text:c.Ay.translate("LibraryInvalidItemIdError")}),!1;var t=s.Ay.getLibraryOptions(e.querySelector(".libraryOptions"));return t=Object.assign(j.library.LibraryOptions||{},t),ApiClient.updateVirtualFolderOptions(j.library.ItemId,t).then((function(){P=!0,O=!1,i.Ay.hide(),o.default.close(e)}),(function(){O=!1,i.Ay.hide()})),!1}function b(e){var t=l.Ay.parentWithClass(e.target,"listItem");if(t){var r,n=parseInt(t.getAttribute("data-index"),10),a=(null===(r=j.library.LibraryOptions)||void 0===r?void 0:r.PathInfos)||[],i=null==n?{}:a[n]||{},o=i.Path||(null==n?null:j.library.Locations[n]),s=l.Ay.parentWithClass(e.target,"btnRemovePath");if(s)return void function(e,t){var r=e,n=j.library;(0,f.A)({title:c.Ay.translate("HeaderRemoveMediaLocation"),text:c.Ay.translate("MessageConfirmRemoveMediaLocation"),confirmText:c.Ay.translate("Delete"),primary:"delete"}).then((function(){var e=j.refresh;ApiClient.removeMediaPath(n.Name,t,e).then((function(){P=!0,A(l.Ay.parentWithClass(r,"dlg-libraryeditor"))}),(function(){(0,d.A)(c.Ay.translate("ErrorDefault"))}))}))}(s,o);S(l.Ay.parentWithClass(t,"dlg-libraryeditor"),o,i.NetworkPath)}}function g(e,t){var r="";return r+='<div class="listItem listItem-border lnkPath" data-index="'.concat(t,'">'),r+='<div class="'.concat(e.NetworkPath?"listItemBody two-line":"listItemBody",'">'),r+='<h3 class="listItemBodyText">',r+=a()(e.Path),r+="</h3>",e.NetworkPath&&(r+='<div class="listItemBodyText secondary">'.concat(a()(e.NetworkPath),"</div>")),r+="</div>",(r+='<button type="button" is="paper-icon-button-light" class="listItemButton btnRemovePath" data-index="'.concat(t,'"><span class="material-icons remove_circle" aria-hidden="true"></span></button>'))+"</div>"}function A(e){ApiClient.getVirtualFolders().then((function(t){var r=t.filter((function(e){return e.Name===j.library.Name}))[0];r&&(j.library=r,x(e,j))}))}function x(e,t){var r,n=(null===(r=t.library.LibraryOptions)||void 0===r?void 0:r.PathInfos)||[];n.length||(n=t.library.Locations.map((function(e){return{Path:e}}))),"boxsets"===t.library.CollectionType?e.querySelector(".folders").classList.add("hide"):e.querySelector(".folders").classList.remove("hide"),e.querySelector(".folderList").innerHTML=n.map(g).join("")}function w(){S(l.Ay.parentWithClass(this,"dlg-libraryeditor"))}function S(e,t,n){Promise.resolve().then(r.bind(r,21840)).then((function(r){var a=new(0,r.default);a.show({pathReadOnly:null!=t,path:t,networkSharePath:n,callback:function(r,n){r&&(t?function(e,t,r){var n=j.library;ApiClient.updateMediaPath(n.Name,{Path:t,NetworkPath:r}).then((function(){P=!0,A(e)}),(function(){(0,d.A)(c.Ay.translate("ErrorAddingMediaPathToVirtualFolder"))}))}(e,t,n):function(e,t,r){var n=j.library,a=j.refresh;ApiClient.addMediaPath(n.Name,t,r,a).then((function(){P=!0,A(e)}),(function(){(0,d.A)(c.Ay.translate("ErrorAddingMediaPathToVirtualFolder"))}))}(e,r,n)),a.close()}})}))}function C(){k.resolveWith(null,[P])}var k,j,I=m((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=jQuery.Deferred();j=t,k=r,P=!1;var n=o.default.createDialog({size:"small",modal:!1,removeOnClose:!0,scrollY:!1});return n.classList.add("dlg-libraryeditor"),n.classList.add("ui-body-a"),n.classList.add("background-theme-a"),n.classList.add("formDialog"),n.innerHTML=c.Ay.translateHtml('<div class="formDialogHeader"> <button type="button" is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1" title="${ButtonBack}"><span class="material-icons arrow_back" aria-hidden="true"></span></button> <h3 class="formDialogHeaderTitle"></h3> </div> <div class="formDialogContent scrollY" style="padding-top:2em"> <div class="dialogContentInner dialog-content-centered"> <div class="infoBanner" style="margin-bottom:1.8em"> ${ChangingMetadataImageSettingsNewContent} </div> <div class="folders hide"> <div style="display:flex;align-items:center"> <h1 style="margin:.5em 0">${Folders}</h1> <button is="emby-button" type="button" class="fab btnAddFolder submit" title="${Add}"> <span class="material-icons add" aria-hidden="true"></span> </button> </div> <div class="paperList folderList" style="margin-bottom:2em"></div> </div> <div class="libraryOptions"></div> </div> </div> <div class="formDialogFooter"> <button is="emby-button" type="button" class="raised btnSubmit button-submit block formDialogFooterItem"> <span>${ButtonOk}</span> </button> </div> '),n.querySelector(".formDialogHeaderTitle").innerText=t.library.Name,function(e,t){x(e,t),e.querySelector(".btnAddFolder").addEventListener("click",w),e.querySelector(".folderList").addEventListener("click",b),e.querySelector(".btnSubmit").addEventListener("click",p),s.Ay.embed(e.querySelector(".libraryOptions"),t.library.CollectionType,t.library.LibraryOptions)}(n,t),n.addEventListener("close",C),o.default.open(n),n.querySelector(".btnCancel").addEventListener("click",(function(){o.default.close(n)})),A(n),r.promise()})),P=!1,O=!1,L=I},76942:function(e,t,r){var n;function a(e){return void 0===e&&(e=!0),e?n.SquareOverflow:n.Square}function i(e){return void 0===e&&(e=!0),e?n.BackdropOverflow:n.Backdrop}function o(e){return void 0===e&&(e=!0),e?n.PortraitOverflow:n.Portrait}r.d(t,{G8:function(){return n},UI:function(){return i},xK:function(){return o},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(n||(n={}))},77004:function(e,t,r){r.r(t),r(29305),r(32733),r(84701),r(81678),r(44962),r(4754),r(94),r(36947),r(78557),r(90076),r(83994),r(23630),r(82367);var n=r(36300),a=r(79754),i=r(8566),o=r(46782),l=r(5898),s=r(67430),c=(r(98959),r(10353),r(15453),r(77157),r(63001),r(71866));function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function y(e,t,n){Promise.resolve().then(r.bind(r,10838)).then((function(r){var a=n?"on":"off";r.centerFocus[a](e,t)}))}function v(e){i.Ay.show();var t=n.Ay.parentWithClass(e.target,"dialog"),r=this.options,o=s.tF.getApiClient(r.serverId),u="all"===t.querySelector("#selectMetadataRefreshMode").value,d="scan"===t.querySelector("#selectMetadataRefreshMode").value?"Default":"FullRefresh",f="FullRefresh"===d&&t.querySelector(".chkReplaceImages").checked,y="FullRefresh"===d&&t.querySelector(".chkReplaceTrickplayImages").checked;return r.itemIds.forEach((function(e){o.refreshItem(e,{Recursive:!0,ImageRefreshMode:d,MetadataRefreshMode:d,ReplaceAllImages:f,RegenerateTrickplay:y,ReplaceAllMetadata:u})})),a.default.close(t),(0,c.A)(l.Ay.translate("RefreshQueued")),i.Ay.hide(),e.preventDefault(),!1}var m=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t},(t=[{key:"show",value:function(){var e={removeOnClose:!0,scrollY:!1};o.A.tv?e.size="fullscreen":e.size="small";var t=a.default.createDialog(e);t.classList.add("formDialog");var r="",n=l.Ay.translate("RefreshMetadata");return r+='<div class="formDialogHeader">',r+='<button is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1" title="'.concat(l.Ay.translate("ButtonBack"),'"><span class="material-icons arrow_back" aria-hidden="true"></span></button>'),r+='<h3 class="formDialogHeaderTitle">',r+=n,r+="</h3>",r+="</div>",r+=function(){var e="";return e+='<div class="formDialogContent smoothScrollY" style="padding-top:2em;">',e+='<div class="dialogContentInner dialog-content-centered">',e+='<form style="margin:auto;">',e+='<div class="fldSelectPlaylist selectContainer">',e+='<select is="emby-select" id="selectMetadataRefreshMode" label="'+l.Ay.translate("LabelRefreshMode")+'">',e+='<option value="scan" selected>'+l.Ay.translate("ScanForNewAndUpdatedFiles")+"</option>",e+='<option value="missing">'+l.Ay.translate("SearchForMissingMetadata")+"</option>",e+='<option value="all">'+l.Ay.translate("ReplaceAllMetadata")+"</option>",e+="</select>",e+="</div>",e+='<label class="checkboxContainer hide fldReplaceExistingImages">',e+='<input type="checkbox" is="emby-checkbox" class="chkReplaceImages" />',e+="<span>"+l.Ay.translate("ReplaceExistingImages")+"</span>",e+="</label>",e+='<label class="checkboxContainer hide fldReplaceTrickplayImages">',e+='<input type="checkbox" is="emby-checkbox" class="chkReplaceTrickplayImages" />',e+="<span>"+l.Ay.translate("ReplaceTrickplayImages")+"</span>",e+="</label>",e+='<div class="fieldDescription">',e+=l.Ay.translate("RefreshDialogHelp"),e+="</div>",e+='<input type="hidden" class="fldSelectedItemIds" />',e+="<br />",e+='<div class="formDialogFooter">',e+='<button is="emby-button" type="submit" class="raised btnSubmit block formDialogFooterItem button-submit">'+l.Ay.translate("Refresh")+"</button>",e+="</div>",e+="</form>",(e+="</div>")+"</div>"}(),t.innerHTML=r,t.querySelector("form").addEventListener("submit",v.bind(this)),t.querySelector("#selectMetadataRefreshMode").addEventListener("change",(function(){"scan"===this.value?(t.querySelector(".fldReplaceExistingImages").classList.add("hide"),t.querySelector(".fldReplaceTrickplayImages").classList.add("hide")):(t.querySelector(".fldReplaceExistingImages").classList.remove("hide"),t.querySelector(".fldReplaceTrickplayImages").classList.remove("hide"))})),this.options.mode&&(t.querySelector("#selectMetadataRefreshMode").value=this.options.mode),t.querySelector("#selectMetadataRefreshMode").dispatchEvent(new CustomEvent("change")),t.querySelector(".btnCancel").addEventListener("click",(function(){a.default.close(t)})),o.A.tv&&y(t.querySelector(".formDialogContent"),!1,!0),new Promise((function(e){o.A.tv&&y(t.querySelector(".formDialogContent"),!1,!1),t.addEventListener("close",e),a.default.open(t)}))}}])&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.default=m},84826:function(e,t,r){r.r(t),r.d(t,{MediaLibraryCreator:function(){return C},default:function(){return P}}),r(29305),r(32733),r(84701),r(81678),r(24776),r(14382),r(69703),r(44962),r(86584),r(4754),r(94),r(36947),r(78557),r(96054),r(90076),r(95021),r(83994),r(93062),r(46968),r(97747),r(82367);var n=r(22696),a=r.n(n),i=r(8566),o=r(79754),l=r(36300),s=r(9938),c=r(5898),u=(r(10353),r(15453),r(98959),r(63001),r(6882),r(71866)),d=r(41177);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function v(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function h(e){if(e.preventDefault(),I)return!1;if(0==k.length)return(0,d.A)({text:c.Ay.translate("PleaseAddAtLeastOneFolder"),type:"error"}),!1;I=!0,i.Ay.show();var t=l.Ay.parentWithClass(this,"dlg-librarycreator"),r=t.querySelector("#txtValue").value.trim(),n=t.querySelector("#selectCollectionType").value;if(0===r.length)return(0,d.A)({text:c.Ay.translate("LibraryNameInvalid"),type:"error"}),I=!1,i.Ay.hide(),!1;"mixed"==n&&(n=null);var a=s.Ay.getLibraryOptions(t.querySelector(".libraryOptions"));a.PathInfos=k,ApiClient.addVirtualFolder(r,n,S.refresh,a).then((function(){j=!0,I=!1,i.Ay.hide(),o.default.close(t)}),(function(){(0,u.A)(c.Ay.translate("ErrorAddingMediaPathToVirtualFolder")),I=!1,i.Ay.hide()}))}function p(){var e=l.Ay.parentWithClass(this,"dlg-librarycreator");Promise.resolve().then(r.bind(r,21840)).then((function(t){var r=new(0,t.default);r.show({callback:function(t,n){t&&function(e,t,r){var n=t.toLowerCase();if(!k.filter((function(e){return e.Path.toLowerCase()==n})).length){var a={Path:t};r&&(a.NetworkPath=r),k.push(a),g(e)}}(e,t,n),r.close()}})}))}function b(e,t){var r="";return r+='<div class="listItem listItem-border lnkPath">',r+='<div class="'.concat(e.NetworkPath?"listItemBody two-line":"listItemBody",'">'),r+='<div class="listItemBodyText" dir="ltr">'.concat(a()(e.Path),"</div>"),e.NetworkPath&&(r+='<div class="listItemBodyText secondary" dir="ltr">'.concat(a()(e.NetworkPath),"</div>")),r+="</div>",(r+='<button type="button" is="paper-icon-button-light"" class="listItemButton btnRemovePath" data-index="'.concat(t,'"><span class="material-icons remove_circle" aria-hidden="true"></span></button>'))+"</div>"}function g(e){var t=k.map(b).join(""),r=e.querySelector(".folderList");r.innerHTML=t,t?r.classList.remove("hide"):r.classList.add("hide")}function A(e){var t=l.Ay.parentWithClass(e.target,"btnRemovePath"),r=parseInt(t.getAttribute("data-index"),10),n=k[r].Path.toLowerCase();k=k.filter((function(e){return e.Path.toLowerCase()!=n})),g(l.Ay.parentWithClass(t,"dlg-librarycreator"))}function x(){w(j)}var w,S,C=v((function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Promise((function(e){S=t,w=e,j=!1;var r,n,a,i=o.default.createDialog({size:"small",modal:!1,removeOnClose:!0,scrollY:!1});i.classList.add("ui-body-a"),i.classList.add("background-theme-a"),i.classList.add("dlg-librarycreator"),i.classList.add("formDialog"),i.innerHTML=c.Ay.translateHtml('<div class="formDialogHeader"> <button type="button" is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1" title="${ButtonBack}"><span class="material-icons arrow_back" aria-hidden="true"></span></button> <h3 class="formDialogHeaderTitle">${ButtonAddMediaLibrary}</h3> </div> <div class="formDialogContent scrollY" style="padding-top:2em"> <div class="dialogContentInner dialog-content-centered"> <form class="addLibraryForm" style="max-width:100%"> <div id="fldCollectionType" class="selectContainer"> <select is="emby-select" id="selectCollectionType" data-mini="true" required="required" label="${LabelContentType}"></select> <div class="collectionTypeFieldDescription fieldDescription"> </div> </div> <div class="inputContainer"> <input is="emby-input" type="text" id="txtValue" required="required" label="${LabelDisplayName}"/> </div> <div class="folders"> <div style="display:flex;align-items:center"> <h1 style="margin:.5em 0">${Folders}</h1> <button is="emby-button" type="button" class="fab btnAddFolder submit" title="${Add}"> <span class="material-icons add" aria-hidden="true"></span> </button> </div> <div class="paperList folderList hide" style="margin-bottom:2em"></div> </div> <div class="libraryOptions"></div> <div class="formDialogFooter"> <button is="emby-button" type="submit" class="raised btnSubmit button-submit block formDialogFooterItem"> <span>${ButtonOk}</span> </button> </div> </form> </div> </div> '),r=i,n=t.collectionTypeOptions,(a=r.querySelector("#selectCollectionType")).innerHTML=function(e){return e.map((function(e){return'<option value="'.concat(e.value,'">').concat(e.name,"</option>")})).join("")}(n),a.value="",a.addEventListener("change",(function(){var e=this.value,t=l.Ay.parentWithClass(this,"dialog");if(s.Ay.setContentType(t.querySelector(".libraryOptions"),e),e?t.querySelector(".libraryOptions").classList.remove("hide"):t.querySelector(".libraryOptions").classList.add("hide"),"mixed"!=e){var r=this.selectedIndex;if(-1!=r){var a=this.options[r].innerHTML.replaceAll("*","").replaceAll("&amp;","&");t.querySelector("#txtValue").value=a}}var i=n.find((function(t){return t.value===e}));t.querySelector(".collectionTypeFieldDescription").innerHTML=(null==i?void 0:i.message)||""})),r.querySelector(".btnAddFolder").addEventListener("click",p),r.querySelector(".addLibraryForm").addEventListener("submit",h),r.querySelector(".folderList").addEventListener("click",A),i.addEventListener("close",x),o.default.open(i),i.querySelector(".btnCancel").addEventListener("click",(function(){o.default.close(i)})),k=[],g(i),function(e){s.Ay.embed(e.querySelector(".libraryOptions")).then((function(){e.querySelector("#selectCollectionType").dispatchEvent(new Event("change"))}))}(i)}))})),k=[],j=!1,I=!1,P=C}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[77920,84158],{16118:function(e,r,t){t.r(r),t(14382),t(44962),t(78557),t(96054),t(90076),t(83994),t(23630),t(82367);var a=t(22696),n=t.n(a),s=t(36645),i=t(47602),o=t(8566),c=t(5898),u=t(67430),d=t(36300),l=t(54048),f=t(89100),h=t(32203);function m(e,r){Promise.all([t.e(95454),t.e(1831)]).then(t.bind(t,73696)).then((function(t){new(0,t.default)({refresh:g(e),library:r}).then((function(r){r&&v(e)}))}))}function v(e){o.Ay.show(),u.tF.currentApiClient().getVirtualFolders().then((function(r){!function(e,r){var a="";r.push({Name:c.Ay.translate("ButtonAddMediaLibrary"),icon:"add_circle",Locations:[],showType:!1,showLocations:!1,showMenu:!1,showNameWithIcon:!1,elementId:"addLibrary"});for(var n=0;n<r.length;n++){a+=b(0,r[n],n)}var s=e.querySelector("#divVirtualFolders");s.innerHTML=a,s.classList.add("itemsContainer"),s.classList.add("vertical-wrap"),s.querySelectorAll(".btnCardMenu").forEach((function(a){a.addEventListener("click",(function(){!function(e,r,a){var n=d.Ay.parentWithClass(r,"card"),s=a[parseInt(n.getAttribute("data-index"),10)],o=[];o.push({name:c.Ay.translate("EditImages"),id:"editimages",icon:"photo"}),o.push({name:c.Ay.translate("ManageLibrary"),id:"edit",icon:"folder"}),o.push({name:c.Ay.translate("ButtonRename"),id:"rename",icon:"mode_edit"}),o.push({name:c.Ay.translate("ScanLibrary"),id:"refresh",icon:"refresh"}),o.push({name:c.Ay.translate("ButtonRemove"),id:"delete",icon:"delete"}),t.e(62882).then(t.bind(t,62882)).then((function(a){a.show({items:o,positionTo:r,callback:function(r){switch(r){case"edit":m(e,s);break;case"editimages":!function(e,r){Promise.all([t.e(4350),t.e(40248)]).then(t.bind(t,4350)).then((function(t){t.show({itemId:r.ItemId,serverId:u.tF.currentApiClient().serverId()}).then((function(){v(e)}))}))}(e,s);break;case"rename":!function(e,r){t.e(72521).then(t.bind(t,72521)).then((function(t){(0,t.default)({label:c.Ay.translate("LabelNewName"),description:c.Ay.translate("MessageRenameMediaFolder"),confirmText:c.Ay.translate("ButtonRename")}).then((function(t){if(t&&t!=r.Name){var a=g(e);u.tF.currentApiClient().renameVirtualFolder(r.Name,t,a).then((function(){v(e)}))}}))}))}(e,s);break;case"delete":!function(e,r){var t=c.Ay.translate("MessageAreYouSureYouWishToRemoveMediaFolder");r.Locations.length&&(t+="<br/><br/>"+c.Ay.translate("MessageTheFollowingLocationWillBeRemovedFromLibrary")+"<br/><br/>",t+=r.Locations.join("<br/>")),(0,i.A)({text:t,title:c.Ay.translate("HeaderRemoveMediaFolder"),confirmText:c.Ay.translate("Delete"),primary:"delete"}).then((function(){var t=g(e);u.tF.currentApiClient().removeVirtualFolder(r.Name,t).then((function(){v(e)}))}))}(e,s);break;case"refresh":!function(e,r){t.e(77004).then(t.bind(t,77004)).then((function(e){new(0,e.default)({itemIds:[r.ItemId],serverId:u.tF.currentApiClient().serverId(),mode:"scan"}).show()}))}(0,s)}}})}))}(e,a,r)}))})),s.querySelector("#addLibrary").addEventListener("click",(function(){!function(e){Promise.all([t.e(95454),t.e(30657)]).then(t.bind(t,84826)).then((function(r){new(0,r.default)({collectionTypeOptions:p().filter((function(e){return!e.hidden})),refresh:g(e)}).then((function(r){r&&v(e)}))}))}(e)})),s.querySelectorAll(".editLibrary").forEach((function(t){t.addEventListener("click",(function(){var a=d.Ay.parentWithClass(t,"card"),n=parseInt(a.getAttribute("data-index"),10),s=r[n];s.ItemId&&m(e,s)}))})),o.Ay.hide()}(e,r)}))}function g(e){return"mediaLibraryPage"===e.id}function y(e,r){return c.Ay.translate(e,'<a is="emby-linkbutton" class="button-link" href="'+r+'" target="_blank" data-autohide="true">',"</a>")}function p(){return[{name:"",value:""},{name:c.Ay.translate("Movies"),value:"movies",message:y("MovieLibraryHelp","https://jellyfin.org/docs/general/server/media/movies")},{name:c.Ay.translate("TabMusic"),value:"music",message:y("MusicLibraryHelp","https://jellyfin.org/docs/general/server/media/music")},{name:c.Ay.translate("Shows"),value:"tvshows",message:y("TvLibraryHelp","https://jellyfin.org/docs/general/server/media/shows")},{name:c.Ay.translate("Books"),value:"books",message:y("BookLibraryHelp","https://jellyfin.org/docs/general/server/media/books")},{name:c.Ay.translate("HomeVideosPhotos"),value:"homevideos"},{name:c.Ay.translate("MusicVideos"),value:"musicvideos"},{name:c.Ay.translate("MixedMoviesShows"),value:"mixed",message:c.Ay.translate("MessageUnsetContentHelp")}]}function b(e,r,t){var a="";a+="<div "+(r.elementId?'id="'.concat(r.elementId,'" '):"")+'class="card backdropCard scalableCard backdropCard-scalable" style="min-width:33.3%;" data-index="'+t+'" data-id="'+r.ItemId+'">',a+='<div class="cardBox visualCardBox">',a+='<div class="cardScalable visualCardBox-cardScalable">',a+='<div class="cardPadder cardPadder-backdrop"></div>',a+='<div class="cardContent">';var i,o="";if(r.PrimaryImageItemId&&(o=u.tF.currentApiClient().getScaledImageUrl(r.PrimaryImageItemId,{maxWidth:Math.round(.4*d.Ay.getScreenWidth()),type:"Primary"})),o?(a+='<div class="cardImageContainer editLibrary '.concat(o?"":(0,s.Qp)(),'" style="cursor:pointer">'),a+='<img src="'.concat(o,'" style="width:100%" />'),i=!0):r.showNameWithIcon||(a+='<div class="cardImageContainer editLibrary '.concat((0,s.Qp)(),'" style="cursor:pointer;">'),a+='<span class="cardImageIcon material-icons '+(r.icon||h.Ay.getLibraryIcon(r.CollectionType))+'" aria-hidden="true"></span>',i=!0),i&&(a+='<div class="cardIndicators backdropCardIndicators">',a+='<div is="emby-itemrefreshindicator"'+(r.RefreshProgress||r.RefreshStatus&&"Idle"!==r.RefreshStatus?"":' class="hide"')+' data-progress="'+(r.RefreshProgress||0)+'" data-status="'+r.RefreshStatus+'"></div>',a+="</div>",a+="</div>"),!o&&r.showNameWithIcon&&(a+='<h3 class="cardImageContainer addLibrary" style="position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer;flex-direction:column;">',a+='<span class="cardImageIcon material-icons '+(r.icon||h.Ay.getLibraryIcon(r.CollectionType))+'" aria-hidden="true"></span>',r.showNameWithIcon&&(a+='<div style="margin:1em 0;position:width:100%;">',a+=n()(r.Name),a+="</div>"),a+="</h3>"),a+="</div>",a+="</div>",a+='<div class="cardFooter visualCardBox-cardFooter">',!1!==r.showMenu){var l=c.Ay.getIsRTL()?"left":"right";a+='<div style="text-align:'+l+"; float:"+l+';padding-top:5px;">',a+='<button type="button" is="paper-icon-button-light" class="btnCardMenu autoSize"><span class="material-icons more_vert" aria-hidden="true"></span></button>',a+="</div>"}a+="<div class='cardText'>",r.showNameWithIcon?a+="&nbsp;":a+=n()(r.Name),a+="</div>";var f=p().filter((function(e){return e.value==r.CollectionType}))[0];return f=f?f.name:c.Ay.translate("Other"),a+="<div class='cardText cardText-secondary'>",!1===r.showType?a+="&nbsp;":a+=f,a+="</div>",!1===r.showLocations?(a+="<div class='cardText cardText-secondary'>",a+="&nbsp;",a+="</div>"):r.Locations.length&&1===r.Locations.length?(a+="<div class='cardText cardText-secondary' dir='ltr' style='text-align:left;'>",a+=n()(r.Locations[0]),a+="</div>"):(a+="<div class='cardText cardText-secondary'>",a+=c.Ay.translate("NumLocationsValue",r.Locations.length),a+="</div>"),a+="</div>",(a+="</div>")+"</div>"}t(84158),window.WizardLibraryPage={next:function(){f.default.navigate("wizard/settings")}},(0,f.pageClassOn)("pageshow","mediaLibraryPage",(function(){v(this)})),(0,f.pageIdOn)("pageshow","mediaLibraryPage",(function(){(0,l.A)({mode:"on",progressElem:this.querySelector(".refreshProgress"),taskKey:"RefreshLibrary",button:this.querySelector(".btnRefresh")})})),(0,f.pageIdOn)("pagebeforehide","mediaLibraryPage",(function(){(0,l.A)({mode:"off",progressElem:this.querySelector(".refreshProgress"),taskKey:"RefreshLibrary",button:this.querySelector(".btnRefresh")})}))},32203:function(e,r,t){t.d(r,{Bq:function(){return c},Jd:function(){return o},yq:function(){return i}});var a=t(65369),n=t(11444),s="assets/img/devices/";function i(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return s+"samsungtv.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"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return s+"apple.svg";case"Home Assistant":return s+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return s+"webos.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";case"Titan OS":return s+"titanos.svg";case"Vega OS":return s+"firetv.svg";default:return s+"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 s+"other.svg"}}function o(e){switch(e){case a.X.Movies:return"movie";case a.X.Music:return"music_note";case a.X.Homevideos:case a.X.Photos:return"photo";case a.X.Livetv:return"live_tv";case a.X.Tvshows:return"tv";case a.X.Trailers:return"theaters";case a.X.Musicvideos:return"music_video";case a.X.Books:return"book";case a.X.Boxsets:return"video_library";case a.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function c(e,r){switch(e){case n.D.MusicAlbum:return"album";case n.D.MusicArtist:case n.D.Person:return"person";case n.D.Audio:return"audiotrack";case n.D.Movie:return"movie";case n.D.Episode:case n.D.Series:return"tv";case n.D.Program:return"live_tv";case n.D.Book:return"book";case n.D.Folder:return"folder";case n.D.BoxSet:return"video_library";case n.D.Playlist:return"queue";case n.D.Photo:return"photo";case n.D.PhotoAlbum:return"photo_album";default:return r}}r.Ay={getDeviceIcon:i,getLibraryIcon:o,getItemTypeIcon:c}},36645:function(e,r,t){t.d(r,{QW:function(){return w},Qp:function(){return y},Rn:function(){return g},Tj:function(){return h},a_:function(){return m},hn:function(){return d},n5:function(){return l},uA:function(){return v},w:function(){return f},zo:function(){return b}});var a=t(76942),n=t(58953),s=t(4452),i=t.n(s),o=2/3,c=16/9,u=1e3/185,d=function(e){return"Program"===e||"Timer"===e||"Recording"===e},l=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var r=window.screen;return!!(r&&r.availWidth-e>20)},h=function(e){return null==e?a.G8.MixedSquare:e>=1.33?a.G8.MixedBackdrop:e>.8?a.G8.MixedSquare:a.G8.MixedPortrait},m=function(e){var r;return i()(((r={card:!0})["".concat(e.shape,"Card")]=e.shape,r["".concat(e.cardCssClass)]=e.cardCssClass,r["".concat(e.cardClass)]=e.cardClass,r["card-hoverable"]=e.isDesktop,r["show-focus"]=e.isTV,r["show-animation"]=e.isTV&&e.enableFocusTransform,r.groupedCard=e.showChildCountIndicator&&e.childCount,r["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),r.itemAction="button"===e.tagName,r))},v=function(e){var r;return i()(((r={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[y(e.itemName)]=!e.imgUrl,r))},g=function(e){return i()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},y=function(e){return"defaultCardBackground defaultCardBackground".concat(p(e))},p=function(e){if(e){for(var r=Math.floor(e.length/2),t=String(e.slice(r,r+1).charCodeAt(0)),a=0,s=0;s<t.length;s++)a+=parseInt(t.charAt(s),10);return parseInt(String(a).slice(-1),10)%5+1}return(0,n.HO)(1,5)},b=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?o:-1!==e.indexOf("backdrop")?c:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?u:null:null},w=function(e,r,t,a){switch(e){case"portrait":return A(r,a);case"square":return S(r,a);case"banner":return I(r);case"backdrop":return C(r,a);case"smallBackdrop":return k(r);case"overflowSmallBackdrop":return x(r,t,a);case"overflowPortrait":return L(r,t,a);case"overflowSquare":return P(r,t,a);case"overflowBackdrop":return M(r,t,a);default:return 4}},A=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},S=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},I=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},C=function(e,r){switch(!0){case r:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},k=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},x=function(e,r,t){switch(!0){case t:return 100/18.9;case r&&e>=800:return 100/15.5;case r:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},L=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},P=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},M=function(e,r,t){switch(!0){case t:return 100/23.3;case r&&e>=1700:return 100/18.5;case r:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},76942:function(e,r,t){var a;function n(e){return void 0===e&&(e=!0),e?a.SquareOverflow:a.Square}function s(e){return void 0===e&&(e=!0),e?a.BackdropOverflow:a.Backdrop}function i(e){return void 0===e&&(e=!0),e?a.PortraitOverflow:a.Portrait}t.d(r,{G8:function(){return a},UI:function(){return s},xK:function(){return i},zP:function(){return n}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(a||(a={}))},84158:function(e,r,t){t(67593),t(78557),t(23630),t(69177);var a=t(5898),n=t(58953),s=Object.create(HTMLDivElement.prototype);s.createdCallback=function(){this.classList.add("progressring"),this.setAttribute("dir","ltr");var e=this;if(e.innerHTML='<div class="progressring-bg"> <div class="progressring-text"></div> </div> <div class="spiner-holder-one animate-0-25-a"> <div class="spiner-holder-two animate-0-25-b"> <div class="progressring-spiner"></div> </div> </div> <div class="spiner-holder-one animate-25-50-a"> <div class="spiner-holder-two animate-25-50-b"> <div class="progressring-spiner"></div> </div> </div> <div class="spiner-holder-one animate-50-75-a"> <div class="spiner-holder-two animate-50-75-b"> <div class="progressring-spiner"></div> </div> </div> <div class="spiner-holder-one animate-75-100-a"> <div class="spiner-holder-two animate-75-100-b"> <div class="progressring-spiner"></div> </div> </div> ',window.MutationObserver){var r=new MutationObserver((function(r){r.forEach((function(){e.setProgress(parseFloat(e.getAttribute("data-progress")||"0"))}))}));r.observe(e,{attributes:!0,childList:!1,characterData:!1}),e.observer=r}e.setProgress(parseFloat(e.getAttribute("data-progress")||"0"))},s.setProgress=function(e){var r;(e=Math.floor(e))<25?(r=e/100*360-90,this.querySelector(".animate-0-25-b").style.transform="rotate("+r+"deg)",this.querySelector(".animate-25-50-b").style.transform="rotate(-90deg)",this.querySelector(".animate-50-75-b").style.transform="rotate(-90deg)",this.querySelector(".animate-75-100-b").style.transform="rotate(-90deg)"):e>=25&&e<50?(r=(e-25)/100*360-90,this.querySelector(".animate-0-25-b").style.transform="none",this.querySelector(".animate-25-50-b").style.transform="rotate("+r+"deg)",this.querySelector(".animate-50-75-b").style.transform="rotate(-90deg)",this.querySelector(".animate-75-100-b").style.transform="rotate(-90deg)"):e>=50&&e<75?(r=(e-50)/100*360-90,this.querySelector(".animate-0-25-b").style.transform="none",this.querySelector(".animate-25-50-b").style.transform="none",this.querySelector(".animate-50-75-b").style.transform="rotate("+r+"deg)",this.querySelector(".animate-75-100-b").style.transform="rotate(-90deg)"):e>=75&&e<=100&&(r=(e-75)/100*360-90,this.querySelector(".animate-0-25-b").style.transform="none",this.querySelector(".animate-25-50-b").style.transform="none",this.querySelector(".animate-50-75-b").style.transform="none",this.querySelector(".animate-75-100-b").style.transform="rotate("+r+"deg)"),this.querySelector(".progressring-text").innerHTML=(0,n.a4)(e/100,(0,a.jE)())},s.attachedCallback=function(){},s.detachedCallback=function(){var e=this.observer;e&&(e.disconnect(),this.observer=null)},document.registerElement("emby-progressring",{prototype:s,extends:"div"});var i=s,o=t(36300),c=t(10736),u=t(44797);function d(e,r,t){var a=this;if(a.itemId||(a.itemId=o.Ay.parentWithAttribute(a,"data-id").getAttribute("data-id")),t.ItemId===a.itemId){var n=parseFloat(t.Progress);n&&n<100?this.classList.remove("hide"):this.classList.add("hide"),this.setAttribute("data-progress",n)}}var l=Object.create(i);l.createdCallback=function(){var e,r;i.createdCallback&&i.createdCallback.call(this),e="RefreshProgress",r=d.bind(this),u.A.on(c.default,e,r),this[e]=r},l.attachedCallback=function(){i.attachedCallback&&i.attachedCallback.call(this)},l.detachedCallback=function(){var e,r;i.detachedCallback&&i.detachedCallback.call(this),(r=this[e="RefreshProgress"])&&(u.A.off(c.default,e,r),this[e]=null),this.itemId=null},document.registerElement("emby-itemrefreshindicator",{prototype:l,extends:"div"})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7631,68603,96084],{32203:function(e,t,r){r.d(t,{Bq:function(){return s},Jd:function(){return c},yq:function(){return i}});var n=r(65369),o=r(11444),a="assets/img/devices/";function i(e){var t;switch(e.AppName||e.Client){case"Samsung Smart TV":return a+"samsungtv.svg";case"Xbox One":return a+"xbox.svg";case"Sony PS4":return a+"playstation.svg";case"Kodi":case"Kodi JellyCon":return a+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return a+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return a+"apple.svg";case"Home Assistant":return a+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return a+"webos.svg";case"Jellyfin Roku":return a+"roku.svg";case"Finamp":return a+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return a+"opera.svg";case"Chrome":case"Chrome Android":return a+"chrome.svg";case"Firefox":case"Firefox Android":return a+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return a+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return a+"edgechromium.svg";case"Edge":return a+"edge.svg";case"Internet Explorer":return a+"msie.svg";case"Titan OS":return a+"titanos.svg";case"Vega OS":return a+"firetv.svg";default:return a+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(t=e.Capabilities)||void 0===t?void 0:t.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(t){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,t)}return a+"other.svg"}}function c(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function s(e,t){switch(e){case o.D.MusicAlbum:return"album";case o.D.MusicArtist:case o.D.Person:return"person";case o.D.Audio:return"audiotrack";case o.D.Movie:return"movie";case o.D.Episode:case o.D.Series:return"tv";case o.D.Program:return"live_tv";case o.D.Book:return"book";case o.D.Folder:return"folder";case o.D.BoxSet:return"video_library";case o.D.Playlist:return"queue";case o.D.Photo:return"photo";case o.D.PhotoAlbum:return"photo_album";default:return t}}t.Ay={getDeviceIcon:i,getLibraryIcon:c,getItemTypeIcon:s}},87024:function(e,t,r){r.r(t),r.d(t,{default:function(){return D}}),r(24776),r(20518),r(78557),r(23630);var n,o=r(45182),a=r(22696),i=r.n(a);!function(e){e[e.NoScroll=0]="NoScroll",e[e.Smooth=1]="Smooth",e[e.Instant=2]="Instant"}(n||(n={}));var c,s,u,l=r(84069),d=r(70267),f=r(46782),v=r(39738),y=r(93599),m=r(9164),h=r(5898),g=r(67430),p=r(74550),S=r(73233),L=r(44797),A=r(75384),b=!1,w=n.Instant;function P(e,t,r){var n=f.A.tv?"button":"div",o=[];b&&o.push("dynamicLyric"),f.A.tv&&o.push("listItem","show-focus");var a=void 0!==t.Start?'data-lyrictime="'.concat(t.Start,'"'):"";return e+"<".concat(n,' class="lyricsLine ').concat(o.join(" "),'" id="lyricPosition').concat(r,'" ').concat(a,">\n <bdi>").concat(i()(t.Text),"</bdi>\n</").concat(n,">")}function I(e,t){return t.findLastIndex((function(t){return t.Start<=e}))}function k(){var e=v.f.currentTime();return void 0===e&&(e=0),1e4*e}function D(e){function t(t){var r=e.querySelector("#lyricPosition".concat(t));r&&(r.classList.remove("pastLyric"),r.classList.add("futureLyric"))}function r(t){var r=e.querySelector("#lyricPosition".concat(t));r&&(r.classList.remove("pastLyric"),r.classList.remove("futureLyric"),w!==n.NoScroll&&(y.Ay.scrollToElement(r,w===n.Smooth),m.A.focus(r),w=n.Smooth))}function a(n,o){for(var a=0;a<=o.length;a++)a<n?(i=a,c=void 0,(c=e.querySelector("#lyricPosition".concat(i)))&&(c.classList.remove("futureLyric"),c.classList.add("pastLyric"))):a===n?r(a):a>n&&t(a);var i,c}function i(){var t=e.querySelector(".lyricsContainer");if(t){var r="<h1>".concat(h.Ay.translate("HeaderNoLyrics"),"</h1>");t.innerHTML=r}l.default.autoFocus()}function f(t){u=t,b=Object.prototype.hasOwnProperty.call(t[0],"Start"),function(t){var r=e.querySelector(".lyricsContainer");if(r){var o=t.reduce(P,"");r.innerHTML=o}b&&(r.querySelectorAll(".lyricsLine").forEach((function(e){e.addEventListener("click",(function(){return t=e.getAttribute("data-lyrictime"),w=n.Smooth,v.f.seek(t),void(v.f.paused()&&v.f.playPause(c));var t}))})),a(I(k(),t),u))}(u),l.default.autoFocus(e)}function D(e){e!==c&&(E(),c=e,e&&(L.A.on(e,"timeupdate",C),L.A.on(e,"playbackstart",O),L.A.on(e,"playbackstop",N)))}function E(){var e=c;e&&(L.A.off(e,"timeupdate",C),L.A.off(e,"playbackstart",O),L.A.off(e,"playbackstop",N),c=null)}function C(){b&&a(I(k(),u),u)}function O(e,t){s.Id!==t.NowPlayingItem.Id&&x()}function N(e,t){t.NextMediaType||d.appRouter.goHome()}function T(){D(v.f.getCurrentPlayer())}function x(){u=null,s=null,b=!1,S.default.setTitle(h.Ay.translate("Lyrics"));var e,t,r,n=v.f.getCurrentPlayer();if(n){D(n);var a=v.f.getPlayerState(n);s=a.NowPlayingItem,(e=a.NowPlayingItem.ServerId,t=a.NowPlayingItem.Id,r=g.tF.getApiClient(e),(0,o.t)((0,A.C)(r)).getLyrics({itemId:t}).then((function(e){var t,r=e.data;if(null===(t=r.Lyrics)||void 0===t||!t.length)throw new Error("No lyrics returned");return r.Lyrics}))).then(f).catch(i)}else d.appRouter.goHome()}function X(){w=n.NoScroll}function q(e){var t=p.Ay.getKeyName(e);"ArrowUp"!==t&&"ArrowDown"!==t||(w=n.NoScroll)}e.addEventListener("viewshow",(function(){L.A.on(v.f,"playerchange",T),w=n.Instant,document.addEventListener("wheel",X),document.addEventListener("touchmove",X),document.addEventListener("keydown",q);try{x()}catch(e){d.appRouter.goHome()}})),e.addEventListener("viewbeforehide",(function(){L.A.off(v.f,"playerchange",T),document.removeEventListener("wheel",X),document.removeEventListener("touchmove",X),document.removeEventListener("keydown",q),E()}))}}}]);
@@ -14,7 +14,7 @@
14
14
  .emby-checkbox-label{-webkit-align-items:center;align-items:center;box-sizing:border-box;cursor:pointer;display:-webkit-inline-flex;display:inline-flex;height:2.35em;margin:0;padding:0;padding-left:2.4em;position:relative;vertical-align:middle;width:100%;z-index:1}.checkboxFieldDescription{padding-left:2.4em}.checkboxContainer{display:-webkit-flex;display:flex}.checkboxContainer,.checkboxListContainer{margin-bottom:1.8em}.checkboxContainer-withDescription{-webkit-flex-direction:column;flex-direction:column}.emby-checkbox{-webkit-appearance:none;appearance:none;border:none;height:1px;margin:0;opacity:0;padding:0;position:absolute;width:1px}.checkboxOutline{-webkit-align-items:center;align-items:center;border:.14em solid currentcolor;border-radius:.14em;box-sizing:border-box;display:-webkit-flex;display:flex;height:1.83em;-webkit-justify-content:center;justify-content:center;left:0;margin:0;overflow:hidden;position:absolute;top:3px;width:1.83em;z-index:2}.checkboxIcon{color:#fff;font-size:1.6em}.checkboxIcon-checked,.emby-checkbox-label .checkboxIcon-checked{display:none}.emby-checkbox:checked+span+.checkboxOutline>.checkboxIcon-checked{display:-webkit-flex!important;display:flex!important}.emby-checkbox:checked+span+.checkboxOutline>.checkboxIcon-unchecked{display:none!important}.emby-checkbox:checked[disabled]+span+.checkboxOutline>.checkboxIcon{background-color:rgba(0,0,0,.26)}.checkboxLabel{margin:0;position:relative}.checkboxList>.emby-checkbox-label{display:-webkit-flex;display:flex;margin:.5em 0}.checkboxList-verticalwrap{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.checkboxList-verticalwrap>.emby-checkbox-label{display:-webkit-inline-flex;display:inline-flex;margin:.3em 0 .3em 0;width:12em}.checkboxList>.sectioncheckbox>.emby-checkbox-label{display:-webkit-flex;display:flex;margin:.5em 0}.checkboxList-paperList{padding:1em!important}.checkboxListLabel{margin-bottom:.25em}@-webkit-keyframes repaintChrome{0%{margin:0}to{margin:0}}@keyframes repaintChrome{0%{margin:0}to{margin:0}}
15
15
  button{-webkit-border-fit:border!important}button::-moz-focus-inner{border:0;padding:0}.card{background:none!important;background-color:transparent!important;border:0;color:inherit!important;display:block;font-family:inherit!important;font-size:inherit!important;margin:0;padding:0;text-transform:none;-webkit-tap-highlight-color:rgba(0,0,0,0);contain:layout style;cursor:pointer;-webkit-flex-shrink:0;flex-shrink:0;font-weight:inherit!important;outline:none!important}.card:not(.show-animation){contain:layout style paint}.itemsContainer,.vertical-list{display:-webkit-flex;display:flex}.vertical-list{-webkit-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.vertical-wrap{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.vertical-wrap.centered{-webkit-justify-content:center;justify-content:center}.cardScalable{contain:layout style;position:relative}.cardPadder-backdrop,.cardPadder-mixedBackdrop,.cardPadder-overflowBackdrop,.cardPadder-overflowSmallBackdrop,.cardPadder-smallBackdrop{contain:strict;padding-bottom:56.25%}.cardPadder-mixedSquare,.cardPadder-overflowSquare,.cardPadder-square,.overflowSquareCard-textCardPadder{contain:strict;padding-bottom:100%}.cardPadder-mixedPortrait,.cardPadder-overflowPortrait,.cardPadder-portrait,.overflowPortraitCard-textCardPadder{contain:strict;padding-bottom:150%}.cardPadder-banner{contain:strict;padding-bottom:18.5%}.cardBox{border:0 solid transparent;margin:.6em;padding:0!important;transition:none;-webkit-tap-highlight-color:rgba(0,0,0,0);contain:layout;contain:style;outline:none!important}.card.show-animation .cardBox{transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out,-webkit-transform .2s ease-out;will-change:transform}.card.show-focus:not(.show-animation) .cardBox{margin:.4em}.card.show-focus:not(.show-animation) .cardBox.visualCardBox,.card.show-focus:not(.show-animation) .cardBox:not(.visualCardBox) .cardScalable{border:.5em solid transparent;border-radius:.7em}.card.show-animation:focus>.cardBox{-webkit-transform:scale(1.07);transform:scale(1.07)}.cardBox-bottompadded{margin-bottom:1.8em!important}@media(max-width:50em){.cardBox-bottompadded{margin-bottom:1.2em!important}}.card:focus{font-weight:inherit!important;position:relative!important;z-index:10!important}.btnCardOptions{bottom:.25em;margin:0!important;position:absolute;right:0;z-index:1}.mediaSourceIndicator{background:#38c;border-radius:50%;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);color:#fff;font-size:88%;font-weight:500;height:2em;left:.3em;position:absolute;text-align:center;top:.3em;vertical-align:middle;width:2em;z-index:1}.cardImageContainer,.mediaSourceIndicator{-webkit-align-items:center;align-items:center;display:-webkit-flex;display:flex;-webkit-justify-content:center;justify-content:center}.cardImageContainer{background-clip:content-box!important;background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:.2em;color:inherit;position:relative;-webkit-text-decoration:none;text-decoration:none}.cardContent.cardImageContainer{display:-webkit-flex;display:flex}.cardScalable .cardImageContainer{contain:strict;height:100%;width:100%}.chapterCardImageContainer{background-color:#000;border-radius:0}.textCardImageContainer{background-color:#333}.cardContent{border:0!important;border-radius:.2em;bottom:0;color:inherit;cursor:pointer;display:block;font-family:inherit;font-size:inherit;height:100%;left:0;margin:0!important;overflow:hidden;padding:0!important;position:absolute;right:0;top:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);contain:strict;outline:none!important}.defaultCardBackground{display:-webkit-flex;display:flex}.cardContent:not(.defaultCardBackground){background-color:transparent}.cardPadder{position:relative}.cardBox:not(.visualCardBox) .cardPadder{background-color:#242424;border-radius:.2em}.blurhash-canvas{border-radius:.2em}.cardBox:not(.visualCardBox) .cardPadder,.cardContent-shadow{box-shadow:0 .0725em .29em 0 rgba(0,0,0,.37)}.cardImage{background-repeat:no-repeat;border:none;bottom:0;left:0;position:absolute;right:0;top:0}.cardImage,.coveredImage{background-position:50%;background-size:cover}.coveredImage.coveredImage-contain{background-size:contain}.cardFooter{padding:.3em .3em .5em .3em;position:relative}.visualCardBox{border-radius:.2em;box-shadow:0 .0725em .29em 0 rgba(0,0,0,.37)}.innerCardFooter{background:rgba(0,0,0,.7);bottom:0;color:#fff;left:0;max-width:100%;overflow:hidden;position:absolute;text-align:left;z-index:1}.innerCardFooterClear{background-color:transparent}.fullInnerCardFooter{right:0}.cardText{overflow:hidden;padding:.06em .5em;text-overflow:ellipsis;white-space:nowrap}[dir=ltr] .cardText{text-align:left}[dir=rtl] .cardText{text-align:right}.dialog .cardText{text-overflow:clip}.cardText-secondary{font-size:86%}.cardText-first{padding-top:.24em}.textActionButton{background:transparent;border:0!important;cursor:pointer;padding:0!important;-webkit-tap-highlight-color:rgba(0,0,0,0);color:inherit;font-family:inherit;font-size:inherit;outline:none!important;-webkit-text-decoration:none;text-decoration:none;vertical-align:middle}.textActionButton:hover{-webkit-text-decoration:underline;text-decoration:underline}.cardText>.textActionButton{overflow:hidden;text-align:left;text-overflow:ellipsis;width:100%}.innerCardFooter>.cardText{padding:.3em .5em}.cardFooter-withlogo{padding-left:4em;position:relative}.cardFooterLogo{background-position:50%;background-repeat:no-repeat;background-size:70% auto;bottom:0;left:0;position:absolute;top:0;width:4.5em}.cardTextCentered,.cardTextCentered>.textActionButton{text-align:center!important}.cardText-rightmargin{margin-right:2em}.cardImageContainer>.cardDefaultText{font-size:2em;font-weight:700;text-align:center;white-space:normal}.cardImageIcon{color:inherit;font-size:5em}.cardPadder .cardImageIcon{color:#111;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.cardImageContainer .cardImageIcon{margin:auto}.cardIndicators{-webkit-align-items:center;align-items:center;contain:layout style;display:-webkit-flex;display:flex;position:absolute;top:.225em;z-index:1}[dir=ltr] .cardIndicators{right:.225em}[dir=rtl] .cardIndicators{left:.225em}.cardProgramAttributeIndicators{display:-webkit-flex;display:flex;font-size:92%;position:absolute;text-transform:uppercase;top:0}[dir=ltr] .cardProgramAttributeIndicators{left:0}[dir=rtl] .cardProgramAttributeIndicators{right:0}.programAttributeIndicator{color:#fff;font-weight:500;padding:.18em .5em}.cardOverlayButton{color:hsla(0,0%,100%,.76);font-size:88%;margin:0;padding:.75em;z-index:1}.cardOverlayButton-br{bottom:0;position:absolute}[dir=ltr] .cardOverlayButton-br{right:0}[dir=rtl] .cardOverlayButton-br{left:0}.cardOverlayButtonIcon{-webkit-align-items:center;align-items:center;background-color:rgba(0,0,0,.7)!important;border-radius:100em;font-size:1.6695652174em!important;height:1.5em!important;-webkit-justify-content:center;justify-content:center;width:1.5em!important}.cardOverlayButton-centered,.cardOverlayButtonIcon,.cardOverlayButtonIcon.material-icons{display:-webkit-flex;display:flex}.cardOverlayButton-centered{background-color:rgba(0,0,0,.5)!important;border:.06em solid hsla(0,0%,100%,.6);bottom:auto;color:hsla(0,0%,100%,.76);font-size:112%;height:2.6em;left:50%;margin:-1.3em 0 0 -1.3em;padding:.38em!important;position:static;position:absolute;right:auto;top:50%;transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out,-webkit-transform .2s ease-out;width:2.6em}.backdropCard,.bannerCard{width:100%}.smallBackdropCard,.squareCard{width:50%}.portraitCard{width:33.3333333333%}.mixedPortraitCard{width:12em}.mixedSquareCard{width:18em}.mixedBackdropCard{width:32em}@media(min-width:25em){.backdropCard{width:50%}}@media(min-width:31.25em){.portraitCard,.smallBackdropCard,.squareCard{width:33.3333333333%}}@media(min-width:43.75em){.portraitCard,.squareCard{width:25%}}@media(min-width:48.125em){.backdropCard{width:33.3333333333%}}@media(min-width:50em){.bannerCard{width:50%}.portraitCard,.squareCard{width:20%}.smallBackdropCard{width:25%}}@media(min-width:62.5em){.smallBackdropCard{width:20%}}@media(min-width:75em){.backdropCard{width:25%}.portraitCard,.squareCard{width:16.6666666667%}.bannerCard{width:33.3333333333%}.smallBackdropCard{width:16.6666666667%}}@media(min-width:87.5em){.portraitCard,.smallBackdropCard,.squareCard{width:14.2857142857%}}@media(min-width:100em){.smallBackdropCard{width:12.5%}.backdropCard{width:20%}.portraitCard,.squareCard{width:12.5%}}@media(min-width:120em){.portraitCard,.squareCard{width:11.1111111111%}}@media(min-width:131.25em){.bannerCard{width:25%}.portraitCard,.squareCard{width:10%}}@media(min-width:156.25em){.backdropCard{width:16.6666666667%}}.itemsContainer-tv>.backdropCard{width:25%}.itemsContainer-tv>.portraitCard,.itemsContainer-tv>.squareCard{width:16.6666666667%}.overflowBackdropCard,.overflowSmallBackdropCard{width:72vw}.overflowPortraitCard,.overflowSquareCard{width:40vw}@media(min-width:25em){.overflowPortraitCard{width:31.2vw}}@media(min-width:35em){.overflowSquareCard{width:31.2vw}.overflowBackdropCard{width:45.5vw}.overflowSmallBackdropCard{width:30vw}}@media(min-width:43.75em){.overflowPortraitCard,.overflowSquareCard{width:23.1vw}}@media(min-width:48.125em){.overflowBackdropCard,.overflowSmallBackdropCard{width:30vw}}@media(orientation:landscape){.overflowBackdropCard,.overflowSmallBackdropCard{width:30vw}.overflowPortraitCard,.overflowSquareCard{width:23.1vw}}@media(orientation:landscape)and (min-width:48.125em){.overflowBackdropCard,.overflowSmallBackdropCard{width:23.1vw}}@media(orientation:landscape)and (min-width:50em){.overflowSmallBackdropCard{width:15.5vw}}@media(min-width:50em){.overflowPortraitCard,.overflowSquareCard{width:18.5vw}}@media(min-width:75em){.overflowBackdropCard,.overflowSmallBackdropCard{width:23.1vw}.overflowPortraitCard,.overflowSquareCard{width:15.5vw}}@media(min-width:87.5em){.overflowPortraitCard,.overflowSquareCard{width:13.3vw}}@media(min-width:100em){.overflowBackdropCard,.overflowSmallBackdropCard{width:18.7vw}.overflowPortraitCard,.overflowSquareCard{width:11.6vw}}@media(min-width:120em){.overflowPortraitCard,.overflowSquareCard{width:10.41vw}}@media(min-width:131.25em){.overflowPortraitCard,.overflowSquareCard{width:9.3vw}}@media(min-width:156.25em){.overflowBackdropCard,.overflowSmallBackdropCard{width:15.6vw}}.itemsContainer-tv>.overflowBackdropCard{width:23.5vw}.overflowBackdropCard-textCard{width:15.5vw!important}.overflowBackdropCard-textCardPadder{padding-bottom:87.75%}.itemsContainer-tv>.overflowPortraitCard,.itemsContainer-tv>.overflowSquareCard{width:15.6vw}.itemsContainer-tv>.overflowSmallBackdropCard{width:18.8vw}.cardOverlayContainer{background:rgba(0,0,0,.5);border-radius:.2em;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;transition:opacity .2s;-webkit-user-select:none;-ms-user-select:none;user-select:none}.visualCardBox .blurhash-canvas,.visualCardBox .cardContent,.visualCardBox .cardOverlayContainer{border-bottom-left-radius:0;border-bottom-right-radius:0}.card-hoverable:hover .cardOverlayContainer{opacity:1}.cardOverlayButton-hover{background:transparent;opacity:0;padding:.25em;transition:.2s}.cardOverlayButtonIcon-hover{background:transparent!important}.card-hoverable:hover .cardOverlayButton-hover{opacity:1}.cardOverlayContainer>.cardOverlayFab-primary{background-color:rgba(0,0,0,.7);font-size:130%;height:3em;left:50%;margin-left:-1.5em;margin-top:-1.5em;padding:0;position:absolute;top:50%;width:3em}.cardOverlayContainer>.cardOverlayFab-primary:hover{-webkit-transform:scale(1.4);transform:scale(1.4);transition:.2s}
16
16
  .screensaver-noScroll{overflow:hidden!important}
17
- @-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadein{0%{opacity:0}to{opacity:1}}.splashLogo{-webkit-animation:fadein .5s;animation:fadein .5s;background-image:url(icon-transparent.baba78f2a106d9baee83.png);background-position:50%;background-repeat:no-repeat;background-size:contain;height:30%;left:50%;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:30%}@media screen and (min-device-width:992px){.splashLogo{background-image:url(banner-light.b113d4d1c6c07fcb73f0.png)}}html{line-height:1.35}body,html{height:100%;margin:0;padding:0}body{background-color:transparent!important;overflow-x:hidden;-webkit-font-smoothing:antialiased}.clipForScreenReader{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.material-icons{-webkit-font-feature-settings:"liga";font-feature-settings:"liga"}.backgroundContainer{bottom:0;contain:strict;left:0;position:fixed;right:0;top:0}.layout-mobile,.layout-tv{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mainAnimatedPage{contain:style size!important}.pageContainer{overflow-x:visible!important}.bodyWithPopupOpen{overflow-y:hidden!important}div[data-role=page]{outline:0}.pageTitle{font-family:inherit;margin-top:0}.fieldDescription{font-weight:400;padding-left:.15em;white-space:normal!important}.fieldDescription+.fieldDescription{margin-top:.3em}.content-primary,.padded-bottom-page,.page,.pageWithAbsoluteTabs .pageTabContent{padding-bottom:5em!important;padding-bottom:calc(env(safe-area-inset-bottom) + 5em)!important}@media (min-width:50em){.readOnlyContent,form{max-width:54em}}.mediaInfoContent{margin-left:auto;margin-right:auto;width:85%}.headroom{transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;will-change:transform}.headroom--pinned{-webkit-transform:translateY(0);transform:translateY(0)}.headroom--unpinned{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.drawerContent{padding-bottom:4em}.force-scroll{overflow-y:scroll}.hide-scroll{overflow-y:hidden}.w-100{width:100%}.margin-auto-x{margin-left:auto;margin-right:auto}.margin-auto-y{margin-bottom:auto;margin-top:auto}
17
+ @-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadein{0%{opacity:0}to{opacity:1}}.splashLogo{-webkit-animation:fadein .5s;animation:fadein .5s;background-image:url(icon-transparent.baba78f2a106d9baee83.png);background-position:50%;background-repeat:no-repeat;background-size:contain;height:30%;left:50%;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:30%}@media screen and (min-device-width:992px){.splashLogo{background-image:url(banner-light.b113d4d1c6c07fcb73f0.png)}}html{font-family:Arial,Helvetica,sans-serif;line-height:1.35}body,html{height:100%;margin:0;padding:0}body{background-color:transparent!important;overflow-x:hidden;-webkit-font-smoothing:antialiased}.clipForScreenReader{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.material-icons{-webkit-font-feature-settings:"liga";font-feature-settings:"liga"}.backgroundContainer{bottom:0;contain:strict;left:0;position:fixed;right:0;top:0}.layout-mobile,.layout-tv{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mainAnimatedPage{contain:style size!important}.pageContainer{overflow-x:visible!important}.bodyWithPopupOpen{overflow-y:hidden!important}div[data-role=page]{outline:0}.pageTitle{font-family:inherit;margin-top:0}.fieldDescription{font-weight:400;padding-left:.15em;white-space:normal!important}.fieldDescription+.fieldDescription{margin-top:.3em}.content-primary,.padded-bottom-page,.page,.pageWithAbsoluteTabs .pageTabContent{padding-bottom:5em!important;padding-bottom:calc(env(safe-area-inset-bottom) + 5em)!important}@media (min-width:50em){.readOnlyContent,form{max-width:54em}}.mediaInfoContent{margin-left:auto;margin-right:auto;width:85%}.headroom{transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;will-change:transform}.headroom--pinned{-webkit-transform:translateY(0);transform:translateY(0)}.headroom--unpinned{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.drawerContent{padding-bottom:4em}.force-scroll{overflow-y:scroll}.hide-scroll{overflow-y:hidden}.w-100{width:100%}.margin-auto-x{margin-left:auto;margin-right:auto}.margin-auto-y{margin-bottom:auto;margin-top:auto}
18
18
  .guideVerticalScroller{padding-bottom:15em}@media (min-width:62.5em){#guideTab{padding-left:.5em}}#channelsTab .cardImageContainer{background-size:contain}
19
19
  .dashboardColumn,.dashboardSections{-webkit-flex-direction:column;flex-direction:column}.dashboardFooter{margin-top:3.5em;text-align:center}.dashboardFooter a{margin:0 .7em}progress{-webkit-appearance:none;appearance:none;background:#ccc!important;border:none;border-radius:.2em;margin:0}progress[role]:after{background-image:none}progress::-webkit-progress-bar{background:#ccc}progress::-moz-progress-bar{background-color:#00a4dc}progress::-webkit-progress-value{background-color:#00a4dc}progress[aria-valuenow]:before{background-color:#00a4dc;border-radius:.4em}.localnav{margin-bottom:2.2em!important}@media (min-width:50em){.type-interior>.ui-panel-content-wrap>div[data-role=content],.type-interior>div[data-role=content]{overflow:hidden;padding-left:0;padding-right:0;padding-top:0}}.dashboardDocument .dashboardEntryHeaderButton,.dashboardDocument .lnkManageServer{display:none!important}.adminDrawerLogo{display:none}.layout-mobile .adminDrawerLogo{border-bottom:1px solid #e0e0e0;display:block;margin-bottom:1em;padding:1.5em 1em 1.2em}.adminDrawerLogo img{height:4em}a[data-role=button]{background:#292929!important;background-clip:padding-box;-webkit-font-smoothing:antialiased;cursor:pointer!important;display:inline-block;font-family:inherit!important;font-weight:500!important;margin:0 .25em!important;padding:.8em 1em;text-align:center;-webkit-text-decoration:none!important;text-decoration:none!important;-webkit-user-select:none;-ms-user-select:none;user-select:none}div[data-role=controlgroup] a[data-role=button]{border-radius:0;box-shadow:none!important;display:inline-block!important;margin:0!important}div[data-role=controlgroup] a[data-role=button]:first-child{border-bottom-left-radius:.3125em;border-top-left-radius:.3125em}div[data-role=controlgroup] a[data-role=button]:last-child{border-bottom-right-radius:.3125em;border-top-right-radius:.3125em}[dir=ltr] div[data-role=controlgroup] a[data-role=button]+a[data-role=button]{border-left-width:0!important;margin:0 0 0 -.4em!important}[dir=rtl] div[data-role=controlgroup] a[data-role=button]+a[data-role=button]{border-right-width:0!important;margin:0 -.4em 0 0!important}div[data-role=controlgroup] a.ui-btn-active{background:#00a4dc!important;color:#292929!important}.sessionAppInfo img{margin-right:8px;max-height:2.5em;max-width:2.5em}.appLinks img{height:36px}.wizardContent h2 img{height:2.5em;margin-right:.5em;position:relative;top:-.3em;vertical-align:middle}.header .imageLink{display:inline-block}.header .imageLink img{height:2.1em;vertical-align:middle}.content-primary{padding-left:1em;padding-right:1em}.content-primary ul:first-child,.type-interior .content-primary>.sectionTitleContainer{margin-top:0}.dashboardColumn,.dashboardSections{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column}.dashboardColumn{-webkit-flex-grow:1;flex-grow:1;-webkit-flex-shrink:0;flex-shrink:0}.dashboardActionsContainer{margin:1em -.3em 0}.sessionNowPlayingContent{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:.2em;bottom:0;left:0;position:absolute;right:0;top:0}.activeSession:not(.playingSession) .sessionNowPlayingContent{display:none}.dashboardSection{-webkit-flex-shrink:0;flex-shrink:0;margin:0 0 2em}.dashboardSection h3{margin-bottom:.5em;margin-top:.5em}.dashboardSection .sectionTitleTextButton>.material-icons.material-icons{font-size:1.17em;margin-bottom:.5em;margin-top:.5em;padding-top:0}.activeRecordingItems>.card{width:50%}.localUsers .cardText-secondary{min-height:3em;white-space:pre-wrap}.localUsers .cardBox{height:100%}.customCssContainer textarea{resize:none}@media (min-width:70em){.dashboardSections{-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.dashboardColumn-2-60{-webkit-flex-grow:2;flex-grow:2}.dashboardSection{padding:0 1.5em}.activeRecordingItems>.card{width:25%}}.wizardContent{background:#fff;margin:0 auto;max-width:62em;padding:.5em 2em 1em}.wizardNavigation{text-align:right}.wizardContent form{max-width:100%}.scheduledTaskPaperIconItem{outline:0!important}.activeSession{min-width:10rem;width:100%!important}.activitylogUserPhoto{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:100%;height:1.71em;margin-right:.5em;width:1.71em}@media (min-width:50em){.activeSession{-webkit-flex-basis:50%;flex-basis:50%;-webkit-flex-grow:0;flex-grow:0;-webkit-flex-shrink:0;flex-shrink:0;max-width:25rem}}.sessionCardFooter{padding-bottom:1em!important;padding-top:.5em!important;position:relative;text-align:center}.sessionAppInfo{-webkit-flex-grow:1;flex-grow:1;overflow:hidden;padding:1em}.sessionCardButtons{min-height:2.7em}.sessionCardButton{margin:0}.sessionNowPlayingInnerContent{bottom:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;font-weight:400;left:0;position:absolute;right:0;top:0}.darkenContent{background:rgba(0,0,0,.7);color:#ddd}.sessionAppName{max-width:200px;vertical-align:top}.sessionNowPlayingDetails{display:-webkit-flex;display:flex}.sessionNowPlayingInfo{-webkit-flex-grow:1;flex-grow:1;padding:1em;text-overflow:ellipsis}.sessionNowPlayingName{font-size:.8em}.sessionNowPlayingTime{-webkit-align-self:flex-end;align-self:flex-end;-webkit-flex-shrink:0;flex-shrink:0;padding:1em;text-overflow:ellipsis}.playbackProgress,.transcodingProgress{background:transparent!important;margin:0;width:100%}.activeSession .backgroundProgress,.activeSession .playbackProgress,.activeSession .transcodingProgress{bottom:0;height:6px;left:0;position:absolute;right:0;width:100%}.playbackProgress>div{background-color:#00a4dc;z-index:1000}.transcodingProgress>div{background-color:#dd4919;z-index:10}.backgroundProgress>div{background-color:#303030}@media (max-width:34.375em){.sessionAppName{max-width:160px}}@media (max-width:31.25em){.sessionAppName{max-width:150px}}.disabledUser{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.disabledUserBanner{margin:0 0 2em}.appLinks a{-webkit-text-decoration:none!important;text-decoration:none!important}.appLinks a+a{margin-left:5px}@-webkit-keyframes rotating{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotating{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.rotatingCircle{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.pluginPreviewImg{box-shadow:0 .0725em .29em 0 rgba(0,0,0,.37)}.ui-bar-a{padding:0 20px;text-align:center}
20
20
  .detailTableBodyCell,.detailTableHeaderCell{border-spacing:0;padding:.4em}.detailTable{border-collapse:collapse;border-spacing:0;margin:0 auto;text-align:left;width:100%}.detailTableHeaderCell{font-weight:700;text-align:left;vertical-align:top}