"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[4655],{14655:function(e,t,n){n.r(t);var r=n(96234),a=n(41867),i=n(3762),o=n(47409),s=n(51590),c=n(49133),u=n(96614),h=n(83171),l=n(27768),d=n(23801),g=n(35421),f=n(80838),b=(0,i.observer)((function(e){var t=e.model,n=e.handleClose,i=t.featureHeightSetting,b=t.noSpacing,p=(0,a.useState)("".concat(i)),j=(0,r.Z)(p,2),v=j[0],m=j[1],x=(0,a.useState)(b),Z=(0,r.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){return 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"})]})]})})}));t.default=b}}]);
//# sourceMappingURL=4655.fd36b515.chunk.js.map