"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7502],{77502:function(e,n,r){r.r(n);var t=r(96234),i=r(30969),c=r(59071),a=r(33359),o=r(87006),l=r(96074),u=r(72097),s=r(23812),k=r(9077),f=r(37574);n.default=function(e){var n=e.tracks,r=e.onClose,h=(0,i.useState)("MultiWiggle ".concat(Date.now())),d=(0,t.Z)(h,2),j=d[0],x=d[1],m=n.every((function(e){return"QuantitativeTrack"===e.type}));return(0,f.jsxs)(s.Z,{open:!0,onClose:function(){return r(!1)},title:"Confirm multi-wiggle track create",children:[(0,f.jsxs)(c.Z,{children:[(0,f.jsxs)(a.Z,{children:[m?null:"Not every track looks like a QuantitativeTrack. This could have unexpected behavior, confirm if it looks ok.","Listing:"]}),(0,f.jsx)("ul",{children:n.map((function(e){return(0,f.jsxs)("li",{children:[(0,k.readConfObject)(e,"name")," - ",e.type]},e.trackId)}))}),(0,f.jsx)(o.Z,{value:j,onChange:function(e){return x(e.target.value)},helperText:"Track name"}),(0,f.jsx)(a.Z,{children:"Confirm creation of track?"})]}),(0,f.jsxs)(l.Z,{children:[(0,f.jsx)(u.Z,{onClick:function(){return r(!1)},color:"primary",children:"Cancel"}),(0,f.jsx)(u.Z,{onClick:function(){return r(!0,{name:j})},color:"primary",variant:"contained",autoFocus:!0,children:"Submit"})]})]})}}}]);
//# sourceMappingURL=7502.2c20eeb0.chunk.js.map