import warning from 'warning';
import { isProductionEnv } from '../../lib/currentEnvironment.js';
import { PopupPositions } from '../Popup/index.js';
var isValidPosition = function (position) {
    return PopupPositions.includes(position);
};
export var isValidPositions = function (positions) {
    return positions.every(function (item) {
        if (isProductionEnv) {
            return isValidPosition(item);
        }
        if (isValidPosition(item)) {
            return true;
        }
        warning(false, "Unexpected position \"".concat(item, "\""));
        return false;
    });
};
//# sourceMappingURL=validatePositions.js.map