import{__exports as e}from"../../../../_virtual/calculateSpanningCellWidth.mjs";import{__require as l}from"./utils.mjs";var t;function i(){if(t)return e;t=1,Object.defineProperty(e,"__esModule",{value:!0}),e.calculateSpanningCellWidth=void 0;const i=l();return e.calculateSpanningCellWidth=(e,l)=>{const{columnsConfig:t,drawVerticalLine:o}=l,{topLeft:c,bottomRight:n}=e;return(0,i.sumArray)(t.slice(c.col,n.col+1).map(({width:e})=>e))+(c.col===n.col?t[c.col].paddingRight+t[n.col].paddingLeft:(0,i.sumArray)(t.slice(c.col,n.col+1).map(({paddingLeft:e,paddingRight:l})=>e+l)))+(n.col-c.col)-(0,i.sequence)(c.col+1,n.col).filter(e=>!o(e,t.length)).length},e}export{i as __require};