decord/source/modules/guild_settings/native/DetailedGuildIdentityUserRow.tsx

146 lines
5.2 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 10215
// Function ID: 10216
2026-07-20 16:05:17 +00:00
// Name: memoResult1
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 17, 1874, 21, 4193, 712, 4383, 4032, 9465, 1297, 589, 7639, 5224, 2]
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
// Module 10215 (memoResult1)
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import mergeGuildAvatar from "mergeGuildAvatar";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let obj = { mainIdentity: { flexDirection: "row", alignItems: "center" }, primaryAvatar: null, mainTag: null };
obj = { marginRight: require("Themes").space.PX_4 };
obj[1] = obj;
createCacheKey = { color: require("Themes").colors.INTERACTIVE_TEXT_DEFAULT, fontSize: 12 };
obj[2] = createCacheKey;
let closure_7 = createCacheKey.createStyles(obj);
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo((height) => {
let guildId;
let user;
({ guildId, user } = height);
const tmp = callback2();
2026-07-31 08:44:05 +00:00
let obj = importDefault(4383);
2026-07-20 16:05:17 +00:00
let nickname = obj.getNickname(guildId, undefined, user);
2026-07-29 08:29:29 +00:00
if (nickname == null) {
2026-07-31 08:44:05 +00:00
nickname = tmp2(4032).getGlobalName(user);
const tmp2Result = tmp2(4032);
2026-07-20 16:05:17 +00:00
}
const hasAvatarForGuildResult = user.hasAvatarForGuild(guildId);
2026-07-29 08:29:29 +00:00
obj = { style: { height: height.contentHeight }, children: null };
2026-07-31 08:44:05 +00:00
const items = [callback(importDefault(9465), { user, nick: nickname }), ];
2026-07-20 16:05:17 +00:00
if (hasAvatarForGuildResult) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.mainIdentity;
let tmp8Result = null;
2026-07-20 16:05:17 +00:00
if (hasAvatarForGuildResult) {
2026-07-29 08:29:29 +00:00
const obj1 = { size: null, style: null, user: null, guildId: "Array" };
obj1[0] = require(1297) /* Button */.AvatarSizes.SIZE_16;
obj1[1] = tmp.primaryAvatar;
obj1[2] = user;
tmp8Result = tmp8(require(1297) /* Button */.Avatar, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items1 = [tmp8Result, ];
const obj2 = { user: null, usernameStyle: null, hideBotTag: true };
obj2[0] = user;
obj2[1] = tmp.mainTag;
2026-07-31 08:44:05 +00:00
items1[1] = tmp8(tmp2(9465), obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
let tmp6Result = tmp6(tmp7, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp6Result = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = tmp6Result;
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
});
2026-07-29 08:29:29 +00:00
const metroImportAll = memoResult;
2026-07-20 16:05:17 +00:00
const memoResult1 = importAllResult.memo(function DetailedGuildIdentityUserRow(arrow) {
let accessibilityLabel;
let accessibilityRole;
let accessibilityState;
let contentHeight;
let deprecatedFormRow;
let disabled;
let end;
let guildId;
let leading;
let onPress;
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let start;
let subLabel;
let trailing;
({ accessibilityLabel, contentHeight, deprecatedFormRow } = arrow);
if (deprecatedFormRow === undefined) {
deprecatedFormRow = false;
}
2026-07-23 10:11:24 +00:00
({ disabled, guildId, leading, onPress, trailing, userId: require, subLabel, accessibilityRole, accessibilityState } = arrow);
2026-07-29 08:29:29 +00:00
let SMALL = dependencyMap;
2026-07-20 16:05:17 +00:00
({ end, start } = arrow);
2026-07-29 08:29:29 +00:00
let obj = require(589) /* initialize */;
const items = [mergeGuildAvatar];
2026-07-23 10:11:24 +00:00
const stateFromStores = obj.useStateFromStores(items, () => outer1_4.getUser(closure_0));
2026-07-20 16:05:17 +00:00
if (null == stateFromStores) {
return null;
2026-07-29 08:29:29 +00:00
} else if (deprecatedFormRow) {
obj = { accessibilityLabel: null, disabled: null, leading: null, label: null, onPress: null, subLabel: null, trailing: null, accessibilityRole: null, accessibilityState: null };
obj[0] = accessibilityLabel;
obj[1] = disabled;
if (leading == null) {
disabled = { source: null, size: null };
disabled[0] = stateFromStores.getAvatarSource(guildId);
SMALL = tmp(1297).AvatarSizes.SMALL;
disabled[1] = SMALL;
leading = tmp2(tmp(1297).Avatar, disabled);
}
obj[2] = leading;
leading = closure_8;
obj = { contentHeight: null, user: null, guildId: null };
obj[0] = contentHeight;
obj[1] = stateFromStores;
obj[2] = guildId;
obj[3] = tmp2(closure_8, obj);
obj[4] = onPress;
obj[5] = subLabel;
obj[6] = trailing;
obj[7] = accessibilityRole;
obj[8] = accessibilityState;
2026-07-31 08:44:05 +00:00
let tmp2Result = tmp2(tmp(7639).FormRow, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj1 = { accessibilityLabel: null, arrow: null, disabled: null, end: null, icon: null, label: null, onPress: null, start: null, subLabel: null, trailing: null, accessibilityRole: null, accessibilityState: null };
obj1[0] = accessibilityLabel;
obj1[1] = arrow.arrow;
obj1[2] = disabled;
obj1[3] = end;
tmp2Result = leading;
if (leading == null) {
const obj2 = { source: null, size: null };
obj2[0] = stateFromStores.getAvatarSource(guildId);
obj2[1] = tmp(1297).AvatarSizes.SMALL;
tmp2Result = tmp2(tmp(1297).Avatar, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1[4] = tmp2Result;
const obj3 = { contentHeight: null, user: null, guildId: null };
obj3[0] = contentHeight;
obj3[1] = stateFromStores;
obj3[2] = guildId;
obj1[5] = tmp2(closure_8, obj3);
obj1[6] = onPress;
obj1[7] = start;
obj1[8] = subLabel;
obj1[9] = trailing;
obj1[10] = accessibilityRole;
obj1[11] = accessibilityState;
2026-07-31 08:44:05 +00:00
tmp2Result = tmp2(tmp(5224).TableRow, obj1);
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("mergeGuildAvatar").fileFinishedImporting("modules/guild_settings/native/DetailedGuildIdentityUserRow.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult1;
export const DetailedGuildIdentityUser = memoResult;