"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getAvailableWidth = void 0;
const getAvailableWidth = el => {
  const {
    paddingLeft,
    paddingRight,
    borderLeftWidth,
    borderRightWidth
  } = window.getComputedStyle(el);
  const {
    width
  } = el.getBoundingClientRect() || {};
  return width - (parseFloat(paddingLeft) + parseFloat(paddingRight)) - (parseFloat(borderLeftWidth) + parseFloat(borderRightWidth));
};
exports.getAvailableWidth = getAvailableWidth;
//# sourceMappingURL=getAvailableWidth.js.map