"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _sharedMessages = _interopRequireDefault(require("../../../../sharedMessages"));
var _ActionModal = _interopRequireDefault(require("./ActionModal"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var ConfirmationModal = function ConfirmationModal(_ref) {
  var title = _ref.title,
    message = _ref.message,
    open = _ref.open,
    okCallback = _ref.okCallback,
    cancelCallback = _ref.cancelCallback,
    backdropClickCallback = _ref.backdropClickCallback,
    okButtonLabel = _ref.okButtonLabel,
    cancelButtonLabel = _ref.cancelButtonLabel;
  var cancelLabel = cancelButtonLabel != null ? cancelButtonLabel : _sharedMessages.default.cancel;
  var okLabel = okButtonLabel != null ? okButtonLabel : _sharedMessages.default.close;
  var actions = [{
    label: cancelLabel,
    handler: cancelCallback
  }, {
    label: okLabel,
    handler: okCallback,
    isPrimary: true
  }];
  return /*#__PURE__*/_react.default.createElement(_ActionModal.default, {
    title: title,
    message: message,
    open: open,
    actions: actions,
    backdropClickCallback: backdropClickCallback
  });
};
var _default = ConfirmationModal;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(ConfirmationModal, "ConfirmationModal", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(ConfirmationModal, "ConfirmationModal", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();