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