'use strict';

const getTransformForPlacement = (side, align, { x, y, width, height }) => {
    const transforms = {
        top: {
            start: `translate(${x}px, ${y}px)`,
            center: `translate(${x - width / 2}px, ${y}px)`,
            end: `translate(${x - width}px, ${y}px)`
        },
        bottom: {
            start: `translate(${x}px, ${y - height}px)`,
            center: `translate(${x - width / 2}px, ${y - height}px)`,
            end: `translate(${x - width}px, ${y - height}px)`
        },
        left: {
            start: `translate(${x}px, ${y}px)`,
            center: `translate(${x}px, ${y - height / 2}px)`,
            end: `translate(${x}px, ${y - height}px)`
        },
        right: {
            start: `translate(${x - width}px, ${y}px)`,
            center: `translate(${x - width}px, ${y - height / 2}px)`,
            end: `translate(${x - width}px, ${y - height}px)`
        }
    };
    return transforms[side][align];
};

exports.getTransformForPlacement = getTransformForPlacement;
//# sourceMappingURL=utils.cjs.map
