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}});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user