import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.reflect.construct.js";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
import BaseSDK from './base';
export { default as CMSModal } from './modal';
/**
 * 单例模式使用方式
 *
 * new CMSSDK().api
 * 或
 * CMSSDK.getInstance().api
 */
var CMSSDK = /*#__PURE__*/function (_BaseSDK) {
  _inherits(CMSSDK, _BaseSDK);
  var _super = _createSuper(CMSSDK);
  function CMSSDK() {
    _classCallCheck(this, CMSSDK);
    return _super.apply(this, arguments);
  }
  _createClass(CMSSDK, null, [{
    key: "getInstance",
    value: function getInstance(opts) {
      this.__instance.setConfig(opts || {
        url: ''
      });
      return this.__instance;
    }
  }]);
  return CMSSDK;
}(BaseSDK);
_defineProperty(CMSSDK, "__instance", new CMSSDK({
  url: ''
}));
export { CMSSDK as default };