"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getBookDemoVersion = exports.ContactNumber = exports.ApplicationVersion = exports.ApplicationState = void 0;

var _bsGlobal = require("../../utils/bs-global");

var _interface = require("../help-card/interface");

var _bookDemo = _interopRequireDefault(require("../book-demo"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-unresolved
var ContactNumber = '400-650-3180'; // eslint-disable-next-line no-shadow

exports.ContactNumber = ContactNumber;
var ApplicationState; // eslint-disable-next-line no-shadow

exports.ApplicationState = ApplicationState;

(function (ApplicationState) {
  ApplicationState[ApplicationState["Normal"] = 0] = "Normal";
  ApplicationState[ApplicationState["WillExpire"] = 1] = "WillExpire";
  ApplicationState[ApplicationState["Expired"] = 2] = "Expired";
})(ApplicationState || (exports.ApplicationState = ApplicationState = {}));

var ApplicationVersion;
exports.ApplicationVersion = ApplicationVersion;

(function (ApplicationVersion) {
  ApplicationVersion[ApplicationVersion["Trial"] = 1] = "Trial";
  ApplicationVersion[ApplicationVersion["PM"] = 2] = "PM";
  ApplicationVersion[ApplicationVersion["Personal"] = 3] = "Personal";
  ApplicationVersion[ApplicationVersion["Flagship"] = 6] = "Flagship";
  ApplicationVersion[ApplicationVersion["Performance"] = 8] = "Performance";
  ApplicationVersion[ApplicationVersion["OKRsE"] = 9] = "OKRsE";
  ApplicationVersion[ApplicationVersion["OKR"] = 10] = "OKR";
})(ApplicationVersion || (exports.ApplicationVersion = ApplicationVersion = {}));

var getBookDemoVersion = function getBookDemoVersion() {
  var menuVersion = (0, _bsGlobal.getBSGlobal)('tenantAuthentication').MenuVersion;

  if (menuVersion === _interface.ETrialVersion.OKR) {
    return _bookDemo["default"].DemoType.TryOKR;
  }

  if (menuVersion === _interface.ETrialVersion.Performance) {
    return _bookDemo["default"].DemoType.TryPerformance;
  }

  return _bookDemo["default"].DemoType.UniversalBookDemo;
};

exports.getBookDemoVersion = getBookDemoVersion;