(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.getWithBlock = void 0;
    var getWithBlock = function (block, isIcon) {
        if (isIcon === void 0) { isIcon = false; }
        var iconWidth = isIcon ? 16 + 8 : 0;
        var paddingLeftRight = 32;
        return block.offsetWidth - iconWidth - paddingLeftRight;
    };
    exports.getWithBlock = getWithBlock;
});
