"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[3468],{83468:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});var r=t(96234),a=t(30969),o=t(59071),s=t(87006),i=t(96074),u=t(72097),l=t(59767),c=t(53276),d=t(37574),f=(0,c.ZL)()((function(e){return{formElt:{margin:e.spacing(3),width:400},dialogContent:{width:"80em"}}}));function b(e){var n=e.handleClose,t=e.intronBp,c=e.upDownBp,b=f().classes,m=(0,a.useState)("".concat(t)),p=(0,r.Z)(m,2),h=p[0],N=p[1],w=(0,a.useState)("".concat(c)),x=(0,r.Z)(w,2),C=x[0],g=x[1],j=!Number.isNaN(+h),Z=!Number.isNaN(+C);return(0,d.jsxs)(l.Dialog,{maxWidth:"xl",open:!0,onClose:function(){return n()},title:"Feature sequence settings",children:[(0,d.jsxs)(o.Z,{className:b.dialogContent,children:[(0,d.jsx)(s.Z,{label:"Number of intronic bases around splice site to display",className:b.formElt,value:h,helperText:j?"":"Not a number",error:!j,onChange:function(e){return N(e.target.value)}}),(0,d.jsx)(s.Z,{label:"Number of bases up/down stream of feature to display",className:b.formElt,value:C,helperText:Z?"":"Not a number",error:!Z,onChange:function(e){return g(e.target.value)}})]}),(0,d.jsxs)(i.Z,{children:[(0,d.jsx)(u.Z,{onClick:function(){return n({upDownBp:+C,intronBp:+h})},disabled:!j||!Z,color:"primary",variant:"contained",children:"Submit"}),(0,d.jsx)(u.Z,{onClick:function(){return n()},color:"secondary",autoFocus:!0,variant:"contained",children:"Cancel"})]})]})}}}]);
//# sourceMappingURL=3468.9133848f.chunk.js.map