"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7281],{97281:function(e,t,n){n.r(t);var i=n(96234),r=n(30969),a=n(90550),s=n(22714),o=n(83483),c=n(64501),u=n(32343),l=n(93138),h=n(80975),d=n(7690),g=n(93717),p=n(24684),f=n(53033),b=n(28599),j=n(14008),Z=n(37574),x=(0,s.Z)((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(),n=e.model,a=e.handleClose,s=n.featureHeightSetting,m=n.noSpacing,v=(0,r.useState)("".concat(s)),C=(0,i.Z)(v,2),k=C[0],w=C[1],y=(0,r.useState)(m),N=(0,i.Z)(y,2),S=N[0],_=N[1],F=""!==k&&!Number.isNaN(+k);return(0,Z.jsxs)(o.Z,{open:!0,onClose:a,children:[(0,Z.jsxs)(c.Z,{children:["Set feature height",(0,Z.jsx)(u.Z,{className:t.closeButton,onClick:a,children:(0,Z.jsx)(j.Z,{})})]}),(0,Z.jsxs)(l.Z,{children:[(0,Z.jsx)(h.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)(d.Z,{value:k,helperText:"Feature height",onChange:function(e){w(e.target.value)}}),(0,Z.jsx)(g.Z,{control:(0,Z.jsx)(p.Z,{checked:!!S,onChange:function(){return _((function(e){return!e}))}}),label:"Remove spacing between features in y-direction?"}),(0,Z.jsxs)(f.Z,{children:[(0,Z.jsx)(b.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)(b.Z,{variant:"contained",color:"secondary",onClick:function(){return a()},children:"Cancel"})]})]})]})}))}}]);
//# sourceMappingURL=7281.bb69fe9a.chunk.js.map