2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 5414
|
|
|
|
|
// Function ID: 5415
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: cleanString
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [5415, 1991, 4033, 676, 1903, 4223, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: cleanString, getNames, getRelationshipType
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 5414 (cleanString)
|
|
|
|
|
import isNullOrEmpty from "isNullOrEmpty" /* 1903 */;
|
|
|
|
|
import nameFromUserDefault from "nameFromUser" /* 4223 */;
|
|
|
|
|
import closure_3 from "initialize" /* 5415 */;
|
|
|
|
|
import closure_4 from "trackCommunicationDisabled" /* 1991 */;
|
|
|
|
|
import closure_5 from "markAllUserIdListsStale" /* 4033 */;
|
|
|
|
|
import { RelationshipTypes } from "ME" /* 676 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/main_tabs_v2/UserSearchUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const cleanString = function cleanString(toLocaleLowerCase) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj = isNullOrEmpty;
|
|
|
|
|
return isNullOrEmpty.stripDiacritics(toLocaleLowerCase.toLocaleLowerCase()).trim();
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const getRelationshipType = function getRelationshipType(id) {
|
|
|
|
|
const relationshipType = store.getRelationshipType(id);
|
|
|
|
|
let SUGGESTION = relationshipType;
|
|
|
|
|
if (relationshipType === RelationshipTypes.NONE) {
|
|
|
|
|
SUGGESTION = relationshipType;
|
|
|
|
|
if (null != suggestion.getSuggestion(id)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
SUGGESTION = tmp2.SUGGESTION;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return SUGGESTION;
|
|
|
|
|
};
|
|
|
|
|
export const getNames = function getNames(user) {
|
|
|
|
|
const names = {};
|
|
|
|
|
const nick = store.getNickname(user.id);
|
|
|
|
|
if (null != nick) {
|
2026-08-11 06:20:06 +00:00
|
|
|
const obj3 = names(1903);
|
|
|
|
|
let str = names(1903).stripDiacritics(nick.toLocaleLowerCase());
|
|
|
|
|
names[nick] = names(1903).stripDiacritics(nick.toLocaleLowerCase()).trim().split(" ");
|
|
|
|
|
let str2 = names(1903).stripDiacritics(nick.toLocaleLowerCase()).trim();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const globalName = nameFromUserDefault.getGlobalName(user);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp4) {
|
2026-08-11 06:20:06 +00:00
|
|
|
const obj6 = names(1903);
|
|
|
|
|
const str4 = names(1903).stripDiacritics(globalName.toLocaleLowerCase());
|
|
|
|
|
names[globalName] = names(1903).stripDiacritics(globalName.toLocaleLowerCase()).trim().split(" ");
|
|
|
|
|
const str5 = names(1903).stripDiacritics(globalName.toLocaleLowerCase()).trim();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const username = user.username;
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj4 = nameFromUserDefault;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp4 = null != globalName && null == names[globalName];
|
2026-08-11 06:20:06 +00:00
|
|
|
const obj7 = names(1903);
|
|
|
|
|
const str7 = names(1903).stripDiacritics(username.toLocaleLowerCase());
|
|
|
|
|
names[user.username] = names(1903).stripDiacritics(username.toLocaleLowerCase()).trim().split(" ");
|
2026-07-23 10:11:24 +00:00
|
|
|
nicknames = nicknames.getNicknames(user.id);
|
2026-07-29 08:29:29 +00:00
|
|
|
const item = nicknames.forEach((toLocaleLowerCase) => {
|
|
|
|
|
if (null == names[toLocaleLowerCase]) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj = names(closure_1_2[4]);
|
|
|
|
|
const str = names(closure_1_2[4]).stripDiacritics(toLocaleLowerCase.toLocaleLowerCase());
|
|
|
|
|
tmp[toLocaleLowerCase] = names(closure_1_2[4]).stripDiacritics(toLocaleLowerCase.toLocaleLowerCase()).trim().split(" ");
|
|
|
|
|
const str2 = names(closure_1_2[4]).stripDiacritics(toLocaleLowerCase.toLocaleLowerCase()).trim();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return { names, nick };
|
|
|
|
|
};
|