@mibmo/jellyfin-tizen 10.11.2 → 10.11.4

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 (32) hide show
  1. package/package.json +1 -1
  2. package/tizen-adapter.js +1 -1
  3. package/www/{39469.e067140002163d16df30.chunk.js → 39469.4a76a57fffdd9469adfa.chunk.js} +2 -2
  4. package/www/{6496.dc81e659db436fe4613e.chunk.js → 6496.106e03ed2cb3c2498e7b.chunk.js} +1 -1
  5. package/www/{8575.ceceb0f42894574769e6.chunk.js → 8575.22b3385f8c1742fe35c4.chunk.js} +1 -1
  6. package/www/99883.23415867662c89aaf373.chunk.js +1 -0
  7. package/www/bookPlayer-plugin.1e8df074e96d7fd0bdf1.chunk.js +2 -0
  8. package/www/bookPlayer-plugin.55f809614832cbd9cf79.css +1 -0
  9. package/www/bookPlayer-style-scss.55f809614832cbd9cf79.css +1 -0
  10. package/www/bookPlayer-tableOfContents.cc6c9a91fae86466c8d3.chunk.js +1 -0
  11. package/www/index.9d491a5deddd76357735.chunk.js +1 -0
  12. package/www/index.html +1 -1
  13. package/www/libraries.4988e265e604bcb0e445.chunk.js +1 -0
  14. package/www/livetv.4bd6d57d987391d091b0.chunk.js +1 -0
  15. package/www/{logs-file.89210666c52de5a5afb1.chunk.js → logs-file.80ee8477c3ba25f2f174.chunk.js} +1 -1
  16. package/www/main.jellyfin.bundle.js +1 -1
  17. package/www/{plugins.25735003c1d090587fb9.chunk.js → plugins.79d12abe5ee75e209e7e.chunk.js} +1 -1
  18. package/www/runtime.bundle.js +1 -1
  19. package/www/user-display-index-tsx.5d6a937128d50ad685da.chunk.js +1 -0
  20. package/www/user-display.23e977a15a8f5304c38c.chunk.js +1 -0
  21. package/www/99883.5844681b34492722e137.chunk.js +0 -1
  22. package/www/bookPlayer-plugin.038efd75cde59c3a0140.css +0 -1
  23. package/www/bookPlayer-plugin.bbb45ad74a411ea42943.chunk.js +0 -2
  24. package/www/bookPlayer-style-scss.038efd75cde59c3a0140.css +0 -1
  25. package/www/bookPlayer-tableOfContents.4c2a21b364f2b6fc7860.chunk.js +0 -1
  26. package/www/index.7c072432f17194a39ef4.chunk.js +0 -1
  27. package/www/libraries.db1b6d7ee092583eeac8.chunk.js +0 -1
  28. package/www/livetv.457ec4dc72eb4ce1054b.chunk.js +0 -1
  29. package/www/user-display-index-tsx.13984a81e75033e273a2.chunk.js +0 -1
  30. package/www/user-display.03cae5ca6911879fd063.chunk.js +0 -1
  31. /package/www/{39469.e067140002163d16df30.chunk.js.LICENSE.txt → 39469.4a76a57fffdd9469adfa.chunk.js.LICENSE.txt} +0 -0
  32. /package/www/{bookPlayer-plugin.bbb45ad74a411ea42943.chunk.js.LICENSE.txt → bookPlayer-plugin.1e8df074e96d7fd0bdf1.chunk.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mibmo/jellyfin-tizen",
3
- "version": "10.11.2",
3
+ "version": "10.11.4",
4
4
  "description": "Jellyfin for Samsung Smart TV (Tizen)",
5
5
  "repository": {
6
6
  "type": "git",
package/tizen-adapter.js CHANGED
@@ -4,7 +4,7 @@
4
4
  const currentApplication = {
5
5
  appInfo: {
6
6
  // Just emulate the value cause I don't see any sense to provide TizenBrew version here
7
- version: '10.11.2'
7
+ version: '10.11.4'
8
8
  },
9
9
  exit: () => {
10
10
  // cannot do anything about it :(
@@ -1,2 +1,2 @@
1
- /*! For license information please see 39469.e067140002163d16df30.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[39469],{39469:function(t,e,r){r.r(e),r(29305),r(32733),r(84701),r(2623),r(44962),r(10849),r(70389),r(36947),r(26437),r(52697),r(78557),r(90076),r(45309),r(83994),r(82367);var n=r(53096),o=r(6940),i=r(67430),a=r(75384);function c(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return u(s,"_invoke",function(r,n,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function d(r,n){for(c=r,u=n,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];r>3?(o=y===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,p.v=n,p.n=i[1]):d<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,p.n=y,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(r,o,i),!0),s}var a={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(u(e={},n,(function(){return this})),e),d=f.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,u(d,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(d),u(d,o,"Generator"),u(d,n,(function(){return this})),u(d,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:i,m:y}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){u(t,e,(function(t){return this._invoke(e,r,t)}))};i("next",0),i("throw",1),i("return",2)}},u(t,e,r,n)}function l(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function s(t,e){return function(){var r={Fields:"PrimaryImageAspectRatio",EnableImageTypes:"Primary,Backdrop,Banner,Thumb",UserId:t.getCurrentUserId()};return t.getJSON(t.getUrl("Playlists/".concat(e,"/Items"),r))}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r){return o.A.getListViewHtml({items:r,showIndex:!1,playFromHere:!0,action:"playallfromhere",smallIcon:!0,dragHandle:e,playlistId:t,showParentTitle:!0})}}function p(){var t;return t=c().m((function t(e,r){var o,u,l,p,d,y;return c().w((function(t){for(;;)switch(t.n){case 0:return o=i.tF.getApiClient(r.ServerId),u=(0,a.C)(o),l=!1,t.n=1,(0,n.C)(u).getPlaylistUser({playlistId:r.Id,userId:o.getCurrentUserId()}).catch((function(t){return console.info("[PlaylistViewer] Failed to fetch playlist permissions",t),{data:{}}}));case 1:p=t.v,d=p.data,l=!!d.CanEdit,(y=e.querySelector("#childrenContent .itemsContainer")).classList.add("vertical-list"),y.classList.remove("vertical-wrap"),y.enableDragReordering(l),y.fetchData=s(o,r.Id),y.getItemsHtml=f(r.Id,l);case 2:return t.a(2)}}),t)})),p=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,c,"next",t)}function c(t){l(i,n,o,a,c,"throw",t)}a(void 0)}))},p.apply(this,arguments)}function d(t){t.querySelector("#childrenContent").classList.add("verticalSection-extrabottompadding"),t.querySelector("#childrenContent .itemsContainer").refreshItems()}var y={render:function(t,e){t.playlistInit?d(t):(t.playlistInit=!0,function(t,e){return p.apply(this,arguments)}(t,e).finally((function(){d(t)})))}};e.default=y}}]);
1
+ /*! For license information please see 39469.4a76a57fffdd9469adfa.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[39469],{39469:function(t,e,r){r.r(e),r(29305),r(32733),r(84701),r(2623),r(44962),r(10849),r(70389),r(36947),r(26437),r(52697),r(78557),r(90076),r(45309),r(83994),r(82367);var n=r(53096),o=r(6940),i=r(67430),a=r(75384);function c(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return u(s,"_invoke",function(r,n,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function d(r,n){for(c=r,u=n,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];r>3?(o=y===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,p.v=n,p.n=i[1]):d<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,p.n=y,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(r,o,i),!0),s}var a={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(u(e={},n,(function(){return this})),e),d=f.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,u(d,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(d),u(d,o,"Generator"),u(d,n,(function(){return this})),u(d,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:i,m:y}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){u(t,e,(function(t){return this._invoke(e,r,t)}))};i("next",0),i("throw",1),i("return",2)}},u(t,e,r,n)}function l(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function s(t,e){return function(){var r={Fields:"PrimaryImageAspectRatio,MediaSourceCount,Chapters,Trickplay",EnableImageTypes:"Primary,Backdrop,Banner,Thumb",UserId:t.getCurrentUserId()};return t.getJSON(t.getUrl("Playlists/".concat(e,"/Items"),r))}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r){return o.A.getListViewHtml({items:r,showIndex:!1,playFromHere:!0,action:"playallfromhere",smallIcon:!0,dragHandle:e,playlistId:t,showParentTitle:!0})}}function p(){var t;return t=c().m((function t(e,r){var o,u,l,p,d,y;return c().w((function(t){for(;;)switch(t.n){case 0:return o=i.tF.getApiClient(r.ServerId),u=(0,a.C)(o),l=!1,t.n=1,(0,n.C)(u).getPlaylistUser({playlistId:r.Id,userId:o.getCurrentUserId()}).catch((function(t){return console.info("[PlaylistViewer] Failed to fetch playlist permissions",t),{data:{}}}));case 1:p=t.v,d=p.data,l=!!d.CanEdit,(y=e.querySelector("#childrenContent .itemsContainer")).classList.add("vertical-list"),y.classList.remove("vertical-wrap"),y.enableDragReordering(l),y.fetchData=s(o,r.Id),y.getItemsHtml=f(r.Id,l);case 2:return t.a(2)}}),t)})),p=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,c,"next",t)}function c(t){l(i,n,o,a,c,"throw",t)}a(void 0)}))},p.apply(this,arguments)}function d(t){t.querySelector("#childrenContent").classList.add("verticalSection-extrabottompadding"),t.querySelector("#childrenContent .itemsContainer").refreshItems()}var y={render:function(t,e){t.playlistInit?d(t):(t.playlistInit=!0,function(t,e){return p.apply(this,arguments)}(t,e).finally((function(){d(t)})))}};e.default=y}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6496],{22776:function(e,r,n){function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function a(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,r);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)?t(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}n.d(r,{A:function(){return a}})},40694:function(e,r,n){function t(e){return t="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},t(e)}n.d(r,{A:function(){return t}})},41705:function(e,r,n){n.d(r,{A:function(){return a}});var t=n(92162);function a(e,r,n){return(r=(0,t.A)(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}},41906:function(e,r,n){n.d(r,{Y:function(){return d}});var t=n(62864),a=n(63696),o=n(5898),i=n(93721),s=n(28626),l=function(e,r,n,t){return new(n||(n=Promise))((function(a,o){function i(e){try{l(t.next(e))}catch(e){o(e)}}function s(e){try{l(t.throw(e))}catch(e){o(e)}}function l(e){var r;e.done?a(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,s)}l((t=t.apply(e,r||[])).next())}))},c=function(e,r){var n,t,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(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,t&&(a=2&s[0]?t.return:s[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,s[1])).done)return a;switch(t=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++,t=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=r.call(e,o)}catch(e){s=[6,e],t=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},u=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i};function d(){var e=this,r=(0,s.Q)(),n=r.dateTimeLocale,d=r.language,f=u((0,a.useState)(t.A),2),h=f[0],p=f[1],y=(0,a.useMemo)((function(){return(0,o.Tl)(d||(0,o.i5)())}),[d]),b=(0,a.useMemo)((function(){return n?(0,o.Tl)(n):y}),[n,y]);return(0,a.useEffect)((function(){l(e,void 0,void 0,(function(){var e,r;return c(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,i.Fq)((0,i.QC)(b))];case 1:return e=n.sent(),p(e),[3,3];case 2:return r=n.sent(),console.warn("[useLocale] failed to fetch dateFns locale",r),[3,3];case 3:return[2]}}))}))}),[b]),{locale:y,dateTimeLocale:b,dateFnsLocale:h}}},42305:function(e,r,n){n.d(r,{L:function(){return l}});var t=n(8280),a=n(80401),o=n(48272),i=n(69410),s=function(e){return(0,t.j)({queryKey:["SystemInfo"],queryFn:function(r){var n=r.signal;return function(e,r){return n=void 0,t=void 0,i=function(){return function(e,r){var n,t,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(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,t&&(a=2&s[0]?t.return:s[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,s[1])).done)return a;switch(t=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++,t=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=r.call(e,o)}catch(e){s=[6,e],t=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(n){switch(n.label){case 0:return[4,(0,o.c)(e).getSystemInfo(r)];case 1:return[2,n.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(r){var n;r.done?e(r.value):(n=r.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,s)}l((i=i.apply(n,t||[])).next())}));var n,t,a,i}(e,{signal:n,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},l=function(){var e=(0,i.gf)().api;return(0,a.I)(s(e))}},42458:function(e,r,n){var t=n(62540),a=n(92779),o=n(44790),i=n(60434),s=(n(63696),n(42305)),l=n(95858),c=n(90830);r.A=function(){var e=(0,s.L)().data;return(0,t.jsxs)(l.A,{to:"/",children:[(0,t.jsx)(o.A,{sx:{minWidth:56},children:(0,t.jsx)(a.A,{component:"img",src:c,sx:{height:"2.5rem"}})}),(0,t.jsx)(i.A,{primary:(null==e?void 0:e.ServerName)||"Jellyfin",secondary:null==e?void 0:e.Version,slotProps:{primary:{variant:"h6"}}})]})}},48183:function(e,r,n){n.d(r,{A:function(){return o}});var t=n(92162);function a(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,t.A)(a.key),a)}}function o(e,r,n){return r&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},50171:function(e,r,n){n.d(r,{A:function(){return a}});var t=n(91576);function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&(0,t.A)(e,r)}},64174:function(e,r,n){n.d(r,{d:function(){return c}});var t=n(62540),a=n(92779),o=n(19983),i=n(54710),s=n(25295),l=(n(63696),n(34789)),c=240;r.A=function(e){var r=e.children,n=e.open,u=void 0!==n&&n,d=e.onClose,f=e.onOpen;return(0,s.A)((function(e){return e.breakpoints.up("md")}))?(0,t.jsx)(o.Ay,{sx:{width:c,flexShrink:0,"& .MuiDrawer-paper":{width:c,paddingBottom:"4.2rem",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:r}):(0,t.jsx)(i.A,{anchor:"left",open:u,onClose:d,onOpen:f,disableDiscovery:l.A.iOS,ModalProps:{keepMounted:!0},children:(0,t.jsx)(a.A,{role:"presentation",onClick:d,onKeyDown:d,children:r})})}},69799:function(e,r,n){function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}n.d(r,{A:function(){return s}});var o=n(40694),i=n(72367);function s(e){var r=a();return function(){var n,a=t(e);if(r){var s=t(this).constructor;n=Reflect.construct(a,arguments,s)}else n=a.apply(this,arguments);return function(e,r){if(r&&("object"==(0,o.A)(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}(this,n)}}},75785:function(e,r,n){var t=n(21122),a=n(63696);r.A=function(e){var r=e.children,n=e.elevate,o=void 0!==n&&n,i=(0,t.A)({disableHysteresis:!0,threshold:0}),s=o||i;return a.cloneElement(r,{color:s?"default":"transparent",elevation:s?4:0})}},83565:function(e,r,n){var t;n.d(r,{k:function(){return t}}),function(e){e.ConfigurationPages="ConfigurationPages",e.Packages="Packages",e.Plugins="Plugins",e.Repositories="Repositories"}(t||(t={}))},85069:function(e,r,n){n.d(r,{q:function(){return c}});var t=n(55990),a=n(8280),o=n(80401),i=n(69410),s=n(83565),l=function(e,r){return(0,a.j)({queryKey:[s.k.ConfigurationPages,null==r?void 0:r.enableInMainMenu],queryFn:function(n){var a=n.signal;return function(e,r,n){return a=void 0,o=void 0,s=function(){return function(e,r){var n,t,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(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,t&&(a=2&s[0]?t.return:s[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,s[1])).done)return a;switch(t=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++,t=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=r.call(e,o)}catch(e){s=[6,e],t=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(a){switch(a.label){case 0:return[4,(0,t.T)(e).getConfigurationPages(r,n)];case 1:return[2,a.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function t(e){try{l(s.throw(e))}catch(e){r(e)}}function l(r){var a;r.done?e(r.value):(a=r.value,a instanceof i?a:new i((function(e){e(a)}))).then(n,t)}l((s=s.apply(a,o||[])).next())}));var a,o,i,s}(e,r,{signal:a})},enabled:!!e})},c=function(e){var r=(0,i.gf)().api;return(0,o.I)(l(r,e))}},86336:function(e,r,n){n.r(r),n.d(r,{Component:function(){return me}});var t=n(62540),a=n(93663),o=n(92779),i=n(25295),s=n(92218),l=n(71991),c=n(63696),u=n(87404),d=n(13258),f=n(87119),h=n(87214),p=n(75785),y=n(64174),b=n(70267),A=n(30224),x=n(69410),v=n(41906),j=n(4994),g=n(26445),m=n(23125),w=n(98526),P=n(9055),k=n(71286),S=n(44797),O=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i},T=(0,m.A)((function(){return window.dispatchEvent(new Event("resize"))}),100),C=function(e){var r=e.isDrawerOpen,n=(0,c.useRef)(document),a=O((0,c.useState)(0),2),o=a[0],s=a[1],l=O((0,c.useState)(),2),u=l[0],d=l[1],f=(0,i.A)((function(e){return e.breakpoints.up("sm")})),h=(0,c.useCallback)((function(e,r,n,t){void 0===n&&(n=0),s(n),(0,w.A)(u,t)||d(t)}),[u]);return(0,c.useEffect)((function(){var e=n.current;return e&&S.A.on(e,k.B.SET_TABS,h),function(){e&&S.A.off(e,k.B.SET_TABS,h)}}),[h]),(0,c.useEffect)((function(){T()}),[r]),(null==u?void 0:u.length)?(0,t.jsx)(g.A,{value:o,sx:{width:"100%",flexShrink:{xs:0,lg:"unset"},order:{xs:100,lg:"unset"}},variant:f?"standard":"scrollable",centered:f,children:u.map((function(e,r){var n=e.href,a=e.name;return(0,t.jsx)(j.A,{label:a,"data-tab-index":"".concat(r),component:P.N_,to:n},"tab-".concat(a))}))}):null},D=n(35117),E=n(28335),I=n(42458),L=n(23849),B=n(960),H=n(91480),M=n(17071),_=n(80434),N=n(63774),R=n(32051),q=n(94568),z=n(11041),F=n(79772),G=n(44790),U=n(60434),V=n(80099),K=n(95858),W=n(5898),J=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i},Q=["/dashboard/libraries","/dashboard/libraries/display","/dashboard/libraries/metadata","/dashboard/libraries/nfo"],Y=["/dashboard/playback/transcoding","/dashboard/playback/resume","/dashboard/playback/streaming","/dashboard/playback/trickplay"],$=function(){var e=(0,u.zy)(),r=J((0,c.useState)(Q.includes(e.pathname)),2),n=r[0],a=r[1],o=J((0,c.useState)(Y.includes(e.pathname)),2),i=o[0],s=o[1],l=(0,c.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),a((function(e){return!e}))}),[]),d=(0,c.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),s((function(e){return!e}))}),[]);return(0,t.jsxs)(E.A,{"aria-labelledby":"server-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"server-subheader",children:W.Ay.translate("TabServer")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(L.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabDashboard")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/settings",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(q.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("General")})]})}),(0,t.jsxs)(K.A,{to:"/dashboard/branding",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(_.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderBranding")})]}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/users",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(N.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderUsers")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(F.A,{onClick:l,children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(M.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderLibraries")}),n?(0,t.jsx)(B.A,{}):(0,t.jsx)(H.A,{})]})}),(0,t.jsx)(z.A,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,t.jsxs)(E.A,{component:"div",disablePadding:!0,children:[(0,t.jsx)(K.A,{to:"/dashboard/libraries",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("HeaderLibraries")})}),(0,t.jsx)(K.A,{to:"/dashboard/libraries/display",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("Display")})}),(0,t.jsx)(K.A,{to:"/dashboard/libraries/metadata",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("LabelMetadata")})}),(0,t.jsx)(K.A,{to:"/dashboard/libraries/nfo",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("TabNfoSettings")})})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(F.A,{onClick:d,children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(R.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TitlePlayback")}),i?(0,t.jsx)(B.A,{}):(0,t.jsx)(H.A,{})]})}),(0,t.jsx)(z.A,{in:i,timeout:"auto",unmountOnExit:!0,children:(0,t.jsxs)(E.A,{component:"div",disablePadding:!0,children:[(0,t.jsx)(K.A,{to:"/dashboard/playback/transcoding",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("Transcoding")})}),(0,t.jsx)(K.A,{to:"/dashboard/playback/resume",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("ButtonResume")})}),(0,t.jsx)(K.A,{to:"/dashboard/playback/streaming",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("TabStreaming")})}),(0,t.jsx)(K.A,{to:"/dashboard/playback/trickplay",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("Trickplay")})})]})})]})},X=n(95041),Z=n(34266),ee=function(){return(0,t.jsxs)(E.A,{"aria-labelledby":"devices-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"devices-subheader",children:W.Ay.translate("HeaderDevices")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/devices",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(Z.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderDevices")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/activity",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(X.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderActivity")})]})})]})},re=n(56465),ne=n(84917),te=function(){return(0,t.jsxs)(E.A,{"aria-labelledby":"livetv-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"livetv-subheader",children:W.Ay.translate("LiveTV")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/livetv",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ne.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("LiveTV")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/livetv/recordings",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(re.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderDVR")})]})})]})},ae=n(18203),oe=n(74655),ie=n(48066),se=n(88776),le=n(68922),ce=function(){return(0,t.jsxs)(E.A,{"aria-labelledby":"advanced-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"advanced-subheader",children:W.Ay.translate("TabAdvanced")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/networking",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ie.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabNetworking")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/keys",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(le.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderApiKeys")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/backups",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(oe.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderBackups")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/logs",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ae.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabLogs")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/tasks",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(se.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabScheduledTasks")})]})})]})},ue=n(65612),de=n(82225),fe=n(89100),he=n(85069),pe=function(){var e=(0,he.q)({enableInMainMenu:!0}),r=e.data,n=e.error;return(0,c.useEffect)((function(){n&&console.error("[PluginDrawerSection] unable to fetch plugin config pages",n)}),[n]),(0,t.jsxs)(E.A,{"aria-labelledby":"plugins-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"plugins-subheader",children:W.Ay.translate("TabPlugins")}),children:[(0,t.jsxs)(K.A,{to:"/dashboard/plugins",includePaths:["/configurationpage","/dashboard/plugins/repositories"],excludePaths:null==r?void 0:r.map((function(e){return"/".concat(fe.default.getPluginUrl(e.Name))})),children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ue.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabPlugins")})]}),null==r?void 0:r.map((function(e){return(0,t.jsxs)(K.A,{to:"/".concat(fe.default.getPluginUrl(e.Name)),children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(de.A,{})}),(0,t.jsx)(U.A,{primary:e.DisplayName})]},e.PluginId)}))]})},ye=function(e){var r=e.open,n=void 0!==r&&r,a=e.onClose,o=e.onOpen;return(0,t.jsxs)(y.A,{open:n,onClose:a,onOpen:o,children:[(0,t.jsx)(E.A,{disablePadding:!0,children:(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsx)(I.A,{})})}),(0,t.jsx)($,{}),(0,t.jsx)(ee,{}),(0,t.jsx)(te,{}),(0,t.jsx)(pe,{}),(0,t.jsx)(ce,{})]})},be=n(37714),Ae=n(75487),xe=n(72073),ve=[{paths:["/dashboard/devices"],url:"https://jellyfin.org/docs/general/server/devices"},{paths:["/dashboard/libraries"],url:"https://jellyfin.org/docs/general/server/libraries"},{paths:["/dashboard/livetv","/dashboard/livetv/tuner","/dashboard/recordings"],url:"https://jellyfin.org/docs/general/server/live-tv/"},{paths:["/dashboard/livetv/guide"],url:"https://jellyfin.org/docs/general/server/live-tv/setup-guide#adding-guide-data"},{paths:["/dashboard/networking"],url:"https://jellyfin.org/docs/general/networking/"},{paths:["/dashboard/playback/transcoding"],url:"https://jellyfin.org/docs/general/server/transcoding"},{paths:["/dashboard/plugins"],url:"https://jellyfin.org/docs/general/server/plugins/"},{paths:["/dashboard/plugins/repositories"],url:"https://jellyfin.org/docs/general/server/plugins/#repositories"},{paths:["/dashboard/branding","/dashboard/settings"],url:"https://jellyfin.org/docs/general/server/settings"},{paths:["/dashboard/tasks"],url:"https://jellyfin.org/docs/general/server/tasks"},{paths:["/dashboard/users"],url:"https://jellyfin.org/docs/general/server/users/adding-managing-users"},{paths:["/dashboard/users/access","/dashboard/users/parentalcontrol","/dashboard/users/password","/dashboard/users/profile"],url:"https://jellyfin.org/docs/general/server/users/"}],je=function(){return(0,t.jsx)(u.BV,{children:ve.map((function(e){var r=e.paths,n=e.url;return r.map((function(e){return(0,t.jsx)(u.qh,{path:e,element:(0,t.jsx)(xe.A,{title:W.Ay.translate("Help"),children:(0,t.jsx)(Ae.A,{href:n,rel:"noopener noreferrer",target:"_blank",size:"large",color:"inherit",children:(0,t.jsx)(be.A,{})})})},[n,e].join("-"))}))})).flat()})},ge=n(7603),me=function(){var e=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}((0,c.useState)(!1),2),r=e[0],n=e[1],j=(0,u.zy)(),g=(0,x.gf)().user,m=(0,v.Y)().dateFnsLocale,w=(0,i.A)((function(e){return e.breakpoints.up("md")})),P=j.pathname.startsWith("/".concat(ge.DASHBOARD_APP_PATHS.MetadataManager)),k=Boolean(g)&&!P,S=r&&k,O=(0,c.useCallback)((function(){n(!r)}),[r,n]);return(0,c.useEffect)((function(){return document.body.classList.add("dashboardDocument"),function(){document.body.classList.remove("dashboardDocument")}}),[]),(0,t.jsxs)(s.$,{dateAdapter:l.h,adapterLocale:m,children:[(0,t.jsxs)(o.A,{sx:{display:"flex"},children:[(0,t.jsxs)(c.StrictMode,{children:[(0,t.jsx)(p.A,{elevate:!1,children:(0,t.jsx)(a.A,{position:"fixed",sx:{width:{xs:"100%",md:k?"calc(100% - ".concat(y.d,"px)"):"100%"},ml:{xs:0,md:k?y.d:0}},children:(0,t.jsxs)(f.A,{isBackButtonAvailable:b.appRouter.canGoBack(),isDrawerAvailable:!w&&k,isDrawerOpen:S,onDrawerButtonClick:O,buttons:(0,t.jsx)(je,{}),children:[P&&(0,t.jsx)(h.A,{}),(0,t.jsx)(C,{isDrawerOpen:S})]})})}),k&&(0,t.jsx)(ye,{open:S,onClose:O,onOpen:O})]}),(0,t.jsx)(o.A,{component:"main",sx:{width:"100%",flexGrow:1},children:(0,t.jsx)(d.A,{children:(0,t.jsx)(u.sv,{})})})]}),(0,t.jsx)(A.A,{dashboard:!0})]})}},87214:function(e,r,n){var t=n(62540),a=n(90830),o=n(63703),i=(n(63696),n(9055)),s=n(42305);r.A=function(){var e=(0,s.L)(),r=e.data,n=e.isPending;return(0,t.jsx)(o.A,{variant:"text",size:"large",color:"inherit",startIcon:(0,t.jsx)("img",{src:a,alt:"","aria-hidden":!0,style:{maxHeight:"1.25em",maxWidth:"1.25em"}}),component:i.N_,to:"/",children:n?"":(null==r?void 0:r.ServerName)||"Jellyfin"})}},90830:function(e,r,n){e.exports=n.p+"icon-transparent.baba78f2a106d9baee83.png"},92099:function(e,r,n){function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}n.d(r,{A:function(){return t}})},92162:function(e,r,n){n.d(r,{A:function(){return a}});var t=n(40694);function a(e){var r=function(e){if("object"!=(0,t.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=(0,t.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,t.A)(r)?r:r+""}},95858:function(e,r,n){var t=n(62540),a=n(79772),o=(n(63696),n(87404)),i=n(9055),s=function(){return s=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var a in r=arguments[n])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},s.apply(this,arguments)},l=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i};r.A=function(e){var r=e.children,n=e.to,c=e.includePaths,u=void 0===c?[]:c,d=e.excludePaths,f=void 0===d?[]:d,h=function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(n[t[a]]=e[t[a]])}return n}(e,["children","to","includePaths","excludePaths"]),p=(0,o.zy)(),y=l((0,i.ok)(),1)[0],b=l(n.split("?"),2),A=b[0],x=b[1],v=new URLSearchParams("?".concat(x)),j=function(e,r,n){if(n||2===arguments.length)for(var t,a=0,o=r.length;a<o;a++)!t&&a in r||(t||(t=Array.prototype.slice.call(r,0,a)),t[a]=r[a]);return e.concat(t||Array.prototype.slice.call(r))}([A],l(u),!1).includes(p.pathname)&&!f.includes(p.pathname+p.search)&&(!x||function(e,r){var n,t;try{for(var a=function(e){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&e[r],t=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=a.next();!o.done;o=a.next()){var i=o.value;if(r.get(i[0])!==i[1])return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return!0}(v,y));return(0,t.jsx)(a.A,s({component:i.N_,to:n,selected:j},h,{children:r}))}}}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6496],{22776:function(e,r,n){function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function a(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,r);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)?t(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}n.d(r,{A:function(){return a}})},40694:function(e,r,n){function t(e){return t="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},t(e)}n.d(r,{A:function(){return t}})},41705:function(e,r,n){n.d(r,{A:function(){return a}});var t=n(92162);function a(e,r,n){return(r=(0,t.A)(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}},41906:function(e,r,n){n.d(r,{Y:function(){return d}});var t=n(62864),a=n(63696),o=n(5898),i=n(93721),s=n(28626),l=function(e,r,n,t){return new(n||(n=Promise))((function(a,o){function i(e){try{l(t.next(e))}catch(e){o(e)}}function s(e){try{l(t.throw(e))}catch(e){o(e)}}function l(e){var r;e.done?a(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,s)}l((t=t.apply(e,r||[])).next())}))},c=function(e,r){var n,t,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(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,t&&(a=2&s[0]?t.return:s[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,s[1])).done)return a;switch(t=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++,t=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=r.call(e,o)}catch(e){s=[6,e],t=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},u=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i};function d(){var e=this,r=(0,s.Q)(),n=r.dateTimeLocale,d=r.language,f=u((0,a.useState)(t.A),2),h=f[0],p=f[1],y=(0,a.useMemo)((function(){return(0,o.Tl)(d||(0,o.i5)())}),[d]),b=(0,a.useMemo)((function(){return n?(0,o.Tl)(n):y}),[n,y]);return(0,a.useEffect)((function(){l(e,void 0,void 0,(function(){var e,r;return c(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,i.Fq)((0,i.QC)(b))];case 1:return e=n.sent(),p(e),[3,3];case 2:return r=n.sent(),console.warn("[useLocale] failed to fetch dateFns locale",r),[3,3];case 3:return[2]}}))}))}),[b]),{locale:y,dateTimeLocale:b,dateFnsLocale:h}}},42305:function(e,r,n){n.d(r,{L:function(){return l}});var t=n(8280),a=n(80401),o=n(48272),i=n(69410),s=function(e){return(0,t.j)({queryKey:["SystemInfo"],queryFn:function(r){var n=r.signal;return function(e,r){return n=void 0,t=void 0,i=function(){return function(e,r){var n,t,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(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,t&&(a=2&s[0]?t.return:s[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,s[1])).done)return a;switch(t=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++,t=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=r.call(e,o)}catch(e){s=[6,e],t=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(n){switch(n.label){case 0:return[4,(0,o.c)(e).getSystemInfo(r)];case 1:return[2,n.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(r){var n;r.done?e(r.value):(n=r.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,s)}l((i=i.apply(n,t||[])).next())}));var n,t,a,i}(e,{signal:n,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},l=function(){var e=(0,i.gf)().api;return(0,a.I)(s(e))}},42458:function(e,r,n){var t=n(62540),a=n(92779),o=n(44790),i=n(60434),s=(n(63696),n(42305)),l=n(95858),c=n(90830);r.A=function(){var e=(0,s.L)().data;return(0,t.jsxs)(l.A,{to:"/",children:[(0,t.jsx)(o.A,{sx:{minWidth:56},children:(0,t.jsx)(a.A,{component:"img",src:c,sx:{height:"2.5rem"}})}),(0,t.jsx)(i.A,{primary:(null==e?void 0:e.ServerName)||"Jellyfin",secondary:null==e?void 0:e.Version,slotProps:{primary:{variant:"h6"}}})]})}},48183:function(e,r,n){n.d(r,{A:function(){return o}});var t=n(92162);function a(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,t.A)(a.key),a)}}function o(e,r,n){return r&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},50171:function(e,r,n){n.d(r,{A:function(){return a}});var t=n(91576);function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&(0,t.A)(e,r)}},64174:function(e,r,n){n.d(r,{d:function(){return c}});var t=n(62540),a=n(92779),o=n(19983),i=n(54710),s=n(25295),l=(n(63696),n(34789)),c=240;r.A=function(e){var r=e.children,n=e.open,u=void 0!==n&&n,d=e.onClose,f=e.onOpen;return(0,s.A)((function(e){return e.breakpoints.up("md")}))?(0,t.jsx)(o.Ay,{sx:{width:c,flexShrink:0,"& .MuiDrawer-paper":{width:c,paddingBottom:"4.2rem",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:r}):(0,t.jsx)(i.A,{anchor:"left",open:u,onClose:d,onOpen:f,disableDiscovery:l.A.iOS,ModalProps:{keepMounted:!0},children:(0,t.jsx)(a.A,{role:"presentation",onClick:d,onKeyDown:d,children:r})})}},69799:function(e,r,n){function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}n.d(r,{A:function(){return s}});var o=n(40694),i=n(72367);function s(e){var r=a();return function(){var n,a=t(e);if(r){var s=t(this).constructor;n=Reflect.construct(a,arguments,s)}else n=a.apply(this,arguments);return function(e,r){if(r&&("object"==(0,o.A)(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}(this,n)}}},75785:function(e,r,n){var t=n(21122),a=n(63696);r.A=function(e){var r=e.children,n=e.elevate,o=void 0!==n&&n,i=(0,t.A)({disableHysteresis:!0,threshold:0}),s=o||i;return a.cloneElement(r,{color:s?"default":"transparent",elevation:s?4:0})}},83565:function(e,r,n){var t;n.d(r,{k:function(){return t}}),function(e){e.ConfigurationPages="ConfigurationPages",e.Packages="Packages",e.Plugins="Plugins",e.Repositories="Repositories"}(t||(t={}))},85069:function(e,r,n){n.d(r,{q:function(){return c}});var t=n(55990),a=n(8280),o=n(80401),i=n(69410),s=n(83565),l=function(e,r){return(0,a.j)({queryKey:[s.k.ConfigurationPages,null==r?void 0:r.enableInMainMenu],queryFn:function(n){var a=n.signal;return function(e,r,n){return a=void 0,o=void 0,s=function(){return function(e,r){var n,t,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(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,t&&(a=2&s[0]?t.return:s[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,s[1])).done)return a;switch(t=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++,t=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=r.call(e,o)}catch(e){s=[6,e],t=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(a){switch(a.label){case 0:return[4,(0,t.T)(e).getConfigurationPages(r,n)];case 1:return[2,a.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function t(e){try{l(s.throw(e))}catch(e){r(e)}}function l(r){var a;r.done?e(r.value):(a=r.value,a instanceof i?a:new i((function(e){e(a)}))).then(n,t)}l((s=s.apply(a,o||[])).next())}));var a,o,i,s}(e,r,{signal:a})},enabled:!!e})},c=function(e){var r=(0,i.gf)().api;return(0,o.I)(l(r,e))}},86336:function(e,r,n){n.r(r),n.d(r,{Component:function(){return me}});var t=n(62540),a=n(93663),o=n(92779),i=n(25295),s=n(92218),l=n(71991),c=n(63696),u=n(87404),d=n(13258),f=n(87119),h=n(87214),p=n(75785),y=n(64174),b=n(70267),A=n(15815),x=n(69410),v=n(41906),j=n(4994),g=n(26445),m=n(23125),w=n(98526),P=n(9055),k=n(71286),S=n(44797),O=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i},T=(0,m.A)((function(){return window.dispatchEvent(new Event("resize"))}),100),C=function(e){var r=e.isDrawerOpen,n=(0,c.useRef)(document),a=O((0,c.useState)(0),2),o=a[0],s=a[1],l=O((0,c.useState)(),2),u=l[0],d=l[1],f=(0,i.A)((function(e){return e.breakpoints.up("sm")})),h=(0,c.useCallback)((function(e,r,n,t){void 0===n&&(n=0),s(n),(0,w.A)(u,t)||d(t)}),[u]);return(0,c.useEffect)((function(){var e=n.current;return e&&S.A.on(e,k.B.SET_TABS,h),function(){e&&S.A.off(e,k.B.SET_TABS,h)}}),[h]),(0,c.useEffect)((function(){T()}),[r]),(null==u?void 0:u.length)?(0,t.jsx)(g.A,{value:o,sx:{width:"100%",flexShrink:{xs:0,lg:"unset"},order:{xs:100,lg:"unset"}},variant:f?"standard":"scrollable",centered:f,children:u.map((function(e,r){var n=e.href,a=e.name;return(0,t.jsx)(j.A,{label:a,"data-tab-index":"".concat(r),component:P.N_,to:n},"tab-".concat(a))}))}):null},D=n(35117),E=n(28335),I=n(42458),L=n(23849),B=n(960),H=n(91480),M=n(17071),_=n(80434),N=n(63774),R=n(32051),q=n(94568),z=n(11041),F=n(79772),G=n(44790),U=n(60434),V=n(80099),K=n(95858),W=n(5898),J=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i},Q=["/dashboard/libraries","/dashboard/libraries/display","/dashboard/libraries/metadata","/dashboard/libraries/nfo"],Y=["/dashboard/playback/transcoding","/dashboard/playback/resume","/dashboard/playback/streaming","/dashboard/playback/trickplay"],$=function(){var e=(0,u.zy)(),r=J((0,c.useState)(Q.includes(e.pathname)),2),n=r[0],a=r[1],o=J((0,c.useState)(Y.includes(e.pathname)),2),i=o[0],s=o[1],l=(0,c.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),a((function(e){return!e}))}),[]),d=(0,c.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),s((function(e){return!e}))}),[]);return(0,t.jsxs)(E.A,{"aria-labelledby":"server-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"server-subheader",children:W.Ay.translate("TabServer")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(L.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabDashboard")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/settings",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(q.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("General")})]})}),(0,t.jsxs)(K.A,{to:"/dashboard/branding",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(_.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderBranding")})]}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/users",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(N.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderUsers")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(F.A,{onClick:l,children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(M.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderLibraries")}),n?(0,t.jsx)(B.A,{}):(0,t.jsx)(H.A,{})]})}),(0,t.jsx)(z.A,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,t.jsxs)(E.A,{component:"div",disablePadding:!0,children:[(0,t.jsx)(K.A,{to:"/dashboard/libraries",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("HeaderLibraries")})}),(0,t.jsx)(K.A,{to:"/dashboard/libraries/display",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("Display")})}),(0,t.jsx)(K.A,{to:"/dashboard/libraries/metadata",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("LabelMetadata")})}),(0,t.jsx)(K.A,{to:"/dashboard/libraries/nfo",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("TabNfoSettings")})})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(F.A,{onClick:d,children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(R.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TitlePlayback")}),i?(0,t.jsx)(B.A,{}):(0,t.jsx)(H.A,{})]})}),(0,t.jsx)(z.A,{in:i,timeout:"auto",unmountOnExit:!0,children:(0,t.jsxs)(E.A,{component:"div",disablePadding:!0,children:[(0,t.jsx)(K.A,{to:"/dashboard/playback/transcoding",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("Transcoding")})}),(0,t.jsx)(K.A,{to:"/dashboard/playback/resume",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("ButtonResume")})}),(0,t.jsx)(K.A,{to:"/dashboard/playback/streaming",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("TabStreaming")})}),(0,t.jsx)(K.A,{to:"/dashboard/playback/trickplay",sx:{pl:4},children:(0,t.jsx)(U.A,{inset:!0,primary:W.Ay.translate("Trickplay")})})]})})]})},X=n(95041),Z=n(34266),ee=function(){return(0,t.jsxs)(E.A,{"aria-labelledby":"devices-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"devices-subheader",children:W.Ay.translate("HeaderDevices")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/devices",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(Z.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderDevices")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/activity",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(X.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderActivity")})]})})]})},re=n(56465),ne=n(84917),te=function(){return(0,t.jsxs)(E.A,{"aria-labelledby":"livetv-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"livetv-subheader",children:W.Ay.translate("LiveTV")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/livetv",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ne.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("LiveTV")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/livetv/recordings",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(re.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderDVR")})]})})]})},ae=n(18203),oe=n(74655),ie=n(48066),se=n(88776),le=n(68922),ce=function(){return(0,t.jsxs)(E.A,{"aria-labelledby":"advanced-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"advanced-subheader",children:W.Ay.translate("TabAdvanced")}),children:[(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/networking",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ie.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabNetworking")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/keys",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(le.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderApiKeys")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/backups",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(oe.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("HeaderBackups")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/logs",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ae.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabLogs")})]})}),(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsxs)(K.A,{to:"/dashboard/tasks",children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(se.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabScheduledTasks")})]})})]})},ue=n(65612),de=n(82225),fe=n(89100),he=n(85069),pe=function(){var e=(0,he.q)({enableInMainMenu:!0}),r=e.data,n=e.error;return(0,c.useEffect)((function(){n&&console.error("[PluginDrawerSection] unable to fetch plugin config pages",n)}),[n]),(0,t.jsxs)(E.A,{"aria-labelledby":"plugins-subheader",subheader:(0,t.jsx)(V.A,{component:"div",id:"plugins-subheader",children:W.Ay.translate("TabPlugins")}),children:[(0,t.jsxs)(K.A,{to:"/dashboard/plugins",includePaths:["/configurationpage","/dashboard/plugins/repositories"],excludePaths:null==r?void 0:r.map((function(e){return"/".concat(fe.default.getPluginUrl(e.Name))})),children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(ue.A,{})}),(0,t.jsx)(U.A,{primary:W.Ay.translate("TabPlugins")})]}),null==r?void 0:r.map((function(e){return(0,t.jsxs)(K.A,{to:"/".concat(fe.default.getPluginUrl(e.Name)),children:[(0,t.jsx)(G.A,{children:(0,t.jsx)(de.A,{})}),(0,t.jsx)(U.A,{primary:e.DisplayName})]},e.PluginId)}))]})},ye=function(e){var r=e.open,n=void 0!==r&&r,a=e.onClose,o=e.onOpen;return(0,t.jsxs)(y.A,{open:n,onClose:a,onOpen:o,children:[(0,t.jsx)(E.A,{disablePadding:!0,children:(0,t.jsx)(D.Ay,{disablePadding:!0,children:(0,t.jsx)(I.A,{})})}),(0,t.jsx)($,{}),(0,t.jsx)(ee,{}),(0,t.jsx)(te,{}),(0,t.jsx)(pe,{}),(0,t.jsx)(ce,{})]})},be=n(37714),Ae=n(75487),xe=n(72073),ve=[{paths:["/dashboard/devices"],url:"https://jellyfin.org/docs/general/server/devices"},{paths:["/dashboard/libraries"],url:"https://jellyfin.org/docs/general/server/libraries"},{paths:["/dashboard/livetv","/dashboard/livetv/tuner","/dashboard/recordings"],url:"https://jellyfin.org/docs/general/server/live-tv/"},{paths:["/dashboard/livetv/guide"],url:"https://jellyfin.org/docs/general/server/live-tv/setup-guide#adding-guide-data"},{paths:["/dashboard/networking"],url:"https://jellyfin.org/docs/general/networking/"},{paths:["/dashboard/playback/transcoding"],url:"https://jellyfin.org/docs/general/server/transcoding"},{paths:["/dashboard/plugins"],url:"https://jellyfin.org/docs/general/server/plugins/"},{paths:["/dashboard/plugins/repositories"],url:"https://jellyfin.org/docs/general/server/plugins/#repositories"},{paths:["/dashboard/branding","/dashboard/settings"],url:"https://jellyfin.org/docs/general/server/settings"},{paths:["/dashboard/tasks"],url:"https://jellyfin.org/docs/general/server/tasks"},{paths:["/dashboard/users"],url:"https://jellyfin.org/docs/general/server/users/adding-managing-users"},{paths:["/dashboard/users/access","/dashboard/users/parentalcontrol","/dashboard/users/password","/dashboard/users/profile"],url:"https://jellyfin.org/docs/general/server/users/"}],je=function(){return(0,t.jsx)(u.BV,{children:ve.map((function(e){var r=e.paths,n=e.url;return r.map((function(e){return(0,t.jsx)(u.qh,{path:e,element:(0,t.jsx)(xe.A,{title:W.Ay.translate("Help"),children:(0,t.jsx)(Ae.A,{href:n,rel:"noopener noreferrer",target:"_blank",size:"large",color:"inherit",children:(0,t.jsx)(be.A,{})})})},[n,e].join("-"))}))})).flat()})},ge=n(7603),me=function(){var e=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}((0,c.useState)(!1),2),r=e[0],n=e[1],j=(0,u.zy)(),g=(0,x.gf)().user,m=(0,v.Y)().dateFnsLocale,w=(0,i.A)((function(e){return e.breakpoints.up("md")})),P=j.pathname.startsWith("/".concat(ge.DASHBOARD_APP_PATHS.MetadataManager)),k=Boolean(g)&&!P,S=r&&k,O=(0,c.useCallback)((function(){n(!r)}),[r,n]);return(0,c.useEffect)((function(){return document.body.classList.add("dashboardDocument"),function(){document.body.classList.remove("dashboardDocument")}}),[]),(0,t.jsxs)(s.$,{dateAdapter:l.h,adapterLocale:m,children:[(0,t.jsxs)(o.A,{sx:{display:"flex"},children:[(0,t.jsxs)(c.StrictMode,{children:[(0,t.jsx)(p.A,{elevate:!1,children:(0,t.jsx)(a.A,{position:"fixed",sx:{width:{xs:"100%",md:k?"calc(100% - ".concat(y.d,"px)"):"100%"},ml:{xs:0,md:k?y.d:0}},children:(0,t.jsxs)(f.A,{isBackButtonAvailable:b.appRouter.canGoBack(),isDrawerAvailable:!w&&k,isDrawerOpen:S,onDrawerButtonClick:O,buttons:(0,t.jsx)(je,{}),children:[P&&(0,t.jsx)(h.A,{}),(0,t.jsx)(C,{isDrawerOpen:S})]})})}),k&&(0,t.jsx)(ye,{open:S,onClose:O,onOpen:O})]}),(0,t.jsx)(o.A,{component:"main",sx:{width:"100%",flexGrow:1},children:(0,t.jsx)(d.A,{children:(0,t.jsx)(u.sv,{})})})]}),(0,t.jsx)(A.A,{dashboard:!0})]})}},87214:function(e,r,n){var t=n(62540),a=n(90830),o=n(63703),i=(n(63696),n(9055)),s=n(42305);r.A=function(){var e=(0,s.L)(),r=e.data,n=e.isPending;return(0,t.jsx)(o.A,{variant:"text",size:"large",color:"inherit",startIcon:(0,t.jsx)("img",{src:a,alt:"","aria-hidden":!0,style:{maxHeight:"1.25em",maxWidth:"1.25em"}}),component:i.N_,to:"/",children:n?"":(null==r?void 0:r.ServerName)||"Jellyfin"})}},90830:function(e,r,n){e.exports=n.p+"icon-transparent.baba78f2a106d9baee83.png"},92099:function(e,r,n){function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}n.d(r,{A:function(){return t}})},92162:function(e,r,n){n.d(r,{A:function(){return a}});var t=n(40694);function a(e){var r=function(e){if("object"!=(0,t.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=(0,t.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,t.A)(r)?r:r+""}},95858:function(e,r,n){var t=n(62540),a=n(79772),o=(n(63696),n(87404)),i=n(9055),s=function(){return s=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var a in r=arguments[n])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},s.apply(this,arguments)},l=function(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,o=n.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i};r.A=function(e){var r=e.children,n=e.to,c=e.includePaths,u=void 0===c?[]:c,d=e.excludePaths,f=void 0===d?[]:d,h=function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(n[t[a]]=e[t[a]])}return n}(e,["children","to","includePaths","excludePaths"]),p=(0,o.zy)(),y=l((0,i.ok)(),1)[0],b=l(n.split("?"),2),A=b[0],x=b[1],v=new URLSearchParams("?".concat(x)),j=function(e,r,n){if(n||2===arguments.length)for(var t,a=0,o=r.length;a<o;a++)!t&&a in r||(t||(t=Array.prototype.slice.call(r,0,a)),t[a]=r[a]);return e.concat(t||Array.prototype.slice.call(r))}([A],l(u),!1).includes(p.pathname)&&!f.includes(p.pathname+p.search)&&(!x||function(e,r){var n,t;try{for(var a=function(e){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&e[r],t=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=a.next();!o.done;o=a.next()){var i=o.value;if(r.get(i[0])!==i[1])return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return!0}(v,y));return(0,t.jsx)(a.A,s({component:i.N_,to:n,selected:j},h,{children:r}))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8575],{713:function(e,n,r){r.d(n,{j:function(){return o},p:function(){return a}});var t=r(82885),i=r(14229),o=function(e){return i.u.some((function(n){return n.path===e}))},a=function(e,n){var r,o,a,l,s,u;if(!n)return 0;var c=null!==(o=null===(r=i.u.find((function(n){return n.path===e})))||void 0===r?void 0:r.views)&&void 0!==o?o:[],d=t.get("landing-"+n,!1);return null!==(u=null!==(l=null===(a=c.find((function(e){return e.view===d})))||void 0===a?void 0:a.index)&&void 0!==l?l:null===(s=c.find((function(e){return e.isDefault})))||void 0===s?void 0:s.index)&&void 0!==u?u:0}},8575:function(e,n,r){r.r(n),r.d(n,{Component:function(){return De}});var t=r(62540),i=r(63696),o=r(93663),a=r(92779),l=r(25295),s=r(87404),u=r(13258),c=r(78057),d=r(75785),f=r(30224),v=r(69410),p=r(70140),h=r(87119),y=r(87214),x=r(76617),b=r(5824),m=r(9055),g=r(43361),A=r(75487),j=r(72073),w=r(5898),S=function(){var e=(0,s.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,m.ok)(),1)[0],r="/search"===e.pathname,i=(0,m.PI)(function(e){var n=e.get("parentId")||e.get("topParentId"),r=e.get("collectionType"),t={};return n&&(t.parentId=n),r&&(t.collectionType=r),t}(n)),o={pathname:"/search",search:i?"?".concat(i):void 0};return(0,t.jsx)(j.A,{title:w.Ay.translate("Search"),children:(0,t.jsx)(A.A,{size:"large","aria-label":w.Ay.translate("Search"),color:"inherit",component:m.N_,disabled:r,to:o,children:(0,t.jsx)(g.A,{})})})},D=r(65369),I=r(26749),P=r(36237),k=r(63703),O=r(3889),C=r(46550),T=r(68849),M=r(84917),N=r(42663),E=r(57323),F=r(66563),G=r(94200),R=r(91002),U=r(72648),X=r(53455),L=r(82225),_={Id:"favorites",Name:"Favorites"},B=function(e){var n=e.item;if(n.Id===_.Id)return(0,t.jsx)(P.A,{});switch(n.CollectionType){case D.X.Movies:return(0,t.jsx)(O.A,{});case D.X.Music:return(0,t.jsx)(C.A,{});case D.X.Homevideos:case D.X.Photos:return(0,t.jsx)(T.A,{});case D.X.Livetv:return(0,t.jsx)(M.A,{});case D.X.Tvshows:return(0,t.jsx)(N.A,{});case D.X.Trailers:return(0,t.jsx)(E.A,{});case D.X.Musicvideos:return(0,t.jsx)(F.A,{});case D.X.Books:return(0,t.jsx)(G.A,{});case D.X.Boxsets:return(0,t.jsx)(X.A,{});case D.X.Playlists:return(0,t.jsx)(R.A,{});case void 0:return(0,t.jsx)(U.A,{});default:return(0,t.jsx)(L.A,{})}},z=r(713),V=r(70267),H=r(37632),q=r(59721),K=r(44790),J=r(60434),W=r(48402),Y=r(85637),Q=function(){return Q=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Q.apply(this,arguments)},Z=function(e){var n=e.userViews,r=e.selectedId,i=e.onMenuClose,o=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["userViews","selectedId","onMenuClose"]);return(0,t.jsx)(W.A,Q({},o,{keepMounted:!0,onClose:i,children:n.map((function(e){return(0,t.jsxs)(Y.A,{component:m.N_,to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),onClick:i,selected:e.Id===r,children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(B,{item:e})}),(0,t.jsx)(J.A,{children:e.Name})]},e.Id)}))}))},$=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ee="user-view-overflow-menu",ne="/home",re="/list",te=function(){var e=(0,s.zy)(),n=$((0,m.ok)(),1)[0],r=n.get("topParentId")||n.get("parentId"),o=n.get("collectionType"),a=(0,H.A)().activeTab,u=(0,l.A)((function(e){return e.breakpoints.up("xl")})),c=(0,l.A)((function(e){return e.breakpoints.up("lg")})),d=(0,i.useMemo)((function(){return u?8:c?5:3}),[u,c]),f=(0,v.gf)().user,p=(0,q.D)(null==f?void 0:f.Id),h=p.data,y=p.isPending,x=(0,i.useMemo)((function(){var e;return null===(e=null==h?void 0:h.Items)||void 0===e?void 0:e.slice(0,d)}),[d,h]),b=(0,i.useMemo)((function(){var e;return null===(e=null==h?void 0:h.Items)||void 0===e?void 0:e.slice(d)}),[d,h]),g=$((0,i.useState)(null),2),A=g[0],j=g[1],S=Boolean(A),O=(0,i.useCallback)((function(e){j(e.currentTarget)}),[]),C=(0,i.useCallback)((function(){j(null)}),[]),T=(0,i.useMemo)((function(){return function(e,n,r,t,i){if((0,z.j)(n)||[ne,re].includes(n))return t===D.X.Livetv?null==e?void 0:e.find((function(e){return e.CollectionType===D.X.Livetv})):n===ne&&1===i?_:null==e?void 0:e.find((function(e){return e.Id===r}))}(null==h?void 0:h.Items,e.pathname,r,o,a)}),[a,o,r,e.pathname,h]);return y?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.A,{variant:"text",color:(null==T?void 0:T.Id)===_.Id?"primary":"inherit",startIcon:(0,t.jsx)(P.A,{}),component:m.N_,to:"/home?tab=1",children:w.Ay.translate(_.Name)}),null==x?void 0:x.map((function(e){return(0,t.jsx)(k.A,{variant:"text",color:e.Id===(null==T?void 0:T.Id)?"primary":"inherit",startIcon:(0,t.jsx)(B,{item:e}),component:m.N_,to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:e.Name},e.Id)})),b&&b.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.A,{variant:"text",color:"inherit",endIcon:(0,t.jsx)(I.A,{}),"aria-controls":ee,"aria-haspopup":"true",onClick:O,children:w.Ay.translate("ButtonMore")}),(0,t.jsx)(Z,{anchorEl:A,id:ee,open:S,onMenuClose:C,userViews:b,selectedId:null==T?void 0:T.Id})]})]})},ie=["/addserver","/selectserver","/login","/forgotpassword","/forgotpasswordpin"],oe=function(e){var n=e.isDrawerAvailable,r=e.isDrawerOpen,i=e.onDrawerButtonClick,o=(0,s.zy)();if("/video"===o.pathname)return null;var a=ie.includes(o.pathname);return(0,t.jsx)(h.A,{buttons:!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.A,{}),(0,t.jsx)(x.A,{}),(0,t.jsx)(S,{})]}),isDrawerAvailable:n,isDrawerOpen:r,onDrawerButtonClick:i,isUserMenuAvailable:!a,children:!n&&(0,t.jsxs)(p.A,{direction:"row",spacing:.5,children:[(0,t.jsx)(y.A,{}),!a&&(0,t.jsx)(te,{})]})})},ae=r(64174),le=r(24786),se=r(77285),ue=r(89970),ce=r(74156),de=r(44185),fe=r(28335),ve=r(35117),pe=r(79772),he=r(80099),ye=r(95858),xe=r(60182),be=r(42458),me=function(){var e=(0,v.gf)().user,n=(0,s.zy)(),r=(0,q.D)(null==e?void 0:e.Id).data,i=(null==r?void 0:r.Items)||[],o=(0,xe.IB)(),a="/home"===n.pathname&&(!n.search||"?tab=0"===n.search);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(fe.A,{sx:{paddingTop:0},children:[(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsx)(be.A,{})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home",selected:a,children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(ue.A,{})}),(0,t.jsx)(J.A,{primary:w.Ay.translate("Home")})]})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home?tab=1",children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(P.A,{})}),(0,t.jsx)(J.A,{primary:w.Ay.translate("Favorites")})]})})]}),!!o.menuLinks&&o.menuLinks.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ce.A,{}),(0,t.jsx)(fe.A,{children:o.menuLinks.map((function(e){var n;return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(pe.A,{component:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(de.A,{children:null!==(n=e.icon)&&void 0!==n?n:"link"})}),(0,t.jsx)(J.A,{primary:e.name})]})},"".concat(e.name,"_").concat(e.url))}))})]}),i.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ce.A,{}),(0,t.jsx)(fe.A,{"aria-labelledby":"libraries-subheader",subheader:(0,t.jsx)(he.A,{component:"div",id:"libraries-subheader",children:w.Ay.translate("HeaderLibraries")}),children:i.map((function(e){return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(B,{item:e})}),(0,t.jsx)(J.A,{primary:e.Name})]})},e.Id)}))})]})]})},ge=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ae=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))},je=["video"],we=Ae(Ae([],ge(le.ASYNC_USER_ROUTES),!1),ge(se.LEGACY_USER_ROUTES),!1).filter((function(e){return!je.includes(e.path)})),Se=function(e){var n=e.open,r=void 0!==n&&n,i=e.onClose,o=e.onOpen;return(0,t.jsx)(ae.A,{open:r,onClose:i,onOpen:o,children:(0,t.jsx)(me,{})})},De=function(){var e=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.useState)(!1),2),n=e[0],r=e[1],p=(0,v.gf)().user,h=(0,s.zy)(),y=(0,l.A)((function(e){return e.breakpoints.up("md")})),x=function(e){return we.some((function(n){return n.path===e||"/".concat(n.path)===e}))}(h.pathname)&&Boolean(p)&&!y,b=n&&x,m=(0,i.useCallback)((function(){r(!n)}),[n,r]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.A,{sx:{position:"relative",display:"flex",height:"100%"},children:[(0,t.jsxs)(i.StrictMode,{children:[(0,t.jsx)(d.A,{elevate:!1,children:(0,t.jsx)(o.A,{position:"fixed",sx:{width:"100%",ml:0},children:(0,t.jsx)(oe,{isDrawerAvailable:!y&&x,isDrawerOpen:b,onDrawerButtonClick:m})})}),x&&(0,t.jsx)(Se,{open:b,onClose:m,onOpen:m})]}),(0,t.jsx)(a.A,{component:"main",sx:{width:"100%",flexGrow:1},children:(0,t.jsx)(u.A,{children:(0,t.jsx)(s.sv,{})})})]}),(0,t.jsx)(f.A,{}),(0,t.jsx)(c.A,{})]})}},14229:function(e,n,r){r.d(n,{u:function(){return i}});var t=r(46850),i=[{path:"/livetv",views:[{index:0,label:"Programs",view:t.D.Programs,isDefault:!0},{index:1,label:"Guide",view:t.D.Guide},{index:2,label:"Channels",view:t.D.Channels},{index:3,label:"Recordings",view:t.D.Recordings},{index:4,label:"Schedule",view:t.D.Schedule},{index:5,label:"Series",view:t.D.SeriesTimers}]},{path:"/movies",views:[{index:0,label:"Movies",view:t.D.Movies,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"Favorites",view:t.D.Favorites},{index:3,label:"Collections",view:t.D.Collections},{index:4,label:"Genres",view:t.D.Genres}]},{path:"/music",views:[{index:0,label:"Albums",view:t.D.Albums,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"HeaderAlbumArtists",view:t.D.AlbumArtists},{index:3,label:"Artists",view:t.D.Artists},{index:4,label:"Playlists",view:t.D.Playlists},{index:5,label:"Songs",view:t.D.Songs},{index:6,label:"Genres",view:t.D.Genres}]},{path:"/tv",views:[{index:0,label:"Shows",view:t.D.Series,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"TabUpcoming",view:t.D.Upcoming},{index:3,label:"Genres",view:t.D.Genres},{index:4,label:"TabNetworks",view:t.D.Networks},{index:5,label:"Episodes",view:t.D.Episodes}]},{path:"/homevideos",views:[{index:0,label:"Photos",view:t.D.Photos,isDefault:!0},{index:1,label:"HeaderPhotoAlbums",view:t.D.PhotoAlbums,isDefault:!0},{index:2,label:"HeaderVideos",view:t.D.Videos}]}]},37632:function(e,n,r){var t=r(87404),i=r(9055),o=r(713);n.A=function(){var e=(0,t.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.ok)(),2),r=n[0],a=n[1],l=r.get("tab"),s="/livetv"===e.pathname?"livetv":r.get("topParentId");return{searchParams:r,setSearchParams:a,libraryId:s,activeTab:null!==l?parseInt(l,10):(0,o.p)(e.pathname,s)}}},42305:function(e,n,r){r.d(n,{L:function(){return s}});var t=r(8280),i=r(80401),o=r(48272),a=r(69410),l=function(e){return(0,t.j)({queryKey:["SystemInfo"],queryFn:function(n){var r=n.signal;return function(e,n){return r=void 0,t=void 0,a=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=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,o.c)(e).getSystemInfo(n)];case 1:return[2,r.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(n){var r;n.done?e(n.value):(r=n.value,r instanceof i?r:new i((function(e){e(r)}))).then(o,l)}s((a=a.apply(r,t||[])).next())}));var r,t,i,a}(e,{signal:r,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},s=function(){var e=(0,a.gf)().api;return(0,i.I)(l(e))}},42458:function(e,n,r){var t=r(62540),i=r(92779),o=r(44790),a=r(60434),l=(r(63696),r(42305)),s=r(95858),u=r(90830);n.A=function(){var e=(0,l.L)().data;return(0,t.jsxs)(s.A,{to:"/",children:[(0,t.jsx)(o.A,{sx:{minWidth:56},children:(0,t.jsx)(i.A,{component:"img",src:u,sx:{height:"2.5rem"}})}),(0,t.jsx)(a.A,{primary:(null==e?void 0:e.ServerName)||"Jellyfin",secondary:null==e?void 0:e.Version,slotProps:{primary:{variant:"h6"}}})]})}},46850:function(e,n,r){var t;r.d(n,{D:function(){return t}}),function(e){e.Albums="albums",e.AlbumArtists="albumartists",e.Artists="artists",e.Channels="channels",e.Collections="collections",e.Episodes="episodes",e.Favorites="favorites",e.Genres="genres",e.Guide="guide",e.Movies="movies",e.Networks="networks",e.Playlists="playlists",e.Programs="programs",e.Recordings="recordings",e.Schedule="schedule",e.Series="series",e.SeriesTimers="seriestimers",e.Songs="songs",e.Suggestions="suggestions",e.Upcoming="upcoming",e.PhotoAlbums="photoalbums",e.Photos="photos",e.Videos="videos",e.Books="books"}(t||(t={}))},59721:function(e,n,r){r.d(n,{D:function(){return u},q:function(){return s}});var t=r(41364),i=r(8280),o=r(80401),a=r(69410),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n,r){return(0,i.j)({queryKey:["User",n,"Views",r],queryFn:function(i){var o=i.signal;return function(e,n,r,i){return o=void 0,a=void 0,u=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,t.a)(e).getUserViews(l(l({},r),{userId:n}),i)];case 1:return[2,o.sent().data]}}))},new((s=void 0)||(s=Promise))((function(e,n){function r(e){try{i(u.next(e))}catch(e){n(e)}}function t(e){try{i(u.throw(e))}catch(e){n(e)}}function i(n){var i;n.done?e(n.value):(i=n.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,t)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u}(e,n,r,{signal:o})},staleTime:1e3,enabled:!!e&&!!n})},u=function(e,n){var r=(0,a.gf)().api;return(0,o.I)(s(r,e,n))}},64174:function(e,n,r){r.d(n,{d:function(){return u}});var t=r(62540),i=r(92779),o=r(19983),a=r(54710),l=r(25295),s=(r(63696),r(34789)),u=240;n.A=function(e){var n=e.children,r=e.open,c=void 0!==r&&r,d=e.onClose,f=e.onOpen;return(0,l.A)((function(e){return e.breakpoints.up("md")}))?(0,t.jsx)(o.Ay,{sx:{width:u,flexShrink:0,"& .MuiDrawer-paper":{width:u,paddingBottom:"4.2rem",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:n}):(0,t.jsx)(a.A,{anchor:"left",open:c,onClose:d,onOpen:f,disableDiscovery:s.A.iOS,ModalProps:{keepMounted:!0},children:(0,t.jsx)(i.A,{role:"presentation",onClick:d,onKeyDown:d,children:n})})}},75785:function(e,n,r){var t=r(21122),i=r(63696);n.A=function(e){var n=e.children,r=e.elevate,o=void 0!==r&&r,a=(0,t.A)({disableHysteresis:!0,threshold:0}),l=o||a;return i.cloneElement(n,{color:l?"default":"transparent",elevation:l?4:0})}},87214:function(e,n,r){var t=r(62540),i=r(90830),o=r(63703),a=(r(63696),r(9055)),l=r(42305);n.A=function(){var e=(0,l.L)(),n=e.data,r=e.isPending;return(0,t.jsx)(o.A,{variant:"text",size:"large",color:"inherit",startIcon:(0,t.jsx)("img",{src:i,alt:"","aria-hidden":!0,style:{maxHeight:"1.25em",maxWidth:"1.25em"}}),component:a.N_,to:"/",children:r?"":(null==n?void 0:n.ServerName)||"Jellyfin"})}},90830:function(e,n,r){e.exports=r.p+"icon-transparent.baba78f2a106d9baee83.png"},95858:function(e,n,r){var t=r(62540),i=r(79772),o=(r(63696),r(87404)),a=r(9055),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};n.A=function(e){var n=e.children,r=e.to,u=e.includePaths,c=void 0===u?[]:u,d=e.excludePaths,f=void 0===d?[]:d,v=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["children","to","includePaths","excludePaths"]),p=(0,o.zy)(),h=s((0,a.ok)(),1)[0],y=s(r.split("?"),2),x=y[0],b=y[1],m=new URLSearchParams("?".concat(b)),g=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))}([x],s(c),!1).includes(p.pathname)&&!f.includes(p.pathname+p.search)&&(!b||function(e,n){var r,t;try{for(var i=function(e){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&e[n],t=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(n.get(a[0])!==a[1])return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return!0}(m,h));return(0,t.jsx)(i.A,l({component:a.N_,to:r,selected:g},v,{children:n}))}}}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8575],{713:function(e,n,r){r.d(n,{j:function(){return o},p:function(){return a}});var t=r(82885),i=r(14229),o=function(e){return i.u.some((function(n){return n.path===e}))},a=function(e,n){var r,o,a,l,s,u;if(!n)return 0;var c=null!==(o=null===(r=i.u.find((function(n){return n.path===e})))||void 0===r?void 0:r.views)&&void 0!==o?o:[],d=t.get("landing-"+n,!1);return null!==(u=null!==(l=null===(a=c.find((function(e){return e.view===d})))||void 0===a?void 0:a.index)&&void 0!==l?l:null===(s=c.find((function(e){return e.isDefault})))||void 0===s?void 0:s.index)&&void 0!==u?u:0}},8575:function(e,n,r){r.r(n),r.d(n,{Component:function(){return De}});var t=r(62540),i=r(63696),o=r(93663),a=r(92779),l=r(25295),s=r(87404),u=r(13258),c=r(78057),d=r(75785),f=r(15815),v=r(69410),p=r(70140),h=r(87119),y=r(87214),x=r(76617),b=r(5824),m=r(9055),g=r(43361),A=r(75487),j=r(72073),w=r(5898),S=function(){var e=(0,s.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,m.ok)(),1)[0],r="/search"===e.pathname,i=(0,m.PI)(function(e){var n=e.get("parentId")||e.get("topParentId"),r=e.get("collectionType"),t={};return n&&(t.parentId=n),r&&(t.collectionType=r),t}(n)),o={pathname:"/search",search:i?"?".concat(i):void 0};return(0,t.jsx)(j.A,{title:w.Ay.translate("Search"),children:(0,t.jsx)(A.A,{size:"large","aria-label":w.Ay.translate("Search"),color:"inherit",component:m.N_,disabled:r,to:o,children:(0,t.jsx)(g.A,{})})})},D=r(65369),I=r(26749),P=r(36237),k=r(63703),O=r(3889),C=r(46550),T=r(68849),M=r(84917),N=r(42663),E=r(57323),F=r(66563),G=r(94200),R=r(91002),U=r(72648),X=r(53455),L=r(82225),_={Id:"favorites",Name:"Favorites"},B=function(e){var n=e.item;if(n.Id===_.Id)return(0,t.jsx)(P.A,{});switch(n.CollectionType){case D.X.Movies:return(0,t.jsx)(O.A,{});case D.X.Music:return(0,t.jsx)(C.A,{});case D.X.Homevideos:case D.X.Photos:return(0,t.jsx)(T.A,{});case D.X.Livetv:return(0,t.jsx)(M.A,{});case D.X.Tvshows:return(0,t.jsx)(N.A,{});case D.X.Trailers:return(0,t.jsx)(E.A,{});case D.X.Musicvideos:return(0,t.jsx)(F.A,{});case D.X.Books:return(0,t.jsx)(G.A,{});case D.X.Boxsets:return(0,t.jsx)(X.A,{});case D.X.Playlists:return(0,t.jsx)(R.A,{});case void 0:return(0,t.jsx)(U.A,{});default:return(0,t.jsx)(L.A,{})}},z=r(713),V=r(70267),H=r(37632),q=r(59721),K=r(44790),J=r(60434),W=r(48402),Y=r(85637),Q=function(){return Q=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Q.apply(this,arguments)},Z=function(e){var n=e.userViews,r=e.selectedId,i=e.onMenuClose,o=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["userViews","selectedId","onMenuClose"]);return(0,t.jsx)(W.A,Q({},o,{keepMounted:!0,onClose:i,children:n.map((function(e){return(0,t.jsxs)(Y.A,{component:m.N_,to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),onClick:i,selected:e.Id===r,children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(B,{item:e})}),(0,t.jsx)(J.A,{children:e.Name})]},e.Id)}))}))},$=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ee="user-view-overflow-menu",ne="/home",re="/list",te=function(){var e=(0,s.zy)(),n=$((0,m.ok)(),1)[0],r=n.get("topParentId")||n.get("parentId"),o=n.get("collectionType"),a=(0,H.A)().activeTab,u=(0,l.A)((function(e){return e.breakpoints.up("xl")})),c=(0,l.A)((function(e){return e.breakpoints.up("lg")})),d=(0,i.useMemo)((function(){return u?8:c?5:3}),[u,c]),f=(0,v.gf)().user,p=(0,q.D)(null==f?void 0:f.Id),h=p.data,y=p.isPending,x=(0,i.useMemo)((function(){var e;return null===(e=null==h?void 0:h.Items)||void 0===e?void 0:e.slice(0,d)}),[d,h]),b=(0,i.useMemo)((function(){var e;return null===(e=null==h?void 0:h.Items)||void 0===e?void 0:e.slice(d)}),[d,h]),g=$((0,i.useState)(null),2),A=g[0],j=g[1],S=Boolean(A),O=(0,i.useCallback)((function(e){j(e.currentTarget)}),[]),C=(0,i.useCallback)((function(){j(null)}),[]),T=(0,i.useMemo)((function(){return function(e,n,r,t,i){if((0,z.j)(n)||[ne,re].includes(n))return t===D.X.Livetv?null==e?void 0:e.find((function(e){return e.CollectionType===D.X.Livetv})):n===ne&&1===i?_:null==e?void 0:e.find((function(e){return e.Id===r}))}(null==h?void 0:h.Items,e.pathname,r,o,a)}),[a,o,r,e.pathname,h]);return y?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.A,{variant:"text",color:(null==T?void 0:T.Id)===_.Id?"primary":"inherit",startIcon:(0,t.jsx)(P.A,{}),component:m.N_,to:"/home?tab=1",children:w.Ay.translate(_.Name)}),null==x?void 0:x.map((function(e){return(0,t.jsx)(k.A,{variant:"text",color:e.Id===(null==T?void 0:T.Id)?"primary":"inherit",startIcon:(0,t.jsx)(B,{item:e}),component:m.N_,to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:e.Name},e.Id)})),b&&b.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.A,{variant:"text",color:"inherit",endIcon:(0,t.jsx)(I.A,{}),"aria-controls":ee,"aria-haspopup":"true",onClick:O,children:w.Ay.translate("ButtonMore")}),(0,t.jsx)(Z,{anchorEl:A,id:ee,open:S,onMenuClose:C,userViews:b,selectedId:null==T?void 0:T.Id})]})]})},ie=["/addserver","/selectserver","/login","/forgotpassword","/forgotpasswordpin"],oe=function(e){var n=e.isDrawerAvailable,r=e.isDrawerOpen,i=e.onDrawerButtonClick,o=(0,s.zy)();if("/video"===o.pathname)return null;var a=ie.includes(o.pathname);return(0,t.jsx)(h.A,{buttons:!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.A,{}),(0,t.jsx)(x.A,{}),(0,t.jsx)(S,{})]}),isDrawerAvailable:n,isDrawerOpen:r,onDrawerButtonClick:i,isUserMenuAvailable:!a,children:!n&&(0,t.jsxs)(p.A,{direction:"row",spacing:.5,children:[(0,t.jsx)(y.A,{}),!a&&(0,t.jsx)(te,{})]})})},ae=r(64174),le=r(24786),se=r(77285),ue=r(89970),ce=r(74156),de=r(44185),fe=r(28335),ve=r(35117),pe=r(79772),he=r(80099),ye=r(95858),xe=r(60182),be=r(42458),me=function(){var e=(0,v.gf)().user,n=(0,s.zy)(),r=(0,q.D)(null==e?void 0:e.Id).data,i=(null==r?void 0:r.Items)||[],o=(0,xe.IB)(),a="/home"===n.pathname&&(!n.search||"?tab=0"===n.search);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(fe.A,{sx:{paddingTop:0},children:[(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsx)(be.A,{})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home",selected:a,children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(ue.A,{})}),(0,t.jsx)(J.A,{primary:w.Ay.translate("Home")})]})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home?tab=1",children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(P.A,{})}),(0,t.jsx)(J.A,{primary:w.Ay.translate("Favorites")})]})})]}),!!o.menuLinks&&o.menuLinks.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ce.A,{}),(0,t.jsx)(fe.A,{children:o.menuLinks.map((function(e){var n;return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(pe.A,{component:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(de.A,{children:null!==(n=e.icon)&&void 0!==n?n:"link"})}),(0,t.jsx)(J.A,{primary:e.name})]})},"".concat(e.name,"_").concat(e.url))}))})]}),i.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ce.A,{}),(0,t.jsx)(fe.A,{"aria-labelledby":"libraries-subheader",subheader:(0,t.jsx)(he.A,{component:"div",id:"libraries-subheader",children:w.Ay.translate("HeaderLibraries")}),children:i.map((function(e){return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(B,{item:e})}),(0,t.jsx)(J.A,{primary:e.Name})]})},e.Id)}))})]})]})},ge=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ae=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))},je=["video"],we=Ae(Ae([],ge(le.ASYNC_USER_ROUTES),!1),ge(se.LEGACY_USER_ROUTES),!1).filter((function(e){return!je.includes(e.path)})),Se=function(e){var n=e.open,r=void 0!==n&&n,i=e.onClose,o=e.onOpen;return(0,t.jsx)(ae.A,{open:r,onClose:i,onOpen:o,children:(0,t.jsx)(me,{})})},De=function(){var e=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.useState)(!1),2),n=e[0],r=e[1],p=(0,v.gf)().user,h=(0,s.zy)(),y=(0,l.A)((function(e){return e.breakpoints.up("md")})),x=function(e){return we.some((function(n){return n.path===e||"/".concat(n.path)===e}))}(h.pathname)&&Boolean(p)&&!y,b=n&&x,m=(0,i.useCallback)((function(){r(!n)}),[n,r]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.A,{sx:{position:"relative",display:"flex",height:"100%"},children:[(0,t.jsxs)(i.StrictMode,{children:[(0,t.jsx)(d.A,{elevate:!1,children:(0,t.jsx)(o.A,{position:"fixed",sx:{width:"100%",ml:0},children:(0,t.jsx)(oe,{isDrawerAvailable:!y&&x,isDrawerOpen:b,onDrawerButtonClick:m})})}),x&&(0,t.jsx)(Se,{open:b,onClose:m,onOpen:m})]}),(0,t.jsx)(a.A,{component:"main",sx:{width:"100%",flexGrow:1},children:(0,t.jsx)(u.A,{children:(0,t.jsx)(s.sv,{})})})]}),(0,t.jsx)(f.A,{}),(0,t.jsx)(c.A,{})]})}},14229:function(e,n,r){r.d(n,{u:function(){return i}});var t=r(46850),i=[{path:"/livetv",views:[{index:0,label:"Programs",view:t.D.Programs,isDefault:!0},{index:1,label:"Guide",view:t.D.Guide},{index:2,label:"Channels",view:t.D.Channels},{index:3,label:"Recordings",view:t.D.Recordings},{index:4,label:"Schedule",view:t.D.Schedule},{index:5,label:"Series",view:t.D.SeriesTimers}]},{path:"/movies",views:[{index:0,label:"Movies",view:t.D.Movies,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"Favorites",view:t.D.Favorites},{index:3,label:"Collections",view:t.D.Collections},{index:4,label:"Genres",view:t.D.Genres}]},{path:"/music",views:[{index:0,label:"Albums",view:t.D.Albums,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"HeaderAlbumArtists",view:t.D.AlbumArtists},{index:3,label:"Artists",view:t.D.Artists},{index:4,label:"Playlists",view:t.D.Playlists},{index:5,label:"Songs",view:t.D.Songs},{index:6,label:"Genres",view:t.D.Genres}]},{path:"/tv",views:[{index:0,label:"Shows",view:t.D.Series,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"TabUpcoming",view:t.D.Upcoming},{index:3,label:"Genres",view:t.D.Genres},{index:4,label:"TabNetworks",view:t.D.Networks},{index:5,label:"Episodes",view:t.D.Episodes}]},{path:"/homevideos",views:[{index:0,label:"Photos",view:t.D.Photos,isDefault:!0},{index:1,label:"HeaderPhotoAlbums",view:t.D.PhotoAlbums,isDefault:!0},{index:2,label:"HeaderVideos",view:t.D.Videos}]}]},37632:function(e,n,r){var t=r(87404),i=r(9055),o=r(713);n.A=function(){var e=(0,t.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.ok)(),2),r=n[0],a=n[1],l=r.get("tab"),s="/livetv"===e.pathname?"livetv":r.get("topParentId");return{searchParams:r,setSearchParams:a,libraryId:s,activeTab:null!==l?parseInt(l,10):(0,o.p)(e.pathname,s)}}},42305:function(e,n,r){r.d(n,{L:function(){return s}});var t=r(8280),i=r(80401),o=r(48272),a=r(69410),l=function(e){return(0,t.j)({queryKey:["SystemInfo"],queryFn:function(n){var r=n.signal;return function(e,n){return r=void 0,t=void 0,a=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=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,o.c)(e).getSystemInfo(n)];case 1:return[2,r.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(n){var r;n.done?e(n.value):(r=n.value,r instanceof i?r:new i((function(e){e(r)}))).then(o,l)}s((a=a.apply(r,t||[])).next())}));var r,t,i,a}(e,{signal:r,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},s=function(){var e=(0,a.gf)().api;return(0,i.I)(l(e))}},42458:function(e,n,r){var t=r(62540),i=r(92779),o=r(44790),a=r(60434),l=(r(63696),r(42305)),s=r(95858),u=r(90830);n.A=function(){var e=(0,l.L)().data;return(0,t.jsxs)(s.A,{to:"/",children:[(0,t.jsx)(o.A,{sx:{minWidth:56},children:(0,t.jsx)(i.A,{component:"img",src:u,sx:{height:"2.5rem"}})}),(0,t.jsx)(a.A,{primary:(null==e?void 0:e.ServerName)||"Jellyfin",secondary:null==e?void 0:e.Version,slotProps:{primary:{variant:"h6"}}})]})}},46850:function(e,n,r){var t;r.d(n,{D:function(){return t}}),function(e){e.Albums="albums",e.AlbumArtists="albumartists",e.Artists="artists",e.Channels="channels",e.Collections="collections",e.Episodes="episodes",e.Favorites="favorites",e.Genres="genres",e.Guide="guide",e.Movies="movies",e.Networks="networks",e.Playlists="playlists",e.Programs="programs",e.Recordings="recordings",e.Schedule="schedule",e.Series="series",e.SeriesTimers="seriestimers",e.Songs="songs",e.Suggestions="suggestions",e.Upcoming="upcoming",e.PhotoAlbums="photoalbums",e.Photos="photos",e.Videos="videos",e.Books="books"}(t||(t={}))},59721:function(e,n,r){r.d(n,{D:function(){return u},q:function(){return s}});var t=r(41364),i=r(8280),o=r(80401),a=r(69410),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n,r){return(0,i.j)({queryKey:["User",n,"Views",r],queryFn:function(i){var o=i.signal;return function(e,n,r,i){return o=void 0,a=void 0,u=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,t.a)(e).getUserViews(l(l({},r),{userId:n}),i)];case 1:return[2,o.sent().data]}}))},new((s=void 0)||(s=Promise))((function(e,n){function r(e){try{i(u.next(e))}catch(e){n(e)}}function t(e){try{i(u.throw(e))}catch(e){n(e)}}function i(n){var i;n.done?e(n.value):(i=n.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,t)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u}(e,n,r,{signal:o})},staleTime:1e3,enabled:!!e&&!!n})},u=function(e,n){var r=(0,a.gf)().api;return(0,o.I)(s(r,e,n))}},64174:function(e,n,r){r.d(n,{d:function(){return u}});var t=r(62540),i=r(92779),o=r(19983),a=r(54710),l=r(25295),s=(r(63696),r(34789)),u=240;n.A=function(e){var n=e.children,r=e.open,c=void 0!==r&&r,d=e.onClose,f=e.onOpen;return(0,l.A)((function(e){return e.breakpoints.up("md")}))?(0,t.jsx)(o.Ay,{sx:{width:u,flexShrink:0,"& .MuiDrawer-paper":{width:u,paddingBottom:"4.2rem",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:n}):(0,t.jsx)(a.A,{anchor:"left",open:c,onClose:d,onOpen:f,disableDiscovery:s.A.iOS,ModalProps:{keepMounted:!0},children:(0,t.jsx)(i.A,{role:"presentation",onClick:d,onKeyDown:d,children:n})})}},75785:function(e,n,r){var t=r(21122),i=r(63696);n.A=function(e){var n=e.children,r=e.elevate,o=void 0!==r&&r,a=(0,t.A)({disableHysteresis:!0,threshold:0}),l=o||a;return i.cloneElement(n,{color:l?"default":"transparent",elevation:l?4:0})}},87214:function(e,n,r){var t=r(62540),i=r(90830),o=r(63703),a=(r(63696),r(9055)),l=r(42305);n.A=function(){var e=(0,l.L)(),n=e.data,r=e.isPending;return(0,t.jsx)(o.A,{variant:"text",size:"large",color:"inherit",startIcon:(0,t.jsx)("img",{src:i,alt:"","aria-hidden":!0,style:{maxHeight:"1.25em",maxWidth:"1.25em"}}),component:a.N_,to:"/",children:r?"":(null==n?void 0:n.ServerName)||"Jellyfin"})}},90830:function(e,n,r){e.exports=r.p+"icon-transparent.baba78f2a106d9baee83.png"},95858:function(e,n,r){var t=r(62540),i=r(79772),o=(r(63696),r(87404)),a=r(9055),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};n.A=function(e){var n=e.children,r=e.to,u=e.includePaths,c=void 0===u?[]:u,d=e.excludePaths,f=void 0===d?[]:d,v=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["children","to","includePaths","excludePaths"]),p=(0,o.zy)(),h=s((0,a.ok)(),1)[0],y=s(r.split("?"),2),x=y[0],b=y[1],m=new URLSearchParams("?".concat(b)),g=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))}([x],s(c),!1).includes(p.pathname)&&!f.includes(p.pathname+p.search)&&(!b||function(e,n){var r,t;try{for(var i=function(e){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&e[n],t=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(n.get(a[0])!==a[1])return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return!0}(m,h));return(0,t.jsx)(i.A,l({component:a.N_,to:r,selected:g},v,{children:n}))}}}]);