"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get getOffsets () {
        return getOffsets;
    },
    get getSliderThumbValue () {
        return getSliderThumbValue;
    },
    get sizeData () {
        return sizeData;
    }
});
function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max) {
    var newValue = Math.round(handleCenterPosRelative / stepSize) + min;
    return Math.min(Math.max(newValue, min), max);
}
function getOffsets(ref, side, isVertical) {
    if (!ref || !('current' in ref) || !ref.current || !side) {
        return [
            0,
            0
        ];
    }
    var size = isVertical ? ref.current.clientHeight : ref.current.clientWidth;
    if (side === 'left') {
        return [
            0,
            size
        ];
    }
    if (side === 'right') {
        return [
            size,
            0
        ];
    }
    return [
        0,
        0
    ];
}
var sizeData = {
    s: {
        small: {
            indent: 0.5,
            fontSizeMultiplier: 16
        },
        large: {
            indent: 0.625,
            fontSizeMultiplier: 16
        }
    },
    m: {
        small: {
            indent: 0.5,
            fontSizeMultiplier: 16
        },
        large: {
            indent: 0.625,
            fontSizeMultiplier: 16
        }
    },
    l: {
        small: {
            indent: 0.5,
            fontSizeMultiplier: 16
        },
        large: {
            indent: 0.625,
            fontSizeMultiplier: 16
        }
    }
};
