import{__exports as e}from"../../../../_virtual/calculateRowHeights.mjs";import{__require as t}from"./calculateCellHeight.mjs";import{__require as r}from"./utils.mjs";var o;function i(){if(o)return e;o=1,Object.defineProperty(e,"__esModule",{value:!0}),e.calculateRowHeights=void 0;const i=t(),l=r();return e.calculateRowHeights=(e,t)=>{const r=[];for(const[o,a]of e.entries()){let n=1;a.forEach((a,s)=>{var c;const u=null===(c=t.spanningCellManager)||void 0===c?void 0:c.getContainingRange({col:s,row:o});if(!u){const e=(0,i.calculateCellHeight)(a,t.columns[s].width,t.columns[s].wrapWord);return void(n=Math.max(n,e))}const{topLeft:h,bottomRight:m,height:g}=u;if(o===m.row){const o=(0,l.sumArray)(r.slice(h.row)),i=m.row-h.row,a=(0,l.sequence)(h.row+1,m.row).filter(r=>{var o;return!(null===(o=t.drawHorizontalLine)||void 0===o?void 0:o.call(t,r,e.length))}).length,s=g-o-i+a;n=Math.max(n,s)}}),r.push(n)}return r},e}export{i as __require};