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