"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9222],{9222:(e,s,i)=>{i.d(s,{getMultiVariantSourcesAutorun:()=>u});var o=i(99546),t=i(20166),n=i(37347),a=i(91468),r=i(42489),c=i(36422);function u(e){(0,c.addDisposer)(e,(0,r.autorun)((async()=>{try{if(!(0,o.getContainingView)(e).initialized)return;const{rpcManager:s}=(0,o.getSession)(e),{adapterConfig:i}=e,t=(0,n.y5)();e.setSourcesLoading(t);const r=(0,a.getRpcSessionId)(e),u=await s.call(r,"MultiVariantGetSources",{sessionId:r,adapterConfig:i,stopToken:t});(0,c.isAlive)(e)&&e.setSources(u)}catch(s){!(0,t.Kp)(s)&&(0,c.isAlive)(e)&&(console.error(s),(0,o.getSession)(e).notifyError(`${s}`,s))}}),{delay:1e3}))}}}]);
//# sourceMappingURL=9222.73dc3462.chunk.js.map