"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.dialogOverrides = undefined;

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var _reactRedux = require("react-redux");

var _AddOrEditPrimerDialog = require("../helperComponents/AddOrEditPrimerDialog");

var _AddOrEditPrimerDialog2 = _interopRequireDefault(_AddOrEditPrimerDialog);

var _AddOrEditFeatureDialog = require("../helperComponents/AddOrEditFeatureDialog");

var _AddOrEditFeatureDialog2 = _interopRequireDefault(_AddOrEditFeatureDialog);

var _AddOrEditPartDialog = require("../helperComponents/AddOrEditPartDialog");

var _AddOrEditPartDialog2 = _interopRequireDefault(_AddOrEditPartDialog);

var _MergeFeaturesDialog = require("../helperComponents/MergeFeaturesDialog");

var _MergeFeaturesDialog2 = _interopRequireDefault(_MergeFeaturesDialog);

var _RenameSequenceDialog = require("../helperComponents/RenameSequenceDialog");

var _RenameSequenceDialog2 = _interopRequireDefault(_RenameSequenceDialog);

var _GoToDialog = require("../helperComponents/GoToDialog");

var _GoToDialog2 = _interopRequireDefault(_GoToDialog);

var _SelectDialog = require("../helperComponents/SelectDialog");

var _SelectDialog2 = _interopRequireDefault(_SelectDialog);

var _AddAdditionalEnzymes2 = require("../AddAdditionalEnzymes");

var _AddAdditionalEnzymes3 = _interopRequireDefault(_AddAdditionalEnzymes2);

var _teselagenReactComponents = require("teselagen-react-components");

var _addAdditionalEnzymes = require("../redux/addAdditionalEnzymes");

var _alignmentTool = require("../ToolBar/alignmentTool");

var _PrintDialog = require("../helperComponents/PrintDialog");

var _PrintDialog2 = _interopRequireDefault(_PrintDialog);

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

var AddAdditionalEnzymes = (0, _teselagenReactComponents.withDialog)({
  title: "Add Additional Enzymes"
})(_AddAdditionalEnzymes3.default);

var CreateAlignmentDialog = (0, _teselagenReactComponents.withDialog)({
  title: "Create New Alignment"
})(_alignmentTool.AlignmentToolInner);

var dialogOverrides = exports.dialogOverrides = ["AddOrEditFeatureDialogOverride", "AddOrEditPartDialogOverride", "AddOrEditPrimerDialogOverride"];

exports.default = (0, _reactRedux.connect)(function (state) {
  return {
    addAdditionalEnzymesOpen: state.VectorEditor.__allEditorsOptions.addAdditionalEnzymes.isOpen
  };
}, {
  addAdditionalEnzymesClose: _addAdditionalEnzymes.addAdditionalEnzymesClose
})(function (_ref) {
  var editorName = _ref.editorName,
      addAdditionalEnzymesOpen = _ref.addAdditionalEnzymesOpen,
      addAdditionalEnzymesClose = _ref.addAdditionalEnzymesClose,
      AddOrEditFeatureDialogOverride = _ref.AddOrEditFeatureDialogOverride,
      AddOrEditPartDialogOverride = _ref.AddOrEditPartDialogOverride,
      AddOrEditPrimerDialogOverride = _ref.AddOrEditPrimerDialogOverride;

  var AddOrEditFeatureDialog = AddOrEditFeatureDialogOverride || _AddOrEditFeatureDialog2.default;
  var AddOrEditPartDialog = AddOrEditPartDialogOverride || _AddOrEditPartDialog2.default;
  var AddOrEditPrimerDialog = AddOrEditPrimerDialogOverride || _AddOrEditPrimerDialog2.default;
  return _react2.default.createElement(
    "div",
    null,
    _react2.default.createElement(AddAdditionalEnzymes, {
      noTarget: true,
      dialogProps: {
        isOpen: addAdditionalEnzymesOpen,
        onClose: addAdditionalEnzymesClose
      }
    }),
    _react2.default.createElement(CreateAlignmentDialog, {
      editorName: editorName,
      dialogName: "CreateAlignmentDialog",
      noTarget: true
    }),
    _react2.default.createElement(_PrintDialog2.default, {
      editorName: editorName,
      dialogName: "PrintDialog",
      noTarget: true
    }),
    _react2.default.createElement(AddOrEditFeatureDialog, {
      editorName: editorName,
      dialogName: "AddOrEditFeatureDialog",
      noTarget: true
    }),
    _react2.default.createElement(AddOrEditPartDialog, {
      editorName: editorName,
      dialogName: "AddOrEditPartDialog",
      noTarget: true
    }),
    _react2.default.createElement(AddOrEditPrimerDialog, {
      editorName: editorName,
      dialogName: "AddOrEditPrimerDialog",
      noTarget: true
    }),
    _react2.default.createElement(_MergeFeaturesDialog2.default, {
      editorName: editorName,
      dialogName: "MergeFeaturesDialog",
      noTarget: true
    }),
    _react2.default.createElement(_RenameSequenceDialog2.default, {
      editorName: editorName,
      dialogName: "RenameSeqDialog",
      noTarget: true
    }),
    _react2.default.createElement(_GoToDialog2.default, { editorName: editorName, dialogName: "GoToDialog", noTarget: true }),
    _react2.default.createElement(_SelectDialog2.default, {
      editorName: editorName,
      dialogName: "SelectDialog",
      noTarget: true
    })
  );
});