this.webpackChunk([49],{1309:function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),c=t(146),l=t(847),r=t(849),i=t(148),u=t(850),s=t(80),m=t(842),f=t(656),d=t(851),b=t(137),C=t(52),E=t.n(C),h=t(16),v=t(4),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=49.67b1db759ea9fbaf17d9.worker.js.map