this.webpackChunk([49],{1314: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(847),f=t(658),d=t(856),b=t(137),C=t(50),E=t.n(C),h=t(16),v=t(5),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.036851d5f5ae716110a5.worker.js.map