text: require("source-map-support").install();
  exports.id = "index";
  exports.modules = {
  
  /***/ "../client/src/modules/user/index.web.jsx":
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("babel-runtime/regenerator");
  /* harmony import */ var babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("babel-runtime/helpers/asyncToGenerator");
  /* harmony import */ var babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("react");
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  /* harmony import */ var react_cookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("react-cookie");
  /* harmony import */ var react_cookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_cookie__WEBPACK_IMPORTED_MODULE_3__);
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("react-router-dom");
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_4__);
  /* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../client/src/i18n/index.ts");
  /* harmony import */ var _access__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../client/src/modules/user/access/index.js");
  /* harmony import */ var _resolvers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("../client/src/modules/user/resolvers/index.jsx");
  /* harmony import */ var _locales__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("../client/src/modules/user/locales/index.js");
  /* harmony import */ var _locales__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_locales__WEBPACK_IMPORTED_MODULE_8__);
  /* harmony import */ var _modules_common_components_web__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("../client/src/modules/common/components/web/index.jsx");
  /* harmony import */ var _containers_Users__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../client/src/modules/user/containers/Users.web.jsx");
  /* harmony import */ var _containers_Register__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../client/src/modules/user/containers/Register.jsx");
  /* harmony import */ var _containers_Login__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../client/src/modules/user/containers/Login.jsx");
  /* harmony import */ var _containers_Auth__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../client/src/modules/user/containers/Auth.web.jsx");
  /* harmony import */ var _connector__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../client/src/modules/connector.ts");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withUser", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["withUser"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasRole", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["hasRole"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withLoadedUser", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["withLoadedUser"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IfLoggedIn", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["IfLoggedIn"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IfNotLoggedIn", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["IfNotLoggedIn"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withLogout", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["withLogout"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthRoute", function() { return _containers_Auth__WEBPACK_IMPORTED_MODULE_13__["AuthRoute"]; });
  
  
  
  
  var _this = undefined;
  
  
  
  
  
  
  
  
  
  // import ProfileView from './components/ProfileView';
  
  
  // import UserEdit from './containers/UserEdit';
  // import UserAdd from './containers/UserAdd';
  
  
  // import ForgotPassword from './containers/ForgotPassword';
  // import ResetPassword from './containers/ResetPassword';
  
  
  
  
  
  // const ProfileName = withLoadedUser(
  //   ({ currentUser }) => (currentUser ? currentUser.fullName || currentUser.username : null)
  // );
  
  var LogoutLink = Object(react_router_dom__WEBPACK_IMPORTED_MODULE_4__["withRouter"])(Object(_containers_Auth__WEBPACK_IMPORTED_MODULE_13__["withLogout"])(function (_ref) {
    var logout = _ref.logout,
        history = _ref.history;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(
      'a',
      {
        href: 'javascript:void(0)',
        onClick: function onClick(e) {
          e.preventDefault();
          babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
            return babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
              while (1) {
                switch (_context.prev = _context.next) {
                  case 0:
                    _context.next = 2;
                    return logout();
  
                  case 2:
                    history.push('/');
  
                  case 3:
                  case 'end':
                    return _context.stop();
                }
              }
            }, _callee, _this);
          }))();
        },
        className: 'nav-link'
      },
      'Logout'
    );
  }));
  
  
  
  var NavLinkUsersWithI18n = Object(_i18n__WEBPACK_IMPORTED_MODULE_5__["default"])('user')(function (_ref3) {
    var t = _ref3.t;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(
      react_router_dom__WEBPACK_IMPORTED_MODULE_4__["NavLink"],
      { to: '/users', className: 'nav-link', activeClassName: 'active' },
      t('navLink.users')
    );
  });
  var NavLinkLoginWithI18n = Object(_i18n__WEBPACK_IMPORTED_MODULE_5__["default"])('user')(function (_ref4) {
    var t = _ref4.t;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(
      react_router_dom__WEBPACK_IMPORTED_MODULE_4__["NavLink"],
      { to: '/login', className: 'nav-link', activeClassName: 'active' },
      t('navLink.sign')
    );
  });
  
  /* harmony default export */ __webpack_exports__["default"] = (new _connector__WEBPACK_IMPORTED_MODULE_14__["default"](_access__WEBPACK_IMPORTED_MODULE_6__["default"], {
    route: [
    // <AuthRoute exact path="/profile" role={['user', 'admin']} redirect="/login" component={ProfileView} />,
    react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_containers_Auth__WEBPACK_IMPORTED_MODULE_13__["AuthRoute"], { exact: true, path: '/users', redirect: '/profile', role: 'admin', component: _containers_Users__WEBPACK_IMPORTED_MODULE_10__["default"] }),
    // <AuthRoute exact path="/users/new" role={['admin']} component={UserAdd} />,
    // <AuthRoute path="/users/:id" redirect="/profile" role={['user', 'admin']} component={UserEdit} />,
    react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_containers_Auth__WEBPACK_IMPORTED_MODULE_13__["AuthRoute"], { exact: true, path: '/register', redirectOnLoggedIn: true, redirect: '/admin/dashboard', component: _containers_Register__WEBPACK_IMPORTED_MODULE_11__["default"] }), react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_containers_Auth__WEBPACK_IMPORTED_MODULE_13__["AuthRoute"], {
      exact: true,
      path: '/admin/login',
      redirectOnLoggedIn: true,
      redirect: '/admin/dashboard',
      component: Object(react_router_dom__WEBPACK_IMPORTED_MODULE_4__["withRouter"])(function (_ref5) {
        var history = _ref5.history;
        return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_containers_Login__WEBPACK_IMPORTED_MODULE_12__["default"], { onLogin: function onLogin() {
            return history.push('/admin/dashboard');
          } });
      })
    })],
    // navItem: [
    //   <IfLoggedIn key="/users" role="admin">
    //     <MenuItem>
    //       <NavLinkUsersWithI18n />
    //     </MenuItem>
    //   </IfLoggedIn>
    // ],
    // navItemRight: [
    //   // <IfLoggedIn key="/profile">
    //   //   <MenuItem>
    //   //     <NavLink to="/profile" className="nav-link" activeClassName="active">
    //   //       <ProfileName />
    //   //     </NavLink>
    //   //   </MenuItem>
    //   // </IfLoggedIn>,
    //   <IfLoggedIn key="/logout">
    //     <MenuItem>
    //       <LogoutLink />
    //     </MenuItem>
    //   </IfLoggedIn>,
    //   <IfNotLoggedIn key="/login">
    //     <MenuItem>
    //       <NavLinkLoginWithI18n />
    //     </MenuItem>
    //   </IfNotLoggedIn>
    // ],
    resolver: _resolvers__WEBPACK_IMPORTED_MODULE_7__["default"],
    localization: { ns: 'user', resources: _locales__WEBPACK_IMPORTED_MODULE_8___default.a },
    // eslint-disable-next-line react/display-name
    rootComponentFactory: function rootComponentFactory(req) {
      return req ? react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_cookie__WEBPACK_IMPORTED_MODULE_3__["CookiesProvider"], { cookies: req.universalCookies }) : react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_cookie__WEBPACK_IMPORTED_MODULE_3__["CookiesProvider"], null);
    }
  }));
  
  /***/ })
  
  };
  //# sourceMappingURL=index.32e4d448b09709be4175.js.map