(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[68],{2179:function(e,n,t){"use strict";t.r(n);var a=t(1),o=t.n(a),c=t(51),r=t(2240),l=t(2243),i=t(2215),s=t(2244),u=t(2211),m=t(2225),f=t(2321),b=t(2246),d=t(2208),p=t(117),h=t.n(p),C=t(87),E=t(82),v=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(C.observer)((function(e){var n=e.session,t=e.handleClose,a=e.assemblyName,c=e.breakConnection,p=v(),C=n.connections,g=n.connectionInstances,j=C.filter((function(e){var n=Object(E.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(h.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(E.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(E.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=68.c15faa16.chunk.js.map