"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7281],{97281:function(e,t,n){n.r(t);var s=n(96234),i=n(30969),a=n(90550),r=n(92256),o=n(48651),c=n(66581),u=n(17984),l=n(70054),h=n(35436),d=n(78742),g=n(21268),p=n(52907),f=n(69852),b=n(2374),j=n(88581),Z=n(37574),x=(0,b.ZL)()((function(e){return{closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}}}));t.default=(0,a.observer)((function(e){var t=x().classes,n=e.model,a=e.handleClose,b=n.featureHeightSetting,m=n.noSpacing,v=(0,i.useState)("".concat(b)),C=(0,s.Z)(v,2),k=C[0],w=C[1],y=(0,i.useState)(m),N=(0,s.Z)(y,2),S=N[0],_=N[1],F=""!==k&&!Number.isNaN(+k);return(0,Z.jsxs)(r.Z,{open:!0,onClose:a,children:[(0,Z.jsxs)(o.Z,{children:["Set feature height",(0,Z.jsx)(c.Z,{className:t.closeButton,onClick:a,children:(0,Z.jsx)(j.Z,{})})]}),(0,Z.jsxs)(u.Z,{children:[(0,Z.jsx)(l.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,Z.jsx)(h.Z,{value:k,helperText:"Feature height",onChange:function(e){w(e.target.value)}}),(0,Z.jsx)(d.Z,{control:(0,Z.jsx)(g.Z,{checked:!!S,onChange:function(){return _((function(e){return!e}))}}),label:"Remove spacing between features in y-direction?"}),(0,Z.jsxs)(p.Z,{children:[(0,Z.jsx)(f.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,disabled:!F,onClick:function(){n.setFeatureHeight(""===k||Number.isNaN(+k)?void 0:+k),n.setNoSpacing(S),a()},children:"Submit"}),(0,Z.jsx)(f.Z,{variant:"contained",color:"secondary",onClick:function(){return a()},children:"Cancel"})]})]})]})}))}}]);
//# sourceMappingURL=7281.b1aa7782.chunk.js.map