maintenance

This commit is contained in:
2025-09-04 20:25:15 -04:00
parent 1469c7f52f
commit e8f2df9e69
214 changed files with 8507 additions and 1836 deletions

View File

@@ -0,0 +1,20 @@
/**
* Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.
*/
import countryMapping from 'services/files/countries_mapping.json';
export const getCountryFullName = (shortName: string): string => {
return countryMapping[shortName] || 'Unknown';
};
// Matches Java's implementation of the standard object.hashCode() for CharSequence
export const createHashFromString = (string: string): number => {
let hash = 0;
let i = 0;
while (i < string.length) {
hash = ((hash << 5) - hash + string.charCodeAt(i++)) << 0;
}
return hash;
};