"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _lowcodeEngine = require("@alilc/lowcode-engine");

var _lowcodePluginZhEn = _interopRequireDefault(require("@alilc/lowcode-plugin-zh-en"));

var _lowcodePluginSchema = _interopRequireDefault(require("@alilc/lowcode-plugin-schema"));

var _lowcodePluginCodeEditor = _interopRequireDefault(require("@alilc/lowcode-plugin-code-editor"));

var _lowcodePluginUndoRedo = _interopRequireDefault(require("@alilc/lowcode-plugin-undo-redo"));

var _lowcodePluginCodeGenerator = _interopRequireDefault(require("@alilc/lowcode-plugin-code-generator"));

var _lowcodePluginDatasourcePane = _interopRequireDefault(require("@alilc/lowcode-plugin-datasource-pane"));

var _save = _interopRequireDefault(require("./save"));

var _simulatorResize = _interopRequireDefault(require("./simulator-resize"));

var _componentsPane = _interopRequireDefault(require("./components-pane"));

var _locale = _interopRequireDefault(require("./locale"));

var _codePane = _interopRequireDefault(require("./code-pane"));

var _schemaPane = _interopRequireDefault(require("./schema-pane"));

var _undoRedo = _interopRequireDefault(require("./undo-redo"));

var _datasourcePane = _interopRequireDefault(require("./datasource-pane"));

var isNewEngineVersion = !!_lowcodeEngine.material;

_lowcodeEngine.plugins.register(_simulatorResize["default"]);

_lowcodeEngine.plugins.register(_componentsPane["default"]);

if (isNewEngineVersion) {
  // 注册回退/前进
  _lowcodeEngine.plugins.register(_lowcodePluginUndoRedo["default"]); // 注册出码插件


  _lowcodePluginCodeGenerator["default"].pluginName = 'alilcCodeGenPlugin';

  _lowcodeEngine.plugins.register(_lowcodePluginCodeGenerator["default"]);

  _lowcodeEngine.plugins.register(_lowcodePluginZhEn["default"]);

  _lowcodePluginSchema["default"].pluginName = 'alilcSchemaPlugin';

  _lowcodeEngine.plugins.register(_lowcodePluginSchema["default"]);

  _lowcodePluginDatasourcePane["default"].pluginName = 'alilcDataSourcePlugin';

  _lowcodeEngine.plugins.register(_lowcodePluginDatasourcePane["default"]);

  _lowcodePluginCodeEditor["default"].pluginName = 'alilcCodePlugin';

  _lowcodeEngine.plugins.register(_lowcodePluginCodeEditor["default"]);
} else {
  _lowcodeEngine.plugins.register(_locale["default"]);

  _lowcodeEngine.plugins.register(_codePane["default"]);

  _lowcodeEngine.plugins.register(_schemaPane["default"]);

  _lowcodeEngine.plugins.register(_undoRedo["default"]);

  _lowcodeEngine.plugins.register(_datasourcePane["default"]);
}

_lowcodeEngine.plugins.register(_save["default"]);