"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[741],{60741:(n,e,o)=>{o.r(e),o.d(e,{default:()=>A});var c=o(67758),s=o(68584),i=o(67112),l=o(84340),t=o(37962),r=o(89870),a=o(76218),d=o(61282),h=o(30698),j=o(69092),u=o(68446),x=o(75785),b=o(69500);const m=(0,x.n9)()(n=>({connectionContainer:{margin:n.spacing(4),width:500}}));function C(){const n=(0,c.c)(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(t.A,{title:"Unable to delete connection in config file as non-admin user",children:(0,b.jsx)(r.A,{children:(0,b.jsx)(l.A,{color:"disabled"})})}),n[0]=e):e=n[0],e}const A=(0,u.observer)(function({session:n,handleClose:e,breakConnection:o}){const{classes:c}=m(),{adminMode:t,connections:u,sessionConnections:x}=n;return(0,b.jsxs)(i.Dialog,{open:!0,onClose:e,maxWidth:"lg",title:"Delete connections",children:[(0,b.jsxs)(a.A,{children:[(0,b.jsx)(d.A,{children:"Click the X icon to delete the connection from your config completely"}),(0,b.jsxs)("div",{className:c.connectionContainer,children:[u.map(n=>{const e=(0,s.readConfObject)(n,"name");return(0,b.jsxs)(d.A,{children:[t||x?.includes(n)?(0,b.jsx)(r.A,{onClick:()=>{o(n,!0)},children:(0,b.jsx)(l.A,{color:"error"})}):(0,b.jsx)(C,{}),e]},`conn-${e}`)}),u.length?null:(0,b.jsx)(d.A,{children:"No connections found"})]})]}),(0,b.jsx)(h.A,{children:(0,b.jsx)(j.A,{onClick:()=>{e()},variant:"contained",color:"primary",children:"Close"})})]})})}}]);
//# sourceMappingURL=741.caecd944.chunk.js.map