"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3311],{23311:(e,r,n)=>{n.d(r,{renderBaseLinearDisplaySvg:()=>h});var t=n(7552),i=n(99546),a=n(52119),s=n(21479),d=n(69500);async function h(e,r){const{height:n,id:h}=e,{overrideHeight:c}=r,l=(0,i.getContainingView)(e),{offsetPx:o,roundedDynamicBlocks:g,width:x}=l,w=await Promise.all(g.map((async n=>{const t=a.A.create({key:n.key,region:n}),s=e.regionCannotBeRenderedText(n)||e.regionCannotBeRendered(n);if(s)return[n,{reactElement:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("rect",{x:0,y:0,width:x,height:20,fill:"#aaa"}),(0,d.jsx)("text",{x:0,y:15,children:s})]})}];const{rpcManager:h,renderArgs:c,renderProps:l,rendererType:o}=(0,a.s)(t,e);return[n,await o.renderInClient(h,{...c,...l,viewParams:(0,i.getViewParams)(e,!0),exportSVG:r,theme:r.theme||l.theme})]})));return(0,d.jsx)(d.Fragment,{children:w.map((([e,r],a)=>{const{offsetPx:l,widthPx:g}=e,x=l-o,w=(0,s.OX)(h,a);return(0,d.jsxs)(t.Fragment,{children:[(0,d.jsx)("defs",{children:(0,d.jsx)("clipPath",{id:w,children:(0,d.jsx)("rect",{x:0,y:0,width:g,height:c||n})})}),(0,d.jsx)("g",{transform:`translate(${x} 0)`,children:(0,d.jsx)("g",{clipPath:`url(#${w})`,children:(0,d.jsx)(i.ReactRendering,{rendering:r})})})]},`frag-${a}`)}))})}}}]);
//# sourceMappingURL=3311.dfaa944b.chunk.js.map