"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[489],{80489:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s});var n=l(7552),r=l(68446),a=l(99546),c=l(17970);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},u.apply(null,arguments)}const o=(e,t)=>`${((e=0)=>+(+e).toFixed(1))(e/(t||1)*100)}%`,m=n.forwardRef((function({feature:e},t){const l=e.get("start"),r=e.get("end"),c=e.get("refName"),{refbase:u,all:m,total:s,ref:E,"-1":d,1:i,0:f,...p}=e.get("snpinfo"),b=[c,l===r?(0,a.toLocale)(l):`${(0,a.toLocale)(l)}..${(0,a.toLocale)(r)}`].filter((e=>!!e)).join(":");return n.createElement("div",{ref:t},n.createElement("table",null,n.createElement("caption",null,b),n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",null,"Base"),n.createElement("th",null,"Count"),n.createElement("th",null,"% of Total"),n.createElement("th",null,"Strands"),n.createElement("th",null,"Source"))),n.createElement("tbody",null,n.createElement("tr",null,n.createElement("td",null,"Total"),n.createElement("td",null,m)),n.createElement("tr",null,n.createElement("td",null,"REF ",u?`(${u.toUpperCase()})`:""),n.createElement("td",null,E),n.createElement("td",null,o(E,m)),n.createElement("td",null,d?`${d}(-)`:"",i?`${i}(+)`:""),n.createElement("td",null)),Object.entries(p).map((([e,t])=>Object.entries(t).map((([t,l])=>n.createElement("tr",{key:t},n.createElement("td",null,t.toUpperCase()),n.createElement("td",null,l.total),n.createElement("td",null,"total"===t||"skip"===t?"---":o(l.total,m)),n.createElement("td",null,l[-1]?`${l[-1]}(-)`:"",l[1]?`${l[1]}(+)`:""),n.createElement("td",null,e)))))))))})),s=(0,r.observer)((function(e){const{model:t}=e,{featureUnderMouse:l}=t;return l&&"skip"===l.get("type")?null:n.createElement(c.m_,u({TooltipContents:m},e))}))}}]);
//# sourceMappingURL=489.43cb4a5f.chunk.js.map