"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[489],{80489:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var r=s(7552),d=s(99546),n=s(11210),i=s(68446),l=s(75785),o=s(69500);const c=(0,l.n9)()((()=>({td:{whiteSpace:"nowrap"}}))),h=(e,t=1)=>`${((e=0)=>+(+e).toFixed(1))(e/(t||1)*100)}%`,a=(0,r.forwardRef)((function(e,t){const{feature:s,model:r}=e,{classes:n}=c(),i=s.get("start")+1,l=s.get("end"),a=s.get("refName"),{refbase:x,readsCounted:p,depth:b,ref:u,...f}=s.get("snpinfo"),g=[a,i===l?(0,d.toLocale)(i):`${(0,d.toLocale)(i)}..${(0,d.toLocale)(l)}`].filter((e=>!!e)).join(":");return(0,o.jsx)("div",{ref:t,children:(0,o.jsxs)("table",{children:[(0,o.jsx)("caption",{children:g}),(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{}),(0,o.jsx)("th",{children:"Base"}),(0,o.jsx)("th",{children:"Count"}),(0,o.jsx)("th",{children:"% of Total"}),(0,o.jsx)("th",{children:"Strands"})]})}),(0,o.jsxs)("tbody",{children:[(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{}),(0,o.jsx)("td",{children:"Total"}),(0,o.jsx)("td",{children:p}),(0,o.jsx)("td",{children:" "}),(0,o.jsx)("td",{children:" "})]}),(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{}),(0,o.jsxs)("td",{children:["REF ",x?`(${x.toUpperCase()})`:""]}),(0,o.jsx)("td",{children:u.entryDepth}),(0,o.jsx)("td",{children:h(u.entryDepth,p)}),(0,o.jsxs)("td",{children:[u[-1]?`${u[-1]}(-)`:"",u[1]?`${u[1]}(+)`:""]})]}),Object.entries(f).map((([e,t])=>Object.entries(t).map((([t,s])=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:(0,o.jsx)(j,{model:r,base:t})}),(0,o.jsxs)("td",{children:[t.toUpperCase()," "]}),(0,o.jsx)("td",{className:n.td,children:[s.entryDepth,void 0!==s.avgProbability?`(avg. ${h(s.avgProbability)} prob.)`:""].filter((e=>!!e)).join(" ")}),(0,o.jsx)("td",{children:"depth"===t||"skip"===t?"---":h(s.entryDepth,p)}),(0,o.jsxs)("td",{children:[s[-1]?`${s[-1]}(-)`:"",s[1]?`${s[1]}(+)`:""]})]},`${e}_${t}`)))))]})]})})}));function j({base:e,model:t}){const{visibleModifications:s}=t;return e.startsWith("mod_")?(0,o.jsx)("div",{style:{width:10,height:10,background:s.get(e.replace("mod_",""))?.color}}):null}const x=(0,i.observer)((function(e){const{model:t}=e,{featureUnderMouse:s}=t;return s&&"skip"===s.get("type")?null:(0,o.jsx)(n.m_,{TooltipContents:a,...e})}))}}]);
//# sourceMappingURL=489.0bc9104e.chunk.js.map