function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
/**
 * 产品类型
 */

/**
 * 产品构造函数
 */

/**
 * 产品构造函数名称枚举
 */
export var EConstructorName = /*#__PURE__*/function (EConstructorName) {
  EConstructorName["AMSCashierPayment"] = "AMSCashierPayment";
  EConstructorName["AMSEasyPay"] = "AMSEasyPay";
  EConstructorName["AMSElement"] = "AMSElement";
  return EConstructorName;
}({});

// 这里维护各产品实例需要拦截的api列表,部分场景需要使用 (1.Polyfill需要预定义需要拦截的属性)
export var instanceApiMap = _defineProperty(_defineProperty(_defineProperty({}, EConstructorName.AMSCashierPayment, ['canMakePayments', 'createComponent', 'preloadComponent', 'mountComponent', 'submit']), EConstructorName.AMSEasyPay, ['createComponent', 'unmount']), EConstructorName.AMSElement, ['updatePayment', 'mount', 'submitPayment', 'destroy']);

/**
 * SDK 集成类型枚举
 */

/**
 * SDK 地址
 */
export var SDK_URL = {
  DEV: 'http://js-dev.antom.com/v2/ams-checkout.js',
  PROD: 'https://js.antom.com/v2/ams-checkout.js'
};