"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9589],{49589:(e,a,t)=>{t.r(a),t.d(a,{default:()=>b});var o=t(7552),s=t(67112),r=t(76218),i=t(61282),n=t(93062),l=t(30698),c=t(69092),h=t(68446),u=t(75785),d=t(69500);const x=(0,u.n9)()({root:{width:500}}),b=(0,h.observer)(function(e){const{model:a,handleClose:t}=e,{classes:h}=x(),{maxHeight:u=""}=a,[b,g]=(0,o.useState)(`${u}`);return(0,d.jsx)(s.Dialog,{open:!0,onClose:t,title:"Set max height",children:(0,d.jsxs)(r.A,{className:h.root,children:[(0,d.jsx)(i.A,{children:'Set max height for the track. For example, you can increase this if the layout says "Max height reached"'}),(0,d.jsx)(n.A,{value:b,autoFocus:!0,onChange:e=>{g(e.target.value)},placeholder:"Enter max height for layout"}),(0,d.jsxs)(l.A,{children:[(0,d.jsx)(c.A,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,onClick:()=>{a.setMaxHeight(""===b||Number.isNaN(+b)?void 0:+b),t()},children:"Submit"}),(0,d.jsx)(c.A,{variant:"contained",color:"secondary",onClick:()=>{t()},children:"Cancel"})]})]})})})}}]);
//# sourceMappingURL=9589.360e4c0b.chunk.js.map