"use strict";exports.__esModule = true;exports.isValidPositions = void 0;var _currentEnvironment = require("../../lib/currentEnvironment");

var _Popup = require("../Popup");

var isValidPosition = function isValidPosition(position) {
  return _Popup.PopupPositions.includes(position);
};

var isValidPositions = exports.isValidPositions = function isValidPositions(positions) {
  return positions.every(function (item) {
    if (_currentEnvironment.isProductionEnv) {
      return isValidPosition(item);
    }

    if (isValidPosition(item)) {
      return true;
    }

    throw new Error("Unxpected position \"" + item + "\"");
  });
};