"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 o=t(7552),l=t(27281),s=t(17515),a=t(36715),i=t(61723),r=t(943),c=t(49823),g=t(75785),u=t(68446),p=t(36422),m=t(30157);const d=(0,g.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,u.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:g,heading:u}=c.getWidgetType(r.type);return o.createElement(l.A,{position:"static"},o.createElement(s.A,null,g?o.createElement(g,{model:r}):o.createElement(a.A,{variant:"h6"},u)),o.createElement(i.A,{className:t.closeButton,onClick:n},o.createElement(m.A,null)))})),E=(0,u.observer)((function({session:e,onClose:n}){const{classes:t}=d(),{visibleWidget:l}=e,{pluginManager:s}=(0,p.getEnv)(e);if(!l)return null;const{ReactComponent:a}=s.getWidgetType(l.type),i=s.evaluateExtensionPoint("Core-replaceWidget",a,{session:e,model:l});return o.createElement(c.Dialog,{open:!0,onClose:n,maxWidth:"xl",header:o.createElement(h,{onClose:n,session:e})},i?o.createElement(o.Suspense,{fallback:o.createElement("div",null,"Loading...")},o.createElement(r.A,{className:t.paper},o.createElement(i,{model:l,session:e,modal:!0,overrideDimensions:{height:5*window.innerHeight/8,width:800}}))):null)}))}}]);
//# sourceMappingURL=2968.4d90773a.chunk.js.map