"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7194],{67194:function(e,n,t){t.r(n);var a=t(96234),r=t(96902),o=t(4782),i=t(46186),s=t(52809),c=t(35388),l=t(66519),h=t(99688),u=t(44536),d=t(91188),x=t(29938),f=(0,d.ZL)()((function(e){return{root:{width:500},field:{margin:e.spacing(2)}}}));n.default=(0,o.observer)((function(e){var n=e.model,t=e.handleClose,o=f().classes,d=n.maxHeight,m=void 0===d?"":d,b=(0,r.useState)("".concat(m)),g=(0,a.Z)(b,2),j=g[0],p=g[1];return(0,x.jsx)(i.Dialog,{open:!0,onClose:t,title:"Set max height",children:(0,x.jsxs)(s.Z,{className:o.root,children:[(0,x.jsx)(c.Z,{children:'Set max height for the track. For example, you can increase this if the layout says "Max height reached"'}),(0,x.jsx)(l.Z,{value:j,onChange:function(e){return p(e.target.value)},placeholder:"Enter max score"}),(0,x.jsxs)(h.Z,{children:[(0,x.jsx)(u.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,onClick:function(){n.setMaxHeight(""===j||Number.isNaN(+j)?void 0:+j),t()},children:"Submit"}),(0,x.jsx)(u.Z,{variant:"contained",color:"secondary",onClick:function(){return t()},children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=7194.44048e0f.chunk.js.map