"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;

var _react = _interopRequireDefault(require("react"));

var _getLocale = require("../../../utils/getLocale");

require("./index.css");

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

function _default() {
  var _window$BSGlobal$logi, _window$BSGlobal$logi2, _window$BSGlobal$logi3;

  var role = (_window$BSGlobal$logi = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Role;
  var isManager = role == 4 || role == 2;
  var url = "//".concat(window.location.host, "/").concat((_window$BSGlobal$logi2 = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi2 === void 0 ? void 0 : _window$BSGlobal$logi2.Id, "/TmHome#?iTalentFrameType=iframe&iTalentNavId=44281&iTalentFrame=").concat(window.location.origin, "/").concat((_window$BSGlobal$logi3 = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi3 === void 0 ? void 0 : _window$BSGlobal$logi3.Id, "/indexV2#/groupManage&");

  if (isManager) {
    return /*#__PURE__*/_react["default"].createElement("div", {
      style: {
        textAlign: "center"
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      className: "persel-empty"
    }, /*#__PURE__*/_react["default"].createElement("span", {
      className: "icon"
    })), /*#__PURE__*/_react["default"].createElement("div", {
      className: "empty-tip"
    }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Teamsettings")), /*#__PURE__*/_react["default"].createElement("a", {
      href: url,
      target: "_blank",
      className: "add-group",
      rel: "noreferrer"
    }, "\u6DFB\u52A0\u7FA4\u7EC4"));
  }

  return /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      textAlign: "center"
    }
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "persel-empty"
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: "icon"
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "empty-tip"
  }, "\u6682\u65E0\u7FA4\u7EC4\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8BBE\u7F6E\uFF0C\u8BBE\u7F6E\u540E\u53EF\u4EE5\u4E3A\u56E2\u961F\u76EE\u6807\u9009\u62E9\u7FA4\u7EC4"));
}