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,12 +1,15 @@
/* Metro module 12992; source: modules/a11y/AccessibilityActionCreators.tsx; dependencies: [4502, 661, 3832, 670, 694, 683, 7896, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import AccessibilityStore from './AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as StickersConstantsModule from '../stickers/StickersConstants.tsx'; /* Metro dependency 3832 */
function _fun99081(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:6, offset: 0x021bacce, size: 591 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_4 = (require(3832) /* metro dependency 3832: StickersConstants */).StickerAnimationSettings;
const env0_5 = (require(670) /* metro dependency 670: UserSettingsConstants */).SettingsOverrideReasonKeys;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/AccessibilityActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/AccessibilityActionCreators.tsx');
exports.setFontSize = setFontSize;
exports.setMessageGroupSpacing = setMessageGroupSpacing;
exports.setZoom = setZoom;
@@ -58,161 +61,163 @@ function _fun99081(global, require, importDefault, importAll, module, exports, d
exports.setSwitchIconsEnabled = setSwitchIconsEnabled;
exports.setChatBarSettings = setChatBarSettings;
exports.setHDRDynamicRange = setHDRDynamicRange;
}
function setFontSize(a0) { // fn#99082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:295, offset: 0x021baf1d, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_FONT_SIZE',
fontSize: a0});
}
function setFontSize(a0) { // fn#99082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:295, offset: 0x021baf1d, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_FONT_SIZE',
fontSize: a0});
}
function setMessageGroupSpacing() { // fn#99083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:411, offset: 0x021baf56, size: 63 bytes, params: 1, frame: 14
let value = a0;
const r4 = value !== undefined ? value : null;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'ACCESSIBILITY_SET_MESSAGE_GROUP_SPACING', messageGroupSpacing: r4});
}
function setMessageGroupSpacing() { // fn#99083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:411, offset: 0x021baf56, size: 63 bytes, params: 1, frame: 14
let value = a0;
const r4 = value !== undefined ? value : null;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'ACCESSIBILITY_SET_MESSAGE_GROUP_SPACING', messageGroupSpacing: r4});
}
function setZoom(a0) { // fn#99084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:551, offset: 0x021baf95, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_ZOOM', zoom: a0});
}
function setZoom(a0) { // fn#99084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:551, offset: 0x021baf95, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_ZOOM', zoom: a0});
}
function resetToDefault() { // fn#99085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:646, offset: 0x021bafce, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_RESET_TO_DEFAULT'});
}
function resetToDefault() { // fn#99085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:646, offset: 0x021bafce, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_RESET_TO_DEFAULT'});
}
function toggleDesaturateUserColors() { // fn#99088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1095, offset: 0x021bb0b3, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_DESATURATE_ROLES_TOGGLE'});
}
function toggleDesaturateUserColors() { // fn#99088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1095, offset: 0x021bb0b3, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_DESATURATE_ROLES_TOGGLE'});
}
function toggleColorblindMode() { // fn#99089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1222, offset: 0x021bb0e4, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_COLORBLIND_TOGGLE'});
}
function toggleColorblindMode() { // fn#99089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1222, offset: 0x021bb0e4, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_COLORBLIND_TOGGLE'});
}
function forcedColorsModalSeen() { // fn#99090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1338, offset: 0x021bb115, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_FORCED_COLORS_MODAL_SEEN'});
}
function forcedColorsModalSeen() { // fn#99090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1338, offset: 0x021bb115, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_FORCED_COLORS_MODAL_SEEN'});
}
function keyboardNavigationExplainerModalSeen() { // fn#99091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1477, offset: 0x021bb146, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'KEYBOARD_NAVIGATION_EXPLAINER_MODAL_SEEN'});
}
function keyboardNavigationExplainerModalSeen() { // fn#99091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1477, offset: 0x021bb146, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'KEYBOARD_NAVIGATION_EXPLAINER_MODAL_SEEN'});
}
function systemPrefersReducedMotionChanged(a0) { // fn#99092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1630, offset: 0x021bb177, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SYSTEM_PREFERS_REDUCED_MOTION_CHANGED',
systemPrefersReducedMotion: a0});
}
function systemPrefersReducedMotionChanged(a0) { // fn#99092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1630, offset: 0x021bb177, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SYSTEM_PREFERS_REDUCED_MOTION_CHANGED',
systemPrefersReducedMotion: a0});
}
function systemPrefersCrossfadesChanged(a0) { // fn#99093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1818, offset: 0x021bb1b0, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SYSTEM_PREFERS_CROSSFADES_CHANGED',
systemPrefersCrossfades: a0});
}
function systemPrefersCrossfadesChanged(a0) { // fn#99093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1818, offset: 0x021bb1b0, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SYSTEM_PREFERS_CROSSFADES_CHANGED',
systemPrefersCrossfades: a0});
}
function setLowContrastMode(a0) { // fn#99094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1984, offset: 0x021bb1e9, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_LOW_CONTRAST_TOGGLE',
lowContrastMode: a0});
}
function setLowContrastMode(a0) { // fn#99094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:1984, offset: 0x021bb1e9, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_LOW_CONTRAST_TOGGLE',
lowContrastMode: a0});
}
function setSaturation(a0) { // fn#99095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2111, offset: 0x021bb222, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_SATURATION',
saturation: a0});
}
function setSaturation(a0) { // fn#99095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2111, offset: 0x021bb222, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_SATURATION',
saturation: a0});
}
function setPrefersReducedMotion(a0) { // fn#99096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2233, offset: 0x021bb25b, size: 250 bytes, params: 2, frame: 21
var defaultImport2;
var applySettingsOverride;
var REDUCED_MOTION;
const useReducedMotion = AccessibilityStore.useReducedMotion;
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
let object2 = {type: 'ACCESSIBILITY_SET_PREFERS_REDUCED_MOTION', prefersReducedMotion: a0};
defaultImport.dispatch(object2);
const useReducedMotion2 = AccessibilityStore.useReducedMotion;
if (useReducedMotion) {
if (useReducedMotion && !useReducedMotion2) {
function setPrefersReducedMotion(a0) { // fn#99096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2233, offset: 0x021bb25b, size: 250 bytes, params: 2, frame: 21
var defaultImport2;
var applySettingsOverride;
var REDUCED_MOTION;
const accessibilityStoreBinding = AccessibilityStore;
const useReducedMotion = accessibilityStoreBinding.useReducedMotion;
const defaultImport = Dispatcher;
let object = {type: 'ACCESSIBILITY_SET_PREFERS_REDUCED_MOTION', prefersReducedMotion: a0};
defaultImport.dispatch(object);
const useReducedMotion2 = accessibilityStoreBinding.useReducedMotion;
if (useReducedMotion) {
if (useReducedMotion && !useReducedMotion2) {
(importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */).clearSettingsOverride('gifAutoPlay',
'animateEmoji', 'animateStickers');
}
} else if (useReducedMotion2) {
defaultImport2 = importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */;
applySettingsOverride = defaultImport2.applySettingsOverride;
object = {};
REDUCED_MOTION = SettingsOverrideReasonKeys.REDUCED_MOTION;
object.gifAutoPlay = {value: false, reasonKey: REDUCED_MOTION};
REDUCED_MOTION = SettingsOverrideReasonKeys.REDUCED_MOTION;
object.animateEmoji = {value: false, reasonKey: REDUCED_MOTION};
object.animateStickers = {value: StickerAnimationSettings.ANIMATE_ON_INTERACTION,
reasonKey: SettingsOverrideReasonKeys.REDUCED_MOTION_STICKERS};
Reflect.apply(applySettingsOverride, defaultImport2, [object]);
} else if (useReducedMotion && !useReducedMotion2) {
(importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */).clearSettingsOverride('gifAutoPlay',
'animateEmoji', 'animateStickers');
}
} else if (useReducedMotion2) {
defaultImport2 = importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */;
applySettingsOverride = defaultImport2.applySettingsOverride;
object2 = {};
REDUCED_MOTION = SettingsOverrideReasonKeys.REDUCED_MOTION;
object2.gifAutoPlay = {value: false, reasonKey: REDUCED_MOTION};
REDUCED_MOTION = SettingsOverrideReasonKeys.REDUCED_MOTION;
object2.animateEmoji = {value: false, reasonKey: REDUCED_MOTION};
object2.animateStickers = {value: StickerAnimationSettings.ANIMATE_ON_INTERACTION,
reasonKey: SettingsOverrideReasonKeys.REDUCED_MOTION_STICKERS};
Reflect.apply(applySettingsOverride, defaultImport2, [object2]);
} else if (useReducedMotion && !useReducedMotion2) {
(importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */).clearSettingsOverride('gifAutoPlay',
'animateEmoji', 'animateStickers');
}
function setSyncForcedColors(a0) { // fn#99097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2743, offset: 0x021bb355, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_SYNC_FORCED_COLORS',
syncForcedColors: a0});
}
function systemColorPreferencesChanged(a0) { // fn#99098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2891, offset: 0x021bb38e, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SYSTEM_COLOR_PREFERENCES_CHANGED',
systemForcedColors: a0});
}
function systemPrefersContrastChanged(a0) { // fn#99099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3060, offset: 0x021bb3c7, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SYSTEM_PREFERS_CONTRAST_CHANGED',
systemPrefersContrast: a0});
}
function setAlwaysShowLinkDecorations(a0) { // fn#99100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3230, offset: 0x021bb400, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_ALWAYS_SHOW_LINK_DECORATIONS',
alwaysShowLinkDecorations: a0});
}
function setEnableCustomCursor(a0) { // fn#99101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3398, offset: 0x021bb439, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_ENABLE_CUSTOM_CURSOR',
enableCustomCursor: a0});
}
function setDisplayNameStylesEnabled(a0) { // fn#99104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3955, offset: 0x021bb538, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_DISPLAY_NAME_STYLES_ENABLED',
enabled: a0});
}
function toggleSubmitButton() { // fn#99105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4100, offset: 0x021bb570, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SUBMIT_BUTTON_TOGGLE'});
}
function toggleSyncProfileThemeWithUserTheme() { // fn#99106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4231, offset: 0x021bb5a1, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SYNC_PROFILE_THEME_WITH_USER_THEME_TOGGLE'});
}
function setContrast(a0) { // fn#99107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4376, offset: 0x021bb5d2, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_CONTRAST',
contrast: a0});
}
function setContrastMode(a0) { // fn#99108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4484, offset: 0x021bb60b, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_CONTRAST_MODE',
contrastMode: a0});
}
function setSwitchIconsEnabled(a0) { // fn#99109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4611, offset: 0x021bb644, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'ACCESSIBILITY_SET_SWITCH_ICONS_ENABLED',
switchIconsEnabled: a0});
}
function setChatBarSettings(a0) { // fn#99110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4754, offset: 0x021bb67d, size: 59 bytes, params: 2, frame: 14
const dispatch = Dispatcher.dispatch;
const object = {type: 'ACCESSIBILITY_SET_CHAT_BAR_SETTINGS'};
copyDataProperties(object, a0, 'ACCESSIBILITY_SET_CHAT_BAR_SETTINGS');
Reflect.apply(dispatch, Dispatcher, [object]);
}
function setHDRDynamicRange(a0) { // fn#99111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4875, offset: 0x021bb6b8, size: 62 bytes, params: 2, frame: 14
(Dispatcher).dispatch({type: 'UNSYNCED_USER_SETTINGS_UPDATE',
settings: {hdrDynamicRange: a0}});
}
}
function setSyncForcedColors(a0) { // fn#99097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2743, offset: 0x021bb355, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_SYNC_FORCED_COLORS',
syncForcedColors: a0});
}
function systemColorPreferencesChanged(a0) { // fn#99098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:2891, offset: 0x021bb38e, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SYSTEM_COLOR_PREFERENCES_CHANGED',
systemForcedColors: a0});
}
function systemPrefersContrastChanged(a0) { // fn#99099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3060, offset: 0x021bb3c7, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SYSTEM_PREFERS_CONTRAST_CHANGED',
systemPrefersContrast: a0});
}
function setAlwaysShowLinkDecorations(a0) { // fn#99100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3230, offset: 0x021bb400, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_ALWAYS_SHOW_LINK_DECORATIONS',
alwaysShowLinkDecorations: a0});
}
function setEnableCustomCursor(a0) { // fn#99101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3398, offset: 0x021bb439, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_ENABLE_CUSTOM_CURSOR',
enableCustomCursor: a0});
}
function setDisplayNameStylesEnabled(a0) { // fn#99104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:3955, offset: 0x021bb538, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_DISPLAY_NAME_STYLES_ENABLED',
enabled: a0});
}
function toggleSubmitButton() { // fn#99105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4100, offset: 0x021bb570, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SUBMIT_BUTTON_TOGGLE'});
}
function toggleSyncProfileThemeWithUserTheme() { // fn#99106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4231, offset: 0x021bb5a1, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SYNC_PROFILE_THEME_WITH_USER_THEME_TOGGLE'});
}
function setContrast(a0) { // fn#99107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4376, offset: 0x021bb5d2, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_CONTRAST',
contrast: a0});
}
function setContrastMode(a0) { // fn#99108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4484, offset: 0x021bb60b, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_CONTRAST_MODE',
contrastMode: a0});
}
function setSwitchIconsEnabled(a0) { // fn#99109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4611, offset: 0x021bb644, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACCESSIBILITY_SET_SWITCH_ICONS_ENABLED',
switchIconsEnabled: a0});
}
function setChatBarSettings(a0) { // fn#99110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4754, offset: 0x021bb67d, size: 59 bytes, params: 2, frame: 14
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'ACCESSIBILITY_SET_CHAT_BAR_SETTINGS'};
copyDataProperties(object2, a0, 'ACCESSIBILITY_SET_CHAT_BAR_SETTINGS');
Reflect.apply(dispatch, value, [object2]);
}
function setHDRDynamicRange(a0) { // fn#99111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13182:4875, offset: 0x021bb6b8, size: 62 bytes, params: 2, frame: 14
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UNSYNCED_USER_SETTINGS_UPDATE',
settings: {hdrDynamicRange: a0}});
}
global.__d(_fun99081, 12992, [4502, 661, 3832, 670, 694, 683, 7896,
2]) /* metro module 12992, dependencies: [4502, 661, 3832, 670, 694, 683, 7896, 2] */;
+61 -59
View File
@@ -1,65 +1,67 @@
/* Metro module 12845; source: modules/a11y/AccessibilityConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun97999(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13035:6, offset: 0x0219886e, size: 658 bytes, params: 8, frame: 16
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {NONE: 0};
object2[0] = 'NONE';
object2.SCREENREADER = 1;
object2[1] = 'SCREENREADER';
object2.REDUCED_MOTION = 2;
object2[2] = 'REDUCED_MOTION';
object2.REDUCED_MOTION_PREFERS_CROSSFADES = 4194304;
object2[4194304] = 'REDUCED_MOTION_PREFERS_CROSSFADES';
object2.REDUCED_TRANSPARENCY = 4;
object2[4] = 'REDUCED_TRANSPARENCY';
object2.HIGH_CONTRAST = 8;
object2[8] = 'HIGH_CONTRAST';
object2.BOLD_TEXT = 16;
object2[16] = 'BOLD_TEXT';
object2.GRAYSCALE = 32;
object2[32] = 'GRAYSCALE';
object2.INVERT_COLORS = 64;
object2[64] = 'INVERT_COLORS';
object2.PREFERS_COLOR_SCHEME_LIGHT = 128;
object2[128] = 'PREFERS_COLOR_SCHEME_LIGHT';
object2.PREFERS_COLOR_SCHEME_DARK = 256;
object2[256] = 'PREFERS_COLOR_SCHEME_DARK';
object2.CHAT_FONT_SCALE_INCREASED = 512;
object2[512] = 'CHAT_FONT_SCALE_INCREASED';
object2.CHAT_FONT_SCALE_DECREASED = 1024;
object2[1024] = 'CHAT_FONT_SCALE_DECREASED';
object2.ZOOM_LEVEL_INCREASED = 2048;
object2[2048] = 'ZOOM_LEVEL_INCREASED';
object2.ZOOM_LEVEL_DECREASED = 4096;
object2[4096] = 'ZOOM_LEVEL_DECREASED';
object2.MESSAGE_GROUP_SPACING_INCREASED = 8192;
object2[8192] = 'MESSAGE_GROUP_SPACING_INCREASED';
object2.MESSAGE_GROUP_SPACING_DECREASED = 16384;
object2[16384] = 'MESSAGE_GROUP_SPACING_DECREASED';
object2.DARK_SIDEBAR = 32768;
object2[32768] = 'DARK_SIDEBAR';
object2.REDUCED_MOTION_FROM_USER_SETTINGS = 65536;
object2[65536] = 'REDUCED_MOTION_FROM_USER_SETTINGS';
object2.SATURATION_LEVEL_DECREASED = 131072;
object2[131072] = 'SATURATION_LEVEL_DECREASED';
object2.FORCED_COLORS = 262144;
object2[262144] = 'FORCED_COLORS';
object2.FORCED_COLORS_FROM_USER_SETTINGS = 524288;
object2[524288] = 'FORCED_COLORS_FROM_USER_SETTINGS';
object2.ROLE_STYLE_ADJUSTED = 1048576;
object2[1048576] = 'ROLE_STYLE_ADJUSTED';
object2.SYNC_PROFILE_THEME_WITH_USER_THEME = 2097152;
object2[2097152] = 'SYNC_PROFILE_THEME_WITH_USER_THEME';
object2.CONTRAST_LEVEL_INCREASED = 8388608;
object2[8388608] = 'CONTRAST_LEVEL_INCREASED';
object2.CONTRAST_LEVEL_DECREASED = 16777216;
object2[16777216] = 'CONTRAST_LEVEL_DECREASED';
object2.UI_DENSITY_COMPACT = 33554432;
object2[33554432] = 'UI_DENSITY_COMPACT';
object2.UI_DENSITY_SPACIOUS = 67108864;
object2[67108864] = 'UI_DENSITY_SPACIOUS';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/AccessibilityConstants.tsx');
exports.AccessibilityFeatureFlags = object2;
object = {NONE: 0};
object[0] = 'NONE';
object.SCREENREADER = 1;
object[1] = 'SCREENREADER';
object.REDUCED_MOTION = 2;
object[2] = 'REDUCED_MOTION';
object.REDUCED_MOTION_PREFERS_CROSSFADES = 4194304;
object[4194304] = 'REDUCED_MOTION_PREFERS_CROSSFADES';
object.REDUCED_TRANSPARENCY = 4;
object[4] = 'REDUCED_TRANSPARENCY';
object.HIGH_CONTRAST = 8;
object[8] = 'HIGH_CONTRAST';
object.BOLD_TEXT = 16;
object[16] = 'BOLD_TEXT';
object.GRAYSCALE = 32;
object[32] = 'GRAYSCALE';
object.INVERT_COLORS = 64;
object[64] = 'INVERT_COLORS';
object.PREFERS_COLOR_SCHEME_LIGHT = 128;
object[128] = 'PREFERS_COLOR_SCHEME_LIGHT';
object.PREFERS_COLOR_SCHEME_DARK = 256;
object[256] = 'PREFERS_COLOR_SCHEME_DARK';
object.CHAT_FONT_SCALE_INCREASED = 512;
object[512] = 'CHAT_FONT_SCALE_INCREASED';
object.CHAT_FONT_SCALE_DECREASED = 1024;
object[1024] = 'CHAT_FONT_SCALE_DECREASED';
object.ZOOM_LEVEL_INCREASED = 2048;
object[2048] = 'ZOOM_LEVEL_INCREASED';
object.ZOOM_LEVEL_DECREASED = 4096;
object[4096] = 'ZOOM_LEVEL_DECREASED';
object.MESSAGE_GROUP_SPACING_INCREASED = 8192;
object[8192] = 'MESSAGE_GROUP_SPACING_INCREASED';
object.MESSAGE_GROUP_SPACING_DECREASED = 16384;
object[16384] = 'MESSAGE_GROUP_SPACING_DECREASED';
object.DARK_SIDEBAR = 32768;
object[32768] = 'DARK_SIDEBAR';
object.REDUCED_MOTION_FROM_USER_SETTINGS = 65536;
object[65536] = 'REDUCED_MOTION_FROM_USER_SETTINGS';
object.SATURATION_LEVEL_DECREASED = 131072;
object[131072] = 'SATURATION_LEVEL_DECREASED';
object.FORCED_COLORS = 262144;
object[262144] = 'FORCED_COLORS';
object.FORCED_COLORS_FROM_USER_SETTINGS = 524288;
object[524288] = 'FORCED_COLORS_FROM_USER_SETTINGS';
object.ROLE_STYLE_ADJUSTED = 1048576;
object[1048576] = 'ROLE_STYLE_ADJUSTED';
object.SYNC_PROFILE_THEME_WITH_USER_THEME = 2097152;
object[2097152] = 'SYNC_PROFILE_THEME_WITH_USER_THEME';
object.CONTRAST_LEVEL_INCREASED = 8388608;
object[8388608] = 'CONTRAST_LEVEL_INCREASED';
object.CONTRAST_LEVEL_DECREASED = 16777216;
object[16777216] = 'CONTRAST_LEVEL_DECREASED';
object.UI_DENSITY_COMPACT = 33554432;
object[33554432] = 'UI_DENSITY_COMPACT';
object.UI_DENSITY_SPACIOUS = 67108864;
object[67108864] = 'UI_DENSITY_SPACIOUS';
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/AccessibilityConstants.tsx');
exports.AccessibilityFeatureFlags = object;
}
global.__d(_fun97999, 12845, [2]) /* metro module 12845, dependencies: [2] */;
File diff suppressed because it is too large. Load diff
@@ -1,17 +1,22 @@
/* Metro module 12997; source: modules/a11y/native/AccessibilityCallManager.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 1379, 3793, 1878, 477, 3829, 4805, 4002, 1244, 694, 4561, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SharedModule from '../../../design/shared.tsx'; /* Metro dependency 4002 */
function _fun99133(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:6, offset: 0x021bbcdc, size: 365 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const Set = global.Set;
const set = new Set();
const Map = global.Map;
@@ -19,178 +24,179 @@ function _fun99133(global, require, importDefault, importAll, module, exports, d
map = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
map = _fun99138(map);
map = new map();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilityCallManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilityCallManager.tsx');
exports.default = map;
}
function _isNativeReflectConstruct_99134() { // fn#99134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:188, offset: 0x021bbe49, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_99134() { // fn#99134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:188, offset: 0x021bbe49, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_99134_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_99134_isNativeReflectConstruct = function() {
return !!result;
})();
}
function announceIncomingCall(a0) { // fn#99137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:405, offset: 0x021bbeab, size: 292 bytes, params: 2, frame: 19
var moduleValue;
var NativePhoneIntegrationEnabled;
var channel;
var channelName;
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const binding = env0_12;
if (!binding.has(a0)) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isIOS()) {
NativePhoneIntegrationEnabled = (require(3829) /* metro dependency 3829: UserSettings */).NativePhoneIntegrationEnabled;
if (!NativePhoneIntegrationEnabled.getSetting()) {
function announceIncomingCall(a0) { // fn#99137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:405, offset: 0x021bbeab, size: 292 bytes, params: 2, frame: 19
var moduleValue;
var NativePhoneIntegrationEnabled;
var channel;
var moduleValue2;
var channelName;
const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const binding = env0_12;
if (!binding.has(a0)) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isIOS()) {
NativePhoneIntegrationEnabled = (require(3829) /* metro dependency 3829: UserSettings */).NativePhoneIntegrationEnabled;
if (!NativePhoneIntegrationEnabled.getSetting()) {
channel = ChannelStore.getChannel(a0);
if (channel != null) {
moduleValue2 = require(4805) /* metro dependency 4805: useChannelName */;
channelName = moduleValue2.computeChannelName(channel, UserStore, RelationshipStore);
if (channelName != null) {
env0_12.add(a0);
AccessibilityAnnouncer.announce(intl.formatToPlainString(t['Bm0A/p'],
{callLocation: channelName}),
'assertive');
}
}
}
} else {
channel = ChannelStore.getChannel(a0);
if (channel != null) {
channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel,
UserStore,
RelationshipStore);
moduleValue2 = require(4805) /* metro dependency 4805: useChannelName */;
channelName = moduleValue2.computeChannelName(channel, UserStore, RelationshipStore);
if (channelName != null) {
env0_12.add(a0);
AccessibilityAnnouncer.announce(intl.formatToPlainString(t['Bm0A/p'],
{callLocation: channelName}),
AccessibilityAnnouncer.announce(intl.formatToPlainString(t['Bm0A/p'], {callLocation: channelName}),
'assertive');
}
}
}
} else {
channel = ChannelStore.getChannel(a0);
if (channel != null) {
channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel,
UserStore,
RelationshipStore);
if (channelName != null) {
env0_12.add(a0);
AccessibilityAnnouncer.announce(intl.formatToPlainString(t['Bm0A/p'], {callLocation: channelName}),
'assertive');
}
}
function _fun99138(a0) { // fn#99138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:758, offset: 0x021bbfcf, size: 97 bytes, params: 2, frame: 16
const AccessibilityCallManager2 = AccessibilityCallManager;
Inherits(AccessibilityCallManager2, a0);
return CreateClass(AccessibilityCallManager2, [{key: '_initialize', value: value_99144}, {key: '_terminate',
value: value_99145}]);
function AccessibilityCallManager(a0) { // fn#99139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:770, offset: 0x021bc030, size: 180 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, AccessibilityCallManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(AccessibilityCallManager);
binding = env1_5;
if (_isNativeReflectConstruct_99134()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.handleCallCreate = handleCallCreate;
value.handleCallUpdate = handleCallUpdate;
value.handleCallDelete = handleCallDelete_99142;
value.handleConnectionOpen = handleConnectionOpen_99143;
return value;
function handleCallCreate({channelId, ongoingRings}) { // fn#99140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1047, owner: AccessibilityCallManager.handleCallCreate, offset: 0x021bc0e4, size: 77 bytes, params: 2, frame: 15
const id = AuthenticationStore.getId();
const r1 = id != null && id in ongoingRings;
env2_13.set(channelId, r1);
if (r1) {
announceIncomingCall(channelId);
}
}
function handleCallUpdate({channelId, ongoingRings}) { // fn#99141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1172, owner: AccessibilityCallManager.handleCallUpdate, offset: 0x021bc131, size: 129 bytes, params: 2, frame: 17
const id = AuthenticationStore.getId();
const value3 = env2_13.get(channelId);
let r1 = value3 != null && value3;
const r3 = id != null && id in ongoingRings;
env2_13.set(channelId, r3);
if (r1) {
r1 = r1 && !r3;
if (r1) {
env2_12.delete(channelId);
}
} else if (r3) {
announceIncomingCall(channelId);
} else {
r1 = r1 && !r3;
if (r1) {
env2_12.delete(channelId);
}
}
}
function AccessibilityCallManagerHandleCallDelete({channelId}) { // fn#99142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1345, owner: AccessibilityCallManager.handleCallDelete, offset: 0x021bc1b2, size: 43 bytes, params: 2, frame: 12
env2_13.delete(channelId);
env2_12.delete(channelId);
}
function AccessibilityCallManagerHandleConnectionOpen() { // fn#99143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1411, owner: AccessibilityCallManager.handleConnectionOpen, offset: 0x021bc1dd, size: 35 bytes, params: 1, frame: 10
env2_13.clear();
env2_12.clear();
}
}
}
}
function _fun99138(a0) { // fn#99138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:758, offset: 0x021bbfcf, size: 97 bytes, params: 2, frame: 16
const closure = AccessibilityCallManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_99144}, {key: '_terminate', value: value_99145}]);
}
function AccessibilityCallManager(a0) { // fn#99139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:770, offset: 0x021bc030, size: 180 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, AccessibilityCallManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(AccessibilityCallManager);
binding = env1_5;
if (_isNativeReflectConstruct_99134()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.handleCallCreate = handleCallCreate;
value.handleCallUpdate = handleCallUpdate;
value.handleCallDelete = handleCallDelete;
value.handleConnectionOpen = handleConnectionOpen_99143;
return value;
}
function value_99144() { // fn#99144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1529, offset: 0x021bc200, size: 145 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CALL_CREATE', this.handleCallCreate);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CALL_UPDATE', this.handleCallUpdate);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CALL_DELETE', this.handleCallDelete);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CONNECTION_OPEN', this.handleConnectionOpen);
}
function value_99145() { // fn#99145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1798, offset: 0x021bc291, size: 173 bytes, params: 1, frame: 19
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport.unsubscribe('CALL_CREATE', this.handleCallCreate);
const defaultImport2 = defaultImport;
defaultImport2.unsubscribe('CALL_UPDATE', this.handleCallUpdate);
const defaultImport3 = defaultImport;
defaultImport3.unsubscribe('CALL_DELETE', this.handleCallDelete);
const defaultImport4 = defaultImport;
defaultImport4.unsubscribe('CONNECTION_OPEN', this.handleConnectionOpen);
env1_13.clear();
env1_12.clear();
}
function AccessibilityCallManagerHandleCallCreate({channelId, ongoingRings}) { // fn#99140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1047, owner: AccessibilityCallManager.handleCallCreate, offset: 0x021bc0e4, size: 77 bytes, params: 2, frame: 15
const id = AuthenticationStore.getId();
const r1 = id != null && id in ongoingRings;
env2_13.set(channelId, r1);
if (r1) {
announceIncomingCall(channelId);
}
}
function AccessibilityCallManagerHandleCallUpdate({channelId, ongoingRings}) { // fn#99141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1172, owner: AccessibilityCallManager.handleCallUpdate, offset: 0x021bc131, size: 129 bytes, params: 2, frame: 17
const id = AuthenticationStore.getId();
const value3 = env2_13.get(channelId);
let r1 = value3 != null && value3;
const r3 = id != null && id in ongoingRings;
env2_13.set(channelId, r3);
if (r1) {
r1 = r1 && !r3;
if (r1) {
env2_12.delete(channelId);
function value_99144() { // fn#99144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1529, offset: 0x021bc200, size: 145 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CALL_CREATE', this.handleCallCreate);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CALL_UPDATE', this.handleCallUpdate);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CALL_DELETE', this.handleCallDelete);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('CONNECTION_OPEN', this.handleConnectionOpen);
}
} else if (r3) {
announceIncomingCall(channelId);
} else {
r1 = r1 && !r3;
if (r1) {
env2_12.delete(channelId);
function value_99145() { // fn#99145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1798, offset: 0x021bc291, size: 173 bytes, params: 1, frame: 19
const defaultImport = Dispatcher;
defaultImport.unsubscribe('CALL_CREATE', this.handleCallCreate);
const defaultImport2 = defaultImport;
defaultImport2.unsubscribe('CALL_UPDATE', this.handleCallUpdate);
const defaultImport3 = defaultImport;
defaultImport3.unsubscribe('CALL_DELETE', this.handleCallDelete);
const defaultImport4 = defaultImport;
defaultImport4.unsubscribe('CONNECTION_OPEN', this.handleConnectionOpen);
env1_13.clear();
env1_12.clear();
}
}
}
function AccessibilityCallManagerHandleCallDelete({channelId}) { // fn#99142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1345, owner: AccessibilityCallManager.handleCallDelete, offset: 0x021bc1b2, size: 43 bytes, params: 2, frame: 12
env2_13.delete(channelId);
env2_12.delete(channelId);
}
function AccessibilityCallManagerHandleConnectionOpen() { // fn#99143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13187:1411, owner: AccessibilityCallManager.handleConnectionOpen, offset: 0x021bc1dd, size: 35 bytes, params: 1, frame: 10
env2_13.clear();
env2_12.clear();
}
global.__d(_fun99133, 12997, [6, 7, 15, 17, 18, 1226, 1379, 3793, 1878, 477, 3829, 4805, 4002, 1244, 694, 4561,
2]) /* metro module 12997, dependencies: [6, 7, 15, 17, 18, 1226, 1379, 3793, 1878, 477, 3829, 4805, 4002, 1244, 694, 4561, 2] */;
@@ -1,4 +1,14 @@
/* Metro module 4558; source: modules/a11y/native/AccessibilityFocusLockManager.tsx; dependencies: [6, 7, 15, 17, 18, 27, 3, 4559, 477, 4560, 4561, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
function _fun38752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:6, offset: 0x010c96de, size: 308 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_38755 = function(a0, a1) {
@@ -46,342 +56,342 @@ function _fun38752(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = (require(27) /* metro dependency 27 */).NativeModules;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('AccessibilityFocusLockManager');
value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
value = _fun38759(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilityFocusLockManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilityFocusLockManager.tsx');
exports.default = value;
}
function _createForOfIteratorHelperLoose_38753(a0, a1) { // fn#38753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:175, offset: 0x010c9812, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_38753(a0, a1) { // fn#38753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:175, offset: 0x010c9812, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun38754;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_38755(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun38754;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_38755(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_38755(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_38755(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun38754;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun38754() { // fn#38754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:746, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function _isNativeReflectConstruct_38756() { // fn#38756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1085, offset: 0x010c9984, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_38756_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun38759(a0) { // fn#38759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1336, offset: 0x010c99e2, size: 164 bytes, params: 2, frame: 16
const AccessibilityFocusLockManager2 = AccessibilityFocusLockManager;
Inherits(AccessibilityFocusLockManager2, a0);
return CreateClass(AccessibilityFocusLockManager2, [{key: '_updateAccessibilityFocusLock', value: value_38761},
{key: '_initialize', value: value_38763}, {key: '_terminate', value: function() {
var property = this._screenReaderEnabledListener;
if (property != null) {
property.call(this);
}
this._focusLockedNativeIDGroups.clear();
this._updateAccessibilityFocusLock();
}}, {key: 'enableAccessibilityFocusLock', value: value_38766}, {key: 'disableAccessibilityFocusLock',
value: value_38767}]);
function AccessibilityFocusLockManager(a0) { // fn#38760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1348, offset: 0x010c9a86, size: 225 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, AccessibilityFocusLockManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(AccessibilityFocusLockManager);
binding = env1_5;
if (_isNativeReflectConstruct_38756()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value._screenReaderEnabled = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).getIsScreenReaderEnabled();
const Map = global.Map;
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map();
value._focusLockedNativeIDGroups = map instanceof Object ? map : value4;
value._focusLockEnabled = false;
value._focusLockEnabledDelayTimeoutId = -1;
value._focusLockEnabledDelayTimeout = 250;
return value;
}
function value_38761() { // fn#38761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1933, offset: 0x010c9b67, size: 279 bytes, params: 1, frame: 20
var environment;
var r3;
var r7;
var r6;
var value5;
var value6;
var _screenReaderEnabled;
var _focusLockEnabled;
var moduleValue;
var isAndroid;
var DCDAccessibilityManager;
var disableFocusLock;
var setTimeout;
var _focusLockEnabledDelayTimeout;
let value = a0;
const value2 = undefined;
reducibleJoin2: while (true) {
if (value !== value2) {
r3 = value;
break reducibleJoin2;
}
value = false;
r3 = value;
break reducibleJoin2;
}
var env0_1;
global.clearTimeout(this._focusLockEnabledDelayTimeoutId);
value = environment.__proto__;
const _createForOfIteratorHelperLoose_38753Binding = _createForOfIteratorHelperLoose_38753;
const _focusLockedNativeIDGroups = this._focusLockedNativeIDGroups;
const value3 = _createForOfIteratorHelperLoose_38753Binding(_focusLockedNativeIDGroups.values());
const value4 = value3();
let done = value4.done;
if (done) {
r6 = value2;
} else {
r7 = value4;
reducibleLoop3: while (true) {
value5 = r7.value;
env0_1 = value5;
value6 = value3();
done = value6.done;
if (done) {
r6 = value5;
break reducibleLoop3;
}
r7 = value6;
continue reducibleLoop3;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun38754;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function _isNativeReflectConstruct_38756() { // fn#38756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1085, offset: 0x010c9984, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_38756_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun38759(a0) { // fn#38759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1336, offset: 0x010c99e2, size: 164 bytes, params: 2, frame: 16
const closure = AccessibilityFocusLockManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_updateAccessibilityFocusLock', value: value_38761}, {key: '_initialize',
value: value_38763}, {key: '_terminate', value: function() {
var property = this._screenReaderEnabledListener;
if (property != null) {
property.call(this);
}
this._focusLockedNativeIDGroups.clear();
this._updateAccessibilityFocusLock();
}}, {key: 'enableAccessibilityFocusLock', value: value_38766}, {key: 'disableAccessibilityFocusLock',
value: value_38767}]);
}
function AccessibilityFocusLockManager(a0) { // fn#38760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1348, offset: 0x010c9a86, size: 225 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, AccessibilityFocusLockManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(AccessibilityFocusLockManager);
binding = env1_5;
if (_isNativeReflectConstruct_38756()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value._screenReaderEnabled = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).getIsScreenReaderEnabled();
const Map = global.Map;
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map();
value._focusLockedNativeIDGroups = map instanceof Object ? map : value4;
value._focusLockEnabled = false;
value._focusLockEnabledDelayTimeoutId = -1;
value._focusLockEnabledDelayTimeout = 250;
return value;
}
function value_38761() { // fn#38761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:1933, offset: 0x010c9b67, size: 279 bytes, params: 1, frame: 20
var environment;
var r3;
var r7;
var r6;
var value5;
var value6;
var _screenReaderEnabled;
var _focusLockEnabled;
var moduleValue;
var isAndroid;
var DCDAccessibilityManager;
var disableFocusLock;
var setTimeout;
var _focusLockEnabledDelayTimeout;
let value = a0;
const value2 = undefined;
reducibleJoin2: while (true) {
if (value !== value2) {
r3 = value;
break reducibleJoin2;
}
value = false;
r3 = value;
break reducibleJoin2;
}
var env0_1;
global.clearTimeout(this._focusLockEnabledDelayTimeoutId);
value = environment.__proto__;
const _createForOfIteratorHelperLoose_38753Binding = _createForOfIteratorHelperLoose_38753;
const _focusLockedNativeIDGroups = this._focusLockedNativeIDGroups;
const value3 = _createForOfIteratorHelperLoose_38753Binding(_focusLockedNativeIDGroups.values());
const value4 = value3();
let done = value4.done;
if (done) {
r6 = value2;
} else {
r7 = value4;
reducibleLoop3: while (true) {
value5 = r7.value;
env0_1 = value5;
value6 = value3();
done = value6.done;
if (done) {
r6 = value5;
break reducibleLoop3;
}
r7 = value6;
continue reducibleLoop3;
}
}
reducibleJoin12: while (true) {
reducibleJoin6: while (true) {
if (r6 == null) {
break reducibleJoin6;
}
_screenReaderEnabled = this._screenReaderEnabled;
if (_screenReaderEnabled) {
setTimeout = global.setTimeout;
_focusLockEnabledDelayTimeout = this._focusLockEnabledDelayTimeout;
this._focusLockEnabledDelayTimeoutId = setTimeout(_fun38762, _focusLockEnabledDelayTimeout);
this._focusLockEnabled = true;
reducibleJoin12: while (true) {
reducibleJoin6: while (true) {
if (r6 == null) {
break reducibleJoin6;
}
_screenReaderEnabled = this._screenReaderEnabled;
if (_screenReaderEnabled) {
setTimeout = global.setTimeout;
_focusLockEnabledDelayTimeout = this._focusLockEnabledDelayTimeout;
this._focusLockEnabledDelayTimeoutId = setTimeout(_fun38762, _focusLockEnabledDelayTimeout);
this._focusLockEnabled = true;
break reducibleJoin12;
}
break reducibleJoin6;
}
_focusLockEnabled = this._focusLockEnabled;
if (_focusLockEnabled) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
isAndroid = moduleValue.isAndroid;
if (Reflect.apply(isAndroid, moduleValue, [])) {
value = importDefault(4560) /* metro dependency 4560: NativeDeviceAccessibilityModule */;
disableFocusLock = value.disableFocusLock;
Reflect.apply(disableFocusLock, value, []);
} else {
DCDAccessibilityManager = NativeModules.DCDAccessibilityManager;
disableFocusLock = DCDAccessibilityManager.disableFocusLock;
Reflect.apply(disableFocusLock, DCDAccessibilityManager, []);
}
this._focusLockEnabled = false;
break reducibleJoin12;
}
break reducibleJoin12;
}
break reducibleJoin6;
}
_focusLockEnabled = this._focusLockEnabled;
if (_focusLockEnabled) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
isAndroid = moduleValue.isAndroid;
if (Reflect.apply(isAndroid, moduleValue, [])) {
value = importDefault(4560) /* metro dependency 4560: NativeDeviceAccessibilityModule */;
disableFocusLock = value.disableFocusLock;
Reflect.apply(disableFocusLock, value, []);
} else {
DCDAccessibilityManager = NativeModules.DCDAccessibilityManager;
disableFocusLock = DCDAccessibilityManager.disableFocusLock;
Reflect.apply(disableFocusLock, DCDAccessibilityManager, []);
return value2;
function _fun38762() { // fn#38762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2204, offset: 0x010c9c7e, size: 118 bytes, params: 1, frame: 15
var DCDAccessibilityManager;
var defaultImport;
if (PlatformUtilsModule.isAndroid()) {
defaultImport = importDefault(4560) /* metro dependency 4560: NativeDeviceAccessibilityModule */;
defaultImport.enableFocusLock(value, env0_0);
} else {
DCDAccessibilityManager = NativeModules.DCDAccessibilityManager;
DCDAccessibilityManager.enableFocusLock(value, env0_0);
}
}
this._focusLockEnabled = false;
break reducibleJoin12;
}
break reducibleJoin12;
}
return value2;
}
function value_38763() { // fn#38763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2543, offset: 0x010c9cf4, size: 58 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
this._screenReaderEnabledListener = value.addScreenReaderEnabledListener(_fun38764);
}
function value_38763() { // fn#38763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2543, offset: 0x010c9cf4, size: 58 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
this._screenReaderEnabledListener = value.addScreenReaderEnabledListener(_fun38764);
function _fun38764(a0) { // fn#38764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2629, offset: 0x010c9d2e, size: 30 bytes, params: 2, frame: 9
const binding = env0_0;
binding._screenReaderEnabled = a0;
binding._updateAccessibilityFocusLock();
}
function value_38766(a0) { // fn#38766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2923, offset: 0x010c9d83, size: 244 bytes, params: 2, frame: 26
var r6;
var r12;
var value;
var binding;
var value5;
var value6;
var value7;
var value8;
var includes;
var value9;
var value10;
if (a0.length === 0) {
value = environment.__proto__;
binding = env1_9;
binding.error('No target view nativeIDs to add.');
}
const value3 = _createForOfIteratorHelperLoose_38753(this._focusLockedNativeIDGroups.values());
const value4 = value3();
let done = value4.done;
if (!done) {
r6 = value4;
while (true) {
_createForOfIteratorHelperLoose_38753Binding = _createForOfIteratorHelperLoose_38753;
value5 = r6.value;
value6 = _createForOfIteratorHelperLoose_38753Binding(value5);
value7 = value6();
done = value7.done;
}
function value_38766(a0) { // fn#38766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2923, offset: 0x010c9d83, size: 244 bytes, params: 2, frame: 26
var r6;
var r12;
var value;
var binding;
var value5;
var value6;
var value7;
var value8;
var includes;
var value9;
var value10;
if (a0.length === 0) {
value = environment.__proto__;
binding = env1_9;
binding.error('No target view nativeIDs to add.');
}
const value3 = _createForOfIteratorHelperLoose_38753(this._focusLockedNativeIDGroups.values());
const value4 = value3();
let done = value4.done;
if (!done) {
r12 = value7;
r6 = value4;
while (true) {
value8 = r12.value;
includes = a0.includes;
if (Reflect.apply(includes, a0, [value8])) {
binding = env1_9;
binding.error('Duplicate target view nativeID ' + value8 + ' already accessibility focus locked.');
_createForOfIteratorHelperLoose_38753Binding = _createForOfIteratorHelperLoose_38753;
value5 = r6.value;
value6 = _createForOfIteratorHelperLoose_38753Binding(value5);
value7 = value6();
done = value7.done;
if (!done) {
r12 = value7;
while (true) {
value8 = r12.value;
includes = a0.includes;
if (Reflect.apply(includes, a0, [value8])) {
binding = env1_9;
binding.error('Duplicate target view nativeID ' + value8 + ' already accessibility focus locked.');
}
value9 = value6();
done = value9.done;
if (done) {
break;
}
r12 = value9;
continue;
}
}
value9 = value6();
done = value9.done;
value10 = value3();
done = value10.done;
if (done) {
break;
}
r12 = value9;
r6 = value10;
continue;
}
}
value10 = value3();
done = value10.done;
if (done) {
break;
}
r6 = value10;
continue;
this._focusLockedNativeIDGroups.set(a0[0], a0);
this._updateAccessibilityFocusLock(true);
}
function value_38767(a0) { // fn#38767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:3403, offset: 0x010c9e77, size: 149 bytes, params: 2, frame: 18
var value;
var binding;
if (a0.length === 0) {
value = environment.__proto__;
env1_9.error('No target view nativeIDs to remove.');
}
const _focusLockedNativeIDGroups = this._focusLockedNativeIDGroups;
if (!_focusLockedNativeIDGroups.has(a0[0])) {
value = environment.__proto__;
binding = env1_9;
binding.error('No target view nativeID ' + a0[0] + ' accessibility focus locked.');
}
this._focusLockedNativeIDGroups.delete(a0[0]);
this._updateAccessibilityFocusLock();
}
}
this._focusLockedNativeIDGroups.set(a0[0], a0);
this._updateAccessibilityFocusLock(true);
}
function value_38767(a0) { // fn#38767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:3403, offset: 0x010c9e77, size: 149 bytes, params: 2, frame: 18
var value;
var binding;
if (a0.length === 0) {
value = environment.__proto__;
env1_9.error('No target view nativeIDs to remove.');
}
const _focusLockedNativeIDGroups = this._focusLockedNativeIDGroups;
if (!_focusLockedNativeIDGroups.has(a0[0])) {
value = environment.__proto__;
binding = env1_9;
binding.error('No target view nativeID ' + a0[0] + ' accessibility focus locked.');
}
this._focusLockedNativeIDGroups.delete(a0[0]);
this._updateAccessibilityFocusLock();
}
function _fun38762() { // fn#38762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2204, offset: 0x010c9c7e, size: 118 bytes, params: 1, frame: 15
var DCDAccessibilityManager;
var defaultImport;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
defaultImport = importDefault(4560) /* metro dependency 4560: NativeDeviceAccessibilityModule */;
defaultImport.enableFocusLock(value, env0_0);
} else {
DCDAccessibilityManager = NativeModules.DCDAccessibilityManager;
DCDAccessibilityManager.enableFocusLock(value, env0_0);
}
}
function _fun38764(a0) { // fn#38764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4736:2629, offset: 0x010c9d2e, size: 30 bytes, params: 2, frame: 9
const binding = env0_0;
binding._screenReaderEnabled = a0;
binding._updateAccessibilityFocusLock();
}
global.__d(_fun38752, 4558, [6, 7, 15, 17, 18, 27, 3, 4559, 477, 4560, 4561,
2]) /* metro module 4558, dependencies: [6, 7, 15, 17, 18, 27, 3, 4559, 477, 4560, 4561, 2] */;
@@ -1,32 +1,36 @@
/* Metro module 8197; source: modules/a11y/native/AccessibilityLabelOptimizationExperiment.tsx; dependencies: [1854, 4559, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun65705(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8382:6, offset: 0x01bdac8f, size: 203 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-03-mobile-accessibility-label-optimization',
defaultConfig: {'enabled': false, 'shouldTrackExposure': false}, variations: {[1]: {'enabled': true,
'shouldTrackExposure': true}}});
const env0_3 = value.getConfig({location: 'default'});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilityLabelOptimizationExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilityLabelOptimizationExperiment.tsx');
exports.default = value;
exports.shouldSkipAccessibilityLabels = shouldSkipAccessibilityLabels;
function shouldSkipAccessibilityLabels() { // fn#65706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8382:484, offset: 0x01bdad5a, size: 90 bytes, params: 1, frame: 13
var r0;
var value;
if (env0_3.shouldTrackExposure) {
env0_2.getConfig({location: 'live'});
}
const enabled = env0_3.enabled;
if (enabled) {
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
value = !value.getIsScreenReaderEnabled();
r0 = value;
} else {
r0 = enabled;
}
return r0;
}
}
function shouldSkipAccessibilityLabels() { // fn#65706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8382:484, offset: 0x01bdad5a, size: 90 bytes, params: 1, frame: 13
var r0;
var value;
if (env0_3.shouldTrackExposure) {
env0_2.getConfig({location: 'live'});
}
const enabled = env0_3.enabled;
if (enabled) {
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
value = !value.getIsScreenReaderEnabled();
r0 = value;
} else {
r0 = enabled;
}
return r0;
}
global.__d(_fun65705, 8197, [1854, 4559, 2]) /* metro module 8197, dependencies: [1854, 4559, 2] */;
@@ -1,99 +1,109 @@
/* Metro module 12989; source: modules/a11y/native/AccessibilityManager.tsx; dependencies: [5, 27, 4502, 661, 1313, 12990, 694, 683, 12993, 11282, 12991, 3998, 4002, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import AccessibilityStore from '../AccessibilityStore.tsx'; /* Metro dependency 4502 */
import AccessibilitySystemFeatures from './AccessibilitySystemFeatures.tsx'; /* Metro dependency 12990 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ThemeConstantsModule from '../../user_settings/ThemeConstants.tsx'; /* Metro dependency 1313 */
import * as SharedModule from '../../../design/shared.tsx'; /* Metro dependency 4002 */
function _fun99052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:6, offset: 0x021ba13c, size: 289 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const value = require(27) /* metro dependency 27 */;
const value = ReactNativeModule;
const env0_4 = value.AccessibilityInfo;
const env0_5 = value.Appearance;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_8 = (require(1313) /* metro dependency 1313: ThemeConstants */).SystemTheme;
object2 = {init: init_99053, updateNativeColors: function() {
object = {init: init_99053, updateNativeColors: function() {
require(dependencyMap[8]).updateSaturation(AccessibilityStore.saturation);
}, updateMotionSettings: function() {
importDefault(dependencyMap[9])(require(dependencyMap[10]).accessibilityPreferencesSharedValue,
{reduceMotion: AccessibilityStore.useReducedMotion,
prefersCrossfades: AccessibilityStore.systemPrefersCrossfades});
var defaultImport = importDefault(dependencyMap[9]);
var accessibilityPreferencesSharedValue = require(dependencyMap[10]).accessibilityPreferencesSharedValue;
var accessibilityStoreBinding = AccessibilityStore;
defaultImport(accessibilityPreferencesSharedValue, {reduceMotion: accessibilityStoreBinding.useReducedMotion,
prefersCrossfades: accessibilityStoreBinding.systemPrefersCrossfades});
}, checkScreenreaderEnabled: checkScreenreaderEnabled, updateScreenReaderEnabled: function(a0) {
importDefault(dependencyMap[9])(require(dependencyMap[10]).accessibilityPreferencesSharedValue,
{screenReaderEnabled: a0});
}, updateSystemAppearance: updateSystemAppearance, startAnnouncementQueue: startAnnouncementQueue};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilityManager.tsx');
exports.default = object2;
}
function init_99053() { // fn#99053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:213, offset: 0x021ba25d, size: 232 bytes, params: 1, frame: 20
(importDefault(12990) /* metro dependency 12990: AccessibilitySystemFeatures */).init();
this.updateNativeColors();
this.updateMotionSettings();
AccessibilityStore.addChangeListener(this.updateNativeColors);
AccessibilityStore.addChangeListener(this.updateMotionSettings);
const defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport2.subscribe('CONNECTION_OPEN', this.updateMotionSettings);
Appearance.addChangeListener(this.updateSystemAppearance);
AccessibilityInfo.addEventListener('screenReaderChanged', _fun99054);
defaultImport2.subscribe('ACCESSIBILITY_COLORBLIND_TOGGLE', function() {
var defaultImport = importDefault(dependencyMap[7]);
var LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
defaultImport.track(LOCAL_SETTINGS_UPDATED, {colorblind_enabled: AccessibilityStore.colorblindMode});
});
this.startAnnouncementQueue();
}
function checkScreenreaderEnabled() { // fn#99058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:963, offset: 0x021ba424, size: 36 bytes, params: 1, frame: 11
return env0_3(_fun99060)();
}
function updateSystemAppearance({colorScheme}) { // fn#99062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1206, offset: 0x021ba4d3, size: 93 bytes, params: 2, frame: 12
const NO_PREFERENCE = SystemTheme.NO_PREFERENCE;
(require(3998) /* metro dependency 3998: ThemeActionCreators */).setSystemTheme(colorScheme === 'light' ? SystemTheme.LIGHT : colorScheme !== 'dark' ? NO_PREFERENCE : SystemTheme.DARK);
}
function startAnnouncementQueue() { // fn#99063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1352, offset: 0x021ba530, size: 70 bytes, params: 1, frame: 13
const Set = global.Set;
const set = new Set();
AccessibilityInfo.addEventListener('announcementFinished', _fun99064);
}
function _fun99054(a0) { // fn#99054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:535, offset: 0x021ba345, size: 25 bytes, params: 2, frame: 11
env0_0.updateScreenReaderEnabled(a0);
}
function* _fun99060() { // fn#99060, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1011, offset: 0x021ba453, size: 63 bytes, params: 1, frame: 12
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_4;
yield binding.isScreenReaderEnabled();
value = undefined;
if (false) {
return value;
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilityManager.tsx');
exports.default = object;
function init_99053() { // fn#99053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:213, offset: 0x021ba25d, size: 232 bytes, params: 1, frame: 20
(AccessibilitySystemFeatures).init();
this.updateNativeColors();
this.updateMotionSettings();
const accessibilityStoreBinding = AccessibilityStore;
accessibilityStoreBinding.addChangeListener(this.updateNativeColors);
accessibilityStoreBinding.addChangeListener(this.updateMotionSettings);
const defaultImport2 = Dispatcher;
defaultImport2.subscribe('CONNECTION_OPEN', this.updateMotionSettings);
Appearance.addChangeListener(this.updateSystemAppearance);
AccessibilityInfo.addEventListener('screenReaderChanged', _fun99054);
defaultImport2.subscribe('ACCESSIBILITY_COLORBLIND_TOGGLE', function() {
var defaultImport = importDefault(dependencyMap[7]);
var LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
defaultImport.track(LOCAL_SETTINGS_UPDATED, {colorblind_enabled: AccessibilityStore.colorblindMode});
});
this.startAnnouncementQueue();
function _fun99054(a0) { // fn#99054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:535, offset: 0x021ba345, size: 25 bytes, params: 2, frame: 11
env0_0.updateScreenReaderEnabled(a0);
}
require.updateScreenReaderEnabled(value);
}
}
function _fun99064(a0) { // fn#99064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1434, offset: 0x021ba576, size: 119 bytes, params: 2, frame: 15
var binding;
const env0_0 = a0;
if (a0.success) {
env0_0.delete(a0.announcement);
} else {
binding = env0_0;
if (binding.has(a0.announcement)) {
env0_0.delete(a0.announcement);
} else {
binding = env0_0;
binding.add(a0.announcement);
global.setTimeout(_fun99065, 150);
}
function checkScreenreaderEnabled() { // fn#99058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:963, offset: 0x021ba424, size: 36 bytes, params: 1, frame: 11
return Module00005(_fun99060)();
function* _fun99060() { // fn#99060, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1011, offset: 0x021ba453, size: 63 bytes, params: 1, frame: 12
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_4;
yield binding.isScreenReaderEnabled();
value = undefined;
if (false) {
return value;
}
require.updateScreenReaderEnabled(value);
}
}
}
function updateSystemAppearance({colorScheme}) { // fn#99062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1206, offset: 0x021ba4d3, size: 93 bytes, params: 2, frame: 12
const NO_PREFERENCE = SystemTheme.NO_PREFERENCE;
(require(3998) /* metro dependency 3998: ThemeActionCreators */).setSystemTheme(colorScheme === 'light' ? SystemTheme.LIGHT : colorScheme !== 'dark' ? NO_PREFERENCE : SystemTheme.DARK);
}
function startAnnouncementQueue() { // fn#99063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1352, offset: 0x021ba530, size: 70 bytes, params: 1, frame: 13
const Set = global.Set;
const set = new Set();
AccessibilityInfo.addEventListener('announcementFinished', _fun99064);
function _fun99064(a0) { // fn#99064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1434, offset: 0x021ba576, size: 119 bytes, params: 2, frame: 15
var binding;
const env0_0 = a0;
if (a0.success) {
env0_0.delete(a0.announcement);
} else {
binding = env0_0;
if (binding.has(a0.announcement)) {
env0_0.delete(a0.announcement);
} else {
binding = env0_0;
binding.add(a0.announcement);
global.setTimeout(_fun99065, 150);
}
}
function _fun99065() { // fn#99065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1531, offset: 0x021ba5ed, size: 57 bytes, params: 1, frame: 12
const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(env0_0.announcement);
}
}
}
}
function _fun99065() { // fn#99065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13179:1531, offset: 0x021ba5ed, size: 57 bytes, params: 1, frame: 12
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(env0_0.announcement);
}
global.__d(_fun99052, 12989, [5, 27, 4502, 661, 1313, 12990, 694, 683, 12993, 11282, 12991, 3998, 4002,
2]) /* metro module 12989, dependencies: [5, 27, 4502, 661, 1313, 12990, 694, 683, 12993, 11282, 12991, 3998, 4002, 2] */;
@@ -1,48 +1,57 @@
/* Metro module 13111; source: modules/a11y/native/AccessibilityPreferencesContextProvider.native.tsx; dependencies: [31, 4502, 33, 566, 3875, 2] */
import AccessibilityStore from '../AccessibilityStore.tsx'; /* Metro dependency 4502 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as AccessibilityPreferencesContextModule from '../../../external/discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx'; /* Metro dependency 3875 */
function _fun100188(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13301:6, offset: 0x021e0b92, size: 154 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilityPreferencesContextProvider.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilityPreferencesContextProvider.native.tsx');
exports.default = AccessibilityPreferencesContextProvider;
function AccessibilityPreferencesContextProvider({children}) { // fn#100189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13301:244, offset: 0x021e0c2c, size: 362 bytes, params: 2, frame: 25
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
let accessibilityStoreBinding = AccessibilityStore;
const value2 = Reflect.apply(useStateFromStoresObject, FluxModule, [[accessibilityStoreBinding], function() {
var accessibilityStoreBinding = AccessibilityStore;
return {enabled: accessibilityStoreBinding.useReducedMotion,
rawValue: accessibilityStoreBinding.rawPrefersReducedMotion};
}]);
const systemPrefersCrossfades = FluxModule.useStateFromStores([accessibilityStoreBinding], function() {
return AccessibilityStore.systemPrefersCrossfades;
});
const value3 = FluxModule.useStateFromStoresObject([accessibilityStoreBinding], function() {
var accessibilityStoreBinding = AccessibilityStore;
return {enabled: accessibilityStoreBinding.useForcedColors,
rawValue: accessibilityStoreBinding.systemForcedColors};
});
const value4 = value3.useMemo(_fun100196, [value2, systemPrefersCrossfades, value3,
FluxModule.useStateFromStores([accessibilityStoreBinding], function() {
return AccessibilityStore.alwaysShowLinkDecorations;
}), FluxModule.useStateFromStores([accessibilityStoreBinding], function() {
return AccessibilityStore.keyboardModeEnabled;
}), FluxModule.useStateFromStores([accessibilityStoreBinding], function() {
return AccessibilityStore.isSwitchIconsEnabled;
})]);
const AccessibilityPreferencesContext = (AccessibilityPreferencesContextModule).AccessibilityPreferencesContext;
const Provider = AccessibilityPreferencesContext.Provider;
return (
<Provider value={value4}>
{children}
</Provider>
);
function _fun100196() { // fn#100196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13301:801, offset: 0x021e0e14, size: 68 bytes, params: 1, frame: 3
return {reducedMotion: env0_0, prefersCrossfades: systemPrefersCrossfades, forcedColors: ReactModule,
alwaysShowLinkDecorations: alwaysShowLinkDecorations, highContrastModeEnabled: false,
keyboardModeEnabled: keyboardModeEnabled, switchIconsEnabled: isSwitchIconsEnabled};
}
}
}
function AccessibilityPreferencesContextProvider({children}) { // fn#100189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13301:244, offset: 0x021e0c2c, size: 362 bytes, params: 2, frame: 25
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AccessibilityStore],
function() {
return {enabled: AccessibilityStore.useReducedMotion, rawValue: AccessibilityStore.rawPrefersReducedMotion};
});
const systemPrefersCrossfades = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.systemPrefersCrossfades;
});
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AccessibilityStore],
function() {
return {enabled: AccessibilityStore.useForcedColors, rawValue: AccessibilityStore.systemForcedColors};
});
const value4 = value3.useMemo(_fun100196, [value2, systemPrefersCrossfades, value3,
(require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.alwaysShowLinkDecorations;
}), (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.keyboardModeEnabled;
}), (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.isSwitchIconsEnabled;
})]);
const AccessibilityPreferencesContext = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */).AccessibilityPreferencesContext;
const Provider = AccessibilityPreferencesContext.Provider;
return (
<Provider value={value4}>
{children}
</Provider>
);
}
function _fun100196() { // fn#100196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13301:801, offset: 0x021e0e14, size: 68 bytes, params: 1, frame: 3
return {reducedMotion: env0_0, prefersCrossfades: systemPrefersCrossfades, forcedColors: env0_2,
alwaysShowLinkDecorations: alwaysShowLinkDecorations, highContrastModeEnabled: false,
keyboardModeEnabled: keyboardModeEnabled, switchIconsEnabled: isSwitchIconsEnabled};
}
global.__d(_fun100188, 13111, [31, 4502, 33, 566, 3875,
2]) /* metro module 13111, dependencies: [31, 4502, 33, 566, 3875, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 12991; source: modules/a11y/native/AccessibilityPreferencesSharedValue.tsx; dependencies: [12845, 2, 12759] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AccessibilityConstantsModule from '../AccessibilityConstants.tsx'; /* Metro dependency 12845 */
function _fun99080(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13181:6, offset: 0x021bac27, size: 167 bytes, params: 8, frame: 18
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const AccessibilityFeatureFlags = (require(12845) /* metro dependency 12845: AccessibilityConstants */).AccessibilityFeatureFlags;
object2 = {};
const AccessibilityFeatureFlags = (AccessibilityConstantsModule).AccessibilityFeatureFlags;
object = {};
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
object2[REDUCED_MOTION] = 'reduceMotion';
object[REDUCED_MOTION] = 'reduceMotion';
const REDUCED_MOTION_PREFERS_CROSSFADES = AccessibilityFeatureFlags.REDUCED_MOTION_PREFERS_CROSSFADES;
object2[REDUCED_MOTION_PREFERS_CROSSFADES] = 'prefersCrossfades';
object[REDUCED_MOTION_PREFERS_CROSSFADES] = 'prefersCrossfades';
const SCREENREADER = AccessibilityFeatureFlags.SCREENREADER;
object2[SCREENREADER] = 'screenReaderEnabled';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilityPreferencesSharedValue.tsx');
exports.A11Y_FEATURE_MAP = object2;
object[SCREENREADER] = 'screenReaderEnabled';
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilityPreferencesSharedValue.tsx');
exports.A11Y_FEATURE_MAP = object;
exports.accessibilityPreferencesSharedValue = (require(12759) /* metro dependency 12759: native */).accessibilityPreferencesSharedValue;
}
global.__d(_fun99080, 12991, [12845, 2, 12759]) /* metro module 12991, dependencies: [12845, 2, 12759] */;
@@ -1,17 +1,18 @@
/* Metro module 12990; source: modules/a11y/native/AccessibilitySystemFeatures.tsx; dependencies: [27, 4502, 12845, 12991, 11282, 683, 12992, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import AccessibilityStore from '../AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as AccessibilityConstantsModule from '../AccessibilityConstants.tsx'; /* Metro dependency 12845 */
import * as AccessibilityActionCreatorsModule from '../AccessibilityActionCreators.tsx'; /* Metro dependency 12992 */
function _fun99066(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:6, offset: 0x021ba626, size: 318 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = require(27) /* metro dependency 27 */;
const env0_3 = value.AccessibilityInfo;
const env0_4 = value.Appearance;
const env0_5 = value.AppState;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const AccessibilityFeatureFlags = (require(12845) /* metro dependency 12845: AccessibilityConstants */).AccessibilityFeatureFlags;
const AccessibilityFeatureFlags = (AccessibilityConstantsModule).AccessibilityFeatureFlags;
const env0_8 = AccessibilityFeatureFlags.NONE;
object2 = {init: init_99068, getActiveFeatures: function() {
object = {init: init_99068, getActiveFeatures: function() {
return NONE;
}, handleReduceMotionChanged: handleReduceMotionChanged, handleReduceTransparencyChanged: function(a0) {
toggleFeature(AccessibilityFeatureFlags.REDUCED_TRANSPARENCY, a0);
@@ -23,114 +24,117 @@ function _fun99066(global, require, importDefault, importAll, module, exports, d
toggleFeature(AccessibilityFeatureFlags.INVERT_COLORS, a0);
}, handlePreferredColorSchemeChanged: handlePreferredColorSchemeChanged,
handleAccessibilityStoreChanged: handleAccessibilityStoreChanged, handleAppStateChange: handleAppStateChange};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/AccessibilitySystemFeatures.tsx');
exports.default = object2;
}
function toggleFeature(a0, a1) { // fn#99067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:211, offset: 0x021ba764, size: 129 bytes, params: 3, frame: 17
env0_8 = a1 ? NONE | a0 : NONE & ~a0;
const A11Y_FEATURE_MAP = (require(12991) /* metro dependency 12991: AccessibilityPreferencesSharedValue */).A11Y_FEATURE_MAP;
const property = A11Y_FEATURE_MAP[a0];
if (property != null) {
(importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */)((require(12991) /* metro dependency 12991: AccessibilityPreferencesSharedValue */).accessibilityPreferencesSharedValue,
{[property]: a1});
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/AccessibilitySystemFeatures.tsx');
exports.default = object;
function toggleFeature(a0, a1) { // fn#99067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:211, offset: 0x021ba764, size: 129 bytes, params: 3, frame: 17
env0_8 = a1 ? NONE | a0 : NONE & ~a0;
const A11Y_FEATURE_MAP = (require(12991) /* metro dependency 12991: AccessibilityPreferencesSharedValue */).A11Y_FEATURE_MAP;
const property = A11Y_FEATURE_MAP[a0];
if (property != null) {
(importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */)((require(12991) /* metro dependency 12991: AccessibilityPreferencesSharedValue */).accessibilityPreferencesSharedValue,
{[property]: a1});
}
}
}
function init_99068() { // fn#99068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:363, offset: 0x021ba7e5, size: 397 bytes, params: 1, frame: 15
AccessibilityStore.addChangeListener(this.handleAccessibilityStoreChanged);
AccessibilityInfo.addEventListener('reduceMotionChanged', this.handleReduceMotionChanged);
const isReduceMotionEnabled2 = AccessibilityInfo.isReduceMotionEnabled();
isReduceMotionEnabled2.then(this.handleReduceMotionChanged);
AccessibilityInfo.addEventListener('reduceTransparencyChanged', this.handleReduceTransparencyChanged);
const isReduceTransparencyEnabled2 = AccessibilityInfo.isReduceTransparencyEnabled();
isReduceTransparencyEnabled2.then(this.handleReduceTransparencyChanged);
AccessibilityInfo.addEventListener('boldTextChanged', this.handleBoldTextChanged);
const isBoldTextEnabled2 = AccessibilityInfo.isBoldTextEnabled();
isBoldTextEnabled2.then(this.handleBoldTextChanged);
AccessibilityInfo.addEventListener('grayscaleChanged', this.handleGrayscaleChanged);
const isGrayscaleEnabled2 = AccessibilityInfo.isGrayscaleEnabled();
isGrayscaleEnabled2.then(this.handleGrayscaleChanged);
AccessibilityInfo.addEventListener('invertColorsChanged', this.handleInvertColorsChanged);
const isInvertColorsEnabled2 = AccessibilityInfo.isInvertColorsEnabled();
isInvertColorsEnabled2.then(this.handleInvertColorsChanged);
const handlePreferredColorSchemeChanged = this.handlePreferredColorSchemeChanged;
const object2 = {};
object2.colorScheme = Appearance.getColorScheme();
Reflect.apply(handlePreferredColorSchemeChanged, this, [object2]);
Appearance.addChangeListener(this.handlePreferredColorSchemeChanged);
AppState.addEventListener('change', this.handleAppStateChange);
const value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const setSystemAccessibilityFeatures = value.setSystemAccessibilityFeatures;
const getActiveFeatures = this.getActiveFeatures;
Reflect.apply(setSystemAccessibilityFeatures, value, [getActiveFeatures]);
}
function handleReduceMotionChanged(a0) { // fn#99070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:1380, offset: 0x021ba972, size: 74 bytes, params: 2, frame: 14
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
toggleFeatureBinding(REDUCED_MOTION, a0);
const value = require(12992) /* metro dependency 12992: AccessibilityActionCreators */;
value.systemPrefersReducedMotionChanged(a0 ? 'reduce' : 'no-preference');
}
function handlePreferredColorSchemeChanged({colorScheme}) { // fn#99075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:1764, offset: 0x021baa34, size: 154 bytes, params: 2, frame: 14
var toggleFeatureBinding;
if (colorScheme === 'dark') {
toggleFeatureBinding = toggleFeature;
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_LIGHT, false);
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_DARK, true);
} else if (colorScheme === 'light') {
toggleFeatureBinding = toggleFeature;
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_DARK, false);
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_LIGHT, true);
} else {
toggleFeatureBinding = toggleFeature;
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_DARK, false);
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_LIGHT, false);
function init_99068() { // fn#99068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:363, offset: 0x021ba7e5, size: 397 bytes, params: 1, frame: 15
const accessibilityStoreBinding = AccessibilityStore;
accessibilityStoreBinding.addChangeListener(this.handleAccessibilityStoreChanged);
AccessibilityInfo.addEventListener('reduceMotionChanged', this.handleReduceMotionChanged);
const isReduceMotionEnabled2 = AccessibilityInfo.isReduceMotionEnabled();
isReduceMotionEnabled2.then(this.handleReduceMotionChanged);
AccessibilityInfo.addEventListener('reduceTransparencyChanged', this.handleReduceTransparencyChanged);
const isReduceTransparencyEnabled2 = AccessibilityInfo.isReduceTransparencyEnabled();
isReduceTransparencyEnabled2.then(this.handleReduceTransparencyChanged);
AccessibilityInfo.addEventListener('boldTextChanged', this.handleBoldTextChanged);
const isBoldTextEnabled2 = AccessibilityInfo.isBoldTextEnabled();
isBoldTextEnabled2.then(this.handleBoldTextChanged);
AccessibilityInfo.addEventListener('grayscaleChanged', this.handleGrayscaleChanged);
const isGrayscaleEnabled2 = AccessibilityInfo.isGrayscaleEnabled();
isGrayscaleEnabled2.then(this.handleGrayscaleChanged);
AccessibilityInfo.addEventListener('invertColorsChanged', this.handleInvertColorsChanged);
const isInvertColorsEnabled2 = AccessibilityInfo.isInvertColorsEnabled();
isInvertColorsEnabled2.then(this.handleInvertColorsChanged);
const handlePreferredColorSchemeChanged = this.handlePreferredColorSchemeChanged;
const object = {};
object.colorScheme = Appearance.getColorScheme();
Reflect.apply(handlePreferredColorSchemeChanged, this, [object]);
Appearance.addChangeListener(this.handlePreferredColorSchemeChanged);
AppState.addEventListener('change', this.handleAppStateChange);
const setSystemAccessibilityFeatures = AnalyticsUtils.setSystemAccessibilityFeatures;
const getActiveFeatures = this.getActiveFeatures;
Reflect.apply(setSystemAccessibilityFeatures, AnalyticsUtils, [getActiveFeatures]);
}
}
function handleAccessibilityStoreChanged() { // fn#99076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2124, offset: 0x021baace, size: 132 bytes, params: 1, frame: 16
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
const useReducedMotion = AccessibilityStore.useReducedMotion;
toggleFeatureBinding(REDUCED_MOTION, useReducedMotion);
const REDUCED_MOTION_FROM_USER_SETTINGS = AccessibilityFeatureFlags.REDUCED_MOTION_FROM_USER_SETTINGS;
toggleFeatureBinding(REDUCED_MOTION_FROM_USER_SETTINGS, AccessibilityStore.rawPrefersReducedMotion !== 'auto');
const SATURATION_LEVEL_DECREASED = AccessibilityFeatureFlags.SATURATION_LEVEL_DECREASED;
toggleFeatureBinding(SATURATION_LEVEL_DECREASED, AccessibilityStore.saturation < 1);
const CONTRAST_LEVEL_DECREASED = AccessibilityFeatureFlags.CONTRAST_LEVEL_DECREASED;
toggleFeatureBinding(CONTRAST_LEVEL_DECREASED, AccessibilityStore.contrast < 1);
const CONTRAST_LEVEL_INCREASED = AccessibilityFeatureFlags.CONTRAST_LEVEL_INCREASED;
toggleFeatureBinding(CONTRAST_LEVEL_INCREASED, AccessibilityStore.contrast > 1);
}
function handleAppStateChange(a0) { // fn#99077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2465, offset: 0x021bab52, size: 78 bytes, params: 2, frame: 13
var value;
if (a0 === 'active') {
value = AccessibilityInfo.isReduceMotionEnabled();
value.then(_fun99078);
value = AccessibilityInfo.prefersCrossFadeTransitions();
value.then(_fun99079);
function handleReduceMotionChanged(a0) { // fn#99070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:1380, offset: 0x021ba972, size: 74 bytes, params: 2, frame: 14
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
toggleFeatureBinding(REDUCED_MOTION, a0);
AccessibilityActionCreatorsModule.systemPrefersReducedMotionChanged(a0 ? 'reduce' : 'no-preference');
}
function handlePreferredColorSchemeChanged({colorScheme}) { // fn#99075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:1764, offset: 0x021baa34, size: 154 bytes, params: 2, frame: 14
var toggleFeatureBinding;
if (colorScheme === 'dark') {
toggleFeatureBinding = toggleFeature;
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_LIGHT, false);
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_DARK, true);
} else if (colorScheme === 'light') {
toggleFeatureBinding = toggleFeature;
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_DARK, false);
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_LIGHT, true);
} else {
toggleFeatureBinding = toggleFeature;
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_DARK, false);
toggleFeatureBinding(AccessibilityFeatureFlags.PREFERS_COLOR_SCHEME_LIGHT, false);
}
}
function handleAccessibilityStoreChanged() { // fn#99076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2124, offset: 0x021baace, size: 132 bytes, params: 1, frame: 16
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
const accessibilityStoreBinding = AccessibilityStore;
const useReducedMotion = accessibilityStoreBinding.useReducedMotion;
toggleFeatureBinding(REDUCED_MOTION, useReducedMotion);
const REDUCED_MOTION_FROM_USER_SETTINGS = AccessibilityFeatureFlags.REDUCED_MOTION_FROM_USER_SETTINGS;
toggleFeatureBinding(REDUCED_MOTION_FROM_USER_SETTINGS,
accessibilityStoreBinding.rawPrefersReducedMotion !== 'auto');
const SATURATION_LEVEL_DECREASED = AccessibilityFeatureFlags.SATURATION_LEVEL_DECREASED;
toggleFeatureBinding(SATURATION_LEVEL_DECREASED, accessibilityStoreBinding.saturation < 1);
const CONTRAST_LEVEL_DECREASED = AccessibilityFeatureFlags.CONTRAST_LEVEL_DECREASED;
toggleFeatureBinding(CONTRAST_LEVEL_DECREASED, accessibilityStoreBinding.contrast < 1);
const CONTRAST_LEVEL_INCREASED = AccessibilityFeatureFlags.CONTRAST_LEVEL_INCREASED;
toggleFeatureBinding(CONTRAST_LEVEL_INCREASED, accessibilityStoreBinding.contrast > 1);
}
function handleAppStateChange(a0) { // fn#99077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2465, offset: 0x021bab52, size: 78 bytes, params: 2, frame: 13
var value;
if (a0 === 'active') {
value = AccessibilityInfo.isReduceMotionEnabled();
value.then(_fun99078);
value = AccessibilityInfo.prefersCrossFadeTransitions();
value.then(_fun99079);
}
function _fun99078(a0) { // fn#99078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2536, offset: 0x021baba0, size: 74 bytes, params: 2, frame: 14
let value = environment.__proto__;
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
toggleFeatureBinding(REDUCED_MOTION, a0);
value = require(12992) /* metro dependency 12992: AccessibilityActionCreators */;
value.systemPrefersReducedMotionChanged(a0 ? 'reduce' : 'no-preference');
}
function _fun99079(a0) { // fn#99079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2685, offset: 0x021babea, size: 61 bytes, params: 2, frame: 14
const value = environment.__proto__;
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION_PREFERS_CROSSFADES = AccessibilityFeatureFlags.REDUCED_MOTION_PREFERS_CROSSFADES;
toggleFeatureBinding(REDUCED_MOTION_PREFERS_CROSSFADES, a0);
(AccessibilityActionCreatorsModule).systemPrefersCrossfadesChanged(a0);
}
}
}
function _fun99078(a0) { // fn#99078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2536, offset: 0x021baba0, size: 74 bytes, params: 2, frame: 14
let value = environment.__proto__;
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
toggleFeatureBinding(REDUCED_MOTION, a0);
value = require(12992) /* metro dependency 12992: AccessibilityActionCreators */;
value.systemPrefersReducedMotionChanged(a0 ? 'reduce' : 'no-preference');
}
function _fun99079(a0) { // fn#99079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13180:2685, offset: 0x021babea, size: 61 bytes, params: 2, frame: 14
const value = environment.__proto__;
const toggleFeatureBinding = toggleFeature;
const REDUCED_MOTION_PREFERS_CROSSFADES = AccessibilityFeatureFlags.REDUCED_MOTION_PREFERS_CROSSFADES;
toggleFeatureBinding(REDUCED_MOTION_PREFERS_CROSSFADES, a0);
(require(12992) /* metro dependency 12992: AccessibilityActionCreators */).systemPrefersCrossfadesChanged(a0);
}
global.__d(_fun99066, 12990, [27, 4502, 12845, 12991, 11282, 683, 12992,
2]) /* metro module 12990, dependencies: [27, 4502, 12845, 12991, 11282, 683, 12992, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 11953; source: modules/a11y/native/PortalAccessibilityWorkaroundView.tsx; dependencies: [31, 27, 33, 4020, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 */
function _fun91728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12139:6, offset: 0x0206fe53, size: 152 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/PortalAccessibilityWorkaroundView.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/PortalAccessibilityWorkaroundView.tsx');
exports.default = PortalAccessibilityWorkaroundView;
function PortalAccessibilityWorkaroundView(a0) { // fn#91729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12139:234, offset: 0x0206feeb, size: 103 bytes, params: 2, frame: 15
const viewBindingProps = {...((require(4020) /* metro dependency 4020: FabricUtils */).isIosFabric() ? {'accessibilityLabel': ' ',
'accessible': false} : null)};
viewBindingProps['collapsable'] = false;
return <View {...viewBindingProps} />;
}
}
function PortalAccessibilityWorkaroundView(a0) { // fn#91729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12139:234, offset: 0x0206feeb, size: 103 bytes, params: 2, frame: 15
const viewBindingProps = {...((require(4020) /* metro dependency 4020: FabricUtils */).isIosFabric() ? {'accessibilityLabel': ' ',
'accessible': false} : null)};
viewBindingProps['collapsable'] = false;
return <View {...viewBindingProps} />;
}
global.__d(_fun91728, 11953, [31, 27, 33, 4020, 2]) /* metro module 11953, dependencies: [31, 27, 33, 4020, 2] */;
@@ -1,56 +1,66 @@
/* Metro module 6766; source: modules/a11y/native/TextWithIOSLinkWorkaround.tsx; dependencies: [31, 27, 33, 4501, 6767, 4559, 4573, 477, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as UseIsScreenReaderEnabledNativeModule from './useIsScreenReaderEnabled.native.tsx'; /* Metro dependency 4559 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as MigrationModule from '../../../intl/native/migration.tsx'; /* Metro dependency 6767 */
function _fun53296(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:6, offset: 0x013448cb, size: 219 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({column: {'flexDirection': 'column',
const env0_6 = (CreateStylesModule).createStyles({column: {'flexDirection': 'column',
'flexShrink': 1}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/TextWithIOSLinkWorkaround.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/TextWithIOSLinkWorkaround.tsx');
exports.TextWithIOSLinkWorkaround = TextWithIOSLinkWorkaround;
}
function findLinks(a0) { // fn#53297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:219, offset: 0x013449a6, size: 67 bytes, params: 2, frame: 12
const Children = env0_2.Children;
const value2 = Children.toArray(a0);
return value2.filter(env0_2.isValidElement).flatMap(_fun53298);
}
function TextWithIOSLinkWorkaround(a0) { // fn#53299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:606, offset: 0x01344a5c, size: 202 bytes, params: 2, frame: 21
const children = a0.children;
let value = Object.create(null);
value.children = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const value4 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = <Text {...value2}>{children}</Text>;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isIOS()) {
if (value4) {
return (
<View style={styles.column}>
{value}
{findLinks(children)}
</View>
);
function findLinks(a0) { // fn#53297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:219, offset: 0x013449a6, size: 67 bytes, params: 2, frame: 12
const Children = ReactModule.Children;
const value2 = Children.toArray(a0);
return value2.filter(ReactModule.isValidElement).flatMap(_fun53298);
function _fun53298(a0) { // fn#53298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:304, offset: 0x013449e9, size: 115 bytes, params: 2, frame: 14
const type = a0.type;
const value = environment.__proto__;
const I18nLinkComponent = (MigrationModule).I18nLinkComponent;
if (type === I18nLinkComponent || a0.props.accessibilityRole === 'link') {
return [a0];
}
const props = a0.props;
return props.children != null ? findLinks(props.children) : [];
}
}
return value;
}
function _fun53298(a0) { // fn#53298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:304, offset: 0x013449e9, size: 115 bytes, params: 2, frame: 14
const type = a0.type;
const value = environment.__proto__;
const I18nLinkComponent = (require(6767) /* metro dependency 6767: migration */).I18nLinkComponent;
if (type === I18nLinkComponent || a0.props.accessibilityRole === 'link') {
return [a0];
function TextWithIOSLinkWorkaround(a0) { // fn#53299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:606, offset: 0x01344a5c, size: 202 bytes, params: 2, frame: 21
const children = a0.children;
let value = Object.create(null);
value.children = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const value4 = (UseIsScreenReaderEnabledNativeModule).useIsScreenReaderEnabled();
const Text = (TextModule).Text;
value = (
<Text {...value2}>
{children}
</Text>
);
if (PlatformUtilsModule.isIOS()) {
if (value4) {
return (
<View style={styles.column}>
{value}
{findLinks(children)}
</View>
);
}
}
return value;
}
const props = a0.props;
return props.children != null ? findLinks(props.children) : [];
}
global.__d(_fun53296, 6766, [31, 27, 33, 4501, 6767, 4559, 4573, 477,
2]) /* metro module 6766, dependencies: [31, 27, 33, 4501, 6767, 4559, 4573, 477, 2] */;
@@ -1,10 +1,12 @@
/* Metro module 4499; source: modules/a11y/native/markAccessibilityFocus.tsx; dependencies: [27, 477, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun38387(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4677:6, offset: 0x010be7f7, size: 115 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).NativeModules;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/markAccessibilityFocus.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/markAccessibilityFocus.tsx');
exports.default = function() {
if (require(dependencyMap[1]).isIOS()) {
NativeModules.DCDAccessibilityManager.markCurrentFocus();
@@ -12,3 +14,4 @@ function _fun38387(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun38387, 4499, [27, 477, 2]) /* metro module 4499, dependencies: [27, 477, 2] */;
@@ -1,41 +1,45 @@
/* Metro module 4570; source: modules/a11y/native/setAccessibilityFocus.android.tsx; dependencies: [27, 3, 4560, 4020, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun38809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:6, offset: 0x010cb12a, size: 172 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_3 = value.AccessibilityInfo;
const env0_4 = value.findNodeHandle;
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('setAccessibilityFocus');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/setAccessibilityFocus.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/setAccessibilityFocus.android.tsx');
exports.setAccessibilityFocus = setAccessibilityFocus_38810;
}
function setAccessibilityFocus_38810({ref, delay}) { // fn#38810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:298, offset: 0x010cb1d6, size: 80 bytes, params: 2, frame: 15
delay = delay === undefined ? 0 : delay;
if (ref != null) {
if (findNodeHandle(ref.current) != null) {
global.setTimeout(_fun38811, delay);
function setAccessibilityFocus_38810({ref, delay}) { // fn#38810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:298, offset: 0x010cb1d6, size: 80 bytes, params: 2, frame: 15
delay = delay === undefined ? 0 : delay;
if (ref != null) {
if (findNodeHandle(ref.current) != null) {
global.setTimeout(_fun38811, delay);
}
}
function _fun38811() { // fn#38811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:400, offset: 0x010cb226, size: 117 bytes, params: 1, frame: 15
var environment;
var binding;
let value = environment.__proto__;
if ((require(4020) /* metro dependency 4020: FabricUtils */).isFabric()) {
AccessibilityInfo.setAccessibilityFocus(env0_0);
} else {
binding = env0_0;
value = importDefault(4560) /* metro dependency 4560: NativeDeviceAccessibilityModule */;
value = value.setAccessibilityFocus(binding);
value.catch(_fun38812);
}
function _fun38812(a0) { // fn#38812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:542, offset: 0x010cb29b, size: 29 bytes, params: 2, frame: 13
return env2_5.warn('Failed with reason:', a0);
}
}
}
}
function _fun38811() { // fn#38811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:400, offset: 0x010cb226, size: 117 bytes, params: 1, frame: 15
var environment;
var binding;
let value = environment.__proto__;
if ((require(4020) /* metro dependency 4020: FabricUtils */).isFabric()) {
AccessibilityInfo.setAccessibilityFocus(env0_0);
} else {
binding = env0_0;
value = importDefault(4560) /* metro dependency 4560: NativeDeviceAccessibilityModule */;
value = value.setAccessibilityFocus(binding);
value.catch(_fun38812);
}
}
function _fun38812(a0) { // fn#38812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4748:542, offset: 0x010cb29b, size: 29 bytes, params: 2, frame: 13
return env2_5.warn('Failed with reason:', a0);
}
global.__d(_fun38809, 4570, [27, 3, 4560, 4020, 2]) /* metro module 4570, dependencies: [27, 3, 4560, 4020, 2] */;
@@ -1,10 +1,12 @@
/* Metro module 4498; source: modules/a11y/native/setAccessibilityFocusPrevious.tsx; dependencies: [27, 477, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun38385(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4676:6, offset: 0x010be746, size: 115 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).NativeModules;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/setAccessibilityFocusPrevious.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/setAccessibilityFocusPrevious.tsx');
exports.default = function() {
if (require(dependencyMap[1]).isIOS()) {
NativeModules.DCDAccessibilityManager.restorePreviousFocus();
@@ -12,3 +14,4 @@ function _fun38385(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun38385, 4498, [27, 477, 2]) /* metro module 4498, dependencies: [27, 477, 2] */;
@@ -1,33 +1,39 @@
/* Metro module 9104; source: modules/a11y/native/useAccessibilityPress.tsx; dependencies: [31, 2] */
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 */
function _fun71221(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:6, offset: 0x01d19963, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/useAccessibilityPress.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/useAccessibilityPress.tsx');
exports.default = useAccessibilityPress;
}
function useAccessibilityPress(a0, a1) { // fn#71222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:195, offset: 0x01d199cd, size: 91 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_0;
const env0_2 = binding.useRef(a0);
binding.useEffect(_fun71223, [a0]);
return binding.useMemo(function() {
return {onAccessibilityAction: _fun71225, accessibilityActions: [{name: 'activate', label: require}]};
}, [a1]);
function _fun71223() { // fn#71223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:269, offset: 0x010cb3d0, size: 21 bytes, params: 1, frame: 2
env0_2.current = env0_0;
}
function useAccessibilityPress(a0, a1) { // fn#71222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:195, offset: 0x01d199cd, size: 91 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_0;
const env0_2 = binding.useRef(a0);
binding.useEffect(_fun71223, [a0]);
return binding.useMemo(function() {
return {onAccessibilityAction: _fun71225, accessibilityActions: [{name: 'activate', label: require}]};
}, [a1]);
}
function _fun71224() { // fn#71224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:304, offset: 0x01d19a28, size: 52 bytes, params: 1, frame: 3
return {onAccessibilityAction: onAccessibilityAction, accessibilityActions: [{name: 'activate', label: require}]};
function onAccessibilityAction({nativeEvent}) { // fn#71225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:332, offset: 0x01d19a5c, size: 43 bytes, params: 2, frame: 9
var value;
if (nativeEvent.actionName === 'activate') {
value = environment.__proto__;
env1_2.current();
}
}
function _fun71224() { // fn#71224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:304, offset: 0x01d19a28, size: 52 bytes, params: 1, frame: 3
return {onAccessibilityAction: onAccessibilityAction_71225, accessibilityActions: [{name: 'activate',
label: require}]};
}
}
function onAccessibilityAction_71225({nativeEvent}) { // fn#71225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9289:332, offset: 0x01d19a5c, size: 43 bytes, params: 2, frame: 9
var value;
if (nativeEvent.actionName === 'activate') {
value = environment.__proto__;
env1_2.current();
}
}
global.__d(_fun71221, 9104, [31, 2]) /* metro module 9104, dependencies: [31, 2] */;
@@ -1,88 +1,92 @@
/* Metro module 9895; source: modules/a11y/native/useAnnounceAsyncCompletion.native.tsx; dependencies: [31, 27, 4002, 477, 4559, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as SharedModule from '../../../design/shared.tsx'; /* Metro dependency 4002 */
function _fun77553(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:6, offset: 0x01e0119e, size: 136 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).AccessibilityInfo;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/useAnnounceAsyncCompletion.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/useAnnounceAsyncCompletion.native.tsx');
exports.default = useAnnounceAsyncCompletion;
}
function useAnnounceAsyncCompletion() { // fn#77554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:235, offset: 0x01e01226, size: 71 bytes, params: 1, frame: 14
const binding = env0_2;
const env0_0 = binding.useRef(null);
binding.useEffect(function() {
return _fun77556;
}, []);
return binding.useCallback(_fun77557, []);
}
function _fun77555() { // fn#77555, offset: 0x01e0126d, size: 11 bytes, params: 1, frame: 1
return _fun77556;
}
function _fun77557(a0) { // fn#77557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:388, offset: 0x01e012a5, size: 210 bytes, params: 2, frame: 18
var environment;
var r0;
let value = a1;
const env0_0 = a0;
const r7 = value !== undefined ? value : 'assertive';
value = environment.__proto__;
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(a0, r7);
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isIOS()) {
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
if (value.getIsScreenReaderEnabled()) {
if (env0_0.current != null) {
env0_0.current();
function useAnnounceAsyncCompletion() { // fn#77554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:235, offset: 0x01e01226, size: 71 bytes, params: 1, frame: 14
const env0_0 = ReactModule.useRef(null);
ReactModule.useEffect(function() {
return _fun77556;
}, []);
return ReactModule.useCallback(_fun77557, []);
function _fun77555() { // fn#77555, offset: 0x01e0126d, size: 11 bytes, params: 1, frame: 1
return _fun77556;
function _fun77556() { // fn#77556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:318, offset: 0x01e01278, size: 45 bytes, params: 1, frame: 11
if (env1_0.current != null) {
env1_0.current();
}
env1_0.current = null;
}
r0 = new global.Promise(_fun77558);
} else {
r0 = global.Promise.resolve();
}
} else {
r0 = global.Promise.resolve();
}
return r0;
}
function _fun77556() { // fn#77556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:318, offset: 0x01e01278, size: 45 bytes, params: 1, frame: 11
if (env1_0.current != null) {
env1_0.current();
}
env1_0.current = null;
}
function _fun77557(a0) { // fn#77557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:388, offset: 0x01e012a5, size: 210 bytes, params: 2, frame: 18
var environment;
var r0;
let value = a1;
const env0_0 = a0;
const r7 = value !== undefined ? value : 'assertive';
value = environment.__proto__;
const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(a0, r7);
if (PlatformUtilsModule.isIOS()) {
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
if (value.getIsScreenReaderEnabled()) {
if (env0_0.current != null) {
env0_0.current();
}
r0 = new global.Promise(_fun77558);
} else {
r0 = global.Promise.resolve();
}
} else {
r0 = global.Promise.resolve();
}
return r0;
function _fun77558(a0) { // fn#77558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:548, offset: 0x01e01377, size: 100 bytes, params: 2, frame: 15
const env0_0 = a0;
const env0_1 = global.setTimeout(_fun77559, 1800);
const env0_2 = AccessibilityInfo.addEventListener('announcementFinished', _fun77560);
env1_0.current = current_77561;
function _fun77559() { // fn#77559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:570, offset: 0x01e013db, size: 38 bytes, params: 1, frame: 10
const value = environment.__proto__.__proto__;
return env2_0.current?.();
}
function _fun77558(a0) { // fn#77558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:548, offset: 0x01e01377, size: 100 bytes, params: 2, frame: 15
const env0_0 = a0;
const env0_1 = global.setTimeout(_fun77559, 1800);
const env0_2 = AccessibilityInfo.addEventListener('announcementFinished', _fun77560);
env1_0.current = current_77561;
}
function _fun77560(a0) { // fn#77560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:661, offset: 0x01e01401, size: 67 bytes, params: 2, frame: 10
const announcement = a0.announcement;
let value = environment.__proto__;
value = announcement === env1_0;
if (value && a0.success) {
value = environment.__proto__.__proto__;
if (env2_0.current != null) {
env2_0.current();
}
}
}
function _fun77559() { // fn#77559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:570, offset: 0x01e013db, size: 38 bytes, params: 1, frame: 10
const value = environment.__proto__.__proto__;
return env2_0.current?.();
}
function current_77561() { // fn#77561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:740, offset: 0x01e01444, size: 61 bytes, params: 1, frame: 12
global.clearTimeout(env0_1);
env0_2.remove();
env2_0.current = null;
env0_0();
}
}
function _fun77560(a0) { // fn#77560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:661, offset: 0x01e01401, size: 67 bytes, params: 2, frame: 10
const announcement = a0.announcement;
let value = environment.__proto__;
value = announcement === env1_0;
if (value && a0.success) {
value = environment.__proto__.__proto__;
if (env2_0.current != null) {
env2_0.current();
}
}
}
function current_77561() { // fn#77561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10081:740, offset: 0x01e01444, size: 61 bytes, params: 1, frame: 12
global.clearTimeout(env0_1);
env0_2.remove();
env2_0.current = null;
env0_0();
}
global.__d(_fun77553, 9895, [31, 27, 4002, 477, 4559,
2]) /* metro module 9895, dependencies: [31, 27, 4002, 477, 4559, 2] */;
@@ -1,73 +1,79 @@
/* Metro module 4559; source: modules/a11y/native/useIsScreenReaderEnabled.native.tsx; dependencies: [27, 587, 629, 690, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as StorageModule from '../../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as Module00629Module from '../../../by-id/module-00629.js'; /* Metro dependency 629 */
import * as ReactBatchUpdatesNativeModule from '../../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
function _fun38768(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:6, offset: 0x010c9f0c, size: 177 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).AccessibilityInfo;
const SCREEN_READER_ENABLED_GETTER = function(a0) {
return a0.screenReaderEnabled;
};
const env0_4 = (require(629) /* metro dependency 629 */).create(_fun38770);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/useIsScreenReaderEnabled.native.tsx');
const env0_4 = (Module00629Module).create(_fun38770);
(FileImportTrackerModule).fileFinishedImporting('modules/a11y/native/useIsScreenReaderEnabled.native.tsx');
exports.addScreenReaderEnabledListener = addScreenReaderEnabledListener;
exports.getIsScreenReaderEnabled = getIsScreenReaderEnabled;
exports.useIsScreenReaderEnabled = useIsScreenReaderEnabled;
}
function _fun38770(a0) { // fn#38770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:224, offset: 0x010c9fc8, size: 142 bytes, params: 2, frame: 15
const env0_0 = a0;
const updateScreenReaderEnabled2 = updateScreenReaderEnabled;
AccessibilityInfo.isScreenReaderEnabled().then(updateScreenReaderEnabled2).catch(function() {
updateScreenReaderEnabled(false);
});
AccessibilityInfo.addEventListener('screenReaderChanged', updateScreenReaderEnabled2);
const Storage = (StorageModule).Storage;
const value = Storage.get('screenReaderEnabled');
return {screenReaderEnabled: value != null && value};
function updateScreenReaderEnabled(a0) { // fn#38771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:260, offset: 0x010ca056, size: 52 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const value = environment.__proto__;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun38772);
function _fun38772() { // fn#38772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:286, offset: 0x010ca08a, size: 23 bytes, params: 1, frame: 11
return env1_0(_fun38773);
function _fun38773(a0) { // fn#38773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:293, offset: 0x010ca0a1, size: 82 bytes, params: 2, frame: 14
var r0;
var binding;
let value = a0;
if (value.screenReaderEnabled === env1_0) {
r0 = value;
} else {
binding = env1_0;
value = environment.__proto__.__proto__.__proto__;
(require(587) /* metro dependency 587: Storage */).Storage.set('screenReaderEnabled', binding);
r0 = {screenReaderEnabled: binding};
}
return r0;
}
function _fun38770(a0) { // fn#38770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:224, offset: 0x010c9fc8, size: 142 bytes, params: 2, frame: 15
const env0_0 = a0;
const closure = updateScreenReaderEnabled_38771;
AccessibilityInfo.isScreenReaderEnabled().then(closure).catch(function() {
updateScreenReaderEnabled_38771(false);
});
AccessibilityInfo.addEventListener('screenReaderChanged', closure);
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value = Storage.get('screenReaderEnabled');
return {screenReaderEnabled: value != null && value};
}
}
function addScreenReaderEnabledListener(a0) { // fn#38775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:785, offset: 0x010ca105, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_4.subscribe(_fun38776);
}
}
function getIsScreenReaderEnabled() { // fn#38777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:912, offset: 0x010ca140, size: 25 bytes, params: 1, frame: 9
const binding = env0_4;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).screenReaderEnabled;
}
function useIsScreenReaderEnabled() { // fn#38778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:1016, offset: 0x010ca159, size: 20 bytes, params: 1, frame: 11
return env0_4(SCREEN_READER_ENABLED_GETTER);
}
function updateScreenReaderEnabled_38771(a0) { // fn#38771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:260, offset: 0x010ca056, size: 52 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const value = environment.__proto__;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun38772);
}
function _fun38776({screenReaderEnabled}) { // fn#38776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:848, offset: 0x010ca127, size: 25 bytes, params: 2, frame: 11
env0_0(screenReaderEnabled);
}
function _fun38772() { // fn#38772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:286, offset: 0x010ca08a, size: 23 bytes, params: 1, frame: 11
return env1_0(_fun38773);
}
function _fun38773(a0) { // fn#38773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:293, offset: 0x010ca0a1, size: 82 bytes, params: 2, frame: 14
var r0;
var binding;
let value = a0;
if (value.screenReaderEnabled === env1_0) {
r0 = value;
} else {
binding = env1_0;
value = environment.__proto__.__proto__.__proto__;
(require(587) /* metro dependency 587: Storage */).Storage.set('screenReaderEnabled', binding);
r0 = {screenReaderEnabled: binding};
}
return r0;
function addScreenReaderEnabledListener(a0) { // fn#38775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:785, offset: 0x010ca105, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_4.subscribe(_fun38776);
function _fun38776({screenReaderEnabled}) { // fn#38776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:848, offset: 0x010ca127, size: 25 bytes, params: 2, frame: 11
env0_0(screenReaderEnabled);
}
}
function getIsScreenReaderEnabled() { // fn#38777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:912, offset: 0x010ca140, size: 25 bytes, params: 1, frame: 9
const binding = env0_4;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).screenReaderEnabled;
}
function useIsScreenReaderEnabled() { // fn#38778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4737:1016, offset: 0x010ca159, size: 20 bytes, params: 1, frame: 11
return env0_4(SCREEN_READER_ENABLED_GETTER);
}
}
global.__d(_fun38768, 4559, [27, 587, 629, 690, 2]) /* metro module 4559, dependencies: [27, 587, 629, 690, 2] */;
@@ -1,188 +1,200 @@
/* Metro module 12034; source: modules/accept_invite/native/AcceptInvite.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 1360, 3860, 5465, 12035, 12037, 1423, 1457, 12040, 1478, 6239, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as GlobalUtilsModule from '../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CardNativeModule from '../../../design/components/Card/native/Card.native.tsx'; /* Metro dependency 6239 */
function _fun92494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:6, offset: 0x0208bb74, size: 482 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.ActivityIndicator;
const env0_6 = value.ImageBackground;
const env0_7 = value.View;
const env0_8 = (require(661) /* metro dependency 661: Constants */).InviteStates;
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_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.parentContainer = {'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
object = {};
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
object.parentContainer = {'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
backgroundColor: BACKGROUND_BASE_LOW};
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover'};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.cardContainer = {'position': 'absolute', 'flex': 1, 'width': '90%', 'alignItems': 'center',
object.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover'};
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
object.cardContainer = {'position': 'absolute', 'flex': 1, 'width': '90%', 'alignItems': 'center',
'justifyContent': 'center', 'padding': 0, backgroundColor: BACKGROUND_SURFACE_HIGH};
object2.cardContent = {'padding': 16, 'flex': 1, 'justifyContent': 'center', 'alignItems': 'center',
'width': '100%'};
object2.resolvingContainer = {padding: 64};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
object2 = {LOADING: 0};
object2[0] = 'LOADING';
object2.DETAILS = 1;
object2[1] = 'DETAILS';
object2.ERROR = 2;
object2[2] = 'ERROR';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInvite.tsx');
object.cardContent = {'padding': 16, 'flex': 1, 'justifyContent': 'center', 'alignItems': 'center', 'width': '100%'};
object.resolvingContainer = {padding: 64};
const env0_11 = Reflect.apply(createStyles, value, [object]);
object = {LOADING: 0};
object[0] = 'LOADING';
object.DETAILS = 1;
object[1] = 'DETAILS';
object.ERROR = 2;
object[2] = 'ERROR';
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/AcceptInvite.tsx');
exports.default = AcceptInvite;
}
function InviteResolving() { // fn#92495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1211, offset: 0x0208bd56, size: 131 bytes, params: 1, frame: 17
const styles = useStyles();
const useToken = UseTokenModule.useToken;
const INTERACTIVE_TEXT_DEFAULT = (Native).colors.INTERACTIVE_TEXT_DEFAULT;
return (
<View style={styles.resolvingContainer}>
<ActivityIndicator color={Reflect.apply(useToken, UseTokenModule,
[INTERACTIVE_TEXT_DEFAULT])} size="large" />
</View>
);
}
function InviteResolving() { // fn#92495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1211, offset: 0x0208bd56, size: 131 bytes, params: 1, frame: 17
const styles = useStyles();
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
return (
<View style={styles.resolvingContainer}>
<ActivityIndicator color={Reflect.apply(useToken, useTokenModule,
[INTERACTIVE_TEXT_DEFAULT])} size="large" />
</View>
);
}
function AcceptInviteCardComponent(a0) { // fn#92496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1386, offset: 0x0208bdd9, size: 290 bytes, params: 2, frame: 19
const invite = a0.invite;
const binding = env0_4;
const useState = binding.useState;
const value3 = env0_3(Reflect.apply(useState, binding, [getInviteState(invite)]), 2);
const property = value3[0];
const env0_2 = value3[1];
env0_4.useEffect(_fun92497, [invite, property]);
if (invite != null) {
var DETAILS = env0_12.DETAILS;
if (DETAILS === property) {
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12035) /* metro dependency 12035: InviteDetails */);
function AcceptInviteCardComponent(a0) { // fn#92496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1386, offset: 0x0208bdd9, size: 290 bytes, params: 2, frame: 19
const invite = a0.invite;
const useState = ReactModule.useState;
const value3 = Module00057(Reflect.apply(useState, ReactModule, [getInviteState(invite)]), 2);
const property = value3[0];
const env0_2 = value3[1];
ReactModule.useEffect(_fun92497, [invite, property]);
if (invite != null) {
var DETAILS = env0_12.DETAILS;
if (DETAILS === property) {
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12035) /* metro dependency 12035: InviteDetails */);
}
var ERROR = env0_12.ERROR;
if (ERROR === property) {
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12037) /* metro dependency 12037: InviteError */);
}
}
var ERROR = env0_12.ERROR;
if (ERROR === property) {
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12037) /* metro dependency 12037: InviteError */);
return <InviteResolving />;
function _fun92497() { // fn#92497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1510, offset: 0x0208befb, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const inviteState = getInviteState(invite);
if (inviteState !== env0_1) {
(require(5465) /* metro dependency 5465: DeprecatedLayoutAnimation */).DeprecatedLayoutAnimation();
env0_2(inviteState);
}
}
}
return <InviteResolving />;
}
function getInviteState(a0) { // fn#92498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:817, offset: 0x0208bf41, size: 315 bytes, params: 2, frame: 14
let value = undefined;
let state = a0 == null ? value : a0.state;
const r2 = state == null && (a0 == null ? value : a0.channel) == null;
if (a0 == null) {
value = environment;
return env0_12.LOADING;
function getInviteState(a0) { // fn#92498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:817, offset: 0x0208bf41, size: 315 bytes, params: 2, frame: 14
let value = undefined;
let state = a0 == null ? value : a0.state;
const r2 = state == null && (a0 == null ? value : a0.channel) == null;
if (a0 == null) {
value = environment;
return env0_12.LOADING;
}
if (a0.state == null) {
value = environment;
return env0_12.LOADING;
}
if (r2) {
value = environment;
return env0_12.LOADING;
}
state = a0.state;
const RESOLVED = InviteStates.RESOLVED;
if (RESOLVED === state) {
return env0_12.DETAILS;
}
const ACCEPTED = InviteStates.ACCEPTED;
if (ACCEPTED === state) {
return env0_12.DETAILS;
}
const EXPIRED = InviteStates.EXPIRED;
if (EXPIRED === state) {
return env0_12.ERROR;
}
const BANNED = InviteStates.BANNED;
if (BANNED === state) {
return env0_12.ERROR;
}
const ERROR = InviteStates.ERROR;
if (ERROR === state) {
return env0_12.ERROR;
}
const RESOLVING = InviteStates.RESOLVING;
if (RESOLVING === state) {
return env0_12.LOADING;
}
const APP_NOT_OPENED = InviteStates.APP_NOT_OPENED;
if (APP_NOT_OPENED === state) {
return env0_12.LOADING;
}
const APP_OPENED = InviteStates.APP_OPENED;
if (APP_OPENED === state) {
return env0_12.LOADING;
}
const APP_OPENING = InviteStates.APP_OPENING;
if (APP_OPENING === state) {
return env0_12.LOADING;
}
const ACCEPTING = InviteStates.ACCEPTING;
if (ACCEPTING === state) {
return env0_12.LOADING;
}
(GlobalUtilsModule).assertNever(state);
return value;
}
if (a0.state == null) {
value = environment;
return env0_12.LOADING;
}
if (r2) {
value = environment;
return env0_12.LOADING;
}
state = a0.state;
const RESOLVED = InviteStates.RESOLVED;
if (RESOLVED === state) {
return env0_12.DETAILS;
}
const ACCEPTED = InviteStates.ACCEPTED;
if (ACCEPTED === state) {
return env0_12.DETAILS;
}
const EXPIRED = InviteStates.EXPIRED;
if (EXPIRED === state) {
return env0_12.ERROR;
}
const BANNED = InviteStates.BANNED;
if (BANNED === state) {
return env0_12.ERROR;
}
const ERROR = InviteStates.ERROR;
if (ERROR === state) {
return env0_12.ERROR;
}
const RESOLVING = InviteStates.RESOLVING;
if (RESOLVING === state) {
return env0_12.LOADING;
}
const APP_NOT_OPENED = InviteStates.APP_NOT_OPENED;
if (APP_NOT_OPENED === state) {
return env0_12.LOADING;
}
const APP_OPENED = InviteStates.APP_OPENED;
if (APP_OPENED === state) {
return env0_12.LOADING;
}
const APP_OPENING = InviteStates.APP_OPENING;
if (APP_OPENING === state) {
return env0_12.LOADING;
}
const ACCEPTING = InviteStates.ACCEPTING;
if (ACCEPTING === state) {
return env0_12.LOADING;
}
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(state);
return value;
}
function AcceptInvite(a0) { // fn#92499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1871, offset: 0x0208c07c, size: 448 bytes, params: 2, frame: 26
var r7;
var object2;
var defaultImport;
var getGuildSplashSource;
var moduleValue;
const invite = a0.invite;
const value = Object.create(null);
value.invite = 0;
const value2 = copyDataProperties({}, a0, value, invite);
const value4 = undefined;
const styles = useStyles();
const {height, width} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
const guild = (invite ?? ({})).guild;
if ((guild == null ? value4 : guild.splash) == null) {
r7 = importDefault(12040) /* metro dependency 12040 */;
} else {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildSplashSource = defaultImport.getGuildSplashSource;
object2 = {};
object2.id = guild.id;
object2.splash = guild.splash;
moduleValue = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
object2.size = width * moduleValue.getDevicePixelRatio();
r7 = Reflect.apply(getGuildSplashSource, defaultImport,
[object2]) ?? (importDefault(12040) /* metro dependency 12040 */);
function AcceptInvite(a0) { // fn#92499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1871, offset: 0x0208c07c, size: 448 bytes, params: 2, frame: 26
var r7;
var object;
var defaultImport;
var getGuildSplashSource;
var moduleValue;
const invite = a0.invite;
const value = Object.create(null);
value.invite = 0;
const value2 = copyDataProperties({}, a0, value, invite);
const value4 = undefined;
const styles = useStyles();
const {height, width} = (UseWindowDimensionsNative)();
const guild = (invite ?? ({})).guild;
if ((guild == null ? value4 : guild.splash) == null) {
r7 = importDefault(12040) /* metro dependency 12040 */;
} else {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildSplashSource = defaultImport.getGuildSplashSource;
object = {};
object.id = guild.id;
object.splash = guild.splash;
moduleValue = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
object.size = width * moduleValue.getDevicePixelRatio();
r7 = Reflect.apply(getGuildSplashSource, defaultImport,
[object]) ?? (importDefault(12040) /* metro dependency 12040 */);
}
const items2 = [styles.parentContainer];
items2[1] = {height: height, width: width};
const imageBackground = (
<ImageBackground
source={r7}
imageStyle={styles.imageStyle}
style={{height: height, width: width}}
/>
);
const Card = (CardNativeModule).Card;
return (
<View style={items2}>
{imageBackground}
<Card style={styles.cardContainer}>
<View style={styles.cardContent}>
<AcceptInviteCardComponent invite={invite} {...value2} />
</View>
</Card>
</View>
);
}
const items2 = [styles.parentContainer];
items2[1] = {height: height, width: width};
const imageBackground = <ImageBackground source={r7} imageStyle={styles.imageStyle} style={{height: height,
width: width}} />;
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
return (
<View style={items2}>
{imageBackground}
<Card style={styles.cardContainer}>
<View style={styles.cardContent}>
<AcceptInviteCardComponent invite={invite} {...value2} />
</View>
</Card>
</View>
);
}
function _fun92497() { // fn#92497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1510, offset: 0x0208befb, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const inviteState = getInviteState(invite);
if (inviteState !== env0_1) {
(require(5465) /* metro dependency 5465: DeprecatedLayoutAnimation */).DeprecatedLayoutAnimation();
env0_2(inviteState);
}
}
global.__d(_fun92494, 12034, [57, 31, 27, 661, 33, 4501, 697, 1360, 3860, 5465, 12035, 12037, 1423, 1457, 12040,
1478, 6239,
2]) /* metro module 12034, dependencies: [57, 31, 27, 661, 33, 4501, 697, 1360, 3860, 5465, 12035, 12037, 1423, 1457, 12040, 1478, 6239, 2] */;
@@ -1,8 +1,11 @@
/* Metro module 5251; source: modules/accept_invite/native/AcceptInviteConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun46708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5429:6, offset: 0x011ad77d, size: 84 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInviteConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/AcceptInviteConstants.tsx');
exports.ACCEPT_INVITE_MODAL_KEY = 'accept-invite';
}
global.__d(_fun46708, 5251, [2]) /* metro module 5251, dependencies: [2] */;
File diff suppressed because it is too large. Load diff
@@ -1,65 +1,72 @@
/* Metro module 12035; source: modules/accept_invite/native/InviteDetails.tsx; dependencies: [57, 31, 27, 11876, 1885, 1878, 661, 9445, 33, 4501, 697, 6235, 4116, 1305, 11976, 3995, 1244, 8642, 4573, 1423, 5475, 683, 566, 12036, 9048, 4578, 6261, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserRecord from '../../../records/UserRecord.tsx'; /* Metro dependency 1885 */
import MultiAccountStore from '../../multi_account/MultiAccountStore.tsx'; /* Metro dependency 11876 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as InviteTypeUtilsModule from '../../instant_invite/InviteTypeUtils.tsx'; /* Metro dependency 4116 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as LegacyTokensModule from '../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as HubConstantsModule from '../../hub/HubConstants.tsx'; /* Metro dependency 9445 */
function _fun92500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6, offset: 0x0208c23c, size: 957 bytes, params: 8, frame: 26
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const multiAccountStore = importDefault(11876) /* metro dependency 11876: MultiAccountStore */;
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_9 = value.AnalyticEvents;
const env0_10 = value.InviteStates;
const env0_11 = (require(9445) /* metro dependency 9445: HubConstants */).INVITE_ROUTING_HUB_GUILD_ID;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.jsxs;
const env0_14 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {};
const object7 = {'height': 64, 'width': 64, 'margin': 0};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object4.avatar = object7;
const object8 = {'borderRadius': null, 'height': 64, 'width': 64, 'marginBottom': 24, 'marginTop': 24};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object4.avatarContainer = object8;
object4.inviteJoinContainer = {'flexDirection': 'row', 'alignItems': 'flex-start', 'marginBottom': 8,
object = {};
const object2 = {'height': 64, 'width': 64, 'margin': 0};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.avatar = object2;
const object3 = {'borderRadius': null, 'height': 64, 'width': 64, 'marginBottom': 24, 'marginTop': 24};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object.avatarContainer = object3;
object.inviteJoinContainer = {'flexDirection': 'row', 'alignItems': 'flex-start', 'marginBottom': 8,
'marginLeft': 16, 'marginRight': 16};
object4.inviteJoinText = {textAlign: 'center'};
const object12 = {};
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object12.marginRight = 8;
object4.inviterIconWrapper = object12;
const object13 = {'width': 20, 'height': 20};
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object4.inviterIcon = object13;
object4.guildNameContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
object4.guildNameText = {textAlign: 'center'};
const DARK_1_LIGHT_04 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_1_LIGHT_04;
object4.featureIcon = {'flexGrow': 0, 'marginRight': 8, opacity: DARK_1_LIGHT_04};
object4.memberInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
object4.rolesList = {'marginTop': 8, 'marginBottom': 8, 'alignItems': 'center'};
const object14 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4};
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.inviteJoinText = {textAlign: 'center'};
const object5 = {};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object5.marginRight = 8;
object.inviterIconWrapper = object5;
const object6 = {'width': 20, 'height': 20};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.inviterIcon = object6;
object.guildNameContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
object.guildNameText = {textAlign: 'center'};
const DARK_1_LIGHT_04 = (LegacyTokensModule).DARK_1_LIGHT_04;
object.featureIcon = {'flexGrow': 0, 'marginRight': 8, opacity: DARK_1_LIGHT_04};
object.memberInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
object.rolesList = {'marginTop': 8, 'marginBottom': 8, 'alignItems': 'center'};
const object9 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4};
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object14.backgroundColor = GREEN_360;
object4.dotOnline = object14;
const object15 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4, 'marginLeft': 16};
object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object9.backgroundColor = GREEN_360;
object.dotOnline = object9;
const object10 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4, 'marginLeft': 16};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
object15.backgroundColor = PRIMARY_400;
object4.dotOffline = object15;
const object16 = {'width': '100%', 'backgroundColor': null, 'padding': 16, 'borderRadius': null, 'marginTop': 16,
object10.backgroundColor = PRIMARY_400;
object.dotOffline = object10;
const object11 = {'width': '100%', 'backgroundColor': null, 'padding': 16, 'borderRadius': null, 'marginTop': 16,
'marginBottom': 8};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object16.backgroundColor = BACKGROUND_SURFACE_HIGH;
object16.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object4.embedDetailsCard = object16;
const env0_15 = Reflect.apply(createStyles, value, [object4]);
object11.backgroundColor = BACKGROUND_SURFACE_HIGH;
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.embedDetailsCard = object11;
const env0_15 = Reflect.apply(createStyles, value, [object]);
const getMemberCountFromInvite = function(a0) {
var object = {};
var property = a0.approximate_presence_count;
@@ -70,46 +77,56 @@ function _fun92500(global, require, importDefault, importAll, module, exports, d
object.memberCount = value != property ? property : value2;
return value2 === object.memberCount ? value : object;
};
object4 = {ACCEPT: 0};
object4[0] = 'ACCEPT';
object4.DECLINE = 1;
object4[1] = 'DECLINE';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteDetails.tsx');
object = {ACCEPT: 0};
object[0] = 'ACCEPT';
object.DECLINE = 1;
object[1] = 'DECLINE';
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/InviteDetails.tsx');
exports.default = InviteDetails;
}
function InviteDestinationIcon({invite}) { // fn#92501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1889, offset: 0x0208c5f9, size: 341 bytes, params: 2, frame: 25
var r4;
var r5;
var inviter;
var value2;
var guild;
var value3;
var Avatar;
var userRecord;
var value;
const styles = useStyles();
const items2 = [styles.avatarContainer];
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (inviteTypeUtilsModule.isGroupDMInvite(invite)) {
inviter = invite.inviter;
value2 = null;
if (value2 != inviter) {
function InviteDestinationIcon({invite}) { // fn#92501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1889, offset: 0x0208c5f9, size: 341 bytes, params: 2, frame: 25
var r4;
var r5;
var inviter;
var value2;
var guild;
var value3;
var Avatar;
var userRecordBinding;
var userRecord2;
var value;
const styles = useStyles();
const items2 = [styles.avatarContainer];
if (InviteTypeUtilsModule.isGroupDMInvite(invite)) {
inviter = invite.inviter;
value2 = null;
if (value2 != inviter) {
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
var avatarProps = {avatarStyle: styles.avatar};
inviter = invite.inviter;
userRecord = new UserRecord();
avatarProps.user = userRecord;
avatarProps.guildId = undefined;
avatarProps.size = (require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE;
userRecord = <Avatar {...avatarProps} />;
r5 = userRecord;
if (value2 != inviter) {
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
var avatarProps = {avatarStyle: styles.avatar};
userRecordBinding = UserRecord;
inviter = invite.inviter;
userRecord2 = new userRecordBinding();
avatarProps.user = userRecord2;
avatarProps.guildId = undefined;
avatarProps.size = (require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE;
userRecord2 = <Avatar {...avatarProps} />;
r5 = userRecord2;
} else {
r5 = value2;
}
r4 = r5;
} else {
r5 = value2;
guild = invite.guild;
value3 = null;
if (value3 != guild) {
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
value = ((Component) => <Component style={styles.avatar} guild={invite.guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.LARGE} textScale={2} />)(value);
r4 = value;
} else {
r4 = value3;
}
}
r4 = r5;
} else {
guild = invite.guild;
value3 = null;
@@ -121,110 +138,119 @@ function InviteDestinationIcon({invite}) { // fn#92501, source: /ci/build/discor
r4 = value3;
}
}
} else {
guild = invite.guild;
value3 = null;
if (value3 != guild) {
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
value = ((Component) => <Component style={styles.avatar} guild={invite.guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.LARGE} textScale={2} />)(value);
r4 = value;
} else {
r4 = value3;
}
return (
<View style={items2}>
{r4}
</View>
);
}
return (
<View style={items2}>
{r4}
</View>
);
}
function InviteHeader({invite}) { // fn#92502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2269, offset: 0x0208c74e, size: 449 bytes, params: 2, frame: 22
var name;
var r0;
var r9;
var defaultImport;
var intl;
var formatToPlainString;
var property;
var defaultImport2;
const styles = useStyles();
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (inviteTypeUtilsModule.isGroupDMInvite(invite)) {
name = invite.channel?.name;
if (name != null) {
r0 = name;
} else {
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
r0 = defaultImport.getFormattedName(invite.inviter);
}
r9 = r0;
} else {
r9 = invite.guild?.name;
}
const moduleValue2 = inviteTypeUtilsModule;
if (moduleValue2.isFriendInvite(invite)) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['4aF92R'];
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r9 = Reflect.apply(formatToPlainString, intl, [property,
{username: defaultImport2.getFormattedName(invite.inviter)}]);
}
return r9 == null ? null : <View style={styles.guildNameContainer}>{((Component) => <Component guild={invite.guild} style={styles.featureIcon} disableColor />)(importDefault(8642) /* metro dependency 8642: GuildBadge */)}{((Heading) => <Heading style={styles.guildNameText} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{r9}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)}</View>;
}
function InviteJoinContext({invite, isRegistration, isGuildMember}) { // fn#92503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2851, offset: 0x0208c90f, size: 1063 bytes, params: 2, frame: 27
var r2;
var r8;
var r6;
var moduleValue2;
var moduleValue3;
var format;
var spU2mI;
var defaultImport;
var formatToPlainString;
var x2L32Q;
var defaultImport2;
var Lu4h18;
var defaultImport3;
var Quj7HX;
var defaultImport4;
var moduleValue4;
const styles = useStyles();
const value2 = env0_4.useMemo(_fun92504, [invite, isGuildMember]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value3 = Reflect.apply(string, intl, [t['3rE1P8']]);
if ((require(4116) /* metro dependency 4116: InviteTypeUtils */).isFriendInvite(invite)) {
format = intl.format;
Quj7HX = (require(1244) /* metro dependency 1244: indexNative */).t.Quj7HX;
defaultImport4 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(format, intl, [Quj7HX, {username: defaultImport4.getFormattedName(invite.inviter)}]);
} else {
moduleValue2 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (moduleValue2.isGroupDMInvite(invite)) {
if (invite.channel == null) {
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
} else if (invite.inviter != null) {
format = intl.format;
Lu4h18 = (require(1244) /* metro dependency 1244: indexNative */).t.Lu4h18;
defaultImport3 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r2 = Reflect.apply(format, intl, [Lu4h18, {username: defaultImport3.getFormattedName(invite.inviter)}]);
function InviteHeader({invite}) { // fn#92502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2269, offset: 0x0208c74e, size: 449 bytes, params: 2, frame: 22
var name;
var r0;
var r9;
var defaultImport;
var intl;
var formatToPlainString;
var property;
var defaultImport2;
const styles = useStyles();
if (InviteTypeUtilsModule.isGroupDMInvite(invite)) {
name = invite.channel?.name;
if (name != null) {
r0 = name;
} else {
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
r0 = defaultImport.getFormattedName(invite.inviter);
}
r8 = r2;
r9 = r0;
} else {
moduleValue3 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (moduleValue3.isStreamInvite(invite)) {
if (invite.target_user != null) {
formatToPlainString = intl.formatToPlainString;
x2L32Q = (require(1244) /* metro dependency 1244: indexNative */).t.x2L32Q;
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(formatToPlainString, intl, [x2L32Q,
{username: defaultImport2.getFormattedName(invite.target_user)}]);
r9 = invite.guild?.name;
}
if (InviteTypeUtilsModule.isFriendInvite(invite)) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['4aF92R'];
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r9 = Reflect.apply(formatToPlainString, intl, [property,
{username: defaultImport2.getFormattedName(invite.inviter)}]);
}
return (
r9 == null
? null
: (
<View style={styles.guildNameContainer}>
{((Component) => <Component guild={invite.guild} style={styles.featureIcon} disableColor />)(importDefault(8642) /* metro dependency 8642: GuildBadge */)}
{((Heading) => <Heading style={styles.guildNameText} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{r9}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)}
</View>
)
);
}
function InviteJoinContext({invite, isRegistration, isGuildMember}) { // fn#92503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2851, offset: 0x0208c90f, size: 1063 bytes, params: 2, frame: 27
var r2;
var r8;
var r6;
var moduleValue2;
var moduleValue3;
var format;
var spU2mI;
var defaultImport;
var formatToPlainString;
var x2L32Q;
var defaultImport2;
var Lu4h18;
var defaultImport3;
var Quj7HX;
var defaultImport4;
var moduleValue4;
const styles = useStyles();
const value2 = ReactModule.useMemo(_fun92504, [invite, isGuildMember]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value3 = Reflect.apply(string, intl, [t['3rE1P8']]);
if ((require(4116) /* metro dependency 4116: InviteTypeUtils */).isFriendInvite(invite)) {
format = intl.format;
Quj7HX = (require(1244) /* metro dependency 1244: indexNative */).t.Quj7HX;
defaultImport4 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(format, intl, [Quj7HX, {username: defaultImport4.getFormattedName(invite.inviter)}]);
} else {
moduleValue2 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (moduleValue2.isGroupDMInvite(invite)) {
if (invite.channel == null) {
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
} else if (invite.inviter != null) {
format = intl.format;
Lu4h18 = (require(1244) /* metro dependency 1244: indexNative */).t.Lu4h18;
defaultImport3 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r2 = Reflect.apply(format, intl, [Lu4h18, {username: defaultImport3.getFormattedName(invite.inviter)}]);
} else {
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
}
r8 = r2;
} else {
moduleValue3 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (moduleValue3.isStreamInvite(invite)) {
if (invite.target_user != null) {
formatToPlainString = intl.formatToPlainString;
x2L32Q = (require(1244) /* metro dependency 1244: indexNative */).t.x2L32Q;
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(formatToPlainString, intl, [x2L32Q,
{username: defaultImport2.getFormattedName(invite.target_user)}]);
} else if (isAlreadyMember(invite, isGuildMember)) {
string = intl.string;
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
[t['FDsl+J']]);
} else if (shouldShowInviter(invite, isGuildMember) && invite.inviter != null) {
format = intl.format;
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(format, intl, [spU2mI,
{username: defaultImport.getFormattedName(invite.inviter)}]);
} else {
r8 = value3;
}
} else if (isAlreadyMember(invite, isGuildMember)) {
string = intl.string;
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
@@ -233,258 +259,292 @@ function InviteJoinContext({invite, isRegistration, isGuildMember}) { // fn#9250
format = intl.format;
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(format, intl, [spU2mI,
{username: defaultImport.getFormattedName(invite.inviter)}]);
r8 = Reflect.apply(format, intl, [spU2mI, {username: defaultImport.getFormattedName(invite.inviter)}]);
} else {
r8 = value3;
}
} else if (isAlreadyMember(invite, isGuildMember)) {
string = intl.string;
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
[t['FDsl+J']]);
} else if (shouldShowInviter(invite, isGuildMember) && invite.inviter != null) {
format = intl.format;
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
r8 = Reflect.apply(format, intl, [spU2mI, {username: defaultImport.getFormattedName(invite.inviter)}]);
} else {
r8 = value3;
}
}
}
if (value2 == null) {
r6 = null;
} else {
moduleValue4 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
r6 = moduleValue4.isFriendInvite(invite) ? null : <View style={styles.inviterIconWrapper}>{((Component) => <Component source={value2} style={styles.inviterIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>;
}
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.inviteJoinContainer}>
{r6}
<Text
style={styles.inviteJoinText}
variant="text-sm/normal"
color="text-default"
>
{r8}
</Text>
</View>
);
}
function InviteMemberCounts({invite, isGuildMember}) { // fn#92505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4163, offset: 0x0208cdf6, size: 533 bytes, params: 2, frame: 31
var r7;
var r6;
var r0;
var jsxRuntimeEnv0_14Binding;
var items4;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items2;
var items3;
const styles = useStyles();
const memberCountFromInvite = getMemberCountFromInvite(invite);
if (memberCountFromInvite == null) {
r0 = null;
} else if (shouldShowInviter(invite, isGuildMember)) {
r0 = null;
} else if ((invite == null || invite.guild == null ? undefined : invite.guild.id) === INVITE_ROUTING_HUB_GUILD_ID) {
r0 = null;
} else {
var viewBindingProps = {style: styles.memberInfo};
if (memberCountFromInvite.onlineCount != null) {
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
items4 = [<View style={styles.dotOnline} />];
items4[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['LC+S+m'],
{membersOnline: memberCountFromInvite.onlineCount})}</Text>;
r7 = <>{items4}</>;
} else {
r7 = null;
}
items2 = [r7];
if (memberCountFromInvite.memberCount != null) {
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
items3 = [<View style={styles.dotOffline} />];
items3[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zRl6XR,
{count: memberCountFromInvite.memberCount})}</Text>;
r6 = <>{items3}</>;
} else {
if (value2 == null) {
r6 = null;
}
items2[1] = r6;
r0 = <View {...viewBindingProps}>{items2}</View>;
}
return r0;
}
function isAlreadyMember(a0, a1) { // fn#92507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1691, offset: 0x0208d053, size: 33 bytes, params: 3, frame: 3
return a1 && a0.state !== InviteStates.ACCEPTED;
}
function shouldShowInviter(a0, a1) { // fn#92508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1740, offset: 0x0208d074, size: 93 bytes, params: 3, frame: 15
var memberCount;
var getMemberCountFromInviteBinding;
var memberCountFromInviteBinding;
let value = a0.inviter != null;
let r0 = value && !isAlreadyMember(a0, a1);
if (r0) {
getMemberCountFromInviteBinding = getMemberCountFromInvite;
value = undefined;
memberCountFromInviteBinding = getMemberCountFromInviteBinding(a0);
memberCount = memberCountFromInviteBinding == null ? value : memberCountFromInviteBinding.memberCount;
value = 0;
value = !((memberCount ?? value) > 100);
r0 = value;
}
return r0;
}
function InviteDetails({invite, isGuildMember, onPressJoin, onPressClose, isRegistration}) { // fn#92509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4982, offset: 0x0208d0d1, size: 1234 bytes, params: 2, frame: 36
var r18;
var r19;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value15;
const styles = useStyles();
let binding = env0_4;
const [property, env0_3] = env0_3Binding(binding.useState(), 2);
const guild_scheduled_event = invite.guild_scheduled_event;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const canUseMultiAccountMobile = (require(566) /* metro dependency 566: flux */).useStateFromStores([MultiAccountStore],
function() {
return MultiAccountStore.getCanUseMultiAccountMobile();
});
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
const items3 = [<InviteDestinationIcon invite={invite} isGuildMember={isGuildMember} isRegistration={isRegistration} />];
items3[1] = <InviteJoinContext {...object} />;
items3[2] = <InviteHeader {...object} />;
items3[3] = <InviteMemberCounts {...object} />;
items3[4] = ((Component) => <Component invite={invite} style={styles.rolesList} />)(importDefault(12036) /* metro dependency 12036: InviteRolesList */);
items3[5] = guild_scheduled_event != null && <View style={styles.embedDetailsCard}>{((GuildEventCardHeader) => <GuildEventCardHeader event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardHeader)}{((GuildEventCardMetaInfo) => <GuildEventCardMetaInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardMetaInfo)}{((GuildEventCardGuildInfo) => <GuildEventCardGuildInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardGuildInfo)}</View>;
const isAlreadyMember2 = isAlreadyMember(invite, isGuildMember);
const r11 = currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser,
false, 20) : null;
const r21 = r11 != null ? ((Icon) => <Icon source={r11} variant="entity" />)((require(4578) /* metro dependency 4578: ButtonNative */).Button.Icon) : undefined;
const r5 = currentUser != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9sWQNT'],
{usernameHook: usernameHook_92514}) : undefined;
let string = (require(1244) /* metro dependency 1244: indexNative */).intl.string;
if (isAlreadyMember2) {
value15 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IRoQXr);
r18 = value15;
r19 = value15;
} else if (canUseMultiAccountMobile && r5 != null) {
r18 = r5;
r19 = r5;
} else {
r18 = r5;
r19 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['e/6Ogt']]);
}
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const buttonProps = {'icon': null, 'variant': 'primary', 'size': 'lg', icon: r21, text: r19,
accessibilityLabel: r18, onPress: onPress_92510};
binding = env0_19;
let ACCEPT = binding.ACCEPT;
buttonProps.loading = property === ACCEPT;
ACCEPT = binding.ACCEPT;
buttonProps.disabled = property === ACCEPT;
const button = <Button {...buttonProps} />;
const object2 = {'variant': 'secondary', 'size': 'lg'};
string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.text = isAlreadyMember2 ? Reflect.apply(string, intl, [t.WAI6xu]) : Reflect.apply(string, intl, [t.ndsK4Z]);
object2.onPress = onPress_92511;
binding = env0_19;
let DECLINE = binding.DECLINE;
object2.loading = property === DECLINE;
DECLINE = binding.DECLINE;
object2.disabled = property === DECLINE;
items3[6] = <ButtonGroup>{button}<Button {...object2} /></ButtonGroup>;
return (
<>
{items3}
</>
);
}
function _fun92504() { // fn#92504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2946, offset: 0x0208cd36, size: 192 bytes, params: 1, frame: 16
var r0;
var shouldShowInviter2;
var value3;
let value = environment.__proto__;
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
if (inviteTypeUtilsModule.isStreamInvite(invite)) {
if (invite.target_user != null) {
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getUserAvatarSource(invite.target_user);
r0 = value;
} else {
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
value3 = null;
if (shouldShowInviter2) {
if (value3 != invite.inviter) {
moduleValue4 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
r6 = (
moduleValue4.isFriendInvite(invite)
? null
: (
<View style={styles.inviterIconWrapper}>
{((Component) => <Component source={value2} style={styles.inviterIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
)
);
}
const Text = (TextModule).Text;
return (
<View style={styles.inviteJoinContainer}>
{r6}
<Text
style={styles.inviteJoinText}
variant="text-sm/normal"
color="text-default"
>
{r8}
</Text>
</View>
);
function _fun92504() { // fn#92504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2946, offset: 0x0208cd36, size: 192 bytes, params: 1, frame: 16
var r0;
var shouldShowInviter2;
var value3;
let value = environment.__proto__;
if (InviteTypeUtilsModule.isStreamInvite(invite)) {
if (invite.target_user != null) {
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getUserAvatarSource(invite.inviter);
value = value.getUserAvatarSource(invite.target_user);
r0 = value;
} else {
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
value3 = null;
if (shouldShowInviter2) {
if (value3 != invite.inviter) {
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getUserAvatarSource(invite.inviter);
r0 = value;
} else {
r0 = value3;
}
} else {
r0 = value3;
}
}
} else {
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
value3 = null;
if (shouldShowInviter2) {
if (value3 != invite.inviter) {
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getUserAvatarSource(invite.inviter);
r0 = value;
} else {
r0 = value3;
}
} else {
r0 = value3;
}
} else {
r0 = value3;
}
return r0;
}
} else {
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
value3 = null;
if (shouldShowInviter2) {
if (value3 != invite.inviter) {
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getUserAvatarSource(invite.inviter);
r0 = value;
} else {
r0 = value3;
}
} else {
r0 = value3;
}
}
return r0;
}
function InviteDetailsOnPress() { // fn#92510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5163, owner: InviteDetails.onPress, offset: 0x0208d5a3, size: 37 bytes, params: 1, frame: 12
const binding = env0_3;
const ACCEPT = env1_19.ACCEPT;
binding(ACCEPT);
onPressJoin();
}
function InviteDetailsOnPress_92511() { // fn#92511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5203, owner: InviteDetails.onPress, offset: 0x0208d5c8, size: 119 bytes, params: 1, frame: 18
const binding = env0_3;
const DECLINE = env1_19.DECLINE;
const value3 = undefined;
binding(DECLINE);
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const INVITE_ACCEPT_DISMISSED = AnalyticEvents.INVITE_ACCEPT_DISMISSED;
const inviteBinding = invite;
const guild = inviteBinding.guild;
Reflect.apply(track, defaultImport, [INVITE_ACCEPT_DISMISSED, {invite_code: inviteBinding.code,
guild_id: guild == null ? value3 : guild.id}]);
onPressClose();
return value3;
}
function InviteDetailsUsernameHook() { // fn#92514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6125, owner: InviteDetails.usernameHook, offset: 0x0208d652, size: 86 bytes, params: 1, frame: 15
const currentUserBinding = currentUser;
const username = currentUserBinding.username;
const hasUniqueUsername2 = currentUserBinding.hasUniqueUsername();
const value2 = '';
return value2 + username + (hasUniqueUsername2 ? value2 : '#' + currentUser.discriminator);
function InviteMemberCounts({invite, isGuildMember}) { // fn#92505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4163, offset: 0x0208cdf6, size: 533 bytes, params: 2, frame: 31
var r7;
var r6;
var r0;
var jsxRuntimeEnv0_14Binding;
var items4;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items2;
var items3;
const styles = useStyles();
const memberCountFromInvite = getMemberCountFromInvite(invite);
if (memberCountFromInvite == null) {
r0 = null;
} else if (shouldShowInviter(invite, isGuildMember)) {
r0 = null;
} else if ((invite == null || invite.guild == null ? undefined : invite.guild.id) === INVITE_ROUTING_HUB_GUILD_ID) {
r0 = null;
} else {
var viewBindingProps = {style: styles.memberInfo};
if (memberCountFromInvite.onlineCount != null) {
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
items4 = [
<View style={styles.dotOnline} />,
];
items4[1] = (
<Text variant="text-xs/medium" color="text-default">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['LC+S+m'],
{membersOnline: memberCountFromInvite.onlineCount})}
</Text>
);
r7 = (
<>
{items4}
</>
);
} else {
r7 = null;
}
items2 = [r7];
if (memberCountFromInvite.memberCount != null) {
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
items3 = [
<View style={styles.dotOffline} />,
];
items3[1] = (
<Text variant="text-xs/medium" color="text-default">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zRl6XR,
{count: memberCountFromInvite.memberCount})}
</Text>
);
r6 = (
<>
{items3}
</>
);
} else {
r6 = null;
}
items2[1] = r6;
r0 = (
<View {...viewBindingProps}>
{items2}
</View>
);
}
return r0;
}
function isAlreadyMember(a0, a1) { // fn#92507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1691, offset: 0x0208d053, size: 33 bytes, params: 3, frame: 3
return a1 && a0.state !== InviteStates.ACCEPTED;
}
function shouldShowInviter(a0, a1) { // fn#92508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1740, offset: 0x0208d074, size: 93 bytes, params: 3, frame: 15
var memberCount;
var getMemberCountFromInviteBinding;
var memberCountFromInviteBinding;
let value = a0.inviter != null;
let r0 = value && !isAlreadyMember(a0, a1);
if (r0) {
getMemberCountFromInviteBinding = getMemberCountFromInvite;
value = undefined;
memberCountFromInviteBinding = getMemberCountFromInviteBinding(a0);
memberCount = memberCountFromInviteBinding == null ? value : memberCountFromInviteBinding.memberCount;
value = 0;
value = !((memberCount ?? value) > 100);
r0 = value;
}
return r0;
}
function InviteDetails({invite, isGuildMember, onPressJoin, onPressClose, isRegistration}) { // fn#92509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4982, offset: 0x0208d0d1, size: 1234 bytes, params: 2, frame: 36
var r18;
var r19;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value15;
const styles = useStyles();
let binding = ReactModule;
const [property, env0_3] = env0_3Binding(binding.useState(), 2);
const guild_scheduled_event = invite.guild_scheduled_event;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const canUseMultiAccountMobile = (require(566) /* metro dependency 566: flux */).useStateFromStores([MultiAccountStore],
function() {
return MultiAccountStore.getCanUseMultiAccountMobile();
});
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
const items3 = [
<InviteDestinationIcon
invite={invite}
isGuildMember={isGuildMember}
isRegistration={isRegistration}
/>,
];
items3[1] = <InviteJoinContext {...object} />;
items3[2] = <InviteHeader {...object} />;
items3[3] = <InviteMemberCounts {...object} />;
items3[4] = ((Component) => <Component invite={invite} style={styles.rolesList} />)(importDefault(12036) /* metro dependency 12036: InviteRolesList */);
items3[5] = guild_scheduled_event != null && <View style={styles.embedDetailsCard}>{((GuildEventCardHeader) => <GuildEventCardHeader event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardHeader)}{((GuildEventCardMetaInfo) => <GuildEventCardMetaInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardMetaInfo)}{((GuildEventCardGuildInfo) => <GuildEventCardGuildInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardGuildInfo)}</View>;
const isAlreadyMember2 = isAlreadyMember(invite, isGuildMember);
const r11 = currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser,
false, 20) : null;
const r21 = (
r11 != null
? ((Icon) => <Icon source={r11} variant="entity" />)((require(4578) /* metro dependency 4578: ButtonNative */).Button.Icon)
: undefined
);
const r5 = currentUser != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9sWQNT'],
{usernameHook: usernameHook_92514}) : undefined;
let string = (require(1244) /* metro dependency 1244: indexNative */).intl.string;
if (isAlreadyMember2) {
value15 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IRoQXr);
r18 = value15;
r19 = value15;
} else if (canUseMultiAccountMobile && r5 != null) {
r18 = r5;
r19 = r5;
} else {
r18 = r5;
r19 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['e/6Ogt']]);
}
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const buttonProps = {'icon': null, 'variant': 'primary', 'size': 'lg', icon: r21, text: r19,
accessibilityLabel: r18, onPress: onPress_92510};
binding = env0_19;
let ACCEPT = binding.ACCEPT;
buttonProps.loading = property === ACCEPT;
ACCEPT = binding.ACCEPT;
buttonProps.disabled = property === ACCEPT;
const button = <Button {...buttonProps} />;
const object3 = {'variant': 'secondary', 'size': 'lg'};
string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object3.text = isAlreadyMember2 ? Reflect.apply(string, intl, [t.WAI6xu]) : Reflect.apply(string, intl, [t.ndsK4Z]);
object3.onPress = onPress_92511;
binding = env0_19;
let DECLINE = binding.DECLINE;
object3.loading = property === DECLINE;
DECLINE = binding.DECLINE;
object3.disabled = property === DECLINE;
items3[6] = (
<ButtonGroup>
{button}
<Button {...object3} />
</ButtonGroup>
);
return (
<>
{items3}
</>
);
function InviteDetailsOnPress() { // fn#92510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5163, owner: InviteDetails.onPress, offset: 0x0208d5a3, size: 37 bytes, params: 1, frame: 12
const binding = env0_3;
const ACCEPT = env1_19.ACCEPT;
binding(ACCEPT);
onPressJoin();
}
function InviteDetailsOnPress_92511() { // fn#92511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5203, owner: InviteDetails.onPress, offset: 0x0208d5c8, size: 119 bytes, params: 1, frame: 18
const binding = env0_3;
const DECLINE = env1_19.DECLINE;
const value3 = undefined;
binding(DECLINE);
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const INVITE_ACCEPT_DISMISSED = AnalyticEvents.INVITE_ACCEPT_DISMISSED;
const inviteBinding = invite;
const guild = inviteBinding.guild;
Reflect.apply(track, defaultImport, [INVITE_ACCEPT_DISMISSED, {invite_code: inviteBinding.code,
guild_id: guild == null ? value3 : guild.id}]);
onPressClose();
return value3;
}
function InviteDetailsUsernameHook() { // fn#92514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6125, owner: InviteDetails.usernameHook, offset: 0x0208d652, size: 86 bytes, params: 1, frame: 15
const currentUserBinding = currentUser;
const username = currentUserBinding.username;
const hasUniqueUsername2 = currentUserBinding.hasUniqueUsername();
const value2 = '';
return value2 + username + (hasUniqueUsername2 ? value2 : '#' + currentUser.discriminator);
}
}
}
global.__d(_fun92500, 12035, [57, 31, 27, 11876, 1885, 1878, 661, 9445, 33, 4501, 697, 6235, 4116, 1305, 11976,
3995, 1244, 8642, 4573, 1423, 5475, 683, 566, 12036, 9048, 4578, 6261,
2]) /* metro module 12035, dependencies: [57, 31, 27, 11876, 1885, 1878, 661, 9445, 33, 4501, 697, 6235, 4116, 1305, 11976, 3995, 1244, 8642, 4573, 1423, 5475, 683, 566, 12036, 9048, 4578, 6261, 2] */;
@@ -1,11 +1,23 @@
/* Metro module 12037; source: modules/accept_invite/native/InviteError.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4002, 4048, 12038, 12039, 10545, 1244, 4573, 4578, 1423, 1305, 10544, 6819, 6766, 1948, 2] */
import AvatarUtils from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import GuildIcon from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import Module10544 from '../../../by-id/module-10544.js'; /* Metro dependency 10544 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as GuildIconModule from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
function _fun92520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:6, offset: 0x0208d9b3, size: 483 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(661) /* metro dependency 661: Constants */;
@@ -18,86 +30,158 @@ function _fun92520(global, require, importDefault, importAll, module, exports, d
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {expiredImage: {'marginTop': 32, 'marginBottom': 32}, expiredTitle: {'marginBottom': 8,
object = {expiredImage: {'marginTop': 32, 'marginBottom': 32}, expiredTitle: {'marginBottom': 8,
'backgroundColor': 'transparent', 'textAlign': 'center'}, expiredBody: {'backgroundColor': 'transparent',
'marginBottom': 24}, disabledView: {'justifyContent': 'center', 'alignItems': 'center'}};
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.disabledPauseIcon = {'position': 'absolute', 'alignSelf': 'center', 'tintColor': null, 'width': 42,
object.disabledPauseIcon = {'position': 'absolute', 'alignSelf': 'center', 'tintColor': null, 'width': 42,
'height': 42, tintColor: WHITE};
const object4 = {'borderRadius': null, 'opacity': 0.2, 'zIndex': -999};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.guildIcon = object4;
object2.disabledTitle = {'marginTop': 16, 'marginBottom': 8, 'textAlign': 'center'};
object2.disabledBody = {'textAlign': 'center', 'marginBottom': 16};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteError.tsx');
const object3 = {'borderRadius': null, 'opacity': 0.2, 'zIndex': -999};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.guildIcon = object3;
object.disabledTitle = {'marginTop': 16, 'marginBottom': 8, 'textAlign': 'center'};
object.disabledBody = {'textAlign': 'center', 'marginBottom': 16};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/InviteError.tsx');
exports.default = InviteError;
}
function InviteErrorBase({invite, onPressClose, inviteError}) { // fn#92521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:791, offset: 0x0208db96, size: 698 bytes, params: 2, frame: 28
const intl = require(dependencyMap[11]).intl;
const styles = useStyles();
const defaultImport = importDefault(require(dependencyMap[6]).isThemeDark(importDefault(dependencyMap[7])()) ? dependencyMap[8] : dependencyMap[9]);
const descriptiveInviteError = require(dependencyMap[10]).getDescriptiveInviteError(inviteError?.code);
const state = invite.state;
const BANNED = InviteStates.BANNED;
const r10 = state === BANNED ? intl.string(require(dependencyMap[11]).t['GzD/aa']) : descriptiveInviteError?.description ?? intl.string(require(dependencyMap[11]).t.FWkU6P);
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const items2 = [
<Image style={styles.expiredImage} source={defaultImport} />,
];
const Text = require(dependencyMap[12]).Text;
items2[1] = (
<Text
style={styles.expiredTitle}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{descriptiveInviteError?.title ?? intl.string(require(dependencyMap[11]).t.u9zxnX)}
</Text>
);
items2[2] = (
<Text
style={styles.expiredBody}
variant="text-sm/medium"
color="text-default"
>
{r10}
</Text>
);
const Button = require(dependencyMap[13]).Button;
items2[3] = (
<Button
variant="primary"
size="lg"
text={intl.string(require(dependencyMap[11]).t.wcqOoF)}
onPress={function() {
onPressClose();
}}
/>
);
return (
<>
{items2}
</>
);
}
function InviteErrorBase({invite, onPressClose, inviteError}) { // fn#92521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:791, offset: 0x0208db96, size: 698 bytes, params: 2, frame: 28
const intl = require(dependencyMap[11]).intl;
const styles = useStyles();
const defaultImport = importDefault(require(dependencyMap[6]).isThemeDark(importDefault(dependencyMap[7])()) ? dependencyMap[8] : dependencyMap[9]);
const descriptiveInviteError = require(dependencyMap[10]).getDescriptiveInviteError(inviteError?.code);
const state = invite.state;
const BANNED = InviteStates.BANNED;
const r10 = state === BANNED ? intl.string(require(dependencyMap[11]).t['GzD/aa']) : descriptiveInviteError?.description ?? intl.string(require(dependencyMap[11]).t.FWkU6P);
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const items2 = [<Image style={styles.expiredImage} source={defaultImport} />];
const Text = require(dependencyMap[12]).Text;
items2[1] = <Text style={styles.expiredTitle} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{descriptiveInviteError?.title ?? intl.string(require(dependencyMap[11]).t.u9zxnX)}</Text>;
items2[2] = <Text style={styles.expiredBody} variant="text-sm/medium" color="text-default">{r10}</Text>;
const Button = require(dependencyMap[13]).Button;
items2[3] = <Button variant="primary" size="lg" text={intl.string(require(dependencyMap[11]).t.wcqOoF)} onPress={function() {
onPressClose();
}} />;
return (
<>
{items2}
</>
);
}
function InviteDisabledError({invite, onPressClose}) { // fn#92523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:1621, offset: 0x0208de50, size: 668 bytes, params: 2, frame: 30
const styles = useStyles();
const guild = invite.guild;
if (guild == null) {
return null;
}
const guildIconURL = (AvatarUtils).getGuildIconURL({id: guild.id,
icon: guild.icon, size: 64, canAnimate: false});
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const Icon = (NativeModule).Icon;
const icon = <Icon style={styles.disabledPauseIcon} source={Module10544} />;
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items2 = [
<View style={styles.disabledView}>
{icon}
<GuildIcon
style={styles.guildIcon}
icon={guildIconURL}
size={XLARGE}
/>
</View>,
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<Text
style={styles.disabledTitle}
variant="heading-xl/semibold"
color="text-feedback-critical"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jlLX2Z)}
</Text>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
const format = intl.format;
const RXSeLl = (require(1244) /* metro dependency 1244: indexNative */).t.RXSeLl;
const defaultImport3 = HelpdeskUtils;
const getArticleURL = defaultImport3.getArticleURL;
const INVITE_DISABLED = HelpdeskArticles.INVITE_DISABLED;
items2[2] = (
<TextWithIOSLinkWorkaround
style={styles.disabledBody}
variant="text-md/normal"
color="text-default"
>
{Reflect.apply(format, intl, [RXSeLl, {articleLink: Reflect.apply(getArticleURL, defaultImport3,
[INVITE_DISABLED])}])}
</TextWithIOSLinkWorkaround>
);
const Button = (ButtonNativeModule).Button;
items2[3] = (
<Button
variant="primary"
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['yD/zkn'])}
onPress={function() {
onPressClose();
}}
/>
);
return (
<>
{items2}
</>
);
}
function InviteDisabledError({invite, onPressClose}) { // fn#92523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:1621, offset: 0x0208de50, size: 668 bytes, params: 2, frame: 30
const styles = useStyles();
const guild = invite.guild;
if (guild == null) {
return null;
function InviteError(a0) { // fn#92525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:2597, offset: 0x0208e0ec, size: 130 bytes, params: 2, frame: 15
const inviteError = a0.inviteError;
return (
inviteError == null
? (
<InviteErrorBase {...a0} />
)
: (
inviteError.code === AbortCodes.INVITES_DISABLED
? (
<InviteDisabledError {...a0} />
)
: (
<InviteErrorBase {...a0} />
)
)
);
}
const guildIconURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: guild.id,
icon: guild.icon, size: 64, canAnimate: false});
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const icon = <Icon style={styles.disabledPauseIcon} source={importDefault(10544) /* metro dependency 10544 */} />;
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items2 = [<View style={styles.disabledView}>{icon}<GuildIcon style={styles.guildIcon} icon={guildIconURL} size={XLARGE} /></View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <Text style={styles.disabledTitle} variant="heading-xl/semibold" color="text-feedback-critical">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jlLX2Z)}</Text>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const format = intl.format;
const RXSeLl = (require(1244) /* metro dependency 1244: indexNative */).t.RXSeLl;
const defaultImport3 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport3.getArticleURL;
const INVITE_DISABLED = HelpdeskArticles.INVITE_DISABLED;
items2[2] = <TextWithIOSLinkWorkaround style={styles.disabledBody} variant="text-md/normal" color="text-default">{Reflect.apply(format,
intl, [RXSeLl, {articleLink: Reflect.apply(getArticleURL, defaultImport3,
[INVITE_DISABLED])}])}</TextWithIOSLinkWorkaround>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[3] = <Button variant="primary" size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['yD/zkn'])} onPress={function() {
onPressClose();
}} />;
return (
<>
{items2}
</>
);
}
function InviteError(a0) { // fn#92525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:2597, offset: 0x0208e0ec, size: 130 bytes, params: 2, frame: 15
const inviteError = a0.inviteError;
return inviteError == null ? <InviteErrorBase {...a0} /> : inviteError.code === AbortCodes.INVITES_DISABLED ? <InviteDisabledError {...a0} /> : <InviteErrorBase {...a0} />;
}
global.__d(_fun92520, 12037, [31, 27, 661, 33, 4501, 697, 4002, 4048, 12038, 12039, 10545, 1244, 4573, 4578, 1423,
1305, 10544, 6819, 6766, 1948,
2]) /* metro module 12037, dependencies: [31, 27, 661, 33, 4501, 697, 4002, 4048, 12038, 12039, 10545, 1244, 4573, 4578, 1423, 1305, 10544, 6819, 6766, 1948, 2] */;
@@ -1,83 +1,95 @@
/* Metro module 12036; source: modules/accept_invite/native/InviteRolesList.tsx; dependencies: [31, 27, 33, 4501, 1940, 4572, 4573, 1244, 11428, 2] */
import RolePill from '../../../components_native/common/RolePill.tsx'; /* Metro dependency 11428 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun92515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:6, offset: 0x0208d6a8, size: 219 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 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({rolesRow: {'flexDirection': 'row',
const env0_7 = (CreateStylesModule).createStyles({rolesRow: {'flexDirection': 'row',
'flexWrap': 'wrap', 'justifyContent': 'center', 'gap': 4}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteRolesList.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/InviteRolesList.tsx');
exports.default = InviteRolesList;
}
function InviteRolesList({invite, style}) { // fn#92516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:343, offset: 0x0208d783, size: 315 bytes, params: 2, frame: 26
var r0;
var Stack;
var Text;
var intl;
const styles = useStyles();
const guild = invite.guild;
const roles = invite.roles;
const binding = env0_3;
const useMemo = binding.useMemo;
let object = [guild, roles];
const value2 = Reflect.apply(useMemo, binding, [_fun92517, object]);
if (guild == null) {
r0 = null;
} else if (value2.length === 0) {
r0 = null;
} else {
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
object = {spacing: 4, style: style};
Text = (require(4573) /* metro dependency 4573: Text */).Text;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <Stack {...object}><Text variant="text-sm/semibold" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.stcSfI)}</Text><View style={styles.rolesRow}>{value2.map(_fun92519)}</View></Stack>;
}
return r0;
}
function _fun92517() { // fn#92517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:431, offset: 0x0208d8be, size: 122 bytes, params: 1, frame: 15
var environment;
var r0;
var rolesBinding;
var items2;
var sort;
var value;
if (guild == null) {
r0 = [];
} else {
rolesBinding = roles;
if (rolesBinding == null) {
r0 = [];
} else if (roles.length === 0) {
r0 = [];
function InviteRolesList({invite, style}) { // fn#92516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:343, offset: 0x0208d783, size: 315 bytes, params: 2, frame: 26
var r0;
var Stack;
var Text;
var intl;
const styles = useStyles();
const guild = invite.guild;
const roles = invite.roles;
const useMemo = ReactModule.useMemo;
let object = [guild, roles];
const value2 = Reflect.apply(useMemo, ReactModule, [_fun92517, object]);
if (guild == null) {
r0 = null;
} else if (value2.length === 0) {
r0 = null;
} else {
rolesBinding = roles;
items2 = [];
arraySpread(items2, rolesBinding, 0, undefined);
sort = items2.sort;
value = environment.__proto__;
value = Reflect.apply(sort, items2,
[(require(1940) /* metro dependency 1940: GuildRoleUtils */).sortInviteRoles]);
value = value.map(_fun92518);
r0 = value;
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
object = {spacing: 4, style: style};
Text = (require(4573) /* metro dependency 4573: Text */).Text;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = (
<Stack {...object}>
<Text variant="text-sm/semibold" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.stcSfI)}
</Text>
<View style={styles.rolesRow}>
{value2.map(_fun92519)}
</View>
</Stack>
);
}
return r0;
function _fun92517() { // fn#92517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:431, offset: 0x0208d8be, size: 122 bytes, params: 1, frame: 15
var environment;
var r0;
var rolesBinding;
var items2;
var sort;
var value;
if (guild == null) {
r0 = [];
} else {
rolesBinding = roles;
if (rolesBinding == null) {
r0 = [];
} else if (roles.length === 0) {
r0 = [];
} else {
rolesBinding = roles;
items2 = [];
arraySpread(items2, rolesBinding, 0, undefined);
sort = items2.sort;
value = environment.__proto__;
value = Reflect.apply(sort, items2,
[(require(1940) /* metro dependency 1940: GuildRoleUtils */).sortInviteRoles]);
value = value.map(_fun92518);
r0 = value;
}
}
return r0;
function _fun92518(a0) { // fn#92518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:511, offset: 0x0208d938, size: 54 bytes, params: 2, frame: 13
let value = environment.__proto__.__proto__;
value = require(1940) /* metro dependency 1940: GuildRoleUtils */;
return value.inviteRoleToDisplayData(guild.id, a0);
}
}
function _fun92519(a0) { // fn#92519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:794, offset: 0x0208d96e, size: 69 bytes, params: 2, frame: 16
const value = environment.__proto__;
return ((Component) => <Component role={a0} guildId={guild.id} key={a0.id} />)(RolePill);
}
}
return r0;
}
function _fun92519(a0) { // fn#92519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:794, offset: 0x0208d96e, size: 69 bytes, params: 2, frame: 16
const value = environment.__proto__;
return ((Component) => <Component role={a0} guildId={guild.id} key={a0.id} />)(importDefault(11428) /* metro dependency 11428: RolePill */);
}
function _fun92518(a0) { // fn#92518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:511, offset: 0x0208d938, size: 54 bytes, params: 2, frame: 13
let value = environment.__proto__.__proto__;
value = require(1940) /* metro dependency 1940: GuildRoleUtils */;
return value.inviteRoleToDisplayData(guild.id, a0);
}
global.__d(_fun92515, 12036, [31, 27, 33, 4501, 1940, 4572, 4573, 1244, 11428,
2]) /* metro module 12036, dependencies: [31, 27, 33, 4501, 1940, 4572, 4573, 1244, 11428, 2] */;
@@ -1,12 +1,22 @@
/* Metro module 9005; source: modules/accept_invite/native/JoinServer.tsx; dependencies: [31, 27, 9006, 33, 4501, 697, 4573, 1244, 5463, 1484, 1478, 8967, 4578, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsKeyboardAwareNative from '../../safe_area/useSafeAreaInsetsKeyboardAware.native.tsx'; /* Metro dependency 5463 */
import FreeFormInputGroup from '../../../design/void/Form/native/FreeFormInputGroup.tsx'; /* Metro dependency 8967 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun70070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:6, offset: 0x01cecec1, size: 572 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const closure = OrSeparator;
const OrSeparator2 = OrSeparator;
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 */;
let value = ReactNativeModule;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
value = require(9006) /* metro dependency 9006: CreateGuildConstants */;
@@ -18,127 +28,199 @@ function _fun70070(global, require, importDefault, importAll, module, exports, d
const env0_10 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.growSpacing = {flexGrow: 2, minHeight: PX_24};
const object5 = {flexGrow: 2};
object.growSpacing = {flexGrow: 2, minHeight: PX_24};
const object3 = {flexGrow: 2};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
object3.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingBottom = PX_16;
object2.container = object5;
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.textInput = object6;
object3.paddingBottom = PX_16;
object.container = object3;
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.textInput = object4;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.innerSeparator = {'height': 1, 'flexGrow': 2, backgroundColor: BORDER_SUBTLE};
object2.separator = {'paddingVertical': 12, 'flexDirection': 'row', 'justifyContent': 'center',
object.innerSeparator = {'height': 1, 'flexGrow': 2, backgroundColor: BORDER_SUBTLE};
object.separator = {'paddingVertical': 12, 'flexDirection': 'row', 'justifyContent': 'center',
'alignItems': 'center'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.orText = {'textAlign': 'center', 'marginHorizontal': null, 'textTransform': 'uppercase',
object.orText = {'textAlign': 'center', 'marginHorizontal': null, 'textTransform': 'uppercase',
marginHorizontal: PX_8};
object2.header = {textAlign: 'center'};
object2.description = {'textAlign': 'center', 'marginTop': 8, 'marginBottom': 32};
object2.exampleText = {marginTop: 8};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
object.header = {textAlign: 'center'};
object.description = {'textAlign': 'center', 'marginTop': 8, 'marginBottom': 32};
object.exampleText = {marginTop: 8};
const env0_11 = Reflect.apply(createStyles, value, [object]);
const env0_13 = ['https://discord.gg/hTKzmak', 'hTKzmak', 'https://discord.gg/wumpus-friends'][0];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/JoinServer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/JoinServer.tsx');
exports.default = JoinServer;
exports.OrSeparator = closure;
}
function OrSeparator() { // fn#70071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:944, offset: 0x01ced0fd, size: 227 bytes, params: 1, frame: 24
const styles = useStyles();
const items2 = [<View style={styles.innerSeparator} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const HEuagM = (require(1244) /* metro dependency 1244: indexNative */).t.HEuagM;
items2[1] = <Text style={styles.orText} variant="text-sm/semibold" color="text-muted">{Reflect.apply(string, intl,
[HEuagM])}</Text>;
items2[2] = <View style={styles.innerSeparator} />;
return (
<View style={styles.separator}>
{items2}
</View>
);
}
function JoinServer({error, inviteString, onInviteChange, onDone, submitting}) { // fn#70072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1212, offset: 0x01ced1e0, size: 1291 bytes, params: 2, frame: 39
var r8;
var jsxRuntimeEnv0_10Binding;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items2;
const styles = useStyles();
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
let binding = env0_3;
const value3 = binding.useCallback(_fun70073, [value2]);
const items4 = [styles.container];
const bottom = insets.bottom;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
items4[1] = {paddingBottom: bottom + PX_16};
if (height <= CREATE_GUILD_SMALL_SCREEN_MAX_HEIGHT) {
r8 = null;
} else {
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
string = intl.string;
items2 = [<Text style={styles.header} accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [t.jlfuFW])}</Text>];
string = intl.string;
items2[1] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [t.lVvN3A])}</Text>;
r8 = <>{items2}</>;
exports.OrSeparator = OrSeparator2;
function OrSeparator() { // fn#70071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:944, offset: 0x01ced0fd, size: 227 bytes, params: 1, frame: 24
const styles = useStyles();
const items2 = [
<View style={styles.innerSeparator} />,
];
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const HEuagM = (IndexNativeModule).t.HEuagM;
items2[1] = (
<Text
style={styles.orText}
variant="text-sm/semibold"
color="text-muted"
>
{Reflect.apply(string, intl, [HEuagM])}
</Text>
);
items2[2] = <View style={styles.innerSeparator} />;
return (
<View style={styles.separator}>
{items2}
</View>
);
}
const items3 = [r8];
const FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
items3[1] = <FreeFormInputGroup label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)} error={error} value={inviteString} onChangeText={onInviteChange} placeholder={env0_13} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)} autoFocus autoCapitalize="none" autoCorrect={false} returnKeyType="join" textStyle={styles.textInput} onSubmitEditing={onDone} />;
const format = intl.format;
const vwWaTe = (require(1244) /* metro dependency 1244: indexNative */).t.vwWaTe;
binding = env0_12;
items3[2] = <Text style={styles.exampleText} variant="text-sm/medium" color="text-muted">{Reflect.apply(format,
intl, [vwWaTe, {example1: binding[0], example2: binding[1], example3: binding[2],
exampleHook: exampleHook}])}</Text>;
const view = <View>{items3}</View>;
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
const items5 = [<View style={styles.growSpacing} />];
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items5[1] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])} loading={submitting} disabled={submitting} onPress={onDone} />;
items5[2] = <OrSeparator />;
items5[3] = <Button size="lg" variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])} onPress={value3} />;
return (
<ScrollView keyboardShouldPersistTaps="handled" contentContainerStyle={items4}>
{view}
<>
{items5}
</>
</ScrollView>
);
}
function _fun70073() { // fn#70073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1389, offset: 0x01ced6eb, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const JOIN_STUDENT_HUB = CreateGuildModalStates.JOIN_STUDENT_HUB;
Reflect.apply(push, binding, [JOIN_STUDENT_HUB]);
}
function JoinServer({error, inviteString, onInviteChange, onDone, submitting}) { // fn#70072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1212, offset: 0x01ced1e0, size: 1291 bytes, params: 2, frame: 39
var r8;
var jsxRuntimeEnv0_10Binding;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items2;
const styles = useStyles();
const insets = (UseSafeAreaInsetsKeyboardAwareNative)().insets;
const value2 = (UseNavigationNativeModule).useNavigation();
const height = (UseWindowDimensionsNative)().height;
let binding = ReactModule;
const value3 = binding.useCallback(_fun70073, [value2]);
const items4 = [styles.container];
const bottom = insets.bottom;
const PX_16 = (Native).space.PX_16;
items4[1] = {paddingBottom: bottom + PX_16};
if (height <= CREATE_GUILD_SMALL_SCREEN_MAX_HEIGHT) {
r8 = null;
} else {
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
string = intl.string;
items2 = [
<Text
style={styles.header}
accessibilityRole="header"
variant="heading-xl/bold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [t.jlfuFW])}
</Text>,
];
string = intl.string;
items2[1] = (
<Text
style={styles.description}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(string, intl, [t.lVvN3A])}
</Text>
);
r8 = (
<>
{items2}
</>
);
}
const items3 = [r8];
items3[1] = (
<FreeFormInputGroup
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)}
error={error}
value={inviteString}
onChangeText={onInviteChange}
placeholder={env0_13}
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)}
autoFocus
autoCapitalize="none"
autoCorrect={false}
returnKeyType="join"
textStyle={styles.textInput}
onSubmitEditing={onDone}
/>
);
const format = intl.format;
const vwWaTe = (require(1244) /* metro dependency 1244: indexNative */).t.vwWaTe;
binding = env0_12;
items3[2] = (
<Text
style={styles.exampleText}
variant="text-sm/medium"
color="text-muted"
>
{Reflect.apply(format, intl, [vwWaTe, {example1: binding[0], example2: binding[1], example3: binding[2],
exampleHook: exampleHook}])}
</Text>
);
const view = (
<View>
{items3}
</View>
);
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
const items5 = [
<View style={styles.growSpacing} />,
];
const Button = (ButtonNativeModule).Button;
items5[1] = (
<Button
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])}
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])}
loading={submitting}
disabled={submitting}
onPress={onDone}
/>
);
items5[2] = <OrSeparator />;
items5[3] = (
<Button
size="lg"
variant="secondary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])}
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])}
onPress={value3}
/>
);
return (
<ScrollView keyboardShouldPersistTaps="handled" contentContainerStyle={items4}>
{view}
<>
{items5}
</>
</ScrollView>
);
function _fun70073() { // fn#70073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1389, offset: 0x01ced6eb, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const JOIN_STUDENT_HUB = CreateGuildModalStates.JOIN_STUDENT_HUB;
Reflect.apply(push, binding, [JOIN_STUDENT_HUB]);
}
function exampleHook(a0, a1) { // fn#70074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:2362, owner: JoinServer.exampleHook, offset: 0x01ced70d, size: 67 bytes, params: 3, frame: 15
const Text = (TextModule).Text;
return (
<Text
variant="text-sm/medium"
color="text-default"
key={a1}
>
{a0}
</Text>
);
}
}
function exampleHook(a0, a1) { // fn#70074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:2362, owner: JoinServer.exampleHook, offset: 0x01ced70d, size: 67 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/medium"
color="text-default"
key={a1}
>
{a0}
</Text>
);
}
global.__d(_fun70070, 9005, [31, 27, 9006, 33, 4501, 697, 4573, 1244, 5463, 1484, 1478, 8967, 4578,
2]) /* metro module 9005, dependencies: [31, 27, 9006, 33, 4501, 697, 4573, 1244, 5463, 1484, 1478, 8967, 4578, 2] */;
@@ -1,59 +1,67 @@
/* Metro module 15651; source: modules/accept_invite/native/components/AcceptInviteModal.tsx; dependencies: [31, 9006, 33, 480, 4098, 12033, 10010, 5280, 2] */
import AcceptInviteContainer from '../../../create_guild/native/components/AcceptInviteContainer.tsx'; /* Metro dependency 12033 */
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 AnalyticsUtilsModule from '../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as CreateGuildConstantsModule from '../../../create_guild/native/CreateGuildConstants.tsx'; /* Metro dependency 9006 */
function _fun119971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:6, offset: 0x0251cdd1, size: 164 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9006) /* metro dependency 9006: CreateGuildConstants */).CreateGuildModalStates;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/components/AcceptInviteModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/accept_invite/native/components/AcceptInviteModal.tsx');
exports.default = AcceptInviteModal;
function AcceptInviteModal(a0) { // fn#119972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:258, offset: 0x0251ce75, size: 126 bytes, params: 2, frame: 19
const env0_0 = a0;
ReactModule.useEffect(function() {
return _fun119974;
}, []);
const Navigator = (NavigatorNativeModule).Navigator;
const navigatorProps = {screens: ReactModule.useMemo(_fun119975, [a0])};
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
navigatorProps.initialRouteName = ACCEPT_INVITE;
return <Navigator {...navigatorProps} />;
function _fun119973() { // fn#119973, offset: 0x0251cef3, size: 11 bytes, params: 1, frame: 1
return function() {
};
}
function _fun119975() { // fn#119975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:364, offset: 0x0251cefe, size: 25 bytes, params: 1, frame: 11
return getScreens_119976(env0_0);
function getScreens_119976(a0) { // fn#119976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:368, offset: 0x0251cf17, size: 149 bytes, params: 2, frame: 18
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
const object2 = {'fullscreen': true, 'headerShown': false};
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const INVITE_ACCEPT = ImpressionNames.INVITE_ACCEPT;
object2.impressionName = INVITE_ACCEPT;
const object3 = {};
object3.deeplink_attempt_id = a0.deeplinkAttemptId;
value = require(4098) /* metro dependency 4098: InviteCodeUtils */;
object3.invite_code = value.parseInviteCodeFromInviteKey(a0.code);
object2.impressionProperties = object3;
object2.render = render_119977;
return {[ACCEPT_INVITE]: object2};
function getScreens_119976Render() { // fn#119977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:626, owner: getScreens_119976.render, offset: 0x0251cfac, size: 84 bytes, params: 1, frame: 16
const defaultImportProps = {...env0_0};
defaultImportProps['onPressClose'] = (require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).clearDisplayedInvite;
return <AcceptInviteContainer {...defaultImportProps} />;
}
}
}
}
}
function AcceptInviteModal(a0) { // fn#119972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:258, offset: 0x0251ce75, size: 126 bytes, params: 2, frame: 19
const env0_0 = a0;
const binding = env0_3;
binding.useEffect(function() {
return _fun119974;
}, []);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const navigatorProps = {screens: binding.useMemo(_fun119975, [a0])};
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
navigatorProps.initialRouteName = ACCEPT_INVITE;
return <Navigator {...navigatorProps} />;
}
function _fun119973() { // fn#119973, offset: 0x0251cef3, size: 11 bytes, params: 1, frame: 1
return function() {
};
}
function _fun119975() { // fn#119975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:364, offset: 0x0251cefe, size: 25 bytes, params: 1, frame: 11
return getScreens_119976(env0_0);
}
function getScreens_119976(a0) { // fn#119976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:368, offset: 0x0251cf17, size: 149 bytes, params: 2, frame: 18
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
const object = {'fullscreen': true, 'headerShown': false};
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const INVITE_ACCEPT = ImpressionNames.INVITE_ACCEPT;
object.impressionName = INVITE_ACCEPT;
const object4 = {};
object4.deeplink_attempt_id = a0.deeplinkAttemptId;
value = require(4098) /* metro dependency 4098: InviteCodeUtils */;
object4.invite_code = value.parseInviteCodeFromInviteKey(a0.code);
object.impressionProperties = object4;
object.render = render_119977;
return {[ACCEPT_INVITE]: object};
}
function getScreens_119976Render() { // fn#119977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:626, owner: getScreens_119976.render, offset: 0x0251cfac, size: 84 bytes, params: 1, frame: 16
const AcceptInviteContainer = importDefault(12033) /* metro dependency 12033: AcceptInviteContainer */;
const defaultImportProps = {...env0_0};
defaultImportProps['onPressClose'] = (require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).clearDisplayedInvite;
return <AcceptInviteContainer {...defaultImportProps} />;
function _fun119974() { // fn#119974, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
}
global.__d(_fun119971, 15651, [31, 9006, 33, 480, 4098, 12033, 10010, 5280,
2]) /* metro module 15651, dependencies: [31, 9006, 33, 480, 4098, 12033, 10010, 5280, 2] */;
@@ -1,81 +1,90 @@
/* Metro module 4080; source: modules/action_sheet/native/ActionSheetActionCreators.tsx; dependencies: [29, 31, 33, 694, 4081, 4082, 478, 1848, 2] */
import ObjectWithoutProperties from '../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
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 PlatformUtilsModule from '../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */
function _fun33467(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:6, offset: 0x0102f37b, size: 252 bytes, params: 8, frame: 19
var object2;
let env0_0 = require;
const env0_3 = ['impressionName', 'impressionProperties', 'backdropKind', 'disableHapticOnOpen', 'appEntryKey'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const closure = showActionSheet;
object2 = {openLazy: function(a0, a1, a2, a3) {
ReactModule;
const showActionSheet2 = showActionSheet;
object = {openLazy: function(a0, a1, a2, a3) {
var env0_0 = a1;
var env0_1 = a2;
var env0_2 = a3;
(a0 instanceof global.Promise ? a0.then(_fun33471) : a0()).then(_fun33472);
}, hideActionSheet: hideActionSheet, hideAllActionSheets: hideAllActionSheets,
setActionSheetZIndex: setActionSheetZIndex, resetActionSheetsForAppEntryKey: resetActionSheetsForAppEntryKey};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetActionCreators.tsx');
exports.default = object2;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetActionCreators.tsx');
exports.default = object;
exports.ACTION_SHEET_HEIGHT_HALF = 'start';
exports.ACTION_SHEET_HEIGHT_EXPANDED = 'expanded';
exports.showActionSheet = closure;
}
exports.showActionSheet = showActionSheet2;
function showActionSheet({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, disableHapticOnOpen, appEntryKey}) { // fn#33468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:245, offset: 0x0102f477, size: 126 bytes, params: 2, frame: 12
(Dispatcher).wait(_fun33469);
function _fun33469() { // fn#33469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:391, offset: 0x0102f4f5, size: 239 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (!disableHapticOnOpen) {
value2 = environment.__proto__;
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
}
if (PlatformUtilsModule.isAndroid()) {
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
}
(Dispatcher).dispatch({type: 'SHOW_ACTION_SHEET', content: content,
key: key, impressionName: impressionName, impressionProperties: impressionProperties,
backdropKind: backdropKind, stackingBehavior: stackingBehavior, appEntryKey: appEntryKey});
}
function showActionSheet({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, disableHapticOnOpen, appEntryKey}) { // fn#33468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:245, offset: 0x0102f477, size: 126 bytes, params: 2, frame: 12
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun33469);
}
function openLazy(a0, a1, a2, a3) { // fn#33470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:660, offset: 0x0102f5e4, size: 83 bytes, params: 5, frame: 13
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const Promise = global.Promise;
(a0 instanceof Promise ? a0.then(function(a0) {
return a0.default;
}) : a0()).then(_fun33472);
}
function hideActionSheet(a0) { // fn#33473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1034, offset: 0x0102f6ce, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ACTION_SHEET', key: a0});
}
function hideAllActionSheets() { // fn#33474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1105, offset: 0x0102f704, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ALL_ACTION_SHEETS'});
}
function setActionSheetZIndex(a0) { // fn#33475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1178, offset: 0x0102f735, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SET_ACTION_SHEET_Z_INDEX', zIndex: a0});
}
function resetActionSheetsForAppEntryKey(a0) { // fn#33476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1264, offset: 0x0102f76e, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY',
appEntryKey: a0});
}
function _fun33469() { // fn#33469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:391, offset: 0x0102f4f5, size: 239 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (!disableHapticOnOpen) {
value2 = environment.__proto__;
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
}
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
function openLazy(a0, a1, a2, a3) { // fn#33470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:660, offset: 0x0102f5e4, size: 83 bytes, params: 5, frame: 13
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const Promise = global.Promise;
(a0 instanceof Promise ? a0.then(function(a0) {
return a0.default;
}) : a0()).then(_fun33472);
function _fun33472(a0) { // fn#33472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:738, offset: 0x0102f637, size: 151 bytes, params: 2, frame: 20
const r10 = importDefault ?? ({});
showActionSheet({content: ((Component) => <Component {...env1_4(r10, env1_3)} />)(a0), key: require,
impressionName: r10.impressionName, impressionProperties: r10.impressionProperties,
backdropKind: r10.backdropKind, stackingBehavior: importAll, disableHapticOnOpen: r10.disableHapticOnOpen,
appEntryKey: r10.appEntryKey});
}
}
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SHOW_ACTION_SHEET', content: content,
key: key, impressionName: impressionName, impressionProperties: impressionProperties,
backdropKind: backdropKind, stackingBehavior: stackingBehavior, appEntryKey: appEntryKey});
function hideActionSheet(a0) { // fn#33473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1034, offset: 0x0102f6ce, size: 54 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'HIDE_ACTION_SHEET', key: a0});
}
function hideAllActionSheets() { // fn#33474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1105, offset: 0x0102f704, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'HIDE_ALL_ACTION_SHEETS'});
}
function setActionSheetZIndex(a0) { // fn#33475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1178, offset: 0x0102f735, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'SET_ACTION_SHEET_Z_INDEX', zIndex: a0});
}
function resetActionSheetsForAppEntryKey(a0) { // fn#33476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1264, offset: 0x0102f76e, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY',
appEntryKey: a0});
}
}
function _fun33472(a0) { // fn#33472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:738, offset: 0x0102f637, size: 151 bytes, params: 2, frame: 20
const r10 = importDefault ?? ({});
showActionSheet({content: ((Component) => <Component {...env1_4(r10, env1_3)} />)(a0), key: require,
impressionName: r10.impressionName, impressionProperties: r10.impressionProperties,
backdropKind: r10.backdropKind, stackingBehavior: importAll, disableHapticOnOpen: r10.disableHapticOnOpen,
appEntryKey: r10.appEntryKey});
function _fun33471(a0) { // fn#33471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:708, offset: 0x00fc474f, size: 10 bytes, params: 2, frame: 1
return a0.default;
}
global.__d(_fun33467, 4080, [29, 31, 33, 694, 4081, 4082, 478, 1848,
2]) /* metro module 4080, dependencies: [29, 31, 33, 694, 4081, 4082, 478, 1848, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 6276; source: modules/action_sheet/native/ActionSheetConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun49597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6454:6, offset: 0x011feab4, size: 280 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetConstants.tsx');
exports.ACTION_SHEET_START_HEIGHT_RATIO = 0.6;
exports.ACTION_SHEET_MAX_DYNAMIC_CONTENT_SIZE_RATIO = 0.85;
exports.ACTION_SHEET_BORDER_RADIUS_LEGACY = 8;
@@ -25,3 +27,4 @@ function _fun49597(global, require, importDefault, importAll, module, exports, d
exports.ACTION_SHEET_MINIMUM_BOTTOM_PADDING = 16;
}
global.__d(_fun49597, 6276, [2]) /* metro module 6276, dependencies: [2] */;
@@ -1,10 +1,14 @@
/* Metro module 6513; source: modules/action_sheet/native/ActionSheetContext.tsx; dependencies: [31, 2] */
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 */
function _fun51226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6691:6, offset: 0x0122c4e5, size: 106 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
let value = ReactModule;
value = value.createContext(null);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetContext.tsx');
exports.default = value;
}
global.__d(_fun51226, 6513, [31, 2]) /* metro module 6513, dependencies: [31, 2] */;
@@ -1,15 +1,18 @@
/* Metro module 3849; source: modules/action_sheet/native/ActionSheetStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun31752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:6, offset: 0x01002c62, size: 377 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const Array = global.Array;
let array = new Array();
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun31759(Store).displayName = 'ActionSheetStore';
array = new array(importDefault(694) /* metro dependency 694: Dispatcher */, {SHOW_ACTION_SHEET: function(a0) {
setContent(a0);
@@ -27,140 +30,150 @@ function _fun31752(global, require, importDefault, importAll, module, exports, d
}, SET_ACTION_SHEET_Z_INDEX: function(a0) {
env0_6 = a0.zIndex;
}, RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY: RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetStore.tsx');
exports.default = array;
}
function _isNativeReflectConstruct_31753() { // fn#31753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:148, offset: 0x01002ddb, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_31753() { // fn#31753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:148, offset: 0x01002ddb, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_31753_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_31753_isNativeReflectConstruct = function() {
return !!result;
})();
}
function setContent({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, appEntryKey}) { // fn#31756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:395, offset: 0x01002e39, size: 226 bytes, params: 2, frame: 19
var binding;
var value4;
var items3;
var value5;
var items2;
stackingBehavior = stackingBehavior === undefined ? 'replaceTopSheet' : stackingBehavior;
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
const object2 = {content: content, key: key, impressionName: impressionName,
impressionProperties: impressionProperties, backdropKind: backdropKind, appEntryKey: appEntryKey};
object2.zIndex = env0_6;
if (stackingBehavior === 'replaceAll') {
items2 = [object2];
} else if (stackingBehavior !== 'stack') {
value4 = env0_5.slice(0, -1).concat(object2);
} else if (env0_5.length < 3) {
binding = env0_5;
items3 = [];
value5 = arraySpread(items3, binding, 0, content);
items3[value5] = object2;
value5 + 1;
} else {
value4 = env0_5.slice(0, -1).concat(object2);
function setContent({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, appEntryKey}) { // fn#31756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:395, offset: 0x01002e39, size: 226 bytes, params: 2, frame: 19
var binding;
var value4;
var items3;
var value5;
var items2;
stackingBehavior = stackingBehavior === undefined ? 'replaceTopSheet' : stackingBehavior;
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
const object = {content: content, key: key, impressionName: impressionName,
impressionProperties: impressionProperties, backdropKind: backdropKind, appEntryKey: appEntryKey};
object.zIndex = env0_6;
if (stackingBehavior === 'replaceAll') {
items2 = [object];
} else if (stackingBehavior !== 'stack') {
value4 = env0_5.slice(0, -1).concat(object);
} else if (env0_5.length < 3) {
binding = env0_5;
items3 = [];
value5 = arraySpread(items3, binding, 0, content);
items3[value5] = object;
value5 + 1;
} else {
value4 = env0_5.slice(0, -1).concat(object);
}
}
}
function clearContent(a0) { // fn#31757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:730, offset: 0x01002f1b, size: 75 bytes, params: 2, frame: 15
const env0_0 = a0;
env0_5 = a0 == null ? env0_5.slice(0, -1) : env0_5;
env0_5 = env0_5.filter(_fun31758);
}
function clearContent(a0) { // fn#31757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:730, offset: 0x01002f1b, size: 75 bytes, params: 2, frame: 15
const env0_0 = a0;
env0_5 = a0 == null ? env0_5.slice(0, -1) : env0_5;
env0_5 = env0_5.filter(_fun31758);
function _fun31758({key}) { // fn#31758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:773, offset: 0x01002f66, size: 21 bytes, params: 2, frame: 2
return key !== env0_0;
}
function _fun31759(a0) { // fn#31759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:791, offset: 0x01002f7b, size: 137 bytes, params: 2, frame: 16
const closure = ActionSheetStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: function() {
}}, {key: 'impressionName', get: get_31766}, {key: 'impressionProperties', get: get_31767}, {key: 'backdropKind',
get: get_31768}]);
}
function RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY({appEntryKey}) { // fn#31775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:2184, offset: 0x0100322c, size: 67 bytes, params: 2, frame: 12
if (env0_5.filter(function({appEntryKey}) {
return appEntryKey !== appEntryKey;
}).length === env0_5.length) {
return false;
}
}
function ActionSheetStore(a0) { // fn#31760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:803, offset: 0x01003004, size: 172 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, ActionSheetStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(ActionSheetStore);
binding = env1_2;
if (_isNativeReflectConstruct_31753()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
function _fun31759(a0) { // fn#31759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:791, offset: 0x01002f7b, size: 137 bytes, params: 2, frame: 16
const ActionSheetStore2 = ActionSheetStore;
Inherits(ActionSheetStore2, a0);
return CreateClass(ActionSheetStore2, [{key: 'initialize', value: function() {
}}, {key: 'impressionName', get: get_31766}, {key: 'impressionProperties', get: get_31767}, {key: 'backdropKind',
get: get_31768}]);
function ActionSheetStore(a0) { // fn#31760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:803, offset: 0x01003004, size: 172 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, ActionSheetStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(ActionSheetStore);
binding = env1_2;
if (_isNativeReflectConstruct_31753()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.getContent = getContent;
value.getStack = getStack;
value.isOpen = isOpen;
value.getKey = getKey;
return value;
function getContent() { // fn#31761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1050, owner: ActionSheetStore.getContent, offset: 0x010030b0, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.content;
}
function getStack() { // fn#31762, owner: ActionSheetStore.getStack, offset: 0x010030da, size: 9 bytes, params: 1, frame: 1
return env2_5;
}
function isOpen() { // fn#31763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1131, owner: ActionSheetStore.isOpen, offset: 0x010030e3, size: 20 bytes, params: 1, frame: 2
return env2_5.length > 0;
}
function getKey() { // fn#31764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1155, owner: ActionSheetStore.getKey, offset: 0x010030f7, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.key;
}
}
function get_31766() { // fn#31766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1321, offset: 0x01003121, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionName;
}
function get_31767() { // fn#31767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1422, offset: 0x0100314c, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionProperties;
}
function get_31768() { // fn#31768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1521, offset: 0x01003177, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.backdropKind;
}
}
value = binding(this, r0);
value.getContent = getContent;
value.getStack = getStack;
value.isOpen = isOpen_31763;
value.getKey = getKey_31764;
return value;
}
function get_31766() { // fn#31766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1321, offset: 0x01003121, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionName;
}
function RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY({appEntryKey}) { // fn#31775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:2184, offset: 0x0100322c, size: 67 bytes, params: 2, frame: 12
if (env0_5.filter(function({appEntryKey}) {
return appEntryKey !== appEntryKey;
}).length === env0_5.length) {
return false;
}
}
function get_31767() { // fn#31767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1422, offset: 0x0100314c, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionProperties;
}
function get_31768() { // fn#31768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1521, offset: 0x01003177, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.backdropKind;
}
function ActionSheetStoreGetContent() { // fn#31761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1050, owner: ActionSheetStore.getContent, offset: 0x010030b0, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.content;
}
function ActionSheetStoreIsOpen() { // fn#31763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1131, owner: ActionSheetStore.isOpen, offset: 0x010030e3, size: 20 bytes, params: 1, frame: 2
return env2_5.length > 0;
}
function ActionSheetStoreGetKey() { // fn#31764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1155, owner: ActionSheetStore.getKey, offset: 0x010030f7, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.key;
}
global.__d(_fun31752, 3849, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 3849, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,11 +1,17 @@
/* Metro module 12072; source: modules/action_sheet/native/PanGestureAnimations.tsx; dependencies: [1305, 4577, 4504, 4017, 5321, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as Module05321Module from '../../../by-id/module-05321.js'; /* Metro dependency 5321 */
function _fun92743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:6, offset: 0x02097980, size: 349 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const object = {duration: 500};
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
object.easing = STANDARD_EASING;
const object2 = {duration: 500};
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
object2.easing = STANDARD_EASING;
const env0_4 = {code: "function getNearestValue_PanGestureAnimationsTsx1(array,measure,velocity=0){const unitVector=velocity<0?-1:velocity>0?1:0;function getSortedByMeasure(array,measure){'worklet';const sorted=new Array(...array).sort(function(left,right){const al=Math.abs(left-measure);const ar=Math.abs(right-measure);return al<ar?-1:al>ar?1:0;});return sorted;}if(array.length===0){return measure;}const sorted=getSortedByMeasure(array,measure);if(unitVector!==0){var _sorted$find;return(_sorted$find=sorted.find(function(value){const result=unitVector<0?measure>value:measure<value;return result;}))!==null&&_sorted$find!==void 0?_sorted$find:sorted[0];}return sorted[0];}"};
const env0_5 = {code: 'function getSortedByMeasure_PanGestureAnimationsTsx2(array,measure){const sorted=new Array(...array).sort(function(left,right){const al=Math.abs(left-measure);const ar=Math.abs(right-measure);return al<ar?-1:al>ar?1:0;});return sorted;}'};
const env0_6 = _fun92744();
@@ -17,261 +23,263 @@ function _fun92743(global, require, importDefault, importAll, module, exports, d
const env0_12 = {code: 'function PanGestureAnimationsTsx6(event,success){const{start,translate,snapPositions,velocity,swipeVelocityThreshold,getNearestValue,withPanGestureSpring,withPanGestureTiming,onEnd}=this.__closure;start.set(translate.get());if(snapPositions!=null){var _onEnd;const swipeVelocity=Math.abs(velocity.get())>swipeVelocityThreshold?velocity.get():0;const snapPoint=getNearestValue(snapPositions.get(),translate.get(),swipeVelocity);if(swipeVelocity!==0){translate.set(withPanGestureSpring(snapPoint,velocity.get()));}else{translate.set(withPanGestureTiming(snapPoint));}(_onEnd=onEnd)===null||_onEnd===void 0||_onEnd(event,{success:success,destination:snapPoint,startPosition:start.get()});}}'};
const env0_13 = {code: 'function PanGestureAnimationsTsx7(event){const{start,vertical,lowerBounds,upperBounds,velocity,translate,onChange}=this.__closure;var _onChange;const{velocityY:velocityY,translationY:translationY,velocityX:velocityX,translationX:translationX}=event;let next=start.get()+(vertical?translationY:translationX);if(lowerBounds!=null&&next<lowerBounds){next=lowerBounds;}else if(upperBounds!=null&&next>upperBounds){next=upperBounds;}velocity.set(vertical?velocityY:velocityX);translate.set(next);(_onChange=onChange)===null||_onChange===void 0||_onChange(event,{destination:translate.get(),startPosition:start.get()});}'};
const env0_14 = {code: 'function PanGestureAnimationsTsx8(event){const{start,translate,velocity,isGestureInProgress,onStart}=this.__closure;var _onStart;start.set(translate.get());velocity.set(0);if(isGestureInProgress!=null){isGestureInProgress.set(true);}(_onStart=onStart)===null||_onStart===void 0||_onStart(event,{destination:start.get(),startPosition:start.get()});}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/PanGestureAnimations.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/PanGestureAnimations.tsx');
exports.default = usePanGesture;
exports.SPRING_CONFIG = {'damping': 30, 'mass': 1, 'stiffness': 250, 'overshootClamping': true,
'restSpeedThreshold': 0.001, 'restDisplacementThreshold': 0.001};
exports.TIMING_CONFIG = object;
exports.TIMING_CONFIG = object2;
exports.withPanGestureSpring = value;
exports.withPanGestureTiming = value2;
}
function _fun92744() { // fn#92744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1173, offset: 0x02097add, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r2;
var r4;
var value = a2;
var env0_0 = a1;
r2 = value !== undefined ? value : 0;
var env0_1 = undefined;
value = 0;
r4 = r2 < value ? -1 : r2 > value ? 1 : value;
env0_1 = r4;
var value4 = _fun92746();
if (value === a0.length) {
return a1;
}
var value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
};
closure.__closure = {};
closure.__workletHash = 4186929947751;
closure.__initData = env0_4;
return closure;
function getNearestValue(a0, a1) { // fn#92745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1204, offset: 0x02097b0d, size: 123 bytes, params: 3, frame: 17
let value = a2;
const env0_0 = a1;
const r2 = value !== undefined ? value : 0;
value = 0;
const r4 = r2 < value ? -1 : r2 > value ? 1 : value;
const value4 = _fun92746();
if (value === a0.length) {
return a1;
}
const value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
function _fun92746() { // fn#92746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1245, offset: 0x02097b88, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r4;
var env0_0 = a1;
var Array = global.Array;
var items = [];
arraySpread(items, a0, 0, r4);
return apply(Array, items, 0).sort(_fun92748);
};
closure.__closure = {};
closure.__workletHash = 9192847351523;
closure.__initData = env2_5;
return closure;
function getSortedByMeasure(a0, a1) { // fn#92747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1279, offset: 0x02097bb8, size: 63 bytes, params: 3, frame: 15
const env0_0 = a1;
const Array = global.Array;
const items2 = [];
arraySpread(items2, a0, 0, undefined);
return apply(Array, items2, 0).sort(_fun92748);
function _fun92748(a0, a1) { // fn#92748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1322, offset: 0x02097bf7, size: 87 bytes, params: 3, frame: 13
let Math = global.Math;
const value = Math.abs(a0 - require);
Math = global.Math;
const value2 = Math.abs(a1 - require);
return value < value2 ? -1 : 0 > value2 ? 1 : 0;
}
}
}
function _fun92749(a0) { // fn#92749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1603, offset: 0x02097c4e, size: 36 bytes, params: 2, frame: 4
return env0_1 < 0 ? require > a0 : require < a0;
}
function _fun92744() { // fn#92744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1173, offset: 0x02097add, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r2;
var r4;
var value = a2;
var env0_0 = a1;
r2 = value !== undefined ? value : 0;
var env0_1 = undefined;
value = 0;
r4 = r2 < value ? -1 : r2 > value ? 1 : value;
env0_1 = r4;
var value4 = _fun92746();
if (value === a0.length) {
return a1;
}
var value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
};
closure.__closure = {};
closure.__workletHash = 4186929947751;
closure.__initData = env0_4;
return closure;
}
function _fun92750() { // fn#92750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2041, offset: 0x02097c72, size: 88 bytes, params: 1, frame: 14
const closure = withPanGestureSpring;
const object2 = {};
object2.SPRING_CONFIG = env0_2;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
closure.__closure = object2;
closure.__workletHash = 12189464558811;
closure.__initData = env0_7;
return closure;
}
}
function _fun92752() { // fn#92752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2604, offset: 0x02097d1b, size: 88 bytes, params: 1, frame: 14
const closure = withPanGestureTiming;
const object2 = {};
object2.TIMING_CONFIG = env0_3;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
closure.__closure = object2;
closure.__workletHash = 7636074551896;
closure.__initData = env0_9;
return closure;
}
function usePanGesture({lowerBounds, upperBounds, snapPositions, swipeVelocityThreshold, translate, onStart, onChange, onEnd, vertical, isGestureInProgress}) { // fn#92754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:4831, offset: 0x02097dac, size: 554 bytes, params: 2, frame: 27
swipeVelocityThreshold = swipeVelocityThreshold === undefined ? 300 : swipeVelocityThreshold;
const env0_6 = onChange;
vertical = vertical === undefined || vertical;
const env0_8 = vertical;
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const env0_10 = value2;
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const env0_11 = value3;
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
const value4 = Gesture.Pan();
const onStart2 = value4.onStart;
let closure = usePanGestureN;
closure.__closure = {start: value2, translate: translate, velocity: value3,
isGestureInProgress: isGestureInProgress, onStart: onStart};
closure.__workletHash = 7008504704609;
closure.__initData = env0_14;
const value5 = Reflect.apply(onStart2, value4, [closure]);
const onChange2 = value5.onChange;
closure = usePanGestureC;
closure.__closure = {start: value2, vertical: vertical, lowerBounds: lowerBounds, upperBounds: upperBounds,
velocity: value3, translate: translate, onChange: onChange};
closure.__workletHash = 15962975179371;
closure.__initData = env0_13;
const value6 = Reflect.apply(onChange2, value5, [closure]);
const onEnd2 = value6.onEnd;
closure = usePanGestureT;
closure.__closure = {start: value2, translate: translate, snapPositions: snapPositions, velocity: value3,
swipeVelocityThreshold: swipeVelocityThreshold, getNearestValue: env0_6, withPanGestureSpring: env0_8,
withPanGestureTiming: env0_10, onEnd: onEnd};
closure.__workletHash = 15665959414289;
closure.__initData = env0_12;
const value7 = Reflect.apply(onEnd2, value6, [closure]);
const onFinalize = value7.onFinalize;
closure = function() {
if (isGestureInProgress != null) {
isGestureInProgress.set(false);
function _fun92750() { // fn#92750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2041, offset: 0x02097c72, size: 88 bytes, params: 1, frame: 14
const withPanGestureSpring2 = withPanGestureSpring;
const object = {};
object.SPRING_CONFIG = env0_2;
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
withPanGestureSpring2.__closure = object;
withPanGestureSpring2.__workletHash = 12189464558811;
withPanGestureSpring2.__initData = env0_7;
return withPanGestureSpring2;
function withPanGestureSpring(a0, a1, a2) { // fn#92751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2077, offset: 0x02097cca, size: 81 bytes, params: 4, frame: 14
const r0 = a2 ?? env1_2;
value = environment.__proto__;
value = require(4577) /* metro dependency 4577: spring */;
const withSpring = value.withSpring;
const object = {};
copyDataProperties(object, r0, undefined);
object['velocity'] = a1;
return Reflect.apply(withSpring, value, [a0, object]);
}
};
closure.__closure = {isGestureInProgress: isGestureInProgress};
closure.__workletHash = 11128244755178;
closure.__initData = env0_11;
return Reflect.apply(onFinalize, value7, [closure]);
}
function getNearestValue(a0, a1) { // fn#92745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1204, offset: 0x02097b0d, size: 123 bytes, params: 3, frame: 17
let value = a2;
const env0_0 = a1;
const r2 = value !== undefined ? value : 0;
value = 0;
const r4 = r2 < value ? -1 : r2 > value ? 1 : value;
const value4 = _fun92746();
if (value === a0.length) {
return a1;
}
const value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
}
function withPanGestureSpring(a0, a1, a2) { // fn#92751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2077, offset: 0x02097cca, size: 81 bytes, params: 4, frame: 14
const r0 = a2 ?? env1_2;
value = environment.__proto__;
value = require(4577) /* metro dependency 4577: spring */;
const withSpring = value.withSpring;
const object2 = {};
copyDataProperties(object2, r0, undefined);
object2['velocity'] = a1;
return Reflect.apply(withSpring, value, [a0, object2]);
}
function withPanGestureTiming(a0, a1) { // fn#92753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2640, offset: 0x02097d73, size: 57 bytes, params: 3, frame: 13
const r3 = a1 ?? env1_3;
value = environment.__proto__;
return (require(4504) /* metro dependency 4504: timing */).withTiming(a0, r3);
}
function usePanGestureN(a0) { // fn#92755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5115, owner: usePanGesture.N, offset: 0x02097fd6, size: 137 bytes, params: 2, frame: 14
var object2;
let binding = env0_10;
const set = binding.set;
const translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
env0_11.set(0);
if (isGestureInProgress != null) {
isGestureInProgress.set(true);
}
let onStartBinding = onStart;
if (onStartBinding != null) {
onStartBinding = onStart;
object2 = {};
binding = env0_10;
object2.destination = binding.get();
binding = env0_10;
object2.startPosition = binding.get();
onStartBinding(a0, object2);
}
}
function usePanGestureC(a0) { // fn#92756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5367, owner: usePanGesture.C, offset: 0x0209805f, size: 207 bytes, params: 2, frame: 18
var object2;
const velocityY = a0.velocityY;
const translationY = a0.translationY;
const velocityX = a0.velocityX;
const translationX = a0.translationX;
let binding = env0_10;
const value3 = binding.get() + (vertical ? translationY : translationX);
const r5 = lowerBounds == null ? upperBounds != null && value3 > upperBounds ? upperBounds : value3 : value3 < lowerBounds ? lowerBounds : upperBounds != null && value3 > upperBounds ? upperBounds : value3;
binding = env0_11;
binding.set(vertical ? velocityY : velocityX);
translate.set(r5);
let onChangeBinding = onChange;
if (onChangeBinding != null) {
onChangeBinding = onChange;
object2 = {};
object2.destination = translate.get();
object2.startPosition = env0_10.get();
onChangeBinding(a0, object2);
}
}
function usePanGestureT(a0, a1) { // fn#92757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5734, owner: usePanGesture.T, offset: 0x0209812e, size: 269 bytes, params: 3, frame: 19
var r5;
var Math;
var abs;
var value2;
var swipeVelocityThresholdBinding;
var value3;
var value5;
var value8;
var binding2;
var onEndBinding;
var object2;
let binding = env0_10;
let set = binding.set;
let translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
if (snapPositions != null) {
Math = global.Math;
abs = Math.abs;
binding = env0_11;
value2 = Reflect.apply(abs, Math, [binding.get()]);
swipeVelocityThresholdBinding = swipeVelocityThreshold;
value3 = 0;
r5 = value2 > swipeVelocityThresholdBinding ? env0_11.get() : value3;
value5 = environment.__proto__;
binding = env1_6;
value8 = binding(snapPositions.get(), translate.get(), r5);
if (value3 !== r5) {
translateBinding = translate;
set = translateBinding.set;
binding = env1_8;
binding2 = env0_11;
Reflect.apply(set, translateBinding, [binding(value8, binding2.get())]);
} else {
translate.set(env1_10(value8));
}
onEndBinding = onEnd;
if (onEndBinding != null) {
onEndBinding = onEnd;
object2 = {success: a1, destination: value8};
object2.startPosition = env0_10.get();
onEndBinding(a0, object2);
function _fun92752() { // fn#92752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2604, offset: 0x02097d1b, size: 88 bytes, params: 1, frame: 14
const withPanGestureTiming2 = withPanGestureTiming;
const object = {};
object.TIMING_CONFIG = env0_3;
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
withPanGestureTiming2.__closure = object;
withPanGestureTiming2.__workletHash = 7636074551896;
withPanGestureTiming2.__initData = env0_9;
return withPanGestureTiming2;
function withPanGestureTiming(a0, a1) { // fn#92753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2640, offset: 0x02097d73, size: 57 bytes, params: 3, frame: 13
const r3 = a1 ?? env1_3;
value = environment.__proto__;
return (TimingModule).withTiming(a0, r3);
}
}
function usePanGesture({lowerBounds, upperBounds, snapPositions, swipeVelocityThreshold, translate, onStart, onChange, onEnd, vertical, isGestureInProgress}) { // fn#92754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:4831, offset: 0x02097dac, size: 554 bytes, params: 2, frame: 27
swipeVelocityThreshold = swipeVelocityThreshold === undefined ? 300 : swipeVelocityThreshold;
const onChange3 = onChange;
vertical = vertical === undefined || vertical;
const vertical2 = vertical;
const value2 = (ReanimatedRexportModule).useSharedValue(0);
const env0_10 = value2;
const value3 = (ReanimatedRexportModule).useSharedValue(0);
const env0_11 = value3;
const Gesture = (Module05321Module).Gesture;
const value4 = Gesture.Pan();
const onStart2 = value4.onStart;
let closure = usePanGestureN;
closure.__closure = {start: value2, translate: translate, velocity: value3,
isGestureInProgress: isGestureInProgress, onStart: onStart};
closure.__workletHash = 7008504704609;
closure.__initData = env0_14;
const value5 = Reflect.apply(onStart2, value4, [closure]);
const onChange2 = value5.onChange;
closure = usePanGestureC;
closure.__closure = {start: value2, vertical: vertical, lowerBounds: lowerBounds, upperBounds: upperBounds,
velocity: value3, translate: translate, onChange: onChange};
closure.__workletHash = 15962975179371;
closure.__initData = env0_13;
const value6 = Reflect.apply(onChange2, value5, [closure]);
const onEnd2 = value6.onEnd;
closure = usePanGestureT;
closure.__closure = {start: value2, translate: translate, snapPositions: snapPositions, velocity: value3,
swipeVelocityThreshold: swipeVelocityThreshold, getNearestValue: onChange3, withPanGestureSpring: vertical2,
withPanGestureTiming: env0_10, onEnd: onEnd};
closure.__workletHash = 15665959414289;
closure.__initData = env0_12;
const value7 = Reflect.apply(onEnd2, value6, [closure]);
const onFinalize = value7.onFinalize;
closure = function() {
if (isGestureInProgress != null) {
isGestureInProgress.set(false);
}
};
closure.__closure = {isGestureInProgress: isGestureInProgress};
closure.__workletHash = 11128244755178;
closure.__initData = env0_11;
return Reflect.apply(onFinalize, value7, [closure]);
function usePanGestureN(a0) { // fn#92755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5115, owner: usePanGesture.N, offset: 0x02097fd6, size: 137 bytes, params: 2, frame: 14
var object;
let binding = env0_10;
const set = binding.set;
const translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
env0_11.set(0);
if (isGestureInProgress != null) {
isGestureInProgress.set(true);
}
let onStartBinding = onStart;
if (onStartBinding != null) {
onStartBinding = onStart;
object = {};
binding = env0_10;
object.destination = binding.get();
binding = env0_10;
object.startPosition = binding.get();
onStartBinding(a0, object);
}
}
function usePanGestureC(a0) { // fn#92756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5367, owner: usePanGesture.C, offset: 0x0209805f, size: 207 bytes, params: 2, frame: 18
var object;
const velocityY = a0.velocityY;
const translationY = a0.translationY;
const velocityX = a0.velocityX;
const translationX = a0.translationX;
let binding = env0_10;
const value3 = binding.get() + (vertical ? translationY : translationX);
const r5 = lowerBounds == null ? upperBounds != null && value3 > upperBounds ? upperBounds : value3 : value3 < lowerBounds ? lowerBounds : upperBounds != null && value3 > upperBounds ? upperBounds : value3;
binding = env0_11;
binding.set(vertical ? velocityY : velocityX);
translate.set(r5);
let onChangeBinding = onChange;
if (onChangeBinding != null) {
onChangeBinding = onChange;
object = {};
object.destination = translate.get();
object.startPosition = env0_10.get();
onChangeBinding(a0, object);
}
}
function usePanGestureT(a0, a1) { // fn#92757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5734, owner: usePanGesture.T, offset: 0x0209812e, size: 269 bytes, params: 3, frame: 19
var r5;
var Math;
var abs;
var value2;
var swipeVelocityThresholdBinding;
var value3;
var value5;
var value8;
var binding2;
var onEndBinding;
var object;
let binding = env0_10;
let set = binding.set;
let translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
if (snapPositions != null) {
Math = global.Math;
abs = Math.abs;
binding = env0_11;
value2 = Reflect.apply(abs, Math, [binding.get()]);
swipeVelocityThresholdBinding = swipeVelocityThreshold;
value3 = 0;
r5 = value2 > swipeVelocityThresholdBinding ? env0_11.get() : value3;
value5 = environment.__proto__;
binding = env1_6;
value8 = binding(snapPositions.get(), translate.get(), r5);
if (value3 !== r5) {
translateBinding = translate;
set = translateBinding.set;
binding = env1_8;
binding2 = env0_11;
Reflect.apply(set, translateBinding, [binding(value8, binding2.get())]);
} else {
translate.set(env1_10(value8));
}
onEndBinding = onEnd;
if (onEndBinding != null) {
onEndBinding = onEnd;
object = {success: a1, destination: value8};
object.startPosition = env0_10.get();
onEndBinding(a0, object);
}
}
}
}
}
function _fun92746() { // fn#92746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1245, offset: 0x02097b88, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r4;
var env0_0 = a1;
var Array = global.Array;
var items = [];
arraySpread(items, a0, 0, r4);
return apply(Array, items, 0).sort(_fun92748);
};
closure.__closure = {};
closure.__workletHash = 9192847351523;
closure.__initData = env2_5;
return closure;
}
function _fun92749(a0) { // fn#92749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1603, offset: 0x02097c4e, size: 36 bytes, params: 2, frame: 4
return env0_1 < 0 ? require > a0 : require < a0;
}
function getSortedByMeasure(a0, a1) { // fn#92747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1279, offset: 0x02097bb8, size: 63 bytes, params: 3, frame: 15
const env0_0 = a1;
const Array = global.Array;
const items2 = [];
arraySpread(items2, a0, 0, undefined);
return apply(Array, items2, 0).sort(_fun92748);
}
function _fun92748(a0, a1) { // fn#92748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1322, offset: 0x02097bf7, size: 87 bytes, params: 3, frame: 13
let Math = global.Math;
const value = Math.abs(a0 - require);
Math = global.Math;
const value2 = Math.abs(a1 - require);
return value < value2 ? -1 : 0 > value2 ? 1 : 0;
}
global.__d(_fun92743, 12072, [1305, 4577, 4504, 4017, 5321,
2]) /* metro module 12072, dependencies: [1305, 4577, 4504, 4017, 5321, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 9213; source: modules/action_sheet/native/ShowShareActionSheetUtils.tsx; dependencies: [661, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun72076(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9398:6, offset: 0x01d390ad, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ShowShareActionSheetUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ShowShareActionSheetUtils.tsx');
exports.trackAppClickInNativeShareSheet = function(a0, a1) {
var defaultImport = importDefault(dependencyMap[1]);
var NATIVE_SHARE_SHEET_APP_CLICKED = AnalyticEvents.NATIVE_SHARE_SHEET_APP_CLICKED;
@@ -11,3 +13,4 @@ function _fun72076(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun72076, 9213, [661, 683, 2]) /* metro module 9213, dependencies: [661, 683, 2] */;
@@ -1,9 +1,13 @@
/* Metro module 15267; source: modules/action_sheet/native/components/ActionSheetPresenter.tsx; dependencies: [2, 12766] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActionSheetPresenterNativeModule from '../../../../design/components/Sheet/native/ActionSheetPresenter.native.tsx'; /* Metro dependency 12766 */
function _fun116728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15464:6, offset: 0x02495046, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
const ActionSheetPresenter = (require(12766) /* metro dependency 12766: ActionSheetPresenterNative */).ActionSheetPresenter;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
const ActionSheetPresenter = (ActionSheetPresenterNativeModule).ActionSheetPresenter;
exports.default = ActionSheetPresenter;
}
global.__d(_fun116728, 15267, [2, 12766]) /* metro module 15267, dependencies: [2, 12766] */;
@@ -1,9 +1,13 @@
/* Metro module 11710; source: modules/action_sheet/native/components/BottomSheetTextInput.tsx; dependencies: [2, 9101] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BottomSheetTextInputNativeModule from '../../../../design/components/Sheet/native/BottomSheetTextInput.native.tsx'; /* Metro dependency 9101 */
function _fun89775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11896:6, offset: 0x0201dd0d, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
const BottomSheetTextInput = (require(9101) /* metro dependency 9101: BottomSheetTextInputNative */).BottomSheetTextInput;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
const BottomSheetTextInput = (BottomSheetTextInputNativeModule).BottomSheetTextInput;
exports.default = BottomSheetTextInput;
}
global.__d(_fun89775, 11710, [2, 9101]) /* metro module 11710, dependencies: [2, 9101] */;
@@ -1,29 +1,36 @@
/* Metro module 11205; source: modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetHeaderPressableTextNativeModule from '../../../../design/components/Sheet/native/ActionSheetHeaderPressableText.native.tsx'; /* Metro dependency 9067 */
function _fun85621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:6, offset: 0x01f75f5b, size: 199 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 env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({headerContainer: {'paddingVertical': 12,
ReactModule;
const env0_4 = (CreateStylesModule).createStyles({headerContainer: {'paddingVertical': 12,
'paddingHorizontal': 16, 'alignItems': 'flex-start'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
exports.default = ContextMenuSubmenuActionSheetHeader;
function ContextMenuSubmenuActionSheetHeader({onBack}) { // fn#85622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:363, offset: 0x01f76022, size: 158 bytes, params: 2, frame: 21
const styles = useStyles();
const ActionSheetHeaderPressableText = (ActionSheetHeaderPressableTextNativeModule).ActionSheetHeaderPressableText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.headerContainer}>
<ActionSheetHeaderPressableText
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
onPress={onBack ?? (function() {
})}
/>
</View>
);
}
}
function ContextMenuSubmenuActionSheetHeader({onBack}) { // fn#85622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:363, offset: 0x01f76022, size: 158 bytes, params: 2, frame: 21
const styles = useStyles();
const ActionSheetHeaderPressableText = (require(9067) /* metro dependency 9067: ActionSheetHeaderPressableTextNative */).ActionSheetHeaderPressableText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.headerContainer}>
<ActionSheetHeaderPressableText
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
onPress={onBack ?? (function() {
})}
/>
</View>
);
}
global.__d(_fun85621, 11205, [31, 27, 33, 4501, 9067, 1244,
2]) /* metro module 11205, dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */;
@@ -1,110 +1,123 @@
/* Metro module 11409; source: modules/action_sheet/native/components/EmojiRow.tsx; dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AnalyticsLocation from '../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetConstantsModule from '../ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as ReactionActionCreatorsModule from '../../../reactions/ReactionActionCreators.tsx'; /* Metro dependency 7151 */
import * as UseEmojisForReactionRowModule from '../../../reactions/native/useEmojisForReactionRow.tsx'; /* Metro dependency 10998 */
import * as EmojiReactionRowButtonModule from '../../../reactions/native/EmojiReactionRowButton.tsx'; /* Metro dependency 11000 */
import * as DoubleTapEmojiEditNudgeModule from '../../../double_tap_to_react/native/DoubleTapEmojiEditNudge.tsx'; /* Metro dependency 11410 */
function _fun87405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:6, offset: 0x01fbd6cb, size: 252 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 env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emojiRowContainer: {'flexDirection': 'column',
ReactModule;
const env0_7 = (CreateStylesModule).createStyles({emojiRowContainer: {'flexDirection': 'column',
'justifyContent': 'center', 'alignItems': 'center'}, emojiRow: {'height': 52, 'alignSelf': 'stretch',
'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center', 'marginTop': 0,
'marginBottom': 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/EmojiRow.tsx');
exports.default = _default_87406;
}
function _default_87406({message, channel}) { // fn#87406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:440, offset: 0x01fbd7c7, size: 527 bytes, params: 2, frame: 24
let useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
const env0_2 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_FONT_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
const env0_3 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_FONT_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (Native).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
const env0_4 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
const value2 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_MIN_SPACING = (Native).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
const value4 = (UseEmojisForReactionRowModule).useEmojisForReactionRow(channel,
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_MIN_SPACING]));
const styles = useStyles();
const value5 = value4.map(_fun87407);
const EmojiPickerRowButton = (EmojiReactionRowButtonModule).EmojiPickerRowButton;
const view = (
<View style={styles.emojiRow}>
{value5}
<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} />
</View>
);
const DoubleTapEmojiEditNudge = (DoubleTapEmojiEditNudgeModule).DoubleTapEmojiEditNudge;
const MESSAGE_LONG_PRESS_MENU = (AnalyticsLocation).MESSAGE_LONG_PRESS_MENU;
return (
<View style={styles.emojiRowContainer}>
{view}
<DoubleTapEmojiEditNudge location={MESSAGE_LONG_PRESS_MENU} />
</View>
);
function _fun87407(a0, a1) { // fn#87407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:966, offset: 0x01fbd9d6, size: 134 bytes, params: 3, frame: 20
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const EmojiReactionRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiReactionRowButton;
const emojiReactionRowButtonProps = {emoji: a0, onPress: onPress_87408, emojiSize: env0_2, emojiFontSize: env0_3,
emojiLineHeight: env0_4, emojiContainerSize: JsxRuntimeModule.jsx};
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
const getEmojiKey = value.getEmojiKey;
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
function onPress_87408() { // fn#87408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1024, offset: 0x01fbda5c, size: 240 bytes, params: 1, frame: 22
var moduleValue;
var moduleValue2;
var addReaction;
var channel_id;
var id;
var moduleValue3;
var focusMessage;
let value = environment.__proto__;
const messageBinding = message;
const binding = env0_0;
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
if (binding != null) {
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
moduleValue2 = require(7151) /* metro dependency 7151: ReactionActionCreators */;
addReaction = moduleValue2.addReaction;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
moduleValue3 = require(3795) /* metro dependency 3795: ReactionUtils */;
Reflect.apply(addReaction, moduleValue2, [channel_id, id, moduleValue3.toReactionEmoji(binding)]);
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
focusMessage = value.focusMessage;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
Reflect.apply(focusMessage, value, [{channelId: channel_id, messageId: id}]);
value = require(8217) /* metro dependency 8217: DoubleTapToReactUtils */;
value.initializeDoubleTapEmojiAndUpsell(binding);
}
}
function _default_87406({message, channel}) { // fn#87406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:440, offset: 0x01fbd7c7, size: 527 bytes, params: 2, frame: 24
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
let useToken = useTokenModule.useToken;
const EMOJI_ROW_EMOJI_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
const env0_2 = Reflect.apply(useToken, useTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
const moduleValue2 = useTokenModule;
useToken = moduleValue2.useToken;
const EMOJI_ROW_EMOJI_FONT_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
const env0_3 = Reflect.apply(useToken, moduleValue2, [EMOJI_ROW_EMOJI_FONT_SIZE]);
const moduleValue3 = useTokenModule;
useToken = moduleValue3.useToken;
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
const env0_4 = Reflect.apply(useToken, moduleValue3, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
const moduleValue4 = useTokenModule;
useToken = moduleValue4.useToken;
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
const value2 = Reflect.apply(useToken, moduleValue4, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
const moduleValue5 = useTokenModule;
useToken = moduleValue5.useToken;
const EMOJI_ROW_EMOJI_MIN_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
const value4 = (require(10998) /* metro dependency 10998: useEmojisForReactionRow */).useEmojisForReactionRow(channel,
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, moduleValue5, [EMOJI_ROW_EMOJI_MIN_SPACING]));
const styles = useStyles();
const value5 = value4.map(_fun87407);
const EmojiPickerRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiPickerRowButton;
const view = <View style={styles.emojiRow}>{value5}<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} /></View>;
const DoubleTapEmojiEditNudge = (require(11410) /* metro dependency 11410: DoubleTapEmojiEditNudge */).DoubleTapEmojiEditNudge;
const MESSAGE_LONG_PRESS_MENU = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).MESSAGE_LONG_PRESS_MENU;
return (
<View style={styles.emojiRowContainer}>
{view}
<DoubleTapEmojiEditNudge location={MESSAGE_LONG_PRESS_MENU} />
</View>
);
}
}
function _fun87407(a0, a1) { // fn#87407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:966, offset: 0x01fbd9d6, size: 134 bytes, params: 3, frame: 20
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const EmojiReactionRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiReactionRowButton;
const emojiReactionRowButtonProps = {emoji: a0, onPress: onPress_87408, emojiSize: env0_2, emojiFontSize: env0_3,
emojiLineHeight: env0_4, emojiContainerSize: env0_5};
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
const getEmojiKey = value.getEmojiKey;
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
}
function _default_87406OnPress() { // fn#87409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1486, owner: _default_87406.onPress, offset: 0x01fbdb4c, size: 80 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(9837) /* metro dependency 9837: ReactionUtils */;
const handleAddNewReactions = value.handleAddNewReactions;
const channelBinding = channel;
const id = message.id;
const ReactionLocations = (ReactionActionCreatorsModule).ReactionLocations;
const MESSAGE = ReactionLocations.MESSAGE;
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
}
function _default_87406OnPress() { // fn#87409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1486, owner: _default_87406.onPress, offset: 0x01fbdb4c, size: 80 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(9837) /* metro dependency 9837: ReactionUtils */;
const handleAddNewReactions = value.handleAddNewReactions;
const channelBinding = channel;
const id = message.id;
const ReactionLocations = (require(7151) /* metro dependency 7151: ReactionActionCreators */).ReactionLocations;
const MESSAGE = ReactionLocations.MESSAGE;
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
}
function onPress_87408() { // fn#87408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1024, offset: 0x01fbda5c, size: 240 bytes, params: 1, frame: 22
var moduleValue;
var moduleValue2;
var addReaction;
var channel_id;
var id;
var moduleValue3;
var focusMessage;
let value = environment.__proto__;
const messageBinding = message;
const binding = env0_0;
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
if (binding != null) {
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
moduleValue2 = require(7151) /* metro dependency 7151: ReactionActionCreators */;
addReaction = moduleValue2.addReaction;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
moduleValue3 = require(3795) /* metro dependency 3795: ReactionUtils */;
Reflect.apply(addReaction, moduleValue2, [channel_id, id, moduleValue3.toReactionEmoji(binding)]);
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
focusMessage = value.focusMessage;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
Reflect.apply(focusMessage, value, [{channelId: channel_id, messageId: id}]);
value = require(8217) /* metro dependency 8217: DoubleTapToReactUtils */;
value.initializeDoubleTapEmojiAndUpsell(binding);
}
}
global.__d(_fun87405, 11409, [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000,
9837, 11410, 6789,
2]) /* metro module 11409, dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */;
@@ -1,24 +1,24 @@
/* Metro module 11408; source: modules/action_sheet/native/components/EmojiRowUtils.tsx; dependencies: [661, 1391, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
function _fun87403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:6, offset: 0x01fbd5ac, size: 137 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_2 = constantsModule.MessageFlags;
const env0_3 = constantsModule.MessageStates;
const env0_4 = constantsModule.MessageTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRowUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/EmojiRowUtils.tsx');
exports.shouldShowEmojiRow = shouldShowEmojiRow;
}
function shouldShowEmojiRow(a0, a1, a2) { // fn#87404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:269, offset: 0x01fbd635, size: 150 bytes, params: 4, frame: 15
var moduleValue;
let r0 = a0 && a2 && a1.state !== MessageStates.SEND_FAILED;
r0 = r0 && a1.state !== MessageStates.SENDING && a1.type !== MessageTypes.THREAD_STARTER_MESSAGE;
if (r0) {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r0 = !moduleValue.hasFlag(a1.flags, MessageFlags.EPHEMERAL);
function shouldShowEmojiRow(a0, a1, a2) { // fn#87404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:269, offset: 0x01fbd635, size: 150 bytes, params: 4, frame: 15
var moduleValue;
let r0 = a0 && a2 && a1.state !== MessageStates.SEND_FAILED;
r0 = r0 && a1.state !== MessageStates.SENDING && a1.type !== MessageTypes.THREAD_STARTER_MESSAGE;
if (r0) {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r0 = !moduleValue.hasFlag(a1.flags, MessageFlags.EPHEMERAL);
}
return r0;
}
return r0;
}
global.__d(_fun87403, 11408, [661, 1391, 2]) /* metro module 11408, dependencies: [661, 1391, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,49 +1,58 @@
/* Metro module 11163; source: modules/action_sheet/native/components/PublishModal.tsx; dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseChannelFollowerStats from '../../../channel_following/useChannelFollowerStats.tsx'; /* Metro dependency 11164 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as LegacyTokensModule from '../../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
function _fun85239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:6, offset: 0x01f6886c, size: 288 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_4 = value.View;
const env0_5 = value.ActivityIndicator;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_300_LIGHT_PRIMARY_400;
const DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (LegacyTokensModule).DARK_PRIMARY_300_LIGHT_PRIMARY_400;
const env0_7 = Reflect.apply(createStyles, value, [{alertContainer: {paddingTop: 16},
alertLoading: {'paddingTop': 62, 'paddingBottom': 46}, alertBodyText: {'marginBottom': 16, 'fontSize': 16,
'lineHeight': 24, color: DARK_PRIMARY_300_LIGHT_PRIMARY_400}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/PublishModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/PublishModal.tsx');
exports.default = PublishModal;
}
function PublishModal({channelId}) { // fn#85240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:480, offset: 0x01f6898c, size: 393 bytes, params: 2, frame: 27
const styles = useStyles();
const value4 = env0_3((importDefault(11164) /* metro dependency 11164: useChannelFollowerStats */)(channelId), 2);
const property = value4[0];
if (value4[1]) {
function PublishModal({channelId}) { // fn#85240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:480, offset: 0x01f6898c, size: 393 bytes, params: 2, frame: 27
const styles = useStyles();
const value4 = Module00057((UseChannelFollowerStats)(channelId), 2);
const property = value4[0];
if (value4[1]) {
return (
<View style={styles.alertLoading}>
<ActivityIndicator animating />
</View>
);
}
const r6 = property?.guildsFollowing != null && property?.guildsFollowing > 0;
const LegacyText = (NativeModule).LegacyText;
const legacyTextProps = {style: styles.alertBodyText};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (r6) {
legacyTextProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.GCGrNP,
{numGuildsFollowing: property?.guildsFollowing ?? 0});
} else {
legacyTextProps.children = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8FpqOs']);
}
return (
<View style={styles.alertLoading}>
<ActivityIndicator animating />
<View style={styles.alertContainer}>
<LegacyText {...legacyTextProps} />
</View>
);
}
const r6 = property?.guildsFollowing != null && property?.guildsFollowing > 0;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const legacyTextProps = {style: styles.alertBodyText};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (r6) {
legacyTextProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.GCGrNP,
{numGuildsFollowing: property?.guildsFollowing ?? 0});
} else {
legacyTextProps.children = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8FpqOs']);
}
return (
<View style={styles.alertContainer}>
<LegacyText {...legacyTextProps} />
</View>
);
}
global.__d(_fun85239, 11163, [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244,
2]) /* metro module 11163, dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */;
@@ -1,20 +1,23 @@
/* Metro module 11232; source: modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx; dependencies: [4080, 11233, 1962, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun85862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:6, offset: 0x01f7f716, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx');
exports.default = showLongPressForumPostActionSheet;
function showLongPressForumPostActionSheet(a0, a1) { // fn#85863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:212, offset: 0x01f7f77d, size: 137 bytes, params: 3, frame: 17
let value = a2;
const r1 = value !== undefined ? value : importDefault(dependencyMap[0]).hideActionSheet;
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostLongPressActionSheet', {thread: a0, parentChannel: a1,
onClose: r1}]);
}
}
function showLongPressForumPostActionSheet(a0, a1) { // fn#85863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:212, offset: 0x01f7f77d, size: 137 bytes, params: 3, frame: 17
let value = a2;
const r1 = value !== undefined ? value : importDefault(dependencyMap[0]).hideActionSheet;
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostLongPressActionSheet', {thread: a0, parentChannel: a1,
onClose: r1}]);
}
global.__d(_fun85862, 11232, [4080, 11233, 1962, 2]) /* metro module 11232, dependencies: [4080, 11233, 1962, 2] */;
@@ -1,20 +1,25 @@
/* Metro module 9212; source: modules/action_sheet/native/showShareActionSheet.android.tsx; dependencies: [27, 9213, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ShowShareActionSheetUtilsModule from './ShowShareActionSheetUtils.tsx'; /* Metro dependency 9213 */
function _fun72073(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:6, offset: 0x01d38f96, size: 174 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const {NativeEventEmitter, NativeModules} = require(27) /* metro dependency 27 */;
const {NativeEventEmitter, NativeModules} = ReactNativeModule;
let ShareManager = NativeModules.ShareManager;
new NativeEventEmitter(ShareManager).addListener('share-broadcast-receiver-app-clicked', _fun72074);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/showShareActionSheet.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/showShareActionSheet.android.tsx');
exports.showShareActionSheet = function(a0, a1) {
var ShareManager = NativeModules.ShareManager;
ShareManager.share(a0.message, a0.url, a0.subject, a1);
};
function _fun72074({app, location}) { // fn#72074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:221, offset: 0x01d39044, size: 53 bytes, params: 2, frame: 14
(ShowShareActionSheetUtilsModule).trackAppClickInNativeShareSheet(app,
location);
}
}
function _fun72074({app, location}) { // fn#72074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:221, offset: 0x01d39044, size: 53 bytes, params: 2, frame: 14
(require(9213) /* metro dependency 9213: ShowShareActionSheetUtils */).trackAppClickInNativeShareSheet(app,
location);
}
global.__d(_fun72073, 9212, [27, 9213, 2]) /* metro module 9212, dependencies: [27, 9213, 2] */;
@@ -1,8 +1,11 @@
/* Metro module 6802; source: modules/action_sheet/native/showSimpleActionSheet.tsx; dependencies: [2, 6803] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun53542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6980:6, offset: 0x0134e57a, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/showSimpleActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/showSimpleActionSheet.tsx');
exports.showSimpleActionSheet = (require(6803) /* metro dependency 6803: showSimpleActionSheetNative */).showSimpleActionSheet;
}
global.__d(_fun53542, 6802, [2, 6803]) /* metro module 6802, dependencies: [2, 6803] */;
@@ -1,11 +1,14 @@
/* Metro module 11023; source: modules/action_sheet/native/useActionSheetStartHeight.tsx; dependencies: [6276, 1478, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActionSheetConstantsModule from './ActionSheetConstants.tsx'; /* Metro dependency 6276 */
function _fun84424(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11209:6, offset: 0x01f49f24, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_START_HEIGHT_RATIO;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useActionSheetStartHeight.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/useActionSheetStartHeight.tsx');
exports.default = function() {
return importDefault(dependencyMap[1])().height * ACTION_SHEET_START_HEIGHT_RATIO;
};
}
global.__d(_fun84424, 11023, [6276, 1478, 2]) /* metro module 11023, dependencies: [6276, 1478, 2] */;
@@ -1,59 +1,65 @@
/* Metro module 11621; source: modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx; dependencies: [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283, 2] */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseInitialValue from '../../../hooks/useInitialValue.tsx'; /* Metro dependency 6518 */
import UseKeyboardActionSheetHeight from './useKeyboardActionSheetHeight.tsx'; /* Metro dependency 11577 */
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 PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
function _fun89082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:6, offset: 0x01ffe1b4, size: 137 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 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx');
exports.default = useCustomKeyboardBottomSheetConfig;
}
function useCustomKeyboardBottomSheetConfig({forceMaxHeight, enablePanDownToClose}) { // fn#89083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:227, offset: 0x01ffe23d, size: 334 bytes, params: 2, frame: 23
var object2;
forceMaxHeight = !(forceMaxHeight === undefined) && forceMaxHeight;
enablePanDownToClose = !(enablePanDownToClose === undefined) && enablePanDownToClose;
const value5 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true});
const {minimum, maximum} = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)();
const env0_3 = maximum;
const {initialPosition,
animateOnMount} = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun89084);
const value8 = env0_3.useMemo(function() {
return forceMaxHeight ? [maximum, maximum] : [minimum, maximum];
}, [forceMaxHeight, maximum, minimum]);
object2 = {animateOnMount: animateOnMount, enablePanDownToClose: enablePanDownToClose};
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
object2.accessible = isAndroid2 ? undefined : !!isAndroid2;
object2.contentHeight = maximum;
object2.containerHeight = value5.height;
object2.enableDynamicSizing = false;
object2.initialPosition = initialPosition;
object2.keyboardBehavior = 'extend';
object2.android_keyboardInputMode = (require(11283) /* metro dependency 11283: useSafeAreaBottomKeyboardInfoController */).IS_SYSTEM_KEYBOARD_EXTERNAL ? 'adjustResize' : undefined;
object2.snapPoints = value8;
return object2;
}
function _fun89084() { // fn#89084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:402, offset: 0x01ffe38b, size: 211 bytes, params: 1, frame: 16
var r1;
var r0;
const object2 = {initialPosition: env0_1.height - minimum, animateOnMount: false};
let value = environment.__proto__;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
r0 = object2;
} else if (AccessibilityStore.useReducedMotion) {
r0 = object2;
} else {
if ((require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight() !== 0) {
r1 = object2;
} else {
value = require(4022) /* metro dependency 4022: useKeyboardType */;
value = value.getKeyboardTypePrevious();
r1 = value !== (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM ? object2 : {animateOnMount: true};
function useCustomKeyboardBottomSheetConfig({forceMaxHeight, enablePanDownToClose}) { // fn#89083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:227, offset: 0x01ffe23d, size: 334 bytes, params: 2, frame: 23
forceMaxHeight = !(forceMaxHeight === undefined) && forceMaxHeight;
enablePanDownToClose = !(enablePanDownToClose === undefined) && enablePanDownToClose;
const value5 = (UseWindowDimensionsNative)({ignoreKeyboard: true});
const {minimum, maximum} = (UseKeyboardActionSheetHeight)();
const maximum2 = maximum;
const {initialPosition,
animateOnMount} = (UseInitialValue)(_fun89084);
const value8 = maximum2.useMemo(function() {
return forceMaxHeight ? [maximum, maximum] : [minimum, maximum];
}, [forceMaxHeight, maximum, minimum]);
object = {animateOnMount: animateOnMount, enablePanDownToClose: enablePanDownToClose};
const isAndroid2 = (PlatformUtilsModule).isAndroid();
object.accessible = isAndroid2 ? undefined : !!isAndroid2;
object.contentHeight = maximum;
object.containerHeight = value5.height;
object.enableDynamicSizing = false;
object.initialPosition = initialPosition;
object.keyboardBehavior = 'extend';
object.android_keyboardInputMode = (require(11283) /* metro dependency 11283: useSafeAreaBottomKeyboardInfoController */).IS_SYSTEM_KEYBOARD_EXTERNAL ? 'adjustResize' : undefined;
object.snapPoints = value8;
return object;
function _fun89084() { // fn#89084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:402, offset: 0x01ffe38b, size: 211 bytes, params: 1, frame: 16
var r1;
var r0;
const object = {initialPosition: env0_1.height - minimum, animateOnMount: false};
let value = environment.__proto__;
if (PlatformUtilsModule.isAndroid()) {
r0 = object;
} else if (AccessibilityStore.useReducedMotion) {
r0 = object;
} else {
if ((require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight() !== 0) {
r1 = object;
} else {
value = require(4022) /* metro dependency 4022: useKeyboardType */;
value = value.getKeyboardTypePrevious();
r1 = value !== (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM ? object : {animateOnMount: true};
}
r0 = r1;
}
return r0;
}
r0 = r1;
}
return r0;
}
global.__d(_fun89082, 11621, [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283,
2]) /* metro module 11621, dependencies: [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283, 2] */;
@@ -1,4 +1,12 @@
/* Metro module 11577; source: modules/action_sheet/native/useKeyboardActionSheetHeight.tsx; dependencies: [5314, 1585, 1478, 5466, 2] */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseCustomKeyboardHeight from '../../keyboard/native/useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseWindowDimensionsNativeModule from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as UseSafeAreaInsetsNativeModule from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import * as UseCustomKeyboardHeightModule from '../../keyboard/native/useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */
function _fun88647(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:6, offset: 0x01fed635, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const computeKeyboardActionSheetHeight = function(a0, a1, a2) {
@@ -8,25 +16,26 @@ function _fun88647(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useKeyboardActionSheetHeight.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/useKeyboardActionSheetHeight.tsx');
exports.default = useKeyboardActionSheetHeight;
exports.getKeyboardActionSheetHeight = getKeyboardActionSheetHeight;
function useKeyboardActionSheetHeight() { // fn#88649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:344, offset: 0x01fed702, size: 84 bytes, params: 1, frame: 18
return computeKeyboardActionSheetHeight((UseSafeAreaInsetsNative)(),
(UseWindowDimensionsNative)({ignoreKeyboard: true}),
(UseCustomKeyboardHeight)());
}
function getKeyboardActionSheetHeight() { // fn#88650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:506, offset: 0x01fed756, size: 102 bytes, params: 1, frame: 19
const computeKeyboardActionSheetHeightBinding = computeKeyboardActionSheetHeight;
let value = UseSafeAreaInsetsNativeModule;
value = value.getSafeAreaInsets();
const windowDimensions = (UseWindowDimensionsNativeModule).getWindowDimensions({ignoreKeyboard: true});
const getCustomKeyboardHeight = UseCustomKeyboardHeightModule.getCustomKeyboardHeight;
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
UseCustomKeyboardHeightModule, []));
}
}
function useKeyboardActionSheetHeight() { // fn#88649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:344, offset: 0x01fed702, size: 84 bytes, params: 1, frame: 18
return computeKeyboardActionSheetHeight((importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)(),
(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}),
(importDefault(5466) /* metro dependency 5466: useCustomKeyboardHeight */)());
}
function getKeyboardActionSheetHeight() { // fn#88650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:506, offset: 0x01fed756, size: 102 bytes, params: 1, frame: 19
const computeKeyboardActionSheetHeightBinding = computeKeyboardActionSheetHeight;
let value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
value = value.getSafeAreaInsets();
const windowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions({ignoreKeyboard: true});
const useCustomKeyboardHeightModule = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
const getCustomKeyboardHeight = useCustomKeyboardHeightModule.getCustomKeyboardHeight;
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
useCustomKeyboardHeightModule, []));
}
global.__d(_fun88647, 11577, [5314, 1585, 1478, 5466,
2]) /* metro module 11577, dependencies: [5314, 1585, 1478, 5466, 2] */;
@@ -1,12 +1,15 @@
/* Metro module 12651; source: modules/activate_device/ActivateDeviceUtils.tsx; dependencies: [661, 9363, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun96995(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12841:6, offset: 0x0216f494, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/ActivateDeviceUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/ActivateDeviceUtils.tsx');
exports.clientIdToActivateDevicePlatform = function(a0) {
return a0 === require(dependencyMap[1]).ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID ? PlatformTypes.PLAYSTATION : a0 !== require(dependencyMap[1]).ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID ? null : PlatformTypes.PLAYSTATION_STAGING;
};
}
global.__d(_fun96995, 12651, [661, 9363, 2]) /* metro module 12651, dependencies: [661, 9363, 2] */;
@@ -1,154 +1,181 @@
/* Metro module 12649; source: modules/activate_device/native/ActivateDevice.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 12650, 12652, 8870, 9363, 12653, 4121, 12654, 5475, 12655, 12659, 12660, 1423, 12661, 6618, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 AvatarUtilsModule from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as ScopesModule from '../../oauth2/scopes.tsx'; /* Metro dependency 4121 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as ApplicationUtilsModule from '../../../utils/native/ApplicationUtils.tsx'; /* Metro dependency 8870 */
import * as ConsoleOAuthApplicationsModule from '../../../external/discord_common/js/shared/shared-constants/ConsoleOAuthApplications.tsx'; /* Metro dependency 9363 */
import * as UseActivateDeviceStepTrackingModule from '../useActivateDeviceStepTracking.tsx'; /* Metro dependency 12650 */
import * as UseDeviceCodeAuthorizeCallbackModule from '../useDeviceCodeAuthorizeCallback.tsx'; /* Metro dependency 12652 */
function _fun96982(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:6, offset: 0x0216ebb0, size: 467 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.View;
const env0_6 = value.ImageBackground;
const env0_7 = value.ActivityIndicator;
const env0_8 = value.ScrollView;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.background = {flex: 1};
object = {};
object.background = {flex: 1};
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover', backgroundColor: TEXT_BRAND};
object2.safeArea = {'flex': 1, 'justifyContent': 'center', 'alignItems': 'center'};
const object3 = {'maxWidth': 480, 'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
object.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover', backgroundColor: TEXT_BRAND};
object.safeArea = {'flex': 1, 'justifyContent': 'center', 'alignItems': 'center'};
const object4 = {'maxWidth': 480, 'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
'borderRadius': null, 'padding': 24, 'marginHorizontal': 24, 'marginVertical': 36, 'shadowColor': null,
'shadowOpacity': 0.2};
const PANEL_BG = (importDefault(697) /* metro dependency 697: native */).colors.PANEL_BG;
object3.backgroundColor = PANEL_BG;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object4.backgroundColor = PANEL_BG;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object3.shadowColor = BLACK;
object3.shadowOffset = {'width': 0, 'height': 4};
object3.shadowRadius = 4;
object2.content = object3;
object2.scroller = {'alignSelf': 'stretch', 'flexGrow': 0};
object2.scrollerContent = {'flexDirection': 'column', 'gap': 16};
const env0_10 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDevice.tsx');
object4.shadowColor = BLACK;
object4.shadowOffset = {'width': 0, 'height': 4};
object4.shadowRadius = 4;
object.content = object4;
object.scroller = {'alignSelf': 'stretch', 'flexGrow': 0};
object.scrollerContent = {'flexDirection': 'column', 'gap': 16};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/ActivateDevice.tsx');
exports.ActivateDevice = ActivateDevice;
}
function ActivateDevice({onClose, prefilledUserCode}) { // fn#96983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:879, offset: 0x0216ed83, size: 815 bytes, params: 2, frame: 29
const styles = useStyles();
let useState = ReactModule.useState;
const value3 = Reflect.apply(useState, ReactModule, [{'type': 'user-code-input', 'usePrefilledCode': true}]);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
const property = value4[0];
const property2 = value4[1];
useState = ReactModule.useState;
const value6 = binding2(Reflect.apply(useState, ReactModule, [null]), 2);
const property3 = value6[0];
var env0_3 = value6[1];
(UseActivateDeviceStepTrackingModule).useActivateDeviceStepTracking(property);
let useCallback = ReactModule.useCallback;
const value7 = Reflect.apply(useCallback, ReactModule, [_fun96984, [property2]]);
const value8 = ReactModule.useCallback(_fun96985, [property2]);
useCallback = ReactModule.useCallback;
const value11 = ReactModule.useCallback(_fun96987,
[(UseDeviceCodeAuthorizeCallbackModule).useDeviceCodeAuthorizeCallback(value7,
Reflect.apply(useCallback, ReactModule, [_fun96986, [property2]]), value8)]);
ReactModule.useEffect(_fun96989, [property]);
ReactModule.useEffect(_fun96991, [property3]);
const type = property.type;
const r10 = (
type === 'user-code-input'
? ((UserCodeInput) => <UserCodeInput prefilledUserCode={property.usePrefilledCode ? prefilledUserCode : undefined} onUserCodeAccepted={value11} onClose={onClose} />)((require(12655) /* metro dependency 12655: UserCodeInput */).UserCodeInput)
: (
type === 'authorization'
? (
<ActivityIndicator animating />
)
: (
type === 'success'
? ((ActivateDeviceSuccess) => <ActivateDeviceSuccess onComplete={onClose} data={property.userCodeData} successImage={property3} />)((require(12659) /* metro dependency 12659: ActivateDeviceSuccess */).ActivateDeviceSuccess)
: (
type !== 'error'
? null
: ((ActivateDeviceError) => <ActivateDeviceError onRetry={value7} />)((require(12660) /* metro dependency 12660: ActivateDeviceError */).ActivateDeviceError)
)
)
)
);
object = {};
object.source = AvatarUtilsModule.makeSource(importDefault(12661) /* metro dependency 12661: mobile_backgroundJpg */);
object.imageStyle = styles.imageStyle;
object.style = [styles.background];
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
return (
<ImageBackground {...object}>
<SafeAreaPaddingView
bottom
top
style={styles.safeArea}
>
<View style={styles.content}>
<ScrollView
bounces={false}
style={styles.scroller}
contentContainerStyle={styles.scrollerContent}
>
{r10}
</ScrollView>
</View>
</SafeAreaPaddingView>
</ImageBackground>
);
function _fun96984() { // fn#96984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1113, offset: 0x0216f0b2, size: 28 bytes, params: 1, frame: 11
env0_1({type: 'user-code-input'});
}
function ActivateDevice({onClose, prefilledUserCode}) { // fn#96983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:879, offset: 0x0216ed83, size: 815 bytes, params: 2, frame: 29
var object2;
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [{'type': 'user-code-input', 'usePrefilledCode': true}]);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
const property = value4[0];
const property2 = value4[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property3 = value6[0];
var env0_3 = value6[1];
(require(12650) /* metro dependency 12650: useActivateDeviceStepTracking */).useActivateDeviceStepTracking(property);
let useCallback = binding.useCallback;
const value7 = Reflect.apply(useCallback, binding, [_fun96984, [property2]]);
const value8 = binding.useCallback(_fun96985, [property2]);
useCallback = binding.useCallback;
const value11 = binding.useCallback(_fun96987,
[(require(12652) /* metro dependency 12652: useDeviceCodeAuthorizeCallback */).useDeviceCodeAuthorizeCallback(value7,
Reflect.apply(useCallback, binding, [_fun96986, [property2]]), value8)]);
binding.useEffect(_fun96989, [property]);
binding.useEffect(_fun96991, [property3]);
const type = property.type;
const r10 = type === 'user-code-input' ? ((UserCodeInput) => <UserCodeInput prefilledUserCode={property.usePrefilledCode ? prefilledUserCode : undefined} onUserCodeAccepted={value11} onClose={onClose} />)((require(12655) /* metro dependency 12655: UserCodeInput */).UserCodeInput) : type === 'authorization' ? <ActivityIndicator animating /> : type === 'success' ? ((ActivateDeviceSuccess) => <ActivateDeviceSuccess onComplete={onClose} data={property.userCodeData} successImage={property3} />)((require(12659) /* metro dependency 12659: ActivateDeviceSuccess */).ActivateDeviceSuccess) : type !== 'error' ? null : ((ActivateDeviceError) => <ActivateDeviceError onRetry={value7} />)((require(12660) /* metro dependency 12660: ActivateDeviceError */).ActivateDeviceError);
object2 = {};
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
object2.source = avatarUtilsModule.makeSource(importDefault(12661) /* metro dependency 12661: mobile_backgroundJpg */);
object2.imageStyle = styles.imageStyle;
object2.style = [styles.background];
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
return (
<ImageBackground {...object2}>
<SafeAreaPaddingView
bottom
top
style={styles.safeArea}
>
<View style={styles.content}>
<ScrollView
bounces={false}
style={styles.scroller}
contentContainerStyle={styles.scrollerContent}
>
{r10}
</ScrollView>
</View>
</SafeAreaPaddingView>
</ImageBackground>
);
}
function _fun96985(a0) { // fn#96985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1170, offset: 0x0216f0ce, size: 34 bytes, params: 2, frame: 11
env0_1({type: 'success', userCodeData: a0});
}
function _fun96984() { // fn#96984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1113, offset: 0x0216f0b2, size: 28 bytes, params: 1, frame: 11
env0_1({type: 'user-code-input'});
}
function _fun96986(a0) { // fn#96986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1233, offset: 0x0216f0f0, size: 34 bytes, params: 2, frame: 11
env0_1({type: 'error', userCodeData: a0});
}
function _fun96985(a0) { // fn#96985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1170, offset: 0x0216f0ce, size: 34 bytes, params: 2, frame: 11
env0_1({type: 'success', userCodeData: a0});
}
function _fun96987(a0) { // fn#96987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1342, offset: 0x0216f112, size: 124 bytes, params: 2, frame: 15
var environment;
const env0_0 = a0;
env0_1({type: 'authorization', userCodeData: a0});
const value = environment.__proto__;
(ApplicationUtilsModule).openOAuth2Modal({'clientId': null, 'scopes': null,
'responseType': 'code', 'isTrustedName': true, 'isEmbeddedFlow': true, 'withBackPressHandler': false,
clientId: a0.clientId, scopes: a0.scopes, callbackWithoutPost: callbackWithoutPost});
function callbackWithoutPost(a0) { // fn#96988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1547, offset: 0x0216f18e, size: 27 bytes, params: 2, frame: 13
return env1_4(env0_0, a0);
}
function _fun96986(a0) { // fn#96986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1233, offset: 0x0216f0f0, size: 34 bytes, params: 2, frame: 11
env0_1({type: 'error', userCodeData: a0});
}
}
function _fun96987(a0) { // fn#96987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1342, offset: 0x0216f112, size: 124 bytes, params: 2, frame: 15
var environment;
const env0_0 = a0;
env0_1({type: 'authorization', userCodeData: a0});
const value = environment.__proto__;
(require(8870) /* metro dependency 8870: ApplicationUtils */).openOAuth2Modal({'clientId': null, 'scopes': null,
'responseType': 'code', 'isTrustedName': true, 'isEmbeddedFlow': true, 'withBackPressHandler': false,
clientId: a0.clientId, scopes: a0.scopes, callbackWithoutPost: callbackWithoutPost});
}
function _fun96989() { // fn#96989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1586, offset: 0x0216f1a9, size: 213 bytes, params: 1, frame: 17
var environment;
var userCodeData;
var value2;
const ConsoleOAuthApplications = (ConsoleOAuthApplicationsModule).ConsoleOAuthApplications;
var items2;
var scopes;
if ('userCodeData' in env0_0) {
userCodeData = env0_0.userCodeData;
value2 = environment.__proto__;
items2 = [ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID];
items2[1] = ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID;
if (items2.includes(userCodeData.clientId)) {
env0_3(importDefault(12653) /* metro dependency 12653: ps_link_success_illustration2xPng */);
} else {
scopes = userCodeData.scopes;
if (scopes.some(_fun96990)) {
env0_3(importDefault(12654) /* metro dependency 12654: social_layer_link_success_illustration2xPng */);
}
}
}
function _fun96990(a0) { // fn#96990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1813, offset: 0x0216f27e, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (ScopesModule).isSocialLayerUmbrellaScope(a0);
}
function _fun96989() { // fn#96989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1586, offset: 0x0216f1a9, size: 213 bytes, params: 1, frame: 17
var environment;
var userCodeData;
var value2;
const ConsoleOAuthApplications = (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications;
var items2;
var scopes;
if ('userCodeData' in env0_0) {
userCodeData = env0_0.userCodeData;
value2 = environment.__proto__;
items2 = [ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID];
items2[1] = ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID;
if (items2.includes(userCodeData.clientId)) {
env0_3(importDefault(12653) /* metro dependency 12653: ps_link_success_illustration2xPng */);
} else {
scopes = userCodeData.scopes;
if (scopes.some(_fun96990)) {
env0_3(importDefault(12654) /* metro dependency 12654: social_layer_link_success_illustration2xPng */);
}
function _fun96991() { // fn#96991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1891, offset: 0x0216f2a7, size: 57 bytes, params: 1, frame: 12
var value2;
if (env0_2 != null) {
value2 = environment.__proto__;
(importDefault(5475) /* metro dependency 5475: FastImage */).preload(env0_2);
}
}
}
}
function _fun96991() { // fn#96991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1891, offset: 0x0216f2a7, size: 57 bytes, params: 1, frame: 12
var value2;
if (env0_2 != null) {
value2 = environment.__proto__;
(importDefault(5475) /* metro dependency 5475: FastImage */).preload(env0_2);
}
}
function callbackWithoutPost(a0) { // fn#96988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1547, offset: 0x0216f18e, size: 27 bytes, params: 2, frame: 13
return env1_4(env0_0, a0);
}
function _fun96990(a0) { // fn#96990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1813, offset: 0x0216f27e, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (require(4121) /* metro dependency 4121: scopes */).isSocialLayerUmbrellaScope(a0);
}
global.__d(_fun96982, 12649, [57, 31, 27, 33, 4501, 697, 12650, 12652, 8870, 9363, 12653, 4121, 12654, 5475, 12655,
12659, 12660, 1423, 12661, 6618,
2]) /* metro module 12649, dependencies: [57, 31, 27, 33, 4501, 697, 12650, 12652, 8870, 9363, 12653, 4121, 12654, 5475, 12655, 12659, 12660, 1423, 12661, 6618, 2] */;
@@ -1,37 +1,73 @@
/* Metro module 12660; source: modules/activate_device/native/ActivateDeviceError.tsx; dependencies: [31, 27, 33, 4501, 9370, 12658, 4573, 1244, 4578, 2] */
import Module09370 from '../../../by-id/module-09370.js'; /* Metro dependency 9370 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun97026(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:6, offset: 0x0217082f, size: 235 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = value.Fragment;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 254,
const env0_8 = (CreateStylesModule).createStyles({image: {'width': 254,
'height': 127, 'alignSelf': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceError.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/ActivateDeviceError.tsx');
exports.ActivateDeviceError = ActivateDeviceError;
function ActivateDeviceError({onRetry}) { // fn#97027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:357, offset: 0x0217091a, size: 468 bytes, params: 2, frame: 29
const styles = useStyles();
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
const items2 = [
<Image source={Module09370} style={styles.image} />,
];
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
const Text = (TextModule).Text;
const centerText = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<View style={innerContent}>
<Text
variant="heading-lg/bold"
color="mobile-text-heading-primary"
style={centerText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3dgwPD'])}
</Text>
<Text
variant="text-md/medium"
color="text-default"
style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/GAO1P'])}
</Text>
</View>
);
const Button = (ButtonNativeModule).Button;
items2[2] = (
<Button
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5911Lb'])}
onPress={onRetry}
grow
/>
);
return (
<>
{items2}
</>
);
}
}
function ActivateDeviceError({onRetry}) { // fn#97027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:357, offset: 0x0217091a, size: 468 bytes, params: 2, frame: 29
const styles = useStyles();
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
const items2 = [<Image source={importDefault(9370) /* metro dependency 9370 */} style={styles.image} />];
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const centerText = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <View style={innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3dgwPD'])}</Text><Text variant="text-md/medium" color="text-default" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/GAO1P'])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5911Lb'])} onPress={onRetry} grow />;
return (
<>
{items2}
</>
);
}
global.__d(_fun97026, 12660, [31, 27, 33, 4501, 9370, 12658, 4573, 1244, 4578,
2]) /* metro module 12660, dependencies: [31, 27, 33, 4501, 9370, 12658, 4573, 1244, 4578, 2] */;
@@ -1,61 +1,71 @@
/* Metro module 12648; source: modules/activate_device/native/ActivateDeviceModal.tsx; dependencies: [31, 33, 12647, 5277, 8160, 1244, 12649, 5280, 2] */
import Module08160 from '../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import ActivateDeviceModalActionCreators from './ActivateDeviceModalActionCreators.tsx'; /* Metro dependency 12647 */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as ActivateDeviceModule from './ActivateDevice.tsx'; /* Metro dependency 12649 */
function _fun96973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:6, offset: 0x0216e90c, size: 160 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
object = {ACTIVATE_DEVICE: 'activate-device'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModal.tsx');
exports.default = ActivateDeviceModal;
function ActivateDeviceModal({userCode}) { // fn#96974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:285, offset: 0x0216e9ac, size: 162 bytes, params: 2, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun96976(userCode);
}, [userCode]);
const Navigator = (NavigatorNativeModule).Navigator;
const ACTIVATE_DEVICE = env0_5.ACTIVATE_DEVICE;
const intl = (IndexNativeModule).intl;
return (
<Navigator
screens={value2}
initialRouteName={ACTIVATE_DEVICE}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun96975() { // fn#96975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:345, offset: 0x0216ea4e, size: 25 bytes, params: 1, frame: 11
return getScreens_96976(userCode);
function getScreens_96976(a0) { // fn#96976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:349, offset: 0x0216ea67, size: 99 bytes, params: 2, frame: 5
const env0_0 = a0;
const ACTIVATE_DEVICE = env2_5.ACTIVATE_DEVICE;
return {[ACTIVATE_DEVICE]: {fullscreen: true, headerTitle: function() {
return null;
}, headerLeft: headerLeft_96979, headerRight: function() {
return null;
}, render: render_96981}};
function getScreens_96976OnClose() { // fn#96977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:384, owner: getScreens_96976.onClose, offset: 0x0216eaca, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (ActivateDeviceModalActionCreators).hideModal();
}
function getScreens_96976HeaderLeft() { // fn#96979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:482, owner: getScreens_96976.headerLeft, offset: 0x0216eaef, size: 127 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160,
onPress: getScreens_96976OnClose};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function getScreens_96976Render() { // fn#96981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:634, owner: getScreens_96976.render, offset: 0x0216eb6e, size: 66 bytes, params: 1, frame: 15
const ActivateDevice = (ActivateDeviceModule).ActivateDevice;
return <ActivateDevice onClose={getScreens_96976OnClose} prefilledUserCode={env0_0} />;
}
}
}
}
}
function ActivateDeviceModal({userCode}) { // fn#96974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:285, offset: 0x0216e9ac, size: 162 bytes, params: 2, frame: 18
const value2 = env0_3.useMemo(function() {
return _fun96976(userCode);
}, [userCode]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const ACTIVATE_DEVICE = env0_5.ACTIVATE_DEVICE;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
screens={value2}
initialRouteName={ACTIVATE_DEVICE}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun96975() { // fn#96975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:345, offset: 0x0216ea4e, size: 25 bytes, params: 1, frame: 11
return getScreens_96976(userCode);
}
function getScreens_96976(a0) { // fn#96976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:349, offset: 0x0216ea67, size: 99 bytes, params: 2, frame: 5
const env0_0 = a0;
const ACTIVATE_DEVICE = env2_5.ACTIVATE_DEVICE;
return {[ACTIVATE_DEVICE]: {fullscreen: true, headerTitle: function() {
return null;
}, headerLeft: headerLeft_96979, headerRight: function() {
return null;
}, render: render_96981}};
}
function getScreens_96976OnClose() { // fn#96977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:384, owner: getScreens_96976.onClose, offset: 0x0216eaca, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(12647) /* metro dependency 12647: ActivateDeviceModalActionCreators */).hideModal();
}
function getScreens_96976HeaderLeft() { // fn#96979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:482, owner: getScreens_96976.headerLeft, offset: 0x0216eaef, size: 127 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */,
onPress: getScreens_96976OnClose};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function getScreens_96976Render() { // fn#96981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:634, owner: getScreens_96976.render, offset: 0x0216eb6e, size: 66 bytes, params: 1, frame: 15
const ActivateDevice = (require(12649) /* metro dependency 12649: ActivateDevice */).ActivateDevice;
return <ActivateDevice onClose={getScreens_96976OnClose} prefilledUserCode={env0_0} />;
}
global.__d(_fun96973, 12648, [31, 33, 12647, 5277, 8160, 1244, 12649, 5280,
2]) /* metro module 12648, dependencies: [31, 33, 12647, 5277, 8160, 1244, 12649, 5280, 2] */;
@@ -1,23 +1,26 @@
/* Metro module 12647; source: modules/activate_device/native/ActivateDeviceModalActionCreators.tsx; dependencies: [5080, 12648, 1962, 2] */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun96970(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:6, offset: 0x0216e80e, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {showModal: showModal_96971, hideModal: hideModal_96972};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModalActionCreators.tsx');
exports.default = object2;
}
object = {showModal: showModal_96971, hideModal: hideModal_96972};
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModalActionCreators.tsx');
exports.default = object;
function showModal_96971(a0) { // fn#96971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:129, offset: 0x0216e888, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {userCode: a0}, 'ACTIVATE_DEVICE_MODAL_KEY']);
}
function showModal_96971(a0) { // fn#96971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:129, offset: 0x0216e888, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {userCode: a0}, 'ACTIVATE_DEVICE_MODAL_KEY']);
}
function hideModal_96972() { // fn#96972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:198, offset: 0x0216e8e1, size: 43 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('ACTIVATE_DEVICE_MODAL_KEY');
}
function hideModal_96972() { // fn#96972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:198, offset: 0x0216e8e1, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('ACTIVATE_DEVICE_MODAL_KEY');
}
global.__d(_fun96970, 12647, [5080, 12648, 1962, 2]) /* metro module 12647, dependencies: [5080, 12648, 1962, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 12658; source: modules/activate_device/native/ActivateDeviceSharedStyles.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun97022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12848:6, offset: 0x02170406, size: 114 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSharedStyles.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSharedStyles.tsx');
exports.default = {innerContent: {'flexDirection': 'column', 'gap': 8, 'alignItems': 'center'},
centerText: {textAlign: 'center'}};
}
global.__d(_fun97022, 12658, [2]) /* metro module 12658, dependencies: [2] */;
@@ -1,39 +1,79 @@
/* Metro module 12659; source: modules/activate_device/native/ActivateDeviceSuccess.tsx; dependencies: [31, 27, 33, 4501, 1244, 4121, 5475, 1423, 12658, 4573, 4578, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 ScopesModule from '../../oauth2/scopes.tsx'; /* Metro dependency 4121 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun97023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:6, offset: 0x02170478, size: 225 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 env0_3 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = value.Fragment;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 300,
ReactModule;
const env0_7 = (CreateStylesModule).createStyles({image: {'width': 300,
'height': 200, 'alignSelf': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSuccess.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSuccess.tsx');
exports.ActivateDeviceSuccess = ActivateDeviceSuccess;
function ActivateDeviceSuccess({data, onComplete, successImage}) { // fn#97024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:348, offset: 0x02170559, size: 685 bytes, params: 2, frame: 31
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const r16 = data.twoWayLinkCode != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.QhATl2) : data.scopes.some(_fun97025) ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vBPvK3) : null;
const jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
const items2 = [
successImage != null
? ((Component) => <Component source={(require(1423) /* metro dependency 1423: AvatarUtils */).makeSource(successImage)} style={styles.image} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */)
: null,
];
items2[1] = (
<View style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent}>
<Text
variant="heading-lg/bold"
color="mobile-text-heading-primary"
style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qDtJmD)}
</Text>
{
r16 != null
? (
<Text
variant="text-md/medium"
color="text-default"
style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}
>
{r16}
</Text>
)
: null
}
</View>
);
const Button = (ButtonNativeModule).Button;
items2[2] = (
<Button
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
onPress={onComplete}
grow
/>
);
return (
<>
{items2}
</>
);
function _fun97025(a0) { // fn#97025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:491, offset: 0x02170806, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__;
return (ScopesModule).isSocialLayerUmbrellaScope(a0);
}
}
}
function ActivateDeviceSuccess({data, onComplete, successImage}) { // fn#97024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:348, offset: 0x02170559, size: 685 bytes, params: 2, frame: 31
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const r16 = data.twoWayLinkCode != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.QhATl2) : data.scopes.some(_fun97025) ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vBPvK3) : null;
const jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
const items2 = [successImage != null ? ((Component) => <Component source={(require(1423) /* metro dependency 1423: AvatarUtils */).makeSource(successImage)} style={styles.image} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */) : null];
items2[1] = <View style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qDtJmD)}</Text>{r16 != null ? <Text variant="text-md/medium" color="text-default" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{r16}</Text> : null}</View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onComplete} grow />;
return (
<>
{items2}
</>
);
}
function _fun97025(a0) { // fn#97025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:491, offset: 0x02170806, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__;
return (require(4121) /* metro dependency 4121: scopes */).isSocialLayerUmbrellaScope(a0);
}
global.__d(_fun97023, 12659, [31, 27, 33, 4501, 1244, 4121, 5475, 1423, 12658, 4573, 4578,
2]) /* metro module 12659, dependencies: [31, 27, 33, 4501, 1244, 4121, 5475, 1423, 12658, 4573, 4578, 2] */;
@@ -1,64 +1,98 @@
/* Metro module 12655; source: modules/activate_device/native/UserCodeInput.tsx; dependencies: [57, 31, 27, 12656, 33, 4501, 12657, 12658, 4573, 1244, 7981, 4578, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ActivateDeviceSharedStyles from './ActivateDeviceSharedStyles.tsx'; /* Metro dependency 12658 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TextInputNativeModule from '../../../design/components/TextInput/native/TextInput.native.tsx'; /* Metro dependency 7981 */
import * as OAuthConstantsModule from '../../../external/discord_common/js/shared/shared-constants/OAuthConstants.tsx'; /* Metro dependency 12656 */
import * as UseUserCodeSubmitModule from '../useUserCodeSubmit.tsx'; /* Metro dependency 12657 */
function _fun97013(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:6, offset: 0x0216fc5b, size: 262 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const env0_6 = (require(12656) /* metro dependency 12656: OAuthConstants */).OAuthConstants;
const value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
const env0_9 = value.Fragment;
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/UserCodeInput.tsx');
const env0_10 = (CreateStylesModule).createStyles({text: {textAlign: 'center'}});
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/native/UserCodeInput.tsx');
exports.UserCodeInput = UserCodeInput;
function UserCodeInput({onClose, onUserCodeAccepted, prefilledUserCode}) { // fn#97014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:347, offset: 0x0216fd61, size: 695 bytes, params: 2, frame: 33
const styles = useStyles();
const useState = ReactModule.useState;
const value4 = Module00057(Reflect.apply(useState, ReactModule, [prefilledUserCode ?? '']), 2);
const property = value4[0];
const env0_0 = value4[1];
const {manualSubmit, error,
submitting} = (UseUserCodeSubmitModule).useUserCodeSubmit(property,
onUserCodeAccepted, onClose);
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const innerContent = (ActivateDeviceSharedStyles).innerContent;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const KYPNUv = t.KYPNUv;
const items2 = [
<View style={innerContent}>
<Text
variant="heading-lg/bold"
color="mobile-text-heading-primary"
style={styles.text}
>
{Reflect.apply(string, intl, [KYPNUv])}
</Text>
<Text
variant="text-md/medium"
color="text-default"
style={styles.text}
>
{intl.string((IndexNativeModule).t.xRHk7f)}
</Text>
</View>,
];
const TextInput = (TextInputNativeModule).TextInput;
const object2 = {onChange: onChange_97015};
let USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
object2.maxLength = USER_CODE_LENGTH;
object2.value = property;
object2.autoFocus = true;
object2.autoComplete = 'off';
const formatToPlainString = intl.formatToPlainString;
const property2 = (IndexNativeModule).t['0tbz6x'];
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
object2.placeholder = Reflect.apply(formatToPlainString, intl, [property2, {number: USER_CODE_LENGTH}]);
object2.errorMessage = error;
items2[1] = <TextInput {...object2} />;
const Button = (ButtonNativeModule).Button;
string = intl.string;
const length = property.length;
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
items2[2] = (
<Button
size="lg"
text={Reflect.apply(string, intl, [t['3PatSz']])}
onPress={manualSubmit}
loading={submitting}
disabled={length !== USER_CODE_LENGTH}
grow
/>
);
return (
<>
{items2}
</>
);
function UserCodeInputOnChange(a0) { // fn#97015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:903, owner: UserCodeInput.onChange, offset: 0x00c3fb7a, size: 19 bytes, params: 2, frame: 11
return env0_0(a0);
}
}
}
function UserCodeInput({onClose, onUserCodeAccepted, prefilledUserCode}) { // fn#97014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:347, offset: 0x0216fd61, size: 695 bytes, params: 2, frame: 33
const styles = useStyles();
const binding = env0_4;
const useState = binding.useState;
const value4 = env0_3(Reflect.apply(useState, binding, [prefilledUserCode ?? '']), 2);
const property = value4[0];
const env0_0 = value4[1];
const {manualSubmit, error,
submitting} = (require(12657) /* metro dependency 12657: useUserCodeSubmit */).useUserCodeSubmit(property,
onUserCodeAccepted, onClose);
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const KYPNUv = t.KYPNUv;
const items2 = [<View style={innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.text}>{Reflect.apply(string,
intl,
[KYPNUv])}</Text><Text variant="text-md/medium" color="text-default" style={styles.text}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xRHk7f)}</Text></View>];
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
const object = {onChange: onChange_97015};
let USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
object.maxLength = USER_CODE_LENGTH;
object.value = property;
object.autoFocus = true;
object.autoComplete = 'off';
const formatToPlainString = intl.formatToPlainString;
const property2 = (require(1244) /* metro dependency 1244: indexNative */).t['0tbz6x'];
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
object.placeholder = Reflect.apply(formatToPlainString, intl, [property2, {number: USER_CODE_LENGTH}]);
object.errorMessage = error;
items2[1] = <TextInput {...object} />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const length = property.length;
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
items2[2] = <Button size="lg" text={Reflect.apply(string, intl,
[t['3PatSz']])} onPress={manualSubmit} loading={submitting} disabled={length !== USER_CODE_LENGTH} grow />;
return (
<>
{items2}
</>
);
}
global.__d(_fun97013, 12655, [57, 31, 27, 12656, 33, 4501, 12657, 12658, 4573, 1244, 7981, 4578,
2]) /* metro module 12655, dependencies: [57, 31, 27, 12656, 33, 4501, 12657, 12658, 4573, 1244, 7981, 4578, 2] */;
@@ -1,55 +1,60 @@
/* Metro module 12650; source: modules/activate_device/useActivateDeviceStepTracking.tsx; dependencies: [31, 661, 6266, 12651, 683, 2] */
import UsePrevious from '../../hooks/usePrevious.tsx'; /* Metro dependency 6266 */
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 ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun96992(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:6, offset: 0x0216f2e0, size: 143 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/useActivateDeviceStepTracking.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activate_device/useActivateDeviceStepTracking.tsx');
exports.useActivateDeviceStepTracking = useActivateDeviceStepTracking;
}
function useActivateDeviceStepTracking(a0) { // fn#96993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:254, offset: 0x0216f36f, size: 79 bytes, params: 2, frame: 16
const env0_0 = a0;
env0_3.useEffect(_fun96994, [(importDefault(6266) /* metro dependency 6266: usePrevious */)(a0), a0]);
}
function _fun96994() { // fn#96994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:326, offset: 0x0216f3be, size: 214 bytes, params: 1, frame: 18
var r0;
var r4;
var type;
var value4;
var value5;
var moduleValue;
var value7;
var value8;
var defaultImport;
var track;
var DEVICE_LINK_STEP;
var object2;
if (env0_0 !== env0_1) {
type = env0_0.type;
r0 = type !== 'user-code-input' && env0_0.type !== 'handoff';
value4 = null;
if (r0) {
value5 = environment.__proto__;
moduleValue = require(12651) /* metro dependency 12651: ActivateDeviceUtils */;
r4 = moduleValue.clientIdToActivateDevicePlatform(env0_0.userCodeData.clientId);
} else {
r4 = value4;
function useActivateDeviceStepTracking(a0) { // fn#96993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:254, offset: 0x0216f36f, size: 79 bytes, params: 2, frame: 16
const env0_0 = a0;
ReactModule.useEffect(_fun96994, [(UsePrevious)(a0), a0]);
function _fun96994() { // fn#96994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:326, offset: 0x0216f3be, size: 214 bytes, params: 1, frame: 18
var r0;
var r4;
var type;
var value4;
var value5;
var moduleValue;
var value7;
var value8;
var defaultImport;
var track;
var DEVICE_LINK_STEP;
var object;
if (env0_0 !== env0_1) {
type = env0_0.type;
r0 = type !== 'user-code-input' && env0_0.type !== 'handoff';
value4 = null;
if (r0) {
value5 = environment.__proto__;
moduleValue = require(12651) /* metro dependency 12651: ActivateDeviceUtils */;
r4 = moduleValue.clientIdToActivateDevicePlatform(env0_0.userCodeData.clientId);
} else {
r4 = value4;
}
value7 = environment.__proto__;
value8 = undefined;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
DEVICE_LINK_STEP = AnalyticEvents.DEVICE_LINK_STEP;
object = {};
type = value4 == env0_1 ? value8 : env0_1.type;
object.previous_step = type;
type = env0_0.type;
object.current_step = type;
object.platform_type = r4;
Reflect.apply(track, defaultImport, [DEVICE_LINK_STEP, object]);
}
}
value7 = environment.__proto__;
value8 = undefined;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
DEVICE_LINK_STEP = AnalyticEvents.DEVICE_LINK_STEP;
object2 = {};
type = value4 == env0_1 ? value8 : env0_1.type;
object2.previous_step = type;
type = env0_0.type;
object2.current_step = type;
object2.platform_type = r4;
Reflect.apply(track, defaultImport, [DEVICE_LINK_STEP, object2]);
}
}
global.__d(_fun96992, 12650, [31, 661, 6266, 12651, 683,
2]) /* metro module 12650, dependencies: [31, 661, 6266, 12651, 683, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,7 +1,14 @@
/* Metro module 8448; source: modules/activities/ActivitiesInTextUtils.tsx; dependencies: [1379, 3784, 482, 677, 566, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ChannelTypesModule from '../../external/discord_common/js/shared/shared-constants/ChannelTypes.tsx'; /* Metro dependency 677 */
function _fun67023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:6, offset: 0x01c13185, size: 223 bytes, params: 8, frame: 21
let env0_0 = require;
const closure = isActivityInTextSupportedForChannel;
const isActivityInTextSupportedForChannel2 = isActivityInTextSupportedForChannel;
const isActivitiesInTextEnabledForChannelWithPermissions = function(a0, a1) {
if (a0 != null) {
if (a0 === undefined) {
@@ -24,11 +31,8 @@ function _fun67023(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_4 = (require(482) /* metro dependency 482: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/ActivitiesInTextUtils.tsx');
exports.isActivityInTextSupportedForChannel = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/activities/ActivitiesInTextUtils.tsx');
exports.isActivityInTextSupportedForChannel = isActivityInTextSupportedForChannel2;
exports.isActivitiesInTextEnabled = function(a0) {
return isActivitiesInTextEnabledForChannelWithPermissions(a0, PermissionStore);
};
@@ -41,36 +45,38 @@ function _fun67023(global, require, importDefault, importAll, module, exports, d
var env0_0 = a0;
return require(dependencyMap[4]).useStateFromStores([ChannelStore], _fun67031);
};
}
function isActivityInTextSupportedForChannel(a0) { // fn#67024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:138, offset: 0x01c13264, size: 238 bytes, params: 2, frame: 16
const ChannelTypes = (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes;
if (a0 == null) {
return false;
function isActivityInTextSupportedForChannel(a0) { // fn#67024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:138, offset: 0x01c13264, size: 238 bytes, params: 2, frame: 16
const ChannelTypes = (ChannelTypesModule).ChannelTypes;
if (a0 == null) {
return false;
}
const channel = ChannelStore.getChannel(a0.parent_id);
return (channel == null || channel?.type === ChannelTypes.GUILD_CATEGORY) && [ChannelTypes.GUILD_TEXT,
ChannelTypes.GUILD_VOICE, ChannelTypes.GROUP_DM, ChannelTypes.DM].includes(a0.type);
}
const channel = ChannelStore.getChannel(a0.parent_id);
return (channel == null || channel?.type === ChannelTypes.GUILD_CATEGORY) && [ChannelTypes.GUILD_TEXT,
ChannelTypes.GUILD_VOICE, ChannelTypes.GROUP_DM, ChannelTypes.DM].includes(a0.type);
}
function useIsActivitiesInTextEnabled(a0) { // fn#67028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1172, offset: 0x01c133e7, size: 74 bytes, params: 2, frame: 15
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore, PermissionStore],
_fun67029);
}
function useIsActivitiesInTextEnabled(a0) { // fn#67028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1172, offset: 0x01c133e7, size: 74 bytes, params: 2, frame: 15
const env0_0 = a0;
return (FluxModule).useStateFromStores([ChannelStore, PermissionStore],
_fun67029);
function _fun67029() { // fn#67029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1254, offset: 0x01c13431, size: 42 bytes, params: 1, frame: 14
return isActivitiesInTextEnabledForChannelWithPermissions(ChannelStore.getChannel(env0_0), PermissionStore);
}
function useIsAppLauncherEnabled(a0) { // fn#67030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1407, offset: 0x01c1345b, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun67031);
}
}
function _fun67029() { // fn#67029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1254, offset: 0x01c13431, size: 42 bytes, params: 1, frame: 14
return isActivitiesInTextEnabledForChannelWithPermissions(ChannelStore.getChannel(env0_0), PermissionStore);
}
function useIsAppLauncherEnabled(a0) { // fn#67030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1407, offset: 0x01c1345b, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (FluxModule).useStateFromStores([ChannelStore], _fun67031);
function _fun67031() { // fn#67031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1482, offset: 0x01c1349d, size: 46 bytes, params: 1, frame: 12
const value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0);
return channel != null && getIsAppLauncherEnabled(channel);
}
}
function _fun67031() { // fn#67031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1482, offset: 0x01c1349d, size: 46 bytes, params: 1, frame: 12
const value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0);
return channel != null && getIsAppLauncherEnabled(channel);
}
global.__d(_fun67023, 8448, [1379, 3784, 482, 677, 566,
2]) /* metro module 8448, dependencies: [1379, 3784, 482, 677, 566, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 8110; source: modules/activities/ActivityPopoutUtils.native.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8295:6, offset: 0x01bbc8c6, size: 96 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/ActivityPopoutUtils.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/ActivityPopoutUtils.native.tsx');
exports.shouldOpenActivityInPopoutWindow = function() {
return false;
};
@@ -11,3 +13,4 @@ function _fun64996(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun64996, 8110, [2]) /* metro module 8110, dependencies: [2] */;
@@ -1,62 +1,79 @@
/* Metro module 8098; source: modules/activities/ActivityShelfStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64941(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:6, offset: 0x01bba7ab, size: 287 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
object = {usageByApplicationId: {}, shelfOrder: []};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun64945(PersistedStore);
value.displayName = 'ActivityShelfStore';
value.persistKey = 'ActivityShelfStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
env0_5 = {usageByApplicationId: {}, shelfOrder: []};
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/ActivityShelfStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/ActivityShelfStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_64942() { // fn#64942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:148, offset: 0x01bba8ca, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_64942() { // fn#64942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:148, offset: 0x01bba8ca, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_64942_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_64942_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun64945(a0) { // fn#64945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:393, offset: 0x01bba928, size: 91 bytes, params: 2, frame: 16
const closure = ActivityShelfStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_64947}, {key: 'getState', value: value_64948}]);
}
function value_64947(a0) { // fn#64947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:713, offset: 0x01bba983, size: 50 bytes, params: 2, frame: 12
copyDataProperties({usageByApplicationId: {}, shelfOrder: []}, a0 ?? ({}), null);
value = environment.__proto__;
function _fun64945(a0) { // fn#64945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:393, offset: 0x01bba928, size: 91 bytes, params: 2, frame: 16
const ActivityShelfStore2 = ActivityShelfStore;
Inherits(ActivityShelfStore2, a0);
return CreateClass(ActivityShelfStore2, [{key: 'initialize', value: value_64947}, {key: 'getState', value: value_64948}]);
function ActivityShelfStore() { // fn#64946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:405, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ActivityShelfStore);
const value3 = env1_3(ActivityShelfStore);
return env1_2(this, _isNativeReflectConstruct_64942() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_64947(a0) { // fn#64947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:713, offset: 0x01bba983, size: 50 bytes, params: 2, frame: 12
copyDataProperties({usageByApplicationId: {}, shelfOrder: []}, a0 ?? ({}), null);
value = environment.__proto__;
}
function value_64948() { // fn#64948, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
}
}
global.__d(_fun64941, 8098, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 8098, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
+49 -44
View File
@@ -1,51 +1,55 @@
/* Metro module 4237; source: modules/activities/Constants.tsx; dependencies: [661, 1909, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as ServerModule from '../../flow/Server.tsx'; /* Metro dependency 1909 */
function _fun35041(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4408:6, offset: 0x010697ae, size: 1681 bytes, params: 8, frame: 51
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const ChannelTypes = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
const object = {PLAY: 0};
object[0] = 'PLAY';
object.SPECTATE = 1;
object[1] = 'SPECTATE';
const object2 = {UNLOCKED: 1};
object2[1] = 'UNLOCKED';
object2.PORTRAIT = 2;
object2[2] = 'PORTRAIT';
object2.LANDSCAPE = 3;
object2[3] = 'LANDSCAPE';
const ChannelTypes = (ConstantsModule).ChannelTypes;
const object3 = {PLAY: 0};
object3[0] = 'PLAY';
object3.SPECTATE = 1;
object3[1] = 'SPECTATE';
const object6 = {UNLOCKED: 1};
object6[1] = 'UNLOCKED';
object6.PORTRAIT = 2;
object6[2] = 'PORTRAIT';
object6.LANDSCAPE = 3;
object6[3] = 'LANDSCAPE';
const Set = global.Set;
const set = new Set(['755600276941176913', '880218832743055411', '1050941315912835122', '880218394199220334']);
const object4 = {PORTRAIT: 0};
object4[0] = 'PORTRAIT';
object4.LANDSCAPE = 1;
object4[1] = 'LANDSCAPE';
const object5 = {FOCUSED: 0};
object5[0] = 'FOCUSED';
object5.PIP = 1;
object5[1] = 'PIP';
object5.GRID = 2;
object5[2] = 'GRID';
const object11 = {'label_type': null, 'release_phase': '', 'label_from': null, 'label_until': null};
const EmbeddedActivityLabelTypes = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes;
const object7 = {PORTRAIT: 0};
object7[0] = 'PORTRAIT';
object7.LANDSCAPE = 1;
object7[1] = 'LANDSCAPE';
const object8 = {FOCUSED: 0};
object8[0] = 'FOCUSED';
object8.PIP = 1;
object8[1] = 'PIP';
object8.GRID = 2;
object8[2] = 'GRID';
const object9 = {'label_type': null, 'release_phase': '', 'label_from': null, 'label_until': null};
const EmbeddedActivityLabelTypes = (ServerModule).EmbeddedActivityLabelTypes;
const NONE = EmbeddedActivityLabelTypes.NONE;
object11.label_type = NONE;
object11.omit_badge_from_surfaces = [];
const object12 = {'application_id': '', 'requires_age_gate': false, 'legacy_responsive_aspect_ratio': false};
let UNLOCKED = object2.UNLOCKED;
object12.default_orientation_lock_state = UNLOCKED;
UNLOCKED = object2.UNLOCKED;
object12.tablet_default_orientation_lock_state = UNLOCKED;
const EmbeddedActivitySupportedPlatforms = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivitySupportedPlatforms;
object9.label_type = NONE;
object9.omit_badge_from_surfaces = [];
const object10 = {'application_id': '', 'requires_age_gate': false, 'legacy_responsive_aspect_ratio': false};
let UNLOCKED = object6.UNLOCKED;
object10.default_orientation_lock_state = UNLOCKED;
UNLOCKED = object6.UNLOCKED;
object10.tablet_default_orientation_lock_state = UNLOCKED;
const EmbeddedActivitySupportedPlatforms = (ServerModule).EmbeddedActivitySupportedPlatforms;
let WEB = EmbeddedActivitySupportedPlatforms.WEB;
object12.supported_platforms = [WEB];
object10.supported_platforms = [WEB];
WEB = EmbeddedActivitySupportedPlatforms.WEB;
const IOS = EmbeddedActivitySupportedPlatforms.IOS;
const ANDROID = EmbeddedActivitySupportedPlatforms.ANDROID;
object12.client_platform_config = {[WEB]: object11, [IOS]: object11, [ANDROID]: object11};
object12.has_csp_exception = false;
object12.displays_advertisements = false;
object12.blocked_locales = [];
object12.supported_locales = [];
object10.client_platform_config = {[WEB]: object9, [IOS]: object9, [ANDROID]: object9};
object10.has_csp_exception = false;
object10.displays_advertisements = false;
object10.blocked_locales = [];
object10.supported_locales = [];
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
const items4 = [GUILD_TEXT];
const DM = ChannelTypes.DM;
@@ -53,11 +57,11 @@ function _fun35041(global, require, importDefault, importAll, module, exports, d
const GROUP_DM = ChannelTypes.GROUP_DM;
items4[2] = GROUP_DM;
const items5 = [];
const value2 = arraySpread(items5, items4, 0, object11);
const value2 = arraySpread(items5, items4, 0, object9);
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items5[value2] = GUILD_VOICE;
value2 + 1;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/Constants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/Constants.tsx');
exports.ACTIVITY_INVITE_COVER_IMAGE_SIZE = 160;
exports.validStreamURL = RegExp('^https?:\\/\\/(?:www\\.)?(twitch\\.tv\\/(.+)|youtube.com\\/watch\\?v=)', '');
exports.XBOX_ACTIVITY_APPLICATION_ID = '438122941302046720';
@@ -114,16 +118,16 @@ function _fun35041(global, require, importDefault, importAll, module, exports, d
exports.SHARE_INTERACTION_APPS = ['1247266306231898122', '1257458870390099989', '1276239071764680926'];
exports.ActivityFeedbackReasons = {ADS: 'ADS', FAILED_LOAD: 'FAILED_LOAD', LAGGING: 'LAGGING',
CONFUSING: 'CONFUSING', NOT_FUN: 'NOT_FUN', OTHER: 'OTHER'};
exports.ActivityIntent = object;
exports.ActivityIntent = object3;
exports.ActivityPlatform = {DESKTOP: 'desktop', MOBILE: 'mobile'};
exports.ActivityTooltipName = {BETRAYAL_MARKETING_TOOLTIP: 'BETRAYAL_MARKETING_TOOLTIP',
FISHINGTON_MARKETING_TOOLTIP: 'FISHINGTON_MARKETING_TOOLTIP',
POKER_MARKETING_TOOLTIP: 'POKER_MARKETING_TOOLTIP', YOUTUBE_MARKETING_TOOLTIP: 'YOUTUBE_MARKETING_TOOLTIP'};
exports.OrientationLockState = object2;
exports.OrientationLockState = object6;
exports.APPLICATIONS_WITH_ALLOWED_POPUPS = set;
exports.ActivityScreenOrientation = object4;
exports.ActivityLayoutMode = object5;
exports.DEFAULT_EMBEDDED_ACTIVITY_CONFIG = object12;
exports.ActivityScreenOrientation = object7;
exports.ActivityLayoutMode = object8;
exports.DEFAULT_EMBEDDED_ACTIVITY_CONFIG = object10;
exports.SUPPORTED_ACTIVITY_IN_TEXT_CHANNEL_TYPES = items4;
exports.SUPPORTED_ACTIVITIES_CHANNEL_TYPES = items5;
exports.getAppIntentScheme = function(a0) {
@@ -148,3 +152,4 @@ function _fun35041(global, require, importDefault, importAll, module, exports, d
exports.INVITE_EXPIRATION_MS = 21600000;
}
global.__d(_fun35041, 4237, [661, 1909, 2]) /* metro module 4237, dependencies: [661, 1909, 2] */;
@@ -1,36 +1,39 @@
/* Metro module 9475; source: modules/activities/DeveloperActivityShelfActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73691(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:6, offset: 0x01d74ceb, size: 140 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/DeveloperActivityShelfActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/DeveloperActivityShelfActionCreators.tsx');
exports.toggleUseActivityUrlOverride = toggleUseActivityUrlOverride;
exports.setActivityUrlOverride = setActivityUrlOverride;
exports.markActivityUsed = markActivityUsed;
exports.updateFilter = updateFilter;
function toggleUseActivityUrlOverride() { // fn#73692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:216, offset: 0x01d74d77, size: 48 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE'});
}
function setActivityUrlOverride(a0) { // fn#73693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:367, offset: 0x01d74da7, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE',
activityUrlOverride: a0});
}
function markActivityUsed(a0) { // fn#73694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:522, offset: 0x01d74ddf, size: 98 bytes, params: 2, frame: 14
const dispatch = Dispatcher.dispatch;
const object = {type: 'DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED', applicationId: a0};
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
object.timestamp = (date instanceof Object ? date : value2).getTime();
Reflect.apply(dispatch, Dispatcher, [object]);
}
function updateFilter(a0) { // fn#73695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:685, offset: 0x01d74e41, size: 55 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER',
filter: a0});
}
}
function toggleUseActivityUrlOverride() { // fn#73692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:216, offset: 0x01d74d77, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE'});
}
function setActivityUrlOverride(a0) { // fn#73693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:367, offset: 0x01d74da7, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE',
activityUrlOverride: a0});
}
function markActivityUsed(a0) { // fn#73694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:522, offset: 0x01d74ddf, size: 98 bytes, params: 2, frame: 14
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED', applicationId: a0};
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
object2.timestamp = (date instanceof Object ? date : value2).getTime();
Reflect.apply(dispatch, value, [object2]);
}
function updateFilter(a0) { // fn#73695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:685, offset: 0x01d74e41, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER',
filter: a0});
}
global.__d(_fun73691, 9475, [694, 2]) /* metro module 9475, dependencies: [694, 2] */;
@@ -1,21 +1,24 @@
/* Metro module 7503; source: modules/activities/DeveloperActivityShelfStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 7504, 3829, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsModule from '../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
function _fun60481(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:6, offset: 0x01704658, size: 502 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).ApplicationFlags;
({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
'filter': ''}).lastUsedObject = {};
object2 = {INITIALIZED: 'INITIALIZED', LOADING: 'LOADING', LOADED: 'LOADED', ERROR: 'ERROR'};
const env0_10 = object2.INITIALIZED;
object = {INITIALIZED: 'INITIALIZED', LOADING: 'LOADING', LOADED: 'LOADED', ERROR: 'ERROR'};
const env0_10 = object.INITIALIZED;
const env0_11 = [];
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun60485(PersistedStore);
value.displayName = 'DeveloperActivityShelfStore';
value.persistKey = 'DeveloperActivityShelfStore';
@@ -35,145 +38,163 @@ function _fun60481(global, require, importDefault, importAll, module, exports, d
DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER: DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER,
USER_SETTINGS_PROTO_UPDATE: function() {
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/DeveloperActivityShelfStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/DeveloperActivityShelfStore.tsx');
exports.default = value;
exports.DevShelfFetchState = object2;
}
function _isNativeReflectConstruct_60482() { // fn#60482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:175, offset: 0x0170484e, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
exports.DevShelfFetchState = object;
function _isNativeReflectConstruct_60482() { // fn#60482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:175, offset: 0x0170484e, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_60482_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_60482_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun60485(a0) { // fn#60485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:592, offset: 0x017048ac, size: 281 bytes, params: 2, frame: 16
const closure = DeveloperActivityShelfStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_60487}, {key: 'getState', value: value_60488},
{key: 'getIsEnabled', value: value_60489}, {key: 'getLastUsedObject', value: value_60490},
{key: 'getUseActivityUrlOverride', value: value_60491}, {key: 'getActivityUrlOverride', value: value_60492},
{key: 'getFetchState', value: function() {
return INITIALIZED;
}}, {key: 'getFilter', value: value_60494}, {key: 'getDeveloperShelfItems', value: value_60495},
{key: 'inDevModeForApplication', value: value_60496}]);
}
function _fun60485(a0) { // fn#60485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:592, offset: 0x017048ac, size: 281 bytes, params: 2, frame: 16
const DeveloperActivityShelfStore2 = DeveloperActivityShelfStore;
Inherits(DeveloperActivityShelfStore2, a0);
return CreateClass(DeveloperActivityShelfStore2, [{key: 'initialize', value: value_60487}, {key: 'getState',
value: value_60488}, {key: 'getIsEnabled', value: value_60489}, {key: 'getLastUsedObject', value: value_60490},
{key: 'getUseActivityUrlOverride', value: value_60491}, {key: 'getActivityUrlOverride', value: value_60492},
{key: 'getFetchState', value: function() {
return INITIALIZED;
}}, {key: 'getFilter', value: value_60494}, {key: 'getDeveloperShelfItems', value: value_60495},
{key: 'inDevModeForApplication', value: value_60496}]);
function DeveloperActivityShelfStore() { // fn#60486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:604, offset: 0x00de700a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, DeveloperActivityShelfStore);
const value3 = env1_5(DeveloperActivityShelfStore);
return env1_4(this, _isNativeReflectConstruct_60482() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function LOGOUT_60499() { // fn#60499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1983, offset: 0x01704b16, size: 55 bytes, params: 1, frame: 2
({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
'filter': ''}).lastUsedObject = {};
env0_10 = env0_9.INITIALIZED;
env0_11 = [];
}
function value_60487(a0) { // fn#60487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:957, offset: 0x017049c5, size: 54 bytes, params: 2, frame: 12
copyDataProperties({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
'filter': '', lastUsedObject: {}}, a0 ?? ({}), null);
value = environment.__proto__;
}
function DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE() { // fn#60500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2163, offset: 0x01704b4d, size: 26 bytes, params: 1, frame: 2
const binding = env0_8;
const useActivityUrlOverride = binding.useActivityUrlOverride;
binding.useActivityUrlOverride = !useActivityUrlOverride;
}
function value_60488() { // fn#60488, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE({activityUrlOverride}) { // fn#60501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2312, offset: 0x01704b67, size: 26 bytes, params: 2, frame: 2
env0_8.activityUrlOverride = activityUrlOverride;
}
function value_60489() { // fn#60489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1140, offset: 0x017049fb, size: 61 bytes, params: 1, frame: 12
const value = environment.__proto__;
const DeveloperMode = (UserSettingsModule).DeveloperMode;
return DeveloperMode.getSetting() && env1_11.length > 0;
}
function value_60490() { // fn#60490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1238, offset: 0x01704a38, size: 15 bytes, params: 1, frame: 1
return env1_8.lastUsedObject;
}
function value_60491() { // fn#60491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1314, offset: 0x01704a47, size: 31 bytes, params: 1, frame: 9
return this.getIsEnabled() && env1_8.useActivityUrlOverride;
}
function value_60492() { // fn#60492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1416, offset: 0x01704a66, size: 33 bytes, params: 1, frame: 9
return this.getIsEnabled() ? env1_8.activityUrlOverride : null;
}
function value_60494() { // fn#60494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1555, offset: 0x01704a87, size: 34 bytes, params: 1, frame: 9
return this.getIsEnabled() ? env1_8.filter : '';
}
function value_60495() { // fn#60495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1643, offset: 0x01704aa9, size: 31 bytes, params: 1, frame: 9
const getIsEnabled = this.getIsEnabled;
return Reflect.apply(getIsEnabled, this, []) ? env1_11 : [];
}
function value_60496(a0) { // fn#60496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1725, offset: 0x01704ac8, size: 56 bytes, params: 2, frame: 12
var environment;
var r0;
const env0_0 = a0;
let value = this.getIsEnabled();
if (value) {
value = environment.__proto__;
value = env1_11.find(_fun60497);
value = value != null;
r0 = value;
} else {
r0 = value;
}
return r0;
function _fun60497({id}) { // fn#60497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1779, offset: 0x00db0c48, size: 21 bytes, params: 2, frame: 2
return id === env0_0;
}
}
function DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED({applicationId, timestamp}) { // fn#60502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2444, offset: 0x01704b81, size: 71 bytes, params: 2, frame: 14
if (env0_11.find(function({id}) {
return id === applicationId;
}) == null) {
return false;
}
env0_8.lastUsedObject[applicationId] = timestamp;
}
function DEVELOPER_ACTIVITY_SHELF_FETCH_START() { // fn#60504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2570, offset: 0x01704bc8, size: 21 bytes, params: 1, frame: 2
env0_10 = env0_9.LOADING;
}
function DEVELOPER_ACTIVITY_SHELF_FETCH_SUCCESS_60505({applications}) { // fn#60505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2661, offset: 0x01704bdd, size: 51 bytes, params: 2, frame: 12
env0_10 = env0_9.LOADED;
env0_11 = applications.filter(function(a0) {
return require(dependencyMap[6]).hasApplicationFlag(a0, ApplicationFlags.EMBEDDED);
});
}
function DEVELOPER_ACTIVITY_SHELF_FETCH_FAIL(a0) { // fn#60507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2852, offset: 0x01704c44, size: 29 bytes, params: 2, frame: 2
a0.type;
env0_10 = env0_9.ERROR;
}
function DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER({filter}) { // fn#60508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2976, offset: 0x01704c61, size: 25 bytes, params: 2, frame: 2
env0_8.filter = filter;
}
function value_60487(a0) { // fn#60487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:957, offset: 0x017049c5, size: 54 bytes, params: 2, frame: 12
copyDataProperties({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
'filter': '', lastUsedObject: {}}, a0 ?? ({}), null);
value = environment.__proto__;
}
function value_60489() { // fn#60489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1140, offset: 0x017049fb, size: 61 bytes, params: 1, frame: 12
const value = environment.__proto__;
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
return DeveloperMode.getSetting() && env1_11.length > 0;
}
function value_60490() { // fn#60490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1238, offset: 0x01704a38, size: 15 bytes, params: 1, frame: 1
return env1_8.lastUsedObject;
}
function value_60491() { // fn#60491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1314, offset: 0x01704a47, size: 31 bytes, params: 1, frame: 9
return this.getIsEnabled() && env1_8.useActivityUrlOverride;
}
function value_60492() { // fn#60492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1416, offset: 0x01704a66, size: 33 bytes, params: 1, frame: 9
return this.getIsEnabled() ? env1_8.activityUrlOverride : null;
}
function value_60494() { // fn#60494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1555, offset: 0x01704a87, size: 34 bytes, params: 1, frame: 9
return this.getIsEnabled() ? env1_8.filter : '';
}
function value_60495() { // fn#60495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1643, offset: 0x01704aa9, size: 31 bytes, params: 1, frame: 9
const getIsEnabled = this.getIsEnabled;
return Reflect.apply(getIsEnabled, this, []) ? env1_11 : [];
}
function value_60496(a0) { // fn#60496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1725, offset: 0x01704ac8, size: 56 bytes, params: 2, frame: 12
var environment;
var r0;
const env0_0 = a0;
let value = this.getIsEnabled();
if (value) {
value = environment.__proto__;
value = env1_11.find(_fun60497);
value = value != null;
r0 = value;
} else {
r0 = value;
function LOGOUT_60499() { // fn#60499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1983, offset: 0x01704b16, size: 55 bytes, params: 1, frame: 2
({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
'filter': ''}).lastUsedObject = {};
env0_10 = env0_9.INITIALIZED;
env0_11 = [];
}
return r0;
function DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE() { // fn#60500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2163, offset: 0x01704b4d, size: 26 bytes, params: 1, frame: 2
const binding = env0_8;
const useActivityUrlOverride = binding.useActivityUrlOverride;
binding.useActivityUrlOverride = !useActivityUrlOverride;
}
function DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE({activityUrlOverride}) { // fn#60501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2312, offset: 0x01704b67, size: 26 bytes, params: 2, frame: 2
env0_8.activityUrlOverride = activityUrlOverride;
}
function DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED({applicationId, timestamp}) { // fn#60502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2444, offset: 0x01704b81, size: 71 bytes, params: 2, frame: 14
if (env0_11.find(function({id}) {
return id === applicationId;
}) == null) {
return false;
}
env0_8.lastUsedObject[applicationId] = timestamp;
}
function DEVELOPER_ACTIVITY_SHELF_FETCH_START() { // fn#60504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2570, offset: 0x01704bc8, size: 21 bytes, params: 1, frame: 2
env0_10 = env0_9.LOADING;
}
function DEVELOPER_ACTIVITY_SHELF_FETCH_SUCCESS_60505({applications}) { // fn#60505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2661, offset: 0x01704bdd, size: 51 bytes, params: 2, frame: 12
env0_10 = env0_9.LOADED;
env0_11 = applications.filter(function(a0) {
return require(dependencyMap[6]).hasApplicationFlag(a0, ApplicationFlags.EMBEDDED);
});
}
function DEVELOPER_ACTIVITY_SHELF_FETCH_FAIL(a0) { // fn#60507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2852, offset: 0x01704c44, size: 29 bytes, params: 2, frame: 2
a0.type;
env0_10 = env0_9.ERROR;
}
function DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER({filter}) { // fn#60508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2976, offset: 0x01704c61, size: 25 bytes, params: 2, frame: 2
env0_8.filter = filter;
}
}
global.__d(_fun60481, 7503, [6, 7, 15, 17, 18, 661, 7504, 3829, 566, 694,
2]) /* metro module 7503, dependencies: [6, 7, 15, 17, 18, 661, 7504, 3829, 566, 694, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,14 +1,17 @@
/* Metro module 10597; source: modules/activities/MessageActivityInviteCoverImageActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun81710(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10783:6, offset: 0x01edafc0, size: 99 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/MessageActivityInviteCoverImageActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/MessageActivityInviteCoverImageActionCreators.tsx');
exports.setCoverImageURL = setCoverImageURL;
function setCoverImageURL({messageId, coverImageURL}) { // fn#81711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10783:213, offset: 0x01edb023, size: 71 bytes, params: 2, frame: 15
Dispatcher.dispatch({type: 'SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL', messageId: messageId,
coverImageURL: coverImageURL});
}
}
function setCoverImageURL({messageId, coverImageURL}) { // fn#81711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10783:213, offset: 0x01edb023, size: 71 bytes, params: 2, frame: 15
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatcher.dispatch({type: 'SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL', messageId: messageId,
coverImageURL: coverImageURL});
}
global.__d(_fun81710, 10597, [694, 2]) /* metro module 10597, dependencies: [694, 2] */;
@@ -1,68 +1,82 @@
/* Metro module 10596; source: modules/activities/MessageActivityInviteCoverImageStore.tsx; dependencies: [6, 7, 15, 17, 18, 1393, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Module01393 from '../../by-id/module-01393.js'; /* Metro dependency 1393 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun81702(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:6, offset: 0x01edad83, size: 318 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(1393) /* metro dependency 1393 */;
let value = Module01393;
value = new value({max: 500});
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun81706(Store).displayName = 'MessageActivityInviteCoverImageStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL: SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/MessageActivityInviteCoverImageStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/MessageActivityInviteCoverImageStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_81703() { // fn#81703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:148, offset: 0x01edaec1, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_81703() { // fn#81703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:148, offset: 0x01edaec1, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_81703_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_81703_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun81706(a0) { // fn#81706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:377, offset: 0x01edaf23, size: 72 bytes, params: 2, frame: 15
const closure = MessageActivityInviteCoverImageStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getCoverImageURL', value: value_81708}]);
}
function _fun81706(a0) { // fn#81706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:377, offset: 0x01edaf23, size: 72 bytes, params: 2, frame: 15
const MessageActivityInviteCoverImageStore2 = MessageActivityInviteCoverImageStore;
Inherits(MessageActivityInviteCoverImageStore2, a0);
return CreateClass(MessageActivityInviteCoverImageStore2, [{key: 'getCoverImageURL', value: value_81708}]);
function MessageActivityInviteCoverImageStore() { // fn#81707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:389, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, MessageActivityInviteCoverImageStore);
const value3 = env1_3(MessageActivityInviteCoverImageStore);
return env1_2(this, _isNativeReflectConstruct_81703() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_81708({messageId}) { // fn#81708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:793, offset: 0x01edaf6b, size: 27 bytes, params: 2, frame: 11
return env1_5.get(messageId);
}
function SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL({messageId, coverImageURL}) { // fn#81709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:971, offset: 0x01edaf86, size: 58 bytes, params: 2, frame: 14
const binding = env0_5;
const get = binding.get;
if (Reflect.apply(get, binding, [messageId]) === coverImageURL) {
return false;
}
env0_5.set(messageId, coverImageURL);
}
function value_81708({messageId}) { // fn#81708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:793, offset: 0x01edaf6b, size: 27 bytes, params: 2, frame: 11
return env1_5.get(messageId);
function SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL({messageId, coverImageURL}) { // fn#81709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:971, offset: 0x01edaf86, size: 58 bytes, params: 2, frame: 14
const binding = env0_5;
const get = binding.get;
if (Reflect.apply(get, binding, [messageId]) === coverImageURL) {
return false;
}
env0_5.set(messageId, coverImageURL);
}
}
global.__d(_fun81702, 10596, [6, 7, 15, 17, 18, 1393, 566, 694,
2]) /* metro module 10596, dependencies: [6, 7, 15, 17, 18, 1393, 566, 694, 2] */;
@@ -1,63 +1,73 @@
/* Metro module 10649; source: modules/activities/confirmActivityAgeGateAlert.native.tsx; dependencies: [31, 27, 33, 4501, 697, 10650, 4573, 1244, 4647, 1305, 2] */
import Native from '../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import AlertActionCreators from '../../actions/AlertActionCreators.tsx'; /* Metro dependency 4647 */
import ActivityAnnouncement from './native/ActivityAnnouncement.tsx'; /* Metro dependency 10650 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 NativeModule from '../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun81928(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:6, offset: 0x01ee3dd4, size: 274 bytes, params: 8, frame: 21
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;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
const INTERACTIVE_TEXT_DEFAULT = (Native).colors.INTERACTIVE_TEXT_DEFAULT;
const env0_6 = Reflect.apply(createStyles, value, [{alertContainer: {'display': 'flex', 'alignItems': 'center',
'padding': 8}, alertBodyText: {'fontSize': 16, 'lineHeight': 24, 'color': null, 'textAlign': 'center',
color: INTERACTIVE_TEXT_DEFAULT}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmActivityAgeGateAlert.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/confirmActivityAgeGateAlert.native.tsx');
exports.confirmActivityAgeGateAlert = confirmActivityAgeGateAlert;
function ConfirmActivityGateContent({description}) { // fn#81929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:341, offset: 0x01ee3ee6, size: 154 bytes, params: 2, frame: 20
const styles = useStyles();
const value2 = ((Component) => <Component />)(ActivityAnnouncement);
const Text = (TextModule).Text;
return (
<View style={styles.alertContainer}>
{value2}
<Text style={styles.alertBodyText} variant="text-md/normal">
{description}
</Text>
</View>
);
}
function confirmActivityAgeGateAlert(a0) { // fn#81930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:664, offset: 0x01ee3f80, size: 362 bytes, params: 2, frame: 25
const application = a0.application;
a0.channelId;
const onAgree = a0.onAgree;
const onDisagree = a0.onDisagree;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const OgmIqy = (require(1244) /* metro dependency 1244: indexNative */).t.OgmIqy;
const value2 = Reflect.apply(formatToPlainString, intl, [OgmIqy, {applicationName: application.name}]);
const Promise = global.Promise;
const resolve = Promise.resolve;
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
object = {};
const string = intl.string;
const SSDPOF = (require(1244) /* metro dependency 1244: indexNative */).t.SSDPOF;
object.title = Reflect.apply(string, intl, [SSDPOF]);
object.children = <ConfirmActivityGateContent description={value2} />;
object.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hg1uxn);
object.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wVq7uo);
object.onConfirm = onAgree;
object.onCancel = onDisagree;
const ButtonColors = (NativeModule).ButtonColors;
const RED = ButtonColors.RED;
object.confirmColor = RED;
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object])]);
}
}
function ConfirmActivityGateContent({description}) { // fn#81929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:341, offset: 0x01ee3ee6, size: 154 bytes, params: 2, frame: 20
const styles = useStyles();
const value2 = ((Component) => <Component />)(importDefault(10650) /* metro dependency 10650: ActivityAnnouncement */);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.alertContainer}>
{value2}
<Text style={styles.alertBodyText} variant="text-md/normal">
{description}
</Text>
</View>
);
}
function confirmActivityAgeGateAlert(a0) { // fn#81930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:664, offset: 0x01ee3f80, size: 362 bytes, params: 2, frame: 25
var object2;
const application = a0.application;
a0.channelId;
const onAgree = a0.onAgree;
const onDisagree = a0.onDisagree;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const OgmIqy = (require(1244) /* metro dependency 1244: indexNative */).t.OgmIqy;
const value2 = Reflect.apply(formatToPlainString, intl, [OgmIqy, {applicationName: application.name}]);
const Promise = global.Promise;
const resolve = Promise.resolve;
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport.show;
object2 = {};
const string = intl.string;
const SSDPOF = (require(1244) /* metro dependency 1244: indexNative */).t.SSDPOF;
object2.title = Reflect.apply(string, intl, [SSDPOF]);
object2.children = <ConfirmActivityGateContent description={value2} />;
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hg1uxn);
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wVq7uo);
object2.onConfirm = onAgree;
object2.onCancel = onDisagree;
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
const RED = ButtonColors.RED;
object2.confirmColor = RED;
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object2])]);
}
global.__d(_fun81928, 10649, [31, 27, 33, 4501, 697, 10650, 4573, 1244, 4647, 1305,
2]) /* metro module 10649, dependencies: [31, 27, 33, 4501, 697, 10650, 4573, 1244, 4647, 1305, 2] */;
@@ -1,52 +1,63 @@
/* Metro module 10648; source: modules/activities/confirmActivityChangeAlert.tsx; dependencies: [3793, 1878, 4805, 4647, 1244, 1861, 2] */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import AlertActionCreators from '../../actions/AlertActionCreators.tsx'; /* Metro dependency 4647 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StringUtilsModule from '../../utils/StringUtils.tsx'; /* Metro dependency 1861 */
function _fun81926(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:6, offset: 0x01ee3b57, size: 134 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmActivityChangeAlert.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/confirmActivityChangeAlert.tsx');
exports.default = confirmActivityChangeModal;
function confirmActivityChangeModal(a0, a1, a2, a3) { // fn#81927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:209, offset: 0x01ee3bdd, size: 503 bytes, params: 5, frame: 26
var r8;
var r10;
var moduleValue;
var intl2;
var intl3;
if (a1 != null) {
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
r8 = moduleValue.computeChannelName(a1, UserStore, RelationshipStore);
} else {
r8 = '';
}
const value2 = undefined;
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const XkIWkk = t.XkIWkk;
object.title = Reflect.apply(string, intl, [XkIWkk]);
object.cancelText = intl.string(t['ETE/oC']);
object.confirmText = intl.string(t['cY+Oob']);
object.onConfirm = a2;
object.onCancel = a3;
const format = intl.format;
const property = t['5/Xort'];
const object2 = {};
const name = a0 == null ? value2 : a0.name;
if (name != null) {
r10 = name;
} else {
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r10 = intl2.string(t.G99XFs);
}
object2.currentApplicationName = r10;
if (StringUtilsModule.isNullOrEmpty(r8)) {
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r8 = intl3.string(t.OGUjmt);
}
object2.currentApplicationChannelName = r8;
object.body = Reflect.apply(format, intl, [property, object2]);
Reflect.apply(show, defaultImport, [object]);
return value2;
}
}
function confirmActivityChangeModal(a0, a1, a2, a3) { // fn#81927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:209, offset: 0x01ee3bdd, size: 503 bytes, params: 5, frame: 26
var r10;
var intl2;
var intl3;
let r8 = a1 != null ? (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(a1, UserStore,
RelationshipStore) : '';
const value2 = undefined;
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport.show;
const object3 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const XkIWkk = t.XkIWkk;
object3.title = Reflect.apply(string, intl, [XkIWkk]);
object3.cancelText = intl.string(t['ETE/oC']);
object3.confirmText = intl.string(t['cY+Oob']);
object3.onConfirm = a2;
object3.onCancel = a3;
const format = intl.format;
const property = t['5/Xort'];
const object4 = {};
const name = a0 == null ? value2 : a0.name;
if (name != null) {
r10 = name;
} else {
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r10 = intl2.string(t.G99XFs);
}
object4.currentApplicationName = r10;
const stringUtilsModule = require(1861) /* metro dependency 1861: StringUtils */;
if (stringUtilsModule.isNullOrEmpty(r8)) {
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r8 = intl3.string(t.OGUjmt);
}
object4.currentApplicationChannelName = r8;
object3.body = Reflect.apply(format, intl, [property, object4]);
Reflect.apply(show, defaultImport, [object3]);
return value2;
}
global.__d(_fun81926, 10648, [3793, 1878, 4805, 4647, 1244, 1861,
2]) /* metro module 10648, dependencies: [3793, 1878, 4805, 4647, 1244, 1861, 2] */;
@@ -1,74 +1,100 @@
/* Metro module 10651; source: modules/activities/confirmExternalAppLaunchAlert.native.tsx; dependencies: [31, 27, 4237, 33, 4501, 10652, 4573, 1244, 4578, 3853, 4647, 2] */
import AlertActionCreators from '../../actions/AlertActionCreators.tsx'; /* Metro dependency 4647 */
import Module10652 from '../../by-id/module-10652.js'; /* Metro dependency 10652 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 4237 */
import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun81933(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:6, offset: 0x01ee4d61, size: 359 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
const env0_5 = (require(4237) /* metro dependency 4237: Constants */).PRIVATE_APPS_HELP_ARTICLE;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({alertContainer: {'display': 'flex',
const env0_8 = (CreateStylesModule).createStyles({alertContainer: {'display': 'flex',
'alignItems': 'center', 'padding': 8}, alertEyebrowText: {'marginTop': 40, 'textAlign': 'center'},
alertTitleText: {'marginTop': 16, 'textAlign': 'center'}, alertSubtitleText: {'marginTop': 16,
'textAlign': 'center'}, announcementBirb: {'width': 90, 'height': 100, 'position': 'absolute', 'top': -66},
linkWrapper: {marginTop: 8}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmExternalAppLaunchAlert.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/confirmExternalAppLaunchAlert.native.tsx');
exports.confirmExternalAppLaunchAlert = confirmExternalAppLaunchAlert;
function ConfirmActivityGateContent_81934({application}) { // fn#81934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:529, offset: 0x01ee4ec8, size: 434 bytes, params: 2, frame: 28
const styles = useStyles();
const items2 = [
<Image source={Module10652} style={styles.announcementBirb} />,
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<Text style={styles.alertEyebrowText} variant="eyebrow">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['06YebE'])}
</Text>
);
items2[2] = (
<Text style={styles.alertTitleText} variant="heading-lg/bold">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['Z/eMDT'],
{activityName: application.name})}
</Text>
);
items2[3] = (
<Text style={styles.alertSubtitleText} variant="text-sm/normal">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z81WwD)}
</Text>
);
return (
<View style={styles.alertContainer}>
{items2}
</View>
);
}
function LinkButton_81935() { // fn#81935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1053, offset: 0x01ee507a, size: 160 bytes, params: 1, frame: 21
const styles = useStyles();
const Button = (ButtonNativeModule).Button;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const E0gf5l = (IndexNativeModule).t.E0gf5l;
return (
<View style={styles.linkWrapper}>
<Button
variant="secondary"
size="sm"
onPress={function() {
importDefault(dependencyMap[9]).openURL(PRIVATE_APPS_HELP_ARTICLE);
}}
text={Reflect.apply(string, intl, [E0gf5l])}
/>
</View>
);
}
function confirmExternalAppLaunchAlert({application, onConfirm, onCancel}) { // fn#81937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1380, offset: 0x01ee5144, size: 246 bytes, params: 2, frame: 23
const Promise = global.Promise;
const resolve = Promise.resolve;
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
const object = {title: ''};
object.children = <ConfirmActivityGateContent_81934 application={application} />;
object.onConfirm = onConfirm;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']);
object.onCancel = onCancel;
object.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
object.footer = <LinkButton_81935 />;
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object])]);
}
}
function ConfirmActivityGateContent_81934({application}) { // fn#81934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:529, offset: 0x01ee4ec8, size: 434 bytes, params: 2, frame: 28
const styles = useStyles();
const items2 = [<Image source={importDefault(10652) /* metro dependency 10652 */} style={styles.announcementBirb} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <Text style={styles.alertEyebrowText} variant="eyebrow">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['06YebE'])}</Text>;
items2[2] = <Text style={styles.alertTitleText} variant="heading-lg/bold">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['Z/eMDT'],
{activityName: application.name})}</Text>;
items2[3] = <Text style={styles.alertSubtitleText} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z81WwD)}</Text>;
return (
<View style={styles.alertContainer}>
{items2}
</View>
);
}
function LinkButton_81935() { // fn#81935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1053, offset: 0x01ee507a, size: 160 bytes, params: 1, frame: 21
const styles = useStyles();
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const E0gf5l = (require(1244) /* metro dependency 1244: indexNative */).t.E0gf5l;
return (
<View style={styles.linkWrapper}>
<Button
variant="secondary"
size="sm"
onPress={function() {
importDefault(dependencyMap[9]).openURL(PRIVATE_APPS_HELP_ARTICLE);
}}
text={Reflect.apply(string, intl, [E0gf5l])}
/>
</View>
);
}
function confirmExternalAppLaunchAlert({application, onConfirm, onCancel}) { // fn#81937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1380, offset: 0x01ee5144, size: 246 bytes, params: 2, frame: 23
const Promise = global.Promise;
const resolve = Promise.resolve;
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport.show;
const object2 = {title: ''};
object2.children = <ConfirmActivityGateContent_81934 application={application} />;
object2.onConfirm = onConfirm;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']);
object2.onCancel = onCancel;
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
object2.footer = <LinkButton_81935 />;
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object2])]);
}
global.__d(_fun81933, 10651, [31, 27, 4237, 33, 4501, 10652, 4573, 1244, 4578, 3853, 4647,
2]) /* metro module 10651, dependencies: [31, 27, 4237, 33, 4501, 10652, 4573, 1244, 4578, 3853, 4647, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 13032; source: modules/activities/getActivitiesModalContextKey.native.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun99480(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13222:6, offset: 0x021ca73e, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getActivitiesModalContextKey.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/getActivitiesModalContextKey.native.tsx');
exports.getActivitiesModalContextKey = function(a0) {
a0.application;
a0.channelId;
};
}
global.__d(_fun99480, 13032, [2]) /* metro module 13032, dependencies: [2] */;
@@ -1,45 +1,49 @@
/* Metro module 15703; source: modules/activities/getActivityReportOptions.tsx; dependencies: [4237, 1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 4237 */
function _fun120532(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:6, offset: 0x0252e58b, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getActivityReportOptions.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/getActivityReportOptions.tsx');
exports.default = getActivityReportOptions;
}
function getActivityReportOptions(a0) { // fn#120533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:221, offset: 0x0252e600, size: 591 bytes, params: 2, frame: 20
var push;
const value = a1;
const r1 = value !== undefined ? value : false;
const object2 = {};
const FAILED_LOAD = ActivityFeedbackReasons.FAILED_LOAD;
object2.value = FAILED_LOAD;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.label = a0 ? Reflect.apply(string, intl, [t.uaiF6B]) : Reflect.apply(string, intl, [t.aO6OMZ]);
const items2 = [object2];
const LAGGING = ActivityFeedbackReasons.LAGGING;
string = intl.string;
items2[1] = {value: LAGGING, label: a0 ? Reflect.apply(string, intl, [t['/nJOlj']]) : Reflect.apply(string, intl,
[t['79HFwf']])};
const CONFUSING = ActivityFeedbackReasons.CONFUSING;
string = intl.string;
items2[2] = {value: CONFUSING, label: a0 ? Reflect.apply(string, intl, [t['/8psS7']]) : Reflect.apply(string, intl,
[t.iSv55N])};
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
string = intl.string;
items2[3] = {value: NOT_FUN, label: a0 ? Reflect.apply(string, intl, [t['7GVmLm']]) : Reflect.apply(string, intl,
[t.GnVff5])};
const OTHER = ActivityFeedbackReasons.OTHER;
items2[4] = {value: OTHER, label: intl.string(t.emlT91)};
if (r1) {
push = items2.push;
function getActivityReportOptions(a0) { // fn#120533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:221, offset: 0x0252e600, size: 591 bytes, params: 2, frame: 20
var push;
const value = a1;
const r1 = value !== undefined ? value : false;
const object = {};
const FAILED_LOAD = ActivityFeedbackReasons.FAILED_LOAD;
object.value = FAILED_LOAD;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.label = a0 ? Reflect.apply(string, intl, [t.uaiF6B]) : Reflect.apply(string, intl, [t.aO6OMZ]);
const items2 = [object];
const LAGGING = ActivityFeedbackReasons.LAGGING;
string = intl.string;
Reflect.apply(push, items2, [{value: ActivityFeedbackReasons.ADS, label: a0 ? Reflect.apply(string, intl,
[t['5o1UL6']]) : Reflect.apply(string, intl, [t.XeeDhK])}]);
items2[1] = {value: LAGGING, label: a0 ? Reflect.apply(string, intl, [t['/nJOlj']]) : Reflect.apply(string, intl,
[t['79HFwf']])};
const CONFUSING = ActivityFeedbackReasons.CONFUSING;
string = intl.string;
items2[2] = {value: CONFUSING, label: a0 ? Reflect.apply(string, intl, [t['/8psS7']]) : Reflect.apply(string, intl,
[t.iSv55N])};
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
string = intl.string;
items2[3] = {value: NOT_FUN, label: a0 ? Reflect.apply(string, intl, [t['7GVmLm']]) : Reflect.apply(string, intl,
[t.GnVff5])};
const OTHER = ActivityFeedbackReasons.OTHER;
items2[4] = {value: OTHER, label: intl.string(t.emlT91)};
if (r1) {
push = items2.push;
string = intl.string;
Reflect.apply(push, items2, [{value: ActivityFeedbackReasons.ADS, label: a0 ? Reflect.apply(string, intl,
[t['5o1UL6']]) : Reflect.apply(string, intl, [t.XeeDhK])}]);
}
return items2;
}
return items2;
}
global.__d(_fun120532, 15703, [4237, 1244, 2]) /* metro module 15703, dependencies: [4237, 1244, 2] */;
+24 -13
View File
@@ -1,9 +1,11 @@
/* Metro module 8099; source: modules/activities/getShelfItemData.tsx; dependencies: [4234, 2] */
import ApplicationStore from '../applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:6, offset: 0x01bba9d2, size: 104 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getShelfItemData.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/getShelfItemData.tsx');
exports.default = function(a0) {
var r2;
var applicationId = a0.applicationId;
@@ -16,16 +18,25 @@ function _fun64950(global, require, importDefault, importAll, module, exports, d
var value6 = activityConfigs.find(_fun64953);
return value == value6 || value == r2 ? value : {activity: value6, application: r2};
};
function getShelfItemData({applicationId, activityConfigs, applications}) { // fn#64951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:189, offset: 0x01bbaa3a, size: 125 bytes, params: 2, frame: 16
let r2 = applications?.find(function({id}) {
return id === applicationId;
});
r2 = r2 ?? ApplicationStore.getApplication(applicationId);
const value6 = activityConfigs.find(function({application_id}) {
return application_id === applicationId;
});
return value6 == null || r2 == null ? null : {activity: value6, application: r2};
function _fun64952({id}) { // fn#64952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:307, offset: 0x00db0c48, size: 21 bytes, params: 2, frame: 2
return id === applicationId;
}
function _fun64953({application_id}) { // fn#64953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:354, offset: 0x0108da35, size: 22 bytes, params: 2, frame: 2
return application_id === applicationId;
}
}
}
function getShelfItemData({applicationId, activityConfigs, applications}) { // fn#64951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:189, offset: 0x01bbaa3a, size: 125 bytes, params: 2, frame: 16
let r2 = applications?.find(function({id}) {
return id === applicationId;
});
r2 = r2 ?? ApplicationStore.getApplication(applicationId);
const value6 = activityConfigs.find(function({application_id}) {
return application_id === applicationId;
});
return value6 == null || r2 == null ? null : {activity: value6, application: r2};
}
global.__d(_fun64950, 8099, [4234, 2]) /* metro module 8099, dependencies: [4234, 2] */;
@@ -1,28 +1,31 @@
/* Metro module 8067; source: modules/activities/getURLForApplication.tsx; dependencies: [7505, 7503, 2] */
import DeveloperActivityShelfStore from './DeveloperActivityShelfStore.tsx'; /* Metro dependency 7503 */
import TestModeStore from '../../stores/game_store/TestModeStore.tsx'; /* Metro dependency 7505 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64045(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:6, offset: 0x01b99e44, size: 152 bytes, params: 8, frame: 20
const closure = function(a0) {
var ACTIVITY_APPLICATION_HOST = global.window.GLOBAL_ENV.ACTIVITY_APPLICATION_HOST;
var value = null;
return value == ACTIVITY_APPLICATION_HOST ? value : 'https://' + a0 + '.' + ACTIVITY_APPLICATION_HOST;
};
const closure2 = isUsingDevShelfActivityUrlOverride;
const isUsingDevShelfActivityUrlOverride2 = isUsingDevShelfActivityUrlOverride;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const testModeStore = importDefault(7505) /* metro dependency 7505: TestModeStore */;
const developerActivityShelfStore = importDefault(7503) /* metro dependency 7503: DeveloperActivityShelfStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getURLForApplication.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/getURLForApplication.tsx');
exports.default = getURLForApplication;
exports.getNonTestModeUrlForApplication = closure;
exports.isUsingDevShelfActivityUrlOverride = closure2;
}
exports.isUsingDevShelfActivityUrlOverride = isUsingDevShelfActivityUrlOverride2;
function isUsingDevShelfActivityUrlOverride() { // fn#64047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:250, offset: 0x01b99f1a, size: 57 bytes, params: 1, frame: 11
const state = DeveloperActivityShelfStore.getState();
const useActivityUrlOverride = state.useActivityUrlOverride;
return useActivityUrlOverride && state.activityUrlOverride != null && state.activityUrlOverride !== '';
}
function isUsingDevShelfActivityUrlOverride() { // fn#64047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:250, offset: 0x01b99f1a, size: 57 bytes, params: 1, frame: 11
const state = DeveloperActivityShelfStore.getState();
const useActivityUrlOverride = state.useActivityUrlOverride;
return useActivityUrlOverride && state.activityUrlOverride != null && state.activityUrlOverride !== '';
}
function getURLForApplication(a0) { // fn#64048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:491, offset: 0x01b99f53, size: 86 bytes, params: 2, frame: 13
return isUsingDevShelfActivityUrlOverride() ? DeveloperActivityShelfStore.getState().activityUrlOverride : TestModeStore.inTestModeForEmbeddedApplication(a0) ? TestModeStore.testModeOriginURL : getNonTestModeUrlForApplication(a0);
}
function getURLForApplication(a0) { // fn#64048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:491, offset: 0x01b99f53, size: 86 bytes, params: 2, frame: 13
return isUsingDevShelfActivityUrlOverride() ? DeveloperActivityShelfStore.getState().activityUrlOverride : TestModeStore.inTestModeForEmbeddedApplication(a0) ? TestModeStore.testModeOriginURL : getNonTestModeUrlForApplication(a0);
}
global.__d(_fun64045, 8067, [7505, 7503, 2]) /* metro module 8067, dependencies: [7505, 7503, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,178 +1,184 @@
/* Metro module 8106; source: modules/activities/handlePressJoinActivity.tsx; dependencies: [5, 4235, 1379, 1867, 3784, 1878, 4297, 1378, 8107, 8108, 4647, 1244, 6772, 7858, 8109, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import EmbeddedActivitiesStore from './EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import ApplicationRecord from '../../records/ApplicationRecord.tsx'; /* Metro dependency 4235 */
import VoiceStateStore from '../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as GetEmbeddedActivityJoinabilityModule from './utils/getEmbeddedActivityJoinability.tsx'; /* Metro dependency 8107 */
function _fun64971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:6, offset: 0x01bbb5a2, size: 252 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = handlePressJoinActivity;
const handlePressJoinActivity2 = handlePressJoinActivity;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/handlePressJoinActivity.tsx');
exports.default = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/activities/handlePressJoinActivity.tsx');
exports.default = handlePressJoinActivity2;
exports.maybeJoinEmbeddedActivity = function() {
return _maybeJoinEmbeddedActivity.apply(this, arguments);
};
}
function handlePressJoinActivity({embeddedActivityJoinability, handleCanJoin}) { // fn#64972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:176, offset: 0x01bbb69e, size: 973 bytes, params: 2, frame: 20
var defaultImport;
var show;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var defaultImport2;
var defaultImport3;
var defaultImport4;
const EmbeddedActivityJoinability = (require(8107) /* metro dependency 8107: getEmbeddedActivityJoinability */).EmbeddedActivityJoinability;
const CAN_JOIN = EmbeddedActivityJoinability.CAN_JOIN;
if (CAN_JOIN === embeddedActivityJoinability) {
if (handleCanJoin != null) {
handleCanJoin();
}
} else if (EmbeddedActivityJoinability.NO_USE_EMBEDDED_ACTIVITIES_PERMISSION === embeddedActivityJoinability) {
(require(8108) /* metro dependency 8108: showActivitiesInvalidPermissionsAlert */).showActivitiesInvalidPermissionsAlert();
} else if (EmbeddedActivityJoinability.ACTIVITIES_FEATURE_NOT_ENABLED_FOR_OS === embeddedActivityJoinability) {
defaultImport4 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport4.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t.UXoQTp);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport4, [object2]);
} else if (EmbeddedActivityJoinability.ACTIVITY_NOT_SUPPORTED_ON_OS === embeddedActivityJoinability) {
defaultImport3 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport3.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t.uGDCcw);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport3, [object2]);
} else if (EmbeddedActivityJoinability.ACTIVITY_AGE_GATED === embeddedActivityJoinability) {
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport2.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t['4WuFRE']);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport2, [object2]);
} else if (EmbeddedActivityJoinability.NO_CHANNEL_CONNECT_PERMISSION === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t.FUCQco);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object2]);
} else if (EmbeddedActivityJoinability.CHANNEL_FULL === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t.FUCQco);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object2]);
} else if (EmbeddedActivityJoinability.NO_CHANNEL === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t.FUCQco);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object2]);
} else if (EmbeddedActivityJoinability.NO_USER === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t.FUCQco);
object2.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object2]);
}
}
function _maybeJoinEmbeddedActivity() { // fn#64973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1435, offset: 0x01bbba6b, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun64975).apply(this, arguments);
}
async function _fun64975({channelId, applicationId, launchId, inputApplication, analyticsLocations, launchingComponentId, sectionName, inviterUserId}) { // fn#64975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1510, offset: 0x01bbbaad, size: 414 bytes, params: 2, frame: 23
var r12;
var currentUser;
var object3;
var value12;
var object4;
if (false) {
return undefined;
}
value = undefined;
await value;
if (false) {
return undefined;
}
let binding = env2_10;
const value7 = binding.getEmbeddedActivitiesForChannel(channelId).find(_fun64979);
if (inputApplication != null) {
r12 = inputApplication;
} else {
var value8 = env2_1(env2_2[12]);
await value8.fetchApplication(applicationId);
if (false) {
return undefined;
}
r12 = env2_4.createFromServer(undefined);
}
if (value7 != null) {
if (r12 != null) {
binding = env2_8;
currentUser = binding.getCurrentUser();
binding = env2_11;
object3 = {};
value12 = env2_1(env2_2[8]);
object4 = {};
object4.userId = currentUser == null ? value : currentUser.id;
object4.application = r12;
object4.channelId = channelId;
object4.currentUser = currentUser;
object4.isActivitiesEnabledForCurrentPlatform = env2_0(env2_2[13]).getIsActivitiesEnabledForCurrentPlatform();
object4.ChannelStore = env2_5;
object4.VoiceStateStore = env2_9;
object4.PermissionStore = env2_7;
object4.GuildStore = env2_6;
object3.embeddedActivityJoinability = value12(object4);
object3.handleCanJoin = function() {
return _handleCanJoin_64976.apply(this, arguments);
};
binding(object3);
function handlePressJoinActivity({embeddedActivityJoinability, handleCanJoin}) { // fn#64972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:176, offset: 0x01bbb69e, size: 973 bytes, params: 2, frame: 20
var defaultImport;
var show;
var object;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
var defaultImport2;
var defaultImport3;
var defaultImport4;
const EmbeddedActivityJoinability = (GetEmbeddedActivityJoinabilityModule).EmbeddedActivityJoinability;
const CAN_JOIN = EmbeddedActivityJoinability.CAN_JOIN;
if (CAN_JOIN === embeddedActivityJoinability) {
if (handleCanJoin != null) {
handleCanJoin();
}
} else if (EmbeddedActivityJoinability.NO_USE_EMBEDDED_ACTIVITIES_PERMISSION === embeddedActivityJoinability) {
(require(8108) /* metro dependency 8108: showActivitiesInvalidPermissionsAlert */).showActivitiesInvalidPermissionsAlert();
} else if (EmbeddedActivityJoinability.ACTIVITIES_FEATURE_NOT_ENABLED_FOR_OS === embeddedActivityJoinability) {
defaultImport4 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport4.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t.UXoQTp);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport4, [object]);
} else if (EmbeddedActivityJoinability.ACTIVITY_NOT_SUPPORTED_ON_OS === embeddedActivityJoinability) {
defaultImport3 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport3.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t.uGDCcw);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport3, [object]);
} else if (EmbeddedActivityJoinability.ACTIVITY_AGE_GATED === embeddedActivityJoinability) {
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport2.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t['4WuFRE']);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport2, [object]);
} else if (EmbeddedActivityJoinability.NO_CHANNEL_CONNECT_PERMISSION === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t.FUCQco);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object]);
} else if (EmbeddedActivityJoinability.CHANNEL_FULL === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t.FUCQco);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object]);
} else if (EmbeddedActivityJoinability.NO_CHANNEL === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t.FUCQco);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object]);
} else if (EmbeddedActivityJoinability.NO_USER === embeddedActivityJoinability) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object = {};
object.title = intl.string(t.PtobXW);
object.body = intl.string(t.FUCQco);
object.hideActionSheet = false;
Reflect.apply(show, defaultImport, [object]);
}
}
return value;
}
function _handleCanJoin_64976() { // fn#64976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:2254, offset: 0x01bbbc4b, size: 51 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__.__proto__;
return env3_3(_fun64978).apply(this, arguments);
}
function _fun64979(a0) { // fn#64979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1704, offset: 0x01bbbd14, size: 54 bytes, params: 2, frame: 5
return a0.applicationId === applicationId && (launchId == null || a0.launchId === launchId);
}
function* _fun64978() { // fn#64978, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:2305, offset: 0x01bbbc87, size: 141 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__;
if (env2_7 != null) {
yield env5_1(env5_2[14])({applicationId: env2_7.applicationId, activityChannelId: env2_0,
locationObject: {},
analyticsLocations: env2_3, componentId: env2_4, sectionName: env2_5, inviterUserId: env2_6});
function _maybeJoinEmbeddedActivity() { // fn#64973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1435, offset: 0x01bbba6b, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun64975).apply(this, arguments);
async function _fun64975({channelId, applicationId, launchId, inputApplication, analyticsLocations, launchingComponentId, sectionName, inviterUserId}) { // fn#64975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1510, offset: 0x01bbbaad, size: 414 bytes, params: 2, frame: 23
var r12;
var currentUser;
var object;
var value12;
var object2;
if (false) {
return undefined;
}
value = undefined;
await value;
if (false) {
return undefined;
}
let binding = env2_10;
const value7 = binding.getEmbeddedActivitiesForChannel(channelId).find(_fun64979);
if (inputApplication != null) {
r12 = inputApplication;
} else {
var value8 = env2_1(env2_2[12]);
await value8.fetchApplication(applicationId);
if (false) {
return undefined;
}
r12 = env2_4.createFromServer(undefined);
}
if (value7 != null) {
if (r12 != null) {
binding = env2_8;
currentUser = binding.getCurrentUser();
binding = env2_11;
object = {};
value12 = env2_1(env2_2[8]);
object2 = {};
object2.userId = currentUser == null ? value : currentUser.id;
object2.application = r12;
object2.channelId = channelId;
object2.currentUser = currentUser;
object2.isActivitiesEnabledForCurrentPlatform = env2_0(env2_2[13]).getIsActivitiesEnabledForCurrentPlatform();
object2.ChannelStore = env2_5;
object2.VoiceStateStore = env2_9;
object2.PermissionStore = env2_7;
object2.GuildStore = env2_6;
object.embeddedActivityJoinability = value12(object2);
object.handleCanJoin = function() {
return _handleCanJoin.apply(this, arguments);
};
binding(object);
}
}
return value;
function _handleCanJoin() { // fn#64976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:2254, offset: 0x01bbbc4b, size: 51 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__.__proto__;
return env3_3(_fun64978).apply(this, arguments);
function* _fun64978() { // fn#64978, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:2305, offset: 0x01bbbc87, size: 141 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__;
if (env2_7 != null) {
yield env5_1(env5_2[14])({applicationId: env2_7.applicationId, activityChannelId: env2_0,
locationObject: {},
analyticsLocations: env2_3, componentId: env2_4, sectionName: env2_5, inviterUserId: env2_6});
if (false) {
return undefined;
}
}
}
}
}
function _fun64979(a0) { // fn#64979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1704, offset: 0x01bbbd14, size: 54 bytes, params: 2, frame: 5
return a0.applicationId === applicationId && (launchId == null || a0.launchId === launchId);
}
}
}
}
global.__d(_fun64971, 8106, [5, 4235, 1379, 1867, 3784, 1878, 4297, 1378, 8107, 8108, 4647, 1244, 6772, 7858, 8109,
2]) /* metro module 8106, dependencies: [5, 4235, 1379, 1867, 3784, 1878, 4297, 1378, 8107, 8108, 4647, 1244, 6772, 7858, 8109, 2] */;
@@ -1,198 +1,202 @@
/* Metro module 9472; source: modules/activities/handleUsePrimaryEntryPointAppCommand.tsx; dependencies: [5, 1379, 1878, 9473, 8110, 8091, 9475, 7860, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73655(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:6, offset: 0x01d74249, size: 179 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/handleUsePrimaryEntryPointAppCommand.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/handleUsePrimaryEntryPointAppCommand.tsx');
exports.default = function() {
return _handleUsePrimaryEntryPointAppCommand.apply(this, arguments);
};
}
function _handleUsePrimaryEntryPointAppCommand() { // fn#73656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:126, offset: 0x01d742fc, size: 50 bytes, params: 1, frame: 14
return env0_4(_fun73658).apply(this, arguments);
}
function _handleUsePrimaryEntryPointAppCommandInternal() { // fn#73661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:681, offset: 0x01d74442, size: 50 bytes, params: 1, frame: 14
return env0_4(_fun73663).apply(this, arguments);
}
function* _fun73658(a0) { // fn#73658, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:223, offset: 0x01d74339, size: 188 bytes, params: 2, frame: 19
var environment;
var binding;
var binding2;
var property;
var value3;
var channelId;
var value4;
var value5;
var value6;
var binding3;
var value7;
var shouldOpenActivityInPopoutWindow;
var shouldOpenActivityInPopoutWindow2;
var error;
if (false) {
return undefined;
}
const env0_0 = a0;
var env0_1;
let targetApplicationId = a0.targetApplicationId;
if (targetApplicationId == null) {
return false;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
return false;
}
try {
binding2 = env2_3;
} catch (error) {
return false;
}
try {
property = binding2[3];
} catch (error) {
return false;
}
try {
value3 = binding(property);
} catch (error) {
return false;
}
try {
targetApplicationId = a0.targetApplicationId;
} catch (error) {
return false;
}
try {
channelId = a0.channelId;
} catch (error) {
return false;
}
try {
value4 = value3(targetApplicationId, channelId);
} catch (error) {
return false;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
return false;
}
if (value6) {
return value5;
}
try {
env0_1 = value5;
} catch (error) {
return false;
}
try {
binding = env2_0;
} catch (error) {
return false;
}
try {
binding3 = env2_3;
} catch (error) {
return false;
}
try {
property = binding3[4];
} catch (error) {
return false;
}
try {
value7 = binding(property);
} catch (error) {
return false;
}
try {
shouldOpenActivityInPopoutWindow = value7.shouldOpenActivityInPopoutWindow;
} catch (error) {
return false;
}
try {
shouldOpenActivityInPopoutWindow2 = Reflect.apply(shouldOpenActivityInPopoutWindow, value7, []);
} catch (error) {
return false;
}
return env2_0(env2_3[4]).wrapPreemptiveActivityPopout(shouldOpenActivityInPopoutWindow2, _fun73659);
}
async function _fun73663({targetApplication, locationObject, channelId, analyticsLocations, componentId, commandOrigin, sectionName, source, onExecutedCallback, referrerId, customId, inviterUserId, onConfirmActivityLaunchChecksAlertOpen}) { // fn#73663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:794, offset: 0x01d74488, size: 372 bytes, params: 2, frame: 33
var r5;
var value7;
var binding2;
var value10;
var markActivityUsed;
var id;
var runPrimaryAppCommandOrJoinEmbeddedActivity;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value4 = binding(env2_3[5])();
const currentUser = env2_6.getCurrentUser();
const value6 = channelId != null;
if (value6) {
binding = env2_5;
value7 = binding.getChannel(channelId) != null;
if (value7) {
r5 = currentUser != null && targetApplication != null;
if (r5) {
binding = env2_2;
binding2 = env2_3;
value10 = binding(binding2[6]);
markActivityUsed = value10.markActivityUsed;
id = targetApplication.id;
Reflect.apply(markActivityUsed, value10, [id]);
binding = env2_0;
value = binding(binding2[7]);
runPrimaryAppCommandOrJoinEmbeddedActivity = value.runPrimaryAppCommandOrJoinEmbeddedActivity;
id = targetApplication.id;
await Reflect.apply(runPrimaryAppCommandOrJoinEmbeddedActivity, value, [{channelId: channelId,
applicationId: id,
isStart: true, embeddedActivitiesManager: value4, componentId: componentId,
commandOrigin: commandOrigin,
sectionName: sectionName, locationObject: locationObject, analyticsLocations: analyticsLocations,
source: source, onExecutedCallback: onExecutedCallback, referrerId: referrerId, customId: customId,
inviterUserId: inviterUserId,
onConfirmActivityLaunchChecksAlertOpen: onConfirmActivityLaunchChecksAlertOpen}]);
value = undefined;
if (false) {
return value;
}
return value;
function _handleUsePrimaryEntryPointAppCommand() { // fn#73656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:126, offset: 0x01d742fc, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun73658).apply(this, arguments);
function* _fun73658(a0) { // fn#73658, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:223, offset: 0x01d74339, size: 188 bytes, params: 2, frame: 19
var environment;
var binding;
var binding2;
var property;
var value3;
var channelId;
var value4;
var value5;
var value6;
var binding3;
var value7;
var shouldOpenActivityInPopoutWindow;
var shouldOpenActivityInPopoutWindow2;
var error;
if (false) {
return undefined;
}
return r5;
const env0_0 = a0;
var env0_1;
let targetApplicationId = a0.targetApplicationId;
if (targetApplicationId == null) {
return false;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
return false;
}
try {
binding2 = env2_3;
} catch (error) {
return false;
}
try {
property = binding2[3];
} catch (error) {
return false;
}
try {
value3 = binding(property);
} catch (error) {
return false;
}
try {
targetApplicationId = a0.targetApplicationId;
} catch (error) {
return false;
}
try {
channelId = a0.channelId;
} catch (error) {
return false;
}
try {
value4 = value3(targetApplicationId, channelId);
} catch (error) {
return false;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
return false;
}
if (value6) {
return value5;
}
try {
env0_1 = value5;
} catch (error) {
return false;
}
try {
binding = env2_0;
} catch (error) {
return false;
}
try {
binding3 = env2_3;
} catch (error) {
return false;
}
try {
property = binding3[4];
} catch (error) {
return false;
}
try {
value7 = binding(property);
} catch (error) {
return false;
}
try {
shouldOpenActivityInPopoutWindow = value7.shouldOpenActivityInPopoutWindow;
} catch (error) {
return false;
}
try {
shouldOpenActivityInPopoutWindow2 = Reflect.apply(shouldOpenActivityInPopoutWindow, value7, []);
} catch (error) {
return false;
}
return env2_0(env2_3[4]).wrapPreemptiveActivityPopout(shouldOpenActivityInPopoutWindow2, _fun73659);
function _fun73659() { // fn#73659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:452, offset: 0x01d743f5, size: 47 bytes, params: 1, frame: 12
const object = {};
copyDataProperties(object, env0_0, object);
object['targetApplication'] = env0_1;
return handleUsePrimaryEntryPointAppCommandInternal(object);
function handleUsePrimaryEntryPointAppCommandInternal() { // fn#73660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:456, offset: 0x01d74424, size: 30 bytes, params: 1, frame: 13
return env4_8.apply(this, arguments);
}
}
}
return value7;
}
return value6;
}
function _fun73659() { // fn#73659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:452, offset: 0x01d743f5, size: 47 bytes, params: 1, frame: 12
const object2 = {};
copyDataProperties(object2, env0_0, object2);
object2['targetApplication'] = env0_1;
return handleUsePrimaryEntryPointAppCommandInternal(object2);
}
function _handleUsePrimaryEntryPointAppCommandInternal() { // fn#73661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:681, offset: 0x01d74442, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun73663).apply(this, arguments);
async function _fun73663({targetApplication, locationObject, channelId, analyticsLocations, componentId, commandOrigin, sectionName, source, onExecutedCallback, referrerId, customId, inviterUserId, onConfirmActivityLaunchChecksAlertOpen}) { // fn#73663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:794, offset: 0x01d74488, size: 372 bytes, params: 2, frame: 33
var r5;
var value7;
var binding2;
var value10;
var markActivityUsed;
var id;
var runPrimaryAppCommandOrJoinEmbeddedActivity;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value4 = binding(env2_3[5])();
const currentUser = env2_6.getCurrentUser();
const value6 = channelId != null;
if (value6) {
binding = env2_5;
value7 = binding.getChannel(channelId) != null;
if (value7) {
r5 = currentUser != null && targetApplication != null;
if (r5) {
binding = env2_2;
binding2 = env2_3;
value10 = binding(binding2[6]);
markActivityUsed = value10.markActivityUsed;
id = targetApplication.id;
Reflect.apply(markActivityUsed, value10, [id]);
binding = env2_0;
value = binding(binding2[7]);
runPrimaryAppCommandOrJoinEmbeddedActivity = value.runPrimaryAppCommandOrJoinEmbeddedActivity;
id = targetApplication.id;
await Reflect.apply(runPrimaryAppCommandOrJoinEmbeddedActivity, value, [{channelId: channelId,
applicationId: id,
isStart: true, embeddedActivitiesManager: value4, componentId: componentId,
commandOrigin: commandOrigin,
sectionName: sectionName, locationObject: locationObject, analyticsLocations: analyticsLocations,
source: source, onExecutedCallback: onExecutedCallback, referrerId: referrerId, customId: customId,
inviterUserId: inviterUserId,
onConfirmActivityLaunchChecksAlertOpen: onConfirmActivityLaunchChecksAlertOpen}]);
value = undefined;
if (false) {
return value;
}
return value;
}
return r5;
}
return value7;
}
return value6;
}
}
function handleUsePrimaryEntryPointAppCommandInternal() { // fn#73660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:456, offset: 0x01d74424, size: 30 bytes, params: 1, frame: 13
return env4_8.apply(this, arguments);
}
global.__d(_fun73655, 9472, [5, 1379, 1878, 9473, 8110, 8091, 9475, 7860,
2]) /* metro module 9472, dependencies: [5, 1379, 1878, 9473, 8110, 8091, 9475, 7860, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 12711; source: modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx; dependencies: [1226, 2] */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun97367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12901:6, offset: 0x0217dfa0, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx');
exports.isActivityParticipantCurrentUserCurrentSession = function(a0) {
var r3;
var r1;
@@ -24,3 +26,4 @@ function _fun97367(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun97367, 12711, [1226, 2]) /* metro module 12711, dependencies: [1226, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 1908; source: modules/activities/isActivityParticipantValidGuildMember.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun20949(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2035:6, offset: 0x00ee6199, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/isActivityParticipantValidGuildMember.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/isActivityParticipantValidGuildMember.tsx');
exports.default = function(a0) {
return a0.member != null && a0.member.joined_at != null && a0.member.user.username !== '';
};
}
global.__d(_fun20949, 1908, [2]) /* metro module 1908, dependencies: [2] */;
@@ -1,76 +1,86 @@
/* Metro module 15498; source: modules/activities/native/ActivitiesDebugOverlay.tsx; dependencies: [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseThermalState from '../../device/useThermalState.tsx'; /* Metro dependency 8095 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 ColorUtilsModule from '../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun118674(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:6, offset: 0x024e761f, size: 292 bytes, params: 8, frame: 23
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;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsxs;
const env0_5 = value.jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
const hexWithOpacity = colorUtilsModule.hexWithOpacity;
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
const hexWithOpacity = ColorUtilsModule.hexWithOpacity;
const BLACK = (Native).unsafe_rawColors.BLACK;
const env0_6 = Reflect.apply(createStyles, value, [{container: {'position': 'absolute', 'top': 0, 'left': 0,
'backgroundColor': null, 'paddingRight': 16, 'paddingBottom': 16, backgroundColor: Reflect.apply(hexWithOpacity,
colorUtilsModule, [BLACK, 0.7])}, row: {flexDirection: 'row'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivitiesDebugOverlay.tsx');
ColorUtilsModule, [BLACK, 0.7])}, row: {flexDirection: 'row'}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivitiesDebugOverlay.tsx');
exports.default = ActivitiesDebugOverlay;
}
function ActivitiesDebugOverlay() { // fn#118675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:446, offset: 0x024e7743, size: 508 bytes, params: 1, frame: 24
var r9;
var r10;
var SERIOUS;
var value10;
var value11;
const value2 = undefined;
const styles = useStyles();
const value3 = (importDefault(8095) /* metro dependency 8095: useThermalState */)();
const ThermalStates = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates;
const UNHANDLED = ThermalStates.UNHANDLED;
if (UNHANDLED === value3) {
r9 = '';
r10 = 'always-white';
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.NOMINAL === value3) {
r9 = 'nominal';
r10 = 'text-feedback-positive';
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.FAIR === value3) {
r9 = 'fair';
r10 = 'text-feedback-warning';
} else {
SERIOUS = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS;
value10 = 'serious';
value11 = 'text-feedback-critical';
if (SERIOUS === value3) {
r9 = value10;
r10 = value11;
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.CRITICAL !== value3) {
r9 = value2;
r10 = value2;
function ActivitiesDebugOverlay() { // fn#118675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:446, offset: 0x024e7743, size: 508 bytes, params: 1, frame: 24
var r9;
var r10;
var SERIOUS;
var value10;
var value11;
const value2 = undefined;
const styles = useStyles();
const value3 = (UseThermalState)();
const ThermalStates = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates;
const UNHANDLED = ThermalStates.UNHANDLED;
if (UNHANDLED === value3) {
r9 = '';
r10 = 'always-white';
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.NOMINAL === value3) {
r9 = 'nominal';
r10 = 'text-feedback-positive';
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.FAIR === value3) {
r9 = 'fair';
r10 = 'text-feedback-warning';
} else {
r9 = 'critical';
r10 = value11;
SERIOUS = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS;
value10 = 'serious';
value11 = 'text-feedback-critical';
if (SERIOUS === value3) {
r9 = value10;
r10 = value11;
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.CRITICAL !== value3) {
r9 = value2;
r10 = value2;
} else {
r9 = 'critical';
r10 = value11;
}
}
}
const {top, left} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const items2 = [styles.container];
items2[1] = {paddingTop: top + 16, paddingLeft: left + 16};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2} pointerEvents="none">
<View style={styles.row}>
<Text variant="text-md/normal" color="always-white">
{'thermal state:'}
{' '}
</Text>
<Text variant="text-md/normal" color={r10}>
{r9}
</Text>
const {top, left} = (UseSafeAreaInsetsNative)();
const items2 = [styles.container];
items2[1] = {paddingTop: top + 16, paddingLeft: left + 16};
const Text = (TextModule).Text;
return (
<View style={items2} pointerEvents="none">
<View style={styles.row}>
<Text variant="text-md/normal" color="always-white">
{'thermal state:'}
{' '}
</Text>
<Text variant="text-md/normal" color={r10}>
{r9}
</Text>
</View>
</View>
</View>
);
);
}
}
global.__d(_fun118674, 15498, [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573,
2]) /* metro module 15498, dependencies: [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573, 2] */;
@@ -1,85 +1,90 @@
/* Metro module 12071; source: modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx; dependencies: [31, 27, 4502, 4237, 33, 4501, 566, 4017, 4504, 1305, 1244, 4578, 2] */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4237 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun92739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:6, offset: 0x020974ff, size: 367 bytes, params: 8, frame: 22
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 accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_5 = (require(4237) /* metro dependency 4237: Constants */).EMBEDDED_ACTIVITIES_BLOG_POST_URL;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
ReactModule;
object = {duration: 500};
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({arrow: {'marginLeft': 200,
const env0_8 = (CreateStylesModule).createStyles({arrow: {'marginLeft': 200,
'top': 9, 'position': 'relative', 'borderTopWidth': 0, 'borderRightWidth': 0, 'borderBottomWidth': 16,
'borderLeftWidth': 16, transform: [{rotateZ: '225deg'}]}, tooltip: {padding: 16},
tooltipContainer: {'position': 'absolute', 'width': 280, 'zIndex': 2, 'right': -48, 'top': -8},
tooltipText: {'textAlign': 'center', 'fontSize': 14}, closeButtonWrapper: {marginTop: 14}});
object = {code: 'function ActivitiesPrivateChannelCallTooltipTsx1(){const{withRepeat,withSequence,withTiming,OFFSET,translateBounceOffset,TIMING_CONFIG}=this.__closure;return{transform:[{translateY:withRepeat(withSequence(withTiming(OFFSET,{duration:0}),withTiming(OFFSET+translateBounceOffset,TIMING_CONFIG),withTiming(OFFSET,TIMING_CONFIG)),10)}]};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx');
exports.default = ActivitiesPrivateChannelCallTooltip;
function ActivitiesPrivateChannelCallTooltip({onClosePress}) { // fn#92740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1017, offset: 0x0209766e, size: 612 bytes, params: 2, frame: 26
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r7 = useReducedMotion ? 0 : 4;
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const ActivitiesPrivateChannelCallTooltipT2 = ActivitiesPrivateChannelCallTooltipT;
ActivitiesPrivateChannelCallTooltipT2.__closure = {withRepeat: ReanimatedRexportModule.withRepeat,
withSequence: ReanimatedRexportModule.withSequence,
withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, OFFSET: 40,
translateBounceOffset: r7, TIMING_CONFIG: env0_7};
ActivitiesPrivateChannelCallTooltipT2.__workletHash = 4621705591670;
ActivitiesPrivateChannelCallTooltipT2.__initData = env0_9;
const value4 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [ActivitiesPrivateChannelCallTooltipT2]);
const View2 = (ReanimatedRexport).View;
const items2 = [styles.tooltipContainer, value4];
const Tooltip = (NativeModule).Tooltip;
const tooltipProps = {containerStyle: styles.tooltip, labelStyle: styles.tooltipText, arrowStyle: [styles.arrow]};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
tooltipProps.label = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.xAW71b,
{helpdeskUrl: EMBEDDED_ACTIVITIES_BLOG_POST_URL});
const string = intl.string;
const HOPqzR = (require(1244) /* metro dependency 1244: indexNative */).t.HOPqzR;
tooltipProps.title = Reflect.apply(string, intl, [HOPqzR]);
const Button = (ButtonNativeModule).Button;
return (
<View2 style={items2}>
<Tooltip {...tooltipProps}>
<View style={styles.closeButtonWrapper}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
onPress={onClosePress}
variant="secondary"
size="sm"
grow
/>
</View>
</Tooltip>
</View2>
);
function ActivitiesPrivateChannelCallTooltipT() { // fn#92742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1186, owner: ActivitiesPrivateChannelCallTooltip.T, offset: 0x020978d2, size: 174 bytes, params: 1, frame: 26
let value = environment.__proto__;
const withRepeat = ReanimatedRexportModule.withRepeat;
const withSequence = ReanimatedRexportModule.withSequence;
let withTiming = TimingModule.withTiming;
const value2 = Reflect.apply(withTiming, TimingModule, [40, {duration: 0}]);
withTiming = TimingModule.withTiming;
const value4 = 40 + env0_0;
const binding = env1_7;
value = Reflect.apply(withTiming, TimingModule, [value4, binding]);
value = Reflect.apply(withSequence, ReanimatedRexportModule, [value2, value, TimingModule.withTiming(40, binding)]);
return {transform: [{translateY: Reflect.apply(withRepeat, ReanimatedRexportModule, [value, 10])}]};
}
}
}
function ActivitiesPrivateChannelCallTooltip({onClosePress}) { // fn#92740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1017, offset: 0x0209766e, size: 612 bytes, params: 2, frame: 26
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r7 = useReducedMotion ? 0 : 4;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = ActivitiesPrivateChannelCallTooltipT;
closure.__closure = {withRepeat: reanimatedRexportModule.withRepeat,
withSequence: reanimatedRexportModule.withSequence,
withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, OFFSET: 40,
translateBounceOffset: r7, TIMING_CONFIG: env0_7};
closure.__workletHash = 4621705591670;
closure.__initData = env0_9;
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items2 = [styles.tooltipContainer, value4];
const Tooltip = (require(1305) /* metro dependency 1305: native */).Tooltip;
const tooltipProps = {containerStyle: styles.tooltip, labelStyle: styles.tooltipText, arrowStyle: [styles.arrow]};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
tooltipProps.label = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.xAW71b,
{helpdeskUrl: EMBEDDED_ACTIVITIES_BLOG_POST_URL});
const string = intl.string;
const HOPqzR = (require(1244) /* metro dependency 1244: indexNative */).t.HOPqzR;
tooltipProps.title = Reflect.apply(string, intl, [HOPqzR]);
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View2 style={items2}>
<Tooltip {...tooltipProps}>
<View style={styles.closeButtonWrapper}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
onPress={onClosePress}
variant="secondary"
size="sm"
grow
/>
</View>
</Tooltip>
</View2>
);
}
function ActivitiesPrivateChannelCallTooltipT() { // fn#92742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1186, owner: ActivitiesPrivateChannelCallTooltip.T, offset: 0x020978d2, size: 174 bytes, params: 1, frame: 26
let value = environment.__proto__;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const withRepeat = reanimatedRexportModule.withRepeat;
const moduleValue2 = reanimatedRexportModule;
const withSequence = moduleValue2.withSequence;
const timingModule = require(4504) /* metro dependency 4504: timing */;
let withTiming = timingModule.withTiming;
const value2 = Reflect.apply(withTiming, timingModule, [40, {duration: 0}]);
const moduleValue4 = timingModule;
withTiming = moduleValue4.withTiming;
const value4 = 40 + env0_0;
const binding = env1_7;
value = Reflect.apply(withTiming, moduleValue4, [value4, binding]);
const moduleValue5 = timingModule;
value = Reflect.apply(withSequence, moduleValue2, [value2, value, moduleValue5.withTiming(40, binding)]);
return {transform: [{translateY: Reflect.apply(withRepeat, reanimatedRexportModule, [value, 10])}]};
}
global.__d(_fun92739, 12071, [31, 27, 4502, 4237, 33, 4501, 566, 4017, 4504, 1305, 1244, 4578,
2]) /* metro module 12071, dependencies: [31, 27, 4502, 4237, 33, 4501, 566, 4017, 4504, 1305, 1244, 4578, 2] */;
@@ -1,86 +1,410 @@
/* Metro module 10650; source: modules/activities/native/ActivityAnnouncement.tsx; dependencies: [31, 33, 7744, 2] */
import Module07744 from '../../../by-id/module-07744.js'; /* Metro dependency 7744 */
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 Module07744Module from '../../../by-id/module-07744.js'; /* Metro dependency 7744 */
function _fun81931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:6, offset: 0x01ee40ea, size: 147 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityAnnouncement.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivityAnnouncement.tsx');
exports.default = _default_81932;
function _default_81932(a0) { // fn#81932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:140, offset: 0x01ee417d, size: 3044 bytes, params: 2, frame: 27
const defaultImport = Module07744;
const defaultImportProps = {'width': 324, 'height': 227, 'fill': 'none', ...a0};
const Path = (Module07744Module).Path;
const items2 = [
<Path
fill="#5865F2"
d="m180.747 219.024 29.309.136s-13.284-17.969-30.586-3.674a2.005 2.005 0 0 0-.598 2.215 2.006 2.006 0 0 0 1.875 1.323ZM279.165 161.961l20.489 16.006a2.122 2.122 0 0 1-.058 3.413 2.13 2.13 0 0 1-1.238.397c-6.35-.045-16.711-1.75-23.911-11.113l4.718-8.703Z"
/>,
];
items2[1] = (
<Path
fill="#242145"
d="m190.667 112.195-2.682 37.96a138.277 138.277 0 0 0 .097 20.736s.279 37.15 3.564 39.126c6.765.959 13.802 9.143 13.802 9.143h9.895a2.08 2.08 0 0 0 1.509-.643 2.073 2.073 0 0 0 .578-1.534l-.246-5.333-2.806-60.621 23.892 34.072a8.718 8.718 0 0 0 9.02 3.467l30.054-6.648a2.896 2.896 0 0 0 2.236-2.495l2.086-18.792a1.985 1.985 0 0 0-1.475-2.138 1.984 1.984 0 0 0-.935-.014l-27.988 6.293-20.865-27.398a7.256 7.256 0 0 1-1.257-6.26c.991-3.654 1.723-9.895-2.294-15.467l-36.185-3.454Z"
/>
);
items2[2] = (
<Path
fill="url(#a)"
d="M203.738 112.24c-10.264 46.727 8.242 106.92 8.242 106.92h-4.419c-17.386-53.11-7.329-107.568-7.329-108.19l3.506 1.27Z"
/>
);
items2[3] = (
<Path
fill="#000"
d="m245.41 73.425 30.126 4.095a3.057 3.057 0 0 1 2.541 3.86 3.057 3.057 0 0 1-.915 1.46c-3.24 2.839-8.56 5.457-16.323 2.67l4.322 3.61a2.41 2.41 0 0 1 .793 2.5 2.416 2.416 0 0 1-1.953 1.75c-3.35.474-8.339-.388-13.841-6.693l-.35 2.637a3.06 3.06 0 0 1-4.536 2.274 16.336 16.336 0 0 1-7.458-8.89 7.04 7.04 0 0 1 4.075-8.844 7.043 7.043 0 0 1 3.519-.429Z"
/>
);
items2[4] = (
<Path
fill="#8CD9FF"
d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z"
/>
);
items2[5] = (
<Path
fill="#29CC7A"
d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z"
/>
);
items2[6] = (
<Path
fill="#91FFAD"
d="M194.082 52.857a16.847 16.847 0 0 0-9.24 7.99 30.555 30.555 0 0 0 1.743 3.888c1.944-4.912 6.422-7.594 8.819-8.728a23.45 23.45 0 0 1-1.322-3.15Z"
/>
);
items2[7] = (
<Path
fill="#8CD9FF"
d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493c.105 4.423.928 8.8 2.436 12.96a16.846 16.846 0 0 1 9.241-7.99 23.063 23.063 0 0 1-1.141-5.19Z"
/>
);
items2[8] = (
<Path
fill="#8CD9FF"
d="M195.696 35.73c-1.549 2.852-1.445 5.496-3.065 5.107-1.737-.421-2.003-4.082-.454-6.927 1.549-2.845 4.834-4.692 6.059-3.39 1.225 1.303-1.024 2.366-2.54 5.21ZM262.246 136.553l.732 16.66c0 3.065-.732 5.067-3.052 7.018a25.312 25.312 0 0 1-5.437 3.739l12.027-2.702v-24.624l-4.27-.091Z"
/>
);
items2[9] = (
<Path
fill="#8CD9FF"
d="m265.408 137.914 8.34 13.608 14.904-5.703a1.837 1.837 0 0 1 2.033.492c.165.185.292.401.371.636l1.562 4.646a.698.698 0 0 0 1.03.343.7.7 0 0 0 .266-.311c.745-1.944 2.261-4.685 5.067-5.637a.7.7 0 0 0 .071-1.296l-7.426-3.311a1.791 1.791 0 0 0-1.296-.065l-15.202 6.732-5.495-11.553-4.225 1.419Z"
/>
);
items2[10] = (
<Path
fill="url(#b)"
d="M213.976 56.61a18.402 18.402 0 0 0 14.853 2.242 10.256 10.256 0 0 1 12.026 5.106c3.299 6.668 3.156 20.12-12.461 47.181l-1.542 4.484-36.184-3.428-.596-6.908c-5.832-9.843-1.899-19.88 2.145-23.075l21.759-25.603"
/>
);
items2[11] = (
<Path
fill="#5865F2"
d="m240.519 67.165 35.892-12.046a3.81 3.81 0 0 1 4.75 5.041c-2.015 4.945-6.551 10.815-16.757 11.982l6.817 1.646a3.021 3.021 0 0 1 1.05 5.391c-3.474 2.378-9.526 4.167-19.142.156l1.062 3.136c.862 2.553-1.14 4.633-3.803 5.041-3.163.48-9.468-.959-12.649-6.227-6.532-10.802-3.415-12.04 2.78-14.12Z"
/>
);
items2[12] = (
<Path
fill="#3442D9"
d="M69.277 30.184s30.897 30.994 67.263 6.143c0 0-19.622 84.765 8.314 146.059 0 0-28.979-12.493-42.846-49.384 0 0-12.033 19.971-13.2 47.641 0 0-34.415-53.486-19.53-150.46Z"
/>
);
items2[13] = (
<Path
fill="url(#c)"
d="M132.879 163.477s-19.531-32.581-2.975-123.184c-23.386 12.033-43.72 2.268-53.849-4.653a23.975 23.975 0 0 1-2.183-1.484c-2.275 18.43-6.428 80.657 12.409 122.258 0 0 3.402-22.498 17.269-36.89.026 0 11.275 32.445 29.329 43.953Z"
/>
);
items2[14] = (
<Path
fill="#91FFAD"
d="M190.071 105.287s13.738 7.938 38.323 5.832l-1.542 4.484s-17.943 2.592-36.185-3.428l-.596-6.888Z"
/>
);
items2[15] = (
<Path
fill="#3442D9"
d="M87.596 175.329s-9.13 21.255 3.24 20.678a7.99 7.99 0 0 0 4.362-1.445c2.844-2.106 5.631-7.387-7.602-19.233ZM141.037 178.103s1.471 23.082 12.234 16.977a7.89 7.89 0 0 0 3.24-3.24c1.601-3.188 1.685-9.162-15.474-13.737Z"
/>
);
items2[16] = (
<Path
fill="url(#d)"
d="m248.482 183.851 31.33-6.48.804-7.252-30.417 8.956a8.706 8.706 0 0 1-9.416-3.124l-27.216-35.601.448 5.23 25.66 34.895a8.726 8.726 0 0 0 3.907 2.982 8.728 8.728 0 0 0 4.9.394Z"
/>
);
items2[17] = (
<Path
fill="#000"
d="M256.057 82.659a.976.976 0 0 1-.421-.097 40.245 40.245 0 0 1-5.729-3.558.975.975 0 0 1-.194-1.36.973.973 0 0 1 1.361-.195 39.139 39.139 0 0 0 5.404 3.363.976.976 0 0 1 .524 1.091.972.972 0 0 1-.945.756Z"
/>
);
items2[18] = (
<Path fill="#EB459F" d="M242.488 14.684c-.059.22 8.288-8.651 1.03-11.14-7.258-2.488.959 4.07-1.03 11.14Z" />
);
items2[19] = <Path fill="#EB459F" d="M242.397 14.509s9.202-11.38 15.838-3.713c6.635 7.665-9.111.687-15.838 3.713Z" />;
items2[20] = (
<Path
fill="url(#e)"
d="M223.016 61.203c11.849 0 21.455-9.605 21.455-21.455 0-11.85-9.606-21.455-21.455-21.455-11.85 0-21.455 9.606-21.455 21.455 0 11.85 9.605 21.456 21.455 21.456Z"
/>
);
items2[21] = (
<Path
fill="#EB459F"
d="M254.534 41.57s6.889 11.436-.414 15.454c-15.481 8.424-19.019-20.004-19.019-20.004-11.988 19.291-13.012-14.074-13.012-14.074s-28.784 5.637-22.771-11.282c0 0 3.474-8.534 14.84-.356 0 0 3.59 3.272 10.419-.227 9.131-4.685 21.929-1.523 24.469 11.016 0 0 2.644 10.09 13.064 9.201 10.419-.887 4.412 19.706-7.576 10.271Z"
/>
);
items2[22] = (
<Path
fill="#000"
d="M218.175 38.575c-.7-.53-1.497-.919-2.345-1.147a6.975 6.975 0 0 0-7.867 3.189 7.461 7.461 0 0 1-3.83-.525.97.97 0 0 0-1.389 1.08.97.97 0 0 0 .404.592c1.23.61 2.594.9 3.966.842h.058a6.997 6.997 0 0 0 4.958 8.314c.363.098.734.167 1.108.207h.11a.97.97 0 0 0 1.02-.923.973.973 0 0 0-.923-1.02 5.053 5.053 0 0 1-4.479-4.389 5.046 5.046 0 0 1 2.516-5.02 4.995 4.995 0 0 1 3.836-.487 5.059 5.059 0 0 1 1.698.83.97.97 0 0 0 1.575-.518.973.973 0 0 0-.416-1.038v.013ZM212.959 30.456c.985-1.063 1.84-1.555 1.464-2.184-.479-.784-2.436.11-3.622 1.653-1.069 1.393-1.445 3.24-.862 3.784h.032c.558.473 1.64-.5 3.351-.953 1.892-.499 3.278 0 3.343-1.043.065-1.043-1.885-1.633-3.706-1.257Z"
/>
);
items2[23] = (
<Path
fill="url(#f)"
d="M202.091 33.696a1.807 1.807 0 0 0-1.25.402 7.946 7.946 0 0 1-5.45 1.691L73.931 24.624a56.118 56.118 0 0 1-22.15-6.817L36.69 9.383a5.787 5.787 0 0 0-7.776 2.048c-5.184 8.612-3.713 17.95-1.945 23.69a5.83 5.83 0 0 0 7.375 3.765l15.947-5.365a56.099 56.099 0 0 1 23.03-2.696l120.528 11.062a7.662 7.662 0 0 1 5.586 3.35 2.006 2.006 0 0 0 1.445.991c1.665.162 3.285-2.514 3.622-5.974.337-3.46-.739-6.39-2.411-6.558Z"
/>
);
items2[24] = (
<Path
fill="#000"
d="M36.937 24.277c.476-6.543-1.135-11.992-3.598-12.17-2.463-.18-4.845 4.979-5.321 11.521-.476 6.543 1.135 11.992 3.598 12.171 2.462.18 4.845-4.98 5.32-11.522Z"
/>
);
items2[25] = (
<Path
fill="#8CD9FF"
d="M179.982 28.862c-1.944-.26-3.356 1.983-2.903 3.888.571 2.398 1.944 5.249 5.139 6.013 1.569.37 3.171.574 4.782.61a6.96 6.96 0 0 0 7.083-6.001c.253-1.866.123-4.432-2.262-4.121-6.292.823-6.123.362-11.839-.39Z"
/>
);
items2[26] = (
<Path
fill="#57F287"
d="M212.414 58.463c-11.56-4.62-17.865 11.268-17.865 11.268-15.753-9.622-21.384-25.92-21.384-25.92l-.111-1.691a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778s8.385 44.77 31.506 42.71c27.495-2.457 29.251-28.772 19.628-32.627Z"
/>
);
items2[27] = (
<Path
fill="#91FFAD"
d="M177.351 52.183c-5.832 3.059-9.02 10.699-10.407 14.982a80.718 80.718 0 0 0 2.242 5.048c1.886-8.903 8.055-13.977 10.958-15.908a50.157 50.157 0 0 1-2.793-4.122Z"
/>
);
items2[28] = (
<Path
fill="#29CC7A"
d="M209.654 86.832a.81.81 0 0 1-.512-1.439c7.212-5.76 8.722-14.288 8.735-14.372a.814.814 0 0 1 .933-.668.81.81 0 0 1 .667.933 27.116 27.116 0 0 1-9.318 15.37.783.783 0 0 1-.505.176Z"
/>
);
items2[29] = (
<Path
fill="#8CD9FF"
d="M173.054 42.12a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778a110.157 110.157 0 0 0 5.651 18.792c1.387-4.284 4.588-11.923 10.407-14.982a47.609 47.609 0 0 1-4.154-8.353l-.13-1.717Z"
/>
);
items2[30] = (
<Path
fill="#3F99F2"
d="M184.032 39.113a19.099 19.099 0 0 1-.693-6.09.816.816 0 0 0-.458-.778.808.808 0 0 0-.307-.078.805.805 0 0 0-.855.758c-.086 1.96.095 3.921.538 5.832.596.162 1.186.266 1.775.356ZM189.216 39.074a19.622 19.622 0 0 1-.57-5.65.812.812 0 0 0-.758-.91.807.807 0 0 0-.793.495.818.818 0 0 0-.063.324c-.09 2.028.104 4.059.577 6.033a7.323 7.323 0 0 0 1.607-.292Z"
/>
);
items2[31] = <Path fill="#000" d="m266.516 136.65-4.27-.097.376 8.573c1.069.266 2.21.084 3.888-.421l.006-8.055Z" />;
items2[32] = <Path fill="#000" d="m269.627 136.469-4.219 1.445 3.921 6.389a6.62 6.62 0 0 0 3.7-.687l-3.402-7.147Z" />;
items2[33] = (
<Path
fill="#EB459F"
d="m272.893 101.036 2.592-4.043a3.882 3.882 0 0 1 4.197-1.71c.524.126 1.017.36 1.447.686l2.592 1.944a1 1 0 0 1-.875 1.756l-2.041-.583a5.346 5.346 0 0 0-3.467.175l-4.445 1.775Z"
/>
);
items2[34] = (
<Path
fill="url(#g)"
d="M260.832 108.125s-16.031-1.367-13.983 15.688c2.047 17.056 39.884 27.54 48.431-8.359 2.56-10.744-15.688-.168-15.688-.168s.68-31.208-18.76-7.161Z"
/>
);
items2[35] = (
<Path
fill="url(#h)"
d="m263.678 106.499-3.033-.875a22.842 22.842 0 0 1-8.294-4.536l-5.741-4.886a1.887 1.887 0 0 0-2.489 0c-3.492 3.175-3.376 7.854-2.987 10.368a1.877 1.877 0 0 0 2.106 1.568l7.271-.926a22.865 22.865 0 0 1 9.409.764l3.032.901a1.298 1.298 0 0 0 1.581-.868 1.294 1.294 0 0 0-.855-1.51Z"
/>
);
items2[36] = (
<Path
fill="#000"
d="M245.891 103.128c.766-2.724.543-5.17-.498-5.463-1.041-.293-2.506 1.679-3.272 4.403-.766 2.725-.544 5.171.497 5.463 1.041.293 2.506-1.678 3.273-4.403Z"
/>
);
items2[37] = (
<Path
fill="#5865F2"
d="M288.528 118.94c.707 1.296-.557 3.305-2.592 4.88-1.814 5.722-4.892 6.732-6.875 7.342-2.644.803-6.311.337-7.951-2.631-1.639-2.968-1.166-6.37 2.022-8.126 3.188-1.756 13.763-4.413 15.396-1.465Z"
/>
);
items2[38] = (
<Path
fill="#000"
d="M268.408 108.404a.969.969 0 0 1-.863-.527.978.978 0 0 1 .073-1.009c.097-.13 2.384-3.298 6.395-2.702a.993.993 0 0 1 .362.128.98.98 0 0 1 .339 1.348.981.981 0 0 1-.986.468 4.947 4.947 0 0 0-4.536 1.912.963.963 0 0 1-.784.382ZM285.956 123.82c-2.184 1.49-5.236 1.393-5.269 1.393a.958.958 0 0 0-1.01.927.96.96 0 0 0 .257.699.985.985 0 0 0 .676.312h.246a13.118 13.118 0 0 0 3.979-.648c.456-.858.832-1.756 1.121-2.683Z"
/>
);
items2[39] = (
<Path
fill="#91FFAD"
d="M40.824 159.168a10.869 10.869 0 0 1-4.931-7.646l-.817-5.34a.57.57 0 0 0-.175-.337.493.493 0 0 0-.35-.148.495.495 0 0 0-.35.148.61.61 0 0 0-.174.337l-.817 5.34a11.017 11.017 0 0 1-4.931 7.646l-.706.447a.564.564 0 0 0-.169.707.54.54 0 0 0 .169.194l.706.447a11.026 11.026 0 0 1 4.931 7.647l.817 5.339a.53.53 0 0 0 1.05 0l.816-5.339c.225-1.553.78-3.04 1.626-4.362a10.88 10.88 0 0 1 3.305-3.285l.706-.447a.538.538 0 0 0 .227-.447.556.556 0 0 0-.227-.454l-.706-.447Z"
/>
);
items2[40] = (
<Path
fill="#8CD9FF"
d="M155.229 119.796a8.415 8.415 0 0 1-2.545-2.534 8.415 8.415 0 0 1-1.259-3.363l-.648-4.115a.42.42 0 0 0-.136-.259.36.36 0 0 0-.269-.116.367.367 0 0 0-.269.116.42.42 0 0 0-.136.259l-.648 4.115a8.562 8.562 0 0 1-3.804 5.897l-.544.343a.342.342 0 0 0-.13.156.435.435 0 0 0 0 .388.361.361 0 0 0 .13.149l.544.344a8.563 8.563 0 0 1 3.804 5.903l.648 4.115a.423.423 0 0 0 .136.246.406.406 0 0 0 .266.097.41.41 0 0 0 .272-.097.423.423 0 0 0 .136-.246l.648-4.115a8.504 8.504 0 0 1 1.257-3.369 8.432 8.432 0 0 1 2.547-2.534l.544-.344a.348.348 0 0 0 .13-.149.422.422 0 0 0 .045-.194.383.383 0 0 0-.045-.194.336.336 0 0 0-.13-.156l-.544-.343Z"
/>
);
items2[41] = (
<Path
fill="#FF78B9"
d="M306.31 106.343a8.555 8.555 0 0 1-2.547-2.533 8.377 8.377 0 0 1-1.251-3.364l-.648-4.114a.392.392 0 0 0-.136-.26.413.413 0 0 0-.265-.116.438.438 0 0 0-.273.116.411.411 0 0 0-.129.26l-.648 4.114a8.597 8.597 0 0 1-1.264 3.357 8.463 8.463 0 0 1-2.54 2.54l-.544.344a.398.398 0 0 0-.13.149.435.435 0 0 0-.045.201.422.422 0 0 0 .045.194c.03.06.075.111.13.149l.544.343a8.51 8.51 0 0 1 3.804 5.897l.648 4.115a.397.397 0 0 0 .402.35.408.408 0 0 0 .265-.097.417.417 0 0 0 .136-.253l.648-4.115a8.378 8.378 0 0 1 1.251-3.363 8.559 8.559 0 0 1 2.547-2.534l.55-.343a.476.476 0 0 0 .13-.149.42.42 0 0 0 .039-.194.433.433 0 0 0-.039-.201.476.476 0 0 0-.13-.149l-.55-.344ZM48.302 84.694a8.458 8.458 0 0 1-2.54-2.534 8.289 8.289 0 0 1-1.258-3.363l-.648-4.115a.414.414 0 0 0-.13-.26.446.446 0 0 0-.271-.116.402.402 0 0 0-.266.117.395.395 0 0 0-.136.259l-.648 4.115a8.521 8.521 0 0 1-3.797 5.897l-.551.343a.48.48 0 0 0-.13.15.364.364 0 0 0-.039.2.35.35 0 0 0 .04.194.48.48 0 0 0 .129.15l.55.343a8.605 8.605 0 0 1 2.534 2.54 8.495 8.495 0 0 1 1.296 3.357l.648 4.114a.408.408 0 0 0 .804 0l.648-4.114a8.289 8.289 0 0 1 1.257-3.364 8.458 8.458 0 0 1 2.54-2.533l.55-.344a.48.48 0 0 0 .13-.149.35.35 0 0 0 .04-.194.362.362 0 0 0-.04-.2.48.48 0 0 0-.13-.15l-.582-.343Z"
/>
);
items2[42] = (
<Path
fill="#FFE75C"
d="M58.222 139.275a7.139 7.139 0 0 1-3.24-5.042l-.55-3.512a.366.366 0 0 0-.117-.22.315.315 0 0 0-.355-.071.309.309 0 0 0-.105.071.366.366 0 0 0-.117.22l-.538 3.512a7.296 7.296 0 0 1-3.24 5.042l-.466.291a.355.355 0 0 0-.11.13.374.374 0 0 0 0 .33.355.355 0 0 0 .11.13l.466.298a7.128 7.128 0 0 1 2.165 2.171c.56.866.93 1.843 1.082 2.864l.538 3.512a.37.37 0 0 0 .116.214.358.358 0 0 0 .46 0 .371.371 0 0 0 .117-.214l.538-3.512a7.125 7.125 0 0 1 3.24-5.035l.466-.298a.355.355 0 0 0 .11-.13.374.374 0 0 0 0-.33.355.355 0 0 0-.11-.13l-.46-.291Z"
/>
);
items2[43] = (
<Path
fill="#fff"
d="M88.341 88.128c-1.367 1.374-1.82 6.713-1.82 6.713s5.346-.447 6.72-1.814a3.48 3.48 0 0 0 1.004-2.3H90.66v-3.59c-.87.029-1.697.382-2.32.99Z"
/>
);
items2[44] = (
<Path
fill="#fff"
fillRule="evenodd"
d="m90.292 83.8 7.284 7.276 1.82-1.82 1.368 5.922 2.274-2.28v-7.284l4.536-4.536c1.821-1.821 5.463-6.195 3.642-10.925-4.737-1.821-9.072 1.82-10.925 3.641L90.292 83.8Zm14.34-4.485a2.59 2.59 0 0 0 1.833-4.425 2.59 2.59 0 0 0-3.988.393 2.59 2.59 0 0 0 2.155 4.032Z"
clipRule="evenodd"
/>
);
items2[45] = <Path fill="#fff" d="M95.755 78.33H88.47l-2.287 2.281 5.916 1.361 3.655-3.642Z" />;
items2[46] = (
<Path
fill="#29CC7A"
d="M199.098 71.28h.071a.81.81 0 1 0 .065-1.62 10.545 10.545 0 0 1-3.986-1.458c-.408.803-.648 1.348-.686 1.47a11.822 11.822 0 0 0 4.536 1.608Z"
/>
);
items2[47] = (
<Path
fill="#000"
d="m268.92 73.224-4.498-1.089a11.725 11.725 0 0 1-3.816-.37.974.974 0 0 0-1.136 1.347c.104.225.29.402.52.494 1.203.353 2.453.522 3.707.5a16.275 16.275 0 0 0 5.074-.824c.05-.016.1-.036.149-.058Z"
/>
);
const Defs = (Module07744Module).Defs;
const LinearGradient = (Module07744Module).LinearGradient;
const Stop = (Module07744Module).Stop;
let value = <Stop stopColor="#FFE75C" />;
value = (
<LinearGradient
id="a"
x1={204.665}
x2={204.665}
y1={110.97}
y2={219.147}
gradientUnits="userSpaceOnUse"
>
{value}
<Stop offset={1} stopColor="#FFC619" />
</LinearGradient>
);
const items3 = [value];
items3[1] = (
<LinearGradient
id="b"
x1={221.642}
x2={205.481}
y1={54.413}
y2={125.699}
gradientUnits="userSpaceOnUse"
>
<Stop offset={0.24} stopColor="#57F287" />
<Stop offset={0.66} stopColor="#29CC7A" />
</LinearGradient>
);
const items5 = [
<Stop offset={0.29} stopColor="#5865F2" />,
];
items5[1] = <Stop offset={0.51} stopColor="#5D6AF4" />;
items5[2] = <Stop offset={0.76} stopColor="#6C77F8" />;
items5[3] = <Stop offset={1} stopColor="#808AFF" />;
items3[2] = (
<LinearGradient
id="c"
x1={102.364}
x2={102.364}
y1={163.477}
y2={34.156}
gradientUnits="userSpaceOnUse"
>
{items5}
</LinearGradient>
);
items3[3] = (
<LinearGradient
id="d"
x1={247.101}
x2={247.101}
y1={140.357}
y2={184.032}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#FFE75C" />
<Stop offset={1} stopColor="#FFC619" />
</LinearGradient>
);
items3[4] = (
<LinearGradient
id="e"
x1={223.016}
x2={223.016}
y1={61.203}
y2={18.287}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#66BCFF" />
<Stop offset={1} stopColor="#8CD9FF" />
</LinearGradient>
);
items3[5] = (
<LinearGradient
id="f"
x1={114.955}
x2={114.955}
y1={8.677}
y2={46.235}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#FFE75C" />
<Stop offset={1} stopColor="#FFC619" />
</LinearGradient>
);
items3[6] = (
<LinearGradient
id="g"
x1={268.375}
x2={279.113}
y1={107.996}
y2={148.729}
gradientUnits="userSpaceOnUse"
>
<Stop offset={0.24} stopColor="#57F287" />
<Stop offset={0.66} stopColor="#29CC7A" />
</LinearGradient>
);
items3[7] = (
<LinearGradient
id="h"
x1={252.766}
x2={252.766}
y1={95.755}
y2={108.987}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#FFE75C" />
<Stop offset={1} stopColor="#FFC619" />
</LinearGradient>
);
items2[48] = (
<Defs>
{items3}
</Defs>
);
return ((Component) => <Component {...defaultImportProps}>{items2}</Component>)(defaultImport);
}
}
function _default_81932(a0) { // fn#81932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:140, offset: 0x01ee417d, size: 3044 bytes, params: 2, frame: 27
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
const defaultImportProps = {'width': 324, 'height': 227, 'fill': 'none', ...a0};
const Path = (require(7744) /* metro dependency 7744 */).Path;
const items2 = [<Path fill="#5865F2" d="m180.747 219.024 29.309.136s-13.284-17.969-30.586-3.674a2.005 2.005 0 0 0-.598 2.215 2.006 2.006 0 0 0 1.875 1.323ZM279.165 161.961l20.489 16.006a2.122 2.122 0 0 1-.058 3.413 2.13 2.13 0 0 1-1.238.397c-6.35-.045-16.711-1.75-23.911-11.113l4.718-8.703Z" />];
items2[1] = <Path fill="#242145" d="m190.667 112.195-2.682 37.96a138.277 138.277 0 0 0 .097 20.736s.279 37.15 3.564 39.126c6.765.959 13.802 9.143 13.802 9.143h9.895a2.08 2.08 0 0 0 1.509-.643 2.073 2.073 0 0 0 .578-1.534l-.246-5.333-2.806-60.621 23.892 34.072a8.718 8.718 0 0 0 9.02 3.467l30.054-6.648a2.896 2.896 0 0 0 2.236-2.495l2.086-18.792a1.985 1.985 0 0 0-1.475-2.138 1.984 1.984 0 0 0-.935-.014l-27.988 6.293-20.865-27.398a7.256 7.256 0 0 1-1.257-6.26c.991-3.654 1.723-9.895-2.294-15.467l-36.185-3.454Z" />;
items2[2] = <Path fill="url(#a)" d="M203.738 112.24c-10.264 46.727 8.242 106.92 8.242 106.92h-4.419c-17.386-53.11-7.329-107.568-7.329-108.19l3.506 1.27Z" />;
items2[3] = <Path fill="#000" d="m245.41 73.425 30.126 4.095a3.057 3.057 0 0 1 2.541 3.86 3.057 3.057 0 0 1-.915 1.46c-3.24 2.839-8.56 5.457-16.323 2.67l4.322 3.61a2.41 2.41 0 0 1 .793 2.5 2.416 2.416 0 0 1-1.953 1.75c-3.35.474-8.339-.388-13.841-6.693l-.35 2.637a3.06 3.06 0 0 1-4.536 2.274 16.336 16.336 0 0 1-7.458-8.89 7.04 7.04 0 0 1 4.075-8.844 7.043 7.043 0 0 1 3.519-.429Z" />;
items2[4] = <Path fill="#8CD9FF" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z" />;
items2[5] = <Path fill="#29CC7A" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z" />;
items2[6] = <Path fill="#91FFAD" d="M194.082 52.857a16.847 16.847 0 0 0-9.24 7.99 30.555 30.555 0 0 0 1.743 3.888c1.944-4.912 6.422-7.594 8.819-8.728a23.45 23.45 0 0 1-1.322-3.15Z" />;
items2[7] = <Path fill="#8CD9FF" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493c.105 4.423.928 8.8 2.436 12.96a16.846 16.846 0 0 1 9.241-7.99 23.063 23.063 0 0 1-1.141-5.19Z" />;
items2[8] = <Path fill="#8CD9FF" d="M195.696 35.73c-1.549 2.852-1.445 5.496-3.065 5.107-1.737-.421-2.003-4.082-.454-6.927 1.549-2.845 4.834-4.692 6.059-3.39 1.225 1.303-1.024 2.366-2.54 5.21ZM262.246 136.553l.732 16.66c0 3.065-.732 5.067-3.052 7.018a25.312 25.312 0 0 1-5.437 3.739l12.027-2.702v-24.624l-4.27-.091Z" />;
items2[9] = <Path fill="#8CD9FF" d="m265.408 137.914 8.34 13.608 14.904-5.703a1.837 1.837 0 0 1 2.033.492c.165.185.292.401.371.636l1.562 4.646a.698.698 0 0 0 1.03.343.7.7 0 0 0 .266-.311c.745-1.944 2.261-4.685 5.067-5.637a.7.7 0 0 0 .071-1.296l-7.426-3.311a1.791 1.791 0 0 0-1.296-.065l-15.202 6.732-5.495-11.553-4.225 1.419Z" />;
items2[10] = <Path fill="url(#b)" d="M213.976 56.61a18.402 18.402 0 0 0 14.853 2.242 10.256 10.256 0 0 1 12.026 5.106c3.299 6.668 3.156 20.12-12.461 47.181l-1.542 4.484-36.184-3.428-.596-6.908c-5.832-9.843-1.899-19.88 2.145-23.075l21.759-25.603" />;
items2[11] = <Path fill="#5865F2" d="m240.519 67.165 35.892-12.046a3.81 3.81 0 0 1 4.75 5.041c-2.015 4.945-6.551 10.815-16.757 11.982l6.817 1.646a3.021 3.021 0 0 1 1.05 5.391c-3.474 2.378-9.526 4.167-19.142.156l1.062 3.136c.862 2.553-1.14 4.633-3.803 5.041-3.163.48-9.468-.959-12.649-6.227-6.532-10.802-3.415-12.04 2.78-14.12Z" />;
items2[12] = <Path fill="#3442D9" d="M69.277 30.184s30.897 30.994 67.263 6.143c0 0-19.622 84.765 8.314 146.059 0 0-28.979-12.493-42.846-49.384 0 0-12.033 19.971-13.2 47.641 0 0-34.415-53.486-19.53-150.46Z" />;
items2[13] = <Path fill="url(#c)" d="M132.879 163.477s-19.531-32.581-2.975-123.184c-23.386 12.033-43.72 2.268-53.849-4.653a23.975 23.975 0 0 1-2.183-1.484c-2.275 18.43-6.428 80.657 12.409 122.258 0 0 3.402-22.498 17.269-36.89.026 0 11.275 32.445 29.329 43.953Z" />;
items2[14] = <Path fill="#91FFAD" d="M190.071 105.287s13.738 7.938 38.323 5.832l-1.542 4.484s-17.943 2.592-36.185-3.428l-.596-6.888Z" />;
items2[15] = <Path fill="#3442D9" d="M87.596 175.329s-9.13 21.255 3.24 20.678a7.99 7.99 0 0 0 4.362-1.445c2.844-2.106 5.631-7.387-7.602-19.233ZM141.037 178.103s1.471 23.082 12.234 16.977a7.89 7.89 0 0 0 3.24-3.24c1.601-3.188 1.685-9.162-15.474-13.737Z" />;
items2[16] = <Path fill="url(#d)" d="m248.482 183.851 31.33-6.48.804-7.252-30.417 8.956a8.706 8.706 0 0 1-9.416-3.124l-27.216-35.601.448 5.23 25.66 34.895a8.726 8.726 0 0 0 3.907 2.982 8.728 8.728 0 0 0 4.9.394Z" />;
items2[17] = <Path fill="#000" d="M256.057 82.659a.976.976 0 0 1-.421-.097 40.245 40.245 0 0 1-5.729-3.558.975.975 0 0 1-.194-1.36.973.973 0 0 1 1.361-.195 39.139 39.139 0 0 0 5.404 3.363.976.976 0 0 1 .524 1.091.972.972 0 0 1-.945.756Z" />;
items2[18] = <Path fill="#EB459F" d="M242.488 14.684c-.059.22 8.288-8.651 1.03-11.14-7.258-2.488.959 4.07-1.03 11.14Z" />;
items2[19] = <Path fill="#EB459F" d="M242.397 14.509s9.202-11.38 15.838-3.713c6.635 7.665-9.111.687-15.838 3.713Z" />;
items2[20] = <Path fill="url(#e)" d="M223.016 61.203c11.849 0 21.455-9.605 21.455-21.455 0-11.85-9.606-21.455-21.455-21.455-11.85 0-21.455 9.606-21.455 21.455 0 11.85 9.605 21.456 21.455 21.456Z" />;
items2[21] = <Path fill="#EB459F" d="M254.534 41.57s6.889 11.436-.414 15.454c-15.481 8.424-19.019-20.004-19.019-20.004-11.988 19.291-13.012-14.074-13.012-14.074s-28.784 5.637-22.771-11.282c0 0 3.474-8.534 14.84-.356 0 0 3.59 3.272 10.419-.227 9.131-4.685 21.929-1.523 24.469 11.016 0 0 2.644 10.09 13.064 9.201 10.419-.887 4.412 19.706-7.576 10.271Z" />;
items2[22] = <Path fill="#000" d="M218.175 38.575c-.7-.53-1.497-.919-2.345-1.147a6.975 6.975 0 0 0-7.867 3.189 7.461 7.461 0 0 1-3.83-.525.97.97 0 0 0-1.389 1.08.97.97 0 0 0 .404.592c1.23.61 2.594.9 3.966.842h.058a6.997 6.997 0 0 0 4.958 8.314c.363.098.734.167 1.108.207h.11a.97.97 0 0 0 1.02-.923.973.973 0 0 0-.923-1.02 5.053 5.053 0 0 1-4.479-4.389 5.046 5.046 0 0 1 2.516-5.02 4.995 4.995 0 0 1 3.836-.487 5.059 5.059 0 0 1 1.698.83.97.97 0 0 0 1.575-.518.973.973 0 0 0-.416-1.038v.013ZM212.959 30.456c.985-1.063 1.84-1.555 1.464-2.184-.479-.784-2.436.11-3.622 1.653-1.069 1.393-1.445 3.24-.862 3.784h.032c.558.473 1.64-.5 3.351-.953 1.892-.499 3.278 0 3.343-1.043.065-1.043-1.885-1.633-3.706-1.257Z" />;
items2[23] = <Path fill="url(#f)" d="M202.091 33.696a1.807 1.807 0 0 0-1.25.402 7.946 7.946 0 0 1-5.45 1.691L73.931 24.624a56.118 56.118 0 0 1-22.15-6.817L36.69 9.383a5.787 5.787 0 0 0-7.776 2.048c-5.184 8.612-3.713 17.95-1.945 23.69a5.83 5.83 0 0 0 7.375 3.765l15.947-5.365a56.099 56.099 0 0 1 23.03-2.696l120.528 11.062a7.662 7.662 0 0 1 5.586 3.35 2.006 2.006 0 0 0 1.445.991c1.665.162 3.285-2.514 3.622-5.974.337-3.46-.739-6.39-2.411-6.558Z" />;
items2[24] = <Path fill="#000" d="M36.937 24.277c.476-6.543-1.135-11.992-3.598-12.17-2.463-.18-4.845 4.979-5.321 11.521-.476 6.543 1.135 11.992 3.598 12.171 2.462.18 4.845-4.98 5.32-11.522Z" />;
items2[25] = <Path fill="#8CD9FF" d="M179.982 28.862c-1.944-.26-3.356 1.983-2.903 3.888.571 2.398 1.944 5.249 5.139 6.013 1.569.37 3.171.574 4.782.61a6.96 6.96 0 0 0 7.083-6.001c.253-1.866.123-4.432-2.262-4.121-6.292.823-6.123.362-11.839-.39Z" />;
items2[26] = <Path fill="#57F287" d="M212.414 58.463c-11.56-4.62-17.865 11.268-17.865 11.268-15.753-9.622-21.384-25.92-21.384-25.92l-.111-1.691a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778s8.385 44.77 31.506 42.71c27.495-2.457 29.251-28.772 19.628-32.627Z" />;
items2[27] = <Path fill="#91FFAD" d="M177.351 52.183c-5.832 3.059-9.02 10.699-10.407 14.982a80.718 80.718 0 0 0 2.242 5.048c1.886-8.903 8.055-13.977 10.958-15.908a50.157 50.157 0 0 1-2.793-4.122Z" />;
items2[28] = <Path fill="#29CC7A" d="M209.654 86.832a.81.81 0 0 1-.512-1.439c7.212-5.76 8.722-14.288 8.735-14.372a.814.814 0 0 1 .933-.668.81.81 0 0 1 .667.933 27.116 27.116 0 0 1-9.318 15.37.783.783 0 0 1-.505.176Z" />;
items2[29] = <Path fill="#8CD9FF" d="M173.054 42.12a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778a110.157 110.157 0 0 0 5.651 18.792c1.387-4.284 4.588-11.923 10.407-14.982a47.609 47.609 0 0 1-4.154-8.353l-.13-1.717Z" />;
items2[30] = <Path fill="#3F99F2" d="M184.032 39.113a19.099 19.099 0 0 1-.693-6.09.816.816 0 0 0-.458-.778.808.808 0 0 0-.307-.078.805.805 0 0 0-.855.758c-.086 1.96.095 3.921.538 5.832.596.162 1.186.266 1.775.356ZM189.216 39.074a19.622 19.622 0 0 1-.57-5.65.812.812 0 0 0-.758-.91.807.807 0 0 0-.793.495.818.818 0 0 0-.063.324c-.09 2.028.104 4.059.577 6.033a7.323 7.323 0 0 0 1.607-.292Z" />;
items2[31] = <Path fill="#000" d="m266.516 136.65-4.27-.097.376 8.573c1.069.266 2.21.084 3.888-.421l.006-8.055Z" />;
items2[32] = <Path fill="#000" d="m269.627 136.469-4.219 1.445 3.921 6.389a6.62 6.62 0 0 0 3.7-.687l-3.402-7.147Z" />;
items2[33] = <Path fill="#EB459F" d="m272.893 101.036 2.592-4.043a3.882 3.882 0 0 1 4.197-1.71c.524.126 1.017.36 1.447.686l2.592 1.944a1 1 0 0 1-.875 1.756l-2.041-.583a5.346 5.346 0 0 0-3.467.175l-4.445 1.775Z" />;
items2[34] = <Path fill="url(#g)" d="M260.832 108.125s-16.031-1.367-13.983 15.688c2.047 17.056 39.884 27.54 48.431-8.359 2.56-10.744-15.688-.168-15.688-.168s.68-31.208-18.76-7.161Z" />;
items2[35] = <Path fill="url(#h)" d="m263.678 106.499-3.033-.875a22.842 22.842 0 0 1-8.294-4.536l-5.741-4.886a1.887 1.887 0 0 0-2.489 0c-3.492 3.175-3.376 7.854-2.987 10.368a1.877 1.877 0 0 0 2.106 1.568l7.271-.926a22.865 22.865 0 0 1 9.409.764l3.032.901a1.298 1.298 0 0 0 1.581-.868 1.294 1.294 0 0 0-.855-1.51Z" />;
items2[36] = <Path fill="#000" d="M245.891 103.128c.766-2.724.543-5.17-.498-5.463-1.041-.293-2.506 1.679-3.272 4.403-.766 2.725-.544 5.171.497 5.463 1.041.293 2.506-1.678 3.273-4.403Z" />;
items2[37] = <Path fill="#5865F2" d="M288.528 118.94c.707 1.296-.557 3.305-2.592 4.88-1.814 5.722-4.892 6.732-6.875 7.342-2.644.803-6.311.337-7.951-2.631-1.639-2.968-1.166-6.37 2.022-8.126 3.188-1.756 13.763-4.413 15.396-1.465Z" />;
items2[38] = <Path fill="#000" d="M268.408 108.404a.969.969 0 0 1-.863-.527.978.978 0 0 1 .073-1.009c.097-.13 2.384-3.298 6.395-2.702a.993.993 0 0 1 .362.128.98.98 0 0 1 .339 1.348.981.981 0 0 1-.986.468 4.947 4.947 0 0 0-4.536 1.912.963.963 0 0 1-.784.382ZM285.956 123.82c-2.184 1.49-5.236 1.393-5.269 1.393a.958.958 0 0 0-1.01.927.96.96 0 0 0 .257.699.985.985 0 0 0 .676.312h.246a13.118 13.118 0 0 0 3.979-.648c.456-.858.832-1.756 1.121-2.683Z" />;
items2[39] = <Path fill="#91FFAD" d="M40.824 159.168a10.869 10.869 0 0 1-4.931-7.646l-.817-5.34a.57.57 0 0 0-.175-.337.493.493 0 0 0-.35-.148.495.495 0 0 0-.35.148.61.61 0 0 0-.174.337l-.817 5.34a11.017 11.017 0 0 1-4.931 7.646l-.706.447a.564.564 0 0 0-.169.707.54.54 0 0 0 .169.194l.706.447a11.026 11.026 0 0 1 4.931 7.647l.817 5.339a.53.53 0 0 0 1.05 0l.816-5.339c.225-1.553.78-3.04 1.626-4.362a10.88 10.88 0 0 1 3.305-3.285l.706-.447a.538.538 0 0 0 .227-.447.556.556 0 0 0-.227-.454l-.706-.447Z" />;
items2[40] = <Path fill="#8CD9FF" d="M155.229 119.796a8.415 8.415 0 0 1-2.545-2.534 8.415 8.415 0 0 1-1.259-3.363l-.648-4.115a.42.42 0 0 0-.136-.259.36.36 0 0 0-.269-.116.367.367 0 0 0-.269.116.42.42 0 0 0-.136.259l-.648 4.115a8.562 8.562 0 0 1-3.804 5.897l-.544.343a.342.342 0 0 0-.13.156.435.435 0 0 0 0 .388.361.361 0 0 0 .13.149l.544.344a8.563 8.563 0 0 1 3.804 5.903l.648 4.115a.423.423 0 0 0 .136.246.406.406 0 0 0 .266.097.41.41 0 0 0 .272-.097.423.423 0 0 0 .136-.246l.648-4.115a8.504 8.504 0 0 1 1.257-3.369 8.432 8.432 0 0 1 2.547-2.534l.544-.344a.348.348 0 0 0 .13-.149.422.422 0 0 0 .045-.194.383.383 0 0 0-.045-.194.336.336 0 0 0-.13-.156l-.544-.343Z" />;
items2[41] = <Path fill="#FF78B9" d="M306.31 106.343a8.555 8.555 0 0 1-2.547-2.533 8.377 8.377 0 0 1-1.251-3.364l-.648-4.114a.392.392 0 0 0-.136-.26.413.413 0 0 0-.265-.116.438.438 0 0 0-.273.116.411.411 0 0 0-.129.26l-.648 4.114a8.597 8.597 0 0 1-1.264 3.357 8.463 8.463 0 0 1-2.54 2.54l-.544.344a.398.398 0 0 0-.13.149.435.435 0 0 0-.045.201.422.422 0 0 0 .045.194c.03.06.075.111.13.149l.544.343a8.51 8.51 0 0 1 3.804 5.897l.648 4.115a.397.397 0 0 0 .402.35.408.408 0 0 0 .265-.097.417.417 0 0 0 .136-.253l.648-4.115a8.378 8.378 0 0 1 1.251-3.363 8.559 8.559 0 0 1 2.547-2.534l.55-.343a.476.476 0 0 0 .13-.149.42.42 0 0 0 .039-.194.433.433 0 0 0-.039-.201.476.476 0 0 0-.13-.149l-.55-.344ZM48.302 84.694a8.458 8.458 0 0 1-2.54-2.534 8.289 8.289 0 0 1-1.258-3.363l-.648-4.115a.414.414 0 0 0-.13-.26.446.446 0 0 0-.271-.116.402.402 0 0 0-.266.117.395.395 0 0 0-.136.259l-.648 4.115a8.521 8.521 0 0 1-3.797 5.897l-.551.343a.48.48 0 0 0-.13.15.364.364 0 0 0-.039.2.35.35 0 0 0 .04.194.48.48 0 0 0 .129.15l.55.343a8.605 8.605 0 0 1 2.534 2.54 8.495 8.495 0 0 1 1.296 3.357l.648 4.114a.408.408 0 0 0 .804 0l.648-4.114a8.289 8.289 0 0 1 1.257-3.364 8.458 8.458 0 0 1 2.54-2.533l.55-.344a.48.48 0 0 0 .13-.149.35.35 0 0 0 .04-.194.362.362 0 0 0-.04-.2.48.48 0 0 0-.13-.15l-.582-.343Z" />;
items2[42] = <Path fill="#FFE75C" d="M58.222 139.275a7.139 7.139 0 0 1-3.24-5.042l-.55-3.512a.366.366 0 0 0-.117-.22.315.315 0 0 0-.355-.071.309.309 0 0 0-.105.071.366.366 0 0 0-.117.22l-.538 3.512a7.296 7.296 0 0 1-3.24 5.042l-.466.291a.355.355 0 0 0-.11.13.374.374 0 0 0 0 .33.355.355 0 0 0 .11.13l.466.298a7.128 7.128 0 0 1 2.165 2.171c.56.866.93 1.843 1.082 2.864l.538 3.512a.37.37 0 0 0 .116.214.358.358 0 0 0 .46 0 .371.371 0 0 0 .117-.214l.538-3.512a7.125 7.125 0 0 1 3.24-5.035l.466-.298a.355.355 0 0 0 .11-.13.374.374 0 0 0 0-.33.355.355 0 0 0-.11-.13l-.46-.291Z" />;
items2[43] = <Path fill="#fff" d="M88.341 88.128c-1.367 1.374-1.82 6.713-1.82 6.713s5.346-.447 6.72-1.814a3.48 3.48 0 0 0 1.004-2.3H90.66v-3.59c-.87.029-1.697.382-2.32.99Z" />;
items2[44] = <Path fill="#fff" fillRule="evenodd" d="m90.292 83.8 7.284 7.276 1.82-1.82 1.368 5.922 2.274-2.28v-7.284l4.536-4.536c1.821-1.821 5.463-6.195 3.642-10.925-4.737-1.821-9.072 1.82-10.925 3.641L90.292 83.8Zm14.34-4.485a2.59 2.59 0 0 0 1.833-4.425 2.59 2.59 0 0 0-3.988.393 2.59 2.59 0 0 0 2.155 4.032Z" clipRule="evenodd" />;
items2[45] = <Path fill="#fff" d="M95.755 78.33H88.47l-2.287 2.281 5.916 1.361 3.655-3.642Z" />;
items2[46] = <Path fill="#29CC7A" d="M199.098 71.28h.071a.81.81 0 1 0 .065-1.62 10.545 10.545 0 0 1-3.986-1.458c-.408.803-.648 1.348-.686 1.47a11.822 11.822 0 0 0 4.536 1.608Z" />;
items2[47] = <Path fill="#000" d="m268.92 73.224-4.498-1.089a11.725 11.725 0 0 1-3.816-.37.974.974 0 0 0-1.136 1.347c.104.225.29.402.52.494 1.203.353 2.453.522 3.707.5a16.275 16.275 0 0 0 5.074-.824c.05-.016.1-.036.149-.058Z" />;
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
const LinearGradient = (require(7744) /* metro dependency 7744 */).LinearGradient;
const Stop = (require(7744) /* metro dependency 7744 */).Stop;
let value = <Stop stopColor="#FFE75C" />;
value = <LinearGradient id="a" x1={204.665} x2={204.665} y1={110.97} y2={219.147} gradientUnits="userSpaceOnUse">{value}<Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
const items3 = [value];
items3[1] = <LinearGradient id="b" x1={221.642} x2={205.481} y1={54.413} y2={125.699} gradientUnits="userSpaceOnUse"><Stop offset={0.24} stopColor="#57F287" /><Stop offset={0.66} stopColor="#29CC7A" /></LinearGradient>;
const items5 = [<Stop offset={0.29} stopColor="#5865F2" />];
items5[1] = <Stop offset={0.51} stopColor="#5D6AF4" />;
items5[2] = <Stop offset={0.76} stopColor="#6C77F8" />;
items5[3] = <Stop offset={1} stopColor="#808AFF" />;
items3[2] = <LinearGradient id="c" x1={102.364} x2={102.364} y1={163.477} y2={34.156} gradientUnits="userSpaceOnUse">{items5}</LinearGradient>;
items3[3] = <LinearGradient id="d" x1={247.101} x2={247.101} y1={140.357} y2={184.032} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
items3[4] = <LinearGradient id="e" x1={223.016} x2={223.016} y1={61.203} y2={18.287} gradientUnits="userSpaceOnUse"><Stop stopColor="#66BCFF" /><Stop offset={1} stopColor="#8CD9FF" /></LinearGradient>;
items3[5] = <LinearGradient id="f" x1={114.955} x2={114.955} y1={8.677} y2={46.235} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
items3[6] = <LinearGradient id="g" x1={268.375} x2={279.113} y1={107.996} y2={148.729} gradientUnits="userSpaceOnUse"><Stop offset={0.24} stopColor="#57F287" /><Stop offset={0.66} stopColor="#29CC7A" /></LinearGradient>;
items3[7] = <LinearGradient id="h" x1={252.766} x2={252.766} y1={95.755} y2={108.987} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
items2[48] = <Defs>{items3}</Defs>;
return ((Component) => <Component {...defaultImportProps}>{items2}</Component>)(defaultImport);
}
global.__d(_fun81931, 10650, [31, 33, 7744, 2]) /* metro module 10650, dependencies: [31, 33, 7744, 2] */;
@@ -1,76 +1,81 @@
/* Metro module 15702; source: modules/activities/native/ActivityFeedbackActionSheet.tsx; dependencies: [31, 4237, 661, 9906, 33, 683, 15703, 9927, 1244, 9909, 3856, 15704, 2] */
import FeedbackActionSheet from '../../feedback/native/FeedbackActionSheet.tsx'; /* Metro dependency 9927 */
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 ConstantsModule2 from '../Constants.tsx'; /* Metro dependency 4237 */
import * as ConstantsModule3 from '../../feedback/Constants.tsx'; /* Metro dependency 9906 */
function _fun120528(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:6, offset: 0x0252e186, size: 242 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const ActivityFeedbackReasons = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_5 = (require(9906) /* metro dependency 9906: Constants */).FeedbackType;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
ReactModule;
const ActivityFeedbackReasons = (ConstantsModule2).ActivityFeedbackReasons;
const OTHER = ActivityFeedbackReasons.OTHER;
items = [OTHER];
items2 = [OTHER];
const ADS = ActivityFeedbackReasons.ADS;
items[1] = ADS;
items2[1] = ADS;
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
items[2] = NOT_FUN;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityFeedbackActionSheet.tsx');
items2[2] = NOT_FUN;
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivityFeedbackActionSheet.tsx');
exports.default = ActivityFeedbackActionSheet;
}
function ActivityFeedbackActionSheet({activityApplication, channel, embeddedActivityLocation, analyticsData}) { // fn#120529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:330, offset: 0x0252e278, size: 359 bytes, params: 2, frame: 25
const value3 = (importDefault(15703) /* metro dependency 15703: getActivityReportOptions */)(true,
activityApplication.embeddedActivityConfig?.displays_advertisements === true);
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const QXYwoD = (require(1244) /* metro dependency 1244: indexNative */).t.QXYwoD;
object.headerLabel = Reflect.apply(formatToPlainString, intl, [QXYwoD, {applicationName: activityApplication.name}]);
object.showHeaderCloseButton = true;
object.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9hk2KF']);
object.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
object.reasons = value3;
object.feedbackReasons = env0_7;
const OTHER = ActivityFeedbackReasons.OTHER;
object.otherKey = OTHER;
object.trackOpen = function() {
var activityApplicationBinding = activityApplication;
var defaultImport = importDefault(dependencyMap[5]);
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
defaultImport.track(OPEN_POPOUT, {type: 'Activity Feedback Sheet',
application_id: activityApplicationBinding.id,
application_name: activityApplicationBinding.name, game_id: activityApplicationBinding.id,
source: 'Activity End'});
};
object.trackReport = trackReport_120531;
return <FeedbackActionSheet {...object} />;
function ActivityFeedbackActionSheetTrackReport({rating, reason, feedback, dontShowAgain}) { // fn#120531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:1026, owner: ActivityFeedbackActionSheet.trackReport, offset: 0x0252e44c, size: 319 bytes, params: 2, frame: 21
var value3;
var defaultImport;
var value5;
var defaultImport2;
let value = null;
const r4 = value != reason ? reason.value : value;
if (dontShowAgain) {
value3 = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACTIVITY_REPORT_DONT_SHOW, {application_id: activityApplication.id,
rating: rating});
(require(9909) /* metro dependency 9909: FeedbackUtils */).processOptOut({feedbackType: FeedbackType.ACTIVITY,
location: 'ActivityFeedbackActionSheet'});
}
if (value != rating) {
value5 = environment.__proto__;
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
defaultImport2 = importDefault(15704) /* metro dependency 15704: trackActivityProblem */;
value = '';
defaultImport2({problem: r4, channel: channel, embeddedActivityLocation: embeddedActivityLocation,
feedback: value != feedback ? feedback : value, activityApplication: activityApplication,
analyticsData: analyticsData, location: 'Activity End', rating: rating});
}
}
function ActivityFeedbackActionSheet({activityApplication, channel, embeddedActivityLocation, analyticsData}) { // fn#120529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:330, offset: 0x0252e278, size: 359 bytes, params: 2, frame: 25
const value3 = (importDefault(15703) /* metro dependency 15703: getActivityReportOptions */)(true,
activityApplication.embeddedActivityConfig?.displays_advertisements === true);
const FeedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const QXYwoD = (require(1244) /* metro dependency 1244: indexNative */).t.QXYwoD;
object2.headerLabel = Reflect.apply(formatToPlainString, intl, [QXYwoD,
{applicationName: activityApplication.name}]);
object2.showHeaderCloseButton = true;
object2.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9hk2KF']);
object2.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
object2.reasons = value3;
object2.feedbackReasons = env0_7;
const OTHER = ActivityFeedbackReasons.OTHER;
object2.otherKey = OTHER;
object2.trackOpen = function() {
var activityApplicationBinding = activityApplication;
var defaultImport = importDefault(dependencyMap[5]);
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
defaultImport.track(OPEN_POPOUT, {type: 'Activity Feedback Sheet',
application_id: activityApplicationBinding.id,
application_name: activityApplicationBinding.name, game_id: activityApplicationBinding.id,
source: 'Activity End'});
};
object2.trackReport = trackReport;
return <FeedbackActionSheet {...object2} />;
}
function ActivityFeedbackActionSheetTrackReport({rating, reason, feedback, dontShowAgain}) { // fn#120531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:1026, owner: ActivityFeedbackActionSheet.trackReport, offset: 0x0252e44c, size: 319 bytes, params: 2, frame: 21
var value3;
var defaultImport;
var value5;
var defaultImport2;
let value = null;
const r4 = value != reason ? reason.value : value;
if (dontShowAgain) {
value3 = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACTIVITY_REPORT_DONT_SHOW, {application_id: activityApplication.id,
rating: rating});
(require(9909) /* metro dependency 9909: FeedbackUtils */).processOptOut({feedbackType: FeedbackType.ACTIVITY,
location: 'ActivityFeedbackActionSheet'});
}
if (value != rating) {
value5 = environment.__proto__;
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
defaultImport2 = importDefault(15704) /* metro dependency 15704: trackActivityProblem */;
value = '';
defaultImport2({problem: r4, channel: channel, embeddedActivityLocation: embeddedActivityLocation,
feedback: value != feedback ? feedback : value, activityApplication: activityApplication,
analyticsData: analyticsData, location: 'Activity End', rating: rating});
}
}
global.__d(_fun120528, 15702, [31, 4237, 661, 9906, 33, 683, 15703, 9927, 1244, 9909, 3856, 15704,
2]) /* metro module 15702, dependencies: [31, 4237, 661, 9906, 33, 683, 15703, 9927, 1244, 9909, 3856, 15704, 2] */;
@@ -1,237 +1,289 @@
/* Metro module 13034; source: modules/activities/native/ActivityShareLinkModal.tsx; dependencies: [5, 57, 31, 27, 1379, 1878, 1378, 7690, 4503, 33, 4501, 697, 566, 7232, 8809, 13033, 6777, 1360, 13035, 7067, 7076, 3857, 1244, 6797, 3856, 1478, 477, 5287, 9603, 5282, 5277, 4056, 7704, 9761, 9789, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import EmbeddedActivitiesStore from '../EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UseGetOrFetchApplications from '../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
import ThemedGradient from '../../client_themes/native/ThemedGradient.tsx'; /* Metro dependency 7704 */
import SearchableDestinationList from '../../share/native/SearchableDestinationList.tsx'; /* Metro dependency 9761 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ToastUtilsModule from '../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as LinkIconModule from '../../../design/components/Icon/native/redesign/generated/LinkIcon.tsx'; /* Metro dependency 4056 */
import * as MessageConstantsModule from '../../messages/MessageConstants.tsx'; /* Metro dependency 4503 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as Module05287Module from '../../../by-id/module-05287.js'; /* Metro dependency 5287 */
import * as ClipboardUtilsNativeModule from '../../../utils/ClipboardUtils.native.tsx'; /* Metro dependency 6797 */
import * as UserRowConstantsModule from '../../main_tabs_v2/native/shared_components/user_list/UserRowConstants.tsx'; /* Metro dependency 7690 */
import * as GetApplicationInstallURLModule from '../../applications/getApplicationInstallURL.tsx'; /* Metro dependency 8809 */
import * as HeaderSharedModule from '../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
import * as ModalFloatingActionNativeModule from '../../../design/components/Modal/native/ModalFloatingAction.native.tsx'; /* Metro dependency 9789 */
import * as OpenActivityShareLinkModalNativeModule from '../openActivityShareLinkModal.native.tsx'; /* Metro dependency 13033 */
function _fun99485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:6, offset: 0x021ca902, size: 465 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const env0_10 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
const env0_11 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_12 = value.jsx;
const env0_13 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
object = {};
const object2 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object2.paddingHorizontal = PX_16;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.paddingVertical = PX_8;
object2.paddingVertical = PX_8;
let BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object4.backgroundColor = BACKGROUND_BASE_LOWER;
object3.headerContainer = object4;
object3.header = {'borderBottomWidth': 0, 'shadowColor': 'transparent', 'backgroundColor': 'transparent'};
object2.backgroundColor = BACKGROUND_BASE_LOWER;
object.headerContainer = object2;
object.header = {'borderBottomWidth': 0, 'shadowColor': 'transparent', 'backgroundColor': 'transparent'};
BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object3.container = {'flex': 1, 'display': 'flex', backgroundColor: BACKGROUND_BASE_LOWER};
const env0_14 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityShareLinkModal.tsx');
object.container = {'flex': 1, 'display': 'flex', backgroundColor: BACKGROUND_BASE_LOWER};
const env0_14 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivityShareLinkModal.tsx');
exports.default = ActivityShareLinkModal;
}
function ActivityShareLinkModal({applicationId, customId, linkId, message, onShare}) { // fn#99486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:695, offset: 0x021caad3, size: 1220 bytes, params: 2, frame: 36
const env0_3 = message;
const env0_4 = onShare;
const styles = useStyles();
const connectedActivityChannelId = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
function() {
return EmbeddedActivitiesStore.getConnectedActivityChannelId();
});
const binding = connectedActivityChannelId;
const value3 = binding.useMemo(_fun99488, [connectedActivityChannelId]);
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_6 = value5[1];
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value7[0];
const env0_8 = value7[1];
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property3 = value8[0];
const env0_10 = value8[1];
const length = property3.length;
const value9 = binding.useCallback(_fun99489, []);
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
useState = binding.useState;
const value10 = binding2(Reflect.apply(useState, binding, ['']), 2);
const property4 = value10[0];
binding.useEffect(_fun99491, [applicationId, currentUser, customId, linkId, value10[1]]);
const value11 = binding.useCallback(_fun99492, [property2, onShare]);
const value13 = binding.useCallback(env0_3(_fun99494),
[binding2((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([applicationId]), 1)[0],
property2, property4, message, onShare, property3]);
const env0_15 = binding.useCallback(_fun99499, [property4]);
const value14 = binding.useMemo(_fun99500,
[(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}).height]);
const Header = (require(5287) /* metro dependency 5287 */).Header;
const headerProps = {headerStyle: styles.header};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.r9qKow);
headerProps.headerTitle = headerTitle_99501;
headerProps.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value11);
headerProps.headerRight = headerRight_99502;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
headerProps.headerStatusBarHeight = platformUtilsModule.isIOS() ? 0 : undefined;
headerProps.headerTitleAlign = 'center';
const view = <View style={styles.headerContainer}><Header {...headerProps} /></View>;
const viewBinding2Props = {style: styles.container};
const items2 = [((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)];
const SearchableDestinationList = importDefault(9761) /* metro dependency 9761: SearchableDestinationList */;
const TOGGLE = UserRowModes.TOGGLE;
items2[1] = <SearchableDestinationList disableGradient disableStickySections initialSelectedDestinations={[]} insetEnd={0} onSelectedDestinationChange={value9} originDestination={value3} rowMode={TOGGLE} />;
const ModalFloatingAction = (require(9789) /* metro dependency 9789: ModalFloatingActionNative */).ModalFloatingAction;
items2[2] = <ModalFloatingAction disabled={property} floatingBackgroundColor={styles.container.backgroundColor} isVisible={length > 0} loading={property} onPress={property ? undefined : value13} text={length === 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
{count: length})} />;
return (
<View style={value14}>
{view}
<View {...viewBinding2Props}>
{items2}
function ActivityShareLinkModal({applicationId, customId, linkId, message, onShare}) { // fn#99486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:695, offset: 0x021caad3, size: 1220 bytes, params: 2, frame: 36
const message2 = message;
const onShare2 = onShare;
const styles = useStyles();
const connectedActivityChannelId = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
function() {
return EmbeddedActivitiesStore.getConnectedActivityChannelId();
});
const binding = connectedActivityChannelId;
const value3 = binding.useMemo(_fun99488, [connectedActivityChannelId]);
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, [false]);
const binding2 = onShare2;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_6 = value5[1];
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value7[0];
const env0_8 = value7[1];
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property3 = value8[0];
const env0_10 = value8[1];
const length = property3.length;
const value9 = binding.useCallback(_fun99489, []);
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
useState = binding.useState;
const value10 = binding2(Reflect.apply(useState, binding, ['']), 2);
const property4 = value10[0];
binding.useEffect(_fun99491, [applicationId, currentUser, customId, linkId, value10[1]]);
const value11 = binding.useCallback(_fun99492, [property2, onShare]);
const value13 = binding.useCallback(message2(_fun99494),
[binding2((UseGetOrFetchApplications)([applicationId]), 1)[0],
property2, property4, message, onShare, property3]);
const env0_15 = binding.useCallback(_fun99499, [property4]);
const value14 = binding.useMemo(_fun99500,
[(UseWindowDimensionsNative)({ignoreKeyboard: true}).height]);
const Header = (Module05287Module).Header;
const headerProps = {headerStyle: styles.header};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.r9qKow);
headerProps.headerTitle = headerTitle_99501;
headerProps.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value11);
headerProps.headerRight = headerRight_99502;
headerProps.headerStatusBarHeight = PlatformUtilsModule.isIOS() ? 0 : undefined;
headerProps.headerTitleAlign = 'center';
const view = (
<View style={styles.headerContainer}>
<Header {...headerProps} />
</View>
</View>
);
}
function _fun99488() { // fn#99488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:884, offset: 0x021cafaa, size: 60 bytes, params: 1, frame: 14
var r0;
var value3;
var moduleValue;
if (connectedActivityChannelId != null) {
value3 = environment.__proto__;
moduleValue = require(7232) /* metro dependency 7232: formatResults */;
r0 = moduleValue.getDestinationIdFromChannelId(connectedActivityChannelId);
} else {
r0 = undefined;
}
return r0;
}
function _fun99491() { // fn#99491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1227, offset: 0x021cafe6, size: 107 bytes, params: 1, frame: 16
const binding = env0_13;
const value3 = undefined;
const getApplicationInstallURLModule = require(8809) /* metro dependency 8809: getApplicationInstallURL */;
const getActivityLaunchURL = getApplicationInstallURLModule.getActivityLaunchURL;
binding(Reflect.apply(getActivityLaunchURL, getApplicationInstallURLModule, [{applicationId: applicationId,
referrerId: currentUser == null ? value3 : currentUser.id, customId: customId, linkId: linkId}]));
return value3;
}
function _fun99492() { // fn#99492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1371, offset: 0x021cb051, size: 56 bytes, params: 1, frame: 13
onShare(false, env0_7);
const value = environment.__proto__;
(require(13033) /* metro dependency 13033: openActivityShareLinkModalNative */).closeActivityShareLinkModal();
}
function* _fun99494() { // fn#99494, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1479, offset: 0x021cb094, size: 368 bytes, params: 1, frame: 25
var environment;
if (true) {
var env0_0;
value = environment.__proto__;
if (useStyles != null) {
var Promise = global.Promise;
var all = Promise.all;
var map = EmbeddedActivitiesStore.map;
var binding = env2_0;
var getOrResolveChannelIdFromDestinationId = binding(env2_2[13]).getOrResolveChannelIdFromDestinationId;
yield Reflect.apply(all, Promise, [Reflect.apply(map, EmbeddedActivitiesStore,
[getOrResolveChannelIdFromDestinationId])]);
var value4 = undefined;
if (false) {
return value4;
);
const viewBinding2Props = {style: styles.container};
const items2 = [
((Component) => <Component absolute />)(ThemedGradient),
];
const TOGGLE = UserRowModes.TOGGLE;
items2[1] = (
<SearchableDestinationList
disableGradient
disableStickySections
initialSelectedDestinations={[]}
insetEnd={0}
onSelectedDestinationChange={value9}
originDestination={value3}
rowMode={TOGGLE}
/>
);
const ModalFloatingAction = (ModalFloatingActionNativeModule).ModalFloatingAction;
items2[2] = (
<ModalFloatingAction
disabled={property}
floatingBackgroundColor={styles.container.backgroundColor}
isVisible={length > 0}
loading={property}
onPress={property ? undefined : value13}
text={length === 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
{count: length})}
/>
);
return (
<View style={value14}>
{view}
<View {...viewBinding2Props}>
{items2}
</View>
</View>
);
function _fun99488() { // fn#99488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:884, offset: 0x021cafaa, size: 60 bytes, params: 1, frame: 14
var r0;
var value3;
var moduleValue;
if (connectedActivityChannelId != null) {
value3 = environment.__proto__;
moduleValue = require(7232) /* metro dependency 7232: formatResults */;
r0 = moduleValue.getDestinationIdFromChannelId(connectedActivityChannelId);
} else {
r0 = undefined;
}
var filter = value4.filter;
binding = env2_0;
var binding2 = env2_2;
var value6 = Reflect.apply(filter, value4, [binding(binding2[17]).isNotNullish]);
var value7 = binding(binding2[18]);
env0_0 = value7.resolveActivityShareMessageContent(env1_3, useStyles, env1_12);
View(true);
value6.forEach(_fun99495());
var value8 = env2_1(binding2[21]);
var open = value8.open;
var intl = binding(binding2[22]).intl;
Reflect.apply(open, value8, [{key: 'ACTIVITY_SHARE_LINK_SUCCESS',
content: intl.formatToPlainString(binding(binding2[22]).t.jQULqL, {applicationName: useStyles.name})}]);
env1_4(true, ChannelStore);
binding(binding2[15]).closeActivityShareLinkModal();
return r0;
}
}
}
function _fun99499() { // fn#99499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2108, offset: 0x021cb2c6, size: 78 bytes, params: 1, frame: 15
const value = environment.__proto__;
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(env0_12);
env0_8(true);
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
}
function _fun99489(a0) { // fn#99489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1099, offset: 0x02094ab3, size: 19 bytes, params: 2, frame: 11
env0_10(a0);
}
function _fun99500() { // fn#99500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2224, offset: 0x021cb314, size: 59 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
return {height: value ? height : '100%'};
}
function _fun99491() { // fn#99491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1227, offset: 0x021cafe6, size: 107 bytes, params: 1, frame: 16
const binding = env0_13;
const value3 = undefined;
const getActivityLaunchURL = GetApplicationInstallURLModule.getActivityLaunchURL;
binding(Reflect.apply(getActivityLaunchURL, GetApplicationInstallURLModule, [{applicationId: applicationId,
referrerId: currentUser == null ? value3 : currentUser.id, customId: customId, linkId: linkId}]));
return value3;
}
function ActivityShareLinkModalHeaderTitle({children}) { // fn#99501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2441, owner: ActivityShareLinkModal.headerTitle, offset: 0x021cb34f, size: 79 bytes, params: 2, frame: 14
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
return (
<GenericHeaderTitle
title={children}
subtitle={message}
variant="redesign/heading-18/bold"
/>
);
}
function _fun99492() { // fn#99492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1371, offset: 0x021cb051, size: 56 bytes, params: 1, frame: 13
onShare(false, env0_7);
const value = environment.__proto__;
(OpenActivityShareLinkModalNativeModule).closeActivityShareLinkModal();
}
function ActivityShareLinkModalHeaderRight(a0) { // fn#99502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2600, owner: ActivityShareLinkModal.headerRight, offset: 0x021cb39e, size: 154 bytes, params: 2, frame: 18
const value = environment.__proto__;
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {...a0};
headerActionButtonProps['onPress'] = env0_15;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Xrt5Po = (require(1244) /* metro dependency 1244: indexNative */).t.Xrt5Po;
headerActionButtonProps['accessibilityLabel'] = Reflect.apply(string, intl, [Xrt5Po]);
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
headerActionButtonProps['IconComponent'] = LinkIcon;
return <HeaderActionButton {...headerActionButtonProps} />;
}
function _fun99495() { // fn#99495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1684, offset: 0x021cb204, size: 36 bytes, params: 1, frame: 12
const env0_0 = env3_3(_fun99497);
return _fun99498;
}
function* _fun99497(a0) { // fn#99497, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1704, offset: 0x021cb233, size: 147 bytes, params: 2, frame: 21
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
var binding = env5_7;
var channel = binding.getChannel(a0);
if (channel != null) {
binding = env5_1;
var binding2 = env5_2;
var value4 = binding(binding2[19]);
var sendMessage = value4.sendMessage;
var value5 = binding(binding2[20]);
var value7 = value5.parse(channel, applicationId);
var ACTIVITY_SHARE = env5_11.ACTIVITY_SHARE;
yield Reflect.apply(sendMessage, value4, [a0, value7, false, {location: ACTIVITY_SHARE}]);
if (false) {
return undefined;
function* _fun99494() { // fn#99494, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1479, offset: 0x021cb094, size: 368 bytes, params: 1, frame: 25
var environment;
if (true) {
var env0_0;
value = environment.__proto__;
if (useStyles != null) {
var Promise = global.Promise;
var all = Promise.all;
var embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
var map = embeddedActivitiesStoreBinding.map;
var binding = env2_0;
var getOrResolveChannelIdFromDestinationId = binding(env2_2[13]).getOrResolveChannelIdFromDestinationId;
yield Reflect.apply(all, Promise, [Reflect.apply(map, embeddedActivitiesStoreBinding,
[getOrResolveChannelIdFromDestinationId])]);
var value4 = undefined;
if (false) {
return value4;
}
var filter = value4.filter;
binding = env2_0;
var binding2 = env2_2;
var value6 = Reflect.apply(filter, value4, [binding(binding2[17]).isNotNullish]);
var value7 = binding(binding2[18]);
env0_0 = value7.resolveActivityShareMessageContent(env1_3, useStyles, env1_12);
View(true);
value6.forEach(_fun99495());
var value8 = env2_1(binding2[21]);
var open = value8.open;
var intl = binding(binding2[22]).intl;
Reflect.apply(open, value8, [{key: 'ACTIVITY_SHARE_LINK_SUCCESS',
content: intl.formatToPlainString(binding(binding2[22]).t.jQULqL, {applicationName: useStyles.name})}]);
env1_4(true, ChannelStore);
binding(binding2[15]).closeActivityShareLinkModal();
}
}
function _fun99495() { // fn#99495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1684, offset: 0x021cb204, size: 36 bytes, params: 1, frame: 12
const env0_0 = env3_3(_fun99497);
return _fun99498;
function* _fun99497(a0) { // fn#99497, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1704, offset: 0x021cb233, size: 147 bytes, params: 2, frame: 21
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
var binding = env5_7;
var channel = binding.getChannel(a0);
if (channel != null) {
binding = env5_1;
var binding2 = env5_2;
var value4 = binding(binding2[19]);
var sendMessage = value4.sendMessage;
var value5 = binding(binding2[20]);
var value7 = value5.parse(channel, applicationId);
var ACTIVITY_SHARE = env5_11.ACTIVITY_SHARE;
yield Reflect.apply(sendMessage, value4, [a0, value7, false, {location: ACTIVITY_SHARE}]);
if (false) {
return undefined;
}
}
}
}
function _fun99498() { // fn#99498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1841, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
function _fun99499() { // fn#99499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2108, offset: 0x021cb2c6, size: 78 bytes, params: 1, frame: 15
const value = environment.__proto__;
(ClipboardUtilsNativeModule).copy(env0_12);
env0_8(true);
(ToastUtilsModule).presentLinkCopied();
}
function _fun99500() { // fn#99500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2224, offset: 0x021cb314, size: 59 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
return {height: value ? height : '100%'};
}
function ActivityShareLinkModalHeaderTitle({children}) { // fn#99501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2441, owner: ActivityShareLinkModal.headerTitle, offset: 0x021cb34f, size: 79 bytes, params: 2, frame: 14
const GenericHeaderTitle = (HeaderSharedModule).GenericHeaderTitle;
return (
<GenericHeaderTitle
title={children}
subtitle={message}
variant="redesign/heading-18/bold"
/>
);
}
function ActivityShareLinkModalHeaderRight(a0) { // fn#99502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2600, owner: ActivityShareLinkModal.headerRight, offset: 0x021cb39e, size: 154 bytes, params: 2, frame: 18
const value = environment.__proto__;
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {...a0};
headerActionButtonProps['onPress'] = env0_15;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Xrt5Po = (IndexNativeModule).t.Xrt5Po;
headerActionButtonProps['accessibilityLabel'] = Reflect.apply(string, intl, [Xrt5Po]);
const LinkIcon = (LinkIconModule).LinkIcon;
headerActionButtonProps['IconComponent'] = LinkIcon;
return <HeaderActionButton {...headerActionButtonProps} />;
}
}
}
global.__d(_fun99485, 13034, [5, 57, 31, 27, 1379, 1878, 1378, 7690, 4503, 33, 4501, 697, 566, 7232, 8809, 13033,
6777, 1360, 13035, 7067, 7076, 3857, 1244, 6797, 3856, 1478, 477, 5287, 9603, 5282, 5277, 4056, 7704, 9761,
9789,
2]) /* metro module 13034, dependencies: [5, 57, 31, 27, 1379, 1878, 1378, 7690, 4503, 33, 4501, 697, 566, 7232, 8809, 13033, 6777, 1360, 13035, 7067, 7076, 3857, 1244, 6797, 3856, 1478, 477, 5287, 9603, 5282, 5277, 4056, 7704, 9761, 9789, 2] */;
@@ -1,51 +1,82 @@
/* Metro module 11627; source: modules/activities/native/ActivityShelfBadge.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1305, 1909, 4573, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun89193(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:6, offset: 0x020037f7, size: 459 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
ReactModule;
const Fonts = (ConstantsModule).Fonts;
const createStyles = CreateStylesModule.createStyles;
object = {};
const STATUS_POSITIVE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE_BACKGROUND;
object2.badge = {'position': 'absolute', 'top': 4, 'right': 4, 'display': 'flex', 'flexDirection': 'row',
object.badge = {'position': 'absolute', 'top': 4, 'right': 4, 'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center', backgroundColor: STATUS_POSITIVE_BACKGROUND};
const object5 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const object3 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BADGE_NOTIFICATION_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_NOTIFICATION_BACKGROUND;
object5.backgroundColor = BADGE_NOTIFICATION_BACKGROUND;
object2.newBadge = object5;
const object6 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.backgroundColor = BADGE_NOTIFICATION_BACKGROUND;
object.newBadge = object3;
const object4 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BADGE_BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_BACKGROUND_BRAND;
object6.backgroundColor = BADGE_BACKGROUND_BRAND;
object2.updatedBadge = object6;
const nativeModule = require(1305) /* metro dependency 1305: native */;
const generateBoxShadowStyle = nativeModule.generateBoxShadowStyle;
const FOUR_DP_ELEVATION_SHADOW_PARAMS = nativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
object2.elevationShadow = Reflect.apply(generateBoxShadowStyle, nativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
object4.backgroundColor = BADGE_BACKGROUND_BRAND;
object.updatedBadge = object4;
const generateBoxShadowStyle = NativeModule.generateBoxShadowStyle;
const FOUR_DP_ELEVATION_SHADOW_PARAMS = NativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
object.elevationShadow = Reflect.apply(generateBoxShadowStyle, NativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
object2.badgeText = {'textTransform': 'uppercase', 'marginLeft': 2, 'fontFamily': null, 'lineHeight': 16,
object.badgeText = {'textTransform': 'uppercase', 'marginLeft': 2, 'fontFamily': null, 'lineHeight': 16,
'fontSize': 12, fontFamily: DISPLAY_EXTRABOLD};
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityShelfBadge.tsx');
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivityShelfBadge.tsx');
exports.default = ActivityShelfBadge;
function ActivityShelfBadge({labelType, replacementStyles}) { // fn#89194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:898, offset: 0x020039c2, size: 446 bytes, params: 2, frame: 24
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const r8 = replacementStyles ?? styles.badge;
const EmbeddedActivityLabelTypes = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes;
const NEW = EmbeddedActivityLabelTypes.NEW;
return (
labelType === NEW
? (
<View style={[r8, styles.newBadge, styles.elevationShadow]}>
<Text
variant="text-xs/semibold"
style={styles.badgeText}
color="always-white"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA)}
</Text>
</View>
)
: (
labelType !== (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes.UPDATED
? null
: (
<View style={[r8, styles.updatedBadge, styles.elevationShadow]}>
<Text
variant="text-xs/semibold"
style={styles.badgeText}
color="always-white"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/qdhkk'])}
</Text>
</View>
)
)
);
}
}
function ActivityShelfBadge({labelType, replacementStyles}) { // fn#89194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:898, offset: 0x020039c2, size: 446 bytes, params: 2, frame: 24
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const r8 = replacementStyles ?? styles.badge;
const EmbeddedActivityLabelTypes = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes;
const NEW = EmbeddedActivityLabelTypes.NEW;
return labelType === NEW ? <View style={[r8, styles.newBadge,
styles.elevationShadow]}><Text variant="text-xs/semibold" style={styles.badgeText} color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA)}</Text></View> : labelType !== (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes.UPDATED ? null : <View style={[r8,
styles.updatedBadge,
styles.elevationShadow]}><Text variant="text-xs/semibold" style={styles.badgeText} color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/qdhkk'])}</Text></View>;
}
global.__d(_fun89193, 11627, [31, 27, 661, 33, 4501, 697, 1305, 1909, 4573, 1244,
2]) /* metro module 11627, dependencies: [31, 27, 661, 33, 4501, 697, 1305, 1909, 4573, 1244, 2] */;
@@ -1,4 +1,26 @@
/* Metro module 8092; source: modules/activities/native/EmbeddedActivitiesNativeManager.tsx; dependencies: [6, 7, 15, 17, 102, 18, 5, 27, 1379, 4294, 1378, 4237, 661, 5269, 477, 8070, 8071, 1216, 8072, 4496, 1244, 8093, 3774, 683, 694, 8095, 7860, 3857, 8096, 1239, 1360, 491, 8097, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import EmbeddedActivitiesStore from '../EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import ToastActionCreators from '../../toast/native/ToastActionCreators.tsx'; /* Metro dependency 3857 */
import RTCConnectionStore from '../../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as EmbeddedActivityLocationUtilsModule from '../utils/embeddedActivityLocationUtils.tsx'; /* Metro dependency 3774 */
import * as ConstantsModule2 from '../Constants.tsx'; /* Metro dependency 4237 */
import * as Module05269Module from '../../../by-id/module-05269.js'; /* Metro dependency 5269 */
import * as EmbeddedActivitiesActionCreatorsModule from '../EmbeddedActivitiesActionCreators.tsx'; /* Metro dependency 7860 */
function _fun64844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:6, offset: 0x01bb6cf3, size: 505 bytes, params: 8, frame: 21
var nativeEventEmitter;
const env0_0 = require;
@@ -7,22 +29,11 @@ function _fun64844(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(102) /* metro dependency 102 */;
const env0_8 = importDefault(18) /* metro dependency 18 */;
const env0_9 = importDefault(5) /* metro dependency 5 */;
const NativeEventEmitter = (require(27) /* metro dependency 27 */).NativeEventEmitter;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const env0_13 = (require(4237) /* metro dependency 4237: Constants */).DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY;
let value = require(661) /* metro dependency 661: Constants */;
const NativeEventEmitter = (ReactNativeModule).NativeEventEmitter;
let value = ConstantsModule;
const env0_14 = value.AnalyticEvents;
const env0_15 = value.ComponentActions;
const env0_16 = (require(5269) /* metro dependency 5269 */).getWebViewProxy('EMBEDDED_ACTIVITY_WEB_VIEW_KEY');
const env0_16 = (Module05269Module).getWebViewProxy('EMBEDDED_ACTIVITY_WEB_VIEW_KEY');
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
if (value) {
@@ -31,449 +42,455 @@ function _fun64844(global, require, importDefault, importAll, module, exports, d
value = importDefault(8097) /* metro dependency 8097: EmbeddedActivitiesManager */;
value = _fun64854(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivitiesNativeManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/EmbeddedActivitiesNativeManager.tsx');
exports.default = value;
exports.EMBEDDED_ACTIVITY_WEB_VIEW_KEY = 'EMBEDDED_ACTIVITY_WEB_VIEW_KEY';
}
function _isNativeReflectConstruct_64845() { // fn#64845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:337, offset: 0x01bb6eec, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_64845_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_64848(a0, a1, a2, a3) { // fn#64848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:530, offset: 0x01bb6f4a, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
const binding = env0_7;
value = env0_6(1 & 3 ? value.prototype : value);
value = binding(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun64849 : value;
}
function _postMessageToWebView_64851() { // fn#64851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:862, offset: 0x01bb6fad, size: 48 bytes, params: 1, frame: 14
return env0_9(_fun64853).apply(this, arguments);
}
function _fun64854(a0) { // fn#64854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1057, offset: 0x01bb705a, size: 329 bytes, params: 2, frame: 16
const closure = EmbeddedActivitiesNativeManager;
env0_8(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_64857}, {key: '_terminate', value: value_64861},
{key: 'showErrorModal', value: function({code, message}) {
var defaultImport = importDefault(dependencyMap[19]);
var object = {};
object.title = require(dependencyMap[20]).intl.formatToPlainString(require(dependencyMap[20]).t.hbiAO6,
{code: code});
object.body = message;
defaultImport.show(object);
}}, {key: 'showLaunchErrorModal', value: function(a0) {
var defaultImport = importDefault(dependencyMap[19]);
var object = {};
object.title = require(dependencyMap[20]).intl.string(require(dependencyMap[20]).t.PtobXW);
object.body = a0;
defaultImport.show(object);
}}, {key: 'showDevShelfOverrideEnabled', value: value_64864}, {key: 'releaseWebView', value: value_64865},
{key: 'leaveActivity', value: function({location, applicationId, showFeedback}) {
var clearEmbeddedActivityState;
var value = this.releaseWebView();
if (location != null && require(dependencyMap[30]).isNotNullish(applicationId)) {
clearEmbeddedActivityState = this.clearEmbeddedActivityState;
value = value != null;
Reflect.apply(clearEmbeddedActivityState, this, [location, applicationId, value && showFeedback]);
}
}}, {key: 'hidePIPEmbed', value: function(a0) {
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", a0);
throw undefined;
}
}}, {key: 'clearEmbeddedActivityState', value: value_64868}, {key: 'releaseFrameId', value: function() {
var frameId = this.frameId;
this.frameId = undefined;
return frameId;
}}, {key: 'hasFrameId', value: function() {
return this.frameId != null;
}}, {key: 'getOrCreateFrameId', value: value_64871}]);
}
function* _fun64853(a0) { // fn#64853, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:927, offset: 0x01bb6fe6, size: 116 bytes, params: 2, frame: 15
var binding;
var injectJavaScript;
var binding2;
var binding3;
var property;
var value3;
var value4;
var value5;
var value6;
var value7;
var error;
if (true) {
value = environment.__proto__.__proto__;
function _isNativeReflectConstruct_64845() { // fn#64845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:337, offset: 0x01bb6eec, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
binding = env2_16;
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
injectJavaScript = binding.injectJavaScript;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
binding2 = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
property = binding3[16];
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value3 = binding2(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value4 = value3(a0);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value5 = Reflect.apply(injectJavaScript, binding, [value4]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
if (value7) {
return value6;
}
return (_isNativeReflectConstruct_64845_isNativeReflectConstruct = function() {
return !!result;
})();
}
}
function EmbeddedActivitiesNativeManager(a0) { // fn#64855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1069, offset: 0x01bb71a3, size: 143 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, EmbeddedActivitiesNativeManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(EmbeddedActivitiesNativeManager);
binding = env1_5;
if (_isNativeReflectConstruct_64845()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.handleRPCDisconnect = handleRPCDisconnect;
return value;
}
function value_64857() { // fn#64857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1666, offset: 0x01bb7297, size: 228 bytes, params: 1, frame: 21
var environment;
let value = environment.__proto__;
const _superPropGet_64848Binding = _superPropGet_64848;
const value3 = undefined;
_superPropGet_64848Binding(EmbeddedActivitiesNativeManager, '_initialize', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
this.lifecycleSubscription = env1_17 == null ? value3 : env1_17.addListener('onHostDestroy', _fun64858);
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const binding = env1_16;
this.scriptMessageSubscription = binding.addOnMessageListener(_fun64859);
const thermalStateSubscription = this.thermalStateSubscription;
if (thermalStateSubscription != null) {
thermalStateSubscription.remove();
}
value = importDefault(8093) /* metro dependency 8093: ThermalUtilsNative */;
this.thermalStateSubscription = value.addListener(_fun64860);
return value3;
}
function value_64861() { // fn#64861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:3597, offset: 0x01bb7745, size: 108 bytes, params: 1, frame: 17
const value = environment.__proto__;
_superPropGet_64848(EmbeddedActivitiesNativeManager, '_terminate', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const thermalStateSubscription = this.thermalStateSubscription;
if (thermalStateSubscription != null) {
thermalStateSubscription.remove();
}
}
function value_64864() { // fn#64864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4159, offset: 0x01bb788e, size: 134 bytes, params: 1, frame: 18
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'EMBEDDED_ACTIVITIES_DEV_SHELF_URL_OVERRIDE_ENABLED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const JfA7IK = (require(1244) /* metro dependency 1244: indexNative */).t.JfA7IK;
object2.content = Reflect.apply(string, intl, [JfA7IK]);
object2.icon = importDefault(8096) /* metro dependency 8096 */;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function value_64865() { // fn#64865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4366, offset: 0x01bb7914, size: 93 bytes, params: 1, frame: 16
var value2;
var ComponentDispatch;
const value = this.releaseFrameId();
if (value != null) {
value2 = environment.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: value});
env1_16.releaseWebView();
}
return value;
}
function value_64868(a0, a1, a2) { // fn#64868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4785, offset: 0x01bb79fc, size: 108 bytes, params: 4, frame: 16
const value = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).stopEmbeddedActivity({location: a0,
applicationId: a1, showFeedback: a2});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
'applicationId': null, 'lockState': null, 'pictureInPictureLockState': null, applicationId: a1});
}
function value_64871() { // fn#64871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:5198, offset: 0x01bb7a68, size: 60 bytes, params: 1, frame: 13
const frameId = this.frameId;
if (frameId != null) {
return frameId;
}
let value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
value = value.v4();
this.frameId = value;
return value;
}
function EmbeddedActivitiesNativeManagerHandleRPCDisconnect({reason, application}) { // fn#64856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1370, owner: EmbeddedActivitiesNativeManager.handleRPCDisconnect, offset: 0x01bb7232, size: 101 bytes, params: 2, frame: 16
let value = environment.__proto__.__proto__;
value = EmbeddedActivitiesStore.getConnectedActivityLocation();
const id = application?.id;
const binding = env0_0;
binding.leaveActivity({location: value, applicationId: id});
binding.superHandleRPCDisconnect({reason: reason, application: application});
}
function _fun64858() { // fn#64858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1881, offset: 0x01bb737b, size: 94 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
const value3 = null;
const r3 = value3 != connectedActivityLocation ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : value3;
if (value3 != r3 && value3 != connectedActivityLocation) {
env0_0.leaveActivity({location: connectedActivityLocation, applicationId: r3.applicationId});
}
}
function _fun64859(a0) { // fn#64859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2172, offset: 0x01bb73d9, size: 494 bytes, params: 2, frame: 25
var r9;
var url;
var applicationId;
var r1;
var r12;
var JSON;
var parse;
var data;
var value2;
var value3;
var connectedActivityLocation;
var value5;
var value6;
var selfEmbeddedActivityForLocation;
var value8;
var value9;
var value10;
var property;
var defaultImport;
var error;
var SyntaxError;
var value11;
var connectedActivityLocation2;
var selfEmbeddedActivityForLocation2;
var value14;
var value15;
var value16;
var binding;
var object2;
var defaultImport2;
var show;
const intl = require(dependencyMap[20]).intl;
var string;
const t = require(dependencyMap[20]).t;
var tYBBWz;
var BddRzS;
const value = undefined;
try {
JSON = global.JSON;
parse = JSON.parse;
data = a0.data;
value2 = Reflect.apply(parse, JSON, [data]);
value3 = environment.__proto__.__proto__;
connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
value5 = null;
value6 = value5 != connectedActivityLocation;
if (value6) {
selfEmbeddedActivityForLocation = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation);
r9 = selfEmbeddedActivityForLocation;
} else {
r9 = value5;
function _superPropGet_64848(a0, a1, a2, a3) { // fn#64848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:530, offset: 0x01bb6f4a, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
value = Module00017(1 & 3 ? value.prototype : value);
value = Module00102(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun64849 : value;
function _fun64849(a0) { // fn#64849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:629, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
value8 = value5 == r9;
url = value8 ? value : r9.url;
value9 = typeof value2 === 'object';
if (value9) {
value10 = value5 != url;
r9 = value10;
} else {
r9 = value9;
}
function _postMessageToWebView_64851() { // fn#64851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:862, offset: 0x01bb6fad, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun64853).apply(this, arguments);
function* _fun64853(a0) { // fn#64853, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:927, offset: 0x01bb6fe6, size: 116 bytes, params: 2, frame: 15
var binding;
var injectJavaScript;
var binding2;
var binding3;
var property;
var value3;
var value4;
var value5;
var value6;
var value7;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
binding = env2_16;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
injectJavaScript = binding.injectJavaScript;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
binding2 = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
property = binding3[16];
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value3 = binding2(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value4 = value3(a0);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value5 = Reflect.apply(injectJavaScript, binding, [value4]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
if (value7) {
return value6;
}
}
}
if (r9) {
property = dependencyMap[18];
defaultImport = importDefault(property);
defaultImport.handleMessage(value2, url, postMessageToWebView_64850);
}
} catch (error) {
SyntaxError = global.SyntaxError;
if (!(error instanceof SyntaxError)) {
throw error;
}
data = a0.data;
value11 = environment.__proto__.__proto__;
if (data === DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY) {
connectedActivityLocation2 = EmbeddedActivitiesStore.getConnectedActivityLocation();
if (connectedActivityLocation2 != null) {
selfEmbeddedActivityForLocation2 = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation2);
applicationId = selfEmbeddedActivityForLocation2 == null ? value : selfEmbeddedActivityForLocation2.applicationId;
r1 = applicationId;
}
function _fun64854(a0) { // fn#64854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1057, offset: 0x01bb705a, size: 329 bytes, params: 2, frame: 16
const EmbeddedActivitiesNativeManager2 = EmbeddedActivitiesNativeManager;
Inherits(EmbeddedActivitiesNativeManager2, a0);
return CreateClass(EmbeddedActivitiesNativeManager2, [{key: '_initialize', value: value_64857}, {key: '_terminate',
value: value_64861}, {key: 'showErrorModal', value: function({code, message}) {
var defaultImport = importDefault(dependencyMap[19]);
var object = {};
object.title = require(dependencyMap[20]).intl.formatToPlainString(require(dependencyMap[20]).t.hbiAO6,
{code: code});
object.body = message;
defaultImport.show(object);
}}, {key: 'showLaunchErrorModal', value: function(a0) {
var defaultImport = importDefault(dependencyMap[19]);
var object = {};
object.title = require(dependencyMap[20]).intl.string(require(dependencyMap[20]).t.PtobXW);
object.body = a0;
defaultImport.show(object);
}}, {key: 'showDevShelfOverrideEnabled', value: value_64864}, {key: 'releaseWebView', value: value_64865},
{key: 'leaveActivity', value: function({location, applicationId, showFeedback}) {
var clearEmbeddedActivityState;
var value = this.releaseWebView();
if (location != null && require(dependencyMap[30]).isNotNullish(applicationId)) {
clearEmbeddedActivityState = this.clearEmbeddedActivityState;
value = value != null;
Reflect.apply(clearEmbeddedActivityState, this, [location, applicationId, value && showFeedback]);
}
}}, {key: 'hidePIPEmbed', value: function(a0) {
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", a0);
throw undefined;
}
}}, {key: 'clearEmbeddedActivityState', value: value_64868}, {key: 'releaseFrameId', value: function() {
var frameId = this.frameId;
this.frameId = undefined;
return frameId;
}}, {key: 'hasFrameId', value: function() {
return this.frameId != null;
}}, {key: 'getOrCreateFrameId', value: value_64871}]);
function EmbeddedActivitiesNativeManager(a0) { // fn#64855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1069, offset: 0x01bb71a3, size: 143 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, EmbeddedActivitiesNativeManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(EmbeddedActivitiesNativeManager);
binding = env1_5;
if (_isNativeReflectConstruct_64845()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
r1 = value;
value = value.apply(this, items2);
r0 = value;
}
value14 = connectedActivityLocation2 != null;
if (value14) {
value15 = r1 != null;
r12 = value15;
} else {
r12 = value14;
value = binding(this, r0);
value.handleRPCDisconnect = handleRPCDisconnect;
return value;
function handleRPCDisconnect({reason, application}) { // fn#64856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1370, owner: EmbeddedActivitiesNativeManager.handleRPCDisconnect, offset: 0x01bb7232, size: 101 bytes, params: 2, frame: 16
let value = environment.__proto__.__proto__;
value = EmbeddedActivitiesStore.getConnectedActivityLocation();
const id = application?.id;
const binding = env0_0;
binding.leaveActivity({location: value, applicationId: id});
binding.superHandleRPCDisconnect({reason: reason, application: application});
}
if (r12) {
value16 = environment;
binding = env0_0;
binding.leaveActivity({location: connectedActivityLocation2, applicationId: r1, showFeedback: false});
defaultImport2 = importDefault(dependencyMap[19]);
show = defaultImport2.show;
object2 = {};
string = intl.string;
tYBBWz = t.tYBBWz;
object2.body = Reflect.apply(string, intl, [tYBBWz]);
string = intl.string;
BddRzS = t.BddRzS;
object2.confirmText = Reflect.apply(string, intl, [BddRzS]);
Reflect.apply(show, defaultImport2, [object2]);
}
function value_64857() { // fn#64857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1666, offset: 0x01bb7297, size: 228 bytes, params: 1, frame: 21
var environment;
let value = environment.__proto__;
const _superPropGet_64848Binding = _superPropGet_64848;
const value3 = undefined;
_superPropGet_64848Binding(EmbeddedActivitiesNativeManager, '_initialize', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
this.lifecycleSubscription = env1_17 == null ? value3 : env1_17.addListener('onHostDestroy', _fun64858);
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const binding = env1_16;
this.scriptMessageSubscription = binding.addOnMessageListener(_fun64859);
const thermalStateSubscription = this.thermalStateSubscription;
if (thermalStateSubscription != null) {
thermalStateSubscription.remove();
}
value = importDefault(8093) /* metro dependency 8093: ThermalUtilsNative */;
this.thermalStateSubscription = value.addListener(_fun64860);
return value3;
function _fun64858() { // fn#64858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1881, offset: 0x01bb737b, size: 94 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
const value3 = null;
const r3 = value3 != connectedActivityLocation ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : value3;
if (value3 != r3 && value3 != connectedActivityLocation) {
env0_0.leaveActivity({location: connectedActivityLocation, applicationId: r3.applicationId});
}
}
function _fun64859(a0) { // fn#64859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2172, offset: 0x01bb73d9, size: 494 bytes, params: 2, frame: 25
var r9;
var url;
var applicationId;
var r1;
var r12;
var JSON;
var parse;
var data;
var value2;
var value3;
var connectedActivityLocation;
var value5;
var value6;
var selfEmbeddedActivityForLocation;
var value8;
var value9;
var value10;
var property;
var defaultImport;
var error;
var SyntaxError;
var value11;
var connectedActivityLocation2;
var selfEmbeddedActivityForLocation2;
var value14;
var value15;
var value16;
var binding;
var object;
var defaultImport2;
var show;
const intl = require(dependencyMap[20]).intl;
var string;
const t = require(dependencyMap[20]).t;
var tYBBWz;
var BddRzS;
const value = undefined;
try {
JSON = global.JSON;
parse = JSON.parse;
data = a0.data;
value2 = Reflect.apply(parse, JSON, [data]);
value3 = environment.__proto__.__proto__;
connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
value5 = null;
value6 = value5 != connectedActivityLocation;
if (value6) {
selfEmbeddedActivityForLocation = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation);
r9 = selfEmbeddedActivityForLocation;
} else {
r9 = value5;
}
value8 = value5 == r9;
url = value8 ? value : r9.url;
value9 = typeof value2 === 'object';
if (value9) {
value10 = value5 != url;
r9 = value10;
} else {
r9 = value9;
}
if (r9) {
property = dependencyMap[18];
defaultImport = importDefault(property);
defaultImport.handleMessage(value2, url, postMessageToWebView_64850);
}
} catch (error) {
SyntaxError = global.SyntaxError;
if (!(error instanceof SyntaxError)) {
throw error;
}
data = a0.data;
value11 = environment.__proto__.__proto__;
if (data === DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY) {
connectedActivityLocation2 = EmbeddedActivitiesStore.getConnectedActivityLocation();
if (connectedActivityLocation2 != null) {
selfEmbeddedActivityForLocation2 = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation2);
applicationId = selfEmbeddedActivityForLocation2 == null ? value : selfEmbeddedActivityForLocation2.applicationId;
r1 = applicationId;
} else {
r1 = value;
}
value14 = connectedActivityLocation2 != null;
if (value14) {
value15 = r1 != null;
r12 = value15;
} else {
r12 = value14;
}
if (r12) {
value16 = environment;
binding = env0_0;
binding.leaveActivity({location: connectedActivityLocation2, applicationId: r1, showFeedback: false});
defaultImport2 = importDefault(dependencyMap[19]);
show = defaultImport2.show;
object = {};
string = intl.string;
tYBBWz = t.tYBBWz;
object.body = Reflect.apply(string, intl, [tYBBWz]);
string = intl.string;
BddRzS = t.BddRzS;
object.confirmText = Reflect.apply(string, intl, [BddRzS]);
Reflect.apply(show, defaultImport2, [object]);
}
}
}
return value;
}
function _fun64860({rawThermalState}) { // fn#64860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2902, offset: 0x01bb75c7, size: 382 bytes, params: 2, frame: 21
const value = environment.__proto__.__proto__;
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
const r4 = connectedActivityLocation != null ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : null;
const embeddedActivityLocationChannelId = (EmbeddedActivityLocationUtilsModule).getEmbeddedActivityLocationChannelId(connectedActivityLocation);
const basicChannel = ChannelStore.getBasicChannel(embeddedActivityLocationChannelId);
const compositeInstanceId = r4?.compositeInstanceId;
const applicationId = r4?.applicationId;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const ACTIVITY_DEVICE_THERMAL_STATE_CHANGED = AnalyticEvents.ACTIVITY_DEVICE_THERMAL_STATE_CHANGED;
const object = {channel_id: embeddedActivityLocationChannelId, application_id: applicationId,
activity_session_id: compositeInstanceId, thermal_state: rawThermalState};
object.guild_id = basicChannel?.guild_id;
object.media_session_id = RTCConnectionStore.getMediaSessionId();
Reflect.apply(track, defaultImport, [ACTIVITY_DEVICE_THERMAL_STATE_CHANGED, object]);
const defaultImport2 = Dispatcher;
defaultImport2.dispatch({type: 'THERMAL_STATE_CHANGE', applicationId: applicationId});
if (compositeInstanceId != null && applicationId != null && (require(8095) /* metro dependency 8095: useThermalState */).getThermalState() >= (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS) {
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).requestRespondToSeriousThermalState();
}
}
}
function value_64861() { // fn#64861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:3597, offset: 0x01bb7745, size: 108 bytes, params: 1, frame: 17
const value = environment.__proto__;
_superPropGet_64848(EmbeddedActivitiesNativeManager, '_terminate', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const thermalStateSubscription = this.thermalStateSubscription;
if (thermalStateSubscription != null) {
thermalStateSubscription.remove();
}
}
function value_64864() { // fn#64864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4159, offset: 0x01bb788e, size: 134 bytes, params: 1, frame: 18
const defaultImport = ToastActionCreators;
const open = defaultImport.open;
const object = {key: 'EMBEDDED_ACTIVITIES_DEV_SHELF_URL_OVERRIDE_ENABLED'};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const JfA7IK = (IndexNativeModule).t.JfA7IK;
object.content = Reflect.apply(string, intl, [JfA7IK]);
object.icon = importDefault(8096) /* metro dependency 8096 */;
object.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object]);
}
function value_64865() { // fn#64865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4366, offset: 0x01bb7914, size: 93 bytes, params: 1, frame: 16
var value2;
var ComponentDispatch;
const value = this.releaseFrameId();
if (value != null) {
value2 = environment.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: value});
env1_16.releaseWebView();
}
return value;
}
function value_64868(a0, a1, a2) { // fn#64868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4785, offset: 0x01bb79fc, size: 108 bytes, params: 4, frame: 16
const value = environment.__proto__;
(EmbeddedActivitiesActionCreatorsModule).stopEmbeddedActivity({location: a0,
applicationId: a1, showFeedback: a2});
(Dispatcher).dispatch({'type': 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
'applicationId': null, 'lockState': null, 'pictureInPictureLockState': null, applicationId: a1});
}
function value_64871() { // fn#64871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:5198, offset: 0x01bb7a68, size: 60 bytes, params: 1, frame: 13
const frameId = this.frameId;
if (frameId != null) {
return frameId;
}
let value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
value = value.v4();
this.frameId = value;
return value;
}
}
return value;
}
function _fun64860({rawThermalState}) { // fn#64860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2902, offset: 0x01bb75c7, size: 382 bytes, params: 2, frame: 21
const value = environment.__proto__.__proto__;
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
const r4 = connectedActivityLocation != null ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : null;
const embeddedActivityLocationChannelId = (require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */).getEmbeddedActivityLocationChannelId(connectedActivityLocation);
const basicChannel = ChannelStore.getBasicChannel(embeddedActivityLocationChannelId);
const compositeInstanceId = r4?.compositeInstanceId;
const applicationId = r4?.applicationId;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const ACTIVITY_DEVICE_THERMAL_STATE_CHANGED = AnalyticEvents.ACTIVITY_DEVICE_THERMAL_STATE_CHANGED;
const object2 = {channel_id: embeddedActivityLocationChannelId, application_id: applicationId,
activity_session_id: compositeInstanceId, thermal_state: rawThermalState};
object2.guild_id = basicChannel?.guild_id;
object2.media_session_id = RTCConnectionStore.getMediaSessionId();
Reflect.apply(track, defaultImport, [ACTIVITY_DEVICE_THERMAL_STATE_CHANGED, object2]);
const defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport2.dispatch({type: 'THERMAL_STATE_CHANGE', applicationId: applicationId});
if (compositeInstanceId != null && applicationId != null && (require(8095) /* metro dependency 8095: useThermalState */).getThermalState() >= (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS) {
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).requestRespondToSeriousThermalState();
}
}
global.__d(_fun64844, 8092, [6, 7, 15, 17, 102, 18, 5, 27, 1379, 4294, 1378, 4237, 661, 5269, 477, 8070, 8071, 1216,
8072, 4496, 1244, 8093, 3774, 683, 694, 8095, 7860, 3857, 8096, 1239, 1360, 491, 8097,
2]) /* metro module 8092, dependencies: [6, 7, 15, 17, 102, 18, 5, 27, 1379, 4294, 1378, 4237, 661, 5269, 477, 8070, 8071, 1216, 8072, 4496, 1244, 8093, 3774, 683, 694, 8095, 7860, 3857, 8096, 1239, 1360, 491, 8097, 2] */;
@@ -1,45 +1,64 @@
/* Metro module 10717; source: modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 10718, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseEmbeddedActivityBackground from '../utils/useEmbeddedActivityBackground.tsx'; /* Metro dependency 10718 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 */
function _fun82348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:6, offset: 0x01ef3e8a, size: 283 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.ImageBackground;
const env0_5 = value.View;
const env0_6 = value.StyleSheet;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
const BLACK = (Native).colors.BLACK;
const env0_8 = Reflect.apply(createStyles, value, [{overlay: {'flex': 1, 'opacity': 0.6, backgroundColor: BLACK}}]);
const env0_9 = ['embedded_background'];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx');
exports.default = EmbeddedActivityBackgroundImageWithOverlay;
}
function EmbeddedActivityBackgroundImageWithOverlay({application, dimensionsStyle, borderRadius, resizeMode}) { // fn#82349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:417, offset: 0x01ef3fa5, size: 346 bytes, params: 2, frame: 24
var r0;
let value = undefined;
resizeMode = resizeMode === value ? 'contain' : resizeMode;
const styles = useStyles();
const [property, env0_0] = Module00057(ReactModule.useState(false), 2);
const defaultImport = UseEmbeddedActivityBackground;
const id = application == null ? value : application.id;
const value7 = '';
const url = defaultImport({applicationId: id ?? value7, names: env0_9, size: 1024}).url;
if (property) {
r0 = null;
} else if (url == null) {
r0 = null;
} else if (value7 === url) {
r0 = null;
} else {
value = (
<ImageBackground
resizeMode={resizeMode}
source={{uri: url ?? value}}
style={dimensionsStyle ?? StyleSheet.absoluteFillObject}
imageStyle={{borderRadius: borderRadius}}
onError={onError_82350}
>
<View style={[styles.overlay, {borderRadius: borderRadius}]} />
</ImageBackground>
);
r0 = value;
}
return r0;
function EmbeddedActivityBackgroundImageWithOverlayOnError() { // fn#82350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:830, owner: EmbeddedActivityBackgroundImageWithOverlay.onError, offset: 0x01d72e0f, size: 18 bytes, params: 1, frame: 11
return env0_0(true);
}
function EmbeddedActivityBackgroundImageWithOverlay({application, dimensionsStyle, borderRadius, resizeMode}) { // fn#82349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:417, offset: 0x01ef3fa5, size: 346 bytes, params: 2, frame: 24
var r0;
let value = undefined;
resizeMode = resizeMode === value ? 'contain' : resizeMode;
const styles = useStyles();
const [property, env0_0] = env0_2(env0_3.useState(false), 2);
const defaultImport = importDefault(10718) /* metro dependency 10718: useEmbeddedActivityBackground */;
const id = application == null ? value : application.id;
const value7 = '';
const url = defaultImport({applicationId: id ?? value7, names: env0_9, size: 1024}).url;
if (property) {
r0 = null;
} else if (url == null) {
r0 = null;
} else if (value7 === url) {
r0 = null;
} else {
value = <ImageBackground resizeMode={resizeMode} source={{uri: url ?? value}} style={dimensionsStyle ?? StyleSheet.absoluteFillObject} imageStyle={{borderRadius: borderRadius}} onError={onError}><View style={[styles.overlay,
{borderRadius: borderRadius}]} /></ImageBackground>;
r0 = value;
}
return r0;
}
global.__d(_fun82348, 10717, [57, 31, 27, 33, 4501, 697, 10718,
2]) /* metro module 10717, dependencies: [57, 31, 27, 33, 4501, 697, 10718, 2] */;
@@ -1,226 +1,259 @@
/* Metro module 10704; source: modules/activities/native/EmbeddedActivityView.tsx; dependencies: [57, 31, 27, 1378, 4237, 4238, 33, 4501, 10703, 1478, 694, 10705, 10706, 10701, 566, 10708, 8092, 10709, 10716, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import EmbeddedActivitiesStore from '../EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import UseCurrentEmbeddedApplication from '../utils/useCurrentEmbeddedApplication.tsx'; /* Metro dependency 10701 */
import UseDispatchOpenActivity from '../useDispatchOpenActivity.tsx'; /* Metro dependency 10708 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4237 */
import * as ApplicationConstantsModule from '../../applications/ApplicationConstants.tsx'; /* Metro dependency 4238 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as GetDefaultOrientationLockStateModule from './getDefaultOrientationLockState.tsx'; /* Metro dependency 10703 */
function _fun82249(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:6, offset: 0x01ef097a, size: 396 bytes, params: 8, frame: 23
const env0_0 = require;
const closure = useBaseActivityView;
const closure2 = ActivityViewLoadingIndicator;
const closure3 = BaseActivityView;
const useBaseActivityView2 = useBaseActivityView;
const ActivityViewLoadingIndicator2 = ActivityViewLoadingIndicator;
const BaseActivityView2 = BaseActivityView;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_5 = value2.ActivityIndicator;
const env0_6 = value2.View;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const constantsModule = require(4237) /* metro dependency 4237: Constants */;
const env0_8 = constantsModule.ActivityLayoutMode;
const env0_9 = constantsModule.ActivityScreenOrientation;
const env0_10 = (require(4238) /* metro dependency 4238: ApplicationConstants */).OBEY_SILENT_HARDWARE_SWITCH_APP_IDS;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.Fragment;
const env0_13 = value4.jsxs;
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({loadingContainer: {'flex': 1,
let value = ReactModule;
const env0_14 = (CreateStylesModule).createStyles({loadingContainer: {'flex': 1,
'justifyContent': 'center'}});
value = value.memo(EmbeddedActivityViewInner);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/EmbeddedActivityView.tsx');
exports.default = value;
exports.useBaseActivityView = closure;
exports.ActivityViewLoadingIndicator = closure2;
exports.BaseActivityView = closure3;
exports.useBaseActivityView = useBaseActivityView2;
exports.ActivityViewLoadingIndicator = ActivityViewLoadingIndicator2;
exports.BaseActivityView = BaseActivityView2;
exports.EmbeddedActivityView = value;
}
function useBaseActivityView({orientationLockState, showLoadingIndicator, setShowLoadingStateForLockingOrientation, application, setOrientationLockState}) { // fn#82250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:392, offset: 0x01ef0b06, size: 460 bytes, params: 2, frame: 27
const application2 = application;
const setOrientationLockState2 = setOrientationLockState;
let value = undefined;
const [property, property2] = application2(setOrientationLockState2.useState(false), 2);
const defaultOrientationLockState = (GetDefaultOrientationLockStateModule).getDefaultOrientationLockState(application);
const id = application == null ? value : application.id;
const [property3, env0_8] = application2(setOrientationLockState2.useState(false), 2);
value = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
value = value.width > value.height;
setOrientationLockState2.useLayoutEffect(_fun82251, [value]);
setOrientationLockState2.useLayoutEffect(_fun82252, [id]);
setOrientationLockState2.useLayoutEffect(_fun82253, [defaultOrientationLockState, application, orientationLockState,
value, property3, setShowLoadingStateForLockingOrientation, setOrientationLockState]);
setOrientationLockState2.useLayoutEffect(_fun82254, [orientationLockState, value,
setShowLoadingStateForLockingOrientation]);
setOrientationLockState2.useLayoutEffect(_fun82255, [showLoadingIndicator, property]);
return {isResetting: property, setIsResetting: property2, isLandscape: value};
function _fun82251() { // fn#82251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:760, offset: 0x01ef0cd2, size: 82 bytes, params: 1, frame: 14
let value = environment.__proto__;
const r4 = ConstantsModule.ActivityScreenOrientation ? ActivityScreenOrientation.LANDSCAPE : ActivityScreenOrientation.PORTRAIT;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'ACTIVITY_SCREEN_ORIENTATION_UPDATE', screenOrientation: r4});
}
function useBaseActivityView({orientationLockState, showLoadingIndicator, setShowLoadingStateForLockingOrientation, application, setOrientationLockState}) { // fn#82250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:392, offset: 0x01ef0b06, size: 460 bytes, params: 2, frame: 27
const env0_3 = application;
const env0_4 = setOrientationLockState;
let value = undefined;
const [property, property2] = env0_3(env0_4.useState(false), 2);
const defaultOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).getDefaultOrientationLockState(application);
const id = application == null ? value : application.id;
const [property3, env0_8] = env0_3(env0_4.useState(false), 2);
value = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
value = value.width > value.height;
env0_4.useLayoutEffect(_fun82251, [value]);
env0_4.useLayoutEffect(_fun82252, [id]);
env0_4.useLayoutEffect(_fun82253, [defaultOrientationLockState, application, orientationLockState, value, property3,
setShowLoadingStateForLockingOrientation, setOrientationLockState]);
env0_4.useLayoutEffect(_fun82254, [orientationLockState, value, setShowLoadingStateForLockingOrientation]);
env0_4.useLayoutEffect(_fun82255, [showLoadingIndicator, property]);
return {isResetting: property, setIsResetting: property2, isLandscape: value};
}
function _fun82252() { // fn#82252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:905, offset: 0x01ef0d24, size: 18 bytes, params: 1, frame: 11
env0_8(false);
}
function ActivityViewLoadingIndicator() { // fn#82256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1168, offset: 0x01ef0e0c, size: 69 bytes, params: 1, frame: 17
const styles = useStyles();
return (
<View style={styles.loadingContainer}>
<ActivityIndicator size="large" />
</View>
);
}
function _fun82253() { // fn#82253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:942, offset: 0x01ef0d36, size: 122 bytes, params: 1, frame: 14
var value2;
if (env0_7) {
setShowLoadingStateForLockingOrientation(false);
} else if (orientationLockState != null) {
setShowLoadingStateForLockingOrientation(false);
} else {
value2 = environment.__proto__;
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(ConstantsModule.ActivityScreenOrientation, ReactNativeModule.View)) {
setShowLoadingStateForLockingOrientation(false);
} else {
setShowLoadingStateForLockingOrientation(true);
}
}
if (application != null) {
setOrientationLockState(application, orientationLockState);
}
}
function BaseActivityView(a0) { // fn#82257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1286, offset: 0x01ef0e51, size: 133 bytes, params: 2, frame: 19
var r0;
var value;
var jsxRuntimeEnv0_12Binding;
if (a0.showLoadingIndicator) {
r0 = <ActivityViewLoadingIndicator />;
} else {
value = null;
if (a0.isResetting) {
r0 = value;
function _fun82254() { // fn#82254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1039, offset: 0x01ef0db0, size: 58 bytes, params: 1, frame: 14
const value = environment.__proto__;
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(ConstantsModule.ActivityScreenOrientation,
orientationLockState)) {
setShowLoadingStateForLockingOrientation(false);
}
}
function _fun82255() { // fn#82255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1095, offset: 0x01ef0dea, size: 34 bytes, params: 1, frame: 11
if (!(showLoadingIndicator || ReactNativeModule.ActivityIndicator)) {
env0_8(true);
}
}
}
function ActivityViewLoadingIndicator() { // fn#82256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1168, offset: 0x01ef0e0c, size: 69 bytes, params: 1, frame: 17
const styles = useStyles();
return (
<View style={styles.loadingContainer}>
<ActivityIndicator size="large" />
</View>
);
}
function BaseActivityView(a0) { // fn#82257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1286, offset: 0x01ef0e51, size: 133 bytes, params: 2, frame: 19
var r0;
var value;
var jsxRuntimeEnv0_12Binding;
if (a0.showLoadingIndicator) {
r0 = <ActivityViewLoadingIndicator />;
} else {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = importDefault(10706) /* metro dependency 10706: WakeLock */;
value = ((Component) => <Component wakeLockKey={a0.wakeLockKey} />)(value);
value = <>{value}{a0.children}</>;
value = null;
if (a0.isResetting) {
r0 = value;
} else {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = importDefault(10706) /* metro dependency 10706: WakeLock */;
value = ((Component) => <Component wakeLockKey={a0.wakeLockKey} />)(value);
value = (
<>
{value}
{a0.children}
</>
);
r0 = value;
}
}
return r0;
}
function EmbeddedActivityViewInner({channel, layoutMode, portraitSafeAreasConfig, landscapeSafeAreasConfig}) { // fn#82258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1490, offset: 0x01ef0ed6, size: 1004 bytes, params: 2, frame: 32
var r7;
var r14;
var r0;
var location;
var EmbeddedActivityWebView;
let value = undefined;
let env0_3 = value;
const embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
const currentEmbeddedActivity2 = embeddedActivitiesStoreBinding.getCurrentEmbeddedActivity();
const value4 = (UseCurrentEmbeddedApplication)();
const value5 = (FluxModule).useStateFromStores([embeddedActivitiesStoreBinding],
_fun82259, [value4]);
const [property, property2] = env0_3(env0_4.useState(true), 2);
object = {currentEmbeddedActivity: currentEmbeddedActivity2, channel: channel};
const currentEmbeddedActivity = object.currentEmbeddedActivity;
const channel2 = object.channel;
if (currentEmbeddedActivity == null) {
r14 = {instance_id: ''};
} else {
object = {};
object.instance_id = currentEmbeddedActivity.compositeInstanceId ?? currentEmbeddedActivity.launchId;
location = currentEmbeddedActivity.location;
object.location_id = location == null ? value : location.id;
object.launch_id = currentEmbeddedActivity.launchId;
if (currentEmbeddedActivity.proxyTicket != null) {
object.discord_proxy_ticket = currentEmbeddedActivity.proxyTicket;
}
r7 = channel2 != null && channel2.id != null;
r7 = r7 && channel2.id !== '';
if (r7) {
object.channel_id = channel2.id;
}
r7 = (channel2 == null ? value : channel2.guild_id) != null && (channel2 == null ? value : channel2.guild_id) !== '';
if (r7) {
object.guild_id = channel2 == null ? value : channel2.guild_id;
r14 = object;
} else {
r14 = object;
}
}
(UseDispatchOpenActivity)({connectedEmbeddedActivity: currentEmbeddedActivity2});
env0_4.useLayoutEffect(_fun82260, [layoutMode, currentEmbeddedActivity2]);
const value14 = env0_4.useCallback(_fun82261, [value4, currentEmbeddedActivity2]);
const id = value4 == null ? value : value4.id;
let r6 = currentEmbeddedActivity2 == null || (currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.launchId) == null;
r6 = !r6 ? property : r6;
r6 = !r6 ? id == null : r6;
r6 = !r6 ? value4 == null : r6;
object = {orientationLockState: value5, showLoadingIndicator: r6,
setShowLoadingStateForLockingOrientation: property2, application: value4};
object.setOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).setOrientationLockState;
const value19 = useBaseActivityView(object);
const isResetting = value19.isResetting;
env0_3 = value19.setIsResetting;
if (currentEmbeddedActivity2 == null) {
r0 = null;
} else if (id == null) {
r0 = null;
} else {
object = {wakeLockKey: 'EmbeddedActivities', showLoadingIndicator: r6, isResetting: isResetting};
EmbeddedActivityWebView = importDefault(10709) /* metro dependency 10709: EmbeddedActivityWebView */;
value = (
<BaseActivityView {...object}>
<EmbeddedActivityWebView
onActivityCrash={function() {
setIsResetting(true);
global.setTimeout(_fun82263, 0);
}}
applicationId={id}
channelId={channel == null ? value : channel.id}
guildId={channel == null ? value : channel.guild_id}
activityUrl={currentEmbeddedActivity2.url}
currentEmbeddedActivity={currentEmbeddedActivity2}
activitySessionId={currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.compositeInstanceId}
queryParams={r14}
onLoadError={value14}
allowPopups={(require(10716) /* metro dependency 10716: allowPopups */).allowPopups(value4)}
referrerPolicy="origin"
isPipOrGridMode={layoutMode === ActivityLayoutMode.PIP || layoutMode === ActivityLayoutMode.GRID}
webViewKey={(require(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).EMBEDDED_ACTIVITY_WEB_VIEW_KEY}
safeAreasConfig={value19.isLandscape ? landscapeSafeAreasConfig : portraitSafeAreasConfig}
ignoreSilentHardwareSwitch={!OBEY_SILENT_HARDWARE_SWITCH_APP_IDS.has(id)}
/>
</BaseActivityView>
);
r0 = value;
}
}
return r0;
}
return r0;
function _fun82259() { // fn#82259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1689, offset: 0x01ef12c2, size: 47 bytes, params: 1, frame: 12
return env0_2 != null ? EmbeddedActivitiesStore.getOrientationLockStateForApp(env0_2.id) : undefined;
}
function EmbeddedActivityViewInner({channel, layoutMode, portraitSafeAreasConfig, landscapeSafeAreasConfig}) { // fn#82258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1490, offset: 0x01ef0ed6, size: 1004 bytes, params: 2, frame: 32
var object2;
var r7;
var r14;
var r0;
var location;
var EmbeddedActivityWebView;
let value = undefined;
let env0_3 = value;
const currentEmbeddedActivity2 = EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
const value4 = (importDefault(10701) /* metro dependency 10701: useCurrentEmbeddedApplication */)();
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
_fun82259, [value4]);
const [property, property2] = env0_3(env0_4.useState(true), 2);
object2 = {currentEmbeddedActivity: currentEmbeddedActivity2, channel: channel};
const currentEmbeddedActivity = object2.currentEmbeddedActivity;
const channel2 = object2.channel;
if (currentEmbeddedActivity == null) {
r14 = {instance_id: ''};
} else {
object2 = {};
object2.instance_id = currentEmbeddedActivity.compositeInstanceId ?? currentEmbeddedActivity.launchId;
location = currentEmbeddedActivity.location;
object2.location_id = location == null ? value : location.id;
object2.launch_id = currentEmbeddedActivity.launchId;
if (currentEmbeddedActivity.proxyTicket != null) {
object2.discord_proxy_ticket = currentEmbeddedActivity.proxyTicket;
function _fun82260() { // fn#82260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2358, offset: 0x01ef12f1, size: 84 bytes, params: 1, frame: 13
var value2;
if (env0_1 != null) {
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_LAYOUT_MODE_UPDATE',
layoutMode: layoutMode, applicationId: env0_1.applicationId});
}
}
r7 = channel2 != null && channel2.id != null;
r7 = r7 && channel2.id !== '';
if (r7) {
object2.channel_id = channel2.id;
function _fun82261() { // fn#82261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2501, offset: 0x01ef1345, size: 97 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = undefined;
(importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).leaveActivity({location: env0_1 == null ? value : env0_1.location,
applicationId: env0_2 == null ? value : env0_2.id});
return value;
}
r7 = (channel2 == null ? value : channel2.guild_id) != null && (channel2 == null ? value : channel2.guild_id) !== '';
if (r7) {
object2.guild_id = channel2 == null ? value : channel2.guild_id;
r14 = object2;
} else {
r14 = object2;
}
}
(importDefault(10708) /* metro dependency 10708: useDispatchOpenActivity */)({connectedEmbeddedActivity: currentEmbeddedActivity2});
env0_4.useLayoutEffect(_fun82260, [layoutMode, currentEmbeddedActivity2]);
const value14 = env0_4.useCallback(_fun82261, [value4, currentEmbeddedActivity2]);
const id = value4 == null ? value : value4.id;
let r6 = currentEmbeddedActivity2 == null || (currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.launchId) == null;
r6 = !r6 ? property : r6;
r6 = !r6 ? id == null : r6;
r6 = !r6 ? value4 == null : r6;
object2 = {orientationLockState: value5, showLoadingIndicator: r6,
setShowLoadingStateForLockingOrientation: property2, application: value4};
object2.setOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).setOrientationLockState;
const value19 = useBaseActivityView(object2);
const isResetting = value19.isResetting;
env0_3 = value19.setIsResetting;
if (currentEmbeddedActivity2 == null) {
r0 = null;
} else if (id == null) {
r0 = null;
} else {
object2 = {wakeLockKey: 'EmbeddedActivities', showLoadingIndicator: r6, isResetting: isResetting};
EmbeddedActivityWebView = importDefault(10709) /* metro dependency 10709: EmbeddedActivityWebView */;
value = <BaseActivityView {...object2}><EmbeddedActivityWebView onActivityCrash={function() {
function onActivityCrash() { // fn#82262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:3089, owner: EmbeddedActivityViewInner.onActivityCrash, offset: 0x01ef13a6, size: 43 bytes, params: 1, frame: 13
setIsResetting(true);
global.setTimeout(_fun82263, 0);
}} applicationId={id} channelId={channel == null ? value : channel.id} guildId={channel == null ? value : channel.guild_id} activityUrl={currentEmbeddedActivity2.url} currentEmbeddedActivity={currentEmbeddedActivity2} activitySessionId={currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.compositeInstanceId} queryParams={r14} onLoadError={value14} allowPopups={(require(10716) /* metro dependency 10716: allowPopups */).allowPopups(value4)} referrerPolicy="origin" isPipOrGridMode={layoutMode === ActivityLayoutMode.PIP || layoutMode === ActivityLayoutMode.GRID} webViewKey={(require(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).EMBEDDED_ACTIVITY_WEB_VIEW_KEY} safeAreasConfig={value19.isLandscape ? landscapeSafeAreasConfig : portraitSafeAreasConfig} ignoreSilentHardwareSwitch={!OBEY_SILENT_HARDWARE_SWITCH_APP_IDS.has(id)} /></BaseActivityView>;
r0 = value;
}
return r0;
}
global.setTimeout(function() {
return setIsResetting(false);
}, 0);
function _fun82263() { // fn#82263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:3112, offset: 0x01ef13d1, size: 18 bytes, params: 1, frame: 11
return setIsResetting(false);
}
function _fun82251() { // fn#82251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:760, offset: 0x01ef0cd2, size: 82 bytes, params: 1, frame: 14
const binding = env0_9;
let value = environment.__proto__;
const r4 = binding ? ActivityScreenOrientation.LANDSCAPE : ActivityScreenOrientation.PORTRAIT;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'ACTIVITY_SCREEN_ORIENTATION_UPDATE', screenOrientation: r4});
}
function _fun82252() { // fn#82252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:905, offset: 0x01ef0d24, size: 18 bytes, params: 1, frame: 11
env0_8(false);
}
function _fun82253() { // fn#82253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:942, offset: 0x01ef0d36, size: 122 bytes, params: 1, frame: 14
var value2;
if (env0_7) {
setShowLoadingStateForLockingOrientation(false);
} else if (orientationLockState != null) {
setShowLoadingStateForLockingOrientation(false);
} else {
value2 = environment.__proto__;
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(env0_9, env0_6)) {
setShowLoadingStateForLockingOrientation(false);
} else {
setShowLoadingStateForLockingOrientation(true);
}
}
if (application != null) {
setOrientationLockState(application, orientationLockState);
}
}
function _fun82254() { // fn#82254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1039, offset: 0x01ef0db0, size: 58 bytes, params: 1, frame: 14
const value = environment.__proto__;
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(env0_9,
orientationLockState)) {
setShowLoadingStateForLockingOrientation(false);
}
}
function _fun82255() { // fn#82255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1095, offset: 0x01ef0dea, size: 34 bytes, params: 1, frame: 11
if (!(showLoadingIndicator || env0_5)) {
env0_8(true);
}
}
function _fun82259() { // fn#82259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1689, offset: 0x01ef12c2, size: 47 bytes, params: 1, frame: 12
return env0_2 != null ? EmbeddedActivitiesStore.getOrientationLockStateForApp(env0_2.id) : undefined;
}
function _fun82260() { // fn#82260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2358, offset: 0x01ef12f1, size: 84 bytes, params: 1, frame: 13
var value2;
if (env0_1 != null) {
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_LAYOUT_MODE_UPDATE',
layoutMode: layoutMode, applicationId: env0_1.applicationId});
}
}
function _fun82261() { // fn#82261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2501, offset: 0x01ef1345, size: 97 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = undefined;
(importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).leaveActivity({location: env0_1 == null ? value : env0_1.location,
applicationId: env0_2 == null ? value : env0_2.id});
return value;
}
function EmbeddedActivityViewInnerOnActivityCrash() { // fn#82262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:3089, owner: EmbeddedActivityViewInner.onActivityCrash, offset: 0x01ef13a6, size: 43 bytes, params: 1, frame: 13
setIsResetting(true);
global.setTimeout(function() {
return setIsResetting(false);
}, 0);
}
global.__d(_fun82249, 10704, [57, 31, 27, 1378, 4237, 4238, 33, 4501, 10703, 1478, 694, 10705, 10706, 10701, 566,
10708, 8092, 10709, 10716,
2]) /* metro module 10704, dependencies: [57, 31, 27, 1378, 4237, 4238, 33, 4501, 10703, 1478, 694, 10705, 10706, 10701, 566, 10708, 8092, 10709, 10716, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,51 +1,65 @@
/* Metro module 10662; source: modules/activities/native/IgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4501, 4596, 1244, 7860, 4573, 2] */
import Alert from '../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as EmbeddedActivitiesActionCreatorsModule from '../EmbeddedActivitiesActionCreators.tsx'; /* Metro dependency 7860 */
function _fun81998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:6, offset: 0x01ee6a12, size: 207 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {'marginTop': 16,
ReactModule;
const env0_5 = (CreateStylesModule).createStyles({text: {'marginTop': 16,
'lineHeight': 20, 'textAlign': 'center'}, header: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/IgnoreThermalStateAlert.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/IgnoreThermalStateAlert.tsx');
exports.IgnoreThermalStateAlert = IgnoreThermalStateAlert;
}
function IgnoreThermalStateAlert(a0) { // fn#81999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:351, offset: 0x01ee6ae1, size: 434 bytes, params: 2, frame: 25
const env0_0 = a0.onConfirm;
let value = Object.create(null);
value.onConfirm = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
const defaultImportProps = {...value2};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
defaultImportProps['cancelText'] = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['1fRDnT']]);
defaultImportProps['onCancel'] = IgnoreThermalStateAlertOnCancel;
defaultImportProps['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = <Text style={styles.header} variant="heading-lg/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v5X4fZ)}</Text>;
string = intl.string;
const VOgTjy = (require(1244) /* metro dependency 1244: indexNative */).t.VOgTjy;
return (
<Alert {...defaultImportProps}>
{value}
<Text style={styles.text} variant="text-md/medium">
{Reflect.apply(string, intl, [VOgTjy])}
function IgnoreThermalStateAlert(a0) { // fn#81999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:351, offset: 0x01ee6ae1, size: 434 bytes, params: 2, frame: 25
const env0_0 = a0.onConfirm;
let value = Object.create(null);
value.onConfirm = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const defaultImportProps = {...value2};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
defaultImportProps['cancelText'] = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['1fRDnT']]);
defaultImportProps['onCancel'] = IgnoreThermalStateAlertOnCancel;
defaultImportProps['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF);
const Text = (TextModule).Text;
value = (
<Text
style={styles.header}
variant="heading-lg/extrabold"
color="mobile-text-heading-primary"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v5X4fZ)}
</Text>
</Alert>
);
}
);
string = intl.string;
const VOgTjy = (require(1244) /* metro dependency 1244: indexNative */).t.VOgTjy;
return (
<Alert {...defaultImportProps}>
{value}
<Text style={styles.text} variant="text-md/medium">
{Reflect.apply(string, intl, [VOgTjy])}
</Text>
</Alert>
);
function IgnoreThermalStateAlertOnCancel() { // fn#82000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:498, owner: IgnoreThermalStateAlert.onCancel, offset: 0x01ee6c93, size: 60 bytes, params: 1, frame: 11
if (onConfirm != null) {
onConfirm();
}
const value = environment.__proto__;
(EmbeddedActivitiesActionCreatorsModule).disregardSeriousThermalState();
}
function IgnoreThermalStateAlertOnCancel() { // fn#82000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:498, owner: IgnoreThermalStateAlert.onCancel, offset: 0x01ee6c93, size: 60 bytes, params: 1, frame: 11
if (onConfirm != null) {
onConfirm();
}
const value = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).disregardSeriousThermalState();
}
global.__d(_fun81998, 10662, [31, 33, 4501, 4596, 1244, 7860, 4573,
2]) /* metro module 10662, dependencies: [31, 33, 4501, 4596, 1244, 7860, 4573, 2] */;
@@ -1,65 +1,96 @@
/* Metro module 15451; source: modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx; dependencies: [57, 31, 27, 4502, 1376, 33, 4501, 697, 8750, 566, 6275, 9543, 4573, 1244, 4578, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import Video from '../../../components_native/common/Video.tsx'; /* Metro dependency 9543 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 DismissibleContentConstantsModule from '../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as UseIsScreenLandscapeNativeModule from '../../screen/useIsScreenLandscape.native.tsx'; /* Metro dependency 8750 */
function _fun118260(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:6, offset: 0x024d343e, size: 383 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
object = {videoURI: 'https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.mp4'};
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object3 = {};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.overflow = 'hidden';
const env0_11 = Reflect.apply(createStyles, value, [{videoContainer: object3,
const object2 = {};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.overflow = 'hidden';
const env0_11 = Reflect.apply(createStyles, value, [{videoContainer: object2,
bottomSheetWrapper: {paddingHorizontal: 24}, contentContainer: {'flex': 1, 'alignItems': 'center',
'paddingTop': 24, 'paddingBottom': 16}, title: {'marginTop': 16, 'textAlign': 'center'}, body: {'marginTop': 8,
'marginBottom': 24, 'textAlign': 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx');
exports.default = VoiceControlsToggleActionSheet;
}
function VoiceControlsToggleActionSheet({markAsDismissed}) { // fn#118261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:724, offset: 0x024d35bd, size: 670 bytes, params: 2, frame: 29
const styles = useStyles();
const [property, env0_1] = env0_3(env0_4.useState(0), 2);
const value4 = (require(8750) /* metro dependency 8750: useIsScreenLandscapeNative */).useIsScreenLandscape();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r16 = value4 ? 2.0875 : 1.5;
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const viewBindingProps = {style: styles.contentContainer, onLayout: onLayout_118264};
const items2 = [((Component) => <Component style={styles.videoContainer} src={env0_10} poster="https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.png" width={property} height={property / r16} muted paused={useReducedMotion} />)(importDefault(9543) /* metro dependency 9543: Video */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pT6hue)}</Text>;
items2[2] = <Text style={styles.body} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tNm8AZ)}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[3] = <Button onPress={function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} />;
return (
<BottomSheet startExpanded onDismiss={function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}}>
<View style={styles.bottomSheetWrapper}>
<View {...viewBindingProps}>
{items2}
function VoiceControlsToggleActionSheet({markAsDismissed}) { // fn#118261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:724, offset: 0x024d35bd, size: 670 bytes, params: 2, frame: 29
const styles = useStyles();
const [property, env0_1] = Module00057(ReactModule.useState(0), 2);
const value4 = (UseIsScreenLandscapeNativeModule).useIsScreenLandscape();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r16 = value4 ? 2.0875 : 1.5;
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const viewBindingProps = {style: styles.contentContainer, onLayout: onLayout_118264};
const items2 = [
((Component) => <Component style={styles.videoContainer} src={env0_10} poster="https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.png" width={property} height={property / r16} muted paused={useReducedMotion} />)(Video),
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<Text
style={styles.title}
accessibilityRole="header"
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pT6hue)}
</Text>
);
items2[2] = (
<Text style={styles.body} variant="text-sm/normal">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tNm8AZ)}
</Text>
);
const Button = (ButtonNativeModule).Button;
items2[3] = (
<Button
onPress={function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
/>
);
return (
<BottomSheet startExpanded onDismiss={function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}}>
<View style={styles.bottomSheetWrapper}>
<View {...viewBindingProps}>
{items2}
</View>
</View>
</View>
</BottomSheet>
);
}
</BottomSheet>
);
function VoiceControlsToggleActionSheetOnLayout({nativeEvent}) { // fn#118264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:1105, owner: VoiceControlsToggleActionSheet.onLayout, offset: 0x024d3878, size: 55 bytes, params: 2, frame: 12
const width = nativeEvent.layout.width;
env0_1(env0_2 ? width / 2 : width);
}
}
function VoiceControlsToggleActionSheetOnLayout({nativeEvent}) { // fn#118264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:1105, owner: VoiceControlsToggleActionSheet.onLayout, offset: 0x024d3878, size: 55 bytes, params: 2, frame: 12
const width = nativeEvent.layout.width;
env0_1(env0_2 ? width / 2 : width);
}
global.__d(_fun118260, 15451, [57, 31, 27, 4502, 1376, 33, 4501, 697, 8750, 566, 6275, 9543, 4573, 1244, 4578,
2]) /* metro module 15451, dependencies: [57, 31, 27, 4502, 1376, 33, 4501, 697, 8750, 566, 6275, 9543, 4573, 1244, 4578, 2] */;
@@ -1,43 +1,47 @@
/* Metro module 10710; source: modules/activities/native/WebViewContext.tsx; dependencies: [57, 31, 27, 33, 4501, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun82320(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:6, offset: 0x01ef3317, size: 244 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_3 = value2.jsx;
const env0_4 = value2.jsxs;
let value = ReactModule;
value = value.createContext(0);
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({placeholderWebView: {'width': 2,
const env0_6 = (CreateStylesModule).createStyles({placeholderWebView: {'width': 2,
'height': 2, 'position': 'absolute', 'opacity': 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/WebViewContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/WebViewContext.tsx');
exports.WebViewContext = value;
exports.WebViewContextProvider = WebViewContextProvider;
}
function WebViewContextProvider({children}) { // fn#82321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:395, offset: 0x01ef340b, size: 176 bytes, params: 2, frame: 19
const styles = useStyles();
const binding = env0_1;
const value3 = Module00057(binding.useState(0), 2);
const property = value3[0];
const value4 = binding.useCallback(_fun82322, [value3[1]]);
const Provider = env0_5.Provider;
return (
<Provider value={property}>
<View
style={styles.placeholderWebView}
ref={value4}
pointerEvents="none"
/>
{children}
</Provider>
);
function _fun82322(a0) { // fn#82322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:507, offset: 0x01ef34bb, size: 30 bytes, params: 2, frame: 11
if (a0) {
Module00057(a0._nativeTag);
}
}
function WebViewContextProvider({children}) { // fn#82321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:395, offset: 0x01ef340b, size: 176 bytes, params: 2, frame: 19
const styles = useStyles();
const binding = env0_1;
const value3 = env0_0(binding.useState(0), 2);
const property = value3[0];
const value4 = binding.useCallback(_fun82322, [value3[1]]);
const Provider = env0_5.Provider;
return (
<Provider value={property}>
<View
style={styles.placeholderWebView}
ref={value4}
pointerEvents="none"
/>
{children}
</Provider>
);
}
function _fun82322(a0) { // fn#82322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:507, offset: 0x01ef34bb, size: 30 bytes, params: 2, frame: 11
if (a0) {
env0_0(a0._nativeTag);
}
}
global.__d(_fun82320, 10710, [57, 31, 27, 33, 4501,
2]) /* metro module 10710, dependencies: [57, 31, 27, 33, 4501, 2] */;
@@ -1,24 +1,27 @@
/* Metro module 15362; source: modules/activities/native/applyActivityOrientationLock.tsx; dependencies: [4237, 10703, 7717, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4237 */
import * as GetDefaultOrientationLockStateModule from './getDefaultOrientationLockState.tsx'; /* Metro dependency 10703 */
function _fun117442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:6, offset: 0x024b320f, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/applyActivityOrientationLock.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/applyActivityOrientationLock.tsx');
exports.default = applyActivityOrientationLock;
}
function applyActivityOrientationLock(a0) { // fn#117443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:229, offset: 0x024b3284, size: 208 bytes, params: 2, frame: 15
const getDefaultOrientationLockStateModule = require(10703) /* metro dependency 10703: getDefaultOrientationLockState */;
const getIsTabletActivitySurface = getDefaultOrientationLockStateModule.getIsTabletActivitySurface;
if (!Reflect.apply(getIsTabletActivitySurface, getDefaultOrientationLockStateModule, [])) {
if (OrientationLockState.UNLOCKED === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).unlockOrientation({unlockAfterRotatingToPreviousLock: true});
} else if (OrientationLockState.PORTRAIT === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', true);
} else if (OrientationLockState.LANDSCAPE === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('LANDSCAPE', true);
function applyActivityOrientationLock(a0) { // fn#117443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:229, offset: 0x024b3284, size: 208 bytes, params: 2, frame: 15
const getIsTabletActivitySurface = GetDefaultOrientationLockStateModule.getIsTabletActivitySurface;
if (!Reflect.apply(getIsTabletActivitySurface, GetDefaultOrientationLockStateModule, [])) {
if (OrientationLockState.UNLOCKED === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).unlockOrientation({unlockAfterRotatingToPreviousLock: true});
} else if (OrientationLockState.PORTRAIT === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', true);
} else if (OrientationLockState.LANDSCAPE === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('LANDSCAPE', true);
}
}
}
}
global.__d(_fun117442, 15362, [4237, 10703, 7717, 2]) /* metro module 15362, dependencies: [4237, 10703, 7717, 2] */;
@@ -1,162 +1,56 @@
/* Metro module 10714; source: modules/activities/native/createWebviewHtmlFile.tsx; dependencies: [5, 27, 477, 1279, 1216, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun82335(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:6, offset: 0x01ef3893, size: 186 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(27) /* metro dependency 27 */).NativeModules;
const safeAreasUpdateListenerJs = function({iframeWindowVarName, isIframeLoadedVarName}) {
return '\n function updateSafeAreaVars(insets) {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', `${insets.left}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', `${insets.right}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', `${insets.top}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', `${insets.bottom}px`);\n " + iframeWindowVarName + ".dispatchEvent(new Event('resize'));\n // Force redraw\n iframeDoc.documentElement.offsetHeight;\n }\n " + iframeWindowVarName + ".addEventListener('message', function (e) {\n const messageData = e.data;\n const {type, data} = messageData;\n if (type === 'safeAreaUpdateEvent') {\n const {insets} = data;\n if (" + isIframeLoadedVarName + ') {\n updateSafeAreaVars(insets);\n } else {\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n updateSafeAreaVars(insets);\n });\n }\n }\n });\n';
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/createWebviewHtmlFile.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/createWebviewHtmlFile.tsx');
exports.default = function() {
return _createWebviewHtmlFile.apply(this, arguments);
};
exports.createInjectedJavascriptForIOS = createInjectedJavascriptForIOS;
}
function _createWebviewHtmlFile() { // fn#82336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1868, offset: 0x01ef394d, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun82338).apply(this, arguments);
}
function safeAreaInitJs({insets, iframeWindowVarName, isIframeLoadedVarName}) { // fn#82340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:147, offset: 0x01ef3c2d, size: 133 bytes, params: 2, frame: 36
const r0 = insets ?? ({'top': 0, 'bottom': 0, 'left': 0, 'right': 0});
return '\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', '" + r0.left + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', '" + r0.right + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', '" + r0.top + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', '" + r0.bottom + "px');\n " + isIframeLoadedVarName + ' = true;\n });\n';
}
function createInjectedJavascriptForIOS(a0) { // fn#82343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:4771, offset: 0x01ef3d04, size: 98 bytes, params: 2, frame: 16
return '\nvar iframeWindow = window;\nvar isIframeLoaded = false;\n' + safeAreaInitJs({'insets': null,
'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded',
insets: a0}) + '\n' + safeAreasUpdateListenerJs({'iframeWindowVarName': 'iframeWindow',
'isIframeLoadedVarName': 'isIframeLoaded'}) + '\n';
}
async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1935, offset: 0x01ef3993, size: 346 bytes, params: 2, frame: 23
var r2;
var binding;
var binding2;
var property;
var value7;
var isAndroid;
var isAndroid2;
var DCDFileManager;
var writeFile;
var value8;
var value9;
var value10;
var binding3;
var value11;
var value12;
var binding4;
var value13;
var value14;
var value15;
var value16;
var error;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
const value5 = _fun82339({iFrameUri: iFrameUri, iFrameSandboxAttributes: iFrameSandboxAttributes,
referrerPolicy: referrerPolicy, insets: insets,
messageForDisallowedNavigationError: messageForDisallowedNavigationError});
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding2[2];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value7 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
isAndroid = value7.isAndroid;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
isAndroid2 = Reflect.apply(isAndroid, value7, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (isAndroid2) {
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding3[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value11 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value12 = value11 == null;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value12) {
r2 = value;
} else {
function _createWebviewHtmlFile() { // fn#82336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1868, offset: 0x01ef394d, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun82338).apply(this, arguments);
async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1935, offset: 0x01ef3993, size: 346 bytes, params: 2, frame: 23
var r2;
var binding;
var binding2;
var property;
var value7;
var isAndroid;
var isAndroid2;
var DCDFileManager;
var writeFile;
var value8;
var value9;
var value10;
var binding3;
var value11;
var value12;
var binding4;
var value13;
var value14;
var value15;
var value16;
var error;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
const value5 = _fun82339({iFrameUri: iFrameUri, iFrameSandboxAttributes: iFrameSandboxAttributes,
referrerPolicy: referrerPolicy, insets: insets,
messageForDisallowedNavigationError: messageForDisallowedNavigationError});
try {
binding = env2_1;
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
@@ -164,7 +58,7 @@ async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, in
return null;
}
try {
binding4 = env2_2;
binding2 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
@@ -172,7 +66,7 @@ async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, in
return null;
}
try {
property = binding4[3];
property = binding2[2];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
@@ -180,7 +74,7 @@ async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, in
return null;
}
try {
value13 = binding(property);
value7 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
@@ -188,7 +82,7 @@ async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, in
return null;
}
try {
writeFile = value13.writeFile;
isAndroid = value7.isAndroid;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
@@ -196,7 +90,149 @@ async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, in
return null;
}
try {
value14 = Reflect.apply(writeFile, value13, ['cache', 'discord_activity_data/activity.html', value5,
isAndroid2 = Reflect.apply(isAndroid, value7, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (isAndroid2) {
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding3[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value11 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value12 = value11 == null;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value12) {
r2 = value;
} else {
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding4 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding4[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value13 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
writeFile = value13.writeFile;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value14 = Reflect.apply(writeFile, value13, ['cache', 'discord_activity_data/activity.html', value5,
'utf8']);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
r2 = value14;
}
await r2;
try {
value15 = undefined;
value16 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value16) {
return value15;
}
return value15;
}
try {
binding = env2_4;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
DCDFileManager = binding.DCDFileManager;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
writeFile = DCDFileManager.writeFile;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value8 = Reflect.apply(writeFile, DCDFileManager, ['cache', 'discord_activity_data/activity.html', value5,
'utf8']);
} catch (error) {
binding = env2_1;
@@ -204,98 +240,66 @@ async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, in
value.captureException(error);
return null;
}
r2 = value14;
await value8;
try {
value9 = undefined;
value10 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value10) {
}
return value9;
function _fun82339({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:2097, offset: 0x01ef3aed, size: 320 bytes, params: 2, frame: 29
var r7;
var r8;
var value4;
let value = environment.__proto__.__proto__.__proto__;
let binding = env3_0;
const isAndroid2 = binding(env3_2[2]).isAndroid();
const value3 = '';
if (isAndroid2) {
binding = env3_5;
value4 = binding({'insets': null, 'iframeWindowVarName': 'iframeWindow',
'isIframeLoadedVarName': 'isIframeLoaded',
insets: insets});
binding = env3_6;
value = binding({'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded'});
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n var isIframeLoaded = false;\n ' + value4 + '\n ' + value + '\n </script>\n ';
r7 = value;
} else {
r7 = value3;
}
if (messageForDisallowedNavigationError != null) {
value = '\n ' + 'iframeWindow' + ".addEventListener('beforeunload', function (e) {\n window.ReactNativeWebView.postMessage('" + messageForDisallowedNavigationError + "');\n e.preventDefault();\n });\n";
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n ' + value + '\n </script>\n ';
r8 = value;
} else {
r8 = value3;
}
return '\n <html>\n <head>\n <style>\n body {\n padding: 0;\n margin: 0;\n width: 100vw;\n min-height: 100vh; /* This keeps a small white gap at the bottom of the screen, the options below help prevent this. */\n min-height: -moz-available; /* See: https://ilxanlar.medium.com/you-shouldnt-rely-on-css-100vh-and-here-s-why-1b4721e74487 for more info */\n min-height: -webkit-fill-available;\n min-height: fill-available;\n }\n </style>\n <meta\n name="viewport"\n content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"\n />\n </head>\n <body>\n <script type="text/javascript">\n window.addEventListener(\'message\', e => {\n window.ReactNativeWebView.postMessage(JSON.stringify(e.data));\n });\n </script>\n <iframe id="activityFrame" width="100%" height="100%" src="' + iFrameUri + '" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen sandbox="' + iFrameSandboxAttributes + '" referrerPolicy="' + referrerPolicy + '">\n </iframe>\n ' + r7 + '\n ' + r8 + '\n </body>\n </html>\n';
}
}
await r2;
try {
value15 = undefined;
value16 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value16) {
return value15;
}
return value15;
}
try {
binding = env2_4;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
function createInjectedJavascriptForIOS(a0) { // fn#82343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:4771, offset: 0x01ef3d04, size: 98 bytes, params: 2, frame: 16
return '\nvar iframeWindow = window;\nvar isIframeLoaded = false;\n' + safeAreaInitJs({'insets': null,
'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded',
insets: a0}) + '\n' + safeAreasUpdateListenerJs({'iframeWindowVarName': 'iframeWindow',
'isIframeLoadedVarName': 'isIframeLoaded'}) + '\n';
}
try {
DCDFileManager = binding.DCDFileManager;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
writeFile = DCDFileManager.writeFile;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value8 = Reflect.apply(writeFile, DCDFileManager, ['cache', 'discord_activity_data/activity.html', value5,
'utf8']);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
await value8;
try {
value9 = undefined;
value10 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value10) {
}
return value9;
}
function _fun82339({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:2097, offset: 0x01ef3aed, size: 320 bytes, params: 2, frame: 29
var r7;
var r8;
var value4;
let value = environment.__proto__.__proto__.__proto__;
let binding = env3_0;
const isAndroid2 = binding(env3_2[2]).isAndroid();
const value3 = '';
if (isAndroid2) {
binding = env3_5;
value4 = binding({'insets': null, 'iframeWindowVarName': 'iframeWindow',
'isIframeLoadedVarName': 'isIframeLoaded',
insets: insets});
binding = env3_6;
value = binding({'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded'});
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n var isIframeLoaded = false;\n ' + value4 + '\n ' + value + '\n </script>\n ';
r7 = value;
} else {
r7 = value3;
}
if (messageForDisallowedNavigationError != null) {
value = '\n ' + 'iframeWindow' + ".addEventListener('beforeunload', function (e) {\n window.ReactNativeWebView.postMessage('" + messageForDisallowedNavigationError + "');\n e.preventDefault();\n });\n";
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n ' + value + '\n </script>\n ';
r8 = value;
} else {
r8 = value3;
}
return '\n <html>\n <head>\n <style>\n body {\n padding: 0;\n margin: 0;\n width: 100vw;\n min-height: 100vh; /* This keeps a small white gap at the bottom of the screen, the options below help prevent this. */\n min-height: -moz-available; /* See: https://ilxanlar.medium.com/you-shouldnt-rely-on-css-100vh-and-here-s-why-1b4721e74487 for more info */\n min-height: -webkit-fill-available;\n min-height: fill-available;\n }\n </style>\n <meta\n name="viewport"\n content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"\n />\n </head>\n <body>\n <script type="text/javascript">\n window.addEventListener(\'message\', e => {\n window.ReactNativeWebView.postMessage(JSON.stringify(e.data));\n });\n </script>\n <iframe id="activityFrame" width="100%" height="100%" src="' + iFrameUri + '" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen sandbox="' + iFrameSandboxAttributes + '" referrerPolicy="' + referrerPolicy + '">\n </iframe>\n ' + r7 + '\n ' + r8 + '\n </body>\n </html>\n';
function safeAreaInitJs({insets, iframeWindowVarName, isIframeLoadedVarName}) { // fn#82340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:147, offset: 0x01ef3c2d, size: 133 bytes, params: 2, frame: 36
const r0 = insets ?? ({'top': 0, 'bottom': 0, 'left': 0, 'right': 0});
return '\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', '" + r0.left + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', '" + r0.right + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', '" + r0.top + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', '" + r0.bottom + "px');\n " + isIframeLoadedVarName + ' = true;\n });\n';
}
global.__d(_fun82335, 10714, [5, 27, 477, 1279, 1216,
2]) /* metro module 10714, dependencies: [5, 27, 477, 1279, 1216, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 10705; source: modules/activities/native/doesOrientationMatchLockState.tsx; dependencies: [4237, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4237 */
function _fun82264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:6, offset: 0x01ef13e3, size: 109 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/doesOrientationMatchLockState.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/doesOrientationMatchLockState.tsx');
exports.default = doesOrientationMatchLockState;
function doesOrientationMatchLockState(a0, a1) { // fn#82265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:230, offset: 0x01ef1450, size: 89 bytes, params: 3, frame: 5
const value = a0;
let r0 = a1 == null || a1 === OrientationLockState.UNLOCKED;
r0 = !r0 ? !value && a1 === OrientationLockState.PORTRAIT : r0;
r0 = !r0 ? value && a1 === OrientationLockState.LANDSCAPE : r0;
return r0;
}
}
function doesOrientationMatchLockState(a0, a1) { // fn#82265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:230, offset: 0x01ef1450, size: 89 bytes, params: 3, frame: 5
const value = a0;
let r0 = a1 == null || a1 === OrientationLockState.UNLOCKED;
r0 = !r0 ? !value && a1 === OrientationLockState.PORTRAIT : r0;
r0 = !r0 ? value && a1 === OrientationLockState.LANDSCAPE : r0;
return r0;
}
global.__d(_fun82264, 10705, [4237, 2]) /* metro module 10705, dependencies: [4237, 2] */;
@@ -1,43 +1,48 @@
/* Metro module 10703; source: modules/activities/native/getDefaultOrientationLockState.tsx; dependencies: [4092, 1581, 694, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MetaQuestUtilsAndroidModule from '../../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
import * as DeviceUtilsModule from '../../../utils/native/DeviceUtils.tsx'; /* Metro dependency 4092 */
function _fun82245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:6, offset: 0x01ef080f, size: 184 bytes, params: 8, frame: 20
const closure = getIsTabletActivitySurface;
const closure2 = getDefaultOrientationLockState;
const getIsTabletActivitySurface2 = getIsTabletActivitySurface;
const getDefaultOrientationLockState2 = getDefaultOrientationLockState;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4092) /* metro dependency 4092: DeviceUtils */).isIpadOS();
const env0_3 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/getDefaultOrientationLockState.tsx');
exports.getIsTabletActivitySurface = closure;
const env0_2 = (DeviceUtilsModule).isIpadOS();
const env0_3 = (MetaQuestUtilsAndroidModule).isMetaQuest();
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/getDefaultOrientationLockState.tsx');
exports.getIsTabletActivitySurface = getIsTabletActivitySurface2;
exports.setOrientationLockState = setOrientationLockState;
exports.getDefaultOrientationLockState = closure2;
}
function getIsTabletActivitySurface() { // fn#82246, offset: 0x01ef08c7, size: 16 bytes, params: 1, frame: 3
return env0_2 || env0_3;
}
function getDefaultOrientationLockState(a0) { // fn#82247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:191, offset: 0x01ef08d7, size: 68 bytes, params: 2, frame: 12
var value;
var getIsTabletActivitySurfaceBinding;
var isTabletActivitySurfaceBinding;
var embeddedActivityConfig;
var value3;
if (a0 != null) {
getIsTabletActivitySurfaceBinding = getIsTabletActivitySurface;
value = undefined;
isTabletActivitySurfaceBinding = getIsTabletActivitySurfaceBinding();
embeddedActivityConfig = a0.embeddedActivityConfig;
value3 = embeddedActivityConfig == null;
return isTabletActivitySurfaceBinding ? value3 ? value : embeddedActivityConfig.tablet_default_orientation_lock_state : value3 ? value : embeddedActivityConfig.default_orientation_lock_state;
exports.getDefaultOrientationLockState = getDefaultOrientationLockState2;
function getIsTabletActivitySurface() { // fn#82246, offset: 0x01ef08c7, size: 16 bytes, params: 1, frame: 3
return env0_2 || env0_3;
}
}
function setOrientationLockState(a0, a1) { // fn#82248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:622, offset: 0x01ef091b, size: 95 bytes, params: 3, frame: 14
const r3 = a1 ?? getDefaultOrientationLockState(a0);
if (r3 != null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
applicationId: a0.id, lockState: r3});
function getDefaultOrientationLockState(a0) { // fn#82247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:191, offset: 0x01ef08d7, size: 68 bytes, params: 2, frame: 12
var value;
var getIsTabletActivitySurfaceBinding;
var isTabletActivitySurfaceBinding;
var embeddedActivityConfig;
var value3;
if (a0 != null) {
getIsTabletActivitySurfaceBinding = getIsTabletActivitySurface;
value = undefined;
isTabletActivitySurfaceBinding = getIsTabletActivitySurfaceBinding();
embeddedActivityConfig = a0.embeddedActivityConfig;
value3 = embeddedActivityConfig == null;
return isTabletActivitySurfaceBinding ? value3 ? value : embeddedActivityConfig.tablet_default_orientation_lock_state : value3 ? value : embeddedActivityConfig.default_orientation_lock_state;
}
}
function setOrientationLockState(a0, a1) { // fn#82248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:622, offset: 0x01ef091b, size: 95 bytes, params: 3, frame: 14
const r3 = a1 ?? getDefaultOrientationLockState(a0);
if (r3 != null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
applicationId: a0.id, lockState: r3});
}
}
}
global.__d(_fun82245, 10703, [4092, 1581, 694, 2]) /* metro module 10703, dependencies: [4092, 1581, 694, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 8071; source: modules/activities/native/getPostMessageJavaScript.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8249:6, offset: 0x01b9a96d, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/getPostMessageJavaScript.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/getPostMessageJavaScript.tsx');
exports.default = function(a0) {
var JSON = global.JSON;
return "\n (function() {\n const iFrame = document.getElementById('activityFrame');\n iFrame.contentWindow.postMessage(" + JSON.stringify(a0) + ", '*');\n })()\n ";
};
}
global.__d(_fun64075, 8071, [2]) /* metro module 8071, dependencies: [2] */;
@@ -1,88 +1,92 @@
/* Metro module 12705; source: modules/activities/native/openActivityDMLauncher.tsx; dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AppLauncherNativeConstantsModule from '../../app_launcher/native/AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
function _fun97348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:6, offset: 0x0217cb3e, size: 151 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherRouteName;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/openActivityDMLauncher.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/openActivityDMLauncher.tsx');
exports.default = function() {
return _openActivityDMLauncher.apply(this, arguments);
};
}
function _openActivityDMLauncher() { // fn#97349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:137, offset: 0x0217cbd5, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun97351).apply(this, arguments);
}
async function _fun97351(a0, a1, a2, a3) { // fn#97351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:206, offset: 0x0217cc1b, size: 504 bytes, params: 5, frame: 25
var bestActiveInput;
var openCustomKeyboard;
let value = a4;
if (false) {
return undefined;
}
const value4 = undefined;
const r7 = value !== value4 ? value : false;
await value4;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value6 = binding(env2_2[2]);
await value6.fetchApplication(a0);
const value7 = undefined;
if (false) {
return value7;
}
const bot = value7.bot;
const id = bot == null ? value4 : bot.id;
if (value7 != null) {
if (id == null) {
return value4;
}
var value9 = env2_1(env2_2[3]);
var openPrivateChannel = value9.openPrivateChannel;
var object2 = {recipientIds: id};
await Reflect.apply(openPrivateChannel, value9, [object2]);
var value10 = undefined;
if (false) {
return value10;
}
var value12 = env2_0(env2_2[4]);
var getCustomActivityLinkParams = value12.getCustomActivityLinkParams;
await Reflect.apply(getCustomActivityLinkParams, value12, [a0, a3, a2]);
var value13 = undefined;
if (false) {
return value13;
}
var customId = value13.customId;
if (r7) {
bestActiveInput = env2_0(env2_2[8]).getBestActiveInput();
if (bestActiveInput != null) {
openCustomKeyboard = bestActiveInput.openCustomKeyboard;
object2 = {};
object2.type = env2_0(env2_2[9]).KeyboardTypes.APP_LAUNCHER;
object2.context = {application: value7, initialRouteName: env2_4.APPLICATION_VIEW, customId: customId,
referrerId: a1};
Reflect.apply(openCustomKeyboard, bestActiveInput, [object2]);
function _openActivityDMLauncher() { // fn#97349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:137, offset: 0x0217cbd5, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun97351).apply(this, arguments);
async function _fun97351(a0, a1, a2, a3) { // fn#97351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:206, offset: 0x0217cc1b, size: 504 bytes, params: 5, frame: 25
var bestActiveInput;
var openCustomKeyboard;
let value = a4;
if (false) {
return undefined;
}
const value4 = undefined;
const r7 = value !== value4 ? value : false;
await value4;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value6 = binding(env2_2[2]);
await value6.fetchApplication(a0);
const value7 = undefined;
if (false) {
return value7;
}
const bot = value7.bot;
const id = bot == null ? value4 : bot.id;
if (value7 != null) {
if (id == null) {
return value4;
}
var value9 = env2_1(env2_2[3]);
var openPrivateChannel = value9.openPrivateChannel;
var object = {recipientIds: id};
await Reflect.apply(openPrivateChannel, value9, [object]);
var value10 = undefined;
if (false) {
return value10;
}
var value12 = env2_0(env2_2[4]);
var getCustomActivityLinkParams = value12.getCustomActivityLinkParams;
await Reflect.apply(getCustomActivityLinkParams, value12, [a0, a3, a2]);
var value13 = undefined;
if (false) {
return value13;
}
var customId = value13.customId;
if (r7) {
bestActiveInput = env2_0(env2_2[8]).getBestActiveInput();
if (bestActiveInput != null) {
openCustomKeyboard = bestActiveInput.openCustomKeyboard;
object = {};
object.type = env2_0(env2_2[9]).KeyboardTypes.APP_LAUNCHER;
object.context = {application: value7, initialRouteName: env2_4.APPLICATION_VIEW, customId: customId,
referrerId: a1};
Reflect.apply(openCustomKeyboard, bestActiveInput, [object]);
}
return value4;
}
binding = env2_1;
var binding2 = env2_2;
var value15 = binding(binding2[5]);
object = {targetApplicationId: a0, locationObject: {}, channelId: value10};
var ACTIVITY_BOOKMARK = binding(binding2[6]).ACTIVITY_BOOKMARK;
object.analyticsLocations = [ACTIVITY_BOOKMARK];
var CommandOrigin = env2_0(binding2[7]).CommandOrigin;
var ACTIVITY_BOOKMARK_EMBED = CommandOrigin.ACTIVITY_BOOKMARK_EMBED;
object.commandOrigin = ACTIVITY_BOOKMARK_EMBED;
object.referrerId = a1;
object.customId = customId;
await value15(object);
}
return value4;
}
binding = env2_1;
var binding2 = env2_2;
var value15 = binding(binding2[5]);
object2 = {targetApplicationId: a0, locationObject: {}, channelId: value10};
var ACTIVITY_BOOKMARK = binding(binding2[6]).ACTIVITY_BOOKMARK;
object2.analyticsLocations = [ACTIVITY_BOOKMARK];
var CommandOrigin = env2_0(binding2[7]).CommandOrigin;
var ACTIVITY_BOOKMARK_EMBED = CommandOrigin.ACTIVITY_BOOKMARK_EMBED;
object2.commandOrigin = ACTIVITY_BOOKMARK_EMBED;
object2.referrerId = a1;
object2.customId = customId;
await value15(object2);
}
return value4;
}
global.__d(_fun97348, 12705, [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583,
2]) /* metro module 12705, dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */;
@@ -1,35 +1,40 @@
/* Metro module 10661; source: modules/activities/native/openIgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4496, 10662, 1962, 2] */
import AlertActionCreators from '../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
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 */
function _fun81993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:6, offset: 0x01ee68bf, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/openIgnoreThermalStateAlert.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/openIgnoreThermalStateAlert.tsx');
exports.openIgnoreThermalStateAlert = openIgnoreThermalStateAlert;
function openIgnoreThermalStateAlert(a0) { // fn#81994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:239, offset: 0x01ee6949, size: 61 bytes, params: 2, frame: 13
const env0_0 = a0;
AlertActionCreators.openLazy({importer: importer_81995});
function openIgnoreThermalStateAlertImporter() { // fn#81995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:306, owner: openIgnoreThermalStateAlert.importer, offset: 0x01ee6986, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(dependencyMap[4]);
value = value(dependencyMap[3], dependencyMap.paths);
return value.then(function({IgnoreThermalStateAlert}) {
return _fun81997;
});
function _fun81996({IgnoreThermalStateAlert}) { // fn#81996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:338, offset: 0x01ee69c6, size: 24 bytes, params: 2, frame: 2
return _fun81997;
function _fun81997(a0) { // fn#81997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:369, offset: 0x01ee69de, size: 52 bytes, params: 2, frame: 14
return <IgnoreThermalStateAlert {...a0} {...{['onConfirm']: env2_0}} />;
}
}
}
}
}
function openIgnoreThermalStateAlert(a0) { // fn#81994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:239, offset: 0x01ee6949, size: 61 bytes, params: 2, frame: 13
const env0_0 = a0;
const value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_81995});
}
function openIgnoreThermalStateAlertImporter() { // fn#81995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:306, owner: openIgnoreThermalStateAlert.importer, offset: 0x01ee6986, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(dependencyMap[4]);
value = value(dependencyMap[3], dependencyMap.paths);
return value.then(function({IgnoreThermalStateAlert}) {
return _fun81997;
});
}
function _fun81996({IgnoreThermalStateAlert}) { // fn#81996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:338, offset: 0x01ee69c6, size: 24 bytes, params: 2, frame: 2
return _fun81997;
}
function _fun81997(a0) { // fn#81997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:369, offset: 0x01ee69de, size: 52 bytes, params: 2, frame: 14
return <IgnoreThermalStateAlert {...a0} {...{['onConfirm']: env2_0}} />;
}
global.__d(_fun81993, 10661, [31, 33, 4496, 10662, 1962,
2]) /* metro module 10661, dependencies: [31, 33, 4496, 10662, 1962, 2] */;
Loaded 100 of 22448 files, more files were not shown because too many files have changed in this diff. Show more