"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2303],{12303:(e,s,t)=>{t.d(s,{getMultiVariantFeaturesAutorun:()=>l});var a=t(99546),i=t(20166),n=t(91468),o=t(42489),r=t(36422);function l(e){(0,r.addDisposer)(e,(0,o.autorun)((async()=>{try{const s=(0,a.getContainingView)(e);if(!s.initialized||!e.statsReadyAndRegionNotTooLarge)return;const{rpcManager:t}=(0,a.getSession)(e),{sources:i,minorAlleleFrequencyFilter:o,adapterConfig:l}=e;if(i){const c=(0,n.getRpcSessionId)(e),{sampleInfo:u,hasPhased:d,features:g}=await t.call(c,"MultiVariantGetSimplifiedFeatures",{regions:s.dynamicBlocks.contentBlocks,sources:i,minorAlleleFrequencyFilter:o,sessionId:c,adapterConfig:l});(0,r.isAlive)(e)&&(e.setHasPhased(d),e.setSampleInfo(u),e.setFeatures(g.map((e=>new a.SimpleFeature(e)))))}}catch(s){console.error(s),!(0,i.Kp)(s)&&(0,r.isAlive)(e)&&(0,a.getSession)(e).notifyError(`${s}`,s)}}),{delay:1e3}))}}}]);
//# sourceMappingURL=2303.3ac409c4.chunk.js.map