"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8556],{78556:(e,o,s)=>{s.r(o),s.d(o,{default:()=>h});var n=s(67758),i=s(67112),r=s(61282),l=s(76218),c=s(69092),t=s(30698),a=s(69500);function h(e){const o=(0,n.c)(20),{onClose:s,plugin:h}=e,u=`Remove ${h}`;let d,m,b,j,w,C,p,x;return o[0]!==s?(d=()=>{s()},o[0]=s,o[1]=d):d=o[1],o[2]!==h?(m=(0,a.jsxs)(r.A,{children:["Please confirm that you want to remove ",h,"."]}),o[2]=h,o[3]=m):m=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(r.A,{color:"error",children:"Note: if any resources in this session still use this plugin, it may cause your session to crash"}),o[4]=b):b=o[4],o[5]!==m?(j=(0,a.jsxs)(l.A,{children:[m,b]}),o[5]=m,o[6]=j):j=o[6],o[7]!==s||o[8]!==h?(w=(0,a.jsx)(c.A,{variant:"contained",color:"primary",onClick:()=>{window.setTimeout(()=>{s(h)},500)},children:"Confirm"}),o[7]=s,o[8]=h,o[9]=w):w=o[9],o[10]!==s?(C=(0,a.jsx)(c.A,{variant:"contained",color:"secondary",onClick:()=>{s()},children:"Cancel"}),o[10]=s,o[11]=C):C=o[11],o[12]!==w||o[13]!==C?(p=(0,a.jsxs)(t.A,{children:[w,C]}),o[12]=w,o[13]=C,o[14]=p):p=o[14],o[15]!==u||o[16]!==d||o[17]!==j||o[18]!==p?(x=(0,a.jsxs)(i.Dialog,{open:!0,title:u,onClose:d,children:[j,p]}),o[15]=u,o[16]=d,o[17]=j,o[18]=p,o[19]=x):x=o[19],x}}}]);
//# sourceMappingURL=8556.ad449d4b.chunk.js.map