"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6417],{56417:function(n,e,o){o.r(e);o(96902);var c=o(52809),i=o(35388),s=o(25322),r=o(50543),l=o(99688),t=o(44536),a=o(46186),d=o(91188),u=o(4782),h=o(99836),j=o(47057),f=o(29938),x=(0,d.ZL)()((function(n){return{connectionContainer:{margin:n.spacing(4),width:500}}}));e.default=(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"})})]})}))}}]);
//# sourceMappingURL=6417.c4ceeca5.chunk.js.map