"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[741],{60741:(e,n,t)=>{t.r(n),t.d(n,{default:()=>A});var o=t(7552),l=t(89003),c=t(61723),r=t(29499),a=t(36715),i=t(58507),s=t(5401),m=t(49823),u=t(75785),d=t(68446),E=t(68584),b=t(84313);const C=(0,u.n9)()((e=>({connectionContainer:{margin:e.spacing(4),width:500}})));function h(){return o.createElement(l.A,{title:"Unable to delete connection in config file as non-admin user"},o.createElement(c.A,null,o.createElement(b.A,{color:"disabled"})))}const A=(0,d.observer)((function({session:e,handleClose:n,breakConnection:t}){const{classes:l}=C(),{adminMode:u,connections:d,sessionConnections:A}=e;return o.createElement(m.Dialog,{open:!0,onClose:n,maxWidth:"lg",title:"Delete connections"},o.createElement(r.A,null,o.createElement(a.A,null,"Click the X icon to delete the connection from your config completely"),o.createElement("div",{className:l.connectionContainer},d.map((e=>{const n=(0,E.readConfObject)(e,"name");return o.createElement(a.A,{key:`conn-${n}`},u||A?.includes(e)?o.createElement(c.A,{onClick:()=>{t(e,!0)}},o.createElement(b.A,{color:"error"})):o.createElement(h,null),n)})),d.length?null:o.createElement(a.A,null,"No connections found"))),o.createElement(i.A,null,o.createElement(s.A,{onClick:()=>{n()},variant:"contained",color:"primary"},"Close")))}))}}]);
//# sourceMappingURL=741.eccd6f63.chunk.js.map