Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,61 @@
|
||||
/* Metro module 5243; source: modules/main_tabs_v2/UserSearchUtils.tsx; dependencies: [5244, 1945, 3793, 661, 1861, 3995, 2] */
|
||||
function _fun46660(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5421:6, offset: 0x011ac9c3, size: 196 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = cleanString;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const friendSuggestionStore = importDefault(5244) /* metro dependency 5244: FriendSuggestionStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/main_tabs_v2/UserSearchUtils.tsx');
|
||||
exports.cleanString = closure;
|
||||
exports.getRelationshipType = function(a0) {
|
||||
var value2 = RelationshipStore.getRelationshipType(a0);
|
||||
return value2 !== RelationshipTypes.NONE || FriendSuggestionStore.getSuggestion(a0) == null ? value2 : RelationshipTypes.SUGGESTION;
|
||||
};
|
||||
exports.getNames = getNames;
|
||||
}
|
||||
|
||||
function cleanString(a0) { // fn#46661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5421:154, offset: 0x011aca87, size: 61 bytes, params: 2, frame: 12
|
||||
var value;
|
||||
value = Reflect.apply((require(1861) /* metro dependency 1861: StringUtils */).stripDiacritics, value,
|
||||
[a0.toLocaleLowerCase()]);
|
||||
return value.trim();
|
||||
}
|
||||
|
||||
function getNames(a0) { // fn#46663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5421:495, offset: 0x011acb0e, size: 242 bytes, params: 2, frame: 18
|
||||
var value3;
|
||||
var value7;
|
||||
const object2 = {};
|
||||
const nickname = RelationshipStore.getNickname(a0.id);
|
||||
if (nickname != null) {
|
||||
value3 = cleanString(nickname);
|
||||
object2[nickname] = value3.split(' ');
|
||||
}
|
||||
const globalName = (importDefault(3995) /* metro dependency 3995: UserUtils */).getGlobalName(a0);
|
||||
if (globalName != null && object2[globalName] == null) {
|
||||
value7 = cleanString(globalName);
|
||||
object2[globalName] = value7.split(' ');
|
||||
}
|
||||
const username = a0.username;
|
||||
const cleanStringBinding = cleanString;
|
||||
const username2 = a0.username;
|
||||
const value8 = cleanStringBinding(username2);
|
||||
object2[username] = value8.split(' ');
|
||||
const getNicknames = GuildMemberStore.getNicknames;
|
||||
Reflect.apply(getNicknames, GuildMemberStore, [a0.id]).forEach(_fun46664);
|
||||
return {names: object2, nick: nickname};
|
||||
}
|
||||
|
||||
function _fun46664(a0) { // fn#46664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5421:760, offset: 0x011acc00, size: 62 bytes, params: 2, frame: 13
|
||||
var binding;
|
||||
var value;
|
||||
if (env0_0[a0] == null) {
|
||||
binding = env0_0;
|
||||
value = environment.__proto__;
|
||||
value = cleanString(a0);
|
||||
binding[a0] = value.split(' ');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user