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