decord/source/components_native/channel_settings/ChannelSettingsIntegrationsOverview.tsx

119 lines
4.5 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 16054
// Function ID: 16055
2026-07-20 16:05:17 +00:00
// Name: LinkedLobbyFormSection
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 1391, 676, 21, 1500, 7145, 6286, 1236, 6291, 1297, 1435, 4661, 712, 589, 8083, 4733, 15947, 16055, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 16054 (LinkedLobbyFormSection)
2026-07-29 08:29:29 +00:00
import "noop";
import ensureGuildLoaded from "ensureGuildLoaded";
2026-07-23 10:11:24 +00:00
import { ChannelSettingsSections } from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-20 16:05:17 +00:00
function LinkedLobbyFormSection(channel) {
channel = channel.channel;
2026-07-29 08:29:29 +00:00
let importDefault;
2026-08-15 05:55:55 +00:00
let obj = channel(1500);
2026-07-29 08:29:29 +00:00
importDefault = obj.useNavigation();
2026-08-15 05:55:55 +00:00
let obj1 = channel(7145);
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(1236).intl;
obj[0] = intl.string(tmp(1236).t.oAvIAg);
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-11 06:20:06 +00:00
obj1[0] = importDefault(1435).getApplicationIconSource({ id: null, icon: null });
2026-07-29 08:29:29 +00:00
obj1[1] = tmp(1297).AvatarSizes.REFRESH_MEDIUM_32;
obj[1] = callback(tmp(1297).Avatar, obj1);
obj[3] = function onPress() {
2026-07-20 16:05:17 +00:00
};
2026-08-15 05:55:55 +00:00
obj[2] = callback(tmp(6291).TableRow, obj);
tmp5 = callback(tmp(6286).TableRowGroup, obj);
2026-07-29 08:29:29 +00:00
const obj2 = { id: null, icon: null };
2026-08-11 06:20:06 +00:00
const obj6 = importDefault(1435);
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-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { screenContainer: null };
createCacheKey = { flex: 1, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWER, paddingTop: require("Themes").space.PX_16 };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("components_native/channel_settings/ChannelSettingsIntegrationsOverview.tsx");
2026-07-20 16:05:17 +00:00
export default function ConnectedChannelSettingsIntegrationsOverview(arg0) {
let canManageWebhooks;
let canUnlinkLobby;
2026-07-23 10:11:24 +00:00
let require;
({ channelId: require, canManageWebhooks, canUnlinkLobby } = arg0);
2026-07-29 08:29:29 +00:00
let importDefault;
2026-08-15 05:55:55 +00:00
let obj = require(1500) /* useNavigation */;
2026-07-29 08:29:29 +00:00
importDefault = obj.useNavigation();
let obj1 = require(589) /* initialize */;
const items = [ensureGuildLoaded];
2026-07-23 10:11:24 +00:00
const stateFromStores = obj1.useStateFromStores(items, () => outer1_3.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 };
obj1[0] = importDefault(712).space.PX_12;
obj[0] = obj1;
obj[1] = importDefault(712).space.PX_24;
2026-07-20 16:05:17 +00:00
if (canManageWebhooks) {
2026-07-29 08:29:29 +00:00
const obj2 = { hasIcons: true, children: null };
const obj3 = { label: null, subLabel: null, icon: null, arrow: true, onPress: null };
const intl = tmp(1236).intl;
obj3[0] = intl.string(tmp(1236).t.jp25Id);
const intl2 = tmp(1236).intl;
obj3[1] = intl2.string(tmp(1236).t.mKIOkI);
2026-08-15 05:55:55 +00:00
obj3[2] = tmp6(tmp(15947).WebhookIcon, {});
2026-07-29 08:29:29 +00:00
obj3[4] = function onPress() {
2026-07-23 10:11:24 +00:00
return arr.push(outer1_4.WEBHOOKS);
2026-07-20 16:05:17 +00:00
};
2026-08-15 05:55:55 +00:00
const items1 = [tmp6(tmp(6291).TableRow, obj3), ];
2026-07-29 08:29:29 +00:00
const obj4 = { label: null, subLabel: null, icon: null, arrow: true, onPress: null };
const intl3 = tmp(1236).intl;
obj4[0] = intl3.string(tmp(1236).t.OrV60r);
const intl4 = tmp(1236).intl;
obj4[1] = intl4.string(tmp(1236).t.rQREJl);
2026-08-15 05:55:55 +00:00
obj4[2] = tmp6(tmp(16055).ChannelsFollowedIcon, {});
2026-07-29 08:29:29 +00:00
obj4[4] = function onPress() {
2026-07-23 10:11:24 +00:00
return arr.push(outer1_4.CHANNELS_FOLLOWED);
2026-07-20 16:05:17 +00:00
};
2026-08-15 05:55:55 +00:00
items1[1] = tmp6(tmp(6291).TableRow, obj4);
2026-07-29 08:29:29 +00:00
obj2[1] = items1;
2026-08-15 05:55:55 +00:00
canManageWebhooks = tmp7(tmp(6286).TableRowGroup, obj2);
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;
2026-08-15 05:55:55 +00:00
obj[1] = closure_6(tmp(4733).Stack, obj);
tmp6Result = tmp6(tmp(8083).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
};