this.webpackChunk([35],{2078:function(e,t,a){"use strict";a.r(t);var o=a(9),r=a(0),n=a.n(r),l=a(15),c=a(287),i=a(967),s=a(968),m=a(209),u=a(969),d=a(99),p=a(297),g=a(174),f=a(58),h=a.n(f),E=Object(c.a)((function(e){return{root:{width:300},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}}}));t.default=Object(l.observer)((function(e){var t=E(),a=e.model,l=e.handleClose,c=Object(r.useState)(""),f=Object(o.a)(c,2),b=f[0],v=f[1],y=b.match(/^[A-Za-z][A-Za-z0-9]$/);return n.a.createElement(i.a,{open:!0,onClose:l},n.a.createElement(s.a,null,"Color by tag",n.a.createElement(m.a,{"aria-label":"close",className:t.closeButton,onClick:l},n.a.createElement(h.a,null))),n.a.createElement(u.a,{style:{overflowX:"hidden"}},n.a.createElement("div",{className:t.root},n.a.createElement(d.a,null,"Enter tag to color by: "),n.a.createElement(d.a,{color:"textSecondary"},"Examples: XS or TS for RNA-seq inferred read strand, ts (lower-case) for minimap2 read strand, HP for haplotype, RG for read group, etc."),n.a.createElement(p.a,{value:b,onChange:function(e){v(e.target.value)},placeholder:"Enter tag name",inputProps:{maxLength:2,"data-testid":"color-tag-name-input"},error:2===b.length&&!y,helperText:2!==b.length||y?"":"Not a valid tag",autoComplete:"off","data-testid":"color-tag-name"}),n.a.createElement(g.a,{variant:"contained",color:"primary",style:{marginLeft:20},onClick:function(){a.setColorScheme({type:"tag",tag:b}),l()},disabled:!y},"Submit"))))}))}});
//# sourceMappingURL=35.ff8da6869c2040672276.worker.js.map