'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.interactionTypeMetadata = undefined;

var _IconPlus = require('@instructure/ui-icons/lib/Line/IconPlus');

var _IconPlus2 = _interopRequireDefault(_IconPlus);

var _formatMessage = require('@instructure/quiz-common/lib/format-message');

var _formatMessage2 = _interopRequireDefault(_formatMessage);

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

// TODO: Add correct icon file imports when they are in inst icons
// import MultipleChoiceIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
// import MultipleAnswerIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
// import TrueOrFalseIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
// import MatchingIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
// import OrderingIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
// import FillBlankIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
// import EssayIcon from '@instructure/ui-icons/lib/Line/<insert icon name here>'
var interactionTypesIconDictionary = function interactionTypesIconDictionary(intType) {
  return {
    // TODO: Uncomment when we have the icons imported
    // 'choice': MultipleChoiceIcon,
    // 'multi-answer': MultipleAnswerIcon,
    // 'true-false': TrueOrFalseIcon,
    // 'matching': MatchingIcon,
    // 'ordering': OrderingIcon,
    // 'fill-blank': FillBlankIcon,
    // 'essay': EssayIcon
  }[intType.slug] || _IconPlus2.default;
};

var interactionTypesNameDictionary = function interactionTypesNameDictionary(intType) {
  return {
    categorization: (0, _formatMessage2.default)('Categorization'),
    choice: (0, _formatMessage2.default)('Multiple Choice'),
    essay: (0, _formatMessage2.default)('Essay'),
    'file-upload': (0, _formatMessage2.default)('File Upload'),
    'fill-blank': (0, _formatMessage2.default)('Fill in the Blank'),
    formula: (0, _formatMessage2.default)('Formula'),
    'hot-spot': (0, _formatMessage2.default)('Hot Spot'),
    matching: (0, _formatMessage2.default)('Matching'),
    'multi-answer': (0, _formatMessage2.default)('Multiple Answer'),
    numeric: (0, _formatMessage2.default)('Numeric'),
    ordering: (0, _formatMessage2.default)('Ordering'),
    'true-false': (0, _formatMessage2.default)('True or False')
  }[intType.slug] || intType.name;
};

var interactionTypeMetadata = exports.interactionTypeMetadata = function interactionTypeMetadata(intType) {
  return {
    icon: interactionTypesIconDictionary(intType),
    name: interactionTypesNameDictionary(intType)
  };
};