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