88 lines
4.2 KiB
TypeScript
88 lines
4.2 KiB
TypeScript
// Module ID: 16540
|
|
// Function ID: 16541
|
|
// Dependencies: [19, 17, 1387, 1981, 21, 4448, 647, 11723, 16235, 11150, 4444, 1236, 2]
|
|
|
|
// Module 16540
|
|
import defaultAreStatesEqual from "defaultAreStatesEqual" /* 647 */;
|
|
import _modDef11150 from "module_11150" /* 11150 */;
|
|
import _modDef11723 from "module_11723" /* 11723 */;
|
|
import _modDef16235 from "module_16235" /* 16235 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import closure_4 from "ensureGuildLoaded" /* 1387 */;
|
|
import closure_5 from "handleConnectionOpen" /* 1981 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4448 */;
|
|
import importAllResult from "noop" /* 19 */;
|
|
|
|
require = arg1;
|
|
let closure_7 = createCacheKey.createStyles({ wrapper: { minHeight: 16 }, listStyle: { flex: 0 }, emptyWrapper: { padding: 20 }, emptyText: { textAlign: "center" } });
|
|
const memoResult = importAllResult.memo(function LaunchPadMembers() {
|
|
const tmp = callback();
|
|
let obj = defaultAreStatesEqual;
|
|
const items = [closure_5, closure_4];
|
|
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => {
|
|
currentlySelectedChannelId = currentlySelectedChannelId.getCurrentlySelectedChannelId();
|
|
channel = channel.getChannel(currentlySelectedChannelId);
|
|
if (null != currentlySelectedChannelId) {
|
|
if (null != channel) {
|
|
if (channel.isPrivate()) {
|
|
let obj = { channelId: null, type: "private" };
|
|
obj[0] = currentlySelectedChannelId;
|
|
return obj;
|
|
} else {
|
|
const guild_id = channel.guild_id;
|
|
if (channel.isThread()) {
|
|
obj = { channelId: null, guildId: null, type: "thread" };
|
|
obj[0] = currentlySelectedChannelId;
|
|
obj[1] = guild_id;
|
|
obj1 = obj;
|
|
} else {
|
|
obj1 = { channelId: null, guildId: null, type: "guild" };
|
|
obj1[0] = currentlySelectedChannelId;
|
|
obj1[1] = guild_id;
|
|
}
|
|
return obj1;
|
|
}
|
|
}
|
|
}
|
|
return { channelId: "bottom", type: 43256129 };
|
|
});
|
|
if ("private" === stateFromStoresObject.type) {
|
|
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;
|
|
obj[1] = jsx(_modDef11723, { channelId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 }, stateFromStoresObject.channelId);
|
|
let tmp8 = <View channelId={null} listStyleOverride={null} disableBottomSafeZone insetEnd={20} />;
|
|
} else if ("thread" === stateFromStoresObject.type) {
|
|
obj1 = { style: null, children: null };
|
|
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;
|
|
obj1[1] = jsx(_modDef16235, { channelId: null, guildId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 }, stateFromStoresObject.channelId);
|
|
tmp8 = <View style={null}>{null}</View>;
|
|
} else if ("guild" === stateFromStoresObject.type) {
|
|
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;
|
|
obj3[1] = jsx(_modDef11150, { channelId: null, guildId: null, listStyleOverride: null, disableBottomSafeZone: true, insetEnd: 20 }, stateFromStoresObject.channelId);
|
|
tmp8 = <View style={null}>{null}</View>;
|
|
} else {
|
|
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"]);
|
|
obj5[1] = jsx(tmp2(4444).Text, { style: null, variant: "text-md/semibold", children: null });
|
|
tmp8 = <View style={null}>{null}</View>;
|
|
}
|
|
return tmp8;
|
|
});
|
|
const result = require("set").fileFinishedImporting("modules/launchpad/native/LaunchPadMembers.tsx");
|
|
|
|
export default memoResult;
|