"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[9145],{19145:function(n,e,o){o.r(e);o(30969);var c=o(22714),r=o(83483),s=o(64501),t=o(32343),i=o(93138),l=o(80975),a=o(93717),u=o(24684),d=o(53033),f=o(28599),h=o(14008),j=o(90550),b=o(9077),m=o(37574),x=(0,c.Z)((function(n){return{closeButton:{position:"absolute",right:n.spacing(1),top:n.spacing(1),color:n.palette.grey[500]},connectionContainer:{width:500,margin:n.spacing(4)}}}));e.default=(0,j.observer)((function(n){var e=n.session,o=n.handleClose,c=n.assemblyName,j=n.breakConnection,C=x(),p=e.connections,Z=e.connectionInstances,g=void 0===Z?[]:Z,k=p.filter((function(n){var e=(0,b.readConfObject)(n,"assemblyNames");return 0===e.length||e.includes(c)}));return(0,m.jsxs)(r.Z,{open:!0,onClose:o,maxWidth:"lg",children:[(0,m.jsxs)(s.Z,{children:["Turn on/off connections",(0,m.jsx)(t.Z,{className:C.closeButton,onClick:function(){return o()},children:(0,m.jsx)(h.Z,{})})]}),(0,m.jsxs)(i.Z,{children:[(0,m.jsx)(l.Z,{children:"Use the checkbox to turn on/off connections"}),(0,m.jsxs)("div",{className:C.connectionContainer,children:[k.map((function(n){var o=(0,b.readConfObject)(n,"name"),c=g.find((function(n){return o===n.name}));return(0,m.jsx)(a.Z,{control:(0,m.jsx)(u.Z,{checked:!!c,onChange:function(){var o;c?j(n):null===(o=e.makeConnection)||void 0===o||o.call(e,n)},color:"primary"}),label:o},n.connectionId)})),k.length?null:(0,m.jsxs)(l.Z,{children:["No connections found for ",c]})]})]}),(0,m.jsx)(d.Z,{children:(0,m.jsx)(f.Z,{onClick:function(){return o()},variant:"contained",color:"primary",children:"Close"})})]})}))}}]);
//# sourceMappingURL=9145.d32988a9.chunk.js.map