"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getScrollHeight = void 0;
const getScrollHeight = function () {
  let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    hasAges = _ref.hasAges,
    roomIndex = _ref.roomIndex,
    _ref$rooms = _ref.rooms,
    rooms = _ref$rooms === void 0 ? [] : _ref$rooms;
  return rooms.reduce((previous, current, index) => index < roomIndex || index === roomIndex && index === rooms.length - 1 && hasAges ? previous + current : previous, 0);
};
exports.getScrollHeight = getScrollHeight;
//# sourceMappingURL=getScrollHeight.js.map