"use strict";

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