decord/source/components_native/MemberRolesList.tsx

65 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 11420
// Function ID: 11421
2026-07-20 16:05:17 +00:00
// Name: MemberRolesList
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 1985, 21, 4380, 589, 9850, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 11420 (MemberRolesList)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import closure_4 from "createGuildRoleRecordFromRust" /* 1985 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles({ wrapper: { flexDirection: "row", flexWrap: "wrap", justifyContent: "center" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/MemberRolesList.tsx");
2026-07-20 16:05:17 +00:00
export default function MemberRolesList(userRoles) {
userRoles = userRoles.userRoles;
2026-07-23 10:11:24 +00:00
const guild = userRoles.guild;
2026-07-29 08:29:29 +00:00
let obj = userRoles(589);
2026-08-24 06:08:38 +00:00
const items = [closure_4];
const stateFromStores = obj.useStateFromStores(items, () => closure_1_4.getSortedRoles(guild.id));
2026-07-29 08:29:29 +00:00
const tmp4 = <View />;
let tmp2Result = tmp4;
2026-07-20 16:05:17 +00:00
if (null != userRoles) {
2026-07-29 08:29:29 +00:00
tmp2Result = tmp4;
2026-07-20 16:05:17 +00:00
if (userRoles.length > 0) {
const found = stateFromStores.filter((id) => userRoles.includes(id.id));
const sorted = found.sort((tags, tags2) => {
tags = tags.tags;
let guild_connections;
2026-07-29 08:29:29 +00:00
if (tags != null) {
2026-07-20 16:05:17 +00:00
guild_connections = tags.guild_connections;
}
tags2 = tags2.tags;
let guild_connections1;
2026-07-29 08:29:29 +00:00
if (tags2 != null) {
2026-07-20 16:05:17 +00:00
guild_connections1 = tags2.guild_connections;
}
if (null === guild_connections) {
let num2 = 0;
2026-07-29 08:29:29 +00:00
if (!tmp3) {
2026-07-20 16:05:17 +00:00
num2 = 0;
if (tmp4) {
num2 = -1;
}
}
let num = num2;
} else {
num = 1;
}
return num;
});
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items1 = [tmp.wrapper, userRoles.style];
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-08-24 06:08:38 +00:00
obj[1] = sorted.map((id) => closure_1_5(guild(closure_1_2[6]), { role: id, guildId: guild.id }, id.id));
2026-07-29 08:29:29 +00:00
tmp2Result = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
return tmp2Result;
2026-07-20 16:05:17 +00:00
};