"use strict";

exports.__esModule = true;
exports.default = void 0;

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

var _TimelineItem = _interopRequireDefault(require("@material-ui/lab/TimelineItem"));

var _TimelineOppositeContent = _interopRequireDefault(require("@material-ui/lab/TimelineOppositeContent"));

var _TimelineContent = _interopRequireDefault(require("@material-ui/lab/TimelineContent"));

var _TimelineSeparator = _interopRequireDefault(require("@material-ui/lab/TimelineSeparator"));

var _TimelineDot = _interopRequireDefault(require("@material-ui/lab/TimelineDot"));

var _TimelineConnector = _interopRequireDefault(require("@material-ui/lab/TimelineConnector"));

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

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var renderContent = function renderContent(content) {
  if (!content) return null;
  return /*#__PURE__*/_react.default.createElement(_TimelineContent.default, null, content);
};

var renderContentOpposite = function renderContentOpposite(contentOpposite) {
  if (!contentOpposite) return null;
  return /*#__PURE__*/_react.default.createElement(_TimelineOppositeContent.default, null, contentOpposite);
};

var renderSeparator = function renderSeparator(icon, outlined, connector) {
  var dotProps = outlined ? {
    variant: "outlined"
  } : {};
  var timeLineConnector = connector ? /*#__PURE__*/_react.default.createElement(_TimelineConnector.default, null) : null;
  return /*#__PURE__*/_react.default.createElement(_TimelineSeparator.default, null, /*#__PURE__*/_react.default.createElement(_TimelineDot.default, dotProps, icon), timeLineConnector);
};

var TimelineItem = function TimelineItem(_ref) {
  var content = _ref.content,
      contentOpposite = _ref.contentOpposite,
      icon = _ref.icon,
      outlined = _ref.outlined,
      connector = _ref.connector;
  return /*#__PURE__*/_react.default.createElement(_TimelineItem.default, null, renderContentOpposite(contentOpposite), renderSeparator(icon, outlined, connector), renderContent(content));
};

var _default = TimelineItem;
var _default2 = _default;
var _default3 = _default2;
exports.default = _default3;
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(renderContent, "renderContent", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(renderContentOpposite, "renderContentOpposite", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(renderSeparator, "renderSeparator", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(TimelineItem, "TimelineItem", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();

;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(renderContent, "renderContent", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(renderContentOpposite, "renderContentOpposite", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(renderSeparator, "renderSeparator", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(TimelineItem, "TimelineItem", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TimelineItem.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();