"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2968],{12968:(e,s,n)=>{n.r(s),n.d(s,{default:()=>j});var i=n(7552),o=n(67112),t=n(84340),l=n(71777),r=n(5690),a=n(61282),c=n(89870),d=n(95054),g=n(68446),p=n(36422),h=n(75785),u=n(69500);const x=(0,h.n9)()(e=>({paper:{overflow:"auto",minWidth:800},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})),b=(0,g.observer)(function({session:e,onClose:s}){const{classes:n}=x(),{visibleWidget:i}=e,{pluginManager:o}=(0,p.getEnv)(e);if(!i)return null;const{HeadingComponent:d,heading:g}=o.getWidgetType(i.type);return(0,u.jsxs)(l.A,{position:"static",children:[(0,u.jsx)(r.A,{children:d?(0,u.jsx)(d,{model:i}):(0,u.jsx)(a.A,{variant:"h6",children:g})}),(0,u.jsx)(c.A,{className:n.closeButton,onClick:s,children:(0,u.jsx)(t.A,{})})]})}),j=(0,g.observer)(function({session:e,onClose:s}){const{classes:n}=x(),{visibleWidget:t}=e,{pluginManager:l}=(0,p.getEnv)(e);if(!t)return null;const{ReactComponent:r}=l.getWidgetType(t.type),a=l.evaluateExtensionPoint("Core-replaceWidget",r,{session:e,model:t});return(0,u.jsx)(o.Dialog,{open:!0,onClose:s,maxWidth:"xl",header:(0,u.jsx)(b,{onClose:s,session:e}),children:a?(0,u.jsx)(i.Suspense,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:(0,u.jsx)(d.A,{className:n.paper,children:(0,u.jsx)(a,{model:t,session:e,modal:!0,overrideDimensions:{height:5*window.innerHeight/8,width:800}})})}):null})})}}]);
//# sourceMappingURL=2968.3f009c55.chunk.js.map