"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5415],{85415:(e,a,r)=>{r.d(a,{doAfterAttach:()=>d});var t=r(99546),s=r(91468),n=r(36422),i=r(99412),o=r(86576);function d(e){(0,o.vi)(e,(async()=>{const a=(0,t.getContainingView)(e);e.autorunReady&&e.setCurrSortBpPerPx(a.bpPerPx)}),{delay:1e3}),(0,o.vi)(e,(async()=>{const{rpcManager:a}=(0,t.getSession)(e),r=(0,t.getContainingView)(e);if(!e.autorunReady)return;const{sortedBy:i,adapterConfig:o,rendererType:d,sortReady:c}=e,{bpPerPx:p}=r;if(i&&(!c||e.currSortBpPerPx===r.bpPerPx)){const{pos:t,refName:n,assemblyName:c}=i;await e.rendererType.renderInClient(a,{assemblyName:c,regions:[{start:t,end:t+1,refName:n,assemblyName:c}],adapterConfig:o,rendererType:d.name,sessionId:(0,s.getRpcSessionId)(e),layoutId:r.id,timeout:1e6,statusCallback:a=>{e.setMessage(a)},...e.renderPropsPre()})}(0,n.isAlive)(e)&&(e.setCurrSortBpPerPx(p),e.setSortReady(!0))}),{delay:1e3}),(0,o.vi)(e,(async()=>{if(!e.autorunReady)return;const{adapterConfig:a}=e,{staticBlocks:r}=(0,t.getContainingView)(e),s=await(0,i.D)({model:e,adapterConfig:a,blocks:r});(0,n.isAlive)(e)&&(e.updateVisibleModifications(s),e.setModificationsReady(!0))}),{delay:1e3})}}}]);
//# sourceMappingURL=5415.95c07218.chunk.js.map