"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[1439],{31439:(e,s,i)=>{i.r(s),i.d(s,{getMultiWiggleSourcesAutorun:()=>g});var o=i(99546),t=i(20166),n=i(37347),r=i(91468),a=i(42489),c=i(36422);function g(e){(0,c.addDisposer)(e,(0,a.autorun)((async()=>{try{const s=(0,o.getContainingView)(e);if(!s.initialized)return;const{rpcManager:i}=(0,o.getSession)(e),{adapterConfig:t}=e,a=(0,n.y5)();e.setSourcesLoading(a);const g=(0,r.getRpcSessionId)(e),l=await i.call(g,"MultiWiggleGetSources",{regions:s.staticBlocks.contentBlocks,sessionId:g,adapterConfig:t});(0,c.isAlive)(e)&&e.setSources(l)}catch(s){!(0,t.Kp)(s)&&(0,c.isAlive)(e)&&(console.error(s),(0,o.getSession)(e).notifyError(`${s}`,s))}})))}}}]);
//# sourceMappingURL=1439.ff1070ac.chunk.js.map