118 lines
4.6 KiB
TypeScript
118 lines
4.6 KiB
TypeScript
// Module ID: 16184
|
|
// Function ID: 16185
|
|
// Name: LinkedLobbyFormSection
|
|
// Dependencies: [19, 1391, 676, 21, 1500, 5840, 5873, 1236, 5480, 1297, 1435, 4380, 712, 589, 8118, 4813, 16076, 16185, 2]
|
|
// Exports: default
|
|
|
|
// Module 16184 (LinkedLobbyFormSection)
|
|
import noopAll from "noop" /* 19 */;
|
|
import initialize from "initialize" /* 589 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import getAvatarURLDefault from "getAvatarURL" /* 1435 */;
|
|
import useNavigation from "useNavigation" /* 1500 */;
|
|
import closure_3 from "ensureGuildLoaded" /* 1391 */;
|
|
import { ChannelSettingsSections } from "ME" /* 676 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
|
|
|
require = arg1;
|
|
function LinkedLobbyFormSection(channel) {
|
|
channel = channel.channel;
|
|
importDefault = undefined;
|
|
let obj = channel(1500);
|
|
importDefault = obj.useNavigation();
|
|
obj1 = channel(5840);
|
|
const linkedLobby = channel.linkedLobby;
|
|
let application_id;
|
|
if (linkedLobby != null) {
|
|
application_id = linkedLobby.application_id;
|
|
}
|
|
const getOrFetchApplication = obj1.useGetOrFetchApplication(application_id);
|
|
let tmp5 = null;
|
|
if (null != getOrFetchApplication) {
|
|
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);
|
|
obj1[0] = getAvatarURLDefault.getApplicationIconSource({ id: null, icon: null });
|
|
obj1[1] = tmp(1297).AvatarSizes.REFRESH_MEDIUM_32;
|
|
obj[1] = callback(tmp(1297).Avatar, obj1);
|
|
obj[3] = function onPress() {
|
|
|
|
};
|
|
obj[2] = callback(tmp(5480).TableRow, obj);
|
|
tmp5 = callback(tmp(5873).TableRowGroup, obj);
|
|
const obj2 = { id: null, icon: null };
|
|
const obj6 = getAvatarURLDefault;
|
|
}
|
|
return tmp5;
|
|
}
|
|
noopAll;
|
|
({ jsx: c5, jsxs: closure_6 } = jsxProd);
|
|
createCacheKey = { screenContainer: null };
|
|
createCacheKey = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER, paddingTop: ThemesDefault.space.PX_16 };
|
|
createCacheKey[0] = createCacheKey;
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("components_native/channel_settings/ChannelSettingsIntegrationsOverview.tsx");
|
|
|
|
export default function ConnectedChannelSettingsIntegrationsOverview(arg0) {
|
|
({ channelId: require, canManageWebhooks, canUnlinkLobby } = arg0);
|
|
importDefault = undefined;
|
|
let obj = useNavigation;
|
|
importDefault = obj.useNavigation();
|
|
obj1 = initialize;
|
|
const items = [closure_3];
|
|
const stateFromStores = obj1.useStateFromStores(items, () => closure_1_3.getChannel(closure_0));
|
|
let tmp6Result = null;
|
|
if (null != stateFromStores) {
|
|
obj = { style: null, children: null };
|
|
obj[0] = tmp4.screenContainer;
|
|
obj = { style: null, spacing: null, children: null };
|
|
obj1 = { paddingHorizontal: null };
|
|
obj1[0] = ThemesDefault.space.PX_12;
|
|
obj[0] = obj1;
|
|
obj[1] = ThemesDefault.space.PX_24;
|
|
if (canManageWebhooks) {
|
|
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);
|
|
obj3[2] = tmp6(tmp(16076).WebhookIcon, {});
|
|
obj3[4] = function onPress() {
|
|
return arr.push(closure_1_4.WEBHOOKS);
|
|
};
|
|
const items1 = [tmp6(tmp(5480).TableRow, obj3), ];
|
|
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);
|
|
obj4[2] = tmp6(tmp(16185).ChannelsFollowedIcon, {});
|
|
obj4[4] = function onPress() {
|
|
return arr.push(closure_1_4.CHANNELS_FOLLOWED);
|
|
};
|
|
items1[1] = tmp6(tmp(5480).TableRow, obj4);
|
|
obj2[1] = items1;
|
|
canManageWebhooks = tmp7(tmp(5873).TableRowGroup, obj2);
|
|
}
|
|
const items2 = [canManageWebhooks, ];
|
|
if (canUnlinkLobby) {
|
|
canUnlinkLobby = null != stateFromStores.linkedLobby;
|
|
}
|
|
if (canUnlinkLobby) {
|
|
const obj5 = { channel: null };
|
|
obj5[0] = stateFromStores;
|
|
canUnlinkLobby = tmp6(LinkedLobbyFormSection, obj5);
|
|
}
|
|
items2[1] = canUnlinkLobby;
|
|
obj[2] = items2;
|
|
obj[1] = closure_6(tmp(4813).Stack, obj);
|
|
tmp6Result = tmp6(tmp(8118).Form, obj);
|
|
}
|
|
return tmp6Result;
|
|
};
|