"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "filterUniqueItems", {
  enumerable: true,
  get: function get() {
    return _filterUniqueItems.filterUniqueItems;
  }
});
exports.mapContentTypeToIcon = void 0;
Object.defineProperty(exports, "sha1", {
  enumerable: true,
  get: function get() {
    return _sha.sha1;
  }
});
Object.defineProperty(exports, "wordCount", {
  enumerable: true,
  get: function get() {
    return _wordCount.wordCount;
  }
});
var _react = _interopRequireDefault(require("react"));
var _reactIntl = require("react-intl");
var _blog = _interopRequireDefault(require("@atlaskit/object/blog"));
var _bug = _interopRequireDefault(require("@atlaskit/object/bug"));
var _page = _interopRequireDefault(require("@atlaskit/object/page"));
var _story = _interopRequireDefault(require("@atlaskit/object/story"));
var _task = _interopRequireDefault(require("@atlaskit/object/task"));
var _workItem = _interopRequireDefault(require("@atlaskit/object/work-item"));
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
var _utilMessages = require("./utilMessages");
var _filterUniqueItems = require("./filterUniqueItems");
var _sha = require("./sha1");
var _wordCount = require("./wordCount");
var Issue16 = function Issue16(props) {
  var intl = props.intl;
  return /*#__PURE__*/_react.default.createElement(_workItem.default, {
    label: intl.formatMessage((0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? _utilMessages.utilMessages.hyperlinkIconIssueLabelIssueTermRefresh : _utilMessages.utilMessages.hyperlinkIconIssueLabel)
  });
};
var Bug16 = function Bug16(props) {
  var intl = props.intl;
  return /*#__PURE__*/_react.default.createElement(_bug.default, {
    label: intl.formatMessage(_utilMessages.utilMessages.hyperlinkIconBugLabel)
  });
};
var Story16 = function Story16(props) {
  var intl = props.intl;
  return /*#__PURE__*/_react.default.createElement(_story.default, {
    label: intl.formatMessage(_utilMessages.utilMessages.hyperlinkIconStoryLabel)
  });
};
var Task16 = function Task16(props) {
  var intl = props.intl;
  return /*#__PURE__*/_react.default.createElement(_task.default, {
    label: intl.formatMessage(_utilMessages.utilMessages.hyperlinkIconTaskLabel)
  });
};
var Page16 = function Page16(props) {
  var intl = props.intl;
  return /*#__PURE__*/_react.default.createElement(_page.default, {
    label: intl.formatMessage(_utilMessages.utilMessages.hyperlinkIconPageLabel)
  });
};
var Blog16 = function Blog16(props) {
  var intl = props.intl;
  return /*#__PURE__*/_react.default.createElement(_blog.default, {
    label: intl.formatMessage(_utilMessages.utilMessages.hyperlinkIconBlogLabel)
  });
};
var IntlIssue16Icon = (0, _reactIntl.injectIntl)(Issue16);
var IntlBug16Icon = (0, _reactIntl.injectIntl)(Bug16);
var IntlStory16Icon = (0, _reactIntl.injectIntl)(Story16);
var IntlTask16Icon = (0, _reactIntl.injectIntl)(Task16);
var IntlPage16Icon = (0, _reactIntl.injectIntl)(Page16);
var IntlBlog16Icon = (0, _reactIntl.injectIntl)(Blog16);
var mapContentTypeToIcon = exports.mapContentTypeToIcon = {
  'jira.issue': /*#__PURE__*/_react.default.createElement(IntlIssue16Icon, null),
  'jira.issue.bug': /*#__PURE__*/_react.default.createElement(IntlBug16Icon, null),
  'jira.issue.story': /*#__PURE__*/_react.default.createElement(IntlStory16Icon, null),
  'jira.issue.task': /*#__PURE__*/_react.default.createElement(IntlTask16Icon, null),
  'confluence.page': /*#__PURE__*/_react.default.createElement(IntlPage16Icon, null),
  'confluence.blogpost': /*#__PURE__*/_react.default.createElement(IntlBlog16Icon, null)
};
// eslint-disable-next-line @atlaskit/editor/no-re-export

// eslint-disable-next-line @atlaskit/editor/no-re-export

// eslint-disable-next-line @atlaskit/editor/no-re-export