"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(84636),s=o(38357),r=o(94551),t=o(59071),i=o(33359),l=o(49884),a=o(88876),u=o(96074),d=o(72097),f=o(2374),h=o(88581),j=o(90550),b=o(9077),m=o(37574),x=(0,f.ZL)()((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,f=n.assemblyName,j=n.breakConnection,C=x().classes,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(f)}));return(0,m.jsxs)(c.Z,{open:!0,onClose:o,maxWidth:"lg",children:[(0,m.jsxs)(s.Z,{children:["Turn on/off connections",(0,m.jsx)(r.Z,{className:C.closeButton,onClick:function(){return o()},children:(0,m.jsx)(h.Z,{})})]}),(0,m.jsxs)(t.Z,{children:[(0,m.jsx)(i.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)(l.Z,{control:(0,m.jsx)(a.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)(i.Z,{children:["No connections found for ",f]})]})]}),(0,m.jsx)(u.Z,{children:(0,m.jsx)(d.Z,{onClick:function(){return o()},variant:"contained",color:"primary",children:"Close"})})]})}))}}]);
//# sourceMappingURL=9145.fff50744.chunk.js.map