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