"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7281],{97281:function(e,t,n){n.r(t);var r=n(96234),a=n(30969),i=n(90550),o=n(59071),s=n(33359),c=n(87006),u=n(49884),h=n(88876),l=n(96074),d=n(72097),g=n(59767),f=n(37574),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=7281.fb4726f1.chunk.js.map