decord/source/components_native/channel_settings/ChannelSettingsIntegrationsOverview.tsx

124 lines
4.9 KiB
TypeScript
Raw Normal View History

// Module ID: 16838
// Function ID: 16839
2026-07-20 16:05:17 +00:00
// Name: LinkedLobbyFormSection
// Dependencies: [19, 1961, 1957, 1074, 21, 1483, 7168, 5687, 1114, 5605, 1178, 1396, 4560, 576, 504, 8593, 4973, 16726, 16839, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 16838 (LinkedLobbyFormSection)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import initialize from "initialize" /* 504 */;
import ThemesDefault from "Themes" /* 576 */;
import getAvatarURLDefault from "getAvatarURL" /* 1396 */;
import useNavigation from "useNavigation" /* 1483 */;
import { GUILD_FOLLOW_DESTINATION_CHANNEL_TYPES as closure_3 } from "createChannelRecord" /* 1961 */;
import closure_4 from "ensureGuildLoaded" /* 1957 */;
import { ChannelSettingsSections } from "ME" /* 1074 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function LinkedLobbyFormSection(channel) {
channel = channel.channel;
2026-08-24 06:08:38 +00:00
importDefault = undefined;
let obj = channel(1483);
2026-07-29 08:29:29 +00:00
importDefault = obj.useNavigation();
obj1 = channel(7168);
2026-07-20 16:05:17 +00:00
const linkedLobby = channel.linkedLobby;
let application_id;
2026-07-29 08:29:29 +00:00
if (linkedLobby != null) {
2026-07-20 16:05:17 +00:00
application_id = linkedLobby.application_id;
}
const getOrFetchApplication = obj1.useGetOrFetchApplication(application_id);
2026-07-29 08:29:29 +00:00
let tmp5 = null;
2026-07-20 16:05:17 +00:00
if (null != getOrFetchApplication) {
2026-07-29 08:29:29 +00:00
obj = { title: null, hasIcons: true, children: null };
const intl = tmp(1114).intl;
obj[0] = intl.string(tmp(1114).t.oAvIAg);
2026-07-29 08:29:29 +00:00
obj = { label: null, icon: null, arrow: true, onPress: null };
obj[0] = getOrFetchApplication.name;
obj1 = { source: null, size: null };
({ id: obj7[0], icon: obj7[1] } = getOrFetchApplication);
2026-08-24 06:08:38 +00:00
obj1[0] = getAvatarURLDefault.getApplicationIconSource({ id: null, icon: null });
obj1[1] = tmp(1178).AvatarSizes.REFRESH_MEDIUM_32;
obj[1] = callback(tmp(1178).Avatar, obj1);
2026-07-29 08:29:29 +00:00
obj[3] = function onPress() {
2026-07-20 16:05:17 +00:00
};
obj[2] = callback(tmp(5605).TableRow, obj);
tmp5 = callback(tmp(5687).TableRowGroup, obj);
2026-07-29 08:29:29 +00:00
const obj2 = { id: null, icon: null };
2026-08-24 06:08:38 +00:00
const obj6 = getAvatarURLDefault;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-09-02 09:53:35 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
2026-07-29 08:29:29 +00:00
createCacheKey = { screenContainer: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER, paddingTop: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-09-02 09:53:35 +00:00
let closure_9 = createCacheKey.createStyles(createCacheKey);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/channel_settings/ChannelSettingsIntegrationsOverview.tsx");
2026-07-20 16:05:17 +00:00
export default function ConnectedChannelSettingsIntegrationsOverview(arg0) {
2026-07-23 10:11:24 +00:00
({ channelId: require, canManageWebhooks, canUnlinkLobby } = arg0);
2026-08-24 06:08:38 +00:00
importDefault = undefined;
let obj = useNavigation;
2026-07-29 08:29:29 +00:00
importDefault = obj.useNavigation();
2026-08-24 06:08:38 +00:00
obj1 = initialize;
2026-09-02 09:53:35 +00:00
const items = [closure_4];
const stateFromStores = obj1.useStateFromStores(items, () => closure_1_4.getChannel(closure_0));
2026-07-29 08:29:29 +00:00
let tmp6Result = null;
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp4.screenContainer;
obj = { style: null, spacing: null, children: null };
obj1 = { paddingHorizontal: null };
2026-08-24 06:08:38 +00:00
obj1[0] = ThemesDefault.space.PX_12;
2026-07-29 08:29:29 +00:00
obj[0] = obj1;
2026-08-24 06:08:38 +00:00
obj[1] = ThemesDefault.space.PX_24;
2026-07-20 16:05:17 +00:00
if (canManageWebhooks) {
2026-09-02 09:53:35 +00:00
const obj2 = { label: null, subLabel: null, icon: null, arrow: true, onPress: null };
const intl = tmp(1114).intl;
obj2[0] = intl.string(tmp(1114).t.jp25Id);
const intl2 = tmp(1114).intl;
obj2[1] = intl2.string(tmp(1114).t.mKIOkI);
obj2[2] = tmp6(tmp(16726).WebhookIcon, {});
2026-09-02 09:53:35 +00:00
obj2[4] = function onPress() {
return arr.push(closure_1_5.WEBHOOKS);
2026-07-20 16:05:17 +00:00
};
const items1 = [tmp6(tmp(5605).TableRow, obj2), ];
2026-09-02 09:53:35 +00:00
let hasItem = set.has(stateFromStores.type);
if (hasItem) {
const obj3 = { label: null, subLabel: null, icon: null, arrow: true, onPress: null };
const intl3 = tmp(1114).intl;
obj3[0] = intl3.string(tmp(1114).t.OrV60r);
const intl4 = tmp(1114).intl;
obj3[1] = intl4.string(tmp(1114).t.rQREJl);
obj3[2] = tmp6(tmp(16839).ChannelsFollowedIcon, {});
2026-09-02 09:53:35 +00:00
obj3[4] = function onPress() {
return arr.push(closure_1_5.CHANNELS_FOLLOWED);
};
hasItem = tmp6(tmp(5605).TableRow, obj3);
2026-09-02 09:53:35 +00:00
}
const obj4 = { hasIcons: true, children: null };
items1[1] = hasItem;
obj4[1] = items1;
canManageWebhooks = tmp7(tmp(5687).TableRowGroup, obj4);
2026-07-20 16:05:17 +00:00
}
const items2 = [canManageWebhooks, ];
if (canUnlinkLobby) {
canUnlinkLobby = null != stateFromStores.linkedLobby;
}
if (canUnlinkLobby) {
2026-07-29 08:29:29 +00:00
const obj5 = { channel: null };
obj5[0] = stateFromStores;
canUnlinkLobby = tmp6(LinkedLobbyFormSection, obj5);
2026-07-20 16:05:17 +00:00
}
items2[1] = canUnlinkLobby;
2026-07-29 08:29:29 +00:00
obj[2] = items2;
obj[1] = closure_7(tmp(4973).Stack, obj);
tmp6Result = tmp6(tmp(8593).Form, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp6Result;
2026-07-20 16:05:17 +00:00
};