"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3311],{23311:(e,t,r)=>{r.d(t,{renderBaseLinearDisplaySvg:()=>c});var n=r(7552),a=r(99546),i=r(66344),l=r(21479);async function c(e,t){const{height:r,id:c}=e,{overrideHeight:s}=t,m=(0,a.getContainingView)(e),{offsetPx:o,roundedDynamicBlocks:g,width:d}=m,h=await Promise.all(g.map((async r=>{const l=i.A.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:s,renderArgs:m,renderProps:o,rendererType:g}=(0,i.s)(l,e);return[r,await g.renderInClient(s,{...m,...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:m,widthPx:g}=e,d=m-o,h=(0,l.OX)(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:s||r}))),n.createElement("g",{transform:`translate(${d} 0)`},n.createElement("g",{clipPath:`url(#${h})`},n.createElement(a.ReactRendering,{rendering:t}))))})))}}}]);
//# sourceMappingURL=3311.92fac4a6.chunk.js.map