"use strict";

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

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

var _classnames = _interopRequireDefault(require("classnames"));

var _okrProgress = _interopRequireDefault(require("../okr-progress"));

require("./index.css");

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

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var prefix = 'tita-okr-excel-progress-o';

var OProgress = function OProgress(_ref) {
  var id = _ref.id,
      value = _ref.value,
      onChange = _ref.onChange,
      autoUpdate = _ref.autoUpdate,
      autoUpdateItem = _ref.autoUpdateItem,
      editable = _ref.editable,
      riskLevel = _ref.riskLevel,
      getPopupContainer = _ref.getPopupContainer;
  return /*#__PURE__*/_react["default"].createElement(_okrProgress["default"], {
    id: Number(id),
    value: value,
    onChange: onChange,
    autoUpdate: autoUpdate,
    autoUpdateItem: autoUpdateItem,
    editable: editable,
    isO: true,
    riskLevel: riskLevel,
    getPopupContainer: getPopupContainer
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])(prefix, _defineProperty({}, "".concat(prefix, "--editable"), editable))
  }, value, "%"));
};

var _default = OProgress;
exports["default"] = _default;