"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9305],{69305:(e,r,a)=>{a.r(r),a.d(r,{default:()=>k});var i=a(7552),t=a(68584),n=a(92562),l=a(76218),o=a(61282),c=a(93062),s=a(30698),u=a(69092),h=a(69500);const k=({tracks:e,onClose:r})=>{const[a,k]=(0,i.useState)(`MultiWiggle ${Date.now()}`),d=e.every((e=>"QuantitativeTrack"===e.type));return(0,h.jsxs)(n.A,{open:!0,onClose:()=>{r(!1)},title:"Confirm multi-wiggle track create",children:[(0,h.jsxs)(l.A,{children:[(0,h.jsxs)(o.A,{children:[d?null:"Not every track looks like a QuantitativeTrack. This could have unexpected behavior, confirm if it looks ok.","Listing:"]}),(0,h.jsx)("ul",{children:e.map((e=>(0,h.jsxs)("li",{children:[(0,t.readConfObject)(e,"name")," - ",e.type]},e.trackId)))}),(0,h.jsx)(c.A,{value:a,onChange:e=>{k(e.target.value)},helperText:"Track name"}),(0,h.jsx)(o.A,{children:"Confirm creation of track?"})]}),(0,h.jsxs)(s.A,{children:[(0,h.jsx)(u.A,{onClick:()=>{r(!1)},color:"primary",children:"Cancel"}),(0,h.jsx)(u.A,{onClick:()=>{r(!0,{name:a})},color:"primary",variant:"contained",autoFocus:!0,children:"Submit"})]})]})}}}]);
//# sourceMappingURL=9305.28a15f86.chunk.js.map