"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7063],{17063:(e,r,t)=>{t.r(r),t.d(r,{default:()=>h});var a=t(41867),n=t(47409),i=t(51590),c=t(49133),l=t(27768),o=t(23801),s=t(5404),u=t(43800),k=t(80838);const h=e=>{let{tracks:r,onClose:t}=e;const[h,d]=(0,a.useState)("MultiWiggle ".concat(Date.now())),j=r.every((e=>"QuantitativeTrack"===e.type));return(0,k.jsxs)(s.Z,{open:!0,onClose:()=>t(!1),title:"Confirm multi-wiggle track create",children:[(0,k.jsxs)(n.Z,{children:[(0,k.jsxs)(i.Z,{children:[j?null:"Not every track looks like a QuantitativeTrack. This could have unexpected behavior, confirm if it looks ok.","Listing:"]}),(0,k.jsx)("ul",{children:r.map((e=>(0,k.jsxs)("li",{children:[(0,u.readConfObject)(e,"name")," - ",e.type]},e.trackId)))}),(0,k.jsx)(c.Z,{value:h,onChange:e=>d(e.target.value),helperText:"Track name"}),(0,k.jsx)(i.Z,{children:"Confirm creation of track?"})]}),(0,k.jsxs)(l.Z,{children:[(0,k.jsx)(o.Z,{onClick:()=>t(!1),color:"primary",children:"Cancel"}),(0,k.jsx)(o.Z,{onClick:()=>t(!0,{name:h}),color:"primary",variant:"contained",autoFocus:!0,children:"Submit"})]})]})}}}]);
//# sourceMappingURL=7063.324f1b3a.chunk.js.map