"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getAgeOptions = void 0;
var _locale = require("@mirai/locale");
var _Occupation = require("../Occupation.l10n");
const getAgeOptions = function () {
  let [min = 0, max] = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  let translate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _locale.translate;
  return typeof min === 'number' && typeof max === 'number' && max > min ? {
    emptyOption: translate(_Occupation.L10N.LABEL_AGE),
    options: Array.from({
      length: max - min + 1
    }, (_, index) => (index + min).toString())
  } : undefined;
};
exports.getAgeOptions = getAgeOptions;
//# sourceMappingURL=getAgeOptions.js.map