this.webpackChunk([50],{2015:function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),c=t(165),l=t(852),r=t(854),i=t(152),u=t(855),s=t(85),m=t(847),f=t(652),d=t(856),b=t(142),v=t(53),C=t.n(v),E=t(15),h=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(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=50.d97312aa0737aaeef47c.worker.js.map