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

132 lines
5 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 10679
// Function ID: 10680
2026-07-20 16:05:17 +00:00
// Name: memoResult1
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 1922, 21, 4478, 712, 4673, 4322, 9771, 1297, 589, 8363, 5599, 2]
2026-07-20 16:05:17 +00:00
2026-09-01 10:26:29 +00:00
// Module 10679 (memoResult1)
2026-08-24 06:08:38 +00:00
import initialize from "initialize" /* 589 */;
import ThemesDefault from "Themes" /* 712 */;
import Button from "Button" /* 1297 */;
2026-09-01 10:26:29 +00:00
import getNicknameDefault from "getNickname" /* 4673 */;
import DiscordTagDefault from "DiscordTag" /* 9771 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-08-31 15:47:37 +00:00
import closure_4 from "mergeGuildAvatar" /* 1922 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
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 };
2026-08-24 06:08:38 +00:00
obj = { marginRight: ThemesDefault.space.PX_4 };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
createCacheKey = { color: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT, fontSize: 12 };
2026-07-29 08:29:29 +00:00
obj[2] = createCacheKey;
let closure_7 = createCacheKey.createStyles(obj);
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo((height) => {
({ guildId, user } = height);
const tmp = callback2();
2026-08-24 06:08:38 +00:00
let obj = getNicknameDefault;
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-09-01 10:26:29 +00:00
nickname = tmp2(4322).getGlobalName(user);
const tmp2Result = tmp2(4322);
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-08-24 06:08:38 +00:00
const items = [callback(DiscordTagDefault, { 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-09-01 10:26:29 +00:00
obj1 = { size: null, style: null, user: null, guildId: "a" };
2026-08-24 06:08:38 +00:00
obj1[0] = Button.AvatarSizes.SIZE_16;
2026-07-29 08:29:29 +00:00
obj1[1] = tmp.primaryAvatar;
obj1[2] = user;
2026-08-24 06:08:38 +00:00
tmp8Result = tmp8(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-09-01 10:26:29 +00:00
items1[1] = tmp8(tmp2(9771), 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);
});
const memoResult1 = importAllResult.memo(function DetailedGuildIdentityUserRow(arrow) {
({ 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-08-24 06:08:38 +00:00
let obj = initialize;
const items = [closure_4];
const stateFromStores = obj.useStateFromStores(items, () => closure_1_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-09-01 10:26:29 +00:00
let tmp2Result = tmp2(tmp(8363).FormRow, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
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 };
2026-07-29 08:29:29 +00:00
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-09-01 10:26:29 +00:00
tmp2Result = tmp2(tmp(5599).TableRow, obj1);
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guild_settings/native/DetailedGuildIdentityUserRow.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult1;
export const DetailedGuildIdentityUser = memoResult;