"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7696],{87696:function(n,e,o){o.r(e);o(41867);var c=o(47409),i=o(51590),s=o(68367),r=o(77573),l=o(27768),t=o(23801),a=o(35421),d=o(47192),u=o(3762),h=o(43800),j=o(22177),f=o(80838),x=(0,d.ZL)()((function(n){return{connectionContainer:{margin:n.spacing(4),width:500}}})),C=(0,u.observer)((function(n){var e=n.session,o=n.handleClose,d=n.breakConnection,u=x().classes,C=e.adminMode,Z=e.connections,b=e.sessionConnections;return(0,f.jsxs)(a.Dialog,{open:!0,onClose:o,maxWidth:"lg",title:"Delete connections",children:[(0,f.jsxs)(c.Z,{children:[(0,f.jsx)(i.Z,{children:"Click the X icon to delete the connection from your config completely"}),(0,f.jsxs)("div",{className:u.connectionContainer,children:[Z.map((function(n){var e=(0,h.readConfObject)(n,"name");return(0,f.jsxs)(i.Z,{children:[C||null!==b&&void 0!==b&&b.includes(n)?(0,f.jsx)(s.Z,{onClick:function(){return d(n,!0)},children:(0,f.jsx)(j.Z,{color:"error"})}):(0,f.jsx)(r.Z,{title:"Unable to delete connection in config file as non-admin user",children:(0,f.jsx)(s.Z,{children:(0,f.jsx)(j.Z,{color:"disabled"})})}),e]},"conn-".concat(e))})),Z.length?null:(0,f.jsx)(i.Z,{children:"No connections found"})]})]}),(0,f.jsx)(l.Z,{children:(0,f.jsx)(t.Z,{onClick:function(){return o()},variant:"contained",color:"primary",children:"Close"})})]})}));e.default=C}}]);
//# sourceMappingURL=7696.acd3225c.chunk.js.map