Liferay.Loader.define("segments-experiment-web@2.0.19/js/components/SegmentsExperimentsDetails.es", ['module', 'exports', 'require', 'frontend-js-react-web$react', '../types.es', '../util/percentages.es', '../util/statuses.es'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports["default"] = void 0;

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

    var _types = require("../types.es");

    var _percentages = require("../util/percentages.es");

    var _statuses = require("../util/statuses.es");

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

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * The contents of this file are subject to the terms of the Liferay Enterprise
     * Subscription License ("License"). You may not use this file except in
     * compliance with the License. You can obtain a copy of the License by
     * contacting Liferay, Inc. See the License for the specific language governing
     * permissions and limitations under the License, including but not limited to
     * distribution rights of the Software.
     */
    function SegmentsExperimentsDetails(_ref) {
      var segmentsExperiment = _ref.segmentsExperiment;
      var confidenceLevel = segmentsExperiment.confidenceLevel,
          goal = segmentsExperiment.goal,
          segmentsEntryName = segmentsExperiment.segmentsEntryName,
          status = segmentsExperiment.status;
      return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("h4", {
        className: "mb-3 mt-4 sheet-subtitle"
      }, Liferay.Language.get('details')), _react["default"].createElement("dl", null, _react["default"].createElement("div", {
        className: "d-flex"
      }, _react["default"].createElement("dt", null, Liferay.Language.get('segment') + ':', " "), _react["default"].createElement("dd", {
        className: "ml-2 text-secondary"
      }, segmentsEntryName)), _react["default"].createElement("div", {
        className: "d-flex"
      }, _react["default"].createElement("dt", null, Liferay.Language.get('goal') + ':', " "), _react["default"].createElement("dd", {
        className: "ml-2 text-secondary"
      }, goal.label)), status.value !== _statuses.STATUS_DRAFT && _react["default"].createElement("div", {
        className: "d-flex"
      }, _react["default"].createElement("dt", null, Liferay.Language.get('confidence-level') + ':', ' '), _react["default"].createElement("dd", {
        className: "ml-2 text-secondary"
      }, (0, _percentages.indexToPercentageString)(confidenceLevel)))));
    }

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