"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAvailableWidth = void 0;
const getAvailableWidth = (containerEl, reservedWidth = 0) => {
    const containerWidth = containerEl.clientWidth;
    const paddingLeft = parseFloat(getComputedStyle(containerEl).paddingLeft);
    const paddingRight = parseFloat(getComputedStyle(containerEl).paddingRight);
    const availableWidth = containerWidth - paddingLeft - paddingRight - reservedWidth;
    return availableWidth;
};
exports.getAvailableWidth = getAvailableWidth;
