Liferay.Loader.define("questions-web@1.0.58/js/components/UserPopover.es", ['module', 'exports', 'require', '@frontend-taglib-clay$clayui/popover', 'frontend-js-react-web$react', '../utils/utils.es', './UserIcon.es'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports["default"] = void 0;

    var _popover = _interopRequireDefault(require("@frontend-taglib-clay$clayui/popover"));

    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));

    var _utils = require("../utils/utils.es");

    var _UserIcon = _interopRequireDefault(require("./UserIcon.es"));

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

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * This library is free software; you can redistribute it and/or modify it under
     * the terms of the GNU Lesser General Public License as published by the Free
     * Software Foundation; either version 2.1 of the License, or (at your option)
     * any later version.
     *
     * This library is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
     * details.
     */
    var _default = function _default(_ref) {
      var creator = _ref.creator,
          statistics = _ref.statistics;
      return _react["default"].createElement(_popover["default"], {
        alignPosition: "bottom",
        className: "questions-user-popover",
        disableScroll: true,
        header: _react["default"].createElement("div", {
          className: "align-items-center d-flex"
        }, _react["default"].createElement(_UserIcon["default"], {
          fullName: creator.name,
          portraitURL: creator.image,
          userId: String(creator.id)
        }), _react["default"].createElement("div", {
          className: "c-ml-2"
        }, _react["default"].createElement("h4", {
          className: "font-weight-light h6 text-secondary"
        }, statistics.rank), _react["default"].createElement("h3", {
          className: "h5"
        }, creator.name)))
      }, _react["default"].createElement("div", {
        className: "text-secondary"
      }, _react["default"].createElement("p", {
        className: "c-mb-0"
      }, "Posts: ", statistics.postsNumber), _react["default"].createElement("p", {
        className: "c-mb-0"
      }, "Join Date:", ' ', (0, _utils.dateToBriefInternationalHuman)(statistics.joinDate)), _react["default"].createElement("p", {
        className: "c-mb-0"
      }, "Last Post Date:", ' ', (0, _utils.dateToBriefInternationalHuman)(statistics.lastPostDate))));
    };

    exports["default"] = _default;
    //# sourceMappingURL=UserPopover.es.js.map
  }
});
//# sourceMappingURL=UserPopover.es.js.map