"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = void 0;
var _redux = require("redux"),
  _reactRedux = require("react-redux"),
  _company = _interopRequireDefault(require("./../../model/company"));

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    default: e
  }
}
var mapState2Props = function(e) {
    var t = e.companyReducer,
      r = t.getIn(["SEC_COMPANY", "companyLevels"]),
      n = t.getIn(["SEC_COMPANY", "superiorCompanyList"]),
      o = t.getIn(["SEC_COMPANY", "editSuperiorCompanyList"]),
      e = t.getIn(["SEC_COMPANY", "tableList"]);
    return {
      companyLevels: r,
      superiorCompanyList: n,
      editSuperiorCompanyList: o,
      companyInfo: t.getIn(["SEC_COMPANY", "companyInfo"]),
      tableList: e,
      needRefreshTable: t.getIn(["SEC_COMPANY", "needRefreshTable"])
    }
  },
  actionCreators = function(t, r, n) {
    return Object.keys(t).map(function(e) {
      return t[e] = r(t[e], n)
    }), t
  },
  mapDispatch2Props = function(e, t) {
    return actionCreators(t, _redux.bindActionCreators, e)
  },
  companyConnect = function(t) {
    return function(e) {
      return (0, _reactRedux.connect)(mapState2Props, function(e) {
        return mapDispatch2Props(e, (0, _company.default)(t))
      })(e)
    }
  },
  _default = companyConnect;
exports.default = companyConnect, module.exports = exports.default;
