Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,218 @@
|
||||
/* Metro module 12992; source: modules/a11y/AccessibilityActionCreators.tsx; dependencies: [4502, 661, 3832, 670, 694, 683, 7896, 2] */
|
||||
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');
|
||||
exports.setFontSize = setFontSize;
|
||||
exports.setMessageGroupSpacing = setMessageGroupSpacing;
|
||||
exports.setZoom = setZoom;
|
||||
exports.resetToDefault = resetToDefault;
|
||||
exports.enableKeyboardMode = function() {
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'ACCESSIBILITY_KEYBOARD_MODE_ENABLE'});
|
||||
var defaultImport2 = importDefault(dependencyMap[5]);
|
||||
var KEYBOARD_MODE_TOGGLED = AnalyticEvents.KEYBOARD_MODE_TOGGLED;
|
||||
defaultImport2.track(KEYBOARD_MODE_TOGGLED, {enabled: true});
|
||||
};
|
||||
exports.disableKeyboardMode = function() {
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'ACCESSIBILITY_KEYBOARD_MODE_DISABLE'});
|
||||
var defaultImport2 = importDefault(dependencyMap[5]);
|
||||
var KEYBOARD_MODE_TOGGLED = AnalyticEvents.KEYBOARD_MODE_TOGGLED;
|
||||
defaultImport2.track(KEYBOARD_MODE_TOGGLED, {enabled: false});
|
||||
};
|
||||
exports.toggleDesaturateUserColors = toggleDesaturateUserColors;
|
||||
exports.toggleColorblindMode = toggleColorblindMode;
|
||||
exports.forcedColorsModalSeen = forcedColorsModalSeen;
|
||||
exports.keyboardNavigationExplainerModalSeen = keyboardNavigationExplainerModalSeen;
|
||||
exports.systemPrefersReducedMotionChanged = systemPrefersReducedMotionChanged;
|
||||
exports.systemPrefersCrossfadesChanged = systemPrefersCrossfadesChanged;
|
||||
exports.setLowContrastMode = setLowContrastMode;
|
||||
exports.setSaturation = setSaturation;
|
||||
exports.setPrefersReducedMotion = setPrefersReducedMotion;
|
||||
exports.setSyncForcedColors = setSyncForcedColors;
|
||||
exports.systemColorPreferencesChanged = systemColorPreferencesChanged;
|
||||
exports.systemPrefersContrastChanged = systemPrefersContrastChanged;
|
||||
exports.setAlwaysShowLinkDecorations = setAlwaysShowLinkDecorations;
|
||||
exports.setEnableCustomCursor = setEnableCustomCursor;
|
||||
exports.setRoleStyle = function(a0) {
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'ACCESSIBILITY_SET_ROLE_STYLE', roleStyle: a0});
|
||||
var defaultImport2 = importDefault(dependencyMap[5]);
|
||||
var ROLE_STYLE_SETTING_UPDATED = AnalyticEvents.ROLE_STYLE_SETTING_UPDATED;
|
||||
defaultImport2.track(ROLE_STYLE_SETTING_UPDATED, {role_style: a0});
|
||||
};
|
||||
exports.setOfficialMessageStyle = function(a0) {
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'ACCESSIBILITY_SET_OFFICIAL_MESSAGE_STYLE',
|
||||
officialMessageStyle: a0});
|
||||
var defaultImport2 = importDefault(dependencyMap[5]);
|
||||
var OFFICIAL_MESSAGE_STYLE_SETTING_UPDATED = AnalyticEvents.OFFICIAL_MESSAGE_STYLE_SETTING_UPDATED;
|
||||
defaultImport2.track(OFFICIAL_MESSAGE_STYLE_SETTING_UPDATED, {official_message_style: a0});
|
||||
};
|
||||
exports.setDisplayNameStylesEnabled = setDisplayNameStylesEnabled;
|
||||
exports.toggleSubmitButton = toggleSubmitButton;
|
||||
exports.toggleSyncProfileThemeWithUserTheme = toggleSyncProfileThemeWithUserTheme;
|
||||
exports.setContrast = setContrast;
|
||||
exports.setContrastMode = setContrastMode;
|
||||
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
|
||||
(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 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
|
||||
(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
|
||||
(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
|
||||
(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
|
||||
(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
|
||||
(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
|
||||
(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
|
||||
(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
|
||||
(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
|
||||
(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) {
|
||||
(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
|
||||
(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}});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 12845; source: modules/a11y/AccessibilityConstants.tsx; dependencies: [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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,817 @@
|
||||
/* Metro module 4502; source: modules/a11y/AccessibilityStore.tsx; dependencies: [29, 6, 7, 15, 17, 18, 1310, 1348, 661, 4503, 4488, 3829, 566, 587, 4002, 694, 2] */
|
||||
function _fun38454(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:6, offset: 0x010c1000, size: 1058 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fontScale'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const Accessibility = value.Accessibility;
|
||||
const env0_13 = value.ThemeTypes;
|
||||
value = require(4503) /* metro dependency 4503: MessageConstants */;
|
||||
const env0_14 = value.MESSAGE_GROUP_SPACING;
|
||||
const env0_15 = value.DEFAULT_COMPACT_SPACING;
|
||||
const env0_16 = value.DEFAULT_COZY_SPACING;
|
||||
object4 = {DEFAULT: 'default', HIGH: 'high'};
|
||||
const object5 = {FLEXIBLE: 'flexible', CONDENSED: 'condensed', HIDDEN: 'hidden'};
|
||||
const object6 = {'fontSize': null, 'zoom': null, 'keyboardModeEnabled': false, 'contrastMode': null,
|
||||
'colorblindMode': false, 'lowContrastMode': false, 'saturation': 1, 'contrast': 1,
|
||||
'desaturateUserColors': false, 'forcedColorsModalSeen': false, 'keyboardNavigationExplainerModalSeen': false,
|
||||
'messageGroupSpacing': null, 'systemPrefersReducedMotion': 'no-preference', 'systemPrefersCrossfades': false,
|
||||
'prefersReducedMotion': 'auto', 'systemForcedColors': 'none', 'syncForcedColors': true,
|
||||
'systemPrefersContrast': 'no-preference', 'alwaysShowLinkDecorations': false, 'roleStyle': 'username',
|
||||
'officialMessageStyle': 'default', 'officialMessageStyleExplicitlySet': false, 'displayNameStylesEnabled': true,
|
||||
'submitButtonEnabled': false, 'syncProfileThemeWithUserTheme': false, 'enableCustomCursor': true,
|
||||
'switchIconsEnabled': false, 'appsButtonEnabled': true};
|
||||
const FONT_SIZE_DEFAULT = Accessibility.FONT_SIZE_DEFAULT;
|
||||
object6.fontSize = FONT_SIZE_DEFAULT;
|
||||
const ZOOM_DEFAULT = Accessibility.ZOOM_DEFAULT;
|
||||
object6.zoom = ZOOM_DEFAULT;
|
||||
const DEFAULT = object4.DEFAULT;
|
||||
object6.contrastMode = DEFAULT;
|
||||
const FLEXIBLE = object5.FLEXIBLE;
|
||||
object6.expressionPickerFormat = FLEXIBLE;
|
||||
object6.condensePickerWhenNarrow = true;
|
||||
object6.emojiButtonEnabled = true;
|
||||
object6.gifButtonEnabled = true;
|
||||
object6.stickerButtonEnabled = true;
|
||||
const env0_21 = {12: 'font-size-12', 14: 'font-size-14', 15: 'font-size-15', 16: 'font-size-16', 18: 'font-size-18',
|
||||
20: 'font-size-20', 24: 'font-size-24'};
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
value = _fun38459(DeviceSettingsStore);
|
||||
value.displayName = 'AccessibilityStore';
|
||||
value.persistKey = 'AccessibilityStore';
|
||||
value.migrations = [_fun38505, _fun38506, function(a0) {
|
||||
var r2;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r2);
|
||||
object['darkSidebar'] = false;
|
||||
return object;
|
||||
}, function(a0) {
|
||||
var r2;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r2);
|
||||
object['messageGroupSpacing'] = null;
|
||||
return object;
|
||||
}, function(a0) {
|
||||
var r2;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r2);
|
||||
object['systemPrefersReducedMotion'] = 'no-preference';
|
||||
object['prefersReducedMotion'] = 'auto';
|
||||
return object;
|
||||
}, _fun38510, function(a0) {
|
||||
var r2;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r2);
|
||||
object['disableVoiceBackgrounds'] = false;
|
||||
return object;
|
||||
}, function(a0) {
|
||||
var error;
|
||||
try {
|
||||
delete a0.disableVoiceBackgrounds;
|
||||
} catch (error) {
|
||||
}
|
||||
return a0;
|
||||
}, function(a0) {
|
||||
var error;
|
||||
try {
|
||||
delete a0.hideGuildTags;
|
||||
} catch (error) {
|
||||
}
|
||||
return a0;
|
||||
}, function(a0) {
|
||||
var r2;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r2);
|
||||
object['enableCustomCursor'] = true;
|
||||
return object;
|
||||
}, _fun38515];
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{ACCESSIBILITY_SET_FONT_SIZE: ACCESSIBILITY_SET_FONT_SIZE, ACCESSIBILITY_SET_ZOOM: ACCESSIBILITY_SET_ZOOM,
|
||||
ACCESSIBILITY_RESET_TO_DEFAULT: ACCESSIBILITY_RESET_TO_DEFAULT,
|
||||
ACCESSIBILITY_KEYBOARD_MODE_ENABLE: ACCESSIBILITY_KEYBOARD_MODE_ENABLE,
|
||||
ACCESSIBILITY_KEYBOARD_MODE_DISABLE: ACCESSIBILITY_KEYBOARD_MODE_DISABLE,
|
||||
ACCESSIBILITY_COLORBLIND_TOGGLE: ACCESSIBILITY_COLORBLIND_TOGGLE,
|
||||
ACCESSIBILITY_LOW_CONTRAST_TOGGLE: ACCESSIBILITY_LOW_CONTRAST_TOGGLE,
|
||||
ACCESSIBILITY_SET_SATURATION: ACCESSIBILITY_SET_SATURATION,
|
||||
ACCESSIBILITY_DESATURATE_ROLES_TOGGLE: ACCESSIBILITY_DESATURATE_ROLES_TOGGLE,
|
||||
ACCESSIBILITY_SYSTEM_COLOR_PREFERENCES_CHANGED: ACCESSIBILITY_SYSTEM_COLOR_PREFERENCES_CHANGED,
|
||||
ACCESSIBILITY_SYSTEM_PREFERS_CONTRAST_CHANGED: ACCESSIBILITY_SYSTEM_PREFERS_CONTRAST_CHANGED,
|
||||
ACCESSIBILITY_SYSTEM_PREFERS_REDUCED_MOTION_CHANGED: ACCESSIBILITY_SYSTEM_PREFERS_REDUCED_MOTION_CHANGED,
|
||||
ACCESSIBILITY_SYSTEM_PREFERS_CROSSFADES_CHANGED: ACCESSIBILITY_SYSTEM_PREFERS_CROSSFADES_CHANGED,
|
||||
ACCESSIBILITY_SET_PREFERS_REDUCED_MOTION: ACCESSIBILITY_SET_PREFERS_REDUCED_MOTION,
|
||||
ACCESSIBILITY_SET_SYNC_FORCED_COLORS: ACCESSIBILITY_SET_SYNC_FORCED_COLORS,
|
||||
ACCESSIBILITY_SET_ALWAYS_SHOW_LINK_DECORATIONS: ACCESSIBILITY_SET_ALWAYS_SHOW_LINK_DECORATIONS,
|
||||
ACCESSIBILITY_SET_ENABLE_CUSTOM_CURSOR: ACCESSIBILITY_SET_ENABLE_CUSTOM_CURSOR,
|
||||
ACCESSIBILITY_SET_ROLE_STYLE: ACCESSIBILITY_SET_ROLE_STYLE,
|
||||
ACCESSIBILITY_SET_OFFICIAL_MESSAGE_STYLE: ACCESSIBILITY_SET_OFFICIAL_MESSAGE_STYLE,
|
||||
ACCESSIBILITY_SET_DISPLAY_NAME_STYLES_ENABLED: ACCESSIBILITY_SET_DISPLAY_NAME_STYLES_ENABLED,
|
||||
ACCESSIBILITY_FORCED_COLORS_MODAL_SEEN: ACCESSIBILITY_FORCED_COLORS_MODAL_SEEN,
|
||||
KEYBOARD_NAVIGATION_EXPLAINER_MODAL_SEEN: KEYBOARD_NAVIGATION_EXPLAINER_MODAL_SEEN,
|
||||
ACCESSIBILITY_SET_MESSAGE_GROUP_SPACING: ACCESSIBILITY_SET_MESSAGE_GROUP_SPACING,
|
||||
ACCESSIBILITY_SUBMIT_BUTTON_TOGGLE: ACCESSIBILITY_SUBMIT_BUTTON_TOGGLE,
|
||||
ACCESSIBILITY_SYNC_PROFILE_THEME_WITH_USER_THEME_TOGGLE: ACCESSIBILITY_SYNC_PROFILE_THEME_WITH_USER_THEME_TOGGLE,
|
||||
ACCESSIBILITY_SET_CONTRAST: ACCESSIBILITY_SET_CONTRAST,
|
||||
ACCESSIBILITY_SET_CONTRAST_MODE: ACCESSIBILITY_SET_CONTRAST_MODE,
|
||||
ACCESSIBILITY_SET_SWITCH_ICONS_ENABLED: ACCESSIBILITY_SET_SWITCH_ICONS_ENABLED,
|
||||
ACCESSIBILITY_SET_CHAT_BAR_SETTINGS: ACCESSIBILITY_SET_CHAT_BAR_SETTINGS});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/AccessibilityStore.tsx');
|
||||
exports.default = value;
|
||||
exports.AccessibilityContrastMode = object4;
|
||||
exports.ExpressionPickerFormat = object5;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_38455() { // fn#38455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:330, offset: 0x010c1422, 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_38455_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function maybeApplyNoTextColorForLightCustomTheme() { // fn#38458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:1666, offset: 0x010c1480, size: 206 bytes, params: 1, frame: 17
|
||||
var r3;
|
||||
var r1;
|
||||
var r0;
|
||||
var value5;
|
||||
var setting;
|
||||
const officialMessageStyleExplicitlySet = env0_20.officialMessageStyleExplicitlySet;
|
||||
if (officialMessageStyleExplicitlySet) {
|
||||
r0 = !officialMessageStyleExplicitlySet;
|
||||
} else {
|
||||
r3 = env0_20.officialMessageStyle !== 'default' || ThemeStore.theme !== ThemeTypes.LIGHT;
|
||||
if (!r3) {
|
||||
value5 = undefined;
|
||||
setting = (require(3829) /* metro dependency 3829: UserSettings */).ClientThemeSettings.getSetting();
|
||||
r3 = !(setting.backgroundGradientPresetId != null || ((setting.customUserThemeSettings == null || setting.customUserThemeSettings.colors == null ? value5 : setting.customUserThemeSettings.colors.length) ?? 0) > 0);
|
||||
}
|
||||
if (r3) {
|
||||
r1 = !r3;
|
||||
} else {
|
||||
env0_20.officialMessageStyle = 'no_text_color';
|
||||
r1 = true;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun38459(a0) { // fn#38459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2094, offset: 0x010c154e, size: 1085 bytes, params: 2, frame: 16
|
||||
const closure = AccessibilityStore;
|
||||
env0_9(closure, a0);
|
||||
return env0_6(closure, [{key: 'initialize', value: value_38461}, {key: 'fontScale', get: get_38462},
|
||||
{key: 'fontSize', get: get_38463}, {key: 'isFontScaledUp', get: get_38464}, {key: 'isFontScaledDown',
|
||||
get: get_38465}, {key: 'fontScaleClass', get: get_38466}, {key: 'zoom', get: get_38467}, {key: 'isZoomedIn',
|
||||
get: get_38468}, {key: 'isZoomedOut', get: get_38469}, {key: 'keyboardModeEnabled', get: get_38470},
|
||||
{key: 'colorblindMode', get: get_38471}, {key: 'lowContrastMode', get: get_38472}, {key: 'saturation',
|
||||
get: get_38473}, {key: 'contrast', get: get_38474}, {key: 'desaturateUserColors', get: get_38475},
|
||||
{key: 'forcedColorsModalSeen', get: get_38476}, {key: 'keyboardNavigationExplainerModalSeen', get: get_38477},
|
||||
{key: 'messageGroupSpacing', get: get_38478}, {key: 'isMessageGroupSpacingIncreased', get: function() {
|
||||
var MessageDisplayCompact = require(dependencyMap[11]).MessageDisplayCompact;
|
||||
return this.messageGroupSpacing > (MessageDisplayCompact.getSetting() ? DEFAULT_COMPACT_SPACING : DEFAULT_COZY_SPACING);
|
||||
}}, {key: 'isMessageGroupSpacingDecreased', get: function() {
|
||||
var MessageDisplayCompact = require(dependencyMap[11]).MessageDisplayCompact;
|
||||
return this.messageGroupSpacing < (MessageDisplayCompact.getSetting() ? DEFAULT_COMPACT_SPACING : DEFAULT_COZY_SPACING);
|
||||
}}, {key: 'isSubmitButtonEnabled', get: get_38481}, {key: 'syncProfileThemeWithUserTheme', get: get_38482},
|
||||
{key: 'systemPrefersReducedMotion', get: get_38483}, {key: 'rawPrefersReducedMotion', get: get_38484},
|
||||
{key: 'useReducedMotion', get: get_38485}, {key: 'systemForcedColors', get: get_38486},
|
||||
{key: 'syncForcedColors', get: get_38487}, {key: 'useForcedColors', get: get_38488},
|
||||
{key: 'systemPrefersContrast', get: get_38489}, {key: 'systemPrefersCrossfades', get: get_38490},
|
||||
{key: 'alwaysShowLinkDecorations', get: get_38491}, {key: 'enableCustomCursor', get: get_38492},
|
||||
{key: 'roleStyle', get: get_38493}, {key: 'officialMessageStyle', get: get_38494},
|
||||
{key: 'displayNameStylesEnabled', get: get_38495}, {key: 'isHighContrastModeEnabled', get: get_38496},
|
||||
{key: 'isSwitchIconsEnabled', get: get_38497}, {key: 'isAppsButtonEnabled', get: get_38498},
|
||||
{key: 'expressionPickerFormat', get: get_38499}, {key: 'condensePickerWhenNarrow', get: get_38500},
|
||||
{key: 'isEmojiButtonEnabled', get: get_38501}, {key: 'isGifButtonEnabled', get: get_38502},
|
||||
{key: 'isStickerButtonEnabled', get: get_38503}, {key: 'getUserAgnosticState', value: value_38504}]);
|
||||
}
|
||||
|
||||
function _fun38505() { // fn#38505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:6380, offset: 0x010c1ef7, size: 261 bytes, params: 1, frame: 20
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const r3 = Storage.get('a11yFontScale') || 100;
|
||||
const r2 = Storage.get('a11yZoom') || Accessibility.ZOOM_DEFAULT;
|
||||
const r1 = Storage.get('a11yColorblindMode') || false;
|
||||
Storage.remove('a11yFontScale');
|
||||
Storage.remove('a11yZoom');
|
||||
Storage.remove('a11yColorblindMode');
|
||||
return {fontScale: r3, zoom: r2, colorblindMode: r1, keyboardModeEnabled: false};
|
||||
}
|
||||
|
||||
function _fun38506(a0) { // fn#38506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:6696, offset: 0x010c1ffc, size: 125 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
var r4;
|
||||
let value = a0;
|
||||
const fontScale = value.fontScale;
|
||||
const value3 = env0_4(value, env0_3);
|
||||
if (fontScale === 82) {
|
||||
r2 = 12;
|
||||
r4 = value;
|
||||
} else if (fontScale === 92) {
|
||||
r2 = 15;
|
||||
r4 = value;
|
||||
} else {
|
||||
value = 16;
|
||||
if (fontScale === 100) {
|
||||
r2 = value;
|
||||
r4 = value;
|
||||
} else if (fontScale === 110) {
|
||||
r2 = 18;
|
||||
r4 = value;
|
||||
} else if (fontScale === 125) {
|
||||
r2 = 20;
|
||||
r4 = value;
|
||||
} else if (fontScale !== 150) {
|
||||
r2 = value;
|
||||
r4 = value;
|
||||
} else {
|
||||
r2 = 24;
|
||||
r4 = value;
|
||||
}
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, value3, r4);
|
||||
object2['fontSize'] = r2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun38510(a0) { // fn#38510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:7026, offset: 0x010c20d5, size: 67 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const saturation = a0.saturation;
|
||||
const LOW_SATURATION_THRESHOLD = (require(4002) /* metro dependency 4002: shared */).LOW_SATURATION_THRESHOLD;
|
||||
object2['alwaysShowLinkDecorations'] = saturation <= LOW_SATURATION_THRESHOLD;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun38515(a0) { // fn#38515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:7297, offset: 0x010c2172, size: 83 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['appsButtonEnabled'] = true;
|
||||
const FLEXIBLE = env0_18.FLEXIBLE;
|
||||
object2['expressionPickerFormat'] = FLEXIBLE;
|
||||
object2['condensePickerWhenNarrow'] = true;
|
||||
object2['emojiButtonEnabled'] = true;
|
||||
object2['gifButtonEnabled'] = true;
|
||||
object2['stickerButtonEnabled'] = true;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_FONT_SIZE({fontSize}) { // fn#38516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:7509, offset: 0x010c21c5, size: 122 bytes, params: 2, frame: 13
|
||||
const FONT_SIZES = Accessibility.FONT_SIZES;
|
||||
const value2 = FONT_SIZES.indexOf(fontSize);
|
||||
const r1 = value2 >= 0 ? fontSize : Accessibility.FONT_SIZE_DEFAULT;
|
||||
const FONT_SIZE_MAX = Accessibility.FONT_SIZE_MAX;
|
||||
if (r1 > FONT_SIZE_MAX) {
|
||||
return false;
|
||||
}
|
||||
const FONT_SIZE_MIN = Accessibility.FONT_SIZE_MIN;
|
||||
if (r1 < FONT_SIZE_MIN) {
|
||||
return false;
|
||||
}
|
||||
if (env0_20.fontSize === r1) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, value2);
|
||||
object2.fontSize = r1;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_ZOOM(a0) { // fn#38517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:7752, offset: 0x010c223f, size: 144 bytes, params: 2, frame: 13
|
||||
let zoom = a0.zoom;
|
||||
const ZOOM_MIN = Accessibility.ZOOM_MIN;
|
||||
if (zoom < ZOOM_MIN) {
|
||||
return false;
|
||||
}
|
||||
zoom = a0.zoom;
|
||||
const ZOOM_MAX = Accessibility.ZOOM_MAX;
|
||||
if (zoom > ZOOM_MAX) {
|
||||
return false;
|
||||
}
|
||||
zoom = env0_20.zoom;
|
||||
if (zoom === a0.zoom) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, zoom);
|
||||
env0_20 = object2;
|
||||
object2.zoom = a0.zoom;
|
||||
const defaultImport = importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */;
|
||||
defaultImport.setZoomFactor(env0_20.zoom);
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_RESET_TO_DEFAULT() { // fn#38518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:7929, offset: 0x010c22cf, size: 199 bytes, params: 1, frame: 14
|
||||
var object2;
|
||||
var defaultImport;
|
||||
let fontSize = env0_20.fontSize;
|
||||
const FONT_SIZE_DEFAULT = Accessibility.FONT_SIZE_DEFAULT;
|
||||
const zoom = env0_20.zoom;
|
||||
const ZOOM_DEFAULT = Accessibility.ZOOM_DEFAULT;
|
||||
if (fontSize !== FONT_SIZE_DEFAULT) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_20, fontSize);
|
||||
env0_20 = object2;
|
||||
fontSize = object2.fontSize;
|
||||
if (fontSize !== Accessibility.FONT_SIZE_DEFAULT) {
|
||||
env0_20.fontSize = Accessibility.FONT_SIZE_DEFAULT;
|
||||
}
|
||||
if (env0_20.zoom !== Accessibility.ZOOM_DEFAULT) {
|
||||
env0_20.zoom = Accessibility.ZOOM_DEFAULT;
|
||||
defaultImport = importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */;
|
||||
defaultImport.setZoomFactor(env0_20.zoom);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (zoom !== ZOOM_DEFAULT) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_20, fontSize);
|
||||
env0_20 = object2;
|
||||
fontSize = object2.fontSize;
|
||||
if (fontSize !== Accessibility.FONT_SIZE_DEFAULT) {
|
||||
env0_20.fontSize = Accessibility.FONT_SIZE_DEFAULT;
|
||||
}
|
||||
if (env0_20.zoom !== Accessibility.ZOOM_DEFAULT) {
|
||||
env0_20.zoom = Accessibility.ZOOM_DEFAULT;
|
||||
defaultImport = importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */;
|
||||
defaultImport.setZoomFactor(env0_20.zoom);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_KEYBOARD_MODE_ENABLE() { // fn#38519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:8237, offset: 0x010c2396, size: 49 bytes, params: 1, frame: 12
|
||||
if (env0_20.keyboardModeEnabled) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.keyboardModeEnabled = true;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_KEYBOARD_MODE_DISABLE() { // fn#38520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:8378, offset: 0x010c23c7, size: 49 bytes, params: 1, frame: 12
|
||||
var object2;
|
||||
if (env0_20.keyboardModeEnabled) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.keyboardModeEnabled = false;
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_COLORBLIND_TOGGLE() { // fn#38521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:8517, offset: 0x010c23f8, size: 39 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.colorblindMode = !object2.colorblindMode;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_LOW_CONTRAST_TOGGLE() { // fn#38522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:8634, offset: 0x010c241f, size: 39 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.lowContrastMode = !object2.lowContrastMode;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_SATURATION({saturation}) { // fn#38523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:8749, offset: 0x010c2446, size: 39 bytes, params: 2, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.saturation = saturation;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_DESATURATE_ROLES_TOGGLE() { // fn#38524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:8855, offset: 0x010c246d, size: 39 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.desaturateUserColors = !object2.desaturateUserColors;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SYSTEM_COLOR_PREFERENCES_CHANGED({systemForcedColors}) { // fn#38525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:9003, offset: 0x010c2494, size: 58 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2['systemForcedColors'] = systemForcedColors ?? 'none';
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SYSTEM_PREFERS_CONTRAST_CHANGED(a0) { // fn#38526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:9172, offset: 0x010c24ce, size: 66 bytes, params: 2, frame: 13
|
||||
const systemPrefersContrast = env0_20.systemPrefersContrast;
|
||||
if (systemPrefersContrast === a0.systemPrefersContrast) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, systemPrefersContrast);
|
||||
object2['systemPrefersContrast'] = a0.systemPrefersContrast;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SYSTEM_PREFERS_REDUCED_MOTION_CHANGED(a0) { // fn#38527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:9389, offset: 0x010c2510, size: 66 bytes, params: 2, frame: 13
|
||||
const systemPrefersReducedMotion = env0_20.systemPrefersReducedMotion;
|
||||
if (systemPrefersReducedMotion === a0.systemPrefersReducedMotion) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, systemPrefersReducedMotion);
|
||||
object2['systemPrefersReducedMotion'] = a0.systemPrefersReducedMotion;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SYSTEM_PREFERS_CROSSFADES_CHANGED(a0) { // fn#38528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:9627, offset: 0x010c2552, size: 66 bytes, params: 2, frame: 13
|
||||
const systemPrefersCrossfades = env0_20.systemPrefersCrossfades;
|
||||
if (systemPrefersCrossfades === a0.systemPrefersCrossfades) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, systemPrefersCrossfades);
|
||||
object2['systemPrefersCrossfades'] = a0.systemPrefersCrossfades;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_PREFERS_REDUCED_MOTION(a0) { // fn#38529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:9843, offset: 0x010c2594, size: 66 bytes, params: 2, frame: 13
|
||||
const prefersReducedMotion = env0_20.prefersReducedMotion;
|
||||
if (prefersReducedMotion === a0.prefersReducedMotion) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, prefersReducedMotion);
|
||||
object2['prefersReducedMotion'] = a0.prefersReducedMotion;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_SYNC_FORCED_COLORS({syncForcedColors}) { // fn#38530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10036, offset: 0x010c25d6, size: 26 bytes, params: 2, frame: 2
|
||||
env0_20.syncForcedColors = syncForcedColors;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_ALWAYS_SHOW_LINK_DECORATIONS({alwaysShowLinkDecorations}) { // fn#38531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10160, offset: 0x010c25f0, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2['alwaysShowLinkDecorations'] = alwaysShowLinkDecorations;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_ENABLE_CUSTOM_CURSOR({enableCustomCursor}) { // fn#38532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10310, offset: 0x010c261a, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2['enableCustomCursor'] = enableCustomCursor;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_ROLE_STYLE({roleStyle}) { // fn#38533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10429, offset: 0x010c2644, size: 26 bytes, params: 2, frame: 2
|
||||
env0_20.roleStyle = roleStyle;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_OFFICIAL_MESSAGE_STYLE({officialMessageStyle}) { // fn#38534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10526, offset: 0x010c265e, size: 38 bytes, params: 2, frame: 3
|
||||
env0_20.officialMessageStyle = officialMessageStyle;
|
||||
env0_20.officialMessageStyleExplicitlySet = true;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_DISPLAY_NAME_STYLES_ENABLED({enabled}) { // fn#38535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10700, offset: 0x010c2684, size: 25 bytes, params: 2, frame: 2
|
||||
env0_20.displayNameStylesEnabled = enabled;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_FORCED_COLORS_MODAL_SEEN() { // fn#38536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10823, offset: 0x010c269d, size: 19 bytes, params: 1, frame: 2
|
||||
env0_20.forcedColorsModalSeen = true;
|
||||
}
|
||||
|
||||
function KEYBOARD_NAVIGATION_EXPLAINER_MODAL_SEEN() { // fn#38537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:10931, offset: 0x010c26b0, size: 35 bytes, params: 1, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2['keyboardNavigationExplainerModalSeen'] = true;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_MESSAGE_GROUP_SPACING({messageGroupSpacing}) { // fn#38538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11075, offset: 0x010c26d3, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, messageGroupSpacing);
|
||||
object2['messageGroupSpacing'] = messageGroupSpacing;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SUBMIT_BUTTON_TOGGLE() { // fn#38539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11208, offset: 0x010c26fd, size: 39 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.submitButtonEnabled = !object2.submitButtonEnabled;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SYNC_PROFILE_THEME_WITH_USER_THEME_TOGGLE() { // fn#38540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11355, offset: 0x010c2724, size: 39 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2.syncProfileThemeWithUserTheme = !object2.syncProfileThemeWithUserTheme;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_CONTRAST({contrast}) { // fn#38541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11510, offset: 0x010c274b, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, contrast);
|
||||
object2['contrast'] = contrast;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_CONTRAST_MODE({contrastMode}) { // fn#38542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11604, offset: 0x010c2775, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, contrastMode);
|
||||
object2['contrastMode'] = contrastMode;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_SWITCH_ICONS_ENABLED({switchIconsEnabled}) { // fn#38543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11717, offset: 0x010c279f, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, undefined);
|
||||
object2['switchIconsEnabled'] = switchIconsEnabled;
|
||||
}
|
||||
|
||||
function ACCESSIBILITY_SET_CHAT_BAR_SETTINGS(a0) { // fn#38544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:11843, offset: 0x010c27c9, size: 263 bytes, params: 2, frame: 16
|
||||
var r6;
|
||||
var r2;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_20, r6);
|
||||
let appsButtonEnabled = a0.appsButtonEnabled;
|
||||
const value2 = appsButtonEnabled != null;
|
||||
if (value2) {
|
||||
appsButtonEnabled = a0.appsButtonEnabled;
|
||||
r2 = {appsButtonEnabled: appsButtonEnabled};
|
||||
r6 = appsButtonEnabled;
|
||||
} else {
|
||||
r2 = value2;
|
||||
}
|
||||
copyDataProperties(object2, r2, r6);
|
||||
let expressionPickerFormat = a0.expressionPickerFormat;
|
||||
const value3 = expressionPickerFormat != null;
|
||||
if (value3) {
|
||||
expressionPickerFormat = a0.expressionPickerFormat;
|
||||
r2 = {expressionPickerFormat: expressionPickerFormat};
|
||||
r6 = expressionPickerFormat;
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
copyDataProperties(object2, r2, r6);
|
||||
let condensePickerWhenNarrow = a0.condensePickerWhenNarrow;
|
||||
const value4 = condensePickerWhenNarrow != null;
|
||||
if (value4) {
|
||||
condensePickerWhenNarrow = a0.condensePickerWhenNarrow;
|
||||
r2 = {condensePickerWhenNarrow: condensePickerWhenNarrow};
|
||||
r6 = condensePickerWhenNarrow;
|
||||
} else {
|
||||
r2 = value4;
|
||||
}
|
||||
copyDataProperties(object2, r2, r6);
|
||||
let emojiButtonEnabled = a0.emojiButtonEnabled;
|
||||
const value5 = emojiButtonEnabled != null;
|
||||
if (value5) {
|
||||
emojiButtonEnabled = a0.emojiButtonEnabled;
|
||||
r2 = {emojiButtonEnabled: emojiButtonEnabled};
|
||||
r6 = emojiButtonEnabled;
|
||||
} else {
|
||||
r2 = value5;
|
||||
}
|
||||
copyDataProperties(object2, r2, r6);
|
||||
let gifButtonEnabled = a0.gifButtonEnabled;
|
||||
const value6 = gifButtonEnabled != null;
|
||||
if (value6) {
|
||||
gifButtonEnabled = a0.gifButtonEnabled;
|
||||
r2 = {gifButtonEnabled: gifButtonEnabled};
|
||||
r6 = gifButtonEnabled;
|
||||
} else {
|
||||
r2 = value6;
|
||||
}
|
||||
copyDataProperties(object2, r2, r6);
|
||||
copyDataProperties(object2, a0.stickerButtonEnabled != null && ({stickerButtonEnabled: a0.stickerButtonEnabled}),
|
||||
r6);
|
||||
}
|
||||
|
||||
function AccessibilityStore() { // fn#38460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2106, offset: 0x010c198b, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_5(this, AccessibilityStore);
|
||||
const value3 = env1_8(AccessibilityStore);
|
||||
return env1_7(this, _isNativeReflectConstruct_38455() ? global.Reflect.construct(value3, arguments,
|
||||
env1_8(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function value_38461(a0) { // fn#38461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2414, offset: 0x010c19fc, size: 207 bytes, params: 2, frame: 17
|
||||
const value = a0;
|
||||
this.waitFor(UserSettingsProtoStore);
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env1_19, undefined);
|
||||
const value3 = null;
|
||||
copyDataProperties(object2, value3 != value ? value : value3, undefined);
|
||||
env1_20 = object2;
|
||||
if (global.isNaN(object2.fontSize)) {
|
||||
env1_20.fontSize = Accessibility.FONT_SIZE_DEFAULT;
|
||||
}
|
||||
const indexOf = MESSAGE_GROUP_SPACING.indexOf;
|
||||
let messageGroupSpacing = env1_20.messageGroupSpacing;
|
||||
messageGroupSpacing = value3 != messageGroupSpacing ? env1_20.messageGroupSpacing : -1;
|
||||
if (Reflect.apply(indexOf, MESSAGE_GROUP_SPACING, [messageGroupSpacing]) < 0) {
|
||||
env1_20.messageGroupSpacing = value3;
|
||||
}
|
||||
this.syncWith([UserSettingsProtoStore], maybeApplyNoTextColorForLightCustomTheme);
|
||||
}
|
||||
|
||||
function get_38462() { // fn#38462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2700, offset: 0x010c1acb, size: 36 bytes, params: 1, frame: 2
|
||||
const fontSize = env1_20.fontSize;
|
||||
const FONT_SIZE_DEFAULT = Accessibility.FONT_SIZE_DEFAULT;
|
||||
return fontSize / FONT_SIZE_DEFAULT * 100;
|
||||
}
|
||||
|
||||
function get_38463() { // fn#38463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2775, offset: 0x010c1aef, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.fontSize;
|
||||
}
|
||||
|
||||
function get_38464() { // fn#38464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2832, offset: 0x010c1afe, size: 29 bytes, params: 1, frame: 2
|
||||
const fontSize = env1_20.fontSize;
|
||||
const FONT_SIZE_DEFAULT = Accessibility.FONT_SIZE_DEFAULT;
|
||||
return fontSize > FONT_SIZE_DEFAULT;
|
||||
}
|
||||
|
||||
function get_38465() { // fn#38465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2911, offset: 0x010c1b1b, size: 29 bytes, params: 1, frame: 2
|
||||
const fontSize = env1_20.fontSize;
|
||||
const FONT_SIZE_DEFAULT = Accessibility.FONT_SIZE_DEFAULT;
|
||||
return fontSize < FONT_SIZE_DEFAULT;
|
||||
}
|
||||
|
||||
function get_38466() { // fn#38466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:2988, offset: 0x010c1b38, size: 118 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const property = env1_21[this.fontSize];
|
||||
value = '';
|
||||
const r3 = property ?? value;
|
||||
return this.isFontScaledUp ? 'a11y-font-scaled-up ' + r3 : this.isFontScaledDown ? 'a11y-font-scaled-down ' + r3 : value + r3;
|
||||
}
|
||||
|
||||
function get_38467() { // fn#38467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3169, offset: 0x010c1bae, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.zoom;
|
||||
}
|
||||
|
||||
function get_38468() { // fn#38468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3218, offset: 0x010c1bbd, size: 29 bytes, params: 1, frame: 2
|
||||
const zoom = env1_20.zoom;
|
||||
const ZOOM_DEFAULT = Accessibility.ZOOM_DEFAULT;
|
||||
return zoom > ZOOM_DEFAULT;
|
||||
}
|
||||
|
||||
function get_38469() { // fn#38469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3283, offset: 0x010c1bda, size: 29 bytes, params: 1, frame: 2
|
||||
const zoom = env1_20.zoom;
|
||||
const ZOOM_DEFAULT = Accessibility.ZOOM_DEFAULT;
|
||||
return zoom < ZOOM_DEFAULT;
|
||||
}
|
||||
|
||||
function get_38470() { // fn#38470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3356, offset: 0x010c1bf7, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.keyboardModeEnabled;
|
||||
}
|
||||
|
||||
function get_38471() { // fn#38471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3424, offset: 0x010c1c06, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.colorblindMode;
|
||||
}
|
||||
|
||||
function get_38472() { // fn#38472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3488, offset: 0x010c1c15, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.lowContrastMode;
|
||||
}
|
||||
|
||||
function get_38473() { // fn#38473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3548, offset: 0x010c1c24, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.saturation;
|
||||
}
|
||||
|
||||
function get_38474() { // fn#38474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3601, offset: 0x010c1c33, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.contrast;
|
||||
}
|
||||
|
||||
function get_38475() { // fn#38475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3664, offset: 0x010c1c42, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.desaturateUserColors;
|
||||
}
|
||||
|
||||
function get_38476() { // fn#38476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3740, offset: 0x010c1c51, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.forcedColorsModalSeen;
|
||||
}
|
||||
|
||||
function get_38477() { // fn#38477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3832, offset: 0x010c1c60, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.keyboardNavigationExplainerModalSeen;
|
||||
}
|
||||
|
||||
function get_38478() { // fn#38478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:3922, offset: 0x010c1c6f, size: 84 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var MessageDisplayCompact;
|
||||
if (env1_20.messageGroupSpacing != null) {
|
||||
r0 = env1_20.messageGroupSpacing;
|
||||
} else {
|
||||
MessageDisplayCompact = (require(3829) /* metro dependency 3829: UserSettings */).MessageDisplayCompact;
|
||||
r0 = MessageDisplayCompact.getSetting() ? DEFAULT_COMPACT_SPACING : DEFAULT_COZY_SPACING;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_38481() { // fn#38481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4359, offset: 0x010c1d4d, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.submitButtonEnabled;
|
||||
}
|
||||
|
||||
function get_38482() { // fn#38482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4442, offset: 0x010c1d5c, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.syncProfileThemeWithUserTheme;
|
||||
}
|
||||
|
||||
function get_38483() { // fn#38483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4532, offset: 0x010c1d6b, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.systemPrefersReducedMotion;
|
||||
}
|
||||
|
||||
function get_38484() { // fn#38484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4616, offset: 0x010c1d7a, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.prefersReducedMotion;
|
||||
}
|
||||
|
||||
function get_38485() { // fn#38485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4687, offset: 0x010c1d89, size: 55 bytes, params: 1, frame: 3
|
||||
const prefersReducedMotion = env1_20.prefersReducedMotion;
|
||||
if (prefersReducedMotion === 'no-preference') {
|
||||
return false;
|
||||
}
|
||||
if (prefersReducedMotion === 'reduce') {
|
||||
return true;
|
||||
}
|
||||
return env1_20.systemPrefersReducedMotion === 'reduce';
|
||||
}
|
||||
|
||||
function get_38486() { // fn#38486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4867, offset: 0x010c1dc0, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.systemForcedColors;
|
||||
}
|
||||
|
||||
function get_38487() { // fn#38487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:4936, offset: 0x010c1dcf, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.syncForcedColors;
|
||||
}
|
||||
|
||||
function get_38488() { // fn#38488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5002, offset: 0x010c1dde, size: 42 bytes, params: 1, frame: 3
|
||||
const value = environment.__proto__;
|
||||
const syncForcedColors = env1_20.syncForcedColors;
|
||||
return !(syncForcedColors ? env1_20.systemForcedColors !== 'active' : !syncForcedColors);
|
||||
}
|
||||
|
||||
function get_38489() { // fn#38489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5110, offset: 0x010c1e08, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.systemPrefersContrast;
|
||||
}
|
||||
|
||||
function get_38490() { // fn#38490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5189, offset: 0x010c1e17, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.systemPrefersCrossfades;
|
||||
}
|
||||
|
||||
function get_38491() { // fn#38491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5272, offset: 0x010c1e26, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.alwaysShowLinkDecorations;
|
||||
}
|
||||
|
||||
function get_38492() { // fn#38492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5350, offset: 0x010c1e35, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.enableCustomCursor;
|
||||
}
|
||||
|
||||
function get_38493() { // fn#38493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5412, offset: 0x010c1e44, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.roleStyle;
|
||||
}
|
||||
|
||||
function get_38494() { // fn#38494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5476, offset: 0x010c1e53, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.officialMessageStyle;
|
||||
}
|
||||
|
||||
function get_38495() { // fn#38495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5555, offset: 0x010c1e62, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.displayNameStylesEnabled;
|
||||
}
|
||||
|
||||
function get_38496() { // fn#38496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5639, offset: 0x010c1e71, size: 29 bytes, params: 1, frame: 2
|
||||
const contrastMode = env1_20.contrastMode;
|
||||
const HIGH = env1_17.HIGH;
|
||||
return contrastMode === HIGH;
|
||||
}
|
||||
|
||||
function get_38497() { // fn#38497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5715, offset: 0x010c1e8e, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.switchIconsEnabled;
|
||||
}
|
||||
|
||||
function get_38498() { // fn#38498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5787, offset: 0x010c1e9d, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.appsButtonEnabled;
|
||||
}
|
||||
|
||||
function get_38499() { // fn#38499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5861, offset: 0x010c1eac, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.expressionPickerFormat;
|
||||
}
|
||||
|
||||
function get_38500() { // fn#38500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:5942, offset: 0x010c1ebb, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.condensePickerWhenNarrow;
|
||||
}
|
||||
|
||||
function get_38501() { // fn#38501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:6021, offset: 0x010c1eca, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.emojiButtonEnabled;
|
||||
}
|
||||
|
||||
function get_38502() { // fn#38502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:6092, offset: 0x010c1ed9, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.gifButtonEnabled;
|
||||
}
|
||||
|
||||
function get_38503() { // fn#38503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4680:6165, offset: 0x010c1ee8, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_20.stickerButtonEnabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
/* 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] */
|
||||
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;
|
||||
let map = new Map();
|
||||
map = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
|
||||
map = _fun99138(map);
|
||||
map = new map();
|
||||
(require(2) /* metro dependency 2 */).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) {
|
||||
}
|
||||
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()) {
|
||||
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');
|
||||
}
|
||||
}
|
||||
}
|
||||
} 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 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);
|
||||
}
|
||||
} 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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,387 @@
|
||||
/* Metro module 4558; source: modules/a11y/native/AccessibilityFocusLockManager.tsx; dependencies: [6, 7, 15, 17, 18, 27, 3, 4559, 477, 4560, 4561, 2] */
|
||||
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) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
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 */;
|
||||
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');
|
||||
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)) {
|
||||
if (r1) {
|
||||
}
|
||||
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') {
|
||||
value = _arrayLikeToArray_38755(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
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 _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;
|
||||
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;
|
||||
}
|
||||
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_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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 8197; source: modules/a11y/native/AccessibilityLabelOptimizationExperiment.tsx; dependencies: [1854, 4559, 2] */
|
||||
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 */;
|
||||
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');
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
/* Metro module 12989; source: modules/a11y/native/AccessibilityManager.tsx; dependencies: [5, 27, 4502, 661, 1313, 12990, 694, 683, 12993, 11282, 12991, 3998, 4002, 2] */
|
||||
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 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() {
|
||||
require(dependencyMap[8]).updateSaturation(AccessibilityStore.saturation);
|
||||
}, updateMotionSettings: function() {
|
||||
importDefault(dependencyMap[9])(require(dependencyMap[10]).accessibilityPreferencesSharedValue,
|
||||
{reduceMotion: AccessibilityStore.useReducedMotion,
|
||||
prefersCrossfades: AccessibilityStore.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;
|
||||
}
|
||||
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 _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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 13111; source: modules/a11y/native/AccessibilityPreferencesContextProvider.native.tsx; dependencies: [31, 4502, 33, 566, 3875, 2] */
|
||||
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');
|
||||
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 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};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 12991; source: modules/a11y/native/AccessibilityPreferencesSharedValue.tsx; dependencies: [12845, 2, 12759] */
|
||||
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 REDUCED_MOTION = AccessibilityFeatureFlags.REDUCED_MOTION;
|
||||
object2[REDUCED_MOTION] = 'reduceMotion';
|
||||
const REDUCED_MOTION_PREFERS_CROSSFADES = AccessibilityFeatureFlags.REDUCED_MOTION_PREFERS_CROSSFADES;
|
||||
object2[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;
|
||||
exports.accessibilityPreferencesSharedValue = (require(12759) /* metro dependency 12759: native */).accessibilityPreferencesSharedValue;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
/* Metro module 12990; source: modules/a11y/native/AccessibilitySystemFeatures.tsx; dependencies: [27, 4502, 12845, 12991, 11282, 683, 12992, 2] */
|
||||
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 env0_8 = AccessibilityFeatureFlags.NONE;
|
||||
object2 = {init: init_99068, getActiveFeatures: function() {
|
||||
return NONE;
|
||||
}, handleReduceMotionChanged: handleReduceMotionChanged, handleReduceTransparencyChanged: function(a0) {
|
||||
toggleFeature(AccessibilityFeatureFlags.REDUCED_TRANSPARENCY, a0);
|
||||
}, handleBoldTextChanged: function(a0) {
|
||||
toggleFeature(AccessibilityFeatureFlags.BOLD_TEXT, a0);
|
||||
}, handleGrayscaleChanged: function(a0) {
|
||||
toggleFeature(AccessibilityFeatureFlags.GRAYSCALE, a0);
|
||||
}, handleInvertColorsChanged: function(a0) {
|
||||
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});
|
||||
}
|
||||
}
|
||||
|
||||
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 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 _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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 11953; source: modules/a11y/native/PortalAccessibilityWorkaroundView.tsx; dependencies: [31, 27, 33, 4020, 2] */
|
||||
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');
|
||||
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} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 6766; source: modules/a11y/native/TextWithIOSLinkWorkaround.tsx; dependencies: [31, 27, 33, 4501, 6767, 4559, 4573, 477, 2] */
|
||||
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',
|
||||
'flexShrink': 1}});
|
||||
(require(2) /* metro dependency 2 */).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>
|
||||
);
|
||||
}
|
||||
}
|
||||
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];
|
||||
}
|
||||
const props = a0.props;
|
||||
return props.children != null ? findLinks(props.children) : [];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 4499; source: modules/a11y/native/markAccessibilityFocus.tsx; dependencies: [27, 477, 2] */
|
||||
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');
|
||||
exports.default = function() {
|
||||
if (require(dependencyMap[1]).isIOS()) {
|
||||
NativeModules.DCDAccessibilityManager.markCurrentFocus();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/* Metro module 4570; source: modules/a11y/native/setAccessibilityFocus.android.tsx; dependencies: [27, 3, 4560, 4020, 2] */
|
||||
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 */;
|
||||
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');
|
||||
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 _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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 4498; source: modules/a11y/native/setAccessibilityFocusPrevious.tsx; dependencies: [27, 477, 2] */
|
||||
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');
|
||||
exports.default = function() {
|
||||
if (require(dependencyMap[1]).isIOS()) {
|
||||
NativeModules.DCDAccessibilityManager.restorePreviousFocus();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 9104; source: modules/a11y/native/useAccessibilityPress.tsx; dependencies: [31, 2] */
|
||||
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');
|
||||
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 _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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/* Metro module 9895; source: modules/a11y/native/useAnnounceAsyncCompletion.native.tsx; dependencies: [31, 27, 4002, 477, 4559, 2] */
|
||||
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');
|
||||
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();
|
||||
}
|
||||
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 _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 _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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* Metro module 4559; source: modules/a11y/native/useIsScreenReaderEnabled.native.tsx; dependencies: [27, 587, 629, 690, 2] */
|
||||
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');
|
||||
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 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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user