this.webpackChunk([43],{1288:function(e,t,a){"use strict";a.r(t);var n=a(6),o=a(0),l=a.n(o),r=a(16),c=a(146),i=a(852),u=a(854),s=a(148),m=a(855),g=a(80),p=a(240),d=a(137),h=a(50),E=a.n(h),b=Object(c.a)((function(e){return{root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}}}));t.default=Object(r.observer)((function(e){var t=b(),a=e.model,r=e.handleClose,c=Object(o.useState)(""),h=Object(n.a)(c,2),f=h[0],v=h[1],y=f.match(/^[A-Za-z][A-Za-z0-9]$/);return l.a.createElement(i.a,{open:!0,onClose:r},l.a.createElement(u.a,null,"Sort by tag",l.a.createElement(s.a,{"aria-label":"close",className:t.closeButton,onClick:r},l.a.createElement(E.a,null))),l.a.createElement(m.a,null,l.a.createElement("div",null,l.a.createElement(g.a,null,"Set the tag to sort by"),l.a.createElement(g.a,{color:"textSecondary"},"Examples: HP for haplotype, RG for read group, etc."),l.a.createElement(p.a,{value:f,onChange:function(e){v(e.target.value)},placeholder:"Enter tag name",inputProps:{maxLength:2,"data-testid":"sort-tag-name-input"},error:2===f.length&&!y,helperText:2!==f.length||y?"":"Not a valid tag",autoComplete:"off","data-testid":"sort-tag-name"}),l.a.createElement(d.a,{variant:"contained",color:"primary",onClick:function(){a.setSortedBy("tag",f),r()}},"Submit"))))}))}});
//# sourceMappingURL=43.036851d5f5ae716110a5.worker.js.map