"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getItemTopStyle = void 0;
const sdk_1 = require("@cntrl-site/sdk");
function getItemTopStyle(top, anchorSide) {
    const defaultValue = `${top * 100}vw`;
    if (!anchorSide)
        return defaultValue;
    switch (anchorSide) {
        case sdk_1.AnchorSide.Top:
            return defaultValue;
        case sdk_1.AnchorSide.Center:
            return `calc(50% + ${top * 100}vw)`;
        case sdk_1.AnchorSide.Bottom:
            return `calc(100% + ${top * 100}vw)`;
    }
}
exports.getItemTopStyle = getItemTopStyle;
