this.webpackChunk([45],{2078: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(908),f=t(686),d=t(948),b=t(174),v=t(72),C=t.n(v),E=t(16),h=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(E.observer)((function(e){var n=e.session,t=e.handleClose,a=e.assemblyName,c=e.breakConnection,v=p(),E=n.connections,g=n.connectionInstances,k=E.filter((function(e){var n=Object(h.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:v.closeButton,onClick:function(){return t()}},o.a.createElement(C.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:v.connectionContainer},k.map((function(e){var t=Object(h.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?void 0:g.find((function(e){return t===e.name}))),onChange:function(){var t;(null===g||void 0===g?void 0:g.find((function(n){return n.name===Object(h.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=45.755b57b40b029263b59b.worker.js.map