'use strict';

var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
var pluralize = require('../../pluralize-CFlSRsRn.js');
var ramda = require('ramda');
var useTeamsApi = require('../../useTeamsApi-Ch5sHR2_.js');
require('../../_commonjsHelpers-BJu3ubxk.js');
require('@babel/runtime/helpers/objectWithoutProperties');
require('@babel/runtime/helpers/defineProperty');
require('@tanstack/react-query');
require('@bigbinary/neeto-commons-frontend/react-utils');
require('axios');
require('@bigbinary/neeto-cist');
require('qs');
require('../../constants-CMNbKvoF.js');
require('i18next');
require('@bigbinary/neeto-commons-frontend/constants');
require('../../queryClient-B-JFya8X.js');

var pluralizeLabelUsingTaxonomy = function pluralizeLabelUsingTaxonomy(label, count) {
  if (ramda.includes(label, ramda.keys(initializers.taxonomies))) {
    var taxonomyLabel = count > 1 ? initializers.taxonomies[label].plural : initializers.taxonomies[label].singular;
    return "".concat(count, " ").concat(taxonomyLabel.toLocaleLowerCase());
  }
  return pluralize.pluralize(label, count, true).toLocaleLowerCase();
};
var isNeetoAuthApp = function isNeetoAuthApp() {
  return ((initializers.globalProps === null || initializers.globalProps === void 0 ? void 0 : initializers.globalProps.appName) || "").trim().toLowerCase() === "neetoauth";
};

exports.refetchMembers = useTeamsApi.refetchMembers;
exports.isNeetoAuthApp = isNeetoAuthApp;
exports.pluralizeLabelUsingTaxonomy = pluralizeLabelUsingTaxonomy;
//# sourceMappingURL=utils.js.map
