"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8408],{19669:(e,t,n)=>{n.d(t,{A:()=>m});var o=n(67112),r=n(99546),s=n(97486),a=n(37962),i=n(69092),d=n(68446),l=n(75785),c=n(69500);const g=(0,l.n9)()((e=>({loading:{backgroundColor:e.palette.background.default,backgroundImage:`repeating-linear-gradient(45deg, transparent, transparent 5px, ${e.palette.action.disabledBackground} 5px, ${e.palette.action.disabledBackground} 10px)`,position:"absolute",bottom:0,height:50,width:300,right:0,pointerEvents:"none",textAlign:"center"}}))),u=(0,d.observer)((function({model:e}){const{error:t}=e;return(0,c.jsx)(s.LW,{message:`${t}`,severity:"error",action:(0,c.jsx)(a.A,{title:"Reload",children:(0,c.jsx)(i.A,{"data-testid":"reload_button",onClick:()=>{e.reload()},children:"Reload"})})})})),h=(0,d.observer)((function({model:e,children:t}){const{error:n,regionTooLarge:o}=e;return n?(0,c.jsx)(u,{model:e}):o?e.regionCannotBeRendered():(0,c.jsx)(b,{model:e,children:t})})),b=(0,d.observer)((function({model:e,children:t}){const{drawn:n,loading:o}=e,s=(0,r.getContainingView)(e),a=(e.lastDrawnOffsetPx||0)-s.offsetPx;return(0,c.jsxs)("div",{"data-testid":`drawn-${n}`,children:[(0,c.jsx)("div",{style:{position:"absolute",left:a},children:t}),0!==a||o?(0,c.jsx)(x,{model:e}):null]})})),x=(0,d.observer)((function({model:e}){const{classes:t}=g(),{message:n}=e;return(0,c.jsx)("div",{className:t.loading,children:(0,c.jsx)(o.LoadingEllipses,{message:n})})})),m=h},48408:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var o=n(7552),r=n(99546),s=n(68446),a=n(19669),i=n(69500);const d=(0,s.observer)((function({model:e}){const t=(0,r.getContainingView)(e),n=Math.round(t.dynamicBlocks.totalWidthPx),s=e.height,a=(0,o.useCallback)((t=>{e.setRef(t)}),[e,n,s]);return(0,i.jsx)("canvas",{"data-testid":"cloud-canvas",ref:a,style:{width:n,height:s,position:"absolute"},width:2*n,height:2*s})})),l=(0,s.observer)((function({model:e}){return(0,i.jsx)(a.A,{model:e,children:(0,i.jsx)(d,{model:e})})}))}}]);
//# sourceMappingURL=8408.037f08d9.chunk.js.map