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