this.webpackChunk([44],{2077:function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),c=t(358),l=t(944),r=t(945),i=t(205),u=t(946),s=t(99),m=t(458),d=t(948),E=t(174),f=t(72),C=t.n(f),p=t(16),b=t(4),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?void 0: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=44.755b57b40b029263b59b.worker.js.map