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