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] */;