"use strict";

exports.__esModule = true;
exports.getLocalizedCountryByCode = void 0;
var _localizationHelper = require("../utils/localizationHelper");
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var getLocalizedCountryByCode = exports.getLocalizedCountryByCode = function getLocalizedCountryByCode(countries, countryCode, locale) {
  var country = countries.find(function (value) {
    return value.isoCode === countryCode;
  });
  var countryDisplayName = country ? country.name : null;
  var countryLocalized = (0, _localizationHelper.getLocalization)(countryDisplayName, locale, countryCode);
  return countryLocalized;
};
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(getLocalizedCountryByCode, "getLocalizedCountryByCode", "/home/vsts/work/1/s/src/utils/countryHelper.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(getLocalizedCountryByCode, "getLocalizedCountryByCode", "/home/vsts/work/1/s/src/utils/countryHelper.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();