"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(require("classnames"));

var _dialog = _interopRequireDefault(require("../../../../../components/dialog"));

var _getLocale = require("../../../../../utils/getLocale");

var _precls = _interopRequireDefault(require("../../../precls"));

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

function ShowKrConfirmDialog(props) {
  var visible = props.visible,
      showkr = props.showkr,
      setVisible = props.setVisible,
      onConfirmHandler = props.onConfirmHandler;
  return /*#__PURE__*/React.createElement(_dialog["default"], {
    visible: visible,
    width: 360,
    title: /*#__PURE__*/React.createElement("span", {
      className: (0, _classnames["default"])("".concat(_precls["default"], "--kr-dialog--title"))
    }, showkr ? (0, _getLocale.getLocale)("OKR_Ali_Text_Areclose") : (0, _getLocale.getLocale)("OKR_Ali_Text_Aresureon")),
    noHeadLine: true,
    noFooterLine: true,
    noCloseIcon: true,
    okText: (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine"),
    destroyOnClose: true,
    cancelText: (0, _getLocale.getLocale)("Mod_Cancel"),
    onOk: function onOk() {
      return onConfirmHandler(!showkr);
    },
    onCancel: function onCancel() {
      return setVisible(false);
    }
  }, /*#__PURE__*/React.createElement("span", {
    className: (0, _classnames["default"])("".concat(_precls["default"], "--kr-dialog--content"))
  }, showkr ? (0, _getLocale.getLocale)("OKR_Ali_Text_Pageclosing") : (0, _getLocale.getLocale)("OKR_Ali_Text_Pagerefreshed")));
}

var _default = ShowKrConfirmDialog;
exports["default"] = _default;