"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2697],{32697:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var o=a(7552),l=a(68446),n=a(29499),r=a(36715),c=a(1343),s=a(58507),u=a(5401),i=a(49823);const m=(0,l.observer)((function(e){const{model:t,handleClose:a}=e,[l,m]=(0,o.useState)(""),d=/^[A-Za-z][A-Za-z0-9]$/.exec(l);return o.createElement(i.Dialog,{open:!0,onClose:a,title:"Sort by tag"},o.createElement(n.A,null,o.createElement(r.A,null,"Set the tag to sort by"),o.createElement(r.A,{color:"textSecondary"},"Examples: HP for haplotype, RG for read group, etc."),o.createElement(c.A,{value:l,onChange:e=>{m(e.target.value)},placeholder:"Enter tag name",error:2===l.length&&!d,helperText:2!==l.length||d?"":"Not a valid tag",autoComplete:"off","data-testid":"sort-tag-name",slotProps:{htmlInput:{maxLength:2,"data-testid":"sort-tag-name-input"}}}),o.createElement(s.A,null,o.createElement(u.A,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,onClick:()=>{t.setSortedBy("tag",l),a()}},"Submit"),o.createElement(u.A,{variant:"contained",color:"secondary",onClick:()=>{a()}},"Cancel"))))}))}}]);
//# sourceMappingURL=2697.0382c551.chunk.js.map