"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.ConnectedPasswordResetRequestForm = void 0;
var _reactRedux = require("react-redux");
var _PasswordResetRequestForm = _interopRequireDefault(require("../../components/user/PasswordResetRequestForm"));
var _withConfig = _interopRequireDefault(require("../../enhancers/withConfig"));
var _account = require("../../actions/account");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapDispatchToProps = (dispatch, ownProps) => ({
  requestReset: email => dispatch((0, _account.requestPasswordReset)(email, ownProps.config.tenantId))
});
const ConnectedPasswordResetRequestForm = (0, _reactRedux.connect)(undefined, mapDispatchToProps)(_PasswordResetRequestForm.default);
exports.ConnectedPasswordResetRequestForm = ConnectedPasswordResetRequestForm;
var _default = (0, _withConfig.default)(ConnectedPasswordResetRequestForm);
exports.default = _default;