"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6873],{26873:function(e,t,n){n.r(t);var a=n(96234),i=n(96902),r=n(4782),o=n(88117),s=n(72988),c=n(60916),u=n(79002),h=n(71710),l=n(18726),d=n(96565),g=n(18849),f=n(29938);t.default=(0,r.observer)((function(e){var t=e.model,n=e.handleClose,r=t.featureHeightSetting,b=t.noSpacing,p=(0,i.useState)("".concat(r)),j=(0,a.Z)(p,2),v=j[0],m=j[1],x=(0,i.useState)(b),Z=(0,a.Z)(x,2),w=Z[0],C=Z[1],k=""!==v&&!Number.isNaN(+v);return(0,f.jsx)(g.Dialog,{open:!0,onClose:n,title:"Set feature height",children:(0,f.jsxs)(o.Z,{children:[(0,f.jsx)(s.Z,{children:"Adjust the feature height and whether there is any spacing between features. Setting feature height to 1 and removing spacing makes the display very compact."}),(0,f.jsx)(c.Z,{value:v,helperText:"Feature height",onChange:function(e){m(e.target.value)}}),(0,f.jsx)(u.Z,{control:(0,f.jsx)(h.Z,{checked:!!w,onChange:function(){return C((function(e){return!e}))}}),label:"Remove spacing between features in y-direction?"}),(0,f.jsxs)(l.Z,{children:[(0,f.jsx)(d.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,disabled:!k,onClick:function(){t.setFeatureHeight(""===v||Number.isNaN(+v)?void 0:+v),t.setNoSpacing(w),n()},children:"Submit"}),(0,f.jsx)(d.Z,{variant:"contained",color:"secondary",onClick:function(){return n()},children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=6873.33b342cb.chunk.js.map