"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[46390],{38596:function(e,t,r){r.d(t,{n:function(){return y}}),r(29305),r(32733),r(84701),r(81678),r(14382),r(69892),r(44962),r(89336),r(4754),r(94),r(33087),r(36947),r(36457),r(88908),r(83810),r(78557),r(95021),r(73687),r(83994),r(23630),r(82367);var n=r(63696),o=r(427),i=r(52672),a=r(26073),l=r(9790);function c(e){return c="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},c(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,u.useState)(!1),2),i=o[0],a=o[1],l=(0,u.useCallback)((function(){a(!0)}),[]),c=(0,u.useCallback)((function(){a(!1)}),[]),f=(0,u.useCallback)((function(){r(t),a(!1)}),[r,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.A,{open:i,title:s.Ay.translate("ConfirmDeleteRepository"),text:s.Ay.translate("DeleteRepositoryConfirmation"),onConfirm:f,onCancel:c,confirmButtonColor:"error",confirmButtonText:s.Ay.translate("Delete")}),(0,n.jsx)(j.Ay,{disablePadding:!0,secondaryAction:(0,n.jsx)(g.A,{disableInteractive:!0,title:s.Ay.translate("ButtonRemove"),children:(0,n.jsx)(w.A,{onClick:l,children:(0,n.jsx)(C.A,{})})}),children:(0,n.jsxs)(R.A,{children:[(0,n.jsx)(E.A,{href:t.Url||"#",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(S.A,{children:(0,n.jsx)(P.A,{sx:{bgcolor:"primary.main"},children:(0,n.jsx)(k.A,{sx:{color:"#fff"}})})})}),(0,n.jsx)(O.A,{primary:t.Name,secondary:t.Url,slotProps:{primary:{variant:"h3"},secondary:{variant:"body1"}}})]})})]})},U=r(38596),D=r(31297),T=r(62010),B=r(9042),q=r(98756),L=r(37793),F=r(57836),H=function(e){var t=e.open,r=e.onClose,o=e.onAdd,a=(0,u.useCallback)((function(e){var t,r;e.preventDefault();var n=new FormData(e.currentTarget),i=Object.fromEntries(n.entries()),a={Name:null===(t=i.Name)||void 0===t?void 0:t.toString(),Url:null===(r=i.Url)||void 0===r?void 0:r.toString(),Enabled:!0};o(a)}),[o]);return(0,n.jsxs)(T.A,{open:t,maxWidth:"xs",fullWidth:!0,onClose:r,slotProps:{paper:{component:"form",onSubmit:a}},children:[(0,n.jsx)(B.A,{children:s.Ay.translate("HeaderNewRepository")}),(0,n.jsx)(L.A,{children:(0,n.jsxs)(f.A,{spacing:3,children:[(0,n.jsx)(F.A,{name:"Name",label:s.Ay.translate("LabelRepositoryName"),helperText:s.Ay.translate("LabelRepositoryNameHelp"),slotProps:{htmlInput:{required:!0}}}),(0,n.jsx)(F.A,{name:"Url",label:s.Ay.translate("LabelRepositoryUrl"),helperText:s.Ay.translate("LabelRepositoryUrlHelp"),type:"url"})]})}),(0,n.jsxs)(q.A,{children:[(0,n.jsx)(i.A,{onClick:r,variant:"text",children:s.Ay.translate("ButtonCancel")}),(0,n.jsx)(i.A,{type:"submit",children:s.Ay.translate("Add")})]})]})},G=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},M=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o0?(0,n.jsx)(x.A,{sx:{bgcolor:"background.paper"},children:r.map((function(e){return(0,n.jsx)(I,{repository:e,onDelete:S},e.Url)}))}):(0,n.jsxs)(f.A,{alignSelf:"center",alignItems:"center",maxWidth:"500px",spacing:2,children:[(0,n.jsx)(a.A,{variant:"h2",children:s.Ay.translate("MessageNoRepositories")}),(0,n.jsx)(a.A,{textAlign:"center",children:s.Ay.translate("MessageAddRepository")})]})]})})]})};W.displayName="PluginRepositoriesPage"},83565:function(e,t,r){var n;r.d(t,{k:function(){return n}}),function(e){e.ConfigurationPages="ConfigurationPages",e.Packages="Packages",e.Plugins="Plugins",e.Repositories="Repositories"}(n||(n={}))}}]);