"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6762],{63716:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var r=a(66204),o=a(80846),l=a(29520),n=a(80013),c=a(46338),s=a(62301),i=a(7146),d=a(35421);const m=(0,o.observer)((function({model:e,handleClose:t}){const[a,o]=(0,r.useState)(""),m=a.match(/^[A-Za-z][A-Za-z0-9]$/);return r.createElement(d.Dialog,{open:!0,onClose:t,title:"Color by tag"},r.createElement(l.Z,{style:{overflowX:"hidden"}},r.createElement(n.Z,null,"Enter tag to color by: "),r.createElement(n.Z,{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."),r.createElement(c.Z,{value:a,onChange:e=>o(e.target.value),placeholder:"Enter tag name",inputProps:{maxLength:2},error:2===a.length&&!m,helperText:2!==a.length||m?"":"Not a valid tag",autoComplete:"off"}),r.createElement(s.Z,null,r.createElement(i.Z,{variant:"contained",color:"primary",onClick:()=>{e.setColorScheme({type:"tag",tag:a}),t()},disabled:!m},"Submit"),r.createElement(i.Z,{variant:"contained",color:"secondary",onClick:t},"Cancel"))))}))}}]);
//# sourceMappingURL=6762.42fd7035.chunk.js.map