Files
pgsql-jellyfin/publish_test/wwwroot/6496.a2625db83f5e6116653d.chunk.js
2026-07-08 13:13:46 -04:00

1 line
26 KiB
JavaScript

"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),k=n(9055),P=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,P.B.SET_TABS,h),function(){e&&S.A.off(e,P.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:k.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/"},{paths:["/dashboard/backups"],url:"https://jellyfin.org/docs/general/administration/backup-and-restore/"}],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")})),k=j.pathname.startsWith("/".concat(ge.DASHBOARD_APP_PATHS.MetadataManager)),P=Boolean(g)&&!k,S=r&&P,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:P?"calc(100% - ".concat(y.d,"px)"):"100%"},ml:{xs:0,md:P?y.d:0}},children:(0,t.jsxs)(f.A,{isBackButtonAvailable:b.appRouter.canGoBack(),isDrawerAvailable:!w&&P,isDrawerOpen:S,onDrawerButtonClick:O,buttons:(0,t.jsx)(je,{}),children:[k&&(0,t.jsx)(h.A,{}),(0,t.jsx)(C,{isDrawerOpen:S})]})})}),P&&(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}))}}}]);