(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[61],{2334:function(e,n,t){"use strict";t.r(n);var a=t(1),o=t.n(a),c=t(51),r=t(2396),l=t(2399),i=t(2368),s=t(2400),u=t(2364),m=t(2380),f=t(2471),b=t(2402),d=t(2363),p=t(131),v=t.n(p),h=t(85),C=t(82),E=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,p=E(),h=n.connections,g=n.connectionInstances,j=h.filter((function(e){var n=Object(C.readConfObject)(e,"assemblyNames");return 0===n.length||n.includes(a)}));return o.a.createElement(r.a,{open:!0,onClose:t,maxWidth:"lg"},o.a.createElement(l.a,null,"Turn on/off connections",o.a.createElement(i.a,{className:p.closeButton,onClick:function(){return t()}},o.a.createElement(v.a,null))),o.a.createElement(s.a,null,o.a.createElement(u.a,null,"Use the checkbox to turn on/off connections"),o.a.createElement("div",{className:p.connectionContainer},j.map((function(e){var t=Object(C.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(C.readConfObject)(e,"name")})))?c(e):null===(t=n.makeConnection)||void 0===t||t.call(n,e)},color:"primary"}),label:t}))})),j.length?null:o.a.createElement(u.a,null,"No connections found for ",a))),o.a.createElement(b.a,null,o.a.createElement(d.a,{onClick:function(){return t()},variant:"contained",color:"primary"},"Close")))}))}}]);
//# sourceMappingURL=61.b87da8af.chunk.js.map