this.webpackChunk([50],{1891:function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),c=t(162),l=t(830),r=t(832),i=t(149),u=t(833),s=t(82),m=t(825),f=t(637),d=t(834),b=t(138),C=t(49),E=t.n(C),h=t(16),v=t(3),p=Object(c.a)((function(e){return{closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]},connectionContainer:{width:500,margin:e.spacing(4)}}}));n.default=Object(h.observer)((function(e){var n=e.session,t=e.handleClose,a=e.assemblyName,c=e.breakConnection,C=p(),h=n.connections,g=n.connectionInstances,k=h.filter((function(e){var n=Object(v.readConfObject)(e,"assemblyNames");return 0===n.length||n.includes(a)}));return o.a.createElement(l.a,{open:!0,onClose:t,maxWidth:"lg"},o.a.createElement(r.a,null,"Turn on/off connections",o.a.createElement(i.a,{className:C.closeButton,onClick:function(){return t()}},o.a.createElement(E.a,null))),o.a.createElement(u.a,null,o.a.createElement(s.a,null,"Use the checkbox to turn on/off connections"),o.a.createElement("div",{className:C.connectionContainer},k.map((function(e){var t=Object(v.readConfObject)(e,"name");return o.a.createElement("div",{key:e.connectionId},o.a.createElement(m.a,{control:o.a.createElement(f.a,{checked:!(null===g||void 0===g||!g.find((function(e){return t===e.name}))),onChange:function(){var t;null!==g&&void 0!==g&&g.find((function(n){return n.name===Object(v.readConfObject)(e,"name")}))?c(e):null===(t=n.makeConnection)||void 0===t||t.call(n,e)},color:"primary"}),label:t}))})),k.length?null:o.a.createElement(s.a,null,"No connections found for ",a))),o.a.createElement(d.a,null,o.a.createElement(b.a,{onClick:function(){return t()},variant:"contained",color:"primary"},"Close")))}))}});
//# sourceMappingURL=50.235027ab1390991c7cb1.worker.js.map