"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6021],{96021:(e,r,t)=>{t.r(r),t.d(r,{Tooltip:()=>c.A,default:()=>a});var s=t(7552),o=t(68446),c=t(88262),n=t(75429),i=t(69500);const l=e=>e.toLocaleString("en-US"),d=(0,s.forwardRef)((function({model:e,feature:r},t){const s=r.get("start"),o=r.get("end"),c=r.get("refName"),d=s===o?l(s):`${l(s)}..${l(o)}`,a=r.get("sources"),h=r.get("source"),j=r.get("summary"),x=Object.fromEntries(e.sources.map((e=>[e.name,e])));return(0,i.jsxs)("div",{ref:t,children:[[c,d].filter((e=>!!e)).join(":"),(0,i.jsx)("br",{}),a?(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"color"}),(0,i.jsx)("th",{children:"source"}),(0,i.jsx)("th",{children:"score"})]})}),(0,i.jsx)("tbody",{children:Object.entries(a).map((([e,r])=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{style:{background:x[e].color},children:" "}),(0,i.jsx)("td",{children:e}),(0,i.jsx)("td",{children:(0,n.toP)(r.score)})]},e)))})]}):(0,i.jsxs)("span",{children:[h," ",j?`min:${(0,n.toP)(r.get("minScore"))} avg:${(0,n.toP)(r.get("score"))} max:${(0,n.toP)(r.get("maxScore"))}`:(0,n.toP)(r.get("score"))]})]})})),a=(0,o.observer)((e=>(0,i.jsx)(c.A,{useClientY:!0,TooltipContents:d,...e})))}}]);
//# sourceMappingURL=6021.64ad2681.chunk.js.map