"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[737],{50737:(e,t,r)=>{r.d(t,{renderBaseLinearDisplaySvg:()=>c});var n=r(66204),a=r(90872),i=r(57918),l=r(26809);async function c(e,t){const{height:r,id:c}=e,{overrideHeight:m}=t,s=(0,a.getContainingView)(e),{offsetPx:o,roundedDynamicBlocks:g,width:d}=s,h=await Promise.all(g.map((async r=>{const l=i.Z.create({key:r.key,region:r}),c=e.regionCannotBeRenderedText(r)||e.regionCannotBeRendered(r);if(c)return[r,{reactElement:n.createElement(n.Fragment,null,n.createElement("rect",{x:0,y:0,width:d,height:20,fill:"#aaa"}),n.createElement("text",{x:0,y:15},c))}];const{rpcManager:m,renderArgs:s,renderProps:o,rendererType:g}=(0,i.m)(l,e);return[r,await g.renderInClient(m,{...s,...o,viewParams:(0,a.getViewParams)(e,!0),exportSVG:t,theme:t.theme||o.theme})]})));return n.createElement(n.Fragment,null,h.map((([e,t],i)=>{const{offsetPx:s,widthPx:g}=e,d=s-o,h=(0,l.zv)(c,i);return n.createElement(n.Fragment,{key:`frag-${i}`},n.createElement("defs",null,n.createElement("clipPath",{id:h},n.createElement("rect",{x:0,y:0,width:g,height:m||r}))),n.createElement("g",{transform:`translate(${d} 0)`},n.createElement("g",{clipPath:`url(#${h})`},n.createElement(a.ReactRendering,{rendering:t}))))})))}}}]);
//# sourceMappingURL=737.73065081.chunk.js.map