"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9305],{69305:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(67758),a=n(7552),c=n(68584),o=n(92562),i=n(61282),l=n(93062),s=n(76218),u=n(69092),h=n(30698),k=n(69500);const m=e=>{const t=(0,r.c)(28),{tracks:n,onClose:c}=e,[m,j]=(0,a.useState)(`MultiWiggle ${Date.now()}`),x=n.every(d);let f;t[0]!==c?(f=()=>{c(!1)},t[0]=c,t[1]=f):f=t[1];const p=x?null:"Not every track looks like a QuantitativeTrack. This could have unexpected behavior, confirm if it looks ok.";let C,v,g,w,y,A,_,T,S,Q,D;return t[2]!==p?(C=(0,k.jsxs)(i.A,{children:[p,"Listing:"]}),t[2]=p,t[3]=C):C=t[3],t[4]!==n?(v=n.map(b),t[4]=n,t[5]=v):v=t[5],t[6]!==v?(g=(0,k.jsx)("ul",{children:v}),t[6]=v,t[7]=g):g=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(w=e=>{j(e.target.value)},t[8]=w):w=t[8],t[9]!==m?(y=(0,k.jsx)(l.A,{value:m,onChange:w,helperText:"Track name"}),t[9]=m,t[10]=y):y=t[10],t[11]===Symbol.for("react.memo_cache_sentinel")?(A=(0,k.jsx)(i.A,{children:"Confirm creation of track?"}),t[11]=A):A=t[11],t[12]!==C||t[13]!==g||t[14]!==y?(_=(0,k.jsxs)(s.A,{children:[C,g,y,A]}),t[12]=C,t[13]=g,t[14]=y,t[15]=_):_=t[15],t[16]!==c?(T=(0,k.jsx)(u.A,{onClick:()=>{c(!1)},color:"primary",children:"Cancel"}),t[16]=c,t[17]=T):T=t[17],t[18]!==c||t[19]!==m?(S=(0,k.jsx)(u.A,{onClick:()=>{c(!0,{name:m})},color:"primary",variant:"contained",autoFocus:!0,children:"Submit"}),t[18]=c,t[19]=m,t[20]=S):S=t[20],t[21]!==T||t[22]!==S?(Q=(0,k.jsxs)(h.A,{children:[T,S]}),t[21]=T,t[22]=S,t[23]=Q):Q=t[23],t[24]!==f||t[25]!==Q||t[26]!==_?(D=(0,k.jsxs)(o.A,{open:!0,onClose:f,title:"Confirm multi-wiggle track create",children:[_,Q]}),t[24]=f,t[25]=Q,t[26]=_,t[27]=D):D=t[27],D};function d(e){return"QuantitativeTrack"===e.type}function b(e){return(0,k.jsxs)("li",{children:[(0,c.readConfObject)(e,"name")," - ",e.type]},e.trackId)}}}]);
//# sourceMappingURL=9305.f5dbce7d.chunk.js.map