"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1782],{11782:function(n,e,o){o.r(e);o(30969);var c=o(59071),i=o(33359),s=o(94551),r=o(6779),l=o(96074),t=o(72097),a=o(59767),d=o(53276),u=o(90550),h=o(9077),j=o(88581),f=o(37574),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=1782.f143645a.chunk.js.map