Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,90 @@
/* Metro module 10739; source: modules/connectivity/native/components/GlobalStatusContent.tsx; dependencies: [31, 27, 1379, 1867, 4294, 4296, 10735, 661, 33, 4501, 697, 9325, 566, 10659, 10733, 4002, 4048, 8750, 4007, 7714, 477, 1585, 7725, 10740, 2] */
function _fun82495(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10925:6, offset: 0x01ef88c7, size: 389 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
const RTC_PANEL_HEIGHT = (require(10735) /* metro dependency 10735: ConnectivityConstants */).RTC_PANEL_HEIGHT;
const env0_8 = (require(661) /* metro dependency 661: Constants */).RTCConnectionStates;
let value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.bgNeutral = {backgroundColor: BACKGROUND_BASE_LOWEST};
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object2.bg = {backgroundColor: GREEN_360};
object2.container = {'paddingHorizontal': 16, 'minHeight': null, 'alignItems': 'center', 'justifyContent': 'center',
minHeight: RTC_PANEL_HEIGHT};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/connectivity/native/components/GlobalStatusContent.tsx');
exports.default = _default_82496;
}
function _default_82496() { // fn#82496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10925:491, offset: 0x01ef8a4c, size: 633 bytes, params: 1, frame: 29
var r8;
var r5;
var moduleValue4;
var value;
const value2 = undefined;
const styles = useStyles();
const {guild, channel, rtcConnectionState,
remotePlatform} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RTCConnectionStore,
GuildStore, ChannelStore, SessionsStore], _fun82497,
[(importDefault(9325) /* metro dependency 9325: useVoiceStateForRemoteSession */)()]);
const value5 = null;
const r7 = value5 == channel ? value2 : channel.isGuildStageVoice();
const value6 = (importDefault(10659) /* metro dependency 10659: useCanSpeakInChannel */)(value5 == channel ? value2 : channel.id);
const value7 = (importDefault(10733) /* metro dependency 10733: useIsInvitedToSpeak */)();
const value8 = value5 != channel;
const isThemeDark2 = (require(4002) /* metro dependency 4002: shared */).isThemeDark((importDefault(4048) /* metro dependency 4048: useTheme */)());
const r4 = r7 ? value6 || value7 : value8;
const value9 = (require(8750) /* metro dependency 8750: useIsScreenLandscapeNative */).useIsScreenLandscape();
if (value9) {
moduleValue4 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
r8 = moduleValue4.isModalOpen(importDefault(7714) /* metro dependency 7714: ChannelCallModal */);
} else {
r8 = value9;
}
r8 = r8 && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
const items2 = [r4 ? styles.bg : styles.bgNeutral];
items2[1] = styles.container;
items2[2] = {paddingTop: r8 ? 0 : top};
r8 = r8 && ((Component) => <Component hidden />)(importDefault(7725) /* metro dependency 7725: StatusBarAndroid */);
if (r7) {
value = importDefault(10740) /* metro dependency 10740: GlobalStageChannelStatus */;
value = ((Component) => <Component channel={channel} guild={guild} hasRTCConnectivity={value8} isDarkTheme={isThemeDark2} rtcConnectionState={rtcConnectionState} remotePlatform={remotePlatform} />)(value);
r5 = value;
} else {
r5 = value5;
}
return (
<View style={items2}>
{r8}
{r5}
</View>
);
}
function _fun82497() { // fn#82497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10925:566, offset: 0x01ef8cc5, size: 252 bytes, params: 1, frame: 19
const value = environment.__proto__;
const value3 = undefined;
const channel = ChannelStore.getChannel((env0_0 == null ? value3 : env0_0.channelId) ?? RTCConnectionStore.getChannelId());
const guild = GuildStore.getGuild(env0_0 != null ? channel == null ? value3 : channel.getGuildId() : RTCConnectionStore.getGuildId());
const sessionById = SessionsStore.getSessionById((env0_0 == null ? value3 : env0_0.sessionId) ?? '');
const os = sessionById == null ? value3 : sessionById.clientInfo.os;
const object2 = {guild: guild, channel: channel};
object2.rtcConnectionState = env0_0 != null ? RTCConnectionStates.RTC_CONNECTED : RTCConnectionStore.getState();
object2.remotePlatform = os;
return object2;
}
@@ -0,0 +1,155 @@
/* Metro module 10737; source: modules/connectivity/native/components/GlobalStatusIndicator.tsx; dependencies: [31, 27, 3849, 4606, 10738, 1379, 4294, 33, 9325, 566, 10665, 7709, 1244, 10739, 4017, 10734, 2] */
function _fun82468(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:6, offset: 0x01ef7f33, size: 350 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.StyleSheet;
const env0_6 = value.TouchableWithoutFeedback;
const NativeEventEmitter = value.NativeEventEmitter;
const NativeModules = value.NativeModules;
const actionSheetStore = importDefault(3849) /* metro dependency 3849: ActionSheetStore */;
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
const nativeMenuStore = importDefault(10738) /* metro dependency 10738: NativeMenuStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.Fragment;
const env0_14 = value.jsxs;
const DCDStatusBarOverlayViewManager = NativeModules.DCDStatusBarOverlayViewManager;
const nativeEventEmitter = new NativeEventEmitter(DCDStatusBarOverlayViewManager);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/connectivity/native/components/GlobalStatusIndicator.tsx');
exports.default = _default_82477;
exports.useGlobalStatusIndicatorHeightSharedValue = useGlobalStatusIndicatorHeightSharedValue;
}
function GlobalStatusIndicatorWrapper({onPress}) { // fn#82469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:371, offset: 0x01ef8091, size: 476 bytes, params: 2, frame: 22
var r5;
var intl;
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore], _fun82470,
[(importDefault(9325) /* metro dependency 9325: useVoiceStateForRemoteSession */)()]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun82471,
[value4]);
const env0_3 = value5;
const openVoice = (require(10665) /* metro dependency 10665: VoiceChatModalContext */).useVoiceChatNavigationContext()?.openVoice;
const binding = env0_3;
const value7 = binding.useCallback(_fun82472, [value5, onPress, openVoice]);
const env0_6 = binding.useRef(value7);
binding.useEffect(_fun82473);
binding.useEffect(_fun82474, [value4]);
const r8 = value5 != null ? 'button' : 'text';
if (value5 != null) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GaCMgX);
} else {
r5 = undefined;
}
return (
<TouchableWithoutFeedback
accessibilityRole={r8}
accessibilityHint={r5}
onPress={value7}
>
<View>
{((Component) => <Component />)(importDefault(10739) /* metro dependency 10739: GlobalStatusContent */)}
</View>
</TouchableWithoutFeedback>
);
}
function _default_82477({children, showWhenParticipantOnScreen, forceHide, onPress}) { // fn#82477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:1145, offset: 0x01ef8385, size: 270 bytes, params: 2, frame: 23
showWhenParticipantOnScreen = !(showWhenParticipantOnScreen === undefined) && showWhenParticipantOnScreen;
forceHide = !(forceHide === undefined) && forceHide;
const value2 = (require(10734) /* metro dependency 10734: useGlobalStatusIndicatorState */).useGlobalStatusIndicatorState(showWhenParticipantOnScreen);
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ActionSheetStore], _fun82478);
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([NativeMenuStore], function() {
return NativeMenuStore.isOpen();
});
const height = value2.height;
return height.useMemo(_fun82480, [children, value3 || value4, value2.isVisible && !forceHide, onPress, height,
forceHide]);
}
function useGlobalStatusIndicatorHeightSharedValue(a0) { // fn#82481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:1850, offset: 0x01ef8575, size: 95 bytes, params: 2, frame: 15
const env0_0 = a0;
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(a0.height);
env0_3.useEffect(_fun82482, [a0.height, value2]);
return value2;
}
function _fun82470() { // fn#82470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:439, offset: 0x01ef826d, size: 50 bytes, params: 1, frame: 11
var r0;
var value;
const channelId = env0_1?.channelId;
if (channelId != null) {
r0 = channelId;
} else {
value = environment.__proto__;
value = RTCConnectionStore.getChannelId();
r0 = value;
}
return r0;
}
function _fun82472() { // fn#82472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:669, offset: 0x01ef829f, size: 132 bytes, params: 1, frame: 15
var value2;
var value3;
if (env0_3 != null) {
if (openVoice == null) {
value3 = environment.__proto__;
(require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).navigateToVoiceChannel(env0_3,
'RTC Panel');
} else {
value2 = environment.__proto__;
if (ChannelRTCStore.getChatOpen(env0_3.id)) {
openVoice();
} else {
value3 = environment.__proto__;
(require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).navigateToVoiceChannel(env0_3,
'RTC Panel');
}
}
if (onPress != null) {
onPress();
}
}
}
function _fun82474() { // fn#82474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:856, offset: 0x01ef8323, size: 47 bytes, params: 1, frame: 14
const env0_0 = env1_15.addListener('StatusBarTapped', _fun82475);
return _fun82476;
}
function _fun82478() { // fn#82478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:1302, offset: 0x01ef8493, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return ActionSheetStore.getContent() != null;
}
function _fun82480() { // fn#82480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:1434, offset: 0x01ef84bf, size: 182 bytes, params: 1, frame: 22
const value = environment.__proto__;
return (
<>
<View
importantForAccessibility={env0_5 ? 'no-hide-descendants' : undefined}
accessibilityElementsHidden={env0_5}
style={[StyleSheet.absoluteFill, {marginTop: forceHide ? 0 : height, overflow: 'hidden'}]}
>
{children}
</View>
{env0_4 ? <GlobalStatusIndicatorWrapper onPress={onPress} /> : null}
</>
);
}
function _fun82482() { // fn#82482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:1964, offset: 0x01ef85d4, size: 30 bytes, params: 1, frame: 11
const binding = env0_1;
binding.set(env0_0.height);
}
function _fun82475() { // fn#82475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10923:900, offset: 0x01ef8352, size: 20 bytes, params: 1, frame: 9
env1_6.current();
}