const e=require("../context/TableContext.js"),t=require("../utils/valueUtil.js"),n=require("../Cell/index.js"),r=require("../utils/fixUtil.js"),i=require("./DragHandle.js");let a=require("vue");var o=(0,a.defineComponent)({name:`HeaderRow`,props:[`cells`,`stickyOffsets`,`flattenColumns`,`rowComponent`,`cellComponent`,`index`,`customHeaderRow`],setup(o){let s=e.useInjectTable();return()=>{let{prefixCls:e,direction:c}=s,{cells:l,stickyOffsets:u,flattenColumns:d,rowComponent:f,cellComponent:p,customHeaderRow:m,index:h}=o,g;m&&(g=m(l.map(e=>e.column),h));let _=t.getColumnsKey(l.map(e=>e.column));return(0,a.createVNode)(f,g,{default:()=>[l.map((t,o)=>{let{column:s}=t,l=r.getCellFixedInfo(t.colStart,t.colEnd,d,u,c),f;s&&s.customHeaderCell&&(f=t.column.customHeaderCell(s));let m=s;return(0,a.createVNode)(n.default,{...t,cellType:`header`,ellipsis:s.ellipsis,align:s.align,component:p,prefixCls:e,key:_[o],...l,additionalProps:f,rowType:`header`,column:s},{default:()=>s.title,dragHandle:()=>m.resizable?(0,a.createVNode)(i.default,{prefixCls:e,width:m.width,minWidth:m.minWidth,maxWidth:m.maxWidth,column:m},null):null})})]})}}});exports.default=o;