import{h as s}from"./p-c063aff1.js";import{d as r}from"./p-9158fc11.js";import{T as e}from"./p-76bb3e24.js";import{C as o}from"./p-077c4f78.js";const t=({classList:r,column:e,columnIndex:t,offset:c,renderer:n,row:a,rowIndex:f})=>{const d=o.columnAttributes(e,t,a),l=s=>e.initCell(s,c);return e.cellTemplate?s("td",Object.assign({},d,{class:r,ref:s=>n.cellTemplate(s,c,e,a,f,e.cellTemplate)})):e.cellFormatter?s("td",Object.assign({},d,{class:r,innerHTML:e.cellFormatter(a,e,f),ref:l})):s("td",Object.assign({},d,{class:r,ref:l}),e.cellRenderer(a,e,f))},c=({classList:r},e)=>s("tr",{tabindex:"0",class:r},e),n=({columns:n,offsets:a,pinBoundaries:f,renderer:d,row:l,rowIndex:m,cellRenderers:i},p)=>[s(c,{classList:e.row},n.map((e,c)=>{const n={classList:r(o.columnCellClasses(e),o.pinnedBorderClass(c,f)),column:e,columnIndex:c,offset:a[c],renderer:d,row:l,rowIndex:m};return e.internal?s(t,Object.assign({},n)):i.find(s=>s.when(e,m,c)).cell(n)})),p];export{n as R,c as T,t as a};