"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8811],{68811:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});var n=t(7552),l=t(29499),o=t(1343),r=t(58507),s=t(5401),i=t(48735);const c=(0,t(75785).n9)()((e=>({formElt:{margin:e.spacing(3),width:400},dialogContent:{width:"80em"}})));function u({handleClose:e,intronBp:a,upDownBp:t}){const{classes:u}=c(),[m,b]=(0,n.useState)(`${a}`),[p,d]=(0,n.useState)(`${t}`),h=!Number.isNaN(+m),N=!Number.isNaN(+p);return n.createElement(i.Dialog,{maxWidth:"xl",open:!0,onClose:()=>e(),title:"Feature sequence settings"},n.createElement(l.A,{className:u.dialogContent},n.createElement(o.A,{label:"Number of intronic bases around splice site to display",className:u.formElt,value:m,helperText:h?"":"Not a number",error:!h,onChange:e=>b(e.target.value)}),n.createElement(o.A,{label:"Number of bases up/down stream of feature to display",className:u.formElt,value:p,helperText:N?"":"Not a number",error:!N,onChange:e=>d(e.target.value)})),n.createElement(r.A,null,n.createElement(s.A,{onClick:()=>e({upDownBp:+p,intronBp:+m}),disabled:!h||!N,color:"primary",variant:"contained"},"Submit"),n.createElement(s.A,{onClick:()=>e(),color:"secondary",autoFocus:!0,variant:"contained"},"Cancel")))}}}]);
//# sourceMappingURL=8811.a3bf9e01.chunk.js.map