This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,100 +1,117 @@
/* 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] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import RelationshipStore from '../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as StackNativeModule from '../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as UseChannelNameModule from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import * as NavScrimAndroidModule from '../../../../design/components/Navigator/native/NavScrim.android.tsx'; /* Metro dependency 5462 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
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');
ReactModule;
(FileImportTrackerModule).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 = (UseNavigationNativeModule).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 _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 = (TableRowNativeModule).TableRow;
const object = {};
object.label = UseChannelNameModule.computeChannelName(a0, UserStore, RelationshipStore);
const TableRow2 = (TableRowNativeModule).TableRow;
const Icon = TableRow2.Icon;
object.icon = (
<Icon IconComponent={(require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponent(a0)} />
);
object.arrow = true;
object.onPress = onPress_122891;
return <TableRow {...object} key={a0.id} />;
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}]);
}
}
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 useToken = UseTokenModule.useToken;
const TABLE_ROW_PADDING = (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 = (NativeModule).Form;
const PX_16 = (Native).space.PX_16;
const items2 = [{paddingTop: PX_16}, contentContainerStyle];
const Stack = (StackNativeModule).Stack;
const object2 = {paddingHorizontal: value2};
const PX_24 = (Native).space.PX_24;
const form = (
<Form contentContainerStyle={items2}>
<Stack style={object2} spacing={PX_24}>
{value5.map(_fun122894)}
</Stack>
</Form>
);
const NavScrim = (NavScrimAndroidModule).NavScrim;
return (
<>
{form}
<NavScrim />
</>
);
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 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}]);
}
global.__d(_fun122888, 15933, [31, 3793, 1878, 661, 33, 1484, 6777, 6231, 6238, 4805, 6647, 3860, 697, 15866, 22,
7972, 4572, 5462,
2]) /* metro module 15933, dependencies: [31, 3793, 1878, 661, 33, 1484, 6777, 6231, 6238, 4805, 6647, 3860, 697, 15866, 22, 7972, 4572, 5462, 2] */;