function r(i, a) {
  let l = 0;
  const e = i.children, c = getComputedStyle(i), s = parseFloat(c.rowGap || c.gap || "0"), n = [];
  for (let t = 0; t < e.length; t++)
    e[t].getBoundingClientRect().height > 0 && n.push(t);
  const h = n.find((t) => e[t].contains(a));
  n.forEach((t) => {
    t !== h && (l += e[t].getBoundingClientRect().height);
  });
  let o = 0;
  for (let t = 0; t < e.length - 1; t++) {
    const g = e[t], d = e[t + 1];
    g.getBoundingClientRect().height > 0 && d.getBoundingClientRect().height > 0 && o++;
  }
  return {
    siblingsHeight: l,
    totalGap: s * o
  };
}
export {
  r as default
};
//# sourceMappingURL=calculateSiblingsAndGaps.js.map
