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