"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[9145],{19145:function(n,e,o){o.r(e),o.d(e,{ellipses:function(){return x}});o(30969);var c=o(92256),t=o(48651),s=o(66581),i=o(17984),r=o(70054),a=o(78742),l=o(21268),u=o(52907),d=o(69852),h=o(2374),f=o(88581),j=o(90550),b=o(9077),p=o(37574);function x(n){return n.length>20?"".concat(n.slice(0,20),"..."):n}var C=(0,h.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,h=n.breakConnection,j=C().classes,m=e.connections,Z=e.connectionInstances,g=void 0===Z?[]:Z;return(0,p.jsxs)(c.Z,{open:!0,onClose:o,maxWidth:"lg",children:[(0,p.jsxs)(t.Z,{children:["Turn on/off connections",(0,p.jsx)(s.Z,{className:j.closeButton,onClick:function(){return o()},children:(0,p.jsx)(f.Z,{})})]}),(0,p.jsxs)(i.Z,{children:[(0,p.jsx)(r.Z,{children:"Use the checkbox to turn on/off connections"}),(0,p.jsxs)("div",{className:j.connectionContainer,children:[m.map((function(n){var o=(0,b.readConfObject)(n,"name"),c=(0,b.readConfObject)(n,"assemblyNames"),t=g.find((function(n){return o===n.name}));return(0,p.jsx)(a.Z,{control:(0,p.jsx)(l.Z,{checked:!!t,onChange:function(){var o;t?h(n):null===(o=e.makeConnection)||void 0===o||o.call(e,n)},color:"primary"}),label:"".concat(o," (").concat(x(c.join(",")),")")},n.connectionId)})),m.length?null:(0,p.jsx)(r.Z,{children:"No connections found"})]})]}),(0,p.jsx)(u.Z,{children:(0,p.jsx)(d.Z,{onClick:function(){return o()},variant:"contained",color:"primary",children:"Close"})})]})}))}}]);
//# sourceMappingURL=9145.23e62f87.chunk.js.map