'use strict';

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

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

var _PasswordResetRequestForm = require('../../components/user/PasswordResetRequestForm');

var _PasswordResetRequestForm2 = _interopRequireDefault(_PasswordResetRequestForm);

var _withConfig = require('../../enhancers/withConfig');

var _withConfig2 = _interopRequireDefault(_withConfig);

var _account = require('../../actions/account');

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

var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
  return {
    requestReset: function requestReset(email) {
      return dispatch((0, _account.requestPasswordReset)(email, ownProps.config.tenantId));
    }
  };
};

var ConnectedPasswordResetRequestForm = exports.ConnectedPasswordResetRequestForm = (0, _reactRedux.connect)(undefined, mapDispatchToProps)(_PasswordResetRequestForm2.default);

exports.default = (0, _withConfig2.default)(ConnectedPasswordResetRequestForm);