"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8424],{8424:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(7552),t=r(67112),l=r(76218),n=r(61282),s=r(93062),c=r(30698),d=r(69092),i=r(68446),h=r(69500);const p=(0,i.observer)(function({model:e,handleClose:o}){const[r,i]=(0,a.useState)(""),p=/^[A-Za-z][A-Za-z0-9]$/.exec(r);return(0,h.jsx)(t.Dialog,{open:!0,onClose:o,title:"Color by tag",children:(0,h.jsxs)(l.A,{style:{overflowX:"hidden"},children:[(0,h.jsx)(n.A,{children:"Enter tag to color by: "}),(0,h.jsx)(n.A,{color:"textSecondary",children:"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."}),(0,h.jsx)(s.A,{value:r,onChange:e=>{i(e.target.value)},placeholder:"Enter tag name",error:2===r.length&&!p,helperText:2!==r.length||p?"":"Not a valid tag",autoComplete:"off",slotProps:{htmlInput:{maxLength:2}}}),(0,h.jsxs)(c.A,{children:[(0,h.jsx)(d.A,{variant:"contained",color:"primary",onClick:()=>{e.setColorScheme({type:"tag",tag:r}),o()},disabled:!p,children:"Submit"}),(0,h.jsx)(d.A,{variant:"contained",color:"secondary",onClick:o,children:"Cancel"})]})]})})})}}]);
//# sourceMappingURL=8424.b7df4ef6.chunk.js.map