"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _times = _interopRequireDefault(require("lodash/times"));

var digitMap = {
  0: 'zero',
  1: 'one',
  2: 'two',
  3: 'three',
  4: 'four',
  5: 'five',
  6: 'six',
  7: 'seven',
  8: 'eight',
  9: 'nine'
};
var comma = {
  name: 'comma',
  label: ',',
  write: ',',
  category: 'digit'
};
var decimalPoint = {
  name: 'decimal-point',
  label: '.',
  write: '.',
  category: 'digit'
};

var _default = (0, _times["default"])(10, String).map(function (n) {
  return {
    name: digitMap[n],
    write: n,
    label: n,
    category: 'digit'
  };
}).reduce(function (acc, o) {
  acc[o.name] = o;
  return acc;
}, {
  comma: comma,
  decimalPoint: decimalPoint
});

exports["default"] = _default;
//# sourceMappingURL=digits.js.map