"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getGuestLabel = void 0;
var _locale = require("@mirai/locale");
var _isJest = require("./isJest");
const defaultMessage = !_isJest.IS_JEST ? '　　　' : undefined;
const L10N = {
  LABEL_GUEST_TYPE: {
    id: 'common.label.guest_type',
    defaultMessage
  },
  LABEL_GUEST_TYPE_ABBREVIATION: {
    id: 'common.label.guest_type_abbreviation',
    defaultMessage
  },
  LABEL_GUEST_TYPE_PLURAL: {
    id: 'common.label.guest_type_plural',
    defaultMessage
  }
};
const getGuestLabel = function () {
  let {
    abbreviation = false,
    plural = false,
    type
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  let translate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _locale.translate;
  return translate(abbreviation ? L10N.LABEL_GUEST_TYPE_ABBREVIATION : plural ? L10N.LABEL_GUEST_TYPE_PLURAL : L10N.LABEL_GUEST_TYPE, {
    type
  });
};
exports.getGuestLabel = getGuestLabel;
//# sourceMappingURL=getGuestLabel.js.map