Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,100 @@
|
||||
/* Metro module 15933; source: modules/guild_settings/apps/native/GuildSettingsModalLobbiesLinked.tsx; dependencies: [31, 3793, 1878, 661, 33, 1484, 6777, 6231, 6238, 4805, 6647, 3860, 697, 15866, 22, 7972, 4572, 5462, 2] */
|
||||
function _fun122888(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16141:6, offset: 0x02579606, size: 222 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).GuildSettingsSections;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.Fragment;
|
||||
const env0_8 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/apps/native/GuildSettingsModalLobbiesLinked.tsx');
|
||||
exports.default = GuildSettingsModalLobbiesLinked;
|
||||
}
|
||||
|
||||
function SyncingToGamesItem({applicationId, channels, isOnlySection}) { // fn#122889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16141:196, offset: 0x025796e4, size: 193 bytes, params: 2, frame: 19
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
if (channels.length === 0) {
|
||||
return null;
|
||||
} else {
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup
|
||||
title={(require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(applicationId)?.name}
|
||||
hasIcons
|
||||
>
|
||||
{channels.map(_fun122890)}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function GuildSettingsModalLobbiesLinked({contentContainerStyle, guildId}) { // fn#122892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16141:814, offset: 0x025798ac, size: 393 bytes, params: 2, frame: 28
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
|
||||
const value4 = (importDefault(22) /* metro dependency 22 */).groupBy((require(15866) /* metro dependency 15866: useChannelsAllowedToUnlink */).useChannelsAllowedToUnlink(guildId),
|
||||
function({linkedLobby}) {
|
||||
return linkedLobby?.application_id;
|
||||
});
|
||||
const Object = global.Object;
|
||||
const value5 = Object.keys(value4);
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const items2 = [{paddingTop: PX_16}, contentContainerStyle];
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const object = {paddingHorizontal: value2};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const form = <Form contentContainerStyle={items2}><Stack style={object} spacing={PX_24}>{value5.map(_fun122894)}</Stack></Form>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{form}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun122890(a0) { // fn#122890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16141:444, offset: 0x025797a5, size: 178 bytes, params: 2, frame: 24
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object2 = {};
|
||||
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
object2.label = useChannelNameModule.computeChannelName(a0, UserStore, RelationshipStore);
|
||||
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const Icon = TableRow2.Icon;
|
||||
object2.icon = <Icon IconComponent={(require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponent(a0)} />;
|
||||
object2.arrow = true;
|
||||
object2.onPress = onPress_122891;
|
||||
return <TableRow {...object2} key={a0.id} />;
|
||||
}
|
||||
|
||||
function _fun122894(a0) { // fn#122894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16141:1306, offset: 0x02579a51, size: 68 bytes, params: 2, frame: 16
|
||||
return (
|
||||
<SyncingToGamesItem
|
||||
applicationId={a0}
|
||||
channels={env0_0[a0]}
|
||||
isOnlySection={env0_1.length === 1}
|
||||
key={a0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_122891() { // fn#122891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16141:606, offset: 0x02579857, size: 85 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_2;
|
||||
const push = binding.push;
|
||||
const EDIT_LINKED_LOBBY = GuildSettingsSections.EDIT_LINKED_LOBBY;
|
||||
const isOnlySectionBinding = isOnlySection;
|
||||
const value4 = 1;
|
||||
Reflect.apply(push, binding, [EDIT_LINKED_LOBBY, {channel: env0_0,
|
||||
numScreensToPop: isOnlySectionBinding ? value4 !== channels.length ? value4 : 2 : value4}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user