"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _ComponentContainer = _interopRequireDefault(require("../../../../../Framework/ComponentContainer"));
var _Actions = require("../../../../Reducers/UI/Actions");
var _Actions2 = require("../../../../Reducers/Configurator/Actions");
var _Incompatibility = _interopRequireDefault(require("../../Components/Incompatibility"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var mapStateToProps = function mapStateToProps(_ref) {
  var ui = _ref.ui,
    configurator = _ref.configurator;
  return {
    Component: _Incompatibility["default"],
    show: !!ui.visibilityMap.incompatibility,
    optionclassifications: configurator.configuration.optionclassifications,
    checkResults: configurator.configuration.check_results
  };
};
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
  return {
    onClose: function onClose() {
      dispatch((0, _Actions.setVisible)('incompatibility', false));
      dispatch((0, _Actions2.clearOptionDetails)());
    }
  };
};
var _default = exports["default"] = (0, _ComponentContainer["default"])(mapStateToProps, mapDispatchToProps);