import{t as e}from"./jsx-runtime-CXrijb2r.js";import{r as t}from"./sourceControlSettings-CA80-iqJ.js";var n=e();function r({rows:e,dataRole:r}){return(0,n.jsx)(`div`,{className:`bridge-diagnostics-table-wrap`,children:(0,n.jsxs)(`table`,{className:`task-table`,"data-role":r,children:[(0,n.jsx)(`thead`,{children:(0,n.jsxs)(`tr`,{children:[(0,n.jsx)(`th`,{children:`Scenario`}),(0,n.jsx)(`th`,{children:`git user.name`}),(0,n.jsx)(`th`,{children:`Name origin`}),(0,n.jsx)(`th`,{children:`git user.email`}),(0,n.jsx)(`th`,{children:`Email origin`}),(0,n.jsx)(`th`,{children:`Warnings`})]})}),(0,n.jsx)(`tbody`,{children:e.map(e=>(0,n.jsxs)(`tr`,{"data-role":`source-control-preview-row-${e.key}`,children:[(0,n.jsx)(`td`,{children:e.label}),(0,n.jsx)(`td`,{children:(0,n.jsx)(`code`,{children:e.gitUserName.resolved??`unset`})}),(0,n.jsx)(`td`,{children:t(e.gitUserName.origin)}),(0,n.jsx)(`td`,{children:(0,n.jsx)(`code`,{children:e.gitEmail.resolved??`unset`})}),(0,n.jsx)(`td`,{children:t(e.gitEmail.origin)}),(0,n.jsx)(`td`,{children:e.warnings.length?e.warnings.join(` · `):`—`})]},e.key))})]})})}export{r as t};