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