Files
pgsql-jellyfin/Jellyfin.Server/wwwroot/plugins.c089eff1cd2723c1fd0a.chunk.js
2026-07-08 13:13:46 -04:00

1 line
22 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[70593],{26057:function(e,n,r){r.r(n),r.d(n,{Component:function(){return _}});var t,a=r(62540),o=r(47891),i=r(92779),u=r(63703),c=r(71350),l=r(74156),s=r(57962),f=r(70140),d=r(89348),p=r(63696),v=r(9055),h=r(43361),m=r(84154),y=r(70531),g=r(46204),x=function(){return x=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},x.apply(this,arguments)},b=(0,y.Ay)("div")((function(e){var n,r=e.theme;return(n={display:"flex",position:"relative",borderRadius:r.shape.borderRadius,backgroundColor:(0,g.X4)(r.palette.common.white,.15),"&:hover":{backgroundColor:(0,g.X4)(r.palette.common.white,.25)},width:"100%"})[r.breakpoints.up("sm")]={width:"auto"},n})),w=(0,y.Ay)("div")((function(e){return{padding:e.theme.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"}})),A=(0,y.Ay)(m.Ay)((function(e){var n,r=e.theme;return{color:"inherit",flexGrow:1,"& .MuiInputBase-input":(n={padding:r.spacing(1,1,1,0),paddingLeft:"calc(1em + ".concat(r.spacing(4),")"),transition:r.transitions.create("width"),width:"100%"},n[r.breakpoints.up("md")]={width:"20ch"},n)}})),j=function(e){var n=e.label,r=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 a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(r[t[a]]=e[t[a]])}return r}(e,["label"]);return(0,a.jsxs)(b,{children:[(0,a.jsx)(w,{children:(0,a.jsx)(h.A,{})}),(0,a.jsx)(A,x({placeholder:n,inputProps:x({"aria-label":n},r.inputProps)},r))]})},k=r(31110),C=r(69410);!function(e){e.Administration="Administration",e.General="General",e.Anime="Anime",e.Books="Books",e.LiveTV="LiveTV",e.MoviesAndShows="MoviesAndShows",e.Music="Music",e.Subtitles="Subtitles",e.Other="Other"}(t||(t={}));var P,S,I=r(95605),O=r(32857),M=r(85069),L=r(2097),B=r(8280),q=r(80401),T=r(83565),G=function(e){return(0,B.j)({queryKey:[T.k.Packages],queryFn:function(n){var r=n.signal;return function(e,n){return r=void 0,t=void 0,o=function(){return function(e,n){var r,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=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,t&&(a=2&u[0]?t.return:u[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,u[1])).done)return a;switch(t=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,t=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=n.call(e,o)}catch(e){u=[6,e],t=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,L.N)(e).getPackages(n)];case 1:return[2,r.sent().data]}}))},new((a=void 0)||(a=Promise))((function(e,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function u(e){try{c(o.throw(e))}catch(e){n(e)}}function c(n){var r;n.done?e(n.value):(r=n.value,r instanceof a?r:new a((function(e){e(r)}))).then(i,u)}c((o=o.apply(r,t||[])).next())}));var r,t,a,o}(e,{signal:r})},enabled:!!e,staleTime:9e5})},R=r(67087),E=r(5898),V=function(e){var n=e.isFiltered,r=e.onViewAll,t=e.query;return(0,a.jsxs)(i.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(d.A,{component:"div",sx:{marginTop:2,marginBottom:1},children:t?E.Ay.translate("SearchResultsEmpty",t):E.Ay.translate("NoSubtitleSearchResultsFound")}),n&&(0,a.jsx)(u.A,{variant:"text",onClick:r,children:E.Ay.translate("ViewAllPlugins")})]})},N=r(65612),F=r(87404),U=r(69880),H=function(e){var n,r=e.plugin,t=(0,F.zy)(),o=(0,p.useMemo)((function(){return{pathname:"/dashboard/plugins/".concat(r.id),search:"?name=".concat(encodeURIComponent(r.name||"")),hash:t.hash}}),[t,r]);return(0,a.jsx)(U.A,{title:r.name,to:o,text:[null===(n=r.version)||void 0===n?void 0:n.VersionNumber,r.status].filter((function(e){return e})).join(" "),image:r.imageUrl,icon:(0,a.jsx)(N.A,{sx:{width:80,height:80}})})},D=((P={})[t.Administration]="HeaderAdmin",P[t.General]="General",P[t.Anime]="Anime",P[t.Books]="Books",P[t.LiveTV]="LiveTV",P[t.MoviesAndShows]="MoviesAndShows",P[t.Music]="TabMusic",P[t.Subtitles]="Subtitles",P[t.Other]="Other",P);!function(e){e.All="All",e.Available="Available",e.Installed="Installed"}(S||(S={}));var Q=r(84849),K=r(65242),z=r(95988),W=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,a,o=r.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},X=[t.Administration.toLowerCase(),t.General.toLowerCase(),t.Anime.toLowerCase(),t.Books.toLowerCase(),t.LiveTV.toLowerCase(),t.MoviesAndShows.toLowerCase(),t.Music.toLowerCase(),t.Subtitles.toLowerCase()],_=function(){var e=function(){var e=(0,C.gf)().api,n=(0,M.q)(),r=n.data,a=n.isError,o=n.isPending,i=function(){var e=(0,C.gf)().api;return(0,q.I)(G(e))}(),u=i.data,c=i.isError,l=i.isPending,s=(0,R.q)(),f=s.data,d=s.isError,v=s.isPending,h=(0,p.useMemo)((function(){if(!l&&!v){var n=new Set;return null==u||u.forEach((function(e){var r=e.guid;r&&n.add(r)})),null==f||f.forEach((function(e){var r=e.Id;r&&n.add(r)})),Array.from(n).map((function(n){var a,o,i,c,l=null==u?void 0:u.find((function(e){return e.guid===n})),s=(0,O.R)(n,f);i=s?(null===(a=null==l?void 0:l.versions)||void 0===a?void 0:a.find((function(e){return e.version===s.Version})))||{version:s.Version,VersionNumber:s.Version}:null===(o=null==l?void 0:l.versions)||void 0===o?void 0:o[0],(null==s?void 0:s.HasImage)&&(c=null==e?void 0:e.getUri("/Plugins/".concat(s.Id,"/").concat(s.Version,"/Image")));var d=null==l?void 0:l.category;if(!l)switch(n){case"a629c0dafac54c7e931a7174223f14c8":case"8c95c4d2e50c4fb0a4f36c06ff0f9a1a":d=t.Music;break;case"a628c0dafac54c7e9d1a7134223f14c8":case"b8715ed16c4745289ad3f72deb539cd4":d=t.MoviesAndShows;break;case"872a78491171458da6fb3de3d442ad30":d=t.General}return{canUninstall:!!(null==s?void 0:s.CanUninstall),category:d,description:(null==s?void 0:s.Description)||(null==l?void 0:l.description)||(null==l?void 0:l.overview),id:n,imageUrl:c||(null==l?void 0:l.imageUrl)||void 0,isEnabled:(null==s?void 0:s.Status)!==k.u.Disabled,name:(null==s?void 0:s.Name)||(null==l?void 0:l.name),owner:null==l?void 0:l.owner,status:null==s?void 0:s.Status,configurationPage:(0,I.$)(r||[],n),version:i,versions:(null==l?void 0:l.versions)||[]}})).sort((function(e,n){var r=e.name,t=n.name;return(r||"").localeCompare(t||"")}))}return[]}),[e,r,v,u,f]);return{data:h,isError:a||c||d,isPending:o||l||v}}(),n=e.data,r=e.isError,h=e.isPending,m=W((0,z.A)("category"),2),y=m[0],g=m[1],x=W((0,z.A)("query"),2),b=x[0],w=x[1],A=W((0,z.A)("status",S.Installed),2),P=A[0],L=A[1],B=(0,p.useCallback)((function(e){w(e.target.value)}),[]),T=(0,p.useCallback)((function(){y?g(""):L(S.All)}),[y]),N=(0,p.useMemo)((function(){if(n){var e=n;return P===S.Installed?e=e.filter((function(e){return e.status})):P===S.Available&&(e=e.filter((function(e){return!e.status}))),y&&(e=y===t.Other.toLowerCase()?e.filter((function(e){return e.category&&!X.includes(e.category.toLowerCase())})):e.filter((function(e){var n;return(null===(n=e.category)||void 0===n?void 0:n.toLowerCase())===y}))),e.filter((function(e){var n;return null===(n=e.name)||void 0===n?void 0:n.toLowerCase().includes(b.toLowerCase())}))}return[]}),[y,n,b,P]);return h?(0,a.jsx)(Q.A,{}):(0,a.jsx)(K.A,{id:"pluginsPage",title:E.Ay.translate("TabPlugins"),className:"type-interior mainAnimatedPage",children:(0,a.jsx)(i.A,{className:"content-primary",children:(0,a.jsxs)(f.A,{spacing:2,children:[(0,a.jsxs)(f.A,{direction:"row",sx:{flexWrap:{xs:"wrap",sm:"nowrap"}},children:[(0,a.jsx)(d.A,{variant:"h1",component:"span",sx:{flexGrow:1,verticalAlign:"middle"},children:E.Ay.translate("TabPlugins")}),(0,a.jsx)(u.A,{component:v.N_,to:"/dashboard/plugins/repositories",variant:"outlined",sx:{marginLeft:2},children:E.Ay.translate("ManageRepositories")}),(0,a.jsx)(i.A,{sx:{display:"flex",justifyContent:"end",marginTop:{xs:2,sm:0},marginLeft:{xs:0,sm:2},width:{xs:"100%",sm:"auto"}},children:(0,a.jsx)(j,{label:E.Ay.translate("Search"),value:b,onChange:B})})]}),r?(0,a.jsx)(o.A,{severity:"error",sx:{marginBottom:2},children:E.Ay.translate("PluginsLoadError")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.A,{children:[(0,a.jsxs)(f.A,{direction:"row",spacing:1,sx:{marginLeft:"-1rem",marginRight:"-1rem",paddingLeft:"1rem",paddingRight:"1rem",paddingBottom:{xs:1,md:.5},overflowX:"auto"},children:[(0,a.jsx)(c.A,{color:P===S.All?"primary":void 0,onClick:function(){return L(S.All)},label:E.Ay.translate("All")}),(0,a.jsx)(c.A,{color:P===S.Available?"primary":void 0,onClick:function(){return L(S.Available)},label:E.Ay.translate("LabelAvailable")}),(0,a.jsx)(c.A,{color:P===S.Installed?"primary":void 0,onClick:function(){return L(S.Installed)},label:E.Ay.translate("LabelInstalled")}),(0,a.jsx)(l.A,{orientation:"vertical",flexItem:!0}),(0,a.jsx)(c.A,{color:y?void 0:"primary",onClick:function(){return g("")},label:E.Ay.translate("All")}),Object.values(t).map((function(e){return(0,a.jsx)(c.A,{color:y===e.toLowerCase()?"primary":void 0,onClick:function(){return g(e.toLowerCase())},label:E.Ay.translate(D[e])},e)}))]}),(0,a.jsx)(l.A,{})]}),(0,a.jsx)(i.A,{children:N.length>0?(0,a.jsx)(s.Ay,{container:!0,spacing:2,children:N.map((function(e){return(0,a.jsx)(s.Ay,{item:!0,xs:12,sm:6,md:4,lg:3,xl:2,children:(0,a.jsx)(H,{plugin:e})},e.id)}))}):(0,a.jsx)(V,{isFiltered:!!y||P!==S.All,onViewAll:T,query:b})})]})]})})})};_.displayName="InstalledPlugins"},32857:function(e,n,r){r.d(n,{R:function(){return a}});var t=r(31110),a=function(e,n){if(n){var r=n.filter((function(n){return n.Id===e})),a=null==r?void 0:r[0];return r.length>1&&(r.find((function(e){return e.Status===t.u.Disabled}))||r.find((function(e){return e.Status===t.u.Restart})))||a}}},33077:function(e,n,r){var t;r.d(n,{s:function(){return t}}),function(e){e.AddToPlaylist="addtoplaylist",e.Custom="custom",e.Edit="edit",e.InstantMix="instantmix",e.Link="link",e.Menu="menu",e.None="none",e.Play="play",e.PlayAllFromHere="playallfromhere",e.PlayMenu="playmenu",e.PlayTrailer="playtrailer",e.ProgramDialog="programdialog",e.Queue="queue",e.QueueAllFromHere="queueallfromhere",e.Record="record",e.Resume="resume",e.SetPlaylistIndex="setplaylistindex"}(t||(t={}))},36645:function(e,n,r){r.d(n,{QW:function(){return w},Qp:function(){return g},Rn:function(){return y},Tj:function(){return v},a_:function(){return h},hn:function(){return f},n5:function(){return d},uA:function(){return m},w:function(){return p},zo:function(){return b}});var t=r(4452),a=r.n(t),o=r(33077),i=r(76942),u=r(58953),c=2/3,l=16/9,s=1e3/185,f=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return e.defaultAction===o.s.Play&&e.isFolder?o.s.Link:e.isPhoto?o.s.Play:e.defaultAction},p=function(e){var n=window.screen;return!!(n&&n.availWidth-e>20)},v=function(e){return null==e?i.G8.MixedSquare:e>=1.33?i.G8.MixedBackdrop:e>.8?i.G8.MixedSquare:i.G8.MixedPortrait},h=function(e){var n;return a()(((n={card:!0})["".concat(e.shape,"Card")]=e.shape,n["".concat(e.cardCssClass)]=e.cardCssClass,n["".concat(e.cardClass)]=e.cardClass,n["card-hoverable"]=e.isDesktop,n["show-focus"]=e.isTV,n["show-animation"]=e.isTV&&e.enableFocusTransform,n.groupedCard=e.showChildCountIndicator&&e.childCount,n["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),n.itemAction="button"===e.tagName,n))},m=function(e){var n;return a()(((n={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[g(e.itemName)]=!e.imgUrl,n))},y=function(e){return a()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},g=function(e){return"defaultCardBackground defaultCardBackground".concat(x(e))},x=function(e){if(e){for(var n=Math.floor(e.length/2),r=String(e.slice(n,n+1).charCodeAt(0)),t=0,a=0;a<r.length;a++)t+=parseInt(r.charAt(a),10);return parseInt(String(t).slice(-1),10)%5+1}return(0,u.HO)(1,5)},b=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?c:-1!==e.indexOf("backdrop")?l:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?s:null:null},w=function(e,n,r,t){switch(e){case"portrait":return A(n,t);case"square":return j(n,t);case"banner":return k(n);case"backdrop":return C(n,t);case"smallBackdrop":return P(n);case"overflowSmallBackdrop":return S(n,r,t);case"overflowPortrait":return I(n,r,t);case"overflowSquare":return O(n,r,t);case"overflowBackdrop":return M(n,r,t);default:return 4}},A=function(e,n){switch(!0){case n:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},j=function(e,n){switch(!0){case n:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},k=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},C=function(e,n){switch(!0){case n:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},P=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},S=function(e,n,r){switch(!0){case r:return 100/18.9;case n&&e>=800:return 100/15.5;case n:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},I=function(e,n,r){switch(!0){case r:return 100/15.5;case n&&e>=1700:return 100/11.6;case n:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},O=function(e,n,r){switch(!0){case r:return 100/15.5;case n&&e>=1700:return 100/11.6;case n:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},M=function(e,n,r){switch(!0){case r:return 100/23.3;case n&&e>=1700:return 100/18.5;case n:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},67087:function(e,n,r){r.d(n,{q:function(){return l}});var t=r(55367),a=r(8280),o=r(80401),i=r(69410),u=r(83565),c=function(e){return(0,a.j)({queryKey:[u.k.Plugins],queryFn:function(n){var r=n.signal;return function(e,n){return r=void 0,a=void 0,i=function(){return function(e,n){var r,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=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,t&&(a=2&u[0]?t.return:u[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,u[1])).done)return a;switch(t=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,t=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=n.call(e,o)}catch(e){u=[6,e],t=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,t.p)(e).getPlugins(n)];case 1:return[2,r.sent().data]}}))},new((o=void 0)||(o=Promise))((function(e,n){function t(e){try{c(i.next(e))}catch(e){n(e)}}function u(e){try{c(i.throw(e))}catch(e){n(e)}}function c(n){var r;n.done?e(n.value):(r=n.value,r instanceof o?r:new o((function(e){e(r)}))).then(t,u)}c((i=i.apply(r,a||[])).next())}));var r,a,o,i}(e,{signal:r})},enabled:!!e})},l=function(){var e=(0,i.gf)().api;return(0,o.I)(c(e))}},69880:function(e,n,r){var t=r(62540),a=(r(63696),r(92779)),o=r(13786),i=r(91520),u=r(47587),c=r(75487),l=r(89348),s=r(15723),f=r(36645),d=r(42087),p=r(70140),v=r(9055),h=function(){return h=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},h.apply(this,arguments)};n.A=function(e){var n=e.title,r=e.text,m=e.image,y=e.icon,g=e.to,x=e.onClick,b=e.action,w=e.actionRef,A=e.onActionClick,j=e.height,k=e.width;return(0,t.jsxs)(o.A,{sx:{display:"flex",flexDirection:"column",height:j||240,width:k},children:[(0,t.jsx)(d.A,h({},g&&{component:v.N_,to:g},{onClick:x,sx:{display:"flex",flexGrow:1,alignItems:"stretch"},children:m?(0,t.jsx)(u.A,{sx:{flexGrow:1},image:m,title:n}):(0,t.jsx)(a.A,{className:(0,f.Qp)(n),sx:{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center"},children:y})})),(0,t.jsx)(i.A,{sx:{minHeight:50,"&:last-child":{paddingBottom:2,paddingRight:1}},children:(0,t.jsxs)(p.A,{flexGrow:1,direction:"row",children:[(0,t.jsxs)(p.A,{flexGrow:1,sx:{overflow:"hidden"},children:[(0,t.jsx)(l.A,{gutterBottom:!0,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:n}),r&&(0,t.jsx)(l.A,{variant:"body2",color:"text.secondary",sx:{lineBreak:"anywhere"},children:r})]}),(0,t.jsx)(a.A,{children:b?(0,t.jsx)(c.A,{ref:w,onClick:A,children:(0,t.jsx)(s.A,{})}):null})]})})]})}},76942:function(e,n,r){var t;function a(e){return void 0===e&&(e=!0),e?t.SquareOverflow:t.Square}function o(e){return void 0===e&&(e=!0),e?t.BackdropOverflow:t.Backdrop}function i(e){return void 0===e&&(e=!0),e?t.PortraitOverflow:t.Portrait}r.d(n,{G8:function(){return t},UI:function(){return o},xK:function(){return i},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(t||(t={}))},83565:function(e,n,r){var t;r.d(n,{k:function(){return t}}),function(e){e.ConfigurationPages="ConfigurationPages",e.Packages="Packages",e.Plugins="Plugins",e.Repositories="Repositories"}(t||(t={}))},85069:function(e,n,r){r.d(n,{q:function(){return l}});var t=r(55990),a=r(8280),o=r(80401),i=r(69410),u=r(83565),c=function(e,n){return(0,a.j)({queryKey:[u.k.ConfigurationPages,null==n?void 0:n.enableInMainMenu],queryFn:function(r){var a=r.signal;return function(e,n,r){return a=void 0,o=void 0,u=function(){return function(e,n){var r,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=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,t&&(a=2&u[0]?t.return:u[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,u[1])).done)return a;switch(t=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,t=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=n.call(e,o)}catch(e){u=[6,e],t=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}(this,(function(a){switch(a.label){case 0:return[4,(0,t.T)(e).getConfigurationPages(n,r)];case 1:return[2,a.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,n){function r(e){try{c(u.next(e))}catch(e){n(e)}}function t(e){try{c(u.throw(e))}catch(e){n(e)}}function c(n){var a;n.done?e(n.value):(a=n.value,a instanceof i?a:new i((function(e){e(a)}))).then(r,t)}c((u=u.apply(a,o||[])).next())}));var a,o,i,u}(e,n,{signal:a})},enabled:!!e})},l=function(e){var n=(0,i.gf)().api;return(0,o.I)(c(n,e))}},95605:function(e,n,r){r.d(n,{$:function(){return t}});var t=function(e,n){var r=e.filter((function(e){return e.PluginId===n}));if(0!==r.length)return 1===r.length?r[0]:r.find((function(e){return!!e.EnableInMainMenu}))||r[0]}},95988:function(e,n,r){r.d(n,{A:function(){return i}});var t=r(63696),a=r(9055),o=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,a,o=r.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)i.push(t.value)}catch(e){a={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=function(e,n){void 0===n&&(n="");var r=o((0,a.ok)(),2),i=r[0],u=r[1],c=i.get(e)||n,l=o((0,t.useState)(c),2),s=l[0],f=l[1],d=function(e,n){var r=(0,t.useRef)(n);return(0,t.useEffect)((function(){r.current=e}),[e]),r.current}(s,n);return(0,t.useEffect)((function(){s!==d?s===n&&c!==n?(i.delete(e),u(i,{replace:!0})):s!==c&&(i.set(e,s),u(i,{replace:!0})):s!==c&&(c||(i.delete(e),u(i,{replace:!0})),f(c))}),[s,d,i,u,c]),[s,f]}}}]);