decord/source/modules/launchpad/native/LaunchPadMembers.tsx

89 lines
4.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16343
// Function ID: 16344
// Dependencies: [19, 17, 1391, 1981, 21, 4380, 647, 11771, 16039, 11148, 4376, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 16343
2026-08-24 06:08:38 +00:00
import defaultAreStatesEqual from "defaultAreStatesEqual" /* 647 */;
2026-08-25 06:04:03 +00:00
import _modDef11148 from "module_11148" /* 11148 */;
import _modDef11771 from "module_11771" /* 11771 */;
import _modDef16039 from "module_16039" /* 16039 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "ensureGuildLoaded" /* 1391 */;
2026-08-25 06:04:03 +00:00
import closure_5 from "handleConnectionOpen" /* 1981 */;
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-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
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
let closure_7 = createCacheKey.createStyles({ wrapper: { minHeight: 16 }, listStyle: { flex: 0 }, emptyWrapper: { padding: 20 }, emptyText: { textAlign: "center" } });
2026-08-24 06:08:38 +00:00
const memoResult = importAllResult.memo(function LaunchPadMembers() {
2026-07-20 16:05:17 +00:00
const tmp = callback();
2026-08-24 06:08:38 +00:00
let obj = defaultAreStatesEqual;
const items = [closure_5, closure_4];
2026-07-20 16:05:17 +00:00
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => {
2026-07-29 08:29:29 +00:00
currentlySelectedChannelId = currentlySelectedChannelId.getCurrentlySelectedChannelId();
channel = channel.getChannel(currentlySelectedChannelId);
2026-07-20 16:05:17 +00:00
if (null != currentlySelectedChannelId) {
if (null != channel) {
if (channel.isPrivate()) {
2026-07-29 08:29:29 +00:00
let obj = { channelId: null, type: "private" };
obj[0] = currentlySelectedChannelId;
2026-07-20 16:05:17 +00:00
return obj;
} else {
2026-07-29 08:29:29 +00:00
const guild_id = channel.guild_id;
2026-07-20 16:05:17 +00:00
if (channel.isThread()) {
2026-07-29 08:29:29 +00:00
obj = { channelId: null, guildId: null, type: "thread" };
obj[0] = currentlySelectedChannelId;
obj[1] = guild_id;
2026-08-24 06:08:38 +00:00
obj1 = obj;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj1 = { channelId: null, guildId: null, type: "guild" };
obj1[0] = currentlySelectedChannelId;
obj1[1] = guild_id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return obj1;
2026-07-20 16:05:17 +00:00
}
}
}
2026-08-25 06:04:03 +00:00
return { channelId: "call", type: true };
2026-07-20 16:05:17 +00:00
});
if ("private" === stateFromStoresObject.type) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.wrapper;
obj = { channelId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 };
obj[0] = stateFromStoresObject.channelId;
obj[1] = tmp.listStyle;
2026-08-25 06:04:03 +00:00
obj[1] = jsx(_modDef11771, { channelId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 }, stateFromStoresObject.channelId);
2026-07-29 08:29:29 +00:00
let tmp8 = <View channelId={null} listStyleOverride={null} disableBottomSafeZone insetEnd={20} />;
2026-07-20 16:05:17 +00:00
} else if ("thread" === stateFromStoresObject.type) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.wrapper;
const obj2 = { channelId: null, guildId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 };
({ channelId: obj5[0], guildId: obj5[1] } = stateFromStoresObject);
obj2[2] = tmp.listStyle;
2026-08-25 06:04:03 +00:00
obj1[1] = jsx(_modDef16039, { channelId: null, guildId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 }, stateFromStoresObject.channelId);
2026-07-29 08:29:29 +00:00
tmp8 = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
} else if ("guild" === stateFromStoresObject.type) {
2026-07-29 08:29:29 +00:00
const obj3 = { style: null, children: null };
obj3[0] = tmp.wrapper;
const obj4 = { channelId: null, guildId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 };
({ channelId: obj3[0], guildId: obj3[1] } = stateFromStoresObject);
obj4[2] = tmp.listStyle;
2026-08-25 06:04:03 +00:00
obj3[1] = jsx(_modDef11148, { channelId: null, guildId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 }, stateFromStoresObject.channelId);
2026-07-29 08:29:29 +00:00
tmp8 = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj5 = { style: null, children: null };
obj5[0] = tmp.emptyWrapper;
const obj6 = { style: null, variant: "text-md/semibold", children: null };
obj6[0] = tmp.emptyText;
const intl = tmp2(1236).intl;
obj6[2] = intl.string(tmp2(1236).t["+7wtJq"]);
2026-08-25 06:04:03 +00:00
obj5[1] = jsx(tmp2(4376).Text, { style: null, variant: "text-md/semibold", children: null });
2026-07-29 08:29:29 +00:00
tmp8 = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp8;
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/launchpad/native/LaunchPadMembers.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;