"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4033],{34033:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var l=a(7552),n=a(68446),r=a(49823),o=a(29499),c=a(36715),s=a(1343),i=a(58507),h=a(5401);const u=(0,a(75785).n9)()({root:{width:500}}),m=(0,n.observer)((function({model:e,handleClose:t}){const{classes:a}=u(),{maxHeight:n=""}=e,[m,d]=(0,l.useState)(`${n}`),b=""!==m&&!Number.isNaN(+m);return l.createElement(r.Dialog,{open:!0,onClose:t,title:"Set max height"},l.createElement(o.A,{className:a.root},l.createElement(c.A,null,'Set max height for the track. For example, you can increase this if the layout says "Max height reached"'),l.createElement(s.A,{value:m,onChange:e=>{d(e.target.value)},placeholder:"Enter max score"}),b?null:l.createElement("div",{style:{color:"red"}},"Invalid number")),l.createElement(i.A,null,l.createElement(h.A,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,disabled:!b,onClick:()=>{e.setMaxHeight(+m),t()}},"Submit"),l.createElement(h.A,{variant:"contained",color:"secondary",onClick:()=>{t()}},"Cancel")))}))}}]);
//# sourceMappingURL=4033.df8ecd0d.chunk.js.map