this.webpackChunk([48],{1313:function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),c=t(146),l=t(852),r=t(854),i=t(148),u=t(855),s=t(80),m=t(401),d=t(856),E=t(137),f=t(50),C=t.n(f),p=t(16),b=t(5),g=Object(c.a)((function(e){return{closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]},connectionContainer:{margin:e.spacing(4),width:500}}}));n.default=Object(p.observer)((function(e){var n=e.session,t=e.handleClose,a=e.breakConnection,c=g(),f=n.adminMode,p=n.connections,h=n.sessionConnections;return o.a.createElement(l.a,{open:!0,onClose:t,maxWidth:"lg"},o.a.createElement(r.a,null,"Delete connections",o.a.createElement(i.a,{className:c.closeButton,onClick:function(){return t()}},o.a.createElement(C.a,null))),o.a.createElement(u.a,null,o.a.createElement(s.a,null,"Click the X icon to delete the connection from your config completely"),o.a.createElement("div",{className:c.connectionContainer},p.map((function(e){var n=Object(b.readConfObject)(e,"name");return o.a.createElement("div",{key:"conn-".concat(n)},o.a.createElement(s.a,null,f||null!==h&&void 0!==h&&h.includes(e)?o.a.createElement(i.a,{onClick:function(){return a(e,!0)}},o.a.createElement(C.a,{color:"error"})):o.a.createElement(m.a,{title:"Unable to delete connection in config file as non-admin user"},o.a.createElement(i.a,null,o.a.createElement(C.a,{color:"disabled"}))),n))})),p.length?null:o.a.createElement(s.a,null,"No connections found"))),o.a.createElement(d.a,null,o.a.createElement(E.a,{onClick:function(){return t()},variant:"contained",color:"primary"},"Close")))}))}});
//# sourceMappingURL=48.036851d5f5ae716110a5.worker.js.map