"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[7696],{87696:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Z});var o=t(66204),l=t(29520),c=t(80013),a=t(49140),r=t(23540),i=t(62301),s=t(7146),m=t(35421),u=t(38684),d=t(80846),b=t(43800),C=t(3206);const E=(0,u.ZL)()((e=>({connectionContainer:{margin:e.spacing(4),width:500}}))),Z=(0,d.observer)((function({session:e,handleClose:n,breakConnection:t}){const{classes:u}=E(),{adminMode:d,connections:Z,sessionConnections:h}=e;return o.createElement(m.Dialog,{open:!0,onClose:n,maxWidth:"lg",title:"Delete connections"},o.createElement(l.Z,null,o.createElement(c.Z,null,"Click the X icon to delete the connection from your config completely"),o.createElement("div",{className:u.connectionContainer},Z.map((e=>{const n=(0,b.readConfObject)(e,"name");return o.createElement(c.Z,{key:`conn-${n}`},d||h?.includes(e)?o.createElement(a.Z,{onClick:()=>t(e,!0)},o.createElement(C.Z,{color:"error"})):o.createElement(r.Z,{title:"Unable to delete connection in config file as non-admin user"},o.createElement(a.Z,null,o.createElement(C.Z,{color:"disabled"}))),n)})),Z.length?null:o.createElement(c.Z,null,"No connections found"))),o.createElement(i.Z,null,o.createElement(s.Z,{onClick:()=>n(),variant:"contained",color:"primary"},"Close")))}))}}]);
//# sourceMappingURL=7696.68316b43.chunk.js.map