(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.defineResponsibleHeight = exports.defineResponsibleWidth = void 0;
    var defineResponsibleWidth = function (width) {
        if (typeof width === "number") {
            return "width: " + Math.floor(width) + "px;";
        }
        if (typeof width === "string" && width.length > 0) {
            return Number(width)
                ? "width: " + parseInt(width, 10) + "px;"
                : "width: " + width + ";";
        }
        return "width: 100%;";
    };
    exports.defineResponsibleWidth = defineResponsibleWidth;
    var defineResponsibleHeight = function (height) {
        if (typeof height === "number") {
            return "height: " + Math.floor(height) + "px;";
        }
        if (typeof height === "string" && height.length > 0) {
            return Number(height)
                ? "height: " + parseInt(height, 10) + "px;"
                : "height: " + height + ";";
        }
        return null;
    };
    exports.defineResponsibleHeight = defineResponsibleHeight;
});
