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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
/* Metro module 12034; source: modules/accept_invite/native/AcceptInvite.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 1360, 3860, 5465, 12035, 12037, 1423, 1457, 12040, 1478, 6239, 2] */
|
||||
function _fun92494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:6, offset: 0x0208bb74, size: 482 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.ActivityIndicator;
|
||||
const env0_6 = value.ImageBackground;
|
||||
const env0_7 = value.View;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).InviteStates;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.parentContainer = {'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object2.cardContainer = {'position': 'absolute', 'flex': 1, 'width': '90%', 'alignItems': 'center',
|
||||
'justifyContent': 'center', 'padding': 0, backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
object2.cardContent = {'padding': 16, 'flex': 1, 'justifyContent': 'center', 'alignItems': 'center',
|
||||
'width': '100%'};
|
||||
object2.resolvingContainer = {padding: 64};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {LOADING: 0};
|
||||
object2[0] = 'LOADING';
|
||||
object2.DETAILS = 1;
|
||||
object2[1] = 'DETAILS';
|
||||
object2.ERROR = 2;
|
||||
object2[2] = 'ERROR';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInvite.tsx');
|
||||
exports.default = AcceptInvite;
|
||||
}
|
||||
|
||||
function InviteResolving() { // fn#92495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1211, offset: 0x0208bd56, size: 131 bytes, params: 1, frame: 17
|
||||
const styles = useStyles();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
return (
|
||||
<View style={styles.resolvingContainer}>
|
||||
<ActivityIndicator color={Reflect.apply(useToken, useTokenModule,
|
||||
[INTERACTIVE_TEXT_DEFAULT])} size="large" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AcceptInviteCardComponent(a0) { // fn#92496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1386, offset: 0x0208bdd9, size: 290 bytes, params: 2, frame: 19
|
||||
const invite = a0.invite;
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const value3 = env0_3(Reflect.apply(useState, binding, [getInviteState(invite)]), 2);
|
||||
const property = value3[0];
|
||||
const env0_2 = value3[1];
|
||||
env0_4.useEffect(_fun92497, [invite, property]);
|
||||
if (invite != null) {
|
||||
var DETAILS = env0_12.DETAILS;
|
||||
if (DETAILS === property) {
|
||||
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12035) /* metro dependency 12035: InviteDetails */);
|
||||
}
|
||||
var ERROR = env0_12.ERROR;
|
||||
if (ERROR === property) {
|
||||
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12037) /* metro dependency 12037: InviteError */);
|
||||
}
|
||||
}
|
||||
return <InviteResolving />;
|
||||
}
|
||||
|
||||
function getInviteState(a0) { // fn#92498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:817, offset: 0x0208bf41, size: 315 bytes, params: 2, frame: 14
|
||||
let value = undefined;
|
||||
let state = a0 == null ? value : a0.state;
|
||||
const r2 = state == null && (a0 == null ? value : a0.channel) == null;
|
||||
if (a0 == null) {
|
||||
value = environment;
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
if (a0.state == null) {
|
||||
value = environment;
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
if (r2) {
|
||||
value = environment;
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
state = a0.state;
|
||||
const RESOLVED = InviteStates.RESOLVED;
|
||||
if (RESOLVED === state) {
|
||||
return env0_12.DETAILS;
|
||||
}
|
||||
const ACCEPTED = InviteStates.ACCEPTED;
|
||||
if (ACCEPTED === state) {
|
||||
return env0_12.DETAILS;
|
||||
}
|
||||
const EXPIRED = InviteStates.EXPIRED;
|
||||
if (EXPIRED === state) {
|
||||
return env0_12.ERROR;
|
||||
}
|
||||
const BANNED = InviteStates.BANNED;
|
||||
if (BANNED === state) {
|
||||
return env0_12.ERROR;
|
||||
}
|
||||
const ERROR = InviteStates.ERROR;
|
||||
if (ERROR === state) {
|
||||
return env0_12.ERROR;
|
||||
}
|
||||
const RESOLVING = InviteStates.RESOLVING;
|
||||
if (RESOLVING === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const APP_NOT_OPENED = InviteStates.APP_NOT_OPENED;
|
||||
if (APP_NOT_OPENED === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const APP_OPENED = InviteStates.APP_OPENED;
|
||||
if (APP_OPENED === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const APP_OPENING = InviteStates.APP_OPENING;
|
||||
if (APP_OPENING === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const ACCEPTING = InviteStates.ACCEPTING;
|
||||
if (ACCEPTING === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(state);
|
||||
return value;
|
||||
}
|
||||
|
||||
function AcceptInvite(a0) { // fn#92499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1871, offset: 0x0208c07c, size: 448 bytes, params: 2, frame: 26
|
||||
var r7;
|
||||
var object2;
|
||||
var defaultImport;
|
||||
var getGuildSplashSource;
|
||||
var moduleValue;
|
||||
const invite = a0.invite;
|
||||
const value = Object.create(null);
|
||||
value.invite = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, invite);
|
||||
const value4 = undefined;
|
||||
const styles = useStyles();
|
||||
const {height, width} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
|
||||
const guild = (invite ?? ({})).guild;
|
||||
if ((guild == null ? value4 : guild.splash) == null) {
|
||||
r7 = importDefault(12040) /* metro dependency 12040 */;
|
||||
} else {
|
||||
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getGuildSplashSource = defaultImport.getGuildSplashSource;
|
||||
object2 = {};
|
||||
object2.id = guild.id;
|
||||
object2.splash = guild.splash;
|
||||
moduleValue = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
|
||||
object2.size = width * moduleValue.getDevicePixelRatio();
|
||||
r7 = Reflect.apply(getGuildSplashSource, defaultImport,
|
||||
[object2]) ?? (importDefault(12040) /* metro dependency 12040 */);
|
||||
}
|
||||
const items2 = [styles.parentContainer];
|
||||
items2[1] = {height: height, width: width};
|
||||
const imageBackground = <ImageBackground source={r7} imageStyle={styles.imageStyle} style={{height: height,
|
||||
width: width}} />;
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{imageBackground}
|
||||
<Card style={styles.cardContainer}>
|
||||
<View style={styles.cardContent}>
|
||||
<AcceptInviteCardComponent invite={invite} {...value2} />
|
||||
</View>
|
||||
</Card>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun92497() { // fn#92497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1510, offset: 0x0208befb, size: 70 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const inviteState = getInviteState(invite);
|
||||
if (inviteState !== env0_1) {
|
||||
(require(5465) /* metro dependency 5465: DeprecatedLayoutAnimation */).DeprecatedLayoutAnimation();
|
||||
env0_2(inviteState);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 5251; source: modules/accept_invite/native/AcceptInviteConstants.tsx; dependencies: [2] */
|
||||
function _fun46708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5429:6, offset: 0x011ad77d, size: 84 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInviteConstants.tsx');
|
||||
exports.ACCEPT_INVITE_MODAL_KEY = 'accept-invite';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,554 @@
|
||||
/* Metro module 15650; source: modules/accept_invite/native/AcceptInviteManager.tsx; dependencies: [7, 6, 15, 17, 18, 1226, 4097, 5251, 661, 4116, 6912, 4080, 5080, 15651, 1962, 15652, 694, 10010, 6946, 6789, 4860, 2] */
|
||||
function _fun119953(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:6, offset: 0x0251c5e4, size: 326 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
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 inviteStore = importDefault(4097) /* metro dependency 4097: InviteStore */;
|
||||
const env0_10 = (require(5251) /* metro dependency 5251: AcceptInviteConstants */).ACCEPT_INVITE_MODAL_KEY;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.GuildFeatures;
|
||||
const env0_12 = value.InviteStates;
|
||||
const env0_13 = value.JoinGuildSources;
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun119957(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInviteManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_119954() { // fn#119954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:268, offset: 0x0251c72a, 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_119954_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun119957(a0) { // fn#119957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:471, offset: 0x0251c78c, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = AcceptInviteManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function AcceptInviteManager(a0) { // fn#119958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:483, offset: 0x0251c7b6, size: 269 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, AcceptInviteManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(AcceptInviteManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_119954()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value._deferredFromDeeplink = false;
|
||||
value._isRegistration = false;
|
||||
value.actions = {DISPLAYED_INVITE_SHOW: DISPLAYED_INVITE_SHOW_119959,
|
||||
DISPLAYED_INVITE_CLEAR: DISPLAYED_INVITE_CLEAR_119960, DEFERRED_INVITE_SHOW: DEFERRED_INVITE_SHOW,
|
||||
REGISTER_SUCCESS: REGISTER_SUCCESS_119962};
|
||||
value._handleShowInvite = _handleShowInvite;
|
||||
value._handleClearInvite = _handleClearInvite;
|
||||
value._handleShowDeferredInvite = _handleShowDeferredInvite;
|
||||
value._handleInvite = _handleInvite;
|
||||
value._handleRegisterSuccess = _handleRegisterSuccess;
|
||||
return value;
|
||||
}
|
||||
|
||||
function AcceptInviteManagerDISPLAYED_INVITE_SHOW(a0) { // fn#119959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:807, owner: AcceptInviteManager.DISPLAYED_INVITE_SHOW, offset: 0x0251c8c3, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0._handleShowInvite(a0);
|
||||
}
|
||||
|
||||
function AcceptInviteManagerDISPLAYED_INVITE_CLEAR() { // fn#119960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:856, owner: AcceptInviteManager.DISPLAYED_INVITE_CLEAR, offset: 0x0251c8da, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0._handleClearInvite();
|
||||
}
|
||||
|
||||
function DEFERRED_INVITE_SHOW() { // fn#119961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:904, owner: AcceptInviteManager.DEFERRED_INVITE_SHOW, offset: 0x0251c8ed, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0._handleShowDeferredInvite();
|
||||
}
|
||||
|
||||
function AcceptInviteManagerREGISTER_SUCCESS() { // fn#119962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:955, owner: AcceptInviteManager.REGISTER_SUCCESS, offset: 0x0251c900, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0._handleRegisterSuccess();
|
||||
}
|
||||
|
||||
function _handleShowInvite({code, deeplinkAttemptId, fromDeeplink, invite_instance_id}) { // fn#119963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1007, owner: AcceptInviteManager._handleShowInvite, offset: 0x0251c913, size: 105 bytes, params: 2, frame: 18
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = AuthenticationStore.isAuthenticated();
|
||||
const binding = env0_0;
|
||||
if (value) {
|
||||
binding._handleInvite(code, deeplinkAttemptId, fromDeeplink === true, invite_instance_id);
|
||||
} else {
|
||||
binding._deferredCode = code;
|
||||
binding._deferredFromDeeplink = fromDeeplink === true;
|
||||
}
|
||||
}
|
||||
|
||||
function _handleClearInvite() { // fn#119964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1199, owner: AcceptInviteManager._handleClearInvite, offset: 0x0251c97c, size: 71 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
binding._deferredCode = null;
|
||||
binding._deferredFromDeeplink = false;
|
||||
binding._isRegistration = false;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(ACCEPT_INVITE_MODAL_KEY);
|
||||
}
|
||||
|
||||
function _handleShowDeferredInvite() { // fn#119965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1325, owner: AcceptInviteManager._handleShowDeferredInvite, offset: 0x0251c9c3, size: 68 bytes, params: 1, frame: 16
|
||||
var binding;
|
||||
if (env0_0._deferredCode != null) {
|
||||
binding = env0_0;
|
||||
binding._handleInvite(binding._deferredCode, undefined, binding._deferredFromDeeplink);
|
||||
binding._deferredCode = null;
|
||||
binding._deferredFromDeeplink = false;
|
||||
}
|
||||
}
|
||||
|
||||
function _handleInvite(a0, a1) { // fn#119966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1484, owner: AcceptInviteManager._handleInvite, offset: 0x0251ca07, size: 65 bytes, params: 3, frame: 12
|
||||
var environment;
|
||||
let value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = value !== undefined ? value : false;
|
||||
const env0_3 = a3;
|
||||
value = environment.__proto__.__proto__;
|
||||
InviteStore.addConditionalChangeListener(_fun119967);
|
||||
}
|
||||
|
||||
function _handleRegisterSuccess() { // fn#119970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:2650, owner: AcceptInviteManager._handleRegisterSuccess, offset: 0x0251cdbe, size: 19 bytes, params: 1, frame: 2
|
||||
env0_0._isRegistration = true;
|
||||
}
|
||||
|
||||
function _fun119967() { // fn#119967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1531, offset: 0x0251ca48, size: 849 bytes, params: 1, frame: 27
|
||||
var environment;
|
||||
var r2;
|
||||
var r5;
|
||||
var id;
|
||||
var r7;
|
||||
var state;
|
||||
var RESOLVED;
|
||||
var EXPIRED;
|
||||
var BANNED;
|
||||
var ERROR;
|
||||
var channel;
|
||||
var guild;
|
||||
var inviter;
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var isGroupDMInvite;
|
||||
var isGroupDMInvite2;
|
||||
var moduleValue2;
|
||||
var isStreamInvite;
|
||||
var isStreamInvite2;
|
||||
var moduleValue3;
|
||||
var isGuildScheduledEventInviteEmbed;
|
||||
var isGuildScheduledEventInviteEmbed2;
|
||||
var moduleValue4;
|
||||
var isRoleSubscriptionInvite;
|
||||
var isRoleSubscriptionInvite2;
|
||||
var value5;
|
||||
var features;
|
||||
var value6;
|
||||
var includes;
|
||||
var DISCOVERABLE;
|
||||
var value7;
|
||||
var value8;
|
||||
var moduleValue5;
|
||||
var getMobileLurkerServerPreview;
|
||||
var enabled;
|
||||
var binding;
|
||||
var value9;
|
||||
var _isRegistration;
|
||||
var defaultImport;
|
||||
var hideActionSheet;
|
||||
var defaultImport2;
|
||||
var pushLazy;
|
||||
var moduleValue6;
|
||||
var property;
|
||||
var paths;
|
||||
var value10;
|
||||
var object2;
|
||||
var defaultImport3;
|
||||
var wait;
|
||||
var moduleValue7;
|
||||
var startLurking;
|
||||
var id2;
|
||||
var DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
var DEEPLINK;
|
||||
var moduleValue8;
|
||||
var acceptFriendInvite;
|
||||
var value11;
|
||||
var value12;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const invite = InviteStore.getInvite(env0_0);
|
||||
if (invite != null) {
|
||||
state = invite.state;
|
||||
RESOLVED = InviteStates.RESOLVED;
|
||||
reducibleJoin5: while (true) {
|
||||
reducibleJoin33: while (true) {
|
||||
if (state === RESOLVED) {
|
||||
channel = invite.channel;
|
||||
if (channel == null) {
|
||||
guild = invite.guild;
|
||||
if (guild == null) {
|
||||
inviter = invite.inviter;
|
||||
if (inviter != null) {
|
||||
moduleValue8 = require(dependencyMap[15]);
|
||||
acceptFriendInvite = moduleValue8.acceptFriendInvite;
|
||||
value11 = 'Accept Invite';
|
||||
reducibleJoin32: while (true) {
|
||||
if (require != null) {
|
||||
value12 = 'Deep Link';
|
||||
r7 = value12;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
r7 = value11;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
Reflect.apply(acceptFriendInvite, moduleValue8, [invite, {location: r7}]);
|
||||
value = importDefault(dependencyMap[16]);
|
||||
wait = value.wait;
|
||||
Reflect.apply(wait, value, [_fun119968]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (env0_2) {
|
||||
state = invite.state;
|
||||
RESOLVED = InviteStates.RESOLVED;
|
||||
if (state === RESOLVED) {
|
||||
guild = invite.guild;
|
||||
value4 = guild == null;
|
||||
reducibleJoin13: while (true) {
|
||||
if (value4) {
|
||||
r2 = value4;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
moduleValue = require(dependencyMap[9]);
|
||||
isGroupDMInvite = moduleValue.isGroupDMInvite;
|
||||
isGroupDMInvite2 = Reflect.apply(isGroupDMInvite, moduleValue, [invite]);
|
||||
r2 = isGroupDMInvite2;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
reducibleJoin15: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin15;
|
||||
}
|
||||
moduleValue2 = require(dependencyMap[9]);
|
||||
isStreamInvite = moduleValue2.isStreamInvite;
|
||||
isStreamInvite2 = Reflect.apply(isStreamInvite, moduleValue2, [invite]);
|
||||
r2 = isStreamInvite2;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
reducibleJoin17: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
moduleValue3 = require(dependencyMap[9]);
|
||||
isGuildScheduledEventInviteEmbed = moduleValue3.isGuildScheduledEventInviteEmbed;
|
||||
isGuildScheduledEventInviteEmbed2 = Reflect.apply(isGuildScheduledEventInviteEmbed,
|
||||
moduleValue3,
|
||||
[invite]);
|
||||
r2 = isGuildScheduledEventInviteEmbed2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
reducibleJoin19: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin19;
|
||||
}
|
||||
moduleValue4 = require(dependencyMap[9]);
|
||||
isRoleSubscriptionInvite = moduleValue4.isRoleSubscriptionInvite;
|
||||
isRoleSubscriptionInvite2 = Reflect.apply(isRoleSubscriptionInvite, moduleValue4,
|
||||
[invite]);
|
||||
r2 = isRoleSubscriptionInvite2;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
value5 = undefined;
|
||||
reducibleJoin21: while (true) {
|
||||
if (r2) {
|
||||
r5 = value5;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
guild = invite.guild;
|
||||
features = guild.features;
|
||||
value6 = features == null;
|
||||
r2 = value6;
|
||||
r5 = features;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
reducibleJoin23: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin23;
|
||||
}
|
||||
includes = r5.includes;
|
||||
DISCOVERABLE = GuildFeatures.DISCOVERABLE;
|
||||
value7 = !Reflect.apply(includes, r5, [DISCOVERABLE]);
|
||||
r2 = value7;
|
||||
break reducibleJoin23;
|
||||
}
|
||||
value8 = !r2;
|
||||
reducibleJoin25: while (true) {
|
||||
if (r2) {
|
||||
r2 = value8;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
moduleValue5 = require(dependencyMap[10]);
|
||||
getMobileLurkerServerPreview = moduleValue5.getMobileLurkerServerPreview;
|
||||
enabled = Reflect.apply(getMobileLurkerServerPreview, moduleValue5,
|
||||
['AcceptInviteManager']).enabled;
|
||||
r2 = enabled;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
if (r2) {
|
||||
defaultImport3 = importDefault(dependencyMap[16]);
|
||||
wait = defaultImport3.wait;
|
||||
Reflect.apply(wait, defaultImport3, [_fun119969]);
|
||||
moduleValue7 = require(dependencyMap[18]);
|
||||
startLurking = moduleValue7.startLurking;
|
||||
guild = invite.guild;
|
||||
id2 = guild.id;
|
||||
object2 = {};
|
||||
channel = invite.channel;
|
||||
reducibleJoin29: while (true) {
|
||||
if (channel == null) {
|
||||
id = value5;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
id = channel.id;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
object2.channelId = id;
|
||||
DISCOVERABLE_GUILD_INVITE_LURKER = JoinGuildSources.DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
object2.joinSource = DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
DEEPLINK = importDefault(dependencyMap[19]).DEEPLINK;
|
||||
Reflect.apply(startLurking, moduleValue7, [id2, {}, object2, [DEEPLINK]]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
binding = env0_0;
|
||||
value9 = environment.__proto__;
|
||||
_isRegistration = env1_0._isRegistration;
|
||||
defaultImport = importDefault(dependencyMap[11]);
|
||||
defaultImport.hideActionSheet();
|
||||
defaultImport2 = importDefault(dependencyMap[12]);
|
||||
defaultImport2.pushLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths),
|
||||
{code: binding,
|
||||
isRegistration: _isRegistration, deeplinkAttemptId: require, inviteInstanceId: importAll},
|
||||
ACCEPT_INVITE_MODAL_KEY);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
state = invite.state;
|
||||
EXPIRED = InviteStates.EXPIRED;
|
||||
if (state !== EXPIRED) {
|
||||
state = invite.state;
|
||||
BANNED = InviteStates.BANNED;
|
||||
reducibleJoin6: while (true) {
|
||||
if (state === BANNED) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
state = invite.state;
|
||||
ERROR = InviteStates.ERROR;
|
||||
if (state === ERROR) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
break reducibleJoin5;
|
||||
}
|
||||
}
|
||||
channel = invite.channel;
|
||||
if (channel == null) {
|
||||
guild = invite.guild;
|
||||
if (guild == null) {
|
||||
inviter = invite.inviter;
|
||||
if (inviter != null) {
|
||||
moduleValue8 = require(dependencyMap[15]);
|
||||
acceptFriendInvite = moduleValue8.acceptFriendInvite;
|
||||
value11 = 'Accept Invite';
|
||||
reducibleJoin32: while (true) {
|
||||
if (require != null) {
|
||||
value12 = 'Deep Link';
|
||||
r7 = value12;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
r7 = value11;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
Reflect.apply(acceptFriendInvite, moduleValue8, [invite, {location: r7}]);
|
||||
value = importDefault(dependencyMap[16]);
|
||||
wait = value.wait;
|
||||
Reflect.apply(wait, value, [_fun119968]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (env0_2) {
|
||||
state = invite.state;
|
||||
RESOLVED = InviteStates.RESOLVED;
|
||||
if (state === RESOLVED) {
|
||||
guild = invite.guild;
|
||||
value4 = guild == null;
|
||||
reducibleJoin13: while (true) {
|
||||
if (value4) {
|
||||
r2 = value4;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
moduleValue = require(dependencyMap[9]);
|
||||
isGroupDMInvite = moduleValue.isGroupDMInvite;
|
||||
isGroupDMInvite2 = Reflect.apply(isGroupDMInvite, moduleValue, [invite]);
|
||||
r2 = isGroupDMInvite2;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
reducibleJoin15: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin15;
|
||||
}
|
||||
moduleValue2 = require(dependencyMap[9]);
|
||||
isStreamInvite = moduleValue2.isStreamInvite;
|
||||
isStreamInvite2 = Reflect.apply(isStreamInvite, moduleValue2, [invite]);
|
||||
r2 = isStreamInvite2;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
reducibleJoin17: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
moduleValue3 = require(dependencyMap[9]);
|
||||
isGuildScheduledEventInviteEmbed = moduleValue3.isGuildScheduledEventInviteEmbed;
|
||||
isGuildScheduledEventInviteEmbed2 = Reflect.apply(isGuildScheduledEventInviteEmbed,
|
||||
moduleValue3,
|
||||
[invite]);
|
||||
r2 = isGuildScheduledEventInviteEmbed2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
reducibleJoin19: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin19;
|
||||
}
|
||||
moduleValue4 = require(dependencyMap[9]);
|
||||
isRoleSubscriptionInvite = moduleValue4.isRoleSubscriptionInvite;
|
||||
isRoleSubscriptionInvite2 = Reflect.apply(isRoleSubscriptionInvite, moduleValue4, [invite]);
|
||||
r2 = isRoleSubscriptionInvite2;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
value5 = undefined;
|
||||
reducibleJoin21: while (true) {
|
||||
if (r2) {
|
||||
r5 = value5;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
guild = invite.guild;
|
||||
features = guild.features;
|
||||
value6 = features == null;
|
||||
r2 = value6;
|
||||
r5 = features;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
reducibleJoin23: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin23;
|
||||
}
|
||||
includes = r5.includes;
|
||||
DISCOVERABLE = GuildFeatures.DISCOVERABLE;
|
||||
value7 = !Reflect.apply(includes, r5, [DISCOVERABLE]);
|
||||
r2 = value7;
|
||||
break reducibleJoin23;
|
||||
}
|
||||
value8 = !r2;
|
||||
reducibleJoin25: while (true) {
|
||||
if (r2) {
|
||||
r2 = value8;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
moduleValue5 = require(dependencyMap[10]);
|
||||
getMobileLurkerServerPreview = moduleValue5.getMobileLurkerServerPreview;
|
||||
enabled = Reflect.apply(getMobileLurkerServerPreview, moduleValue5,
|
||||
['AcceptInviteManager']).enabled;
|
||||
r2 = enabled;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
if (r2) {
|
||||
defaultImport3 = importDefault(dependencyMap[16]);
|
||||
wait = defaultImport3.wait;
|
||||
Reflect.apply(wait, defaultImport3, [_fun119969]);
|
||||
moduleValue7 = require(dependencyMap[18]);
|
||||
startLurking = moduleValue7.startLurking;
|
||||
guild = invite.guild;
|
||||
id2 = guild.id;
|
||||
object2 = {};
|
||||
channel = invite.channel;
|
||||
reducibleJoin29: while (true) {
|
||||
if (channel == null) {
|
||||
id = value5;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
id = channel.id;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
object2.channelId = id;
|
||||
DISCOVERABLE_GUILD_INVITE_LURKER = JoinGuildSources.DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
object2.joinSource = DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
DEEPLINK = importDefault(dependencyMap[19]).DEEPLINK;
|
||||
Reflect.apply(startLurking, moduleValue7, [id2, {}, object2, [DEEPLINK]]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
binding = env0_0;
|
||||
value9 = environment.__proto__;
|
||||
_isRegistration = env1_0._isRegistration;
|
||||
defaultImport = importDefault(dependencyMap[11]);
|
||||
hideActionSheet = defaultImport.hideActionSheet;
|
||||
Reflect.apply(hideActionSheet, defaultImport, []);
|
||||
defaultImport2 = importDefault(dependencyMap[12]);
|
||||
pushLazy = defaultImport2.pushLazy;
|
||||
moduleValue6 = require(dependencyMap[14]);
|
||||
property = dependencyMap[13];
|
||||
paths = dependencyMap.paths;
|
||||
value10 = moduleValue6(property, paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value10, {code: binding, isRegistration: _isRegistration,
|
||||
deeplinkAttemptId: require, inviteInstanceId: importAll}, ACCEPT_INVITE_MODAL_KEY]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function _fun119968() { // fn#119968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1797, offset: 0x0251cd99, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
return (require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).clearDisplayedInvite();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,490 @@
|
||||
/* Metro module 12035; source: modules/accept_invite/native/InviteDetails.tsx; dependencies: [57, 31, 27, 11876, 1885, 1878, 661, 9445, 33, 4501, 697, 6235, 4116, 1305, 11976, 3995, 1244, 8642, 4573, 1423, 5475, 683, 566, 12036, 9048, 4578, 6261, 2] */
|
||||
function _fun92500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6, offset: 0x0208c23c, size: 957 bytes, params: 8, frame: 26
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const multiAccountStore = importDefault(11876) /* metro dependency 11876: MultiAccountStore */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.AnalyticEvents;
|
||||
const env0_10 = value.InviteStates;
|
||||
const env0_11 = (require(9445) /* metro dependency 9445: HubConstants */).INVITE_ROUTING_HUB_GUILD_ID;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object7 = {'height': 64, 'width': 64, 'margin': 0};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.avatar = object7;
|
||||
const object8 = {'borderRadius': null, 'height': 64, 'width': 64, 'marginBottom': 24, 'marginTop': 24};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
|
||||
object4.avatarContainer = object8;
|
||||
object4.inviteJoinContainer = {'flexDirection': 'row', 'alignItems': 'flex-start', 'marginBottom': 8,
|
||||
'marginLeft': 16, 'marginRight': 16};
|
||||
object4.inviteJoinText = {textAlign: 'center'};
|
||||
const object12 = {};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
|
||||
object12.marginRight = 8;
|
||||
object4.inviterIconWrapper = object12;
|
||||
const object13 = {'width': 20, 'height': 20};
|
||||
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.inviterIcon = object13;
|
||||
object4.guildNameContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
|
||||
object4.guildNameText = {textAlign: 'center'};
|
||||
const DARK_1_LIGHT_04 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_1_LIGHT_04;
|
||||
object4.featureIcon = {'flexGrow': 0, 'marginRight': 8, opacity: DARK_1_LIGHT_04};
|
||||
object4.memberInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
|
||||
object4.rolesList = {'marginTop': 8, 'marginBottom': 8, 'alignItems': 'center'};
|
||||
const object14 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4};
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
||||
object14.backgroundColor = GREEN_360;
|
||||
object4.dotOnline = object14;
|
||||
const object15 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4, 'marginLeft': 16};
|
||||
object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
|
||||
object15.backgroundColor = PRIMARY_400;
|
||||
object4.dotOffline = object15;
|
||||
const object16 = {'width': '100%', 'backgroundColor': null, 'padding': 16, 'borderRadius': null, 'marginTop': 16,
|
||||
'marginBottom': 8};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object16.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object16.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object4.embedDetailsCard = object16;
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object4]);
|
||||
const getMemberCountFromInvite = function(a0) {
|
||||
var object = {};
|
||||
var property = a0.approximate_presence_count;
|
||||
var value = null;
|
||||
var value2 = 0;
|
||||
object.onlineCount = value != property ? property : value2;
|
||||
property = a0.approximate_member_count;
|
||||
object.memberCount = value != property ? property : value2;
|
||||
return value2 === object.memberCount ? value : object;
|
||||
};
|
||||
object4 = {ACCEPT: 0};
|
||||
object4[0] = 'ACCEPT';
|
||||
object4.DECLINE = 1;
|
||||
object4[1] = 'DECLINE';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteDetails.tsx');
|
||||
exports.default = InviteDetails;
|
||||
}
|
||||
|
||||
function InviteDestinationIcon({invite}) { // fn#92501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1889, offset: 0x0208c5f9, size: 341 bytes, params: 2, frame: 25
|
||||
var r4;
|
||||
var r5;
|
||||
var inviter;
|
||||
var value2;
|
||||
var guild;
|
||||
var value3;
|
||||
var Avatar;
|
||||
var userRecord;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.avatarContainer];
|
||||
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (inviteTypeUtilsModule.isGroupDMInvite(invite)) {
|
||||
inviter = invite.inviter;
|
||||
value2 = null;
|
||||
if (value2 != inviter) {
|
||||
inviter = invite.inviter;
|
||||
if (value2 != inviter) {
|
||||
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
var avatarProps = {avatarStyle: styles.avatar};
|
||||
inviter = invite.inviter;
|
||||
userRecord = new UserRecord();
|
||||
avatarProps.user = userRecord;
|
||||
avatarProps.guildId = undefined;
|
||||
avatarProps.size = (require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE;
|
||||
userRecord = <Avatar {...avatarProps} />;
|
||||
r5 = userRecord;
|
||||
} else {
|
||||
r5 = value2;
|
||||
}
|
||||
r4 = r5;
|
||||
} else {
|
||||
guild = invite.guild;
|
||||
value3 = null;
|
||||
if (value3 != guild) {
|
||||
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
|
||||
value = ((Component) => <Component style={styles.avatar} guild={invite.guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.LARGE} textScale={2} />)(value);
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
guild = invite.guild;
|
||||
value3 = null;
|
||||
if (value3 != guild) {
|
||||
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
|
||||
value = ((Component) => <Component style={styles.avatar} guild={invite.guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.LARGE} textScale={2} />)(value);
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{r4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteHeader({invite}) { // fn#92502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2269, offset: 0x0208c74e, size: 449 bytes, params: 2, frame: 22
|
||||
var name;
|
||||
var r0;
|
||||
var r9;
|
||||
var defaultImport;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var defaultImport2;
|
||||
const styles = useStyles();
|
||||
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (inviteTypeUtilsModule.isGroupDMInvite(invite)) {
|
||||
name = invite.channel?.name;
|
||||
if (name != null) {
|
||||
r0 = name;
|
||||
} else {
|
||||
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r0 = defaultImport.getFormattedName(invite.inviter);
|
||||
}
|
||||
r9 = r0;
|
||||
} else {
|
||||
r9 = invite.guild?.name;
|
||||
}
|
||||
const moduleValue2 = inviteTypeUtilsModule;
|
||||
if (moduleValue2.isFriendInvite(invite)) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['4aF92R'];
|
||||
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r9 = Reflect.apply(formatToPlainString, intl, [property,
|
||||
{username: defaultImport2.getFormattedName(invite.inviter)}]);
|
||||
}
|
||||
return r9 == null ? null : <View style={styles.guildNameContainer}>{((Component) => <Component guild={invite.guild} style={styles.featureIcon} disableColor />)(importDefault(8642) /* metro dependency 8642: GuildBadge */)}{((Heading) => <Heading style={styles.guildNameText} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{r9}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)}</View>;
|
||||
}
|
||||
|
||||
function InviteJoinContext({invite, isRegistration, isGuildMember}) { // fn#92503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2851, offset: 0x0208c90f, size: 1063 bytes, params: 2, frame: 27
|
||||
var r2;
|
||||
var r8;
|
||||
var r6;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
var format;
|
||||
var spU2mI;
|
||||
var defaultImport;
|
||||
var formatToPlainString;
|
||||
var x2L32Q;
|
||||
var defaultImport2;
|
||||
var Lu4h18;
|
||||
var defaultImport3;
|
||||
var Quj7HX;
|
||||
var defaultImport4;
|
||||
var moduleValue4;
|
||||
const styles = useStyles();
|
||||
const value2 = env0_4.useMemo(_fun92504, [invite, isGuildMember]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value3 = Reflect.apply(string, intl, [t['3rE1P8']]);
|
||||
if ((require(4116) /* metro dependency 4116: InviteTypeUtils */).isFriendInvite(invite)) {
|
||||
format = intl.format;
|
||||
Quj7HX = (require(1244) /* metro dependency 1244: indexNative */).t.Quj7HX;
|
||||
defaultImport4 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(format, intl, [Quj7HX, {username: defaultImport4.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
moduleValue2 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (moduleValue2.isGroupDMInvite(invite)) {
|
||||
if (invite.channel == null) {
|
||||
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
|
||||
} else if (invite.inviter != null) {
|
||||
format = intl.format;
|
||||
Lu4h18 = (require(1244) /* metro dependency 1244: indexNative */).t.Lu4h18;
|
||||
defaultImport3 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r2 = Reflect.apply(format, intl, [Lu4h18, {username: defaultImport3.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
|
||||
}
|
||||
r8 = r2;
|
||||
} else {
|
||||
moduleValue3 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (moduleValue3.isStreamInvite(invite)) {
|
||||
if (invite.target_user != null) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
x2L32Q = (require(1244) /* metro dependency 1244: indexNative */).t.x2L32Q;
|
||||
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(formatToPlainString, intl, [x2L32Q,
|
||||
{username: defaultImport2.getFormattedName(invite.target_user)}]);
|
||||
} else if (isAlreadyMember(invite, isGuildMember)) {
|
||||
string = intl.string;
|
||||
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
|
||||
[t['FDsl+J']]);
|
||||
} else if (shouldShowInviter(invite, isGuildMember) && invite.inviter != null) {
|
||||
format = intl.format;
|
||||
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
|
||||
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(format, intl, [spU2mI,
|
||||
{username: defaultImport.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
} else if (isAlreadyMember(invite, isGuildMember)) {
|
||||
string = intl.string;
|
||||
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
|
||||
[t['FDsl+J']]);
|
||||
} else if (shouldShowInviter(invite, isGuildMember) && invite.inviter != null) {
|
||||
format = intl.format;
|
||||
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
|
||||
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(format, intl, [spU2mI, {username: defaultImport.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (value2 == null) {
|
||||
r6 = null;
|
||||
} else {
|
||||
moduleValue4 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
r6 = moduleValue4.isFriendInvite(invite) ? null : <View style={styles.inviterIconWrapper}>{((Component) => <Component source={value2} style={styles.inviterIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>;
|
||||
}
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.inviteJoinContainer}>
|
||||
{r6}
|
||||
<Text
|
||||
style={styles.inviteJoinText}
|
||||
variant="text-sm/normal"
|
||||
color="text-default"
|
||||
>
|
||||
{r8}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteMemberCounts({invite, isGuildMember}) { // fn#92505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4163, offset: 0x0208cdf6, size: 533 bytes, params: 2, frame: 31
|
||||
var r7;
|
||||
var r6;
|
||||
var r0;
|
||||
var jsxRuntimeEnv0_14Binding;
|
||||
var items4;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var items3;
|
||||
const styles = useStyles();
|
||||
const memberCountFromInvite = getMemberCountFromInvite(invite);
|
||||
if (memberCountFromInvite == null) {
|
||||
r0 = null;
|
||||
} else if (shouldShowInviter(invite, isGuildMember)) {
|
||||
r0 = null;
|
||||
} else if ((invite == null || invite.guild == null ? undefined : invite.guild.id) === INVITE_ROUTING_HUB_GUILD_ID) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.memberInfo};
|
||||
if (memberCountFromInvite.onlineCount != null) {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items4 = [<View style={styles.dotOnline} />];
|
||||
items4[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['LC+S+m'],
|
||||
|
||||
|
||||
{membersOnline: memberCountFromInvite.onlineCount})}</Text>;
|
||||
r7 = <>{items4}</>;
|
||||
} else {
|
||||
r7 = null;
|
||||
}
|
||||
items2 = [r7];
|
||||
if (memberCountFromInvite.memberCount != null) {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items3 = [<View style={styles.dotOffline} />];
|
||||
items3[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zRl6XR,
|
||||
|
||||
|
||||
{count: memberCountFromInvite.memberCount})}</Text>;
|
||||
r6 = <>{items3}</>;
|
||||
} else {
|
||||
r6 = null;
|
||||
}
|
||||
items2[1] = r6;
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isAlreadyMember(a0, a1) { // fn#92507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1691, offset: 0x0208d053, size: 33 bytes, params: 3, frame: 3
|
||||
return a1 && a0.state !== InviteStates.ACCEPTED;
|
||||
}
|
||||
|
||||
function shouldShowInviter(a0, a1) { // fn#92508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1740, offset: 0x0208d074, size: 93 bytes, params: 3, frame: 15
|
||||
var memberCount;
|
||||
var getMemberCountFromInviteBinding;
|
||||
var memberCountFromInviteBinding;
|
||||
let value = a0.inviter != null;
|
||||
let r0 = value && !isAlreadyMember(a0, a1);
|
||||
if (r0) {
|
||||
getMemberCountFromInviteBinding = getMemberCountFromInvite;
|
||||
value = undefined;
|
||||
memberCountFromInviteBinding = getMemberCountFromInviteBinding(a0);
|
||||
memberCount = memberCountFromInviteBinding == null ? value : memberCountFromInviteBinding.memberCount;
|
||||
value = 0;
|
||||
value = !((memberCount ?? value) > 100);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function InviteDetails({invite, isGuildMember, onPressJoin, onPressClose, isRegistration}) { // fn#92509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4982, offset: 0x0208d0d1, size: 1234 bytes, params: 2, frame: 36
|
||||
var r18;
|
||||
var r19;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value15;
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(), 2);
|
||||
const guild_scheduled_event = invite.guild_scheduled_event;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const canUseMultiAccountMobile = (require(566) /* metro dependency 566: flux */).useStateFromStores([MultiAccountStore],
|
||||
function() {
|
||||
return MultiAccountStore.getCanUseMultiAccountMobile();
|
||||
});
|
||||
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
const items3 = [<InviteDestinationIcon invite={invite} isGuildMember={isGuildMember} isRegistration={isRegistration} />];
|
||||
items3[1] = <InviteJoinContext {...object} />;
|
||||
items3[2] = <InviteHeader {...object} />;
|
||||
items3[3] = <InviteMemberCounts {...object} />;
|
||||
items3[4] = ((Component) => <Component invite={invite} style={styles.rolesList} />)(importDefault(12036) /* metro dependency 12036: InviteRolesList */);
|
||||
items3[5] = guild_scheduled_event != null && <View style={styles.embedDetailsCard}>{((GuildEventCardHeader) => <GuildEventCardHeader event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardHeader)}{((GuildEventCardMetaInfo) => <GuildEventCardMetaInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardMetaInfo)}{((GuildEventCardGuildInfo) => <GuildEventCardGuildInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardGuildInfo)}</View>;
|
||||
const isAlreadyMember2 = isAlreadyMember(invite, isGuildMember);
|
||||
const r11 = currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser,
|
||||
false, 20) : null;
|
||||
const r21 = r11 != null ? ((Icon) => <Icon source={r11} variant="entity" />)((require(4578) /* metro dependency 4578: ButtonNative */).Button.Icon) : undefined;
|
||||
const r5 = currentUser != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9sWQNT'],
|
||||
{usernameHook: usernameHook_92514}) : undefined;
|
||||
let string = (require(1244) /* metro dependency 1244: indexNative */).intl.string;
|
||||
if (isAlreadyMember2) {
|
||||
value15 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IRoQXr);
|
||||
r18 = value15;
|
||||
r19 = value15;
|
||||
} else if (canUseMultiAccountMobile && r5 != null) {
|
||||
r18 = r5;
|
||||
r19 = r5;
|
||||
} else {
|
||||
r18 = r5;
|
||||
r19 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['e/6Ogt']]);
|
||||
}
|
||||
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const buttonProps = {'icon': null, 'variant': 'primary', 'size': 'lg', icon: r21, text: r19,
|
||||
accessibilityLabel: r18, onPress: onPress_92510};
|
||||
binding = env0_19;
|
||||
let ACCEPT = binding.ACCEPT;
|
||||
buttonProps.loading = property === ACCEPT;
|
||||
ACCEPT = binding.ACCEPT;
|
||||
buttonProps.disabled = property === ACCEPT;
|
||||
const button = <Button {...buttonProps} />;
|
||||
const object2 = {'variant': 'secondary', 'size': 'lg'};
|
||||
string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.text = isAlreadyMember2 ? Reflect.apply(string, intl, [t.WAI6xu]) : Reflect.apply(string, intl, [t.ndsK4Z]);
|
||||
object2.onPress = onPress_92511;
|
||||
binding = env0_19;
|
||||
let DECLINE = binding.DECLINE;
|
||||
object2.loading = property === DECLINE;
|
||||
DECLINE = binding.DECLINE;
|
||||
object2.disabled = property === DECLINE;
|
||||
items3[6] = <ButtonGroup>{button}<Button {...object2} /></ButtonGroup>;
|
||||
return (
|
||||
<>
|
||||
{items3}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun92504() { // fn#92504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2946, offset: 0x0208cd36, size: 192 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var shouldShowInviter2;
|
||||
var value3;
|
||||
let value = environment.__proto__;
|
||||
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (inviteTypeUtilsModule.isStreamInvite(invite)) {
|
||||
if (invite.target_user != null) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarSource(invite.target_user);
|
||||
r0 = value;
|
||||
} else {
|
||||
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
|
||||
value3 = null;
|
||||
if (shouldShowInviter2) {
|
||||
if (value3 != invite.inviter) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarSource(invite.inviter);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
|
||||
value3 = null;
|
||||
if (shouldShowInviter2) {
|
||||
if (value3 != invite.inviter) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarSource(invite.inviter);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function InviteDetailsOnPress() { // fn#92510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5163, owner: InviteDetails.onPress, offset: 0x0208d5a3, size: 37 bytes, params: 1, frame: 12
|
||||
const binding = env0_3;
|
||||
const ACCEPT = env1_19.ACCEPT;
|
||||
binding(ACCEPT);
|
||||
onPressJoin();
|
||||
}
|
||||
|
||||
function InviteDetailsOnPress_92511() { // fn#92511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5203, owner: InviteDetails.onPress, offset: 0x0208d5c8, size: 119 bytes, params: 1, frame: 18
|
||||
const binding = env0_3;
|
||||
const DECLINE = env1_19.DECLINE;
|
||||
const value3 = undefined;
|
||||
binding(DECLINE);
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const INVITE_ACCEPT_DISMISSED = AnalyticEvents.INVITE_ACCEPT_DISMISSED;
|
||||
const inviteBinding = invite;
|
||||
const guild = inviteBinding.guild;
|
||||
Reflect.apply(track, defaultImport, [INVITE_ACCEPT_DISMISSED, {invite_code: inviteBinding.code,
|
||||
guild_id: guild == null ? value3 : guild.id}]);
|
||||
onPressClose();
|
||||
return value3;
|
||||
}
|
||||
|
||||
function InviteDetailsUsernameHook() { // fn#92514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6125, owner: InviteDetails.usernameHook, offset: 0x0208d652, size: 86 bytes, params: 1, frame: 15
|
||||
const currentUserBinding = currentUser;
|
||||
const username = currentUserBinding.username;
|
||||
const hasUniqueUsername2 = currentUserBinding.hasUniqueUsername();
|
||||
const value2 = '';
|
||||
return value2 + username + (hasUniqueUsername2 ? value2 : '#' + currentUser.discriminator);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 12037; source: modules/accept_invite/native/InviteError.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4002, 4048, 12038, 12039, 10545, 1244, 4573, 4578, 1423, 1305, 10544, 6819, 6766, 1948, 2] */
|
||||
function _fun92520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:6, offset: 0x0208d9b3, size: 483 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = value.AbortCodes;
|
||||
const env0_6 = value.HelpdeskArticles;
|
||||
const env0_7 = value.InviteStates;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {expiredImage: {'marginTop': 32, 'marginBottom': 32}, expiredTitle: {'marginBottom': 8,
|
||||
'backgroundColor': 'transparent', 'textAlign': 'center'}, expiredBody: {'backgroundColor': 'transparent',
|
||||
'marginBottom': 24}, disabledView: {'justifyContent': 'center', 'alignItems': 'center'}};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object2.disabledPauseIcon = {'position': 'absolute', 'alignSelf': 'center', 'tintColor': null, 'width': 42,
|
||||
'height': 42, tintColor: WHITE};
|
||||
const object4 = {'borderRadius': null, 'opacity': 0.2, 'zIndex': -999};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.guildIcon = object4;
|
||||
object2.disabledTitle = {'marginTop': 16, 'marginBottom': 8, 'textAlign': 'center'};
|
||||
object2.disabledBody = {'textAlign': 'center', 'marginBottom': 16};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteError.tsx');
|
||||
exports.default = InviteError;
|
||||
}
|
||||
|
||||
function InviteErrorBase({invite, onPressClose, inviteError}) { // fn#92521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:791, offset: 0x0208db96, size: 698 bytes, params: 2, frame: 28
|
||||
const intl = require(dependencyMap[11]).intl;
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(require(dependencyMap[6]).isThemeDark(importDefault(dependencyMap[7])()) ? dependencyMap[8] : dependencyMap[9]);
|
||||
const descriptiveInviteError = require(dependencyMap[10]).getDescriptiveInviteError(inviteError?.code);
|
||||
const state = invite.state;
|
||||
const BANNED = InviteStates.BANNED;
|
||||
const r10 = state === BANNED ? intl.string(require(dependencyMap[11]).t['GzD/aa']) : descriptiveInviteError?.description ?? intl.string(require(dependencyMap[11]).t.FWkU6P);
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const items2 = [<Image style={styles.expiredImage} source={defaultImport} />];
|
||||
const Text = require(dependencyMap[12]).Text;
|
||||
items2[1] = <Text style={styles.expiredTitle} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{descriptiveInviteError?.title ?? intl.string(require(dependencyMap[11]).t.u9zxnX)}</Text>;
|
||||
items2[2] = <Text style={styles.expiredBody} variant="text-sm/medium" color="text-default">{r10}</Text>;
|
||||
const Button = require(dependencyMap[13]).Button;
|
||||
items2[3] = <Button variant="primary" size="lg" text={intl.string(require(dependencyMap[11]).t.wcqOoF)} onPress={function() {
|
||||
onPressClose();
|
||||
}} />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteDisabledError({invite, onPressClose}) { // fn#92523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:1621, offset: 0x0208de50, size: 668 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const guild = invite.guild;
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
const guildIconURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: guild.id,
|
||||
icon: guild.icon, size: 64, canAnimate: false});
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const icon = <Icon style={styles.disabledPauseIcon} source={importDefault(10544) /* metro dependency 10544 */} />;
|
||||
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const XLARGE = GuildIconSizes.XLARGE;
|
||||
const items2 = [<View style={styles.disabledView}>{icon}<GuildIcon style={styles.guildIcon} icon={guildIconURL} size={XLARGE} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text style={styles.disabledTitle} variant="heading-xl/semibold" color="text-feedback-critical">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jlLX2Z)}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const RXSeLl = (require(1244) /* metro dependency 1244: indexNative */).t.RXSeLl;
|
||||
const defaultImport3 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport3.getArticleURL;
|
||||
const INVITE_DISABLED = HelpdeskArticles.INVITE_DISABLED;
|
||||
items2[2] = <TextWithIOSLinkWorkaround style={styles.disabledBody} variant="text-md/normal" color="text-default">{Reflect.apply(format,
|
||||
intl, [RXSeLl, {articleLink: Reflect.apply(getArticleURL, defaultImport3,
|
||||
[INVITE_DISABLED])}])}</TextWithIOSLinkWorkaround>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[3] = <Button variant="primary" size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['yD/zkn'])} onPress={function() {
|
||||
onPressClose();
|
||||
}} />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteError(a0) { // fn#92525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:2597, offset: 0x0208e0ec, size: 130 bytes, params: 2, frame: 15
|
||||
const inviteError = a0.inviteError;
|
||||
return inviteError == null ? <InviteErrorBase {...a0} /> : inviteError.code === AbortCodes.INVITES_DISABLED ? <InviteDisabledError {...a0} /> : <InviteErrorBase {...a0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 12036; source: modules/accept_invite/native/InviteRolesList.tsx; dependencies: [31, 27, 33, 4501, 1940, 4572, 4573, 1244, 11428, 2] */
|
||||
function _fun92515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:6, offset: 0x0208d6a8, size: 219 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({rolesRow: {'flexDirection': 'row',
|
||||
'flexWrap': 'wrap', 'justifyContent': 'center', 'gap': 4}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteRolesList.tsx');
|
||||
exports.default = InviteRolesList;
|
||||
}
|
||||
|
||||
function InviteRolesList({invite, style}) { // fn#92516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:343, offset: 0x0208d783, size: 315 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var Stack;
|
||||
var Text;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const guild = invite.guild;
|
||||
const roles = invite.roles;
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
let object = [guild, roles];
|
||||
const value2 = Reflect.apply(useMemo, binding, [_fun92517, object]);
|
||||
if (guild == null) {
|
||||
r0 = null;
|
||||
} else if (value2.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
object = {spacing: 4, style: style};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <Stack {...object}><Text variant="text-sm/semibold" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.stcSfI)}</Text><View style={styles.rolesRow}>{value2.map(_fun92519)}</View></Stack>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun92517() { // fn#92517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:431, offset: 0x0208d8be, size: 122 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var r0;
|
||||
var rolesBinding;
|
||||
var items2;
|
||||
var sort;
|
||||
var value;
|
||||
if (guild == null) {
|
||||
r0 = [];
|
||||
} else {
|
||||
rolesBinding = roles;
|
||||
if (rolesBinding == null) {
|
||||
r0 = [];
|
||||
} else if (roles.length === 0) {
|
||||
r0 = [];
|
||||
} else {
|
||||
rolesBinding = roles;
|
||||
items2 = [];
|
||||
arraySpread(items2, rolesBinding, 0, undefined);
|
||||
sort = items2.sort;
|
||||
value = environment.__proto__;
|
||||
value = Reflect.apply(sort, items2,
|
||||
[(require(1940) /* metro dependency 1940: GuildRoleUtils */).sortInviteRoles]);
|
||||
value = value.map(_fun92518);
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun92519(a0) { // fn#92519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:794, offset: 0x0208d96e, size: 69 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component role={a0} guildId={guild.id} key={a0.id} />)(importDefault(11428) /* metro dependency 11428: RolePill */);
|
||||
}
|
||||
|
||||
function _fun92518(a0) { // fn#92518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:511, offset: 0x0208d938, size: 54 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(1940) /* metro dependency 1940: GuildRoleUtils */;
|
||||
return value.inviteRoleToDisplayData(guild.id, a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
/* Metro module 9005; source: modules/accept_invite/native/JoinServer.tsx; dependencies: [31, 27, 9006, 33, 4501, 697, 4573, 1244, 5463, 1484, 1478, 8967, 4578, 2] */
|
||||
function _fun70070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:6, offset: 0x01cecec1, size: 572 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = OrSeparator;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.ScrollView;
|
||||
value = require(9006) /* metro dependency 9006: CreateGuildConstants */;
|
||||
const env0_6 = value.CREATE_GUILD_SMALL_SCREEN_MAX_HEIGHT;
|
||||
const env0_7 = value.CreateGuildModalStates;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.growSpacing = {flexGrow: 2, minHeight: PX_24};
|
||||
const object5 = {flexGrow: 2};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingBottom = PX_16;
|
||||
object2.container = object5;
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.textInput = object6;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.innerSeparator = {'height': 1, 'flexGrow': 2, backgroundColor: BORDER_SUBTLE};
|
||||
object2.separator = {'paddingVertical': 12, 'flexDirection': 'row', 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.orText = {'textAlign': 'center', 'marginHorizontal': null, 'textTransform': 'uppercase',
|
||||
marginHorizontal: PX_8};
|
||||
object2.header = {textAlign: 'center'};
|
||||
object2.description = {'textAlign': 'center', 'marginTop': 8, 'marginBottom': 32};
|
||||
object2.exampleText = {marginTop: 8};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
const env0_13 = ['https://discord.gg/hTKzmak', 'hTKzmak', 'https://discord.gg/wumpus-friends'][0];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/JoinServer.tsx');
|
||||
exports.default = JoinServer;
|
||||
exports.OrSeparator = closure;
|
||||
}
|
||||
|
||||
function OrSeparator() { // fn#70071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:944, offset: 0x01ced0fd, size: 227 bytes, params: 1, frame: 24
|
||||
const styles = useStyles();
|
||||
const items2 = [<View style={styles.innerSeparator} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const HEuagM = (require(1244) /* metro dependency 1244: indexNative */).t.HEuagM;
|
||||
items2[1] = <Text style={styles.orText} variant="text-sm/semibold" color="text-muted">{Reflect.apply(string, intl,
|
||||
[HEuagM])}</Text>;
|
||||
items2[2] = <View style={styles.innerSeparator} />;
|
||||
return (
|
||||
<View style={styles.separator}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function JoinServer({error, inviteString, onInviteChange, onDone, submitting}) { // fn#70072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1212, offset: 0x01ced1e0, size: 1291 bytes, params: 2, frame: 39
|
||||
var r8;
|
||||
var jsxRuntimeEnv0_10Binding;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
|
||||
let binding = env0_3;
|
||||
const value3 = binding.useCallback(_fun70073, [value2]);
|
||||
const items4 = [styles.container];
|
||||
const bottom = insets.bottom;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items4[1] = {paddingBottom: bottom + PX_16};
|
||||
if (height <= CREATE_GUILD_SMALL_SCREEN_MAX_HEIGHT) {
|
||||
r8 = null;
|
||||
} else {
|
||||
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
string = intl.string;
|
||||
items2 = [<Text style={styles.header} accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
|
||||
intl, [t.jlfuFW])}</Text>];
|
||||
string = intl.string;
|
||||
items2[1] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
|
||||
|
||||
intl, [t.lVvN3A])}</Text>;
|
||||
r8 = <>{items2}</>;
|
||||
}
|
||||
const items3 = [r8];
|
||||
const FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
|
||||
items3[1] = <FreeFormInputGroup label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)} error={error} value={inviteString} onChangeText={onInviteChange} placeholder={env0_13} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)} autoFocus autoCapitalize="none" autoCorrect={false} returnKeyType="join" textStyle={styles.textInput} onSubmitEditing={onDone} />;
|
||||
const format = intl.format;
|
||||
const vwWaTe = (require(1244) /* metro dependency 1244: indexNative */).t.vwWaTe;
|
||||
binding = env0_12;
|
||||
items3[2] = <Text style={styles.exampleText} variant="text-sm/medium" color="text-muted">{Reflect.apply(format,
|
||||
intl, [vwWaTe, {example1: binding[0], example2: binding[1], example3: binding[2],
|
||||
exampleHook: exampleHook}])}</Text>;
|
||||
const view = <View>{items3}</View>;
|
||||
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
const items5 = [<View style={styles.growSpacing} />];
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items5[1] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])} loading={submitting} disabled={submitting} onPress={onDone} />;
|
||||
items5[2] = <OrSeparator />;
|
||||
items5[3] = <Button size="lg" variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])} onPress={value3} />;
|
||||
return (
|
||||
<ScrollView keyboardShouldPersistTaps="handled" contentContainerStyle={items4}>
|
||||
{view}
|
||||
<>
|
||||
{items5}
|
||||
</>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun70073() { // fn#70073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1389, offset: 0x01ced6eb, size: 34 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const push = binding.push;
|
||||
const JOIN_STUDENT_HUB = CreateGuildModalStates.JOIN_STUDENT_HUB;
|
||||
Reflect.apply(push, binding, [JOIN_STUDENT_HUB]);
|
||||
}
|
||||
|
||||
function exampleHook(a0, a1) { // fn#70074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:2362, owner: JoinServer.exampleHook, offset: 0x01ced70d, size: 67 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="text-default"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Metro module 15651; source: modules/accept_invite/native/components/AcceptInviteModal.tsx; dependencies: [31, 9006, 33, 480, 4098, 12033, 10010, 5280, 2] */
|
||||
function _fun119971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:6, offset: 0x0251cdd1, size: 164 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(9006) /* metro dependency 9006: CreateGuildConstants */).CreateGuildModalStates;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/components/AcceptInviteModal.tsx');
|
||||
exports.default = AcceptInviteModal;
|
||||
}
|
||||
|
||||
function AcceptInviteModal(a0) { // fn#119972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:258, offset: 0x0251ce75, size: 126 bytes, params: 2, frame: 19
|
||||
const env0_0 = a0;
|
||||
const binding = env0_3;
|
||||
binding.useEffect(function() {
|
||||
return _fun119974;
|
||||
}, []);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const navigatorProps = {screens: binding.useMemo(_fun119975, [a0])};
|
||||
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
|
||||
navigatorProps.initialRouteName = ACCEPT_INVITE;
|
||||
return <Navigator {...navigatorProps} />;
|
||||
}
|
||||
|
||||
function _fun119973() { // fn#119973, offset: 0x0251cef3, size: 11 bytes, params: 1, frame: 1
|
||||
return function() {
|
||||
};
|
||||
}
|
||||
|
||||
function _fun119975() { // fn#119975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:364, offset: 0x0251cefe, size: 25 bytes, params: 1, frame: 11
|
||||
return getScreens_119976(env0_0);
|
||||
}
|
||||
|
||||
function getScreens_119976(a0) { // fn#119976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:368, offset: 0x0251cf17, size: 149 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
|
||||
const object = {'fullscreen': true, 'headerShown': false};
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const INVITE_ACCEPT = ImpressionNames.INVITE_ACCEPT;
|
||||
object.impressionName = INVITE_ACCEPT;
|
||||
const object4 = {};
|
||||
object4.deeplink_attempt_id = a0.deeplinkAttemptId;
|
||||
value = require(4098) /* metro dependency 4098: InviteCodeUtils */;
|
||||
object4.invite_code = value.parseInviteCodeFromInviteKey(a0.code);
|
||||
object.impressionProperties = object4;
|
||||
object.render = render_119977;
|
||||
return {[ACCEPT_INVITE]: object};
|
||||
}
|
||||
|
||||
function getScreens_119976Render() { // fn#119977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:626, owner: getScreens_119976.render, offset: 0x0251cfac, size: 84 bytes, params: 1, frame: 16
|
||||
const AcceptInviteContainer = importDefault(12033) /* metro dependency 12033: AcceptInviteContainer */;
|
||||
const defaultImportProps = {...env0_0};
|
||||
defaultImportProps['onPressClose'] = (require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).clearDisplayedInvite;
|
||||
return <AcceptInviteContainer {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 4080; source: modules/action_sheet/native/ActionSheetActionCreators.tsx; dependencies: [29, 31, 33, 694, 4081, 4082, 478, 1848, 2] */
|
||||
function _fun33467(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:6, offset: 0x0102f37b, size: 252 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
const env0_3 = ['impressionName', 'impressionProperties', 'backdropKind', 'disableHapticOnOpen', 'appEntryKey'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const closure = showActionSheet;
|
||||
object2 = {openLazy: function(a0, a1, a2, a3) {
|
||||
var env0_0 = a1;
|
||||
var env0_1 = a2;
|
||||
var env0_2 = a3;
|
||||
(a0 instanceof global.Promise ? a0.then(_fun33471) : a0()).then(_fun33472);
|
||||
}, hideActionSheet: hideActionSheet, hideAllActionSheets: hideAllActionSheets,
|
||||
setActionSheetZIndex: setActionSheetZIndex, resetActionSheetsForAppEntryKey: resetActionSheetsForAppEntryKey};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.ACTION_SHEET_HEIGHT_HALF = 'start';
|
||||
exports.ACTION_SHEET_HEIGHT_EXPANDED = 'expanded';
|
||||
exports.showActionSheet = closure;
|
||||
}
|
||||
|
||||
function showActionSheet({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, disableHapticOnOpen, appEntryKey}) { // fn#33468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:245, offset: 0x0102f477, size: 126 bytes, params: 2, frame: 12
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun33469);
|
||||
}
|
||||
|
||||
function openLazy(a0, a1, a2, a3) { // fn#33470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:660, offset: 0x0102f5e4, size: 83 bytes, params: 5, frame: 13
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const env0_2 = a3;
|
||||
const Promise = global.Promise;
|
||||
(a0 instanceof Promise ? a0.then(function(a0) {
|
||||
return a0.default;
|
||||
}) : a0()).then(_fun33472);
|
||||
}
|
||||
|
||||
function hideActionSheet(a0) { // fn#33473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1034, offset: 0x0102f6ce, size: 54 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ACTION_SHEET', key: a0});
|
||||
}
|
||||
|
||||
function hideAllActionSheets() { // fn#33474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1105, offset: 0x0102f704, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ALL_ACTION_SHEETS'});
|
||||
}
|
||||
|
||||
function setActionSheetZIndex(a0) { // fn#33475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1178, offset: 0x0102f735, size: 57 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SET_ACTION_SHEET_Z_INDEX', zIndex: a0});
|
||||
}
|
||||
|
||||
function resetActionSheetsForAppEntryKey(a0) { // fn#33476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1264, offset: 0x0102f76e, size: 57 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY',
|
||||
appEntryKey: a0});
|
||||
}
|
||||
|
||||
function _fun33469() { // fn#33469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:391, offset: 0x0102f4f5, size: 239 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (!disableHapticOnOpen) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
moduleValue.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
|
||||
}
|
||||
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
|
||||
}
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SHOW_ACTION_SHEET', content: content,
|
||||
key: key, impressionName: impressionName, impressionProperties: impressionProperties,
|
||||
backdropKind: backdropKind, stackingBehavior: stackingBehavior, appEntryKey: appEntryKey});
|
||||
}
|
||||
|
||||
function _fun33472(a0) { // fn#33472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:738, offset: 0x0102f637, size: 151 bytes, params: 2, frame: 20
|
||||
const r10 = importDefault ?? ({});
|
||||
showActionSheet({content: ((Component) => <Component {...env1_4(r10, env1_3)} />)(a0), key: require,
|
||||
impressionName: r10.impressionName, impressionProperties: r10.impressionProperties,
|
||||
backdropKind: r10.backdropKind, stackingBehavior: importAll, disableHapticOnOpen: r10.disableHapticOnOpen,
|
||||
appEntryKey: r10.appEntryKey});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 6276; source: modules/action_sheet/native/ActionSheetConstants.tsx; dependencies: [2] */
|
||||
function _fun49597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6454:6, offset: 0x011feab4, size: 280 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetConstants.tsx');
|
||||
exports.ACTION_SHEET_START_HEIGHT_RATIO = 0.6;
|
||||
exports.ACTION_SHEET_MAX_DYNAMIC_CONTENT_SIZE_RATIO = 0.85;
|
||||
exports.ACTION_SHEET_BORDER_RADIUS_LEGACY = 8;
|
||||
exports.ACTION_SHEET_BORDER_RADIUS_REDESIGN = 24;
|
||||
exports.ACTION_SHEET_INNER_BORDER_RADIUS_LEGACY = 6;
|
||||
exports.ACTION_SHEET_INNER_BORDER_RADIUS_REDESIGN = 22;
|
||||
exports.ACTION_SHEET_MAX_WIDTH = 500;
|
||||
exports.ACTION_SHEET_SPRING_CONFIG = {'damping': 17, 'stiffness': 240, 'mass': 0.5,
|
||||
'restDisplacementThreshold': 0.4};
|
||||
exports.ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION = {duration: 250};
|
||||
exports.ACTION_SHEET_BORDER_RADIUS = 24;
|
||||
exports.ACTION_SHEET_INNER_BORDER_RADIUS = 22;
|
||||
exports.ACTION_SHEET_GRADIENT_BORDER_WIDTH = 2;
|
||||
exports.ACTION_SHEET_GRADIENT_BORDER_RADIUS = 20;
|
||||
exports.ACTION_SHEET_HANDLE_PADDING = 8;
|
||||
exports.ACTION_SHEET_HANDLE_HEIGHT = 4;
|
||||
exports.ACTION_SHEET_HANDLE_SPACING = 20;
|
||||
exports.ACTION_SHEET_HANDLE_SPACING_REDESIGN = 12;
|
||||
exports.ACTION_SHEET_HANDLE_OVERHANG_REDESIGN = 8;
|
||||
exports.ACTION_SHEET_MINIMUM_BOTTOM_PADDING = 16;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 6513; source: modules/action_sheet/native/ActionSheetContext.tsx; dependencies: [31, 2] */
|
||||
function _fun51226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6691:6, offset: 0x0122c4e5, size: 106 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
value = value.createContext(null);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetContext.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
/* Metro module 3849; source: modules/action_sheet/native/ActionSheetStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun31752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:6, offset: 0x01002c62, size: 377 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Array = global.Array;
|
||||
let array = new Array();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun31759(Store).displayName = 'ActionSheetStore';
|
||||
array = new array(importDefault(694) /* metro dependency 694: Dispatcher */, {SHOW_ACTION_SHEET: function(a0) {
|
||||
setContent(a0);
|
||||
}, SHOW_ACTION_SHEET_QUICK_SWITCHER: function(a0) {
|
||||
var setContentBinding = setContent;
|
||||
var object = {key: 'QuickSwitcher'};
|
||||
copyDataProperties(object, a0, setContentBinding);
|
||||
setContentBinding(object);
|
||||
}, HIDE_ACTION_SHEET: function({key}) {
|
||||
clearContent(key);
|
||||
}, HIDE_ALL_ACTION_SHEETS: function() {
|
||||
env0_5 = [];
|
||||
}, HIDE_ACTION_SHEET_QUICK_SWITCHER: function() {
|
||||
clearContent('QuickSwitcher');
|
||||
}, SET_ACTION_SHEET_Z_INDEX: function(a0) {
|
||||
env0_6 = a0.zIndex;
|
||||
}, RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY: RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetStore.tsx');
|
||||
exports.default = array;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_31753() { // fn#31753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:148, offset: 0x01002ddb, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_31753_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function setContent({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, appEntryKey}) { // fn#31756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:395, offset: 0x01002e39, size: 226 bytes, params: 2, frame: 19
|
||||
var binding;
|
||||
var value4;
|
||||
var items3;
|
||||
var value5;
|
||||
var items2;
|
||||
stackingBehavior = stackingBehavior === undefined ? 'replaceTopSheet' : stackingBehavior;
|
||||
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
|
||||
const object2 = {content: content, key: key, impressionName: impressionName,
|
||||
impressionProperties: impressionProperties, backdropKind: backdropKind, appEntryKey: appEntryKey};
|
||||
object2.zIndex = env0_6;
|
||||
if (stackingBehavior === 'replaceAll') {
|
||||
items2 = [object2];
|
||||
} else if (stackingBehavior !== 'stack') {
|
||||
value4 = env0_5.slice(0, -1).concat(object2);
|
||||
} else if (env0_5.length < 3) {
|
||||
binding = env0_5;
|
||||
items3 = [];
|
||||
value5 = arraySpread(items3, binding, 0, content);
|
||||
items3[value5] = object2;
|
||||
value5 + 1;
|
||||
} else {
|
||||
value4 = env0_5.slice(0, -1).concat(object2);
|
||||
}
|
||||
}
|
||||
|
||||
function clearContent(a0) { // fn#31757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:730, offset: 0x01002f1b, size: 75 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
env0_5 = a0 == null ? env0_5.slice(0, -1) : env0_5;
|
||||
env0_5 = env0_5.filter(_fun31758);
|
||||
}
|
||||
|
||||
function _fun31759(a0) { // fn#31759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:791, offset: 0x01002f7b, size: 137 bytes, params: 2, frame: 16
|
||||
const closure = ActionSheetStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
}}, {key: 'impressionName', get: get_31766}, {key: 'impressionProperties', get: get_31767}, {key: 'backdropKind',
|
||||
get: get_31768}]);
|
||||
}
|
||||
|
||||
function RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY({appEntryKey}) { // fn#31775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:2184, offset: 0x0100322c, size: 67 bytes, params: 2, frame: 12
|
||||
if (env0_5.filter(function({appEntryKey}) {
|
||||
return appEntryKey !== appEntryKey;
|
||||
}).length === env0_5.length) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function ActionSheetStore(a0) { // fn#31760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:803, offset: 0x01003004, size: 172 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_0;
|
||||
binding(this, ActionSheetStore);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_3(ActionSheetStore);
|
||||
binding = env1_2;
|
||||
if (_isNativeReflectConstruct_31753()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_3(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.getContent = getContent;
|
||||
value.getStack = getStack;
|
||||
value.isOpen = isOpen_31763;
|
||||
value.getKey = getKey_31764;
|
||||
return value;
|
||||
}
|
||||
|
||||
function get_31766() { // fn#31766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1321, offset: 0x01003121, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return env1_5.at(-1)?.impressionName;
|
||||
}
|
||||
|
||||
function get_31767() { // fn#31767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1422, offset: 0x0100314c, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return env1_5.at(-1)?.impressionProperties;
|
||||
}
|
||||
|
||||
function get_31768() { // fn#31768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1521, offset: 0x01003177, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return env1_5.at(-1)?.backdropKind;
|
||||
}
|
||||
|
||||
function ActionSheetStoreGetContent() { // fn#31761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1050, owner: ActionSheetStore.getContent, offset: 0x010030b0, size: 42 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_5.at(-1)?.content;
|
||||
}
|
||||
|
||||
function ActionSheetStoreIsOpen() { // fn#31763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1131, owner: ActionSheetStore.isOpen, offset: 0x010030e3, size: 20 bytes, params: 1, frame: 2
|
||||
return env2_5.length > 0;
|
||||
}
|
||||
|
||||
function ActionSheetStoreGetKey() { // fn#31764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1155, owner: ActionSheetStore.getKey, offset: 0x010030f7, size: 42 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_5.at(-1)?.key;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,277 @@
|
||||
/* Metro module 12072; source: modules/action_sheet/native/PanGestureAnimations.tsx; dependencies: [1305, 4577, 4504, 4017, 5321, 2] */
|
||||
function _fun92743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:6, offset: 0x02097980, size: 349 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const object = {duration: 500};
|
||||
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
|
||||
object.easing = STANDARD_EASING;
|
||||
const env0_4 = {code: "function getNearestValue_PanGestureAnimationsTsx1(array,measure,velocity=0){const unitVector=velocity<0?-1:velocity>0?1:0;function getSortedByMeasure(array,measure){'worklet';const sorted=new Array(...array).sort(function(left,right){const al=Math.abs(left-measure);const ar=Math.abs(right-measure);return al<ar?-1:al>ar?1:0;});return sorted;}if(array.length===0){return measure;}const sorted=getSortedByMeasure(array,measure);if(unitVector!==0){var _sorted$find;return(_sorted$find=sorted.find(function(value){const result=unitVector<0?measure>value:measure<value;return result;}))!==null&&_sorted$find!==void 0?_sorted$find:sorted[0];}return sorted[0];}"};
|
||||
const env0_5 = {code: 'function getSortedByMeasure_PanGestureAnimationsTsx2(array,measure){const sorted=new Array(...array).sort(function(left,right){const al=Math.abs(left-measure);const ar=Math.abs(right-measure);return al<ar?-1:al>ar?1:0;});return sorted;}'};
|
||||
const env0_6 = _fun92744();
|
||||
const env0_7 = {code: 'function withPanGestureSpring_PanGestureAnimationsTsx3(destination,velocity,config){const{SPRING_CONFIG,withSpring}=this.__closure;const springConfig=config!==null&&config!==void 0?config:SPRING_CONFIG;return withSpring(destination,{...springConfig,velocity:velocity});}'};
|
||||
const value = _fun92750();
|
||||
const env0_9 = {code: 'function withPanGestureTiming_PanGestureAnimationsTsx4(destination,config){const{TIMING_CONFIG,withTiming}=this.__closure;const timingConfig=config!==null&&config!==void 0?config:TIMING_CONFIG;return withTiming(destination,timingConfig);}'};
|
||||
const value2 = _fun92752();
|
||||
const env0_11 = {code: 'function PanGestureAnimationsTsx5(){const{isGestureInProgress}=this.__closure;if(isGestureInProgress!=null){isGestureInProgress.set(false);}}'};
|
||||
const env0_12 = {code: 'function PanGestureAnimationsTsx6(event,success){const{start,translate,snapPositions,velocity,swipeVelocityThreshold,getNearestValue,withPanGestureSpring,withPanGestureTiming,onEnd}=this.__closure;start.set(translate.get());if(snapPositions!=null){var _onEnd;const swipeVelocity=Math.abs(velocity.get())>swipeVelocityThreshold?velocity.get():0;const snapPoint=getNearestValue(snapPositions.get(),translate.get(),swipeVelocity);if(swipeVelocity!==0){translate.set(withPanGestureSpring(snapPoint,velocity.get()));}else{translate.set(withPanGestureTiming(snapPoint));}(_onEnd=onEnd)===null||_onEnd===void 0||_onEnd(event,{success:success,destination:snapPoint,startPosition:start.get()});}}'};
|
||||
const env0_13 = {code: 'function PanGestureAnimationsTsx7(event){const{start,vertical,lowerBounds,upperBounds,velocity,translate,onChange}=this.__closure;var _onChange;const{velocityY:velocityY,translationY:translationY,velocityX:velocityX,translationX:translationX}=event;let next=start.get()+(vertical?translationY:translationX);if(lowerBounds!=null&&next<lowerBounds){next=lowerBounds;}else if(upperBounds!=null&&next>upperBounds){next=upperBounds;}velocity.set(vertical?velocityY:velocityX);translate.set(next);(_onChange=onChange)===null||_onChange===void 0||_onChange(event,{destination:translate.get(),startPosition:start.get()});}'};
|
||||
const env0_14 = {code: 'function PanGestureAnimationsTsx8(event){const{start,translate,velocity,isGestureInProgress,onStart}=this.__closure;var _onStart;start.set(translate.get());velocity.set(0);if(isGestureInProgress!=null){isGestureInProgress.set(true);}(_onStart=onStart)===null||_onStart===void 0||_onStart(event,{destination:start.get(),startPosition:start.get()});}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/PanGestureAnimations.tsx');
|
||||
exports.default = usePanGesture;
|
||||
exports.SPRING_CONFIG = {'damping': 30, 'mass': 1, 'stiffness': 250, 'overshootClamping': true,
|
||||
'restSpeedThreshold': 0.001, 'restDisplacementThreshold': 0.001};
|
||||
exports.TIMING_CONFIG = object;
|
||||
exports.withPanGestureSpring = value;
|
||||
exports.withPanGestureTiming = value2;
|
||||
}
|
||||
|
||||
function _fun92744() { // fn#92744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1173, offset: 0x02097add, size: 48 bytes, params: 1, frame: 2
|
||||
const closure = function(a0, a1) {
|
||||
var r2;
|
||||
var r4;
|
||||
var value = a2;
|
||||
var env0_0 = a1;
|
||||
r2 = value !== undefined ? value : 0;
|
||||
var env0_1 = undefined;
|
||||
value = 0;
|
||||
r4 = r2 < value ? -1 : r2 > value ? 1 : value;
|
||||
env0_1 = r4;
|
||||
var value4 = _fun92746();
|
||||
if (value === a0.length) {
|
||||
return a1;
|
||||
}
|
||||
var value5 = value4(a0, a1);
|
||||
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
|
||||
};
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 4186929947751;
|
||||
closure.__initData = env0_4;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function _fun92750() { // fn#92750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2041, offset: 0x02097c72, size: 88 bytes, params: 1, frame: 14
|
||||
const closure = withPanGestureSpring;
|
||||
const object2 = {};
|
||||
object2.SPRING_CONFIG = env0_2;
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 12189464558811;
|
||||
closure.__initData = env0_7;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function _fun92752() { // fn#92752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2604, offset: 0x02097d1b, size: 88 bytes, params: 1, frame: 14
|
||||
const closure = withPanGestureTiming;
|
||||
const object2 = {};
|
||||
object2.TIMING_CONFIG = env0_3;
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 7636074551896;
|
||||
closure.__initData = env0_9;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function usePanGesture({lowerBounds, upperBounds, snapPositions, swipeVelocityThreshold, translate, onStart, onChange, onEnd, vertical, isGestureInProgress}) { // fn#92754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:4831, offset: 0x02097dac, size: 554 bytes, params: 2, frame: 27
|
||||
swipeVelocityThreshold = swipeVelocityThreshold === undefined ? 300 : swipeVelocityThreshold;
|
||||
const env0_6 = onChange;
|
||||
vertical = vertical === undefined || vertical;
|
||||
const env0_8 = vertical;
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const env0_10 = value2;
|
||||
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const env0_11 = value3;
|
||||
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
|
||||
const value4 = Gesture.Pan();
|
||||
const onStart2 = value4.onStart;
|
||||
let closure = usePanGestureN;
|
||||
closure.__closure = {start: value2, translate: translate, velocity: value3,
|
||||
isGestureInProgress: isGestureInProgress, onStart: onStart};
|
||||
closure.__workletHash = 7008504704609;
|
||||
closure.__initData = env0_14;
|
||||
const value5 = Reflect.apply(onStart2, value4, [closure]);
|
||||
const onChange2 = value5.onChange;
|
||||
closure = usePanGestureC;
|
||||
closure.__closure = {start: value2, vertical: vertical, lowerBounds: lowerBounds, upperBounds: upperBounds,
|
||||
velocity: value3, translate: translate, onChange: onChange};
|
||||
closure.__workletHash = 15962975179371;
|
||||
closure.__initData = env0_13;
|
||||
const value6 = Reflect.apply(onChange2, value5, [closure]);
|
||||
const onEnd2 = value6.onEnd;
|
||||
closure = usePanGestureT;
|
||||
closure.__closure = {start: value2, translate: translate, snapPositions: snapPositions, velocity: value3,
|
||||
swipeVelocityThreshold: swipeVelocityThreshold, getNearestValue: env0_6, withPanGestureSpring: env0_8,
|
||||
withPanGestureTiming: env0_10, onEnd: onEnd};
|
||||
closure.__workletHash = 15665959414289;
|
||||
closure.__initData = env0_12;
|
||||
const value7 = Reflect.apply(onEnd2, value6, [closure]);
|
||||
const onFinalize = value7.onFinalize;
|
||||
closure = function() {
|
||||
if (isGestureInProgress != null) {
|
||||
isGestureInProgress.set(false);
|
||||
}
|
||||
};
|
||||
closure.__closure = {isGestureInProgress: isGestureInProgress};
|
||||
closure.__workletHash = 11128244755178;
|
||||
closure.__initData = env0_11;
|
||||
return Reflect.apply(onFinalize, value7, [closure]);
|
||||
}
|
||||
|
||||
function getNearestValue(a0, a1) { // fn#92745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1204, offset: 0x02097b0d, size: 123 bytes, params: 3, frame: 17
|
||||
let value = a2;
|
||||
const env0_0 = a1;
|
||||
const r2 = value !== undefined ? value : 0;
|
||||
value = 0;
|
||||
const r4 = r2 < value ? -1 : r2 > value ? 1 : value;
|
||||
const value4 = _fun92746();
|
||||
if (value === a0.length) {
|
||||
return a1;
|
||||
}
|
||||
const value5 = value4(a0, a1);
|
||||
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
|
||||
}
|
||||
|
||||
function withPanGestureSpring(a0, a1, a2) { // fn#92751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2077, offset: 0x02097cca, size: 81 bytes, params: 4, frame: 14
|
||||
const r0 = a2 ?? env1_2;
|
||||
value = environment.__proto__;
|
||||
value = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = value.withSpring;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, r0, undefined);
|
||||
object2['velocity'] = a1;
|
||||
return Reflect.apply(withSpring, value, [a0, object2]);
|
||||
}
|
||||
|
||||
function withPanGestureTiming(a0, a1) { // fn#92753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2640, offset: 0x02097d73, size: 57 bytes, params: 3, frame: 13
|
||||
const r3 = a1 ?? env1_3;
|
||||
value = environment.__proto__;
|
||||
return (require(4504) /* metro dependency 4504: timing */).withTiming(a0, r3);
|
||||
}
|
||||
|
||||
function usePanGestureN(a0) { // fn#92755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5115, owner: usePanGesture.N, offset: 0x02097fd6, size: 137 bytes, params: 2, frame: 14
|
||||
var object2;
|
||||
let binding = env0_10;
|
||||
const set = binding.set;
|
||||
const translateBinding = translate;
|
||||
const get = translateBinding.get;
|
||||
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
|
||||
env0_11.set(0);
|
||||
if (isGestureInProgress != null) {
|
||||
isGestureInProgress.set(true);
|
||||
}
|
||||
let onStartBinding = onStart;
|
||||
if (onStartBinding != null) {
|
||||
onStartBinding = onStart;
|
||||
object2 = {};
|
||||
binding = env0_10;
|
||||
object2.destination = binding.get();
|
||||
binding = env0_10;
|
||||
object2.startPosition = binding.get();
|
||||
onStartBinding(a0, object2);
|
||||
}
|
||||
}
|
||||
|
||||
function usePanGestureC(a0) { // fn#92756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5367, owner: usePanGesture.C, offset: 0x0209805f, size: 207 bytes, params: 2, frame: 18
|
||||
var object2;
|
||||
const velocityY = a0.velocityY;
|
||||
const translationY = a0.translationY;
|
||||
const velocityX = a0.velocityX;
|
||||
const translationX = a0.translationX;
|
||||
let binding = env0_10;
|
||||
const value3 = binding.get() + (vertical ? translationY : translationX);
|
||||
const r5 = lowerBounds == null ? upperBounds != null && value3 > upperBounds ? upperBounds : value3 : value3 < lowerBounds ? lowerBounds : upperBounds != null && value3 > upperBounds ? upperBounds : value3;
|
||||
binding = env0_11;
|
||||
binding.set(vertical ? velocityY : velocityX);
|
||||
translate.set(r5);
|
||||
let onChangeBinding = onChange;
|
||||
if (onChangeBinding != null) {
|
||||
onChangeBinding = onChange;
|
||||
object2 = {};
|
||||
object2.destination = translate.get();
|
||||
object2.startPosition = env0_10.get();
|
||||
onChangeBinding(a0, object2);
|
||||
}
|
||||
}
|
||||
|
||||
function usePanGestureT(a0, a1) { // fn#92757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5734, owner: usePanGesture.T, offset: 0x0209812e, size: 269 bytes, params: 3, frame: 19
|
||||
var r5;
|
||||
var Math;
|
||||
var abs;
|
||||
var value2;
|
||||
var swipeVelocityThresholdBinding;
|
||||
var value3;
|
||||
var value5;
|
||||
var value8;
|
||||
var binding2;
|
||||
var onEndBinding;
|
||||
var object2;
|
||||
let binding = env0_10;
|
||||
let set = binding.set;
|
||||
let translateBinding = translate;
|
||||
const get = translateBinding.get;
|
||||
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
|
||||
if (snapPositions != null) {
|
||||
Math = global.Math;
|
||||
abs = Math.abs;
|
||||
binding = env0_11;
|
||||
value2 = Reflect.apply(abs, Math, [binding.get()]);
|
||||
swipeVelocityThresholdBinding = swipeVelocityThreshold;
|
||||
value3 = 0;
|
||||
r5 = value2 > swipeVelocityThresholdBinding ? env0_11.get() : value3;
|
||||
value5 = environment.__proto__;
|
||||
binding = env1_6;
|
||||
value8 = binding(snapPositions.get(), translate.get(), r5);
|
||||
if (value3 !== r5) {
|
||||
translateBinding = translate;
|
||||
set = translateBinding.set;
|
||||
binding = env1_8;
|
||||
binding2 = env0_11;
|
||||
Reflect.apply(set, translateBinding, [binding(value8, binding2.get())]);
|
||||
} else {
|
||||
translate.set(env1_10(value8));
|
||||
}
|
||||
onEndBinding = onEnd;
|
||||
if (onEndBinding != null) {
|
||||
onEndBinding = onEnd;
|
||||
object2 = {success: a1, destination: value8};
|
||||
object2.startPosition = env0_10.get();
|
||||
onEndBinding(a0, object2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun92746() { // fn#92746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1245, offset: 0x02097b88, size: 48 bytes, params: 1, frame: 2
|
||||
const closure = function(a0, a1) {
|
||||
var r4;
|
||||
var env0_0 = a1;
|
||||
var Array = global.Array;
|
||||
var items = [];
|
||||
arraySpread(items, a0, 0, r4);
|
||||
return apply(Array, items, 0).sort(_fun92748);
|
||||
};
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 9192847351523;
|
||||
closure.__initData = env2_5;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function _fun92749(a0) { // fn#92749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1603, offset: 0x02097c4e, size: 36 bytes, params: 2, frame: 4
|
||||
return env0_1 < 0 ? require > a0 : require < a0;
|
||||
}
|
||||
|
||||
function getSortedByMeasure(a0, a1) { // fn#92747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1279, offset: 0x02097bb8, size: 63 bytes, params: 3, frame: 15
|
||||
const env0_0 = a1;
|
||||
const Array = global.Array;
|
||||
const items2 = [];
|
||||
arraySpread(items2, a0, 0, undefined);
|
||||
return apply(Array, items2, 0).sort(_fun92748);
|
||||
}
|
||||
|
||||
function _fun92748(a0, a1) { // fn#92748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1322, offset: 0x02097bf7, size: 87 bytes, params: 3, frame: 13
|
||||
let Math = global.Math;
|
||||
const value = Math.abs(a0 - require);
|
||||
Math = global.Math;
|
||||
const value2 = Math.abs(a1 - require);
|
||||
return value < value2 ? -1 : 0 > value2 ? 1 : 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 9213; source: modules/action_sheet/native/ShowShareActionSheetUtils.tsx; dependencies: [661, 683, 2] */
|
||||
function _fun72076(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9398:6, offset: 0x01d390ad, size: 120 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ShowShareActionSheetUtils.tsx');
|
||||
exports.trackAppClickInNativeShareSheet = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[1]);
|
||||
var NATIVE_SHARE_SHEET_APP_CLICKED = AnalyticEvents.NATIVE_SHARE_SHEET_APP_CLICKED;
|
||||
defaultImport.track(NATIVE_SHARE_SHEET_APP_CLICKED, {package_name: a0, location: a1});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 15267; source: modules/action_sheet/native/components/ActionSheetPresenter.tsx; dependencies: [2, 12766] */
|
||||
function _fun116728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15464:6, offset: 0x02495046, size: 96 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
|
||||
const ActionSheetPresenter = (require(12766) /* metro dependency 12766: ActionSheetPresenterNative */).ActionSheetPresenter;
|
||||
exports.default = ActionSheetPresenter;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 11710; source: modules/action_sheet/native/components/BottomSheetTextInput.tsx; dependencies: [2, 9101] */
|
||||
function _fun89775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11896:6, offset: 0x0201dd0d, size: 96 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
|
||||
const BottomSheetTextInput = (require(9101) /* metro dependency 9101: BottomSheetTextInputNative */).BottomSheetTextInput;
|
||||
exports.default = BottomSheetTextInput;
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* Metro module 11205; source: modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */
|
||||
function _fun85621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:6, offset: 0x01f75f5b, size: 199 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({headerContainer: {'paddingVertical': 12,
|
||||
'paddingHorizontal': 16, 'alignItems': 'flex-start'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
|
||||
exports.default = ContextMenuSubmenuActionSheetHeader;
|
||||
}
|
||||
|
||||
function ContextMenuSubmenuActionSheetHeader({onBack}) { // fn#85622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:363, offset: 0x01f76022, size: 158 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const ActionSheetHeaderPressableText = (require(9067) /* metro dependency 9067: ActionSheetHeaderPressableTextNative */).ActionSheetHeaderPressableText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.headerContainer}>
|
||||
<ActionSheetHeaderPressableText
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
onPress={onBack ?? (function() {
|
||||
})}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
/* Metro module 11409; source: modules/action_sheet/native/components/EmojiRow.tsx; dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */
|
||||
function _fun87405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:6, offset: 0x01fbd6cb, size: 252 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emojiRowContainer: {'flexDirection': 'column',
|
||||
'justifyContent': 'center', 'alignItems': 'center'}, emojiRow: {'height': 52, 'alignSelf': 'stretch',
|
||||
'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center', 'marginTop': 0,
|
||||
'marginBottom': 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRow.tsx');
|
||||
exports.default = _default_87406;
|
||||
}
|
||||
|
||||
function _default_87406({message, channel}) { // fn#87406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:440, offset: 0x01fbd7c7, size: 527 bytes, params: 2, frame: 24
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const EMOJI_ROW_EMOJI_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
|
||||
const env0_2 = Reflect.apply(useToken, useTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
|
||||
const moduleValue2 = useTokenModule;
|
||||
useToken = moduleValue2.useToken;
|
||||
const EMOJI_ROW_EMOJI_FONT_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
|
||||
const env0_3 = Reflect.apply(useToken, moduleValue2, [EMOJI_ROW_EMOJI_FONT_SIZE]);
|
||||
const moduleValue3 = useTokenModule;
|
||||
useToken = moduleValue3.useToken;
|
||||
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
|
||||
const env0_4 = Reflect.apply(useToken, moduleValue3, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
|
||||
const moduleValue4 = useTokenModule;
|
||||
useToken = moduleValue4.useToken;
|
||||
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
|
||||
const value2 = Reflect.apply(useToken, moduleValue4, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
|
||||
const moduleValue5 = useTokenModule;
|
||||
useToken = moduleValue5.useToken;
|
||||
const EMOJI_ROW_EMOJI_MIN_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
|
||||
const value4 = (require(10998) /* metro dependency 10998: useEmojisForReactionRow */).useEmojisForReactionRow(channel,
|
||||
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, moduleValue5, [EMOJI_ROW_EMOJI_MIN_SPACING]));
|
||||
const styles = useStyles();
|
||||
const value5 = value4.map(_fun87407);
|
||||
const EmojiPickerRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiPickerRowButton;
|
||||
const view = <View style={styles.emojiRow}>{value5}<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} /></View>;
|
||||
const DoubleTapEmojiEditNudge = (require(11410) /* metro dependency 11410: DoubleTapEmojiEditNudge */).DoubleTapEmojiEditNudge;
|
||||
const MESSAGE_LONG_PRESS_MENU = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).MESSAGE_LONG_PRESS_MENU;
|
||||
return (
|
||||
<View style={styles.emojiRowContainer}>
|
||||
{view}
|
||||
<DoubleTapEmojiEditNudge location={MESSAGE_LONG_PRESS_MENU} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87407(a0, a1) { // fn#87407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:966, offset: 0x01fbd9d6, size: 134 bytes, params: 3, frame: 20
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
const EmojiReactionRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiReactionRowButton;
|
||||
const emojiReactionRowButtonProps = {emoji: a0, onPress: onPress_87408, emojiSize: env0_2, emojiFontSize: env0_3,
|
||||
emojiLineHeight: env0_4, emojiContainerSize: env0_5};
|
||||
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
|
||||
const getEmojiKey = value.getEmojiKey;
|
||||
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
|
||||
}
|
||||
|
||||
function _default_87406OnPress() { // fn#87409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1486, owner: _default_87406.onPress, offset: 0x01fbdb4c, size: 80 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(9837) /* metro dependency 9837: ReactionUtils */;
|
||||
const handleAddNewReactions = value.handleAddNewReactions;
|
||||
const channelBinding = channel;
|
||||
const id = message.id;
|
||||
const ReactionLocations = (require(7151) /* metro dependency 7151: ReactionActionCreators */).ReactionLocations;
|
||||
const MESSAGE = ReactionLocations.MESSAGE;
|
||||
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
|
||||
}
|
||||
|
||||
function onPress_87408() { // fn#87408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1024, offset: 0x01fbda5c, size: 240 bytes, params: 1, frame: 22
|
||||
var moduleValue;
|
||||
var moduleValue2;
|
||||
var addReaction;
|
||||
var channel_id;
|
||||
var id;
|
||||
var moduleValue3;
|
||||
var focusMessage;
|
||||
let value = environment.__proto__;
|
||||
const messageBinding = message;
|
||||
const binding = env0_0;
|
||||
value = environment.__proto__.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
if (binding != null) {
|
||||
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
moduleValue.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
|
||||
moduleValue2 = require(7151) /* metro dependency 7151: ReactionActionCreators */;
|
||||
addReaction = moduleValue2.addReaction;
|
||||
channel_id = messageBinding.channel_id;
|
||||
id = messageBinding.id;
|
||||
moduleValue3 = require(3795) /* metro dependency 3795: ReactionUtils */;
|
||||
Reflect.apply(addReaction, moduleValue2, [channel_id, id, moduleValue3.toReactionEmoji(binding)]);
|
||||
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
||||
focusMessage = value.focusMessage;
|
||||
channel_id = messageBinding.channel_id;
|
||||
id = messageBinding.id;
|
||||
Reflect.apply(focusMessage, value, [{channelId: channel_id, messageId: id}]);
|
||||
value = require(8217) /* metro dependency 8217: DoubleTapToReactUtils */;
|
||||
value.initializeDoubleTapEmojiAndUpsell(binding);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 11408; source: modules/action_sheet/native/components/EmojiRowUtils.tsx; dependencies: [661, 1391, 2] */
|
||||
function _fun87403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:6, offset: 0x01fbd5ac, size: 137 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_2 = constantsModule.MessageFlags;
|
||||
const env0_3 = constantsModule.MessageStates;
|
||||
const env0_4 = constantsModule.MessageTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRowUtils.tsx');
|
||||
exports.shouldShowEmojiRow = shouldShowEmojiRow;
|
||||
}
|
||||
|
||||
function shouldShowEmojiRow(a0, a1, a2) { // fn#87404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:269, offset: 0x01fbd635, size: 150 bytes, params: 4, frame: 15
|
||||
var moduleValue;
|
||||
let r0 = a0 && a2 && a1.state !== MessageStates.SEND_FAILED;
|
||||
r0 = r0 && a1.state !== MessageStates.SENDING && a1.type !== MessageTypes.THREAD_STARTER_MESSAGE;
|
||||
if (r0) {
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r0 = !moduleValue.hasFlag(a1.flags, MessageFlags.EPHEMERAL);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,527 @@
|
||||
/* Metro module 11233; source: modules/action_sheet/native/components/LongPressForumPostActionSheet.tsx; dependencies: [31, 3785, 3786, 6898, 1226, 1867, 661, 1386, 33, 11234, 1244, 8999, 5097, 4054, 7153, 9216, 4076, 4066, 11237, 6705, 9646, 11007, 21, 6789, 7002, 8148, 11239, 4080, 11161, 1962, 4056, 9835, 10629, 10936, 11241, 11243, 11245, 4647, 4071, 7067, 1305, 8772, 6797, 3856, 566, 6896, 6860, 9619, 3829, 4805, 11247, 6819, 6805, 1581, 11251, 6807, 2] */
|
||||
function _fun85864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6, offset: 0x01f7f806, size: 292 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
|
||||
const joinedThreadsStore = importDefault(3786) /* metro dependency 3786: JoinedThreadsStore */;
|
||||
const threadMessageStore = importDefault(6898) /* metro dependency 6898: ThreadMessageStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = constantsModule.AnalyticsObjectTypes;
|
||||
const env0_9 = constantsModule.AnalyticsObjects;
|
||||
const env0_10 = constantsModule.AnalyticsSections;
|
||||
const env0_11 = constantsModule.ChannelSettingsSections;
|
||||
const env0_12 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags;
|
||||
const env0_13 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/LongPressForumPostActionSheet.tsx');
|
||||
exports.default = ForumPostLongPressActionSheet;
|
||||
}
|
||||
|
||||
function ForumPostLongPressActionSheet({thread, parentChannel, onClose}) { // fn#85865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:420, offset: 0x01f7f92a, size: 860 bytes, params: 2, frame: 35
|
||||
const env0_2 = thread.getGuildId();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun85866);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([JoinedThreadsStore], function() {
|
||||
return JoinedThreadsStore.hasJoined(thread.id);
|
||||
});
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([JoinedThreadsStore], function() {
|
||||
return JoinedThreadsStore.isMuted(thread.id);
|
||||
});
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LurkingStore], _fun85869);
|
||||
const forumPostDataLoaderModule = require(6896) /* metro dependency 6896: ForumPostDataLoader */;
|
||||
const useFirstForumPostMessage = forumPostDataLoaderModule.useFirstForumPostMessage;
|
||||
const firstMessage = Reflect.apply(useFirstForumPostMessage, forumPostDataLoaderModule, [thread]).firstMessage;
|
||||
const value6 = (require(6860) /* metro dependency 6860: ThreadHooks */).useIsThreadModerator(parentChannel);
|
||||
const value7 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanManageThread(thread);
|
||||
const value8 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanUnarchiveThread(thread);
|
||||
const value9 = (require(9619) /* metro dependency 9619: ForumHooks */).useExistingPin(thread);
|
||||
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThreadMessageStore], _fun85870);
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
const value11 = DeveloperMode.useSetting();
|
||||
const id2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
|
||||
return AuthenticationStore.getId();
|
||||
});
|
||||
const id = firstMessage == null ? undefined : firstMessage.author.id;
|
||||
const value12 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(thread, true);
|
||||
const value13 = (importDefault(11247) /* metro dependency 11247: useMobileChannelFavoriteActions */)(thread,
|
||||
'ForumPostLongPressActionSheet');
|
||||
const r8 = guild != null ? ((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.LARGE} channel={thread} />)((require(1305) /* metro dependency 1305: native */).Avatar);
|
||||
const value16 = _fun85872({thread: thread, parentChannel: parentChannel, hasJoinedPost: value3, muted: value4,
|
||||
isModerator: value6, isAuthor: id2 === id, canManageThread: value7, developerModeEnabled: value11,
|
||||
existingPin: value9, messageCount: value10, canUnarchiveThread: value8, isLurking: value5, favorites: value13});
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const actionSheetProps = {showGradient: true,
|
||||
startExpanded: (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()};
|
||||
const ActionSheetIconHeader = (require(11251) /* metro dependency 11251: ActionSheetIconHeaderNative */).ActionSheetIconHeader;
|
||||
actionSheetProps.header = <ActionSheetIconHeader title={value12} icon={r8} />;
|
||||
return (
|
||||
<ActionSheet {...actionSheetProps}>
|
||||
{value16.map(_fun85893)}
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85866() { // fn#85866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:555, offset: 0x01f7fc86, size: 27 bytes, params: 1, frame: 11
|
||||
return GuildStore.getGuild(env0_2);
|
||||
}
|
||||
|
||||
function _fun85869() { // fn#85869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:726, offset: 0x01f7fce1, size: 40 bytes, params: 1, frame: 12
|
||||
return env0_2 != null && LurkingStore.isLurking(env0_2);
|
||||
}
|
||||
|
||||
function _fun85870() { // fn#85870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:976, offset: 0x01f7fd09, size: 46 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return ThreadMessageStore.getCount(thread.id) ?? 0;
|
||||
}
|
||||
|
||||
function _fun85872({thread, hasJoinedPost, muted, isModerator, isAuthor, canManageThread, developerModeEnabled, existingPin, parentChannel, messageCount, canUnarchiveThread, isLurking, favorites}) { // fn#85872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:1351, offset: 0x01f7fd37, size: 2281 bytes, params: 2, frame: 36
|
||||
var r10;
|
||||
var buttons;
|
||||
var object;
|
||||
const BellIcon = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon;
|
||||
var object2;
|
||||
var object18;
|
||||
var object19;
|
||||
var object21;
|
||||
var object22;
|
||||
var object23;
|
||||
var object24;
|
||||
var object25;
|
||||
var object26;
|
||||
var object27;
|
||||
const PinIcon = (require(11245) /* metro dependency 11245: PinIcon */).PinIcon;
|
||||
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
|
||||
var object28;
|
||||
const items2 = [];
|
||||
const archived = thread.threadMetadata?.archived;
|
||||
const locked = thread.threadMetadata?.locked;
|
||||
const hasFlag = thread.hasFlag;
|
||||
const PINNED = ChannelFlags.PINNED;
|
||||
const hasFlag2 = Reflect.apply(hasFlag, thread, [PINNED]);
|
||||
const value3 = (importDefault(11234) /* metro dependency 11234: buildFavoritesSectionButtonsNative */)(favorites);
|
||||
if (value3 != null) {
|
||||
items2.push({sectionKey: 'favorites', buttons: [value3]});
|
||||
}
|
||||
let push = items2.push;
|
||||
const object29 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object29.label = Reflect.apply(string, intl, [t.e6RscS]);
|
||||
const EyeIcon = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon;
|
||||
object29.IconComponent = EyeIcon;
|
||||
object29.onPress = function() {
|
||||
require(dependencyMap[12]).ack(thread.id, {object: AnalyticsObjects.MARK_FORUM_POST_AS_READ_BUTTON,
|
||||
objectType: AnalyticsObjectTypes.ACK_MANUAL}, true, true);
|
||||
};
|
||||
Reflect.apply(push, items2, [{sectionKey: 'mark-as-read', buttons: [object29]}]);
|
||||
const object30 = {sectionKey: 'channel-actions', buttons: []};
|
||||
if (!isLurking) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object = {};
|
||||
string = intl.string;
|
||||
if (hasJoinedPost) {
|
||||
object.label = Reflect.apply(string, intl, [t['2LsZdT']]);
|
||||
object.IconComponent = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon;
|
||||
object.onPress = onPress_85874;
|
||||
Reflect.apply(push, buttons, [object]);
|
||||
} else {
|
||||
object.label = Reflect.apply(string, intl, [t.ihLPiO]);
|
||||
object.IconComponent = BellIcon;
|
||||
object.onPress = onPress_85875;
|
||||
Reflect.apply(push, buttons, [object]);
|
||||
}
|
||||
}
|
||||
if (archived) {
|
||||
if (canUnarchiveThread) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object18 = {};
|
||||
object18.label = intl.string(t.cnRubV);
|
||||
object18.IconComponent = (require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon;
|
||||
object18.onPress = onPress_85876;
|
||||
Reflect.apply(push, buttons, [object18]);
|
||||
}
|
||||
} else if (canManageThread) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object2 = {};
|
||||
object2.label = intl.string(t.BTs4Kb);
|
||||
object2.IconComponent = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
|
||||
object2.onPress = onPress_85877;
|
||||
Reflect.apply(push, buttons, [object2]);
|
||||
}
|
||||
if (canManageThread) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object19 = {};
|
||||
string = intl.string;
|
||||
if (locked) {
|
||||
object19.label = Reflect.apply(string, intl, [t['/OKSxp']]);
|
||||
object19.IconComponent = (require(11237) /* metro dependency 11237: LockUnlockedIcon */).LockUnlockedIcon;
|
||||
object19.onPress = onPress_85878;
|
||||
Reflect.apply(push, buttons, [object19]);
|
||||
} else {
|
||||
object19.label = Reflect.apply(string, intl, [t['Ur/0Na']]);
|
||||
object19.IconComponent = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
|
||||
object19.onPress = onPress_85879;
|
||||
Reflect.apply(push, buttons, [object19]);
|
||||
}
|
||||
}
|
||||
const value4 = !isModerator;
|
||||
if (isAuthor && !(isModerator ? value4 : thread.isLockedThread())) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object21 = {};
|
||||
object21.label = intl.string(t.NP1yHG);
|
||||
object21.IconComponent = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
|
||||
object21.onPress = onPress_85880;
|
||||
Reflect.apply(push, buttons, [object21]);
|
||||
}
|
||||
if (canManageThread) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object22 = {};
|
||||
object22.label = intl.string(t.SGuVbR);
|
||||
object22.IconComponent = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
|
||||
object22.onPress = onPress_85881;
|
||||
Reflect.apply(push, buttons, [object22]);
|
||||
if (parentChannel.availableTags.length > 0) {
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
object23 = {};
|
||||
object23.label = intl.string(t['436ZFw']);
|
||||
object23.IconComponent = (require(11239) /* metro dependency 11239: TagsIcon */).TagsIcon;
|
||||
object23.onPress = onPress_85882;
|
||||
Reflect.apply(push, buttons, [object23]);
|
||||
}
|
||||
}
|
||||
buttons = object30.buttons;
|
||||
push = buttons.push;
|
||||
const object31 = {};
|
||||
string = intl.string;
|
||||
const WqhZss = t.WqhZss;
|
||||
object31.label = Reflect.apply(string, intl, [WqhZss]);
|
||||
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
object31.IconComponent = LinkIcon;
|
||||
object31.onPress = function() {
|
||||
var moduleValue = require(dependencyMap[31]);
|
||||
var {guild_id, id} = thread;
|
||||
moduleValue.handleCopyLinkForumPost(guild_id, id, {section: AnalyticsSections.CONTEXT_MENU});
|
||||
};
|
||||
Reflect.apply(push, buttons, [object31]);
|
||||
items2.push(object30);
|
||||
if (!isLurking) {
|
||||
object24 = {sectionKey: 'notifications', buttons: []};
|
||||
buttons = object24.buttons;
|
||||
push = buttons.push;
|
||||
object25 = {};
|
||||
string = intl.string;
|
||||
if (muted) {
|
||||
object25.label = Reflect.apply(string, intl, [t['0JQfsP']]);
|
||||
object25.IconComponent = BellIcon;
|
||||
object25.onPress = onPress_85884;
|
||||
Reflect.apply(push, buttons, [object25]);
|
||||
} else {
|
||||
object25.label = Reflect.apply(string, intl, [t['nP+Ykd']]);
|
||||
object25.IconComponent = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon;
|
||||
object25.onPress = onPress_85885;
|
||||
Reflect.apply(push, buttons, [object25]);
|
||||
}
|
||||
buttons = object24.buttons;
|
||||
push = buttons.push;
|
||||
object26 = {};
|
||||
object26.label = intl.string(t.HcoRu0);
|
||||
object26.IconComponent = (require(11241) /* metro dependency 11241: ChannelNotificationIcon */).ChannelNotificationIcon;
|
||||
object26.onPress = onPress_85886;
|
||||
object26.disableColor = true;
|
||||
Reflect.apply(push, buttons, [object26]);
|
||||
items2.push(object24);
|
||||
}
|
||||
const object32 = {sectionKey: 'admin-actions', buttons: []};
|
||||
if (isModerator) {
|
||||
buttons = object32.buttons;
|
||||
push = buttons.push;
|
||||
object27 = {};
|
||||
string = intl.string;
|
||||
if (hasFlag2) {
|
||||
object27.label = Reflect.apply(string, intl, [t.trD8ao]);
|
||||
object27.IconComponent = PinIcon;
|
||||
object27.onPress = onPress_85887;
|
||||
Reflect.apply(push, buttons, [object27]);
|
||||
} else {
|
||||
object27.label = Reflect.apply(string, intl, [t.EnaWhu]);
|
||||
object27.IconComponent = PinIcon;
|
||||
object27.onPress = onPress_85888;
|
||||
Reflect.apply(push, buttons, [object27]);
|
||||
}
|
||||
}
|
||||
if (isModerator) {
|
||||
r10 = isAuthor && value4;
|
||||
r10 = r10 && messageCount > 0;
|
||||
buttons = object32.buttons;
|
||||
push = buttons.push;
|
||||
string = intl.string;
|
||||
r10 = r10 ? Reflect.apply(string, intl, [t.xwMqD7]) : Reflect.apply(string, intl, [t.nEOg1N]);
|
||||
Reflect.apply(push, buttons, [{label: r10, IconComponent: TrashIcon, onPress: onPress_85890}]);
|
||||
} else if (isAuthor) {
|
||||
r10 = isAuthor && value4;
|
||||
r10 = r10 && messageCount > 0;
|
||||
buttons = object32.buttons;
|
||||
push = buttons.push;
|
||||
string = intl.string;
|
||||
r10 = r10 ? Reflect.apply(string, intl, [t.xwMqD7]) : Reflect.apply(string, intl, [t.nEOg1N]);
|
||||
Reflect.apply(push, buttons, [{label: r10, IconComponent: TrashIcon, onPress: onPress_85890}]);
|
||||
}
|
||||
items2.push(object32);
|
||||
if (developerModeEnabled) {
|
||||
push = items2.push;
|
||||
object28 = {};
|
||||
object28.label = intl.string(t.DQ797g);
|
||||
object28.IconComponent = (require(8772) /* metro dependency 8772: IdIcon */).IdIcon;
|
||||
object28.onPress = onPress_85892;
|
||||
Reflect.apply(push, items2, [{sectionKey: 'developer-actions', buttons: [object28]}]);
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun85893({sectionKey, buttons}) { // fn#85893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6486, offset: 0x01f80efc, size: 97 bytes, params: 2, frame: 18
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const Group = ActionSheetRow.Group;
|
||||
return (
|
||||
<Group hasIcons key={sectionKey}>
|
||||
{buttons.map(_fun85894)}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_85874() { // fn#85874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2132, offset: 0x01f8067b, size: 52 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
return value.leaveThread(thread, 'Context Menu');
|
||||
}
|
||||
|
||||
function onPress_85875() { // fn#85875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2280, offset: 0x01f806af, size: 52 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
return value.joinThread(thread, 'Context Menu');
|
||||
}
|
||||
|
||||
function onPress_85876() { // fn#85876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2426, offset: 0x01f806e3, size: 48 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
value.unarchiveThread(thread, false);
|
||||
}
|
||||
|
||||
function onPress_85877() { // fn#85877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2570, offset: 0x01f80713, size: 48 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
value.archiveThread(thread, false);
|
||||
}
|
||||
|
||||
function onPress_85878() { // fn#85878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2724, offset: 0x01f80743, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
value.unlockThread(thread);
|
||||
}
|
||||
|
||||
function onPress_85879() { // fn#85879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2860, offset: 0x01f80770, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
value.lockThread(thread);
|
||||
}
|
||||
|
||||
function onPress_85880() { // fn#85880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3041, offset: 0x01f8079d, size: 210 bytes, params: 1, frame: 18
|
||||
const forumComposerModalActionCreatorsModule = require(11007) /* metro dependency 11007: ForumComposerModalActionCreators */;
|
||||
const openCreateForumPostModal = forumComposerModalActionCreatorsModule.openCreateForumPostModal;
|
||||
const object2 = {};
|
||||
const parentChannelBinding = parentChannel;
|
||||
object2.guildId = parentChannelBinding.guild_id;
|
||||
object2.parentChannelId = parentChannelBinding.id;
|
||||
const threadBinding = thread;
|
||||
object2.threadId = threadBinding.id;
|
||||
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
object2.messageId = defaultImport.castChannelIdAsMessageId(threadBinding.id);
|
||||
object2.isEdit = true;
|
||||
const FORUM_CHANNEL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).FORUM_CHANNEL;
|
||||
const items2 = [FORUM_CHANNEL];
|
||||
const GUILD_CHANNEL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_CHANNEL;
|
||||
items2[1] = GUILD_CHANNEL;
|
||||
object2.analyticsLocations = items2;
|
||||
const CHANNEL_LIST = AnalyticsSections.CHANNEL_LIST;
|
||||
const CONTEXT_MENU = AnalyticsObjects.CONTEXT_MENU;
|
||||
object2.analyticsLocationObject = {section: CHANNEL_LIST, object: CONTEXT_MENU};
|
||||
Reflect.apply(openCreateForumPostModal, forumComposerModalActionCreatorsModule, [object2]);
|
||||
}
|
||||
|
||||
function onPress_85881() { // fn#85881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3451, offset: 0x01f8086f, size: 80 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
||||
const setSection = defaultImport.setSection;
|
||||
const OVERVIEW = ChannelSettingsSections.OVERVIEW;
|
||||
Reflect.apply(setSection, defaultImport, [OVERVIEW]);
|
||||
value = defaultImport;
|
||||
value.open(thread.id);
|
||||
}
|
||||
|
||||
function onPress_85882() { // fn#85882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3644, offset: 0x01f808bf, size: 112 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[27]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[29]);
|
||||
value = value(dependencyMap[28], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostTagsActionSheet', {thread: thread,
|
||||
parentChannel: parentChannel, canManageThread: canManageThread}]);
|
||||
}
|
||||
|
||||
function onPress_85884() { // fn#85884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4121, offset: 0x01f80979, size: 60 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
return value.setNotificationSettings(thread, {muted: !muted});
|
||||
}
|
||||
|
||||
function onPress_85885() { // fn#85885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4285, offset: 0x01f809b5, size: 135 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[27]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[29]);
|
||||
value = value(dependencyMap[33], dependencyMap.paths);
|
||||
const threadBinding = thread;
|
||||
const value3 = 'muteSettings' + threadBinding.id;
|
||||
const object2 = {};
|
||||
object2.guildId = threadBinding.getGuildId();
|
||||
object2.channelId = threadBinding.id;
|
||||
Reflect.apply(openLazy, defaultImport, [value, value3, object2]);
|
||||
}
|
||||
|
||||
function onPress_85886() { // fn#85886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4516, offset: 0x01f80a3c, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(11243) /* metro dependency 11243: threadActionSheets */;
|
||||
return value.showThreadNotificationsBottomSheet(thread);
|
||||
}
|
||||
|
||||
function onPress_85887() { // fn#85887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4751, offset: 0x01f80a69, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
return value.unpin(thread);
|
||||
}
|
||||
|
||||
function onPress_85888() { // fn#85888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4877, offset: 0x01f80a96, size: 319 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
var show;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (existingPin != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport2.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.IMbjxo);
|
||||
object2.body = intl.string(t['mi5+Vl']);
|
||||
object2.cancelText = intl.string(t.gm1Vej);
|
||||
object2.confirmText = intl.string(t.p89ACt);
|
||||
object2.onConfirm = onConfirm_85889;
|
||||
Reflect.apply(show, defaultImport2, [object2]);
|
||||
} else {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
defaultImport.pin(thread);
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_85890() { // fn#85890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5336, offset: 0x01f80c07, size: 561 bytes, params: 1, frame: 22
|
||||
var r7;
|
||||
var r8;
|
||||
var value7;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value2 = Reflect.apply(string, intl, [t.nEOg1N]);
|
||||
const format = intl.format;
|
||||
const su3voL = t.su3voL;
|
||||
let object2 = {};
|
||||
object2.postName = '"' + thread.name + '"';
|
||||
if (env0_7) {
|
||||
value7 = intl.string(t.xwMqD7);
|
||||
r7 = intl.string(t.RUHcyk);
|
||||
r8 = value7;
|
||||
} else if (isAuthor && !isModerator) {
|
||||
r7 = intl.format(t['6/pY2+'], {postName: '"' + thread.name + '"'});
|
||||
r8 = value2;
|
||||
} else {
|
||||
r7 = Reflect.apply(format, intl, [su3voL, object2]);
|
||||
r8 = value2;
|
||||
}
|
||||
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
object2 = {title: r8, body: r7};
|
||||
object2.cancelText = intl.string(t.gm1Vej);
|
||||
object2.confirmText = intl.string(t.p89ACt);
|
||||
object2.onConfirm = onConfirm_85891;
|
||||
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
|
||||
const RED = ButtonColors.RED;
|
||||
object2.confirmColor = RED;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function onPress_85892() { // fn#85892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6071, offset: 0x01f80eb4, size: 72 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
value.copy(thread.id);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentPostIdCopied();
|
||||
}
|
||||
|
||||
function _fun85894({label, IconComponent, onPress, disableColor, isDestructive}, a1) { // fn#85894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6575, offset: 0x01f80f5d, size: 290 bytes, params: 3, frame: 23
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let r7 = label === intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nEOg1N) || label === intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xwMqD7);
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
r7 = r7 ? 'danger' : isDestructive !== true ? undefined : 'danger';
|
||||
const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const Icon = ActionSheetRow2.Icon;
|
||||
return (
|
||||
<ActionSheetRow
|
||||
variant={r7}
|
||||
icon={<Icon IconComponent={IconComponent} disableColor={disableColor} />}
|
||||
label={label}
|
||||
onPress={function() {
|
||||
onPress();
|
||||
onClose();
|
||||
}}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_85888OnConfirm() { // fn#85889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5113, owner: onPress_85888.onConfirm, offset: 0x01f80bd5, size: 50 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
||||
value.replacePin(existingPin, thread);
|
||||
}
|
||||
|
||||
function onPress_85890OnConfirm() { // fn#85891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5765, owner: onPress_85890.onConfirm, offset: 0x01f80e38, size: 124 bytes, params: 1, frame: 17
|
||||
var defaultImport;
|
||||
var threadBinding;
|
||||
var id;
|
||||
var defaultImport2;
|
||||
var deleteMessage;
|
||||
let value = environment.__proto__;
|
||||
if (env1_7) {
|
||||
defaultImport2 = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
||||
deleteMessage = defaultImport2.deleteMessage;
|
||||
threadBinding = thread;
|
||||
id = threadBinding.id;
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
Reflect.apply(deleteMessage, defaultImport2, [id, value.castChannelIdAsMessageId(threadBinding.id)]);
|
||||
} else {
|
||||
defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
||||
defaultImport.deleteChannel(thread.id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/* Metro module 11163; source: modules/action_sheet/native/components/PublishModal.tsx; dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */
|
||||
function _fun85239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:6, offset: 0x01f6886c, size: 288 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.ActivityIndicator;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_300_LIGHT_PRIMARY_400;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{alertContainer: {paddingTop: 16},
|
||||
alertLoading: {'paddingTop': 62, 'paddingBottom': 46}, alertBodyText: {'marginBottom': 16, 'fontSize': 16,
|
||||
'lineHeight': 24, color: DARK_PRIMARY_300_LIGHT_PRIMARY_400}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/PublishModal.tsx');
|
||||
exports.default = PublishModal;
|
||||
}
|
||||
|
||||
function PublishModal({channelId}) { // fn#85240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:480, offset: 0x01f6898c, size: 393 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
const value4 = env0_3((importDefault(11164) /* metro dependency 11164: useChannelFollowerStats */)(channelId), 2);
|
||||
const property = value4[0];
|
||||
if (value4[1]) {
|
||||
return (
|
||||
<View style={styles.alertLoading}>
|
||||
<ActivityIndicator animating />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
const r6 = property?.guildsFollowing != null && property?.guildsFollowing > 0;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const legacyTextProps = {style: styles.alertBodyText};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
if (r6) {
|
||||
legacyTextProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.GCGrNP,
|
||||
{numGuildsFollowing: property?.guildsFollowing ?? 0});
|
||||
} else {
|
||||
legacyTextProps.children = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8FpqOs']);
|
||||
}
|
||||
return (
|
||||
<View style={styles.alertContainer}>
|
||||
<LegacyText {...legacyTextProps} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 11232; source: modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx; dependencies: [4080, 11233, 1962, 2] */
|
||||
function _fun85862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:6, offset: 0x01f7f716, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx');
|
||||
exports.default = showLongPressForumPostActionSheet;
|
||||
}
|
||||
|
||||
function showLongPressForumPostActionSheet(a0, a1) { // fn#85863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:212, offset: 0x01f7f77d, size: 137 bytes, params: 3, frame: 17
|
||||
let value = a2;
|
||||
const r1 = value !== undefined ? value : importDefault(dependencyMap[0]).hideActionSheet;
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostLongPressActionSheet', {thread: a0, parentChannel: a1,
|
||||
onClose: r1}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 9212; source: modules/action_sheet/native/showShareActionSheet.android.tsx; dependencies: [27, 9213, 2] */
|
||||
function _fun72073(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:6, offset: 0x01d38f96, size: 174 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const {NativeEventEmitter, NativeModules} = require(27) /* metro dependency 27 */;
|
||||
let ShareManager = NativeModules.ShareManager;
|
||||
new NativeEventEmitter(ShareManager).addListener('share-broadcast-receiver-app-clicked', _fun72074);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/showShareActionSheet.android.tsx');
|
||||
exports.showShareActionSheet = function(a0, a1) {
|
||||
var ShareManager = NativeModules.ShareManager;
|
||||
ShareManager.share(a0.message, a0.url, a0.subject, a1);
|
||||
};
|
||||
}
|
||||
|
||||
function _fun72074({app, location}) { // fn#72074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:221, offset: 0x01d39044, size: 53 bytes, params: 2, frame: 14
|
||||
(require(9213) /* metro dependency 9213: ShowShareActionSheetUtils */).trackAppClickInNativeShareSheet(app,
|
||||
location);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 6802; source: modules/action_sheet/native/showSimpleActionSheet.tsx; dependencies: [2, 6803] */
|
||||
function _fun53542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6980:6, offset: 0x0134e57a, size: 96 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/showSimpleActionSheet.tsx');
|
||||
exports.showSimpleActionSheet = (require(6803) /* metro dependency 6803: showSimpleActionSheetNative */).showSimpleActionSheet;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 11023; source: modules/action_sheet/native/useActionSheetStartHeight.tsx; dependencies: [6276, 1478, 2] */
|
||||
function _fun84424(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11209:6, offset: 0x01f49f24, size: 120 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_START_HEIGHT_RATIO;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useActionSheetStartHeight.tsx');
|
||||
exports.default = function() {
|
||||
return importDefault(dependencyMap[1])().height * ACTION_SHEET_START_HEIGHT_RATIO;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Metro module 11621; source: modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx; dependencies: [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283, 2] */
|
||||
function _fun89082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:6, offset: 0x01ffe1b4, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx');
|
||||
exports.default = useCustomKeyboardBottomSheetConfig;
|
||||
}
|
||||
|
||||
function useCustomKeyboardBottomSheetConfig({forceMaxHeight, enablePanDownToClose}) { // fn#89083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:227, offset: 0x01ffe23d, size: 334 bytes, params: 2, frame: 23
|
||||
var object2;
|
||||
forceMaxHeight = !(forceMaxHeight === undefined) && forceMaxHeight;
|
||||
enablePanDownToClose = !(enablePanDownToClose === undefined) && enablePanDownToClose;
|
||||
const value5 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true});
|
||||
const {minimum, maximum} = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)();
|
||||
const env0_3 = maximum;
|
||||
const {initialPosition,
|
||||
animateOnMount} = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun89084);
|
||||
const value8 = env0_3.useMemo(function() {
|
||||
return forceMaxHeight ? [maximum, maximum] : [minimum, maximum];
|
||||
}, [forceMaxHeight, maximum, minimum]);
|
||||
object2 = {animateOnMount: animateOnMount, enablePanDownToClose: enablePanDownToClose};
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
object2.accessible = isAndroid2 ? undefined : !!isAndroid2;
|
||||
object2.contentHeight = maximum;
|
||||
object2.containerHeight = value5.height;
|
||||
object2.enableDynamicSizing = false;
|
||||
object2.initialPosition = initialPosition;
|
||||
object2.keyboardBehavior = 'extend';
|
||||
object2.android_keyboardInputMode = (require(11283) /* metro dependency 11283: useSafeAreaBottomKeyboardInfoController */).IS_SYSTEM_KEYBOARD_EXTERNAL ? 'adjustResize' : undefined;
|
||||
object2.snapPoints = value8;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89084() { // fn#89084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:402, offset: 0x01ffe38b, size: 211 bytes, params: 1, frame: 16
|
||||
var r1;
|
||||
var r0;
|
||||
const object2 = {initialPosition: env0_1.height - minimum, animateOnMount: false};
|
||||
let value = environment.__proto__;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
r0 = object2;
|
||||
} else if (AccessibilityStore.useReducedMotion) {
|
||||
r0 = object2;
|
||||
} else {
|
||||
if ((require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight() !== 0) {
|
||||
r1 = object2;
|
||||
} else {
|
||||
value = require(4022) /* metro dependency 4022: useKeyboardType */;
|
||||
value = value.getKeyboardTypePrevious();
|
||||
r1 = value !== (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM ? object2 : {animateOnMount: true};
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 11577; source: modules/action_sheet/native/useKeyboardActionSheetHeight.tsx; dependencies: [5314, 1585, 1478, 5466, 2] */
|
||||
function _fun88647(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:6, offset: 0x01fed635, size: 127 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const computeKeyboardActionSheetHeight = function(a0, a1, a2) {
|
||||
var value = a2;
|
||||
var value4 = a1.height - require(dependencyMap[0]).NAV_BAR_HEIGHT_MULTILINE - a0.top;
|
||||
return {minimum: value, maximum: value >= value4 ? value : value4};
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useKeyboardActionSheetHeight.tsx');
|
||||
exports.default = useKeyboardActionSheetHeight;
|
||||
exports.getKeyboardActionSheetHeight = getKeyboardActionSheetHeight;
|
||||
}
|
||||
|
||||
function useKeyboardActionSheetHeight() { // fn#88649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:344, offset: 0x01fed702, size: 84 bytes, params: 1, frame: 18
|
||||
return computeKeyboardActionSheetHeight((importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)(),
|
||||
(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}),
|
||||
(importDefault(5466) /* metro dependency 5466: useCustomKeyboardHeight */)());
|
||||
}
|
||||
|
||||
function getKeyboardActionSheetHeight() { // fn#88650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:506, offset: 0x01fed756, size: 102 bytes, params: 1, frame: 19
|
||||
const computeKeyboardActionSheetHeightBinding = computeKeyboardActionSheetHeight;
|
||||
let value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
|
||||
value = value.getSafeAreaInsets();
|
||||
const windowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions({ignoreKeyboard: true});
|
||||
const useCustomKeyboardHeightModule = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
|
||||
const getCustomKeyboardHeight = useCustomKeyboardHeightModule.getCustomKeyboardHeight;
|
||||
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
|
||||
useCustomKeyboardHeightModule, []));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* Metro module 12651; source: modules/activate_device/ActivateDeviceUtils.tsx; dependencies: [661, 9363, 2] */
|
||||
function _fun96995(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12841:6, offset: 0x0216f494, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/ActivateDeviceUtils.tsx');
|
||||
exports.clientIdToActivateDevicePlatform = function(a0) {
|
||||
return a0 === require(dependencyMap[1]).ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID ? PlatformTypes.PLAYSTATION : a0 !== require(dependencyMap[1]).ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID ? null : PlatformTypes.PLAYSTATION_STAGING;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
/* Metro module 12649; source: modules/activate_device/native/ActivateDevice.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 12650, 12652, 8870, 9363, 12653, 4121, 12654, 5475, 12655, 12659, 12660, 1423, 12661, 6618, 2] */
|
||||
function _fun96982(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:6, offset: 0x0216ebb0, size: 467 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ImageBackground;
|
||||
const env0_7 = value.ActivityIndicator;
|
||||
const env0_8 = value.ScrollView;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.background = {flex: 1};
|
||||
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
|
||||
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover', backgroundColor: TEXT_BRAND};
|
||||
object2.safeArea = {'flex': 1, 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const object3 = {'maxWidth': 480, 'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'borderRadius': null, 'padding': 24, 'marginHorizontal': 24, 'marginVertical': 36, 'shadowColor': null,
|
||||
'shadowOpacity': 0.2};
|
||||
const PANEL_BG = (importDefault(697) /* metro dependency 697: native */).colors.PANEL_BG;
|
||||
object3.backgroundColor = PANEL_BG;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object3.shadowColor = BLACK;
|
||||
object3.shadowOffset = {'width': 0, 'height': 4};
|
||||
object3.shadowRadius = 4;
|
||||
object2.content = object3;
|
||||
object2.scroller = {'alignSelf': 'stretch', 'flexGrow': 0};
|
||||
object2.scrollerContent = {'flexDirection': 'column', 'gap': 16};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDevice.tsx');
|
||||
exports.ActivateDevice = ActivateDevice;
|
||||
}
|
||||
|
||||
function ActivateDevice({onClose, prefilledUserCode}) { // fn#96983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:879, offset: 0x0216ed83, size: 815 bytes, params: 2, frame: 29
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [{'type': 'user-code-input', 'usePrefilledCode': true}]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const property2 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property3 = value6[0];
|
||||
var env0_3 = value6[1];
|
||||
(require(12650) /* metro dependency 12650: useActivateDeviceStepTracking */).useActivateDeviceStepTracking(property);
|
||||
let useCallback = binding.useCallback;
|
||||
const value7 = Reflect.apply(useCallback, binding, [_fun96984, [property2]]);
|
||||
const value8 = binding.useCallback(_fun96985, [property2]);
|
||||
useCallback = binding.useCallback;
|
||||
const value11 = binding.useCallback(_fun96987,
|
||||
[(require(12652) /* metro dependency 12652: useDeviceCodeAuthorizeCallback */).useDeviceCodeAuthorizeCallback(value7,
|
||||
Reflect.apply(useCallback, binding, [_fun96986, [property2]]), value8)]);
|
||||
binding.useEffect(_fun96989, [property]);
|
||||
binding.useEffect(_fun96991, [property3]);
|
||||
const type = property.type;
|
||||
const r10 = type === 'user-code-input' ? ((UserCodeInput) => <UserCodeInput prefilledUserCode={property.usePrefilledCode ? prefilledUserCode : undefined} onUserCodeAccepted={value11} onClose={onClose} />)((require(12655) /* metro dependency 12655: UserCodeInput */).UserCodeInput) : type === 'authorization' ? <ActivityIndicator animating /> : type === 'success' ? ((ActivateDeviceSuccess) => <ActivateDeviceSuccess onComplete={onClose} data={property.userCodeData} successImage={property3} />)((require(12659) /* metro dependency 12659: ActivateDeviceSuccess */).ActivateDeviceSuccess) : type !== 'error' ? null : ((ActivateDeviceError) => <ActivateDeviceError onRetry={value7} />)((require(12660) /* metro dependency 12660: ActivateDeviceError */).ActivateDeviceError);
|
||||
object2 = {};
|
||||
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
object2.source = avatarUtilsModule.makeSource(importDefault(12661) /* metro dependency 12661: mobile_backgroundJpg */);
|
||||
object2.imageStyle = styles.imageStyle;
|
||||
object2.style = [styles.background];
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
return (
|
||||
<ImageBackground {...object2}>
|
||||
<SafeAreaPaddingView
|
||||
bottom
|
||||
top
|
||||
style={styles.safeArea}
|
||||
>
|
||||
<View style={styles.content}>
|
||||
<ScrollView
|
||||
bounces={false}
|
||||
style={styles.scroller}
|
||||
contentContainerStyle={styles.scrollerContent}
|
||||
>
|
||||
{r10}
|
||||
</ScrollView>
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
</ImageBackground>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun96984() { // fn#96984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1113, offset: 0x0216f0b2, size: 28 bytes, params: 1, frame: 11
|
||||
env0_1({type: 'user-code-input'});
|
||||
}
|
||||
|
||||
function _fun96985(a0) { // fn#96985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1170, offset: 0x0216f0ce, size: 34 bytes, params: 2, frame: 11
|
||||
env0_1({type: 'success', userCodeData: a0});
|
||||
}
|
||||
|
||||
function _fun96986(a0) { // fn#96986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1233, offset: 0x0216f0f0, size: 34 bytes, params: 2, frame: 11
|
||||
env0_1({type: 'error', userCodeData: a0});
|
||||
}
|
||||
|
||||
function _fun96987(a0) { // fn#96987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1342, offset: 0x0216f112, size: 124 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
env0_1({type: 'authorization', userCodeData: a0});
|
||||
const value = environment.__proto__;
|
||||
(require(8870) /* metro dependency 8870: ApplicationUtils */).openOAuth2Modal({'clientId': null, 'scopes': null,
|
||||
'responseType': 'code', 'isTrustedName': true, 'isEmbeddedFlow': true, 'withBackPressHandler': false,
|
||||
clientId: a0.clientId, scopes: a0.scopes, callbackWithoutPost: callbackWithoutPost});
|
||||
}
|
||||
|
||||
function _fun96989() { // fn#96989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1586, offset: 0x0216f1a9, size: 213 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
var userCodeData;
|
||||
var value2;
|
||||
const ConsoleOAuthApplications = (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications;
|
||||
var items2;
|
||||
var scopes;
|
||||
if ('userCodeData' in env0_0) {
|
||||
userCodeData = env0_0.userCodeData;
|
||||
value2 = environment.__proto__;
|
||||
items2 = [ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID];
|
||||
items2[1] = ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID;
|
||||
if (items2.includes(userCodeData.clientId)) {
|
||||
env0_3(importDefault(12653) /* metro dependency 12653: ps_link_success_illustration2xPng */);
|
||||
} else {
|
||||
scopes = userCodeData.scopes;
|
||||
if (scopes.some(_fun96990)) {
|
||||
env0_3(importDefault(12654) /* metro dependency 12654: social_layer_link_success_illustration2xPng */);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun96991() { // fn#96991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1891, offset: 0x0216f2a7, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_2 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(5475) /* metro dependency 5475: FastImage */).preload(env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function callbackWithoutPost(a0) { // fn#96988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1547, offset: 0x0216f18e, size: 27 bytes, params: 2, frame: 13
|
||||
return env1_4(env0_0, a0);
|
||||
}
|
||||
|
||||
function _fun96990(a0) { // fn#96990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1813, offset: 0x0216f27e, size: 41 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (require(4121) /* metro dependency 4121: scopes */).isSocialLayerUmbrellaScope(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 12660; source: modules/activate_device/native/ActivateDeviceError.tsx; dependencies: [31, 27, 33, 4501, 9370, 12658, 4573, 1244, 4578, 2] */
|
||||
function _fun97026(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:6, offset: 0x0217082f, size: 235 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = value.Fragment;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 254,
|
||||
'height': 127, 'alignSelf': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceError.tsx');
|
||||
exports.ActivateDeviceError = ActivateDeviceError;
|
||||
}
|
||||
|
||||
function ActivateDeviceError({onRetry}) { // fn#97027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:357, offset: 0x0217091a, size: 468 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
const items2 = [<Image source={importDefault(9370) /* metro dependency 9370 */} style={styles.image} />];
|
||||
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const centerText = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <View style={innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3dgwPD'])}</Text><Text variant="text-md/medium" color="text-default" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/GAO1P'])}</Text></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5911Lb'])} onPress={onRetry} grow />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 12648; source: modules/activate_device/native/ActivateDeviceModal.tsx; dependencies: [31, 33, 12647, 5277, 8160, 1244, 12649, 5280, 2] */
|
||||
function _fun96973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:6, offset: 0x0216e90c, size: 160 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {ACTIVATE_DEVICE: 'activate-device'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModal.tsx');
|
||||
exports.default = ActivateDeviceModal;
|
||||
}
|
||||
|
||||
function ActivateDeviceModal({userCode}) { // fn#96974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:285, offset: 0x0216e9ac, size: 162 bytes, params: 2, frame: 18
|
||||
const value2 = env0_3.useMemo(function() {
|
||||
return _fun96976(userCode);
|
||||
}, [userCode]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const ACTIVATE_DEVICE = env0_5.ACTIVATE_DEVICE;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value2}
|
||||
initialRouteName={ACTIVATE_DEVICE}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun96975() { // fn#96975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:345, offset: 0x0216ea4e, size: 25 bytes, params: 1, frame: 11
|
||||
return getScreens_96976(userCode);
|
||||
}
|
||||
|
||||
function getScreens_96976(a0) { // fn#96976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:349, offset: 0x0216ea67, size: 99 bytes, params: 2, frame: 5
|
||||
const env0_0 = a0;
|
||||
const ACTIVATE_DEVICE = env2_5.ACTIVATE_DEVICE;
|
||||
return {[ACTIVATE_DEVICE]: {fullscreen: true, headerTitle: function() {
|
||||
return null;
|
||||
}, headerLeft: headerLeft_96979, headerRight: function() {
|
||||
return null;
|
||||
}, render: render_96981}};
|
||||
}
|
||||
|
||||
function getScreens_96976OnClose() { // fn#96977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:384, owner: getScreens_96976.onClose, offset: 0x0216eaca, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (importDefault(12647) /* metro dependency 12647: ActivateDeviceModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function getScreens_96976HeaderLeft() { // fn#96979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:482, owner: getScreens_96976.headerLeft, offset: 0x0216eaef, size: 127 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */,
|
||||
onPress: getScreens_96976OnClose};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function getScreens_96976Render() { // fn#96981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:634, owner: getScreens_96976.render, offset: 0x0216eb6e, size: 66 bytes, params: 1, frame: 15
|
||||
const ActivateDevice = (require(12649) /* metro dependency 12649: ActivateDevice */).ActivateDevice;
|
||||
return <ActivateDevice onClose={getScreens_96976OnClose} prefilledUserCode={env0_0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 12647; source: modules/activate_device/native/ActivateDeviceModalActionCreators.tsx; dependencies: [5080, 12648, 1962, 2] */
|
||||
function _fun96970(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:6, offset: 0x0216e80e, size: 122 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {showModal: showModal_96971, hideModal: hideModal_96972};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function showModal_96971(a0) { // fn#96971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:129, offset: 0x0216e888, size: 89 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {userCode: a0}, 'ACTIVATE_DEVICE_MODAL_KEY']);
|
||||
}
|
||||
|
||||
function hideModal_96972() { // fn#96972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:198, offset: 0x0216e8e1, size: 43 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('ACTIVATE_DEVICE_MODAL_KEY');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 12658; source: modules/activate_device/native/ActivateDeviceSharedStyles.tsx; dependencies: [2] */
|
||||
function _fun97022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12848:6, offset: 0x02170406, size: 114 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSharedStyles.tsx');
|
||||
exports.default = {innerContent: {'flexDirection': 'column', 'gap': 8, 'alignItems': 'center'},
|
||||
centerText: {textAlign: 'center'}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 12659; source: modules/activate_device/native/ActivateDeviceSuccess.tsx; dependencies: [31, 27, 33, 4501, 1244, 4121, 5475, 1423, 12658, 4573, 4578, 2] */
|
||||
function _fun97023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:6, offset: 0x02170478, size: 225 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = value.Fragment;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 300,
|
||||
'height': 200, 'alignSelf': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSuccess.tsx');
|
||||
exports.ActivateDeviceSuccess = ActivateDeviceSuccess;
|
||||
}
|
||||
|
||||
function ActivateDeviceSuccess({data, onComplete, successImage}) { // fn#97024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:348, offset: 0x02170559, size: 685 bytes, params: 2, frame: 31
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const r16 = data.twoWayLinkCode != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.QhATl2) : data.scopes.some(_fun97025) ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vBPvK3) : null;
|
||||
const jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
const items2 = [successImage != null ? ((Component) => <Component source={(require(1423) /* metro dependency 1423: AvatarUtils */).makeSource(successImage)} style={styles.image} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */) : null];
|
||||
items2[1] = <View style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qDtJmD)}</Text>{r16 != null ? <Text variant="text-md/medium" color="text-default" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{r16}</Text> : null}</View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onComplete} grow />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun97025(a0) { // fn#97025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:491, offset: 0x02170806, size: 41 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(4121) /* metro dependency 4121: scopes */).isSocialLayerUmbrellaScope(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Metro module 12655; source: modules/activate_device/native/UserCodeInput.tsx; dependencies: [57, 31, 27, 12656, 33, 4501, 12657, 12658, 4573, 1244, 7981, 4578, 2] */
|
||||
function _fun97013(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:6, offset: 0x0216fc5b, size: 262 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(12656) /* metro dependency 12656: OAuthConstants */).OAuthConstants;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {textAlign: 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/UserCodeInput.tsx');
|
||||
exports.UserCodeInput = UserCodeInput;
|
||||
}
|
||||
|
||||
function UserCodeInput({onClose, onUserCodeAccepted, prefilledUserCode}) { // fn#97014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:347, offset: 0x0216fd61, size: 695 bytes, params: 2, frame: 33
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const value4 = env0_3(Reflect.apply(useState, binding, [prefilledUserCode ?? '']), 2);
|
||||
const property = value4[0];
|
||||
const env0_0 = value4[1];
|
||||
const {manualSubmit, error,
|
||||
submitting} = (require(12657) /* metro dependency 12657: useUserCodeSubmit */).useUserCodeSubmit(property,
|
||||
onUserCodeAccepted, onClose);
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const KYPNUv = t.KYPNUv;
|
||||
const items2 = [<View style={innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.text}>{Reflect.apply(string,
|
||||
intl,
|
||||
[KYPNUv])}</Text><Text variant="text-md/medium" color="text-default" style={styles.text}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xRHk7f)}</Text></View>];
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const object = {onChange: onChange_97015};
|
||||
let USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
|
||||
object.maxLength = USER_CODE_LENGTH;
|
||||
object.value = property;
|
||||
object.autoFocus = true;
|
||||
object.autoComplete = 'off';
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property2 = (require(1244) /* metro dependency 1244: indexNative */).t['0tbz6x'];
|
||||
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
|
||||
object.placeholder = Reflect.apply(formatToPlainString, intl, [property2, {number: USER_CODE_LENGTH}]);
|
||||
object.errorMessage = error;
|
||||
items2[1] = <TextInput {...object} />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const length = property.length;
|
||||
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
|
||||
items2[2] = <Button size="lg" text={Reflect.apply(string, intl,
|
||||
[t['3PatSz']])} onPress={manualSubmit} loading={submitting} disabled={length !== USER_CODE_LENGTH} grow />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 12650; source: modules/activate_device/useActivateDeviceStepTracking.tsx; dependencies: [31, 661, 6266, 12651, 683, 2] */
|
||||
function _fun96992(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:6, offset: 0x0216f2e0, size: 143 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/useActivateDeviceStepTracking.tsx');
|
||||
exports.useActivateDeviceStepTracking = useActivateDeviceStepTracking;
|
||||
}
|
||||
|
||||
function useActivateDeviceStepTracking(a0) { // fn#96993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:254, offset: 0x0216f36f, size: 79 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
env0_3.useEffect(_fun96994, [(importDefault(6266) /* metro dependency 6266: usePrevious */)(a0), a0]);
|
||||
}
|
||||
|
||||
function _fun96994() { // fn#96994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:326, offset: 0x0216f3be, size: 214 bytes, params: 1, frame: 18
|
||||
var r0;
|
||||
var r4;
|
||||
var type;
|
||||
var value4;
|
||||
var value5;
|
||||
var moduleValue;
|
||||
var value7;
|
||||
var value8;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var DEVICE_LINK_STEP;
|
||||
var object2;
|
||||
if (env0_0 !== env0_1) {
|
||||
type = env0_0.type;
|
||||
r0 = type !== 'user-code-input' && env0_0.type !== 'handoff';
|
||||
value4 = null;
|
||||
if (r0) {
|
||||
value5 = environment.__proto__;
|
||||
moduleValue = require(12651) /* metro dependency 12651: ActivateDeviceUtils */;
|
||||
r4 = moduleValue.clientIdToActivateDevicePlatform(env0_0.userCodeData.clientId);
|
||||
} else {
|
||||
r4 = value4;
|
||||
}
|
||||
value7 = environment.__proto__;
|
||||
value8 = undefined;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
DEVICE_LINK_STEP = AnalyticEvents.DEVICE_LINK_STEP;
|
||||
object2 = {};
|
||||
type = value4 == env0_1 ? value8 : env0_1.type;
|
||||
object2.previous_step = type;
|
||||
type = env0_0.type;
|
||||
object2.current_step = type;
|
||||
object2.platform_type = r4;
|
||||
Reflect.apply(track, defaultImport, [DEVICE_LINK_STEP, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,760 @@
|
||||
/* Metro module 12652; source: modules/activate_device/useDeviceCodeAuthorizeCallback.tsx; dependencies: [5, 31, 12651, 5042, 9338, 44, 5043, 9347, 2] */
|
||||
function _fun96997(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:6, offset: 0x0216f570, size: 170 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const silentlyFinishTwoWayLinkError = function() {
|
||||
return _silentlyFinishTwoWayLinkError.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/useDeviceCodeAuthorizeCallback.tsx');
|
||||
exports.useDeviceCodeAuthorizeCallback = useDeviceCodeAuthorizeCallback;
|
||||
}
|
||||
|
||||
function _createTwoWayLink() { // fn#96998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:118, offset: 0x0216f61a, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun97000).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _silentlyFinishTwoWayLinkError() { // fn#97002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1296, offset: 0x0216f92b, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun97004).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useDeviceCodeAuthorizeCallback(a0, a1, a2) { // fn#97005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1614, offset: 0x0216f9b7, size: 72 bytes, params: 4, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
return env0_4.useCallback(_fun97006(), [a0, a1, a2]);
|
||||
}
|
||||
|
||||
function* _fun97000(a0, a1, a2) { // fn#97000, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:175, offset: 0x0216f657, size: 724 bytes, params: 4, frame: 34
|
||||
var code;
|
||||
var r7;
|
||||
var r4;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var clientIdToActivateDevicePlatform;
|
||||
var value5;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var authorize;
|
||||
var object2;
|
||||
var value7;
|
||||
var TwoWayLinkType;
|
||||
var DEVICE_CODE;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var body;
|
||||
var url;
|
||||
var binding3;
|
||||
var value11;
|
||||
var value12;
|
||||
var binding4;
|
||||
var value13;
|
||||
var getCallbackParamsFromURL;
|
||||
var value14;
|
||||
var state;
|
||||
var value15;
|
||||
var value16;
|
||||
var binding5;
|
||||
var value17;
|
||||
var callback;
|
||||
var value18;
|
||||
var value19;
|
||||
var value20;
|
||||
var error;
|
||||
var value21;
|
||||
var value22;
|
||||
var Error;
|
||||
var prototype;
|
||||
var value23;
|
||||
var value24;
|
||||
var value25;
|
||||
exceptionSkip75: while (true) {
|
||||
exceptionLanding75: while (true) {
|
||||
exceptionSkip70: while (true) {
|
||||
exceptionLanding70: while (true) {
|
||||
exceptionSkip62: while (true) {
|
||||
exceptionLanding62: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = undefined;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
value4 = binding(env2_2[2]);
|
||||
clientIdToActivateDevicePlatform = value4.clientIdToActivateDevicePlatform;
|
||||
value5 = Reflect.apply(clientIdToActivateDevicePlatform, value4, [a0]);
|
||||
if (value5 == null) {
|
||||
yield env2_6(a2, 1, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('Unsupported client_id for two way link');
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
authorize = value6.authorize;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
TwoWayLinkType = value7.TwoWayLinkType;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
DEVICE_CODE = TwoWayLinkType.DEVICE_CODE;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
object2.twoWayLinkType = DEVICE_CODE;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
object2.userCode = a2;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(authorize, value6, [value5, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
if (value10) {
|
||||
return value9;
|
||||
}
|
||||
try {
|
||||
body = value9.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
url = body.url;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
property = binding3[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value11 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value12 = url != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value11(value12, 'No URL in authorize response');
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value13 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
getCallbackParamsFromURL = value13.getCallbackParamsFromURL;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value14 = Reflect.apply(getCallbackParamsFromURL, value13, [url]);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
state = value14.state;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
property = binding3[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value15 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value16 = state != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value15(value16, 'Authorize URL state query parameter must be present');
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
binding5 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
property = binding5[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
value17 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
callback = value17.callback;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
object2.code = a1;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
object2.state = state;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
value18 = Reflect.apply(callback, value17, [value5, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
yield value18;
|
||||
try {
|
||||
value19 = undefined;
|
||||
value20 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
return value20 ? value19 : value;
|
||||
break exceptionSkip62;
|
||||
}
|
||||
binding = env2_6;
|
||||
if (error == null) {
|
||||
code = value;
|
||||
value21 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'callback');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
yield binding(a2, value21, 'callback');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
body = error.body;
|
||||
if (body == null) {
|
||||
code = value;
|
||||
value21 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'callback');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
yield binding(a2, value21, 'callback');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
code = body.code;
|
||||
value21 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'callback');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
r7 = value21;
|
||||
yield binding(a2, r7, 'callback');
|
||||
value = undefined;
|
||||
value22 = false;
|
||||
if (value22) {
|
||||
return value;
|
||||
}
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('error during two way callback');
|
||||
value = error instanceof Object ? error : value;
|
||||
throw value;
|
||||
break exceptionSkip62;
|
||||
}
|
||||
break exceptionSkip70;
|
||||
}
|
||||
yield env2_6(a2, 2, 'authorize');
|
||||
value = undefined;
|
||||
value23 = false;
|
||||
if (value23) {
|
||||
return value;
|
||||
}
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('error parsing callback params');
|
||||
value = error instanceof Object ? error : value;
|
||||
throw value;
|
||||
break exceptionSkip70;
|
||||
}
|
||||
break exceptionSkip75;
|
||||
}
|
||||
binding = env2_6;
|
||||
if (error == null) {
|
||||
code = value;
|
||||
value24 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
yield binding(a2, value24, 'authorize');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
body = error.body;
|
||||
if (body == null) {
|
||||
code = value;
|
||||
value24 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
yield binding(a2, value24, 'authorize');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
code = body.code;
|
||||
value24 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
r4 = value24;
|
||||
yield binding(a2, r4, 'authorize');
|
||||
value = undefined;
|
||||
value25 = false;
|
||||
if (value25) {
|
||||
return value;
|
||||
}
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('error during two way authorize');
|
||||
value = error instanceof Object ? error : value;
|
||||
throw value;
|
||||
break exceptionSkip75;
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun97004(a0, a1, a2) { // fn#97004, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1379, offset: 0x0216f968, size: 79 bytes, params: 4, frame: 17
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var finishUserCodeTwoWayLinkError;
|
||||
var value3;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
finishUserCodeTwoWayLinkError = value.finishUserCodeTwoWayLinkError;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(finishUserCodeTwoWayLinkError, value, [a0, a1, a2]);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun97006() { // fn#97006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1681, offset: 0x0216f9ff, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun97008);
|
||||
return _fun97010;
|
||||
}
|
||||
|
||||
function* _fun97008(a0, a1) { // fn#97008, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1701, offset: 0x0216fa2e, size: 321 bytes, params: 3, frame: 17
|
||||
var environment;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var finishUserCode;
|
||||
var userCode;
|
||||
var value3;
|
||||
var error;
|
||||
var twoWayLinkCode;
|
||||
var clientId;
|
||||
var closure;
|
||||
var value4;
|
||||
var binding3;
|
||||
var value5;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (a1) {
|
||||
twoWayLinkCode = a0.twoWayLinkCode;
|
||||
if (twoWayLinkCode == null) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[7];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
finishUserCode = value.finishUserCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
userCode = a0.userCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(finishUserCode, value, [userCode, 'granted']);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
if (value5) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
dependencyMap(a0);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
clientId = a0.clientId;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
twoWayLinkCode = a0.twoWayLinkCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
userCode = a0.userCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
closure = createTwoWayLink;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = closure(clientId, twoWayLinkCode, userCode);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value4 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
if (value4) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
dependencyMap(a0);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
finishUserCode = value.finishUserCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
userCode = a0.userCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(finishUserCode, value, [userCode, 'denied']);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
}
|
||||
}
|
||||
|
||||
function createTwoWayLink() { // fn#97009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1836, offset: 0x0216fb6f, size: 30 bytes, params: 1, frame: 13
|
||||
return env4_5.apply(this, arguments);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,552 @@
|
||||
/* Metro module 14490; source: modules/active_channels/ActiveChannelsActionCreators.tsx; dependencies: [5, 661, 694, 507, 4132, 2] */
|
||||
function _fun109669(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14687:6, offset: 0x02356358, size: 151 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/active_channels/ActiveChannelsActionCreators.tsx');
|
||||
exports.fetchActiveChannels = function() {
|
||||
return _fetchActiveChannels.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _fetchActiveChannels() { // fn#109670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14687:128, offset: 0x023563ef, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun109672).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun109672(a0) { // fn#109672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14687:191, offset: 0x02356435, size: 381 bytes, params: 2, frame: 24
|
||||
var channels;
|
||||
var r11;
|
||||
var binding2;
|
||||
var property;
|
||||
var value7;
|
||||
var HTTP;
|
||||
var get;
|
||||
var ACTIVE_CHANNELS;
|
||||
var value8;
|
||||
var object3;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var body;
|
||||
var value12;
|
||||
var value13;
|
||||
var binding3;
|
||||
var value14;
|
||||
var error;
|
||||
var binding4;
|
||||
var value15;
|
||||
var prototype;
|
||||
var value16;
|
||||
var value17;
|
||||
var value18;
|
||||
let value = a1;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const value4 = undefined;
|
||||
const r1 = value !== value4 ? value : 10;
|
||||
await value4;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_1;
|
||||
binding(env2_2[2]).dispatch({type: 'ACTIVE_CHANNELS_FETCH_START', guildId: a0});
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
HTTP = value7.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
ACTIVE_CHANNELS = binding.ACTIVE_CHANNELS;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(ACTIVE_CHANNELS, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object.url = value8;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.channel_limit = r1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object.query = object3;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object.rejectWithError = true;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value9 = Reflect.apply(get, HTTP, [object]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
await value9;
|
||||
try {
|
||||
value10 = undefined;
|
||||
value11 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
if (!value11) {
|
||||
try {
|
||||
body = value10.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value12 = body == null;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
if (value12) {
|
||||
channels = value4;
|
||||
} else {
|
||||
try {
|
||||
channels = body.channels;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
try {
|
||||
value13 = channels != null;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
if (value13) {
|
||||
r11 = channels;
|
||||
} else {
|
||||
try {
|
||||
object = [];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
r11 = object;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding3[2];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value14 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
dispatch = value14.dispatch;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object.type = 'ACTIVE_CHANNELS_FETCH_SUCCESS';
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object.guildId = a0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object.channels = r11;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value14, [object]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[2]);
|
||||
dispatch = value.dispatch;
|
||||
value15 = binding(binding4[4]);
|
||||
prototype = value15.prototype;
|
||||
value16 = Object.create(prototype, {constructor: {value: value15}});
|
||||
value17 = new value15();
|
||||
value18 = value17 instanceof Object ? value17 : value16;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
return value10;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 8448; source: modules/activities/ActivitiesInTextUtils.tsx; dependencies: [1379, 3784, 482, 677, 566, 2] */
|
||||
function _fun67023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:6, offset: 0x01c13185, size: 223 bytes, params: 8, frame: 21
|
||||
let env0_0 = require;
|
||||
const closure = isActivityInTextSupportedForChannel;
|
||||
const isActivitiesInTextEnabledForChannelWithPermissions = function(a0, a1) {
|
||||
if (a0 != null) {
|
||||
if (a0 === undefined) {
|
||||
return false;
|
||||
}
|
||||
if (isActivityInTextSupportedForChannel(a0)) {
|
||||
if (a0.guild_id == null) {
|
||||
return true;
|
||||
}
|
||||
if (a1.can(Permissions.USE_EMBEDDED_ACTIVITIES, a0)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
const closure2 = function(a0) {
|
||||
return a0?.guild_id != null || isActivityInTextSupportedForChannel(a0);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_4 = (require(482) /* metro dependency 482: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/ActivitiesInTextUtils.tsx');
|
||||
exports.isActivityInTextSupportedForChannel = closure;
|
||||
exports.isActivitiesInTextEnabled = function(a0) {
|
||||
return isActivitiesInTextEnabledForChannelWithPermissions(a0, PermissionStore);
|
||||
};
|
||||
exports.useIsActivitiesInTextEnabled = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[4]).useStateFromStores([ChannelStore, PermissionStore], _fun67029);
|
||||
};
|
||||
exports.getIsAppLauncherEnabled = closure2;
|
||||
exports.useIsAppLauncherEnabled = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[4]).useStateFromStores([ChannelStore], _fun67031);
|
||||
};
|
||||
}
|
||||
|
||||
function isActivityInTextSupportedForChannel(a0) { // fn#67024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:138, offset: 0x01c13264, size: 238 bytes, params: 2, frame: 16
|
||||
const ChannelTypes = (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes;
|
||||
if (a0 == null) {
|
||||
return false;
|
||||
}
|
||||
const channel = ChannelStore.getChannel(a0.parent_id);
|
||||
return (channel == null || channel?.type === ChannelTypes.GUILD_CATEGORY) && [ChannelTypes.GUILD_TEXT,
|
||||
ChannelTypes.GUILD_VOICE, ChannelTypes.GROUP_DM, ChannelTypes.DM].includes(a0.type);
|
||||
}
|
||||
|
||||
function useIsActivitiesInTextEnabled(a0) { // fn#67028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1172, offset: 0x01c133e7, size: 74 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore, PermissionStore],
|
||||
_fun67029);
|
||||
}
|
||||
|
||||
function useIsAppLauncherEnabled(a0) { // fn#67030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1407, offset: 0x01c1345b, size: 66 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun67031);
|
||||
}
|
||||
|
||||
function _fun67029() { // fn#67029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1254, offset: 0x01c13431, size: 42 bytes, params: 1, frame: 14
|
||||
return isActivitiesInTextEnabledForChannelWithPermissions(ChannelStore.getChannel(env0_0), PermissionStore);
|
||||
}
|
||||
|
||||
function _fun67031() { // fn#67031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8633:1482, offset: 0x01c1349d, size: 46 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const channel = ChannelStore.getChannel(env0_0);
|
||||
return channel != null && getIsAppLauncherEnabled(channel);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 8110; source: modules/activities/ActivityPopoutUtils.native.tsx; dependencies: [2] */
|
||||
function _fun64996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8295:6, offset: 0x01bbc8c6, size: 96 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/ActivityPopoutUtils.native.tsx');
|
||||
exports.shouldOpenActivityInPopoutWindow = function() {
|
||||
return false;
|
||||
};
|
||||
exports.wrapPreemptiveActivityPopout = function(a0, a1) {
|
||||
return a1();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 8098; source: modules/activities/ActivityShelfStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun64941(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:6, offset: 0x01bba7ab, size: 287 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
object = {usageByApplicationId: {}, shelfOrder: []};
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun64945(PersistedStore);
|
||||
value.displayName = 'ActivityShelfStore';
|
||||
value.persistKey = 'ActivityShelfStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
||||
env0_5 = {usageByApplicationId: {}, shelfOrder: []};
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/ActivityShelfStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_64942() { // fn#64942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:148, offset: 0x01bba8ca, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_64942_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun64945(a0) { // fn#64945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:393, offset: 0x01bba928, size: 91 bytes, params: 2, frame: 16
|
||||
const closure = ActivityShelfStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_64947}, {key: 'getState', value: value_64948}]);
|
||||
}
|
||||
|
||||
function value_64947(a0) { // fn#64947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8283:713, offset: 0x01bba983, size: 50 bytes, params: 2, frame: 12
|
||||
copyDataProperties({usageByApplicationId: {}, shelfOrder: []}, a0 ?? ({}), null);
|
||||
value = environment.__proto__;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
/* Metro module 4237; source: modules/activities/Constants.tsx; dependencies: [661, 1909, 2] */
|
||||
function _fun35041(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4408:6, offset: 0x010697ae, size: 1681 bytes, params: 8, frame: 51
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const ChannelTypes = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
|
||||
const object = {PLAY: 0};
|
||||
object[0] = 'PLAY';
|
||||
object.SPECTATE = 1;
|
||||
object[1] = 'SPECTATE';
|
||||
const object2 = {UNLOCKED: 1};
|
||||
object2[1] = 'UNLOCKED';
|
||||
object2.PORTRAIT = 2;
|
||||
object2[2] = 'PORTRAIT';
|
||||
object2.LANDSCAPE = 3;
|
||||
object2[3] = 'LANDSCAPE';
|
||||
const Set = global.Set;
|
||||
const set = new Set(['755600276941176913', '880218832743055411', '1050941315912835122', '880218394199220334']);
|
||||
const object4 = {PORTRAIT: 0};
|
||||
object4[0] = 'PORTRAIT';
|
||||
object4.LANDSCAPE = 1;
|
||||
object4[1] = 'LANDSCAPE';
|
||||
const object5 = {FOCUSED: 0};
|
||||
object5[0] = 'FOCUSED';
|
||||
object5.PIP = 1;
|
||||
object5[1] = 'PIP';
|
||||
object5.GRID = 2;
|
||||
object5[2] = 'GRID';
|
||||
const object11 = {'label_type': null, 'release_phase': '', 'label_from': null, 'label_until': null};
|
||||
const EmbeddedActivityLabelTypes = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes;
|
||||
const NONE = EmbeddedActivityLabelTypes.NONE;
|
||||
object11.label_type = NONE;
|
||||
object11.omit_badge_from_surfaces = [];
|
||||
const object12 = {'application_id': '', 'requires_age_gate': false, 'legacy_responsive_aspect_ratio': false};
|
||||
let UNLOCKED = object2.UNLOCKED;
|
||||
object12.default_orientation_lock_state = UNLOCKED;
|
||||
UNLOCKED = object2.UNLOCKED;
|
||||
object12.tablet_default_orientation_lock_state = UNLOCKED;
|
||||
const EmbeddedActivitySupportedPlatforms = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivitySupportedPlatforms;
|
||||
let WEB = EmbeddedActivitySupportedPlatforms.WEB;
|
||||
object12.supported_platforms = [WEB];
|
||||
WEB = EmbeddedActivitySupportedPlatforms.WEB;
|
||||
const IOS = EmbeddedActivitySupportedPlatforms.IOS;
|
||||
const ANDROID = EmbeddedActivitySupportedPlatforms.ANDROID;
|
||||
object12.client_platform_config = {[WEB]: object11, [IOS]: object11, [ANDROID]: object11};
|
||||
object12.has_csp_exception = false;
|
||||
object12.displays_advertisements = false;
|
||||
object12.blocked_locales = [];
|
||||
object12.supported_locales = [];
|
||||
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
||||
const items4 = [GUILD_TEXT];
|
||||
const DM = ChannelTypes.DM;
|
||||
items4[1] = DM;
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
items4[2] = GROUP_DM;
|
||||
const items5 = [];
|
||||
const value2 = arraySpread(items5, items4, 0, object11);
|
||||
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
||||
items5[value2] = GUILD_VOICE;
|
||||
value2 + 1;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/Constants.tsx');
|
||||
exports.ACTIVITY_INVITE_COVER_IMAGE_SIZE = 160;
|
||||
exports.validStreamURL = RegExp('^https?:\\/\\/(?:www\\.)?(twitch\\.tv\\/(.+)|youtube.com\\/watch\\?v=)', '');
|
||||
exports.XBOX_ACTIVITY_APPLICATION_ID = '438122941302046720';
|
||||
exports.META_PRESENCE_APPLICATION_ID = '1417273808645259344';
|
||||
exports.END_GAME_APPLICATION_ID = '773336526917861400';
|
||||
exports.FISHINGTON_APPLICATION_ID = '814288819477020702';
|
||||
exports.YOUTUBE_APPLICATION_ID = '755600276941176913';
|
||||
exports.WATCH_YOUTUBE_DEV_APP_ID = '880218832743055411';
|
||||
exports.WATCH_YOUTUBE_QA_APP_ID = '1050941315912835122';
|
||||
exports.PUTT_PARTY_DEV_APP_ID = '910224161476083792';
|
||||
exports.PUTT_PARTY_QA_APP_ID = '945748195256979606';
|
||||
exports.JAM_SPACE_APPLICATION_ID = '1070087967294631976';
|
||||
exports.GARTIC_PHONE_APPLICATION_ID = '1007373802981822582';
|
||||
exports.GARTIC_PHONE_DEV_APPLICATION_ID = '1067803140071620628';
|
||||
exports.COLOR_TOGETHER_APPLICATION_ID = '1039835161136746497';
|
||||
exports.SPELL_CAST_APPLICATION_ID = '852509694341283871';
|
||||
exports.LAND_IO_APPLICATION_ID = '903769130790969345';
|
||||
exports.WATCH_YOUTUBE_PROD_APP_ID = '880218394199220334';
|
||||
exports.KWIM_APPLICATION_ID = '1078728822972764312';
|
||||
exports.BOBBLE_LEAGUE_APPLICATION_ID = '947957217959759964';
|
||||
exports.CHECKERS_IN_THE_PARK_APP_ID = '832013003968348200';
|
||||
exports.CHESS_IN_THE_PARK_APP_ID = '832012774040141894';
|
||||
exports.BLAZIN_8S_APPLICATION_ID = '832025144389533716';
|
||||
exports.POKER_NIGHT_APPLICATION_ID = '755827207812677713';
|
||||
exports.LETTER_LEAGUE_APPLICATION_ID = '879863686565621790';
|
||||
exports.SKETCH_HEADS_APPLICATION_ID = '902271654783242291';
|
||||
exports.CHEF_SHOWDOWN_APPLICATION_ID = '1037680572660727838';
|
||||
exports.PUTT_PARTY_PROD_APPLICATION_ID = '945737671223947305';
|
||||
exports.KRUNKER_STAGING_APPLICATION_ID = '1010174316991762534';
|
||||
exports.KRUNKER_STRIKE_APPLICATION_ID = '1011683823555199066';
|
||||
exports.COLONIST_APPLICATION_ID = '1106787098452832296';
|
||||
exports.AM_HARMONY_STG_APPLICATION_ID = '1234546995360694434';
|
||||
exports.AM_HARMONY_PRD_APPLICATION_ID = '1214629548377768066';
|
||||
exports.RYTHM_APPLICATION_ID = '235088799074484224';
|
||||
exports.PAPERY_MATCH_APPLICATION_ID = '1235205910863806484';
|
||||
exports.EXORACER_APPLICATION_ID = '1220052815590723654';
|
||||
exports.CLASH_GEM_CARD_PARTY_APPLICATION_ID = '1222080278672179220';
|
||||
exports.MAGIC_CIRCLE_APPLICATION_ID = '1227719606223765687';
|
||||
exports.DEATH_BY_AI_APPLICATION_ID = '1194351737264406548';
|
||||
exports.TINY_ROYALE_APP_1 = '1245041113882955918';
|
||||
exports.TINY_ROYALE_APP_2 = '1245040907732910201';
|
||||
exports.TINY_ROYALE_APP_3 = '1245040436427489471';
|
||||
exports.TINY_ROYALE_APP_4 = '1208090049871351890';
|
||||
exports.TWELVE_BULLETS_DEV = '1247266306231898122';
|
||||
exports.TWELVE_BULLETS_STG = '1257458870390099989';
|
||||
exports.TWELVE_BULLETS_PRD = '1276239071764680926';
|
||||
exports.EMBEDDED_ACTIVITY_SURVEY_URL = 'https://discord.sjc1.qualtrics.com/jfe/form/SV_6SvWAOxlcSRWiEu';
|
||||
exports.EMBEDDED_ACTIVITIES_BLOG_POST_URL = 'https://discord.com/blog/server-activities-games-voice-watch-together';
|
||||
exports.ImageSizes = {'SMALL': 64, 'LARGE': 160};
|
||||
exports.STAFF_RELEASE_PHASES = ['in_development', 'activities_team', 'employee_release'];
|
||||
exports.EXCLUDE_FULL_SCREEN_APPS = ['1037680572660727838', '235088799074484224', '1007373802981822582',
|
||||
'1067803140071620628', '1194351737264406548', '1245041113882955918', '1245040907732910201',
|
||||
'1245040436427489471', '1208090049871351890', '1235205910863806484', '1227719606223765687'];
|
||||
exports.SHARE_INTERACTION_APPS = ['1247266306231898122', '1257458870390099989', '1276239071764680926'];
|
||||
exports.ActivityFeedbackReasons = {ADS: 'ADS', FAILED_LOAD: 'FAILED_LOAD', LAGGING: 'LAGGING',
|
||||
CONFUSING: 'CONFUSING', NOT_FUN: 'NOT_FUN', OTHER: 'OTHER'};
|
||||
exports.ActivityIntent = object;
|
||||
exports.ActivityPlatform = {DESKTOP: 'desktop', MOBILE: 'mobile'};
|
||||
exports.ActivityTooltipName = {BETRAYAL_MARKETING_TOOLTIP: 'BETRAYAL_MARKETING_TOOLTIP',
|
||||
FISHINGTON_MARKETING_TOOLTIP: 'FISHINGTON_MARKETING_TOOLTIP',
|
||||
POKER_MARKETING_TOOLTIP: 'POKER_MARKETING_TOOLTIP', YOUTUBE_MARKETING_TOOLTIP: 'YOUTUBE_MARKETING_TOOLTIP'};
|
||||
exports.OrientationLockState = object2;
|
||||
exports.APPLICATIONS_WITH_ALLOWED_POPUPS = set;
|
||||
exports.ActivityScreenOrientation = object4;
|
||||
exports.ActivityLayoutMode = object5;
|
||||
exports.DEFAULT_EMBEDDED_ACTIVITY_CONFIG = object12;
|
||||
exports.SUPPORTED_ACTIVITY_IN_TEXT_CHANNEL_TYPES = items4;
|
||||
exports.SUPPORTED_ACTIVITIES_CHANNEL_TYPES = items5;
|
||||
exports.getAppIntentScheme = function(a0) {
|
||||
if (a0 === 'tiktok') {
|
||||
return 'tiktok://';
|
||||
}
|
||||
if (a0 === 'photos') {
|
||||
return 'photos-redirect://';
|
||||
}
|
||||
if (a0 === 'snapchat') {
|
||||
return 'snapchat://';
|
||||
}
|
||||
if (a0 === 'instagram') {
|
||||
return 'instagram://';
|
||||
}
|
||||
};
|
||||
exports.PRIVATE_APPS_HELP_ARTICLE = 'https://support-dev.discord.com/hc/en-us/articles/21692628851351-Private-Activity-Safety';
|
||||
exports.DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY = 'disallowed_navigation_error_close_activity';
|
||||
exports.ACTIVITY_PORTRAIT_ASPECT_RATIO = 0.5625;
|
||||
exports.ACTIVITY_LANDSCAPE_ASPECT_RATIO = 1.7777777777777777;
|
||||
exports.ActivityPopoutWindowLayouts = {NORMAL: 'normal', FULL_SCREEN: 'full-screen'};
|
||||
exports.INVITE_EXPIRATION_MS = 21600000;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 9475; source: modules/activities/DeveloperActivityShelfActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun73691(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:6, offset: 0x01d74ceb, size: 140 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/DeveloperActivityShelfActionCreators.tsx');
|
||||
exports.toggleUseActivityUrlOverride = toggleUseActivityUrlOverride;
|
||||
exports.setActivityUrlOverride = setActivityUrlOverride;
|
||||
exports.markActivityUsed = markActivityUsed;
|
||||
exports.updateFilter = updateFilter;
|
||||
}
|
||||
|
||||
function toggleUseActivityUrlOverride() { // fn#73692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:216, offset: 0x01d74d77, size: 48 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE'});
|
||||
}
|
||||
|
||||
function setActivityUrlOverride(a0) { // fn#73693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:367, offset: 0x01d74da7, size: 56 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE',
|
||||
activityUrlOverride: a0});
|
||||
}
|
||||
|
||||
function markActivityUsed(a0) { // fn#73694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:522, offset: 0x01d74ddf, size: 98 bytes, params: 2, frame: 14
|
||||
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = value.dispatch;
|
||||
const object2 = {type: 'DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED', applicationId: a0};
|
||||
const Date = global.Date;
|
||||
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
const date = new Date();
|
||||
object2.timestamp = (date instanceof Object ? date : value2).getTime();
|
||||
Reflect.apply(dispatch, value, [object2]);
|
||||
}
|
||||
|
||||
function updateFilter(a0) { // fn#73695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9661:685, offset: 0x01d74e41, size: 55 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER',
|
||||
filter: a0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
/* Metro module 7503; source: modules/activities/DeveloperActivityShelfStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 7504, 3829, 566, 694, 2] */
|
||||
function _fun60481(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:6, offset: 0x01704658, size: 502 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).ApplicationFlags;
|
||||
({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
|
||||
'filter': ''}).lastUsedObject = {};
|
||||
object2 = {INITIALIZED: 'INITIALIZED', LOADING: 'LOADING', LOADED: 'LOADED', ERROR: 'ERROR'};
|
||||
const env0_10 = object2.INITIALIZED;
|
||||
const env0_11 = [];
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun60485(PersistedStore);
|
||||
value.displayName = 'DeveloperActivityShelfStore';
|
||||
value.persistKey = 'DeveloperActivityShelfStore';
|
||||
value.migrations = [function(a0) {
|
||||
delete a0.isEnabled;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, a0);
|
||||
return object;
|
||||
}];
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: LOGOUT_60499,
|
||||
DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE: DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE,
|
||||
DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE: DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE,
|
||||
DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED: DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED,
|
||||
DEVELOPER_ACTIVITY_SHELF_FETCH_START: DEVELOPER_ACTIVITY_SHELF_FETCH_START,
|
||||
DEVELOPER_ACTIVITY_SHELF_FETCH_SUCCESS: DEVELOPER_ACTIVITY_SHELF_FETCH_SUCCESS_60505,
|
||||
DEVELOPER_ACTIVITY_SHELF_FETCH_FAIL: DEVELOPER_ACTIVITY_SHELF_FETCH_FAIL,
|
||||
DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER: DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER,
|
||||
USER_SETTINGS_PROTO_UPDATE: function() {
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/DeveloperActivityShelfStore.tsx');
|
||||
exports.default = value;
|
||||
exports.DevShelfFetchState = object2;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_60482() { // fn#60482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:175, offset: 0x0170484e, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_60482_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun60485(a0) { // fn#60485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:592, offset: 0x017048ac, size: 281 bytes, params: 2, frame: 16
|
||||
const closure = DeveloperActivityShelfStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: value_60487}, {key: 'getState', value: value_60488},
|
||||
{key: 'getIsEnabled', value: value_60489}, {key: 'getLastUsedObject', value: value_60490},
|
||||
{key: 'getUseActivityUrlOverride', value: value_60491}, {key: 'getActivityUrlOverride', value: value_60492},
|
||||
{key: 'getFetchState', value: function() {
|
||||
return INITIALIZED;
|
||||
}}, {key: 'getFilter', value: value_60494}, {key: 'getDeveloperShelfItems', value: value_60495},
|
||||
{key: 'inDevModeForApplication', value: value_60496}]);
|
||||
}
|
||||
|
||||
function LOGOUT_60499() { // fn#60499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1983, offset: 0x01704b16, size: 55 bytes, params: 1, frame: 2
|
||||
({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
|
||||
'filter': ''}).lastUsedObject = {};
|
||||
env0_10 = env0_9.INITIALIZED;
|
||||
env0_11 = [];
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_TOGGLE_USE_ACTIVITY_URL_OVERRIDE() { // fn#60500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2163, offset: 0x01704b4d, size: 26 bytes, params: 1, frame: 2
|
||||
const binding = env0_8;
|
||||
const useActivityUrlOverride = binding.useActivityUrlOverride;
|
||||
binding.useActivityUrlOverride = !useActivityUrlOverride;
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_SET_ACTIVITY_URL_OVERRIDE({activityUrlOverride}) { // fn#60501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2312, offset: 0x01704b67, size: 26 bytes, params: 2, frame: 2
|
||||
env0_8.activityUrlOverride = activityUrlOverride;
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_MARK_ACTIVITY_USED({applicationId, timestamp}) { // fn#60502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2444, offset: 0x01704b81, size: 71 bytes, params: 2, frame: 14
|
||||
if (env0_11.find(function({id}) {
|
||||
return id === applicationId;
|
||||
}) == null) {
|
||||
return false;
|
||||
}
|
||||
env0_8.lastUsedObject[applicationId] = timestamp;
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_FETCH_START() { // fn#60504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2570, offset: 0x01704bc8, size: 21 bytes, params: 1, frame: 2
|
||||
env0_10 = env0_9.LOADING;
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_FETCH_SUCCESS_60505({applications}) { // fn#60505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2661, offset: 0x01704bdd, size: 51 bytes, params: 2, frame: 12
|
||||
env0_10 = env0_9.LOADED;
|
||||
env0_11 = applications.filter(function(a0) {
|
||||
return require(dependencyMap[6]).hasApplicationFlag(a0, ApplicationFlags.EMBEDDED);
|
||||
});
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_FETCH_FAIL(a0) { // fn#60507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2852, offset: 0x01704c44, size: 29 bytes, params: 2, frame: 2
|
||||
a0.type;
|
||||
env0_10 = env0_9.ERROR;
|
||||
}
|
||||
|
||||
function DEVELOPER_ACTIVITY_SHELF_UPDATE_FILTER({filter}) { // fn#60508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:2976, offset: 0x01704c61, size: 25 bytes, params: 2, frame: 2
|
||||
env0_8.filter = filter;
|
||||
}
|
||||
|
||||
function value_60487(a0) { // fn#60487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:957, offset: 0x017049c5, size: 54 bytes, params: 2, frame: 12
|
||||
copyDataProperties({'lastUsedObject': null, 'useActivityUrlOverride': false, 'activityUrlOverride': null,
|
||||
'filter': '', lastUsedObject: {}}, a0 ?? ({}), null);
|
||||
value = environment.__proto__;
|
||||
}
|
||||
|
||||
function value_60489() { // fn#60489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1140, offset: 0x017049fb, size: 61 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
return DeveloperMode.getSetting() && env1_11.length > 0;
|
||||
}
|
||||
|
||||
function value_60490() { // fn#60490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1238, offset: 0x01704a38, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_8.lastUsedObject;
|
||||
}
|
||||
|
||||
function value_60491() { // fn#60491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1314, offset: 0x01704a47, size: 31 bytes, params: 1, frame: 9
|
||||
return this.getIsEnabled() && env1_8.useActivityUrlOverride;
|
||||
}
|
||||
|
||||
function value_60492() { // fn#60492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1416, offset: 0x01704a66, size: 33 bytes, params: 1, frame: 9
|
||||
return this.getIsEnabled() ? env1_8.activityUrlOverride : null;
|
||||
}
|
||||
|
||||
function value_60494() { // fn#60494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1555, offset: 0x01704a87, size: 34 bytes, params: 1, frame: 9
|
||||
return this.getIsEnabled() ? env1_8.filter : '';
|
||||
}
|
||||
|
||||
function value_60495() { // fn#60495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1643, offset: 0x01704aa9, size: 31 bytes, params: 1, frame: 9
|
||||
const getIsEnabled = this.getIsEnabled;
|
||||
return Reflect.apply(getIsEnabled, this, []) ? env1_11 : [];
|
||||
}
|
||||
|
||||
function value_60496(a0) { // fn#60496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7681:1725, offset: 0x01704ac8, size: 56 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
var r0;
|
||||
const env0_0 = a0;
|
||||
let value = this.getIsEnabled();
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = env1_11.find(_fun60497);
|
||||
value = value != null;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,14 @@
|
||||
/* Metro module 10597; source: modules/activities/MessageActivityInviteCoverImageActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun81710(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10783:6, offset: 0x01edafc0, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/MessageActivityInviteCoverImageActionCreators.tsx');
|
||||
exports.setCoverImageURL = setCoverImageURL;
|
||||
}
|
||||
|
||||
function setCoverImageURL({messageId, coverImageURL}) { // fn#81711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10783:213, offset: 0x01edb023, size: 71 bytes, params: 2, frame: 15
|
||||
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
dispatcher.dispatch({type: 'SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL', messageId: messageId,
|
||||
coverImageURL: coverImageURL});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 10596; source: modules/activities/MessageActivityInviteCoverImageStore.tsx; dependencies: [6, 7, 15, 17, 18, 1393, 566, 694, 2] */
|
||||
function _fun81702(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:6, offset: 0x01edad83, size: 318 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1393) /* metro dependency 1393 */;
|
||||
value = new value({max: 500});
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun81706(Store).displayName = 'MessageActivityInviteCoverImageStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL: SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/MessageActivityInviteCoverImageStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_81703() { // fn#81703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:148, offset: 0x01edaec1, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_81703_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun81706(a0) { // fn#81706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:377, offset: 0x01edaf23, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = MessageActivityInviteCoverImageStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getCoverImageURL', value: value_81708}]);
|
||||
}
|
||||
|
||||
function SET_MESSAGE_ACTIVITY_INVITE_COVER_IMAGE_URL({messageId, coverImageURL}) { // fn#81709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:971, offset: 0x01edaf86, size: 58 bytes, params: 2, frame: 14
|
||||
const binding = env0_5;
|
||||
const get = binding.get;
|
||||
if (Reflect.apply(get, binding, [messageId]) === coverImageURL) {
|
||||
return false;
|
||||
}
|
||||
env0_5.set(messageId, coverImageURL);
|
||||
}
|
||||
|
||||
function value_81708({messageId}) { // fn#81708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10782:793, offset: 0x01edaf6b, size: 27 bytes, params: 2, frame: 11
|
||||
return env1_5.get(messageId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/* Metro module 10649; source: modules/activities/confirmActivityAgeGateAlert.native.tsx; dependencies: [31, 27, 33, 4501, 697, 10650, 4573, 1244, 4647, 1305, 2] */
|
||||
function _fun81928(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:6, offset: 0x01ee3dd4, size: 274 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{alertContainer: {'display': 'flex', 'alignItems': 'center',
|
||||
'padding': 8}, alertBodyText: {'fontSize': 16, 'lineHeight': 24, 'color': null, 'textAlign': 'center',
|
||||
color: INTERACTIVE_TEXT_DEFAULT}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmActivityAgeGateAlert.native.tsx');
|
||||
exports.confirmActivityAgeGateAlert = confirmActivityAgeGateAlert;
|
||||
}
|
||||
|
||||
function ConfirmActivityGateContent({description}) { // fn#81929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:341, offset: 0x01ee3ee6, size: 154 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const value2 = ((Component) => <Component />)(importDefault(10650) /* metro dependency 10650: ActivityAnnouncement */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.alertContainer}>
|
||||
{value2}
|
||||
<Text style={styles.alertBodyText} variant="text-md/normal">
|
||||
{description}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function confirmActivityAgeGateAlert(a0) { // fn#81930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10835:664, offset: 0x01ee3f80, size: 362 bytes, params: 2, frame: 25
|
||||
var object2;
|
||||
const application = a0.application;
|
||||
a0.channelId;
|
||||
const onAgree = a0.onAgree;
|
||||
const onDisagree = a0.onDisagree;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const OgmIqy = (require(1244) /* metro dependency 1244: indexNative */).t.OgmIqy;
|
||||
const value2 = Reflect.apply(formatToPlainString, intl, [OgmIqy, {applicationName: application.name}]);
|
||||
const Promise = global.Promise;
|
||||
const resolve = Promise.resolve;
|
||||
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
object2 = {};
|
||||
const string = intl.string;
|
||||
const SSDPOF = (require(1244) /* metro dependency 1244: indexNative */).t.SSDPOF;
|
||||
object2.title = Reflect.apply(string, intl, [SSDPOF]);
|
||||
object2.children = <ConfirmActivityGateContent description={value2} />;
|
||||
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hg1uxn);
|
||||
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wVq7uo);
|
||||
object2.onConfirm = onAgree;
|
||||
object2.onCancel = onDisagree;
|
||||
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
|
||||
const RED = ButtonColors.RED;
|
||||
object2.confirmColor = RED;
|
||||
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object2])]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 10648; source: modules/activities/confirmActivityChangeAlert.tsx; dependencies: [3793, 1878, 4805, 4647, 1244, 1861, 2] */
|
||||
function _fun81926(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:6, offset: 0x01ee3b57, size: 134 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmActivityChangeAlert.tsx');
|
||||
exports.default = confirmActivityChangeModal;
|
||||
}
|
||||
|
||||
function confirmActivityChangeModal(a0, a1, a2, a3) { // fn#81927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:209, offset: 0x01ee3bdd, size: 503 bytes, params: 5, frame: 26
|
||||
var r10;
|
||||
var intl2;
|
||||
var intl3;
|
||||
let r8 = a1 != null ? (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(a1, UserStore,
|
||||
RelationshipStore) : '';
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object3 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const XkIWkk = t.XkIWkk;
|
||||
object3.title = Reflect.apply(string, intl, [XkIWkk]);
|
||||
object3.cancelText = intl.string(t['ETE/oC']);
|
||||
object3.confirmText = intl.string(t['cY+Oob']);
|
||||
object3.onConfirm = a2;
|
||||
object3.onCancel = a3;
|
||||
const format = intl.format;
|
||||
const property = t['5/Xort'];
|
||||
const object4 = {};
|
||||
const name = a0 == null ? value2 : a0.name;
|
||||
if (name != null) {
|
||||
r10 = name;
|
||||
} else {
|
||||
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r10 = intl2.string(t.G99XFs);
|
||||
}
|
||||
object4.currentApplicationName = r10;
|
||||
const stringUtilsModule = require(1861) /* metro dependency 1861: StringUtils */;
|
||||
if (stringUtilsModule.isNullOrEmpty(r8)) {
|
||||
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r8 = intl3.string(t.OGUjmt);
|
||||
}
|
||||
object4.currentApplicationChannelName = r8;
|
||||
object3.body = Reflect.apply(format, intl, [property, object4]);
|
||||
Reflect.apply(show, defaultImport, [object3]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 10651; source: modules/activities/confirmExternalAppLaunchAlert.native.tsx; dependencies: [31, 27, 4237, 33, 4501, 10652, 4573, 1244, 4578, 3853, 4647, 2] */
|
||||
function _fun81933(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:6, offset: 0x01ee4d61, size: 359 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = (require(4237) /* metro dependency 4237: Constants */).PRIVATE_APPS_HELP_ARTICLE;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({alertContainer: {'display': 'flex',
|
||||
'alignItems': 'center', 'padding': 8}, alertEyebrowText: {'marginTop': 40, 'textAlign': 'center'},
|
||||
alertTitleText: {'marginTop': 16, 'textAlign': 'center'}, alertSubtitleText: {'marginTop': 16,
|
||||
'textAlign': 'center'}, announcementBirb: {'width': 90, 'height': 100, 'position': 'absolute', 'top': -66},
|
||||
linkWrapper: {marginTop: 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmExternalAppLaunchAlert.native.tsx');
|
||||
exports.confirmExternalAppLaunchAlert = confirmExternalAppLaunchAlert;
|
||||
}
|
||||
|
||||
function ConfirmActivityGateContent_81934({application}) { // fn#81934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:529, offset: 0x01ee4ec8, size: 434 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const items2 = [<Image source={importDefault(10652) /* metro dependency 10652 */} style={styles.announcementBirb} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text style={styles.alertEyebrowText} variant="eyebrow">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['06YebE'])}</Text>;
|
||||
items2[2] = <Text style={styles.alertTitleText} variant="heading-lg/bold">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['Z/eMDT'],
|
||||
{activityName: application.name})}</Text>;
|
||||
items2[3] = <Text style={styles.alertSubtitleText} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z81WwD)}</Text>;
|
||||
return (
|
||||
<View style={styles.alertContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function LinkButton_81935() { // fn#81935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1053, offset: 0x01ee507a, size: 160 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const E0gf5l = (require(1244) /* metro dependency 1244: indexNative */).t.E0gf5l;
|
||||
return (
|
||||
<View style={styles.linkWrapper}>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
onPress={function() {
|
||||
importDefault(dependencyMap[9]).openURL(PRIVATE_APPS_HELP_ARTICLE);
|
||||
}}
|
||||
text={Reflect.apply(string, intl, [E0gf5l])}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function confirmExternalAppLaunchAlert({application, onConfirm, onCancel}) { // fn#81937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1380, offset: 0x01ee5144, size: 246 bytes, params: 2, frame: 23
|
||||
const Promise = global.Promise;
|
||||
const resolve = Promise.resolve;
|
||||
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {title: ''};
|
||||
object2.children = <ConfirmActivityGateContent_81934 application={application} />;
|
||||
object2.onConfirm = onConfirm;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']);
|
||||
object2.onCancel = onCancel;
|
||||
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
||||
object2.footer = <LinkButton_81935 />;
|
||||
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object2])]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 13032; source: modules/activities/getActivitiesModalContextKey.native.tsx; dependencies: [2] */
|
||||
function _fun99480(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13222:6, offset: 0x021ca73e, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getActivitiesModalContextKey.native.tsx');
|
||||
exports.getActivitiesModalContextKey = function(a0) {
|
||||
a0.application;
|
||||
a0.channelId;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 15703; source: modules/activities/getActivityReportOptions.tsx; dependencies: [4237, 1244, 2] */
|
||||
function _fun120532(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:6, offset: 0x0252e58b, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getActivityReportOptions.tsx');
|
||||
exports.default = getActivityReportOptions;
|
||||
}
|
||||
|
||||
function getActivityReportOptions(a0) { // fn#120533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:221, offset: 0x0252e600, size: 591 bytes, params: 2, frame: 20
|
||||
var push;
|
||||
const value = a1;
|
||||
const r1 = value !== undefined ? value : false;
|
||||
const object2 = {};
|
||||
const FAILED_LOAD = ActivityFeedbackReasons.FAILED_LOAD;
|
||||
object2.value = FAILED_LOAD;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.label = a0 ? Reflect.apply(string, intl, [t.uaiF6B]) : Reflect.apply(string, intl, [t.aO6OMZ]);
|
||||
const items2 = [object2];
|
||||
const LAGGING = ActivityFeedbackReasons.LAGGING;
|
||||
string = intl.string;
|
||||
items2[1] = {value: LAGGING, label: a0 ? Reflect.apply(string, intl, [t['/nJOlj']]) : Reflect.apply(string, intl,
|
||||
[t['79HFwf']])};
|
||||
const CONFUSING = ActivityFeedbackReasons.CONFUSING;
|
||||
string = intl.string;
|
||||
items2[2] = {value: CONFUSING, label: a0 ? Reflect.apply(string, intl, [t['/8psS7']]) : Reflect.apply(string, intl,
|
||||
[t.iSv55N])};
|
||||
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
|
||||
string = intl.string;
|
||||
items2[3] = {value: NOT_FUN, label: a0 ? Reflect.apply(string, intl, [t['7GVmLm']]) : Reflect.apply(string, intl,
|
||||
[t.GnVff5])};
|
||||
const OTHER = ActivityFeedbackReasons.OTHER;
|
||||
items2[4] = {value: OTHER, label: intl.string(t.emlT91)};
|
||||
if (r1) {
|
||||
push = items2.push;
|
||||
string = intl.string;
|
||||
Reflect.apply(push, items2, [{value: ActivityFeedbackReasons.ADS, label: a0 ? Reflect.apply(string, intl,
|
||||
[t['5o1UL6']]) : Reflect.apply(string, intl, [t.XeeDhK])}]);
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 8099; source: modules/activities/getShelfItemData.tsx; dependencies: [4234, 2] */
|
||||
function _fun64950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:6, offset: 0x01bba9d2, size: 104 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getShelfItemData.tsx');
|
||||
exports.default = function(a0) {
|
||||
var r2;
|
||||
var applicationId = a0.applicationId;
|
||||
var env0_0 = applicationId;
|
||||
var activityConfigs = a0.activityConfigs;
|
||||
var applications = a0.applications;
|
||||
var value = null;
|
||||
r2 = value == applications ? undefined : applications.find(_fun64952);
|
||||
r2 = value == r2 ? ApplicationStore.getApplication(applicationId) : r2;
|
||||
var value6 = activityConfigs.find(_fun64953);
|
||||
return value == value6 || value == r2 ? value : {activity: value6, application: r2};
|
||||
};
|
||||
}
|
||||
|
||||
function getShelfItemData({applicationId, activityConfigs, applications}) { // fn#64951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8284:189, offset: 0x01bbaa3a, size: 125 bytes, params: 2, frame: 16
|
||||
let r2 = applications?.find(function({id}) {
|
||||
return id === applicationId;
|
||||
});
|
||||
r2 = r2 ?? ApplicationStore.getApplication(applicationId);
|
||||
const value6 = activityConfigs.find(function({application_id}) {
|
||||
return application_id === applicationId;
|
||||
});
|
||||
return value6 == null || r2 == null ? null : {activity: value6, application: r2};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 8067; source: modules/activities/getURLForApplication.tsx; dependencies: [7505, 7503, 2] */
|
||||
function _fun64045(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:6, offset: 0x01b99e44, size: 152 bytes, params: 8, frame: 20
|
||||
const closure = function(a0) {
|
||||
var ACTIVITY_APPLICATION_HOST = global.window.GLOBAL_ENV.ACTIVITY_APPLICATION_HOST;
|
||||
var value = null;
|
||||
return value == ACTIVITY_APPLICATION_HOST ? value : 'https://' + a0 + '.' + ACTIVITY_APPLICATION_HOST;
|
||||
};
|
||||
const closure2 = isUsingDevShelfActivityUrlOverride;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const testModeStore = importDefault(7505) /* metro dependency 7505: TestModeStore */;
|
||||
const developerActivityShelfStore = importDefault(7503) /* metro dependency 7503: DeveloperActivityShelfStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getURLForApplication.tsx');
|
||||
exports.default = getURLForApplication;
|
||||
exports.getNonTestModeUrlForApplication = closure;
|
||||
exports.isUsingDevShelfActivityUrlOverride = closure2;
|
||||
}
|
||||
|
||||
function isUsingDevShelfActivityUrlOverride() { // fn#64047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:250, offset: 0x01b99f1a, size: 57 bytes, params: 1, frame: 11
|
||||
const state = DeveloperActivityShelfStore.getState();
|
||||
const useActivityUrlOverride = state.useActivityUrlOverride;
|
||||
return useActivityUrlOverride && state.activityUrlOverride != null && state.activityUrlOverride !== '';
|
||||
}
|
||||
|
||||
function getURLForApplication(a0) { // fn#64048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8245:491, offset: 0x01b99f53, size: 86 bytes, params: 2, frame: 13
|
||||
return isUsingDevShelfActivityUrlOverride() ? DeveloperActivityShelfStore.getState().activityUrlOverride : TestModeStore.inTestModeForEmbeddedApplication(a0) ? TestModeStore.testModeOriginURL : getNonTestModeUrlForApplication(a0);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,178 @@
|
||||
/* Metro module 8106; source: modules/activities/handlePressJoinActivity.tsx; dependencies: [5, 4235, 1379, 1867, 3784, 1878, 4297, 1378, 8107, 8108, 4647, 1244, 6772, 7858, 8109, 2] */
|
||||
function _fun64971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:6, offset: 0x01bbb5a2, size: 252 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = handlePressJoinActivity;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/handlePressJoinActivity.tsx');
|
||||
exports.default = closure;
|
||||
exports.maybeJoinEmbeddedActivity = function() {
|
||||
return _maybeJoinEmbeddedActivity.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function handlePressJoinActivity({embeddedActivityJoinability, handleCanJoin}) { // fn#64972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:176, offset: 0x01bbb69e, size: 973 bytes, params: 2, frame: 20
|
||||
var defaultImport;
|
||||
var show;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
var defaultImport4;
|
||||
const EmbeddedActivityJoinability = (require(8107) /* metro dependency 8107: getEmbeddedActivityJoinability */).EmbeddedActivityJoinability;
|
||||
const CAN_JOIN = EmbeddedActivityJoinability.CAN_JOIN;
|
||||
if (CAN_JOIN === embeddedActivityJoinability) {
|
||||
if (handleCanJoin != null) {
|
||||
handleCanJoin();
|
||||
}
|
||||
} else if (EmbeddedActivityJoinability.NO_USE_EMBEDDED_ACTIVITIES_PERMISSION === embeddedActivityJoinability) {
|
||||
(require(8108) /* metro dependency 8108: showActivitiesInvalidPermissionsAlert */).showActivitiesInvalidPermissionsAlert();
|
||||
} else if (EmbeddedActivityJoinability.ACTIVITIES_FEATURE_NOT_ENABLED_FOR_OS === embeddedActivityJoinability) {
|
||||
defaultImport4 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport4.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t.UXoQTp);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport4, [object2]);
|
||||
} else if (EmbeddedActivityJoinability.ACTIVITY_NOT_SUPPORTED_ON_OS === embeddedActivityJoinability) {
|
||||
defaultImport3 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport3.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t.uGDCcw);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport3, [object2]);
|
||||
} else if (EmbeddedActivityJoinability.ACTIVITY_AGE_GATED === embeddedActivityJoinability) {
|
||||
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport2.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t['4WuFRE']);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport2, [object2]);
|
||||
} else if (EmbeddedActivityJoinability.NO_CHANNEL_CONNECT_PERMISSION === embeddedActivityJoinability) {
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t.FUCQco);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
} else if (EmbeddedActivityJoinability.CHANNEL_FULL === embeddedActivityJoinability) {
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t.FUCQco);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
} else if (EmbeddedActivityJoinability.NO_CHANNEL === embeddedActivityJoinability) {
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t.FUCQco);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
} else if (EmbeddedActivityJoinability.NO_USER === embeddedActivityJoinability) {
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t.FUCQco);
|
||||
object2.hideActionSheet = false;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _maybeJoinEmbeddedActivity() { // fn#64973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1435, offset: 0x01bbba6b, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun64975).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun64975({channelId, applicationId, launchId, inputApplication, analyticsLocations, launchingComponentId, sectionName, inviterUserId}) { // fn#64975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1510, offset: 0x01bbbaad, size: 414 bytes, params: 2, frame: 23
|
||||
var r12;
|
||||
var currentUser;
|
||||
var object3;
|
||||
var value12;
|
||||
var object4;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
await value;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
let binding = env2_10;
|
||||
const value7 = binding.getEmbeddedActivitiesForChannel(channelId).find(_fun64979);
|
||||
if (inputApplication != null) {
|
||||
r12 = inputApplication;
|
||||
} else {
|
||||
var value8 = env2_1(env2_2[12]);
|
||||
await value8.fetchApplication(applicationId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
r12 = env2_4.createFromServer(undefined);
|
||||
}
|
||||
if (value7 != null) {
|
||||
if (r12 != null) {
|
||||
binding = env2_8;
|
||||
currentUser = binding.getCurrentUser();
|
||||
binding = env2_11;
|
||||
object3 = {};
|
||||
value12 = env2_1(env2_2[8]);
|
||||
object4 = {};
|
||||
object4.userId = currentUser == null ? value : currentUser.id;
|
||||
object4.application = r12;
|
||||
object4.channelId = channelId;
|
||||
object4.currentUser = currentUser;
|
||||
object4.isActivitiesEnabledForCurrentPlatform = env2_0(env2_2[13]).getIsActivitiesEnabledForCurrentPlatform();
|
||||
object4.ChannelStore = env2_5;
|
||||
object4.VoiceStateStore = env2_9;
|
||||
object4.PermissionStore = env2_7;
|
||||
object4.GuildStore = env2_6;
|
||||
object3.embeddedActivityJoinability = value12(object4);
|
||||
object3.handleCanJoin = function() {
|
||||
return _handleCanJoin_64976.apply(this, arguments);
|
||||
};
|
||||
binding(object3);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _handleCanJoin_64976() { // fn#64976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:2254, offset: 0x01bbbc4b, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return env3_3(_fun64978).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun64979(a0) { // fn#64979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:1704, offset: 0x01bbbd14, size: 54 bytes, params: 2, frame: 5
|
||||
return a0.applicationId === applicationId && (launchId == null || a0.launchId === launchId);
|
||||
}
|
||||
|
||||
function* _fun64978() { // fn#64978, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8291:2305, offset: 0x01bbbc87, size: 141 bytes, params: 1, frame: 14
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (env2_7 != null) {
|
||||
yield env5_1(env5_2[14])({applicationId: env2_7.applicationId, activityChannelId: env2_0,
|
||||
locationObject: {},
|
||||
analyticsLocations: env2_3, componentId: env2_4, sectionName: env2_5, inviterUserId: env2_6});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,198 @@
|
||||
/* Metro module 9472; source: modules/activities/handleUsePrimaryEntryPointAppCommand.tsx; dependencies: [5, 1379, 1878, 9473, 8110, 8091, 9475, 7860, 2] */
|
||||
function _fun73655(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:6, offset: 0x01d74249, size: 179 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/handleUsePrimaryEntryPointAppCommand.tsx');
|
||||
exports.default = function() {
|
||||
return _handleUsePrimaryEntryPointAppCommand.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _handleUsePrimaryEntryPointAppCommand() { // fn#73656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:126, offset: 0x01d742fc, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun73658).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _handleUsePrimaryEntryPointAppCommandInternal() { // fn#73661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:681, offset: 0x01d74442, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun73663).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun73658(a0) { // fn#73658, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:223, offset: 0x01d74339, size: 188 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var channelId;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var binding3;
|
||||
var value7;
|
||||
var shouldOpenActivityInPopoutWindow;
|
||||
var shouldOpenActivityInPopoutWindow2;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const env0_0 = a0;
|
||||
var env0_1;
|
||||
let targetApplicationId = a0.targetApplicationId;
|
||||
if (targetApplicationId == null) {
|
||||
return false;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_3;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
targetApplicationId = a0.targetApplicationId;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
channelId = a0.channelId;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value4 = value3(targetApplicationId, channelId);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
yield value4;
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (value6) {
|
||||
return value5;
|
||||
}
|
||||
try {
|
||||
env0_1 = value5;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_3;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
property = binding3[4];
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
shouldOpenActivityInPopoutWindow = value7.shouldOpenActivityInPopoutWindow;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
shouldOpenActivityInPopoutWindow2 = Reflect.apply(shouldOpenActivityInPopoutWindow, value7, []);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
return env2_0(env2_3[4]).wrapPreemptiveActivityPopout(shouldOpenActivityInPopoutWindow2, _fun73659);
|
||||
}
|
||||
|
||||
async function _fun73663({targetApplication, locationObject, channelId, analyticsLocations, componentId, commandOrigin, sectionName, source, onExecutedCallback, referrerId, customId, inviterUserId, onConfirmActivityLaunchChecksAlertOpen}) { // fn#73663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:794, offset: 0x01d74488, size: 372 bytes, params: 2, frame: 33
|
||||
var r5;
|
||||
var value7;
|
||||
var binding2;
|
||||
var value10;
|
||||
var markActivityUsed;
|
||||
var id;
|
||||
var runPrimaryAppCommandOrJoinEmbeddedActivity;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_1;
|
||||
const value4 = binding(env2_3[5])();
|
||||
const currentUser = env2_6.getCurrentUser();
|
||||
const value6 = channelId != null;
|
||||
if (value6) {
|
||||
binding = env2_5;
|
||||
value7 = binding.getChannel(channelId) != null;
|
||||
if (value7) {
|
||||
r5 = currentUser != null && targetApplication != null;
|
||||
if (r5) {
|
||||
binding = env2_2;
|
||||
binding2 = env2_3;
|
||||
value10 = binding(binding2[6]);
|
||||
markActivityUsed = value10.markActivityUsed;
|
||||
id = targetApplication.id;
|
||||
Reflect.apply(markActivityUsed, value10, [id]);
|
||||
binding = env2_0;
|
||||
value = binding(binding2[7]);
|
||||
runPrimaryAppCommandOrJoinEmbeddedActivity = value.runPrimaryAppCommandOrJoinEmbeddedActivity;
|
||||
id = targetApplication.id;
|
||||
await Reflect.apply(runPrimaryAppCommandOrJoinEmbeddedActivity, value, [{channelId: channelId,
|
||||
applicationId: id,
|
||||
isStart: true, embeddedActivitiesManager: value4, componentId: componentId,
|
||||
commandOrigin: commandOrigin,
|
||||
sectionName: sectionName, locationObject: locationObject, analyticsLocations: analyticsLocations,
|
||||
source: source, onExecutedCallback: onExecutedCallback, referrerId: referrerId, customId: customId,
|
||||
inviterUserId: inviterUserId,
|
||||
onConfirmActivityLaunchChecksAlertOpen: onConfirmActivityLaunchChecksAlertOpen}]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
return r5;
|
||||
}
|
||||
return value7;
|
||||
}
|
||||
return value6;
|
||||
}
|
||||
|
||||
function _fun73659() { // fn#73659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:452, offset: 0x01d743f5, size: 47 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_0, object2);
|
||||
object2['targetApplication'] = env0_1;
|
||||
return handleUsePrimaryEntryPointAppCommandInternal(object2);
|
||||
}
|
||||
|
||||
function handleUsePrimaryEntryPointAppCommandInternal() { // fn#73660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9658:456, offset: 0x01d74424, size: 30 bytes, params: 1, frame: 13
|
||||
return env4_8.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 12711; source: modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx; dependencies: [1226, 2] */
|
||||
function _fun97367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12901:6, offset: 0x0217dfa0, size: 106 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx');
|
||||
exports.isActivityParticipantCurrentUserCurrentSession = function(a0) {
|
||||
var r3;
|
||||
var r1;
|
||||
var r0;
|
||||
var value = a1;
|
||||
r3 = value !== undefined ? value : AuthenticationStore;
|
||||
value = r3.getId();
|
||||
var value2 = r3.getSessionId();
|
||||
value = a0.userId === value;
|
||||
if (value) {
|
||||
r1 = a0.sessionId == null || a0.sessionId === undefined;
|
||||
r1 = !r1 ? a0.sessionId === value2 : r1;
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 1908; source: modules/activities/isActivityParticipantValidGuildMember.tsx; dependencies: [2] */
|
||||
function _fun20949(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2035:6, offset: 0x00ee6199, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/isActivityParticipantValidGuildMember.tsx');
|
||||
exports.default = function(a0) {
|
||||
return a0.member != null && a0.member.joined_at != null && a0.member.user.username !== '';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 15498; source: modules/activities/native/ActivitiesDebugOverlay.tsx; dependencies: [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573, 2] */
|
||||
function _fun118674(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:6, offset: 0x024e761f, size: 292 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsxs;
|
||||
const env0_5 = value.jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const hexWithOpacity = colorUtilsModule.hexWithOpacity;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{container: {'position': 'absolute', 'top': 0, 'left': 0,
|
||||
'backgroundColor': null, 'paddingRight': 16, 'paddingBottom': 16, backgroundColor: Reflect.apply(hexWithOpacity,
|
||||
colorUtilsModule, [BLACK, 0.7])}, row: {flexDirection: 'row'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivitiesDebugOverlay.tsx');
|
||||
exports.default = ActivitiesDebugOverlay;
|
||||
}
|
||||
|
||||
function ActivitiesDebugOverlay() { // fn#118675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:446, offset: 0x024e7743, size: 508 bytes, params: 1, frame: 24
|
||||
var r9;
|
||||
var r10;
|
||||
var SERIOUS;
|
||||
var value10;
|
||||
var value11;
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(8095) /* metro dependency 8095: useThermalState */)();
|
||||
const ThermalStates = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates;
|
||||
const UNHANDLED = ThermalStates.UNHANDLED;
|
||||
if (UNHANDLED === value3) {
|
||||
r9 = '';
|
||||
r10 = 'always-white';
|
||||
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.NOMINAL === value3) {
|
||||
r9 = 'nominal';
|
||||
r10 = 'text-feedback-positive';
|
||||
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.FAIR === value3) {
|
||||
r9 = 'fair';
|
||||
r10 = 'text-feedback-warning';
|
||||
} else {
|
||||
SERIOUS = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS;
|
||||
value10 = 'serious';
|
||||
value11 = 'text-feedback-critical';
|
||||
if (SERIOUS === value3) {
|
||||
r9 = value10;
|
||||
r10 = value11;
|
||||
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.CRITICAL !== value3) {
|
||||
r9 = value2;
|
||||
r10 = value2;
|
||||
} else {
|
||||
r9 = 'critical';
|
||||
r10 = value11;
|
||||
}
|
||||
}
|
||||
const {top, left} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
const items2 = [styles.container];
|
||||
items2[1] = {paddingTop: top + 16, paddingLeft: left + 16};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={items2} pointerEvents="none">
|
||||
<View style={styles.row}>
|
||||
<Text variant="text-md/normal" color="always-white">
|
||||
{'thermal state:'}
|
||||
{' '}
|
||||
</Text>
|
||||
<Text variant="text-md/normal" color={r10}>
|
||||
{r9}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/* Metro module 12071; source: modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx; dependencies: [31, 27, 4502, 4237, 33, 4501, 566, 4017, 4504, 1305, 1244, 4578, 2] */
|
||||
function _fun92739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:6, offset: 0x020974ff, size: 367 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_5 = (require(4237) /* metro dependency 4237: Constants */).EMBEDDED_ACTIVITIES_BLOG_POST_URL;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {duration: 500};
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({arrow: {'marginLeft': 200,
|
||||
'top': 9, 'position': 'relative', 'borderTopWidth': 0, 'borderRightWidth': 0, 'borderBottomWidth': 16,
|
||||
'borderLeftWidth': 16, transform: [{rotateZ: '225deg'}]}, tooltip: {padding: 16},
|
||||
tooltipContainer: {'position': 'absolute', 'width': 280, 'zIndex': 2, 'right': -48, 'top': -8},
|
||||
tooltipText: {'textAlign': 'center', 'fontSize': 14}, closeButtonWrapper: {marginTop: 14}});
|
||||
object = {code: 'function ActivitiesPrivateChannelCallTooltipTsx1(){const{withRepeat,withSequence,withTiming,OFFSET,translateBounceOffset,TIMING_CONFIG}=this.__closure;return{transform:[{translateY:withRepeat(withSequence(withTiming(OFFSET,{duration:0}),withTiming(OFFSET+translateBounceOffset,TIMING_CONFIG),withTiming(OFFSET,TIMING_CONFIG)),10)}]};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx');
|
||||
exports.default = ActivitiesPrivateChannelCallTooltip;
|
||||
}
|
||||
|
||||
function ActivitiesPrivateChannelCallTooltip({onClosePress}) { // fn#92740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1017, offset: 0x0209766e, size: 612 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const r7 = useReducedMotion ? 0 : 4;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = ActivitiesPrivateChannelCallTooltipT;
|
||||
closure.__closure = {withRepeat: reanimatedRexportModule.withRepeat,
|
||||
withSequence: reanimatedRexportModule.withSequence,
|
||||
withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, OFFSET: 40,
|
||||
translateBounceOffset: r7, TIMING_CONFIG: env0_7};
|
||||
closure.__workletHash = 4621705591670;
|
||||
closure.__initData = env0_9;
|
||||
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items2 = [styles.tooltipContainer, value4];
|
||||
const Tooltip = (require(1305) /* metro dependency 1305: native */).Tooltip;
|
||||
const tooltipProps = {containerStyle: styles.tooltip, labelStyle: styles.tooltipText, arrowStyle: [styles.arrow]};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
tooltipProps.label = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.xAW71b,
|
||||
{helpdeskUrl: EMBEDDED_ACTIVITIES_BLOG_POST_URL});
|
||||
const string = intl.string;
|
||||
const HOPqzR = (require(1244) /* metro dependency 1244: indexNative */).t.HOPqzR;
|
||||
tooltipProps.title = Reflect.apply(string, intl, [HOPqzR]);
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<View2 style={items2}>
|
||||
<Tooltip {...tooltipProps}>
|
||||
<View style={styles.closeButtonWrapper}>
|
||||
<Button
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
|
||||
onPress={onClosePress}
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
grow
|
||||
/>
|
||||
</View>
|
||||
</Tooltip>
|
||||
</View2>
|
||||
);
|
||||
}
|
||||
|
||||
function ActivitiesPrivateChannelCallTooltipT() { // fn#92742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1186, owner: ActivitiesPrivateChannelCallTooltip.T, offset: 0x020978d2, size: 174 bytes, params: 1, frame: 26
|
||||
let value = environment.__proto__;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const withRepeat = reanimatedRexportModule.withRepeat;
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
const withSequence = moduleValue2.withSequence;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
let withTiming = timingModule.withTiming;
|
||||
const value2 = Reflect.apply(withTiming, timingModule, [40, {duration: 0}]);
|
||||
const moduleValue4 = timingModule;
|
||||
withTiming = moduleValue4.withTiming;
|
||||
const value4 = 40 + env0_0;
|
||||
const binding = env1_7;
|
||||
value = Reflect.apply(withTiming, moduleValue4, [value4, binding]);
|
||||
const moduleValue5 = timingModule;
|
||||
value = Reflect.apply(withSequence, moduleValue2, [value2, value, moduleValue5.withTiming(40, binding)]);
|
||||
return {transform: [{translateY: Reflect.apply(withRepeat, reanimatedRexportModule, [value, 10])}]};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 10650; source: modules/activities/native/ActivityAnnouncement.tsx; dependencies: [31, 33, 7744, 2] */
|
||||
function _fun81931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:6, offset: 0x01ee40ea, size: 147 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityAnnouncement.tsx');
|
||||
exports.default = _default_81932;
|
||||
}
|
||||
|
||||
function _default_81932(a0) { // fn#81932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:140, offset: 0x01ee417d, size: 3044 bytes, params: 2, frame: 27
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const defaultImportProps = {'width': 324, 'height': 227, 'fill': 'none', ...a0};
|
||||
const Path = (require(7744) /* metro dependency 7744 */).Path;
|
||||
const items2 = [<Path fill="#5865F2" d="m180.747 219.024 29.309.136s-13.284-17.969-30.586-3.674a2.005 2.005 0 0 0-.598 2.215 2.006 2.006 0 0 0 1.875 1.323ZM279.165 161.961l20.489 16.006a2.122 2.122 0 0 1-.058 3.413 2.13 2.13 0 0 1-1.238.397c-6.35-.045-16.711-1.75-23.911-11.113l4.718-8.703Z" />];
|
||||
items2[1] = <Path fill="#242145" d="m190.667 112.195-2.682 37.96a138.277 138.277 0 0 0 .097 20.736s.279 37.15 3.564 39.126c6.765.959 13.802 9.143 13.802 9.143h9.895a2.08 2.08 0 0 0 1.509-.643 2.073 2.073 0 0 0 .578-1.534l-.246-5.333-2.806-60.621 23.892 34.072a8.718 8.718 0 0 0 9.02 3.467l30.054-6.648a2.896 2.896 0 0 0 2.236-2.495l2.086-18.792a1.985 1.985 0 0 0-1.475-2.138 1.984 1.984 0 0 0-.935-.014l-27.988 6.293-20.865-27.398a7.256 7.256 0 0 1-1.257-6.26c.991-3.654 1.723-9.895-2.294-15.467l-36.185-3.454Z" />;
|
||||
items2[2] = <Path fill="url(#a)" d="M203.738 112.24c-10.264 46.727 8.242 106.92 8.242 106.92h-4.419c-17.386-53.11-7.329-107.568-7.329-108.19l3.506 1.27Z" />;
|
||||
items2[3] = <Path fill="#000" d="m245.41 73.425 30.126 4.095a3.057 3.057 0 0 1 2.541 3.86 3.057 3.057 0 0 1-.915 1.46c-3.24 2.839-8.56 5.457-16.323 2.67l4.322 3.61a2.41 2.41 0 0 1 .793 2.5 2.416 2.416 0 0 1-1.953 1.75c-3.35.474-8.339-.388-13.841-6.693l-.35 2.637a3.06 3.06 0 0 1-4.536 2.274 16.336 16.336 0 0 1-7.458-8.89 7.04 7.04 0 0 1 4.075-8.844 7.043 7.043 0 0 1 3.519-.429Z" />;
|
||||
items2[4] = <Path fill="#8CD9FF" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z" />;
|
||||
items2[5] = <Path fill="#29CC7A" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z" />;
|
||||
items2[6] = <Path fill="#91FFAD" d="M194.082 52.857a16.847 16.847 0 0 0-9.24 7.99 30.555 30.555 0 0 0 1.743 3.888c1.944-4.912 6.422-7.594 8.819-8.728a23.45 23.45 0 0 1-1.322-3.15Z" />;
|
||||
items2[7] = <Path fill="#8CD9FF" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493c.105 4.423.928 8.8 2.436 12.96a16.846 16.846 0 0 1 9.241-7.99 23.063 23.063 0 0 1-1.141-5.19Z" />;
|
||||
items2[8] = <Path fill="#8CD9FF" d="M195.696 35.73c-1.549 2.852-1.445 5.496-3.065 5.107-1.737-.421-2.003-4.082-.454-6.927 1.549-2.845 4.834-4.692 6.059-3.39 1.225 1.303-1.024 2.366-2.54 5.21ZM262.246 136.553l.732 16.66c0 3.065-.732 5.067-3.052 7.018a25.312 25.312 0 0 1-5.437 3.739l12.027-2.702v-24.624l-4.27-.091Z" />;
|
||||
items2[9] = <Path fill="#8CD9FF" d="m265.408 137.914 8.34 13.608 14.904-5.703a1.837 1.837 0 0 1 2.033.492c.165.185.292.401.371.636l1.562 4.646a.698.698 0 0 0 1.03.343.7.7 0 0 0 .266-.311c.745-1.944 2.261-4.685 5.067-5.637a.7.7 0 0 0 .071-1.296l-7.426-3.311a1.791 1.791 0 0 0-1.296-.065l-15.202 6.732-5.495-11.553-4.225 1.419Z" />;
|
||||
items2[10] = <Path fill="url(#b)" d="M213.976 56.61a18.402 18.402 0 0 0 14.853 2.242 10.256 10.256 0 0 1 12.026 5.106c3.299 6.668 3.156 20.12-12.461 47.181l-1.542 4.484-36.184-3.428-.596-6.908c-5.832-9.843-1.899-19.88 2.145-23.075l21.759-25.603" />;
|
||||
items2[11] = <Path fill="#5865F2" d="m240.519 67.165 35.892-12.046a3.81 3.81 0 0 1 4.75 5.041c-2.015 4.945-6.551 10.815-16.757 11.982l6.817 1.646a3.021 3.021 0 0 1 1.05 5.391c-3.474 2.378-9.526 4.167-19.142.156l1.062 3.136c.862 2.553-1.14 4.633-3.803 5.041-3.163.48-9.468-.959-12.649-6.227-6.532-10.802-3.415-12.04 2.78-14.12Z" />;
|
||||
items2[12] = <Path fill="#3442D9" d="M69.277 30.184s30.897 30.994 67.263 6.143c0 0-19.622 84.765 8.314 146.059 0 0-28.979-12.493-42.846-49.384 0 0-12.033 19.971-13.2 47.641 0 0-34.415-53.486-19.53-150.46Z" />;
|
||||
items2[13] = <Path fill="url(#c)" d="M132.879 163.477s-19.531-32.581-2.975-123.184c-23.386 12.033-43.72 2.268-53.849-4.653a23.975 23.975 0 0 1-2.183-1.484c-2.275 18.43-6.428 80.657 12.409 122.258 0 0 3.402-22.498 17.269-36.89.026 0 11.275 32.445 29.329 43.953Z" />;
|
||||
items2[14] = <Path fill="#91FFAD" d="M190.071 105.287s13.738 7.938 38.323 5.832l-1.542 4.484s-17.943 2.592-36.185-3.428l-.596-6.888Z" />;
|
||||
items2[15] = <Path fill="#3442D9" d="M87.596 175.329s-9.13 21.255 3.24 20.678a7.99 7.99 0 0 0 4.362-1.445c2.844-2.106 5.631-7.387-7.602-19.233ZM141.037 178.103s1.471 23.082 12.234 16.977a7.89 7.89 0 0 0 3.24-3.24c1.601-3.188 1.685-9.162-15.474-13.737Z" />;
|
||||
items2[16] = <Path fill="url(#d)" d="m248.482 183.851 31.33-6.48.804-7.252-30.417 8.956a8.706 8.706 0 0 1-9.416-3.124l-27.216-35.601.448 5.23 25.66 34.895a8.726 8.726 0 0 0 3.907 2.982 8.728 8.728 0 0 0 4.9.394Z" />;
|
||||
items2[17] = <Path fill="#000" d="M256.057 82.659a.976.976 0 0 1-.421-.097 40.245 40.245 0 0 1-5.729-3.558.975.975 0 0 1-.194-1.36.973.973 0 0 1 1.361-.195 39.139 39.139 0 0 0 5.404 3.363.976.976 0 0 1 .524 1.091.972.972 0 0 1-.945.756Z" />;
|
||||
items2[18] = <Path fill="#EB459F" d="M242.488 14.684c-.059.22 8.288-8.651 1.03-11.14-7.258-2.488.959 4.07-1.03 11.14Z" />;
|
||||
items2[19] = <Path fill="#EB459F" d="M242.397 14.509s9.202-11.38 15.838-3.713c6.635 7.665-9.111.687-15.838 3.713Z" />;
|
||||
items2[20] = <Path fill="url(#e)" d="M223.016 61.203c11.849 0 21.455-9.605 21.455-21.455 0-11.85-9.606-21.455-21.455-21.455-11.85 0-21.455 9.606-21.455 21.455 0 11.85 9.605 21.456 21.455 21.456Z" />;
|
||||
items2[21] = <Path fill="#EB459F" d="M254.534 41.57s6.889 11.436-.414 15.454c-15.481 8.424-19.019-20.004-19.019-20.004-11.988 19.291-13.012-14.074-13.012-14.074s-28.784 5.637-22.771-11.282c0 0 3.474-8.534 14.84-.356 0 0 3.59 3.272 10.419-.227 9.131-4.685 21.929-1.523 24.469 11.016 0 0 2.644 10.09 13.064 9.201 10.419-.887 4.412 19.706-7.576 10.271Z" />;
|
||||
items2[22] = <Path fill="#000" d="M218.175 38.575c-.7-.53-1.497-.919-2.345-1.147a6.975 6.975 0 0 0-7.867 3.189 7.461 7.461 0 0 1-3.83-.525.97.97 0 0 0-1.389 1.08.97.97 0 0 0 .404.592c1.23.61 2.594.9 3.966.842h.058a6.997 6.997 0 0 0 4.958 8.314c.363.098.734.167 1.108.207h.11a.97.97 0 0 0 1.02-.923.973.973 0 0 0-.923-1.02 5.053 5.053 0 0 1-4.479-4.389 5.046 5.046 0 0 1 2.516-5.02 4.995 4.995 0 0 1 3.836-.487 5.059 5.059 0 0 1 1.698.83.97.97 0 0 0 1.575-.518.973.973 0 0 0-.416-1.038v.013ZM212.959 30.456c.985-1.063 1.84-1.555 1.464-2.184-.479-.784-2.436.11-3.622 1.653-1.069 1.393-1.445 3.24-.862 3.784h.032c.558.473 1.64-.5 3.351-.953 1.892-.499 3.278 0 3.343-1.043.065-1.043-1.885-1.633-3.706-1.257Z" />;
|
||||
items2[23] = <Path fill="url(#f)" d="M202.091 33.696a1.807 1.807 0 0 0-1.25.402 7.946 7.946 0 0 1-5.45 1.691L73.931 24.624a56.118 56.118 0 0 1-22.15-6.817L36.69 9.383a5.787 5.787 0 0 0-7.776 2.048c-5.184 8.612-3.713 17.95-1.945 23.69a5.83 5.83 0 0 0 7.375 3.765l15.947-5.365a56.099 56.099 0 0 1 23.03-2.696l120.528 11.062a7.662 7.662 0 0 1 5.586 3.35 2.006 2.006 0 0 0 1.445.991c1.665.162 3.285-2.514 3.622-5.974.337-3.46-.739-6.39-2.411-6.558Z" />;
|
||||
items2[24] = <Path fill="#000" d="M36.937 24.277c.476-6.543-1.135-11.992-3.598-12.17-2.463-.18-4.845 4.979-5.321 11.521-.476 6.543 1.135 11.992 3.598 12.171 2.462.18 4.845-4.98 5.32-11.522Z" />;
|
||||
items2[25] = <Path fill="#8CD9FF" d="M179.982 28.862c-1.944-.26-3.356 1.983-2.903 3.888.571 2.398 1.944 5.249 5.139 6.013 1.569.37 3.171.574 4.782.61a6.96 6.96 0 0 0 7.083-6.001c.253-1.866.123-4.432-2.262-4.121-6.292.823-6.123.362-11.839-.39Z" />;
|
||||
items2[26] = <Path fill="#57F287" d="M212.414 58.463c-11.56-4.62-17.865 11.268-17.865 11.268-15.753-9.622-21.384-25.92-21.384-25.92l-.111-1.691a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778s8.385 44.77 31.506 42.71c27.495-2.457 29.251-28.772 19.628-32.627Z" />;
|
||||
items2[27] = <Path fill="#91FFAD" d="M177.351 52.183c-5.832 3.059-9.02 10.699-10.407 14.982a80.718 80.718 0 0 0 2.242 5.048c1.886-8.903 8.055-13.977 10.958-15.908a50.157 50.157 0 0 1-2.793-4.122Z" />;
|
||||
items2[28] = <Path fill="#29CC7A" d="M209.654 86.832a.81.81 0 0 1-.512-1.439c7.212-5.76 8.722-14.288 8.735-14.372a.814.814 0 0 1 .933-.668.81.81 0 0 1 .667.933 27.116 27.116 0 0 1-9.318 15.37.783.783 0 0 1-.505.176Z" />;
|
||||
items2[29] = <Path fill="#8CD9FF" d="M173.054 42.12a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778a110.157 110.157 0 0 0 5.651 18.792c1.387-4.284 4.588-11.923 10.407-14.982a47.609 47.609 0 0 1-4.154-8.353l-.13-1.717Z" />;
|
||||
items2[30] = <Path fill="#3F99F2" d="M184.032 39.113a19.099 19.099 0 0 1-.693-6.09.816.816 0 0 0-.458-.778.808.808 0 0 0-.307-.078.805.805 0 0 0-.855.758c-.086 1.96.095 3.921.538 5.832.596.162 1.186.266 1.775.356ZM189.216 39.074a19.622 19.622 0 0 1-.57-5.65.812.812 0 0 0-.758-.91.807.807 0 0 0-.793.495.818.818 0 0 0-.063.324c-.09 2.028.104 4.059.577 6.033a7.323 7.323 0 0 0 1.607-.292Z" />;
|
||||
items2[31] = <Path fill="#000" d="m266.516 136.65-4.27-.097.376 8.573c1.069.266 2.21.084 3.888-.421l.006-8.055Z" />;
|
||||
items2[32] = <Path fill="#000" d="m269.627 136.469-4.219 1.445 3.921 6.389a6.62 6.62 0 0 0 3.7-.687l-3.402-7.147Z" />;
|
||||
items2[33] = <Path fill="#EB459F" d="m272.893 101.036 2.592-4.043a3.882 3.882 0 0 1 4.197-1.71c.524.126 1.017.36 1.447.686l2.592 1.944a1 1 0 0 1-.875 1.756l-2.041-.583a5.346 5.346 0 0 0-3.467.175l-4.445 1.775Z" />;
|
||||
items2[34] = <Path fill="url(#g)" d="M260.832 108.125s-16.031-1.367-13.983 15.688c2.047 17.056 39.884 27.54 48.431-8.359 2.56-10.744-15.688-.168-15.688-.168s.68-31.208-18.76-7.161Z" />;
|
||||
items2[35] = <Path fill="url(#h)" d="m263.678 106.499-3.033-.875a22.842 22.842 0 0 1-8.294-4.536l-5.741-4.886a1.887 1.887 0 0 0-2.489 0c-3.492 3.175-3.376 7.854-2.987 10.368a1.877 1.877 0 0 0 2.106 1.568l7.271-.926a22.865 22.865 0 0 1 9.409.764l3.032.901a1.298 1.298 0 0 0 1.581-.868 1.294 1.294 0 0 0-.855-1.51Z" />;
|
||||
items2[36] = <Path fill="#000" d="M245.891 103.128c.766-2.724.543-5.17-.498-5.463-1.041-.293-2.506 1.679-3.272 4.403-.766 2.725-.544 5.171.497 5.463 1.041.293 2.506-1.678 3.273-4.403Z" />;
|
||||
items2[37] = <Path fill="#5865F2" d="M288.528 118.94c.707 1.296-.557 3.305-2.592 4.88-1.814 5.722-4.892 6.732-6.875 7.342-2.644.803-6.311.337-7.951-2.631-1.639-2.968-1.166-6.37 2.022-8.126 3.188-1.756 13.763-4.413 15.396-1.465Z" />;
|
||||
items2[38] = <Path fill="#000" d="M268.408 108.404a.969.969 0 0 1-.863-.527.978.978 0 0 1 .073-1.009c.097-.13 2.384-3.298 6.395-2.702a.993.993 0 0 1 .362.128.98.98 0 0 1 .339 1.348.981.981 0 0 1-.986.468 4.947 4.947 0 0 0-4.536 1.912.963.963 0 0 1-.784.382ZM285.956 123.82c-2.184 1.49-5.236 1.393-5.269 1.393a.958.958 0 0 0-1.01.927.96.96 0 0 0 .257.699.985.985 0 0 0 .676.312h.246a13.118 13.118 0 0 0 3.979-.648c.456-.858.832-1.756 1.121-2.683Z" />;
|
||||
items2[39] = <Path fill="#91FFAD" d="M40.824 159.168a10.869 10.869 0 0 1-4.931-7.646l-.817-5.34a.57.57 0 0 0-.175-.337.493.493 0 0 0-.35-.148.495.495 0 0 0-.35.148.61.61 0 0 0-.174.337l-.817 5.34a11.017 11.017 0 0 1-4.931 7.646l-.706.447a.564.564 0 0 0-.169.707.54.54 0 0 0 .169.194l.706.447a11.026 11.026 0 0 1 4.931 7.647l.817 5.339a.53.53 0 0 0 1.05 0l.816-5.339c.225-1.553.78-3.04 1.626-4.362a10.88 10.88 0 0 1 3.305-3.285l.706-.447a.538.538 0 0 0 .227-.447.556.556 0 0 0-.227-.454l-.706-.447Z" />;
|
||||
items2[40] = <Path fill="#8CD9FF" d="M155.229 119.796a8.415 8.415 0 0 1-2.545-2.534 8.415 8.415 0 0 1-1.259-3.363l-.648-4.115a.42.42 0 0 0-.136-.259.36.36 0 0 0-.269-.116.367.367 0 0 0-.269.116.42.42 0 0 0-.136.259l-.648 4.115a8.562 8.562 0 0 1-3.804 5.897l-.544.343a.342.342 0 0 0-.13.156.435.435 0 0 0 0 .388.361.361 0 0 0 .13.149l.544.344a8.563 8.563 0 0 1 3.804 5.903l.648 4.115a.423.423 0 0 0 .136.246.406.406 0 0 0 .266.097.41.41 0 0 0 .272-.097.423.423 0 0 0 .136-.246l.648-4.115a8.504 8.504 0 0 1 1.257-3.369 8.432 8.432 0 0 1 2.547-2.534l.544-.344a.348.348 0 0 0 .13-.149.422.422 0 0 0 .045-.194.383.383 0 0 0-.045-.194.336.336 0 0 0-.13-.156l-.544-.343Z" />;
|
||||
items2[41] = <Path fill="#FF78B9" d="M306.31 106.343a8.555 8.555 0 0 1-2.547-2.533 8.377 8.377 0 0 1-1.251-3.364l-.648-4.114a.392.392 0 0 0-.136-.26.413.413 0 0 0-.265-.116.438.438 0 0 0-.273.116.411.411 0 0 0-.129.26l-.648 4.114a8.597 8.597 0 0 1-1.264 3.357 8.463 8.463 0 0 1-2.54 2.54l-.544.344a.398.398 0 0 0-.13.149.435.435 0 0 0-.045.201.422.422 0 0 0 .045.194c.03.06.075.111.13.149l.544.343a8.51 8.51 0 0 1 3.804 5.897l.648 4.115a.397.397 0 0 0 .402.35.408.408 0 0 0 .265-.097.417.417 0 0 0 .136-.253l.648-4.115a8.378 8.378 0 0 1 1.251-3.363 8.559 8.559 0 0 1 2.547-2.534l.55-.343a.476.476 0 0 0 .13-.149.42.42 0 0 0 .039-.194.433.433 0 0 0-.039-.201.476.476 0 0 0-.13-.149l-.55-.344ZM48.302 84.694a8.458 8.458 0 0 1-2.54-2.534 8.289 8.289 0 0 1-1.258-3.363l-.648-4.115a.414.414 0 0 0-.13-.26.446.446 0 0 0-.271-.116.402.402 0 0 0-.266.117.395.395 0 0 0-.136.259l-.648 4.115a8.521 8.521 0 0 1-3.797 5.897l-.551.343a.48.48 0 0 0-.13.15.364.364 0 0 0-.039.2.35.35 0 0 0 .04.194.48.48 0 0 0 .129.15l.55.343a8.605 8.605 0 0 1 2.534 2.54 8.495 8.495 0 0 1 1.296 3.357l.648 4.114a.408.408 0 0 0 .804 0l.648-4.114a8.289 8.289 0 0 1 1.257-3.364 8.458 8.458 0 0 1 2.54-2.533l.55-.344a.48.48 0 0 0 .13-.149.35.35 0 0 0 .04-.194.362.362 0 0 0-.04-.2.48.48 0 0 0-.13-.15l-.582-.343Z" />;
|
||||
items2[42] = <Path fill="#FFE75C" d="M58.222 139.275a7.139 7.139 0 0 1-3.24-5.042l-.55-3.512a.366.366 0 0 0-.117-.22.315.315 0 0 0-.355-.071.309.309 0 0 0-.105.071.366.366 0 0 0-.117.22l-.538 3.512a7.296 7.296 0 0 1-3.24 5.042l-.466.291a.355.355 0 0 0-.11.13.374.374 0 0 0 0 .33.355.355 0 0 0 .11.13l.466.298a7.128 7.128 0 0 1 2.165 2.171c.56.866.93 1.843 1.082 2.864l.538 3.512a.37.37 0 0 0 .116.214.358.358 0 0 0 .46 0 .371.371 0 0 0 .117-.214l.538-3.512a7.125 7.125 0 0 1 3.24-5.035l.466-.298a.355.355 0 0 0 .11-.13.374.374 0 0 0 0-.33.355.355 0 0 0-.11-.13l-.46-.291Z" />;
|
||||
items2[43] = <Path fill="#fff" d="M88.341 88.128c-1.367 1.374-1.82 6.713-1.82 6.713s5.346-.447 6.72-1.814a3.48 3.48 0 0 0 1.004-2.3H90.66v-3.59c-.87.029-1.697.382-2.32.99Z" />;
|
||||
items2[44] = <Path fill="#fff" fillRule="evenodd" d="m90.292 83.8 7.284 7.276 1.82-1.82 1.368 5.922 2.274-2.28v-7.284l4.536-4.536c1.821-1.821 5.463-6.195 3.642-10.925-4.737-1.821-9.072 1.82-10.925 3.641L90.292 83.8Zm14.34-4.485a2.59 2.59 0 0 0 1.833-4.425 2.59 2.59 0 0 0-3.988.393 2.59 2.59 0 0 0 2.155 4.032Z" clipRule="evenodd" />;
|
||||
items2[45] = <Path fill="#fff" d="M95.755 78.33H88.47l-2.287 2.281 5.916 1.361 3.655-3.642Z" />;
|
||||
items2[46] = <Path fill="#29CC7A" d="M199.098 71.28h.071a.81.81 0 1 0 .065-1.62 10.545 10.545 0 0 1-3.986-1.458c-.408.803-.648 1.348-.686 1.47a11.822 11.822 0 0 0 4.536 1.608Z" />;
|
||||
items2[47] = <Path fill="#000" d="m268.92 73.224-4.498-1.089a11.725 11.725 0 0 1-3.816-.37.974.974 0 0 0-1.136 1.347c.104.225.29.402.52.494 1.203.353 2.453.522 3.707.5a16.275 16.275 0 0 0 5.074-.824c.05-.016.1-.036.149-.058Z" />;
|
||||
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
|
||||
const LinearGradient = (require(7744) /* metro dependency 7744 */).LinearGradient;
|
||||
const Stop = (require(7744) /* metro dependency 7744 */).Stop;
|
||||
let value = <Stop stopColor="#FFE75C" />;
|
||||
value = <LinearGradient id="a" x1={204.665} x2={204.665} y1={110.97} y2={219.147} gradientUnits="userSpaceOnUse">{value}<Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
|
||||
const items3 = [value];
|
||||
items3[1] = <LinearGradient id="b" x1={221.642} x2={205.481} y1={54.413} y2={125.699} gradientUnits="userSpaceOnUse"><Stop offset={0.24} stopColor="#57F287" /><Stop offset={0.66} stopColor="#29CC7A" /></LinearGradient>;
|
||||
const items5 = [<Stop offset={0.29} stopColor="#5865F2" />];
|
||||
items5[1] = <Stop offset={0.51} stopColor="#5D6AF4" />;
|
||||
items5[2] = <Stop offset={0.76} stopColor="#6C77F8" />;
|
||||
items5[3] = <Stop offset={1} stopColor="#808AFF" />;
|
||||
items3[2] = <LinearGradient id="c" x1={102.364} x2={102.364} y1={163.477} y2={34.156} gradientUnits="userSpaceOnUse">{items5}</LinearGradient>;
|
||||
items3[3] = <LinearGradient id="d" x1={247.101} x2={247.101} y1={140.357} y2={184.032} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
|
||||
items3[4] = <LinearGradient id="e" x1={223.016} x2={223.016} y1={61.203} y2={18.287} gradientUnits="userSpaceOnUse"><Stop stopColor="#66BCFF" /><Stop offset={1} stopColor="#8CD9FF" /></LinearGradient>;
|
||||
items3[5] = <LinearGradient id="f" x1={114.955} x2={114.955} y1={8.677} y2={46.235} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
|
||||
items3[6] = <LinearGradient id="g" x1={268.375} x2={279.113} y1={107.996} y2={148.729} gradientUnits="userSpaceOnUse"><Stop offset={0.24} stopColor="#57F287" /><Stop offset={0.66} stopColor="#29CC7A" /></LinearGradient>;
|
||||
items3[7] = <LinearGradient id="h" x1={252.766} x2={252.766} y1={95.755} y2={108.987} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
|
||||
items2[48] = <Defs>{items3}</Defs>;
|
||||
return ((Component) => <Component {...defaultImportProps}>{items2}</Component>)(defaultImport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 15702; source: modules/activities/native/ActivityFeedbackActionSheet.tsx; dependencies: [31, 4237, 661, 9906, 33, 683, 15703, 9927, 1244, 9909, 3856, 15704, 2] */
|
||||
function _fun120528(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:6, offset: 0x0252e186, size: 242 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const ActivityFeedbackReasons = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_5 = (require(9906) /* metro dependency 9906: Constants */).FeedbackType;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const OTHER = ActivityFeedbackReasons.OTHER;
|
||||
items = [OTHER];
|
||||
const ADS = ActivityFeedbackReasons.ADS;
|
||||
items[1] = ADS;
|
||||
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
|
||||
items[2] = NOT_FUN;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityFeedbackActionSheet.tsx');
|
||||
exports.default = ActivityFeedbackActionSheet;
|
||||
}
|
||||
|
||||
function ActivityFeedbackActionSheet({activityApplication, channel, embeddedActivityLocation, analyticsData}) { // fn#120529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:330, offset: 0x0252e278, size: 359 bytes, params: 2, frame: 25
|
||||
const value3 = (importDefault(15703) /* metro dependency 15703: getActivityReportOptions */)(true,
|
||||
activityApplication.embeddedActivityConfig?.displays_advertisements === true);
|
||||
const FeedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const QXYwoD = (require(1244) /* metro dependency 1244: indexNative */).t.QXYwoD;
|
||||
object2.headerLabel = Reflect.apply(formatToPlainString, intl, [QXYwoD,
|
||||
{applicationName: activityApplication.name}]);
|
||||
object2.showHeaderCloseButton = true;
|
||||
object2.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9hk2KF']);
|
||||
object2.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
|
||||
object2.reasons = value3;
|
||||
object2.feedbackReasons = env0_7;
|
||||
const OTHER = ActivityFeedbackReasons.OTHER;
|
||||
object2.otherKey = OTHER;
|
||||
object2.trackOpen = function() {
|
||||
var activityApplicationBinding = activityApplication;
|
||||
var defaultImport = importDefault(dependencyMap[5]);
|
||||
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
defaultImport.track(OPEN_POPOUT, {type: 'Activity Feedback Sheet',
|
||||
application_id: activityApplicationBinding.id,
|
||||
application_name: activityApplicationBinding.name, game_id: activityApplicationBinding.id,
|
||||
source: 'Activity End'});
|
||||
};
|
||||
object2.trackReport = trackReport;
|
||||
return <FeedbackActionSheet {...object2} />;
|
||||
}
|
||||
|
||||
function ActivityFeedbackActionSheetTrackReport({rating, reason, feedback, dontShowAgain}) { // fn#120531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:1026, owner: ActivityFeedbackActionSheet.trackReport, offset: 0x0252e44c, size: 319 bytes, params: 2, frame: 21
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var value5;
|
||||
var defaultImport2;
|
||||
let value = null;
|
||||
const r4 = value != reason ? reason.value : value;
|
||||
if (dontShowAgain) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.ACTIVITY_REPORT_DONT_SHOW, {application_id: activityApplication.id,
|
||||
rating: rating});
|
||||
(require(9909) /* metro dependency 9909: FeedbackUtils */).processOptOut({feedbackType: FeedbackType.ACTIVITY,
|
||||
location: 'ActivityFeedbackActionSheet'});
|
||||
}
|
||||
if (value != rating) {
|
||||
value5 = environment.__proto__;
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
|
||||
defaultImport2 = importDefault(15704) /* metro dependency 15704: trackActivityProblem */;
|
||||
value = '';
|
||||
defaultImport2({problem: r4, channel: channel, embeddedActivityLocation: embeddedActivityLocation,
|
||||
feedback: value != feedback ? feedback : value, activityApplication: activityApplication,
|
||||
analyticsData: analyticsData, location: 'Activity End', rating: rating});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,237 @@
|
||||
/* Metro module 13034; source: modules/activities/native/ActivityShareLinkModal.tsx; dependencies: [5, 57, 31, 27, 1379, 1878, 1378, 7690, 4503, 33, 4501, 697, 566, 7232, 8809, 13033, 6777, 1360, 13035, 7067, 7076, 3857, 1244, 6797, 3856, 1478, 477, 5287, 9603, 5282, 5277, 4056, 7704, 9761, 9789, 2] */
|
||||
function _fun99485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:6, offset: 0x021ca902, size: 465 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const env0_10 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
|
||||
const env0_11 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingVertical = PX_8;
|
||||
let BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOWER;
|
||||
object3.headerContainer = object4;
|
||||
object3.header = {'borderBottomWidth': 0, 'shadowColor': 'transparent', 'backgroundColor': 'transparent'};
|
||||
BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object3.container = {'flex': 1, 'display': 'flex', backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityShareLinkModal.tsx');
|
||||
exports.default = ActivityShareLinkModal;
|
||||
}
|
||||
|
||||
function ActivityShareLinkModal({applicationId, customId, linkId, message, onShare}) { // fn#99486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:695, offset: 0x021caad3, size: 1220 bytes, params: 2, frame: 36
|
||||
const env0_3 = message;
|
||||
const env0_4 = onShare;
|
||||
const styles = useStyles();
|
||||
const connectedActivityChannelId = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
||||
function() {
|
||||
return EmbeddedActivitiesStore.getConnectedActivityChannelId();
|
||||
});
|
||||
const binding = connectedActivityChannelId;
|
||||
const value3 = binding.useMemo(_fun99488, [connectedActivityChannelId]);
|
||||
let useState = binding.useState;
|
||||
const value4 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_4;
|
||||
const value5 = binding2(value4, 2);
|
||||
const property = value5[0];
|
||||
const env0_6 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value7[0];
|
||||
const env0_8 = value7[1];
|
||||
useState = binding.useState;
|
||||
const value8 = binding2(Reflect.apply(useState, binding, [[]]), 2);
|
||||
const property3 = value8[0];
|
||||
const env0_10 = value8[1];
|
||||
const length = property3.length;
|
||||
const value9 = binding.useCallback(_fun99489, []);
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
useState = binding.useState;
|
||||
const value10 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
const property4 = value10[0];
|
||||
binding.useEffect(_fun99491, [applicationId, currentUser, customId, linkId, value10[1]]);
|
||||
const value11 = binding.useCallback(_fun99492, [property2, onShare]);
|
||||
const value13 = binding.useCallback(env0_3(_fun99494),
|
||||
[binding2((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([applicationId]), 1)[0],
|
||||
property2, property4, message, onShare, property3]);
|
||||
const env0_15 = binding.useCallback(_fun99499, [property4]);
|
||||
const value14 = binding.useMemo(_fun99500,
|
||||
[(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}).height]);
|
||||
const Header = (require(5287) /* metro dependency 5287 */).Header;
|
||||
const headerProps = {headerStyle: styles.header};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.r9qKow);
|
||||
headerProps.headerTitle = headerTitle_99501;
|
||||
headerProps.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value11);
|
||||
headerProps.headerRight = headerRight_99502;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
headerProps.headerStatusBarHeight = platformUtilsModule.isIOS() ? 0 : undefined;
|
||||
headerProps.headerTitleAlign = 'center';
|
||||
const view = <View style={styles.headerContainer}><Header {...headerProps} /></View>;
|
||||
const viewBinding2Props = {style: styles.container};
|
||||
const items2 = [((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)];
|
||||
const SearchableDestinationList = importDefault(9761) /* metro dependency 9761: SearchableDestinationList */;
|
||||
const TOGGLE = UserRowModes.TOGGLE;
|
||||
items2[1] = <SearchableDestinationList disableGradient disableStickySections initialSelectedDestinations={[]} insetEnd={0} onSelectedDestinationChange={value9} originDestination={value3} rowMode={TOGGLE} />;
|
||||
const ModalFloatingAction = (require(9789) /* metro dependency 9789: ModalFloatingActionNative */).ModalFloatingAction;
|
||||
items2[2] = <ModalFloatingAction disabled={property} floatingBackgroundColor={styles.container.backgroundColor} isVisible={length > 0} loading={property} onPress={property ? undefined : value13} text={length === 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
|
||||
{count: length})} />;
|
||||
return (
|
||||
<View style={value14}>
|
||||
{view}
|
||||
<View {...viewBinding2Props}>
|
||||
{items2}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun99488() { // fn#99488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:884, offset: 0x021cafaa, size: 60 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
if (connectedActivityChannelId != null) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(7232) /* metro dependency 7232: formatResults */;
|
||||
r0 = moduleValue.getDestinationIdFromChannelId(connectedActivityChannelId);
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun99491() { // fn#99491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1227, offset: 0x021cafe6, size: 107 bytes, params: 1, frame: 16
|
||||
const binding = env0_13;
|
||||
const value3 = undefined;
|
||||
const getApplicationInstallURLModule = require(8809) /* metro dependency 8809: getApplicationInstallURL */;
|
||||
const getActivityLaunchURL = getApplicationInstallURLModule.getActivityLaunchURL;
|
||||
binding(Reflect.apply(getActivityLaunchURL, getApplicationInstallURLModule, [{applicationId: applicationId,
|
||||
referrerId: currentUser == null ? value3 : currentUser.id, customId: customId, linkId: linkId}]));
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun99492() { // fn#99492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1371, offset: 0x021cb051, size: 56 bytes, params: 1, frame: 13
|
||||
onShare(false, env0_7);
|
||||
const value = environment.__proto__;
|
||||
(require(13033) /* metro dependency 13033: openActivityShareLinkModalNative */).closeActivityShareLinkModal();
|
||||
}
|
||||
|
||||
function* _fun99494() { // fn#99494, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1479, offset: 0x021cb094, size: 368 bytes, params: 1, frame: 25
|
||||
var environment;
|
||||
if (true) {
|
||||
var env0_0;
|
||||
value = environment.__proto__;
|
||||
if (useStyles != null) {
|
||||
var Promise = global.Promise;
|
||||
var all = Promise.all;
|
||||
var map = EmbeddedActivitiesStore.map;
|
||||
var binding = env2_0;
|
||||
var getOrResolveChannelIdFromDestinationId = binding(env2_2[13]).getOrResolveChannelIdFromDestinationId;
|
||||
yield Reflect.apply(all, Promise, [Reflect.apply(map, EmbeddedActivitiesStore,
|
||||
[getOrResolveChannelIdFromDestinationId])]);
|
||||
var value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
var filter = value4.filter;
|
||||
binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var value6 = Reflect.apply(filter, value4, [binding(binding2[17]).isNotNullish]);
|
||||
var value7 = binding(binding2[18]);
|
||||
env0_0 = value7.resolveActivityShareMessageContent(env1_3, useStyles, env1_12);
|
||||
View(true);
|
||||
value6.forEach(_fun99495());
|
||||
var value8 = env2_1(binding2[21]);
|
||||
var open = value8.open;
|
||||
var intl = binding(binding2[22]).intl;
|
||||
Reflect.apply(open, value8, [{key: 'ACTIVITY_SHARE_LINK_SUCCESS',
|
||||
content: intl.formatToPlainString(binding(binding2[22]).t.jQULqL, {applicationName: useStyles.name})}]);
|
||||
env1_4(true, ChannelStore);
|
||||
binding(binding2[15]).closeActivityShareLinkModal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun99499() { // fn#99499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2108, offset: 0x021cb2c6, size: 78 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(env0_12);
|
||||
env0_8(true);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
|
||||
}
|
||||
|
||||
function _fun99500() { // fn#99500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2224, offset: 0x021cb314, size: 59 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
return {height: value ? height : '100%'};
|
||||
}
|
||||
|
||||
function ActivityShareLinkModalHeaderTitle({children}) { // fn#99501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2441, owner: ActivityShareLinkModal.headerTitle, offset: 0x021cb34f, size: 79 bytes, params: 2, frame: 14
|
||||
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
||||
return (
|
||||
<GenericHeaderTitle
|
||||
title={children}
|
||||
subtitle={message}
|
||||
variant="redesign/heading-18/bold"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ActivityShareLinkModalHeaderRight(a0) { // fn#99502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2600, owner: ActivityShareLinkModal.headerRight, offset: 0x021cb39e, size: 154 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {...a0};
|
||||
headerActionButtonProps['onPress'] = env0_15;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Xrt5Po = (require(1244) /* metro dependency 1244: indexNative */).t.Xrt5Po;
|
||||
headerActionButtonProps['accessibilityLabel'] = Reflect.apply(string, intl, [Xrt5Po]);
|
||||
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
headerActionButtonProps['IconComponent'] = LinkIcon;
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function _fun99495() { // fn#99495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1684, offset: 0x021cb204, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env3_3(_fun99497);
|
||||
return _fun99498;
|
||||
}
|
||||
|
||||
function* _fun99497(a0) { // fn#99497, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1704, offset: 0x021cb233, size: 147 bytes, params: 2, frame: 21
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
var binding = env5_7;
|
||||
var channel = binding.getChannel(a0);
|
||||
if (channel != null) {
|
||||
binding = env5_1;
|
||||
var binding2 = env5_2;
|
||||
var value4 = binding(binding2[19]);
|
||||
var sendMessage = value4.sendMessage;
|
||||
var value5 = binding(binding2[20]);
|
||||
var value7 = value5.parse(channel, applicationId);
|
||||
var ACTIVITY_SHARE = env5_11.ACTIVITY_SHARE;
|
||||
yield Reflect.apply(sendMessage, value4, [a0, value7, false, {location: ACTIVITY_SHARE}]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 11627; source: modules/activities/native/ActivityShelfBadge.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1305, 1909, 4573, 1244, 2] */
|
||||
function _fun89193(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:6, offset: 0x020037f7, size: 459 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const STATUS_POSITIVE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE_BACKGROUND;
|
||||
object2.badge = {'position': 'absolute', 'top': 4, 'right': 4, 'display': 'flex', 'flexDirection': 'row',
|
||||
'alignItems': 'center', backgroundColor: STATUS_POSITIVE_BACKGROUND};
|
||||
const object5 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BADGE_NOTIFICATION_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_NOTIFICATION_BACKGROUND;
|
||||
object5.backgroundColor = BADGE_NOTIFICATION_BACKGROUND;
|
||||
object2.newBadge = object5;
|
||||
const object6 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BADGE_BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_BACKGROUND_BRAND;
|
||||
object6.backgroundColor = BADGE_BACKGROUND_BRAND;
|
||||
object2.updatedBadge = object6;
|
||||
const nativeModule = require(1305) /* metro dependency 1305: native */;
|
||||
const generateBoxShadowStyle = nativeModule.generateBoxShadowStyle;
|
||||
const FOUR_DP_ELEVATION_SHADOW_PARAMS = nativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
|
||||
object2.elevationShadow = Reflect.apply(generateBoxShadowStyle, nativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
|
||||
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
||||
object2.badgeText = {'textTransform': 'uppercase', 'marginLeft': 2, 'fontFamily': null, 'lineHeight': 16,
|
||||
'fontSize': 12, fontFamily: DISPLAY_EXTRABOLD};
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityShelfBadge.tsx');
|
||||
exports.default = ActivityShelfBadge;
|
||||
}
|
||||
|
||||
function ActivityShelfBadge({labelType, replacementStyles}) { // fn#89194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:898, offset: 0x020039c2, size: 446 bytes, params: 2, frame: 24
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const r8 = replacementStyles ?? styles.badge;
|
||||
const EmbeddedActivityLabelTypes = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes;
|
||||
const NEW = EmbeddedActivityLabelTypes.NEW;
|
||||
return labelType === NEW ? <View style={[r8, styles.newBadge,
|
||||
styles.elevationShadow]}><Text variant="text-xs/semibold" style={styles.badgeText} color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA)}</Text></View> : labelType !== (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes.UPDATED ? null : <View style={[r8,
|
||||
styles.updatedBadge,
|
||||
styles.elevationShadow]}><Text variant="text-xs/semibold" style={styles.badgeText} color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/qdhkk'])}</Text></View>;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,479 @@
|
||||
/* Metro module 8092; source: modules/activities/native/EmbeddedActivitiesNativeManager.tsx; dependencies: [6, 7, 15, 17, 102, 18, 5, 27, 1379, 4294, 1378, 4237, 661, 5269, 477, 8070, 8071, 1216, 8072, 4496, 1244, 8093, 3774, 683, 694, 8095, 7860, 3857, 8096, 1239, 1360, 491, 8097, 2] */
|
||||
function _fun64844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:6, offset: 0x01bb6cf3, size: 505 bytes, params: 8, frame: 21
|
||||
var nativeEventEmitter;
|
||||
const env0_0 = require;
|
||||
const postMessageToWebView_64850 = function() {
|
||||
return _postMessageToWebView_64851.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(102) /* metro dependency 102 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_9 = importDefault(5) /* metro dependency 5 */;
|
||||
const NativeEventEmitter = (require(27) /* metro dependency 27 */).NativeEventEmitter;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const env0_13 = (require(4237) /* metro dependency 4237: Constants */).DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_14 = value.AnalyticEvents;
|
||||
const env0_15 = value.ComponentActions;
|
||||
const env0_16 = (require(5269) /* metro dependency 5269 */).getWebViewProxy('EMBEDDED_ACTIVITY_WEB_VIEW_KEY');
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
if (value) {
|
||||
nativeEventEmitter = new NativeEventEmitter(importDefault(8070) /* metro dependency 8070: NativeAppLifecycleModule */);
|
||||
}
|
||||
value = importDefault(8097) /* metro dependency 8097: EmbeddedActivitiesManager */;
|
||||
value = _fun64854(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivitiesNativeManager.tsx');
|
||||
exports.default = value;
|
||||
exports.EMBEDDED_ACTIVITY_WEB_VIEW_KEY = 'EMBEDDED_ACTIVITY_WEB_VIEW_KEY';
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_64845() { // fn#64845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:337, offset: 0x01bb6eec, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_64845_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _superPropGet_64848(a0, a1, a2, a3) { // fn#64848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:530, offset: 0x01bb6f4a, size: 99 bytes, params: 5, frame: 18
|
||||
let value = a0;
|
||||
const env0_0 = a2;
|
||||
const binding = env0_7;
|
||||
value = env0_6(1 & 3 ? value.prototype : value);
|
||||
value = binding(value, a1, a2);
|
||||
return 2 & 3 ? typeof value !== 'function' ? value : _fun64849 : value;
|
||||
}
|
||||
|
||||
function _postMessageToWebView_64851() { // fn#64851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:862, offset: 0x01bb6fad, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_9(_fun64853).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun64854(a0) { // fn#64854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1057, offset: 0x01bb705a, size: 329 bytes, params: 2, frame: 16
|
||||
const closure = EmbeddedActivitiesNativeManager;
|
||||
env0_8(closure, a0);
|
||||
return env0_4(closure, [{key: '_initialize', value: value_64857}, {key: '_terminate', value: value_64861},
|
||||
{key: 'showErrorModal', value: function({code, message}) {
|
||||
var defaultImport = importDefault(dependencyMap[19]);
|
||||
var object = {};
|
||||
object.title = require(dependencyMap[20]).intl.formatToPlainString(require(dependencyMap[20]).t.hbiAO6,
|
||||
{code: code});
|
||||
object.body = message;
|
||||
defaultImport.show(object);
|
||||
}}, {key: 'showLaunchErrorModal', value: function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[19]);
|
||||
var object = {};
|
||||
object.title = require(dependencyMap[20]).intl.string(require(dependencyMap[20]).t.PtobXW);
|
||||
object.body = a0;
|
||||
defaultImport.show(object);
|
||||
}}, {key: 'showDevShelfOverrideEnabled', value: value_64864}, {key: 'releaseWebView', value: value_64865},
|
||||
{key: 'leaveActivity', value: function({location, applicationId, showFeedback}) {
|
||||
var clearEmbeddedActivityState;
|
||||
var value = this.releaseWebView();
|
||||
if (location != null && require(dependencyMap[30]).isNotNullish(applicationId)) {
|
||||
clearEmbeddedActivityState = this.clearEmbeddedActivityState;
|
||||
value = value != null;
|
||||
Reflect.apply(clearEmbeddedActivityState, this, [location, applicationId, value && showFeedback]);
|
||||
}
|
||||
}}, {key: 'hidePIPEmbed', value: function(a0) {
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", a0);
|
||||
throw undefined;
|
||||
}
|
||||
}}, {key: 'clearEmbeddedActivityState', value: value_64868}, {key: 'releaseFrameId', value: function() {
|
||||
var frameId = this.frameId;
|
||||
this.frameId = undefined;
|
||||
return frameId;
|
||||
}}, {key: 'hasFrameId', value: function() {
|
||||
return this.frameId != null;
|
||||
}}, {key: 'getOrCreateFrameId', value: value_64871}]);
|
||||
}
|
||||
|
||||
function* _fun64853(a0) { // fn#64853, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:927, offset: 0x01bb6fe6, size: 116 bytes, params: 2, frame: 15
|
||||
var binding;
|
||||
var injectJavaScript;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var property;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_16;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
injectJavaScript = binding.injectJavaScript;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[16];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value3 = binding2(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = value3(a0);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(injectJavaScript, binding, [value4]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[17]);
|
||||
value.captureException(error);
|
||||
return undefined;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EmbeddedActivitiesNativeManager(a0) { // fn#64855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1069, offset: 0x01bb71a3, size: 143 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, EmbeddedActivitiesNativeManager);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_6(EmbeddedActivitiesNativeManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_64845()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.handleRPCDisconnect = handleRPCDisconnect;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_64857() { // fn#64857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1666, offset: 0x01bb7297, size: 228 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const _superPropGet_64848Binding = _superPropGet_64848;
|
||||
const value3 = undefined;
|
||||
_superPropGet_64848Binding(EmbeddedActivitiesNativeManager, '_initialize', this, 3)([]);
|
||||
const lifecycleSubscription = this.lifecycleSubscription;
|
||||
if (lifecycleSubscription != null) {
|
||||
lifecycleSubscription.remove();
|
||||
}
|
||||
this.lifecycleSubscription = env1_17 == null ? value3 : env1_17.addListener('onHostDestroy', _fun64858);
|
||||
const scriptMessageSubscription = this.scriptMessageSubscription;
|
||||
if (scriptMessageSubscription != null) {
|
||||
scriptMessageSubscription.remove();
|
||||
}
|
||||
const binding = env1_16;
|
||||
this.scriptMessageSubscription = binding.addOnMessageListener(_fun64859);
|
||||
const thermalStateSubscription = this.thermalStateSubscription;
|
||||
if (thermalStateSubscription != null) {
|
||||
thermalStateSubscription.remove();
|
||||
}
|
||||
value = importDefault(8093) /* metro dependency 8093: ThermalUtilsNative */;
|
||||
this.thermalStateSubscription = value.addListener(_fun64860);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function value_64861() { // fn#64861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:3597, offset: 0x01bb7745, size: 108 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
_superPropGet_64848(EmbeddedActivitiesNativeManager, '_terminate', this, 3)([]);
|
||||
const lifecycleSubscription = this.lifecycleSubscription;
|
||||
if (lifecycleSubscription != null) {
|
||||
lifecycleSubscription.remove();
|
||||
}
|
||||
const scriptMessageSubscription = this.scriptMessageSubscription;
|
||||
if (scriptMessageSubscription != null) {
|
||||
scriptMessageSubscription.remove();
|
||||
}
|
||||
const thermalStateSubscription = this.thermalStateSubscription;
|
||||
if (thermalStateSubscription != null) {
|
||||
thermalStateSubscription.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function value_64864() { // fn#64864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4159, offset: 0x01bb788e, size: 134 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = defaultImport.open;
|
||||
const object2 = {key: 'EMBEDDED_ACTIVITIES_DEV_SHELF_URL_OVERRIDE_ENABLED'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const JfA7IK = (require(1244) /* metro dependency 1244: indexNative */).t.JfA7IK;
|
||||
object2.content = Reflect.apply(string, intl, [JfA7IK]);
|
||||
object2.icon = importDefault(8096) /* metro dependency 8096 */;
|
||||
object2.iconColor = 'status-positive';
|
||||
Reflect.apply(open, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function value_64865() { // fn#64865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4366, offset: 0x01bb7914, size: 93 bytes, params: 1, frame: 16
|
||||
var value2;
|
||||
var ComponentDispatch;
|
||||
const value = this.releaseFrameId();
|
||||
if (value != null) {
|
||||
value2 = environment.__proto__;
|
||||
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: value});
|
||||
env1_16.releaseWebView();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_64868(a0, a1, a2) { // fn#64868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4785, offset: 0x01bb79fc, size: 108 bytes, params: 4, frame: 16
|
||||
const value = environment.__proto__;
|
||||
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).stopEmbeddedActivity({location: a0,
|
||||
applicationId: a1, showFeedback: a2});
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
|
||||
'applicationId': null, 'lockState': null, 'pictureInPictureLockState': null, applicationId: a1});
|
||||
}
|
||||
|
||||
function value_64871() { // fn#64871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:5198, offset: 0x01bb7a68, size: 60 bytes, params: 1, frame: 13
|
||||
const frameId = this.frameId;
|
||||
if (frameId != null) {
|
||||
return frameId;
|
||||
}
|
||||
let value = environment.__proto__;
|
||||
value = require(491) /* metro dependency 491 */;
|
||||
value = value.v4();
|
||||
this.frameId = value;
|
||||
return value;
|
||||
}
|
||||
|
||||
function EmbeddedActivitiesNativeManagerHandleRPCDisconnect({reason, application}) { // fn#64856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1370, owner: EmbeddedActivitiesNativeManager.handleRPCDisconnect, offset: 0x01bb7232, size: 101 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = EmbeddedActivitiesStore.getConnectedActivityLocation();
|
||||
const id = application?.id;
|
||||
const binding = env0_0;
|
||||
binding.leaveActivity({location: value, applicationId: id});
|
||||
binding.superHandleRPCDisconnect({reason: reason, application: application});
|
||||
}
|
||||
|
||||
function _fun64858() { // fn#64858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1881, offset: 0x01bb737b, size: 94 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
|
||||
const value3 = null;
|
||||
const r3 = value3 != connectedActivityLocation ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : value3;
|
||||
if (value3 != r3 && value3 != connectedActivityLocation) {
|
||||
env0_0.leaveActivity({location: connectedActivityLocation, applicationId: r3.applicationId});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun64859(a0) { // fn#64859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2172, offset: 0x01bb73d9, size: 494 bytes, params: 2, frame: 25
|
||||
var r9;
|
||||
var url;
|
||||
var applicationId;
|
||||
var r1;
|
||||
var r12;
|
||||
var JSON;
|
||||
var parse;
|
||||
var data;
|
||||
var value2;
|
||||
var value3;
|
||||
var connectedActivityLocation;
|
||||
var value5;
|
||||
var value6;
|
||||
var selfEmbeddedActivityForLocation;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var error;
|
||||
var SyntaxError;
|
||||
var value11;
|
||||
var connectedActivityLocation2;
|
||||
var selfEmbeddedActivityForLocation2;
|
||||
var value14;
|
||||
var value15;
|
||||
var value16;
|
||||
var binding;
|
||||
var object2;
|
||||
var defaultImport2;
|
||||
var show;
|
||||
const intl = require(dependencyMap[20]).intl;
|
||||
var string;
|
||||
const t = require(dependencyMap[20]).t;
|
||||
var tYBBWz;
|
||||
var BddRzS;
|
||||
const value = undefined;
|
||||
try {
|
||||
JSON = global.JSON;
|
||||
parse = JSON.parse;
|
||||
data = a0.data;
|
||||
value2 = Reflect.apply(parse, JSON, [data]);
|
||||
value3 = environment.__proto__.__proto__;
|
||||
connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
|
||||
value5 = null;
|
||||
value6 = value5 != connectedActivityLocation;
|
||||
if (value6) {
|
||||
selfEmbeddedActivityForLocation = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation);
|
||||
r9 = selfEmbeddedActivityForLocation;
|
||||
} else {
|
||||
r9 = value5;
|
||||
}
|
||||
value8 = value5 == r9;
|
||||
url = value8 ? value : r9.url;
|
||||
value9 = typeof value2 === 'object';
|
||||
if (value9) {
|
||||
value10 = value5 != url;
|
||||
r9 = value10;
|
||||
} else {
|
||||
r9 = value9;
|
||||
}
|
||||
if (r9) {
|
||||
property = dependencyMap[18];
|
||||
defaultImport = importDefault(property);
|
||||
defaultImport.handleMessage(value2, url, postMessageToWebView_64850);
|
||||
}
|
||||
} catch (error) {
|
||||
SyntaxError = global.SyntaxError;
|
||||
if (!(error instanceof SyntaxError)) {
|
||||
throw error;
|
||||
}
|
||||
data = a0.data;
|
||||
value11 = environment.__proto__.__proto__;
|
||||
if (data === DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY) {
|
||||
connectedActivityLocation2 = EmbeddedActivitiesStore.getConnectedActivityLocation();
|
||||
if (connectedActivityLocation2 != null) {
|
||||
selfEmbeddedActivityForLocation2 = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation2);
|
||||
applicationId = selfEmbeddedActivityForLocation2 == null ? value : selfEmbeddedActivityForLocation2.applicationId;
|
||||
r1 = applicationId;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
value14 = connectedActivityLocation2 != null;
|
||||
if (value14) {
|
||||
value15 = r1 != null;
|
||||
r12 = value15;
|
||||
} else {
|
||||
r12 = value14;
|
||||
}
|
||||
if (r12) {
|
||||
value16 = environment;
|
||||
binding = env0_0;
|
||||
binding.leaveActivity({location: connectedActivityLocation2, applicationId: r1, showFeedback: false});
|
||||
defaultImport2 = importDefault(dependencyMap[19]);
|
||||
show = defaultImport2.show;
|
||||
object2 = {};
|
||||
string = intl.string;
|
||||
tYBBWz = t.tYBBWz;
|
||||
object2.body = Reflect.apply(string, intl, [tYBBWz]);
|
||||
string = intl.string;
|
||||
BddRzS = t.BddRzS;
|
||||
object2.confirmText = Reflect.apply(string, intl, [BddRzS]);
|
||||
Reflect.apply(show, defaultImport2, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun64860({rawThermalState}) { // fn#64860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2902, offset: 0x01bb75c7, size: 382 bytes, params: 2, frame: 21
|
||||
const value = environment.__proto__.__proto__;
|
||||
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
|
||||
const r4 = connectedActivityLocation != null ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : null;
|
||||
const embeddedActivityLocationChannelId = (require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */).getEmbeddedActivityLocationChannelId(connectedActivityLocation);
|
||||
const basicChannel = ChannelStore.getBasicChannel(embeddedActivityLocationChannelId);
|
||||
const compositeInstanceId = r4?.compositeInstanceId;
|
||||
const applicationId = r4?.applicationId;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const ACTIVITY_DEVICE_THERMAL_STATE_CHANGED = AnalyticEvents.ACTIVITY_DEVICE_THERMAL_STATE_CHANGED;
|
||||
const object2 = {channel_id: embeddedActivityLocationChannelId, application_id: applicationId,
|
||||
activity_session_id: compositeInstanceId, thermal_state: rawThermalState};
|
||||
object2.guild_id = basicChannel?.guild_id;
|
||||
object2.media_session_id = RTCConnectionStore.getMediaSessionId();
|
||||
Reflect.apply(track, defaultImport, [ACTIVITY_DEVICE_THERMAL_STATE_CHANGED, object2]);
|
||||
const defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport2.dispatch({type: 'THERMAL_STATE_CHANGE', applicationId: applicationId});
|
||||
if (compositeInstanceId != null && applicationId != null && (require(8095) /* metro dependency 8095: useThermalState */).getThermalState() >= (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS) {
|
||||
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).requestRespondToSeriousThermalState();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 10717; source: modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 10718, 2] */
|
||||
function _fun82348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:6, offset: 0x01ef3e8a, size: 283 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.ImageBackground;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.StyleSheet;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{overlay: {'flex': 1, 'opacity': 0.6, backgroundColor: BLACK}}]);
|
||||
const env0_9 = ['embedded_background'];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx');
|
||||
exports.default = EmbeddedActivityBackgroundImageWithOverlay;
|
||||
}
|
||||
|
||||
function EmbeddedActivityBackgroundImageWithOverlay({application, dimensionsStyle, borderRadius, resizeMode}) { // fn#82349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:417, offset: 0x01ef3fa5, size: 346 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
let value = undefined;
|
||||
resizeMode = resizeMode === value ? 'contain' : resizeMode;
|
||||
const styles = useStyles();
|
||||
const [property, env0_0] = env0_2(env0_3.useState(false), 2);
|
||||
const defaultImport = importDefault(10718) /* metro dependency 10718: useEmbeddedActivityBackground */;
|
||||
const id = application == null ? value : application.id;
|
||||
const value7 = '';
|
||||
const url = defaultImport({applicationId: id ?? value7, names: env0_9, size: 1024}).url;
|
||||
if (property) {
|
||||
r0 = null;
|
||||
} else if (url == null) {
|
||||
r0 = null;
|
||||
} else if (value7 === url) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = <ImageBackground resizeMode={resizeMode} source={{uri: url ?? value}} style={dimensionsStyle ?? StyleSheet.absoluteFillObject} imageStyle={{borderRadius: borderRadius}} onError={onError}><View style={[styles.overlay,
|
||||
|
||||
{borderRadius: borderRadius}]} /></ImageBackground>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,226 @@
|
||||
/* Metro module 10704; source: modules/activities/native/EmbeddedActivityView.tsx; dependencies: [57, 31, 27, 1378, 4237, 4238, 33, 4501, 10703, 1478, 694, 10705, 10706, 10701, 566, 10708, 8092, 10709, 10716, 2] */
|
||||
function _fun82249(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:6, offset: 0x01ef097a, size: 396 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = useBaseActivityView;
|
||||
const closure2 = ActivityViewLoadingIndicator;
|
||||
const closure3 = BaseActivityView;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.ActivityIndicator;
|
||||
const env0_6 = value2.View;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const constantsModule = require(4237) /* metro dependency 4237: Constants */;
|
||||
const env0_8 = constantsModule.ActivityLayoutMode;
|
||||
const env0_9 = constantsModule.ActivityScreenOrientation;
|
||||
const env0_10 = (require(4238) /* metro dependency 4238: ApplicationConstants */).OBEY_SILENT_HARDWARE_SWITCH_APP_IDS;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value4.jsx;
|
||||
const env0_12 = value4.Fragment;
|
||||
const env0_13 = value4.jsxs;
|
||||
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({loadingContainer: {'flex': 1,
|
||||
'justifyContent': 'center'}});
|
||||
value = value.memo(EmbeddedActivityViewInner);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityView.tsx');
|
||||
exports.default = value;
|
||||
exports.useBaseActivityView = closure;
|
||||
exports.ActivityViewLoadingIndicator = closure2;
|
||||
exports.BaseActivityView = closure3;
|
||||
exports.EmbeddedActivityView = value;
|
||||
}
|
||||
|
||||
function useBaseActivityView({orientationLockState, showLoadingIndicator, setShowLoadingStateForLockingOrientation, application, setOrientationLockState}) { // fn#82250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:392, offset: 0x01ef0b06, size: 460 bytes, params: 2, frame: 27
|
||||
const env0_3 = application;
|
||||
const env0_4 = setOrientationLockState;
|
||||
let value = undefined;
|
||||
const [property, property2] = env0_3(env0_4.useState(false), 2);
|
||||
const defaultOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).getDefaultOrientationLockState(application);
|
||||
const id = application == null ? value : application.id;
|
||||
const [property3, env0_8] = env0_3(env0_4.useState(false), 2);
|
||||
value = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
|
||||
value = value.width > value.height;
|
||||
env0_4.useLayoutEffect(_fun82251, [value]);
|
||||
env0_4.useLayoutEffect(_fun82252, [id]);
|
||||
env0_4.useLayoutEffect(_fun82253, [defaultOrientationLockState, application, orientationLockState, value, property3,
|
||||
setShowLoadingStateForLockingOrientation, setOrientationLockState]);
|
||||
env0_4.useLayoutEffect(_fun82254, [orientationLockState, value, setShowLoadingStateForLockingOrientation]);
|
||||
env0_4.useLayoutEffect(_fun82255, [showLoadingIndicator, property]);
|
||||
return {isResetting: property, setIsResetting: property2, isLandscape: value};
|
||||
}
|
||||
|
||||
function ActivityViewLoadingIndicator() { // fn#82256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1168, offset: 0x01ef0e0c, size: 69 bytes, params: 1, frame: 17
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.loadingContainer}>
|
||||
<ActivityIndicator size="large" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function BaseActivityView(a0) { // fn#82257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1286, offset: 0x01ef0e51, size: 133 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var value;
|
||||
var jsxRuntimeEnv0_12Binding;
|
||||
if (a0.showLoadingIndicator) {
|
||||
r0 = <ActivityViewLoadingIndicator />;
|
||||
} else {
|
||||
value = null;
|
||||
if (a0.isResetting) {
|
||||
r0 = value;
|
||||
} else {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
value = importDefault(10706) /* metro dependency 10706: WakeLock */;
|
||||
value = ((Component) => <Component wakeLockKey={a0.wakeLockKey} />)(value);
|
||||
value = <>{value}{a0.children}</>;
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function EmbeddedActivityViewInner({channel, layoutMode, portraitSafeAreasConfig, landscapeSafeAreasConfig}) { // fn#82258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1490, offset: 0x01ef0ed6, size: 1004 bytes, params: 2, frame: 32
|
||||
var object2;
|
||||
var r7;
|
||||
var r14;
|
||||
var r0;
|
||||
var location;
|
||||
var EmbeddedActivityWebView;
|
||||
let value = undefined;
|
||||
let env0_3 = value;
|
||||
const currentEmbeddedActivity2 = EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
|
||||
const value4 = (importDefault(10701) /* metro dependency 10701: useCurrentEmbeddedApplication */)();
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
||||
_fun82259, [value4]);
|
||||
const [property, property2] = env0_3(env0_4.useState(true), 2);
|
||||
object2 = {currentEmbeddedActivity: currentEmbeddedActivity2, channel: channel};
|
||||
const currentEmbeddedActivity = object2.currentEmbeddedActivity;
|
||||
const channel2 = object2.channel;
|
||||
if (currentEmbeddedActivity == null) {
|
||||
r14 = {instance_id: ''};
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.instance_id = currentEmbeddedActivity.compositeInstanceId ?? currentEmbeddedActivity.launchId;
|
||||
location = currentEmbeddedActivity.location;
|
||||
object2.location_id = location == null ? value : location.id;
|
||||
object2.launch_id = currentEmbeddedActivity.launchId;
|
||||
if (currentEmbeddedActivity.proxyTicket != null) {
|
||||
object2.discord_proxy_ticket = currentEmbeddedActivity.proxyTicket;
|
||||
}
|
||||
r7 = channel2 != null && channel2.id != null;
|
||||
r7 = r7 && channel2.id !== '';
|
||||
if (r7) {
|
||||
object2.channel_id = channel2.id;
|
||||
}
|
||||
r7 = (channel2 == null ? value : channel2.guild_id) != null && (channel2 == null ? value : channel2.guild_id) !== '';
|
||||
if (r7) {
|
||||
object2.guild_id = channel2 == null ? value : channel2.guild_id;
|
||||
r14 = object2;
|
||||
} else {
|
||||
r14 = object2;
|
||||
}
|
||||
}
|
||||
(importDefault(10708) /* metro dependency 10708: useDispatchOpenActivity */)({connectedEmbeddedActivity: currentEmbeddedActivity2});
|
||||
env0_4.useLayoutEffect(_fun82260, [layoutMode, currentEmbeddedActivity2]);
|
||||
const value14 = env0_4.useCallback(_fun82261, [value4, currentEmbeddedActivity2]);
|
||||
const id = value4 == null ? value : value4.id;
|
||||
let r6 = currentEmbeddedActivity2 == null || (currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.launchId) == null;
|
||||
r6 = !r6 ? property : r6;
|
||||
r6 = !r6 ? id == null : r6;
|
||||
r6 = !r6 ? value4 == null : r6;
|
||||
object2 = {orientationLockState: value5, showLoadingIndicator: r6,
|
||||
setShowLoadingStateForLockingOrientation: property2, application: value4};
|
||||
object2.setOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).setOrientationLockState;
|
||||
const value19 = useBaseActivityView(object2);
|
||||
const isResetting = value19.isResetting;
|
||||
env0_3 = value19.setIsResetting;
|
||||
if (currentEmbeddedActivity2 == null) {
|
||||
r0 = null;
|
||||
} else if (id == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
object2 = {wakeLockKey: 'EmbeddedActivities', showLoadingIndicator: r6, isResetting: isResetting};
|
||||
EmbeddedActivityWebView = importDefault(10709) /* metro dependency 10709: EmbeddedActivityWebView */;
|
||||
value = <BaseActivityView {...object2}><EmbeddedActivityWebView onActivityCrash={function() {
|
||||
setIsResetting(true);
|
||||
global.setTimeout(_fun82263, 0);
|
||||
}} applicationId={id} channelId={channel == null ? value : channel.id} guildId={channel == null ? value : channel.guild_id} activityUrl={currentEmbeddedActivity2.url} currentEmbeddedActivity={currentEmbeddedActivity2} activitySessionId={currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.compositeInstanceId} queryParams={r14} onLoadError={value14} allowPopups={(require(10716) /* metro dependency 10716: allowPopups */).allowPopups(value4)} referrerPolicy="origin" isPipOrGridMode={layoutMode === ActivityLayoutMode.PIP || layoutMode === ActivityLayoutMode.GRID} webViewKey={(require(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).EMBEDDED_ACTIVITY_WEB_VIEW_KEY} safeAreasConfig={value19.isLandscape ? landscapeSafeAreasConfig : portraitSafeAreasConfig} ignoreSilentHardwareSwitch={!OBEY_SILENT_HARDWARE_SWITCH_APP_IDS.has(id)} /></BaseActivityView>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun82251() { // fn#82251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:760, offset: 0x01ef0cd2, size: 82 bytes, params: 1, frame: 14
|
||||
const binding = env0_9;
|
||||
let value = environment.__proto__;
|
||||
const r4 = binding ? ActivityScreenOrientation.LANDSCAPE : ActivityScreenOrientation.PORTRAIT;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'ACTIVITY_SCREEN_ORIENTATION_UPDATE', screenOrientation: r4});
|
||||
}
|
||||
|
||||
function _fun82252() { // fn#82252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:905, offset: 0x01ef0d24, size: 18 bytes, params: 1, frame: 11
|
||||
env0_8(false);
|
||||
}
|
||||
|
||||
function _fun82253() { // fn#82253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:942, offset: 0x01ef0d36, size: 122 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
if (env0_7) {
|
||||
setShowLoadingStateForLockingOrientation(false);
|
||||
} else if (orientationLockState != null) {
|
||||
setShowLoadingStateForLockingOrientation(false);
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(env0_9, env0_6)) {
|
||||
setShowLoadingStateForLockingOrientation(false);
|
||||
} else {
|
||||
setShowLoadingStateForLockingOrientation(true);
|
||||
}
|
||||
}
|
||||
if (application != null) {
|
||||
setOrientationLockState(application, orientationLockState);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82254() { // fn#82254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1039, offset: 0x01ef0db0, size: 58 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(env0_9,
|
||||
orientationLockState)) {
|
||||
setShowLoadingStateForLockingOrientation(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82255() { // fn#82255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1095, offset: 0x01ef0dea, size: 34 bytes, params: 1, frame: 11
|
||||
if (!(showLoadingIndicator || env0_5)) {
|
||||
env0_8(true);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82259() { // fn#82259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1689, offset: 0x01ef12c2, size: 47 bytes, params: 1, frame: 12
|
||||
return env0_2 != null ? EmbeddedActivitiesStore.getOrientationLockStateForApp(env0_2.id) : undefined;
|
||||
}
|
||||
|
||||
function _fun82260() { // fn#82260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2358, offset: 0x01ef12f1, size: 84 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
if (env0_1 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_LAYOUT_MODE_UPDATE',
|
||||
layoutMode: layoutMode, applicationId: env0_1.applicationId});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82261() { // fn#82261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2501, offset: 0x01ef1345, size: 97 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
(importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).leaveActivity({location: env0_1 == null ? value : env0_1.location,
|
||||
applicationId: env0_2 == null ? value : env0_2.id});
|
||||
return value;
|
||||
}
|
||||
|
||||
function EmbeddedActivityViewInnerOnActivityCrash() { // fn#82262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:3089, owner: EmbeddedActivityViewInner.onActivityCrash, offset: 0x01ef13a6, size: 43 bytes, params: 1, frame: 13
|
||||
setIsResetting(true);
|
||||
global.setTimeout(function() {
|
||||
return setIsResetting(false);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,924 @@
|
||||
/* Metro module 10709; source: modules/activities/native/EmbeddedActivityWebView.tsx; dependencies: [5, 57, 31, 27, 7503, 4237, 661, 33, 4501, 3, 477, 10710, 491, 5269, 1239, 10711, 1582, 10713, 10714, 683, 632, 4647, 1244, 507, 10715, 1471, 8071, 8072, 6266, 7712, 8092, 2] */
|
||||
function _fun82275(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:6, offset: 0x01ef180a, size: 458 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_82278 = 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 getSafeArea = function(a0, a1) {
|
||||
var r2;
|
||||
var r1;
|
||||
var r0;
|
||||
var value2;
|
||||
var value = a1;
|
||||
if (a0 == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value2 = 0;
|
||||
if (a0.disable) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
if (a0.override != null) {
|
||||
r2 = global.Math.max(value2, a0.override);
|
||||
} else if (a0.offset == null) {
|
||||
r2 = value;
|
||||
} else {
|
||||
value = global.Math.max(value2, value + a0.offset);
|
||||
r2 = value;
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const closure = BaseActivityWebView;
|
||||
const closure2 = useHasInvalidUrlErrorState;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_6 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_7 = (require(27) /* metro dependency 27 */).Linking;
|
||||
const developerActivityShelfStore = importDefault(7503) /* metro dependency 7503: DeveloperActivityShelfStore */;
|
||||
let value = require(4237) /* metro dependency 4237: Constants */;
|
||||
const env0_9 = value.ActivityPlatform;
|
||||
const env0_10 = value.DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.ComponentActions;
|
||||
const env0_12 = value.AnalyticEvents;
|
||||
const env0_13 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({webView: {backgroundColor: 'transparent'}});
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('EmbeddedActivityWebView');
|
||||
const env0_16 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityWebView.tsx');
|
||||
exports.default = EmbeddedActivityWebView;
|
||||
exports.BaseActivityWebView = closure;
|
||||
exports.useHasInvalidUrlErrorState = closure2;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_82276(a0, a1) { // fn#82276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:305, offset: 0x01ef19d4, size: 372 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 _fun82277;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_82278(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_82278(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_82278(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun82277;
|
||||
}
|
||||
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 BaseActivityWebView({hasFrameId, getOrCreateFrameId, releaseFrameId, hasInvalidUrlError, setHasInvalidUrlError, hadInvalidUrlError, deepLinkQueryParams = {}, activityUrl, applicationId, queryParams, onActivityCrash, onLoadError, allowPopups, referrerPolicy, isPipOrGridMode, webViewKey, ignoreSilentHardwareSwitch, safeAreasConfig, channelId, guildId, activitySessionId}) { // fn#82280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:1483, offset: 0x01ef1bbb, size: 2206 bytes, params: 2, frame: 50
|
||||
var r1;
|
||||
var WebView;
|
||||
const env0_5 = hadInvalidUrlError;
|
||||
let value = undefined;
|
||||
const env0_6 = applicationId;
|
||||
ignoreSilentHardwareSwitch = ignoreSilentHardwareSwitch === value || ignoreSilentHardwareSwitch;
|
||||
const styles = useStyles();
|
||||
let binding = env0_6;
|
||||
const useContext = binding.useContext;
|
||||
const WebViewContext = (require(10710) /* metro dependency 10710: WebViewContext */).WebViewContext;
|
||||
const value4 = Reflect.apply(useContext, binding, [WebViewContext]);
|
||||
var property = env0_5(env0_6.useState(function() {
|
||||
return hasFrameId();
|
||||
}), 1)[0];
|
||||
const env0_16 = property;
|
||||
const property2 = env0_5(env0_6.useState(_fun82282), 1)[0];
|
||||
const [property3, env0_19] = env0_5(env0_6.useState(null), 2);
|
||||
const value12 = env0_6.useMemo(_fun82283, [webViewKey]);
|
||||
const [property4, env0_21] = env0_5(env0_6.useState(null), 2);
|
||||
env0_6.useEffect(_fun82284, [property, property2, webViewKey]);
|
||||
env0_6.useEffect(function() {
|
||||
return _fun82286;
|
||||
}, [webViewKey, property2]);
|
||||
const value15 = (importDefault(10711) /* metro dependency 10711: useStableSafeAreaInsetsNative */)();
|
||||
const constants = (importAll(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
|
||||
let object2 = {};
|
||||
copyDataProperties(object2, queryParams, undefined);
|
||||
copyDataProperties(object2, deepLinkQueryParams, undefined);
|
||||
object2['frame_id'] = property2;
|
||||
const MOBILE = ActivityPlatform.MOBILE;
|
||||
object2['platform'] = MOBILE;
|
||||
const Version = constants.Version;
|
||||
object2['mobile_app_version'] = Version;
|
||||
const value17 = (importDefault(10713) /* metro dependency 10713: getIFrameSandboxAttributes */)({allowPopups: allowPopups});
|
||||
const URLSearchParams = global.URLSearchParams;
|
||||
const value18 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
|
||||
const uRLSearchParams = new URLSearchParams(object2);
|
||||
const value20 = '' + activityUrl + '?' + (uRLSearchParams instanceof Object ? uRLSearchParams : value18);
|
||||
const env0_25 = env0_6.useRef(safeAreasConfig);
|
||||
env0_6.useEffect(function() {
|
||||
_fun82288()();
|
||||
}, [value20, value17, onLoadError, referrerPolicy]);
|
||||
const value21 = env0_6.useCallback(_fun82292, [applicationId]);
|
||||
const value22 = env0_6.useCallback(_fun82293, [applicationId]);
|
||||
const value23 = env0_6.useCallback(_fun82294, [applicationId, channelId, guildId, activitySessionId, property2,
|
||||
releaseFrameId, value12, onActivityCrash]);
|
||||
const useActivityUrlOverride = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([DeveloperActivityShelfStore],
|
||||
function() {
|
||||
return DeveloperActivityShelfStore.getUseActivityUrlOverride();
|
||||
});
|
||||
env0_6.useEffect(_fun82296, [value20, useActivityUrlOverride, setHasInvalidUrlError]);
|
||||
env0_6.useEffect(_fun82297, [hadInvalidUrlError, hasInvalidUrlError]);
|
||||
let r24 = property3 != null ? env0_16 ? 'file://' + property4 : '' + property3.origin + '/' + property2 + '/activity.html' : null;
|
||||
binding = env0_16;
|
||||
var [property, env0_29] = env0_5(env0_6.useState(false), 2);
|
||||
const [property5, env0_31] = env0_5(env0_6.useState([]), 2);
|
||||
env0_6.useEffect(_fun82298, [applicationId, binding]);
|
||||
const value30 = env0_6.useCallback(_fun82306, [r24, property5]);
|
||||
const r32 = r24 != null && property3 != null && property4 != null;
|
||||
const value34 = env0_6.useRef(null);
|
||||
const value35 = env0_6.useCallback(_fun82307, []);
|
||||
const value36 = env0_6.useCallback(_fun82308, [webViewKey, property3 == null ? value : property3.origin, value35]);
|
||||
env0_6.useEffect(_fun82309, [value15, isPipOrGridMode, r32, value12, value35, safeAreasConfig]);
|
||||
if (r24 == null) {
|
||||
return null;
|
||||
}
|
||||
if (property3 == null) {
|
||||
return null;
|
||||
}
|
||||
if (binding) {
|
||||
if (property === false) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
object2 = {left: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.left,
|
||||
(value15 == null ? value : value15.left) ?? 0),
|
||||
right: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.right,
|
||||
(value15 == null ? value : value15.right) ?? 0),
|
||||
top: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.top,
|
||||
(value15 == null ? value : value15.top) ?? 0),
|
||||
bottom: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.bottom,
|
||||
(value15 == null ? value : value15.bottom) ?? 0)};
|
||||
if (property4 == null) {
|
||||
r1 = null;
|
||||
} else {
|
||||
WebView = (require(5269) /* metro dependency 5269 */).WebView;
|
||||
var webViewProps = {style: styles.webView, ref: value34, source: {uri: r24}};
|
||||
r24 = property3.port === '' ? property3.host : '' + property3.hostname + ':' + property3.port;
|
||||
webViewProps.androidAssetLoaderConfig = {domain: r24, httpAllowed: property3.protocol === 'http:',
|
||||
pathHandlers: [{type: 'internal', path: '/' + property2 + '/', directory: property4.substring(0,
|
||||
property4.lastIndexOf('/'))}]};
|
||||
webViewProps.originWhitelist = ['*'];
|
||||
webViewProps.overScrollMode = 'never';
|
||||
webViewProps.scrollEnabled = false;
|
||||
webViewProps.cacheEnabled = true;
|
||||
webViewProps.onError = value21;
|
||||
webViewProps.onContentProcessDidTerminate = value23;
|
||||
webViewProps.onRenderProcessGone = value22;
|
||||
webViewProps.webViewKey = webViewKey;
|
||||
webViewProps.temporaryParentNodeTag = value4;
|
||||
webViewProps.messagingWithWebViewKeyEnabled = webViewKey != null;
|
||||
webViewProps.onMessage = value36;
|
||||
webViewProps.allowFileAccess = env0_16;
|
||||
webViewProps.injectedJavaScript = env0_16 ? (require(10714) /* metro dependency 10714: createWebviewHtmlFile */).createInjectedJavascriptForIOS(webViewProps) : value;
|
||||
webViewProps.injectedJavaScriptForMainFrameOnly = false;
|
||||
webViewProps.onShouldStartLoadWithRequest = env0_16 ? value30 : value;
|
||||
webViewProps.mediaPlaybackRequiresUserAction = false;
|
||||
webViewProps.ignoreSilentHardwareSwitch = ignoreSilentHardwareSwitch;
|
||||
webViewProps.allowsInlineMediaPlayback = true;
|
||||
webViewProps.minimumFontSize = 1;
|
||||
webViewProps.bounces = false;
|
||||
webViewProps.allowsProtectedMedia = true;
|
||||
value = <WebView {...webViewProps} />;
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function useHasInvalidUrlErrorState() { // fn#82314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:7586, offset: 0x01ef308d, size: 91 bytes, params: 1, frame: 15
|
||||
const value3 = env0_5(env0_6.useState(false), 2);
|
||||
const property = value3[0];
|
||||
const object2 = {hasInvalidUrlError: property, setHasInvalidUrlError: value3[1]};
|
||||
object2.hadInvalidUrlError = (importDefault(6266) /* metro dependency 6266: usePrevious */)(property);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function EmbeddedActivityWebView(a0) { // fn#82315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:7754, offset: 0x01ef30e8, size: 293 bytes, params: 2, frame: 25
|
||||
const channelId = a0.channelId;
|
||||
const currentEmbeddedActivity = a0.currentEmbeddedActivity;
|
||||
const applicationId = a0.applicationId;
|
||||
const object3 = {'channelId': 0, 'currentEmbeddedActivity': 0, 'applicationId': 0};
|
||||
silentSetPrototypeOf(object3, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object3, undefined);
|
||||
const {hasInvalidUrlError, setHasInvalidUrlError, hadInvalidUrlError} = useHasInvalidUrlErrorState();
|
||||
const object4 = {};
|
||||
if (currentEmbeddedActivity != null) {
|
||||
if (currentEmbeddedActivity.customId != null) {
|
||||
object4.custom_id = currentEmbeddedActivity.customId;
|
||||
}
|
||||
if (currentEmbeddedActivity.referrerId != null) {
|
||||
object4.referrer_id = currentEmbeddedActivity.referrerId;
|
||||
}
|
||||
}
|
||||
env0_6.useEffect(_fun82316, [hasInvalidUrlError, hadInvalidUrlError, channelId, applicationId,
|
||||
currentEmbeddedActivity]);
|
||||
return (
|
||||
<BaseActivityWebView
|
||||
hasFrameId={hasFrameId}
|
||||
getOrCreateFrameId={getOrCreateFrameId}
|
||||
releaseFrameId={releaseFrameId}
|
||||
hasInvalidUrlError={hasInvalidUrlError}
|
||||
setHasInvalidUrlError={setHasInvalidUrlError}
|
||||
hadInvalidUrlError={hadInvalidUrlError}
|
||||
deepLinkQueryParams={object4}
|
||||
applicationId={applicationId}
|
||||
channelId={channelId}
|
||||
{...value}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun82282() { // fn#82282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:1996, offset: 0x01ef2459, size: 62 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
if (webViewKey != null) {
|
||||
r0 = getOrCreateFrameId();
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = require(491) /* metro dependency 491 */;
|
||||
value = value.v4();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun82283() { // fn#82283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2096, offset: 0x01ef2497, size: 60 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
if (webViewKey != null) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(5269) /* metro dependency 5269 */;
|
||||
r0 = moduleValue.getWebViewProxy(webViewKey);
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun82284() { // fn#82284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2210, offset: 0x01ef24d3, size: 89 bytes, params: 1, frame: 14
|
||||
var value3;
|
||||
var ComponentDispatch;
|
||||
if (!(env0_16 && webViewKey != null)) {
|
||||
value3 = environment.__proto__;
|
||||
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
ComponentDispatch.dispatch(ComponentActions.IFRAME_MOUNT, {id: env0_17});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82285() { // fn#82285, offset: 0x01ef252c, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun82286;
|
||||
}
|
||||
|
||||
function _fun82287() { // fn#82287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2614, offset: 0x01ef2586, size: 21 bytes, params: 1, frame: 9
|
||||
_fun82288()();
|
||||
}
|
||||
|
||||
function _fun82292({nativeEvent}) { // fn#82292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3282, offset: 0x01ef2756, size: 86 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_15;
|
||||
const warn = binding.warn;
|
||||
const applicationIdBinding = applicationId;
|
||||
const JSON = global.JSON;
|
||||
Reflect.apply(warn, binding,
|
||||
['activity WebView error for appId ' + applicationIdBinding + '. ' + JSON.stringify(nativeEvent)]);
|
||||
}
|
||||
|
||||
function _fun82293({nativeEvent}) { // fn#82293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3401, offset: 0x01ef27ac, size: 86 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_15;
|
||||
const warn = binding.warn;
|
||||
const applicationIdBinding = applicationId;
|
||||
const JSON = global.JSON;
|
||||
Reflect.apply(warn, binding,
|
||||
['activity WebView render process gone for appId ' + applicationIdBinding + '. ' + JSON.stringify(nativeEvent)]);
|
||||
}
|
||||
|
||||
function _fun82294() { // fn#82294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3534, offset: 0x01ef2802, size: 218 bytes, params: 1, frame: 18
|
||||
const binding = env1_15;
|
||||
const warn = binding.warn;
|
||||
const applicationIdBinding = applicationId;
|
||||
Reflect.apply(warn, binding, ['activity WebView content process terminated for appId ' + applicationIdBinding]);
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const ACTIVITY_WEB_VIEW_CONTENT_PROCESS_TERMINATED = AnalyticEvents.ACTIVITY_WEB_VIEW_CONTENT_PROCESS_TERMINATED;
|
||||
Reflect.apply(track, defaultImport, [ACTIVITY_WEB_VIEW_CONTENT_PROCESS_TERMINATED,
|
||||
{application_id: applicationIdBinding, channel_id: channelId, guild_id: guildId,
|
||||
activity_session_id: activitySessionId}]);
|
||||
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
const dispatch = ComponentDispatch.dispatch;
|
||||
const IFRAME_UNMOUNT = ComponentActions.IFRAME_UNMOUNT;
|
||||
Reflect.apply(dispatch, ComponentDispatch, [IFRAME_UNMOUNT, {id: env0_17}]);
|
||||
releaseFrameId();
|
||||
if (env0_20 != null) {
|
||||
env0_20.releaseWebView();
|
||||
}
|
||||
onActivityCrash();
|
||||
}
|
||||
|
||||
function _fun82296() { // fn#82296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3941, offset: 0x01ef28ef, size: 79 bytes, params: 1, frame: 13
|
||||
var URL;
|
||||
var value;
|
||||
var binding;
|
||||
var prototype;
|
||||
var value2;
|
||||
var uRL;
|
||||
var value3;
|
||||
var error;
|
||||
try {
|
||||
URL = global.URL;
|
||||
value = environment;
|
||||
binding = env0_24;
|
||||
prototype = URL.prototype;
|
||||
value2 = Object.create(prototype, {constructor: {value: URL}});
|
||||
uRL = new URL();
|
||||
value3 = uRL instanceof Object ? uRL : value2;
|
||||
binding = env0_19;
|
||||
binding(value3);
|
||||
} catch (error) {
|
||||
value = environment;
|
||||
if (!useActivityUrlOverride) {
|
||||
throw error;
|
||||
}
|
||||
setHasInvalidUrlError(true);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82297() { // fn#82297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4030, offset: 0x01ef293e, size: 219 bytes, params: 1, frame: 18
|
||||
var defaultImport;
|
||||
var show;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (!hadInvalidUrlError && hasInvalidUrlError) {
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.PtobXW);
|
||||
object2.body = intl.string(t['55iAUT']);
|
||||
object2.confirmText = intl.string(t.BddRzS);
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82298() { // fn#82298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4412, offset: 0x01ef2a19, size: 58 bytes, params: 1, frame: 9
|
||||
if (env0_28) {
|
||||
var env0_0 = ["'self'"];
|
||||
var parseCsp = function(a0, a1) {
|
||||
var r0;
|
||||
var value = a1.match(a0);
|
||||
if (value === null) {
|
||||
r0 = [];
|
||||
} else if (value.length >= 2) {
|
||||
value = value[1].split(' ');
|
||||
value = value.filter(_fun82300);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = [];
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
_fun82301()();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82306(a0) { // fn#82306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4997, offset: 0x01ef2c69, size: 310 bytes, params: 2, frame: 18
|
||||
var r3;
|
||||
var r1;
|
||||
var value4;
|
||||
var RegExp;
|
||||
var prototype;
|
||||
var value5;
|
||||
var regExp;
|
||||
var value6;
|
||||
var test;
|
||||
var url;
|
||||
var value7;
|
||||
var value12;
|
||||
var origin;
|
||||
var pathname;
|
||||
const mainDocumentURL = a0.mainDocumentURL;
|
||||
var value;
|
||||
if (env0_27 != null) {
|
||||
reducibleJoin3: while (true) {
|
||||
if (mainDocumentURL == null) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
if (mainDocumentURL !== env0_27) {
|
||||
value = environment.__proto__;
|
||||
Linking.openURL(a0.url);
|
||||
return false;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
}
|
||||
value = _createForOfIteratorHelperLoose_82276(env0_30);
|
||||
const value3 = value();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
r3 = value3;
|
||||
reducibleLoop4: while (true) {
|
||||
value4 = r3.value;
|
||||
RegExp = global.RegExp;
|
||||
prototype = RegExp.prototype;
|
||||
value5 = Object.create(prototype, {constructor: {value: RegExp}});
|
||||
regExp = new RegExp();
|
||||
value6 = regExp instanceof Object ? regExp : value5;
|
||||
test = value6.test;
|
||||
url = a0.url;
|
||||
if (Reflect.apply(test, value6, [url])) {
|
||||
return true;
|
||||
}
|
||||
value7 = value();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break reducibleLoop4;
|
||||
}
|
||||
r3 = value7;
|
||||
continue reducibleLoop4;
|
||||
}
|
||||
}
|
||||
value = Reflect.apply((importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe, value,
|
||||
[DeveloperActivityShelfStore.getActivityUrlOverride() ?? '']);
|
||||
const defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
const value10 = defaultImport.toURLSafe(a0.url);
|
||||
const value11 = value != null;
|
||||
reducibleJoin10: while (true) {
|
||||
if (value11) {
|
||||
value12 = value10 != null;
|
||||
r1 = value12;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
r1 = value11;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
reducibleJoin12: while (true) {
|
||||
if (r1) {
|
||||
origin = value.origin;
|
||||
pathname = value.pathname;
|
||||
value = origin + pathname;
|
||||
origin = value10.origin;
|
||||
pathname = value10.pathname;
|
||||
value = value === origin + pathname;
|
||||
r1 = value;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
break reducibleJoin12;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function _fun82307(a0) { // fn#82307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5440, offset: 0x01ef2d9f, size: 66 bytes, params: 2, frame: 13
|
||||
var injectJavaScript;
|
||||
var value;
|
||||
const current = env0_33.current;
|
||||
if (current != null) {
|
||||
injectJavaScript = current.injectJavaScript;
|
||||
value = environment.__proto__;
|
||||
value = importDefault(8071) /* metro dependency 8071: getPostMessageJavaScript */;
|
||||
Reflect.apply(injectJavaScript, current, [value(a0)]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82308(a0) { // fn#82308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5528, offset: 0x01ef2de1, size: 160 bytes, params: 2, frame: 17
|
||||
var JSON;
|
||||
var value2;
|
||||
var value6;
|
||||
var value7;
|
||||
var defaultImport;
|
||||
if (webViewKey == null) {
|
||||
JSON = global.JSON;
|
||||
value2 = JSON.parse(a0.nativeEvent.data);
|
||||
if (typeof value2 === 'object' && env0_18?.origin != null) {
|
||||
value6 = environment.__proto__;
|
||||
value7 = undefined;
|
||||
defaultImport = importDefault(8072) /* metro dependency 8072: WebViewPostMessageTransport */;
|
||||
defaultImport.handleMessage(value2, env0_18 == null ? value7 : env0_18.origin, env0_34);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82309() { // fn#82309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5738, offset: 0x01ef2e81, size: 43 bytes, params: 1, frame: 9
|
||||
if (env0_32) {
|
||||
if (env0_20 != null) {
|
||||
_fun82310()();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82316() { // fn#82316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8084, offset: 0x01ef320d, size: 155 bytes, params: 1, frame: 16
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var value4;
|
||||
if (!hadInvalidUrlError && hasInvalidUrlError) {
|
||||
if (channelId != null) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
|
||||
defaultImport.selectParticipant(channelId, null);
|
||||
}
|
||||
value4 = environment.__proto__;
|
||||
(importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).leaveActivity({location: currentEmbeddedActivity?.location,
|
||||
|
||||
applicationId: applicationId, showFeedback: false});
|
||||
}
|
||||
}
|
||||
|
||||
function EmbeddedActivityWebViewHasFrameId() { // fn#82317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8284, owner: EmbeddedActivityWebView.hasFrameId, offset: 0x01ef32a8, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).hasFrameId();
|
||||
}
|
||||
|
||||
function EmbeddedActivityWebViewGetOrCreateFrameId() { // fn#82318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8329, owner: EmbeddedActivityWebView.getOrCreateFrameId, offset: 0x01ef32cd, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).getOrCreateFrameId();
|
||||
}
|
||||
|
||||
function EmbeddedActivityWebViewReleaseFrameId() { // fn#82319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8378, owner: EmbeddedActivityWebView.releaseFrameId, offset: 0x01ef32f2, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).releaseFrameId();
|
||||
}
|
||||
|
||||
function _fun82286() { // fn#82286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2315, offset: 0x01ef2537, size: 79 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var ComponentDispatch;
|
||||
if (webViewKey == null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: env1_17});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82288() { // fn#82288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2625, offset: 0x01ef259b, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_4(_fun82290);
|
||||
return _fun82291;
|
||||
}
|
||||
|
||||
function parseCsp(a0, a1) { // fn#82299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4450, offset: 0x01ef2a53, size: 85 bytes, params: 3, frame: 12
|
||||
var r0;
|
||||
let value = a1.match(a0);
|
||||
if (value === null) {
|
||||
r0 = [];
|
||||
} else if (value.length >= 2) {
|
||||
value = value[1].split(' ');
|
||||
value = value.filter(_fun82300);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = [];
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun82301() { // fn#82301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4554, offset: 0x01ef2ac1, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_4(_fun82303);
|
||||
return _fun82305;
|
||||
}
|
||||
|
||||
function _fun82310() { // fn#82310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5765, offset: 0x01ef2eac, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_4(_fun82312);
|
||||
return _fun82313;
|
||||
}
|
||||
|
||||
function* _fun82290() { // fn#82290, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2645, offset: 0x01ef25ca, size: 396 bytes, params: 1, frame: 23
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env4_0;
|
||||
const value3 = undefined;
|
||||
const stableSafeAreaInsets = binding(env4_3[15]).getStableSafeAreaInsets();
|
||||
const current = env3_25.current;
|
||||
const object2 = {};
|
||||
binding = env4_19;
|
||||
const left = current == null ? value3 : current.left;
|
||||
const left2 = stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.left;
|
||||
const value7 = 0;
|
||||
object2.left = binding(left, left2 ?? value7);
|
||||
object2.right = env4_19(current == null ? value3 : current.right,
|
||||
(stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.right) ?? value7);
|
||||
object2.top = env4_19(current == null ? value3 : current.top,
|
||||
(stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.top) ?? value7);
|
||||
object2.bottom = env4_19(current == null ? value3 : current.bottom,
|
||||
(stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.bottom) ?? value7);
|
||||
yield env4_1(env4_3[18])({iFrameUri: env3_24, iFrameSandboxAttributes: env3_23, referrerPolicy: ActivityPlatform,
|
||||
insets: object2, messageForDisallowedNavigationError: env4_16 ? value3 : env4_10});
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value != null) {
|
||||
useHasInvalidUrlErrorState(value);
|
||||
} else {
|
||||
DeveloperActivityShelfStore();
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun82300(a0) { // fn#82300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4528, offset: 0x01ef2aa8, size: 25 bytes, params: 2, frame: 11
|
||||
const binding = env1_0;
|
||||
return !binding.includes(a0);
|
||||
}
|
||||
|
||||
function* _fun82303() { // fn#82303, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4574, offset: 0x01ef2af0, size: 289 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_6;
|
||||
var HermesInternal = global.HermesInternal;
|
||||
var concat = HermesInternal.concat;
|
||||
var value3 = 'https://' + binding + '.' + 'discordsays.com';
|
||||
var HTTP = env4_0(env4_3[23]).HTTP;
|
||||
var get = HTTP.get;
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
yield Reflect.apply(get, HTTP, [{url: '' + value3 + '/.discord/csp', rejectWithError: false}]);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
var property = value5.headers['content-security-policy'];
|
||||
items = ['about:blank', 'file://*'];
|
||||
items[2] = value3;
|
||||
arraySpread(items, getOrCreateFrameId(RegExp('child-src (.*?);', ''), property), arraySpread(items,
|
||||
getOrCreateFrameId(RegExp('frame-src (.*?);', ''), property), 3, concat), concat);
|
||||
env3_31(items.map(_fun82304));
|
||||
env3_29(true);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun82312() { // fn#82312, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5785, offset: 0x01ef2edb, size: 434 bytes, params: 1, frame: 25
|
||||
var left;
|
||||
var left2;
|
||||
var right;
|
||||
var right2;
|
||||
var top;
|
||||
var top2;
|
||||
var bottom;
|
||||
var bottom2;
|
||||
var left3;
|
||||
var right3;
|
||||
var top3;
|
||||
var bottom3;
|
||||
var injectJavaScript;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var error;
|
||||
var current;
|
||||
var binding3;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
const r13 = DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY ? {'top': 0, 'bottom': 0, 'left': 0, 'right': 0} : env3_22;
|
||||
const object2 = {type: 'safeAreaUpdateEvent'};
|
||||
const object4 = {};
|
||||
let binding = env4_19;
|
||||
reducibleJoin6: while (true) {
|
||||
if (AnalyticEvents == null) {
|
||||
left = value;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
left = AnalyticEvents.left;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
reducibleJoin8: while (true) {
|
||||
if (r13 == null) {
|
||||
left2 = value;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
left3 = r13.left;
|
||||
left2 = left3;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
const value5 = 0;
|
||||
object4.left = binding(left, left2 ?? value5);
|
||||
binding = env4_19;
|
||||
reducibleJoin11: while (true) {
|
||||
if (AnalyticEvents == null) {
|
||||
right = value;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
right = AnalyticEvents.right;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
reducibleJoin13: while (true) {
|
||||
if (r13 == null) {
|
||||
right2 = value;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
right3 = r13.right;
|
||||
right2 = right3;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
object4.right = binding(right, right2 ?? value5);
|
||||
binding = env4_19;
|
||||
reducibleJoin16: while (true) {
|
||||
if (AnalyticEvents == null) {
|
||||
top = value;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
top = AnalyticEvents.top;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
reducibleJoin18: while (true) {
|
||||
if (r13 == null) {
|
||||
top2 = value;
|
||||
break reducibleJoin18;
|
||||
}
|
||||
top3 = r13.top;
|
||||
top2 = top3;
|
||||
break reducibleJoin18;
|
||||
}
|
||||
object4.top = binding(top, top2 ?? value5);
|
||||
binding = env4_19;
|
||||
reducibleJoin21: while (true) {
|
||||
if (AnalyticEvents == null) {
|
||||
bottom = value;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
bottom = AnalyticEvents.bottom;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
reducibleJoin23: while (true) {
|
||||
if (r13 == null) {
|
||||
bottom2 = value;
|
||||
break reducibleJoin23;
|
||||
}
|
||||
bottom3 = r13.bottom;
|
||||
bottom2 = bottom3;
|
||||
break reducibleJoin23;
|
||||
}
|
||||
object4.bottom = binding(bottom, bottom2 ?? value5);
|
||||
object2.data = {insets: object4};
|
||||
reducibleJoin26: while (true) {
|
||||
reduciblePort41: while (true) {
|
||||
exceptionLanding39: while (true) {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
break reducibleJoin26;
|
||||
}
|
||||
current = env3_33.current;
|
||||
reducibleJoin41: while (true) {
|
||||
if (current == null) {
|
||||
break reducibleJoin41;
|
||||
}
|
||||
binding = env3_34;
|
||||
binding3 = env4_1;
|
||||
binding(binding3(env4_3[26])(object2));
|
||||
break reducibleJoin41;
|
||||
}
|
||||
break reduciblePort41;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
injectJavaScript = BaseActivityWebView.injectJavaScript;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding = env4_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding2 = env4_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
property = binding2[26];
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value7 = value6(object2);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(injectJavaScript, BaseActivityWebView, [value7]);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
return value10 ? value9 : value;
|
||||
}
|
||||
|
||||
function _fun82304(a0) { // fn#82304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4851, offset: 0x01ef2c11, size: 88 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
value = env5_1(env5_3[24]);
|
||||
value = value(a0);
|
||||
value = value.replace(RegExp('\\\\\\*', 'g'), '.*');
|
||||
return '^' + value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 10662; source: modules/activities/native/IgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4501, 4596, 1244, 7860, 4573, 2] */
|
||||
function _fun81998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:6, offset: 0x01ee6a12, size: 207 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {'marginTop': 16,
|
||||
'lineHeight': 20, 'textAlign': 'center'}, header: {textAlign: 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/IgnoreThermalStateAlert.tsx');
|
||||
exports.IgnoreThermalStateAlert = IgnoreThermalStateAlert;
|
||||
}
|
||||
|
||||
function IgnoreThermalStateAlert(a0) { // fn#81999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:351, offset: 0x01ee6ae1, size: 434 bytes, params: 2, frame: 25
|
||||
const env0_0 = a0.onConfirm;
|
||||
let value = Object.create(null);
|
||||
value.onConfirm = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const styles = useStyles();
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const defaultImportProps = {...value2};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
defaultImportProps['cancelText'] = Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['1fRDnT']]);
|
||||
defaultImportProps['onCancel'] = IgnoreThermalStateAlertOnCancel;
|
||||
defaultImportProps['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
value = <Text style={styles.header} variant="heading-lg/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v5X4fZ)}</Text>;
|
||||
string = intl.string;
|
||||
const VOgTjy = (require(1244) /* metro dependency 1244: indexNative */).t.VOgTjy;
|
||||
return (
|
||||
<Alert {...defaultImportProps}>
|
||||
{value}
|
||||
<Text style={styles.text} variant="text-md/medium">
|
||||
{Reflect.apply(string, intl, [VOgTjy])}
|
||||
</Text>
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function IgnoreThermalStateAlertOnCancel() { // fn#82000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:498, owner: IgnoreThermalStateAlert.onCancel, offset: 0x01ee6c93, size: 60 bytes, params: 1, frame: 11
|
||||
if (onConfirm != null) {
|
||||
onConfirm();
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).disregardSeriousThermalState();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 15451; source: modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx; dependencies: [57, 31, 27, 4502, 1376, 33, 4501, 697, 8750, 566, 6275, 9543, 4573, 1244, 4578, 2] */
|
||||
function _fun118260(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:6, offset: 0x024d343e, size: 383 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
object = {videoURI: 'https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.mp4'};
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object3 = {};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.overflow = 'hidden';
|
||||
const env0_11 = Reflect.apply(createStyles, value, [{videoContainer: object3,
|
||||
bottomSheetWrapper: {paddingHorizontal: 24}, contentContainer: {'flex': 1, 'alignItems': 'center',
|
||||
'paddingTop': 24, 'paddingBottom': 16}, title: {'marginTop': 16, 'textAlign': 'center'}, body: {'marginTop': 8,
|
||||
'marginBottom': 24, 'textAlign': 'center'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx');
|
||||
exports.default = VoiceControlsToggleActionSheet;
|
||||
}
|
||||
|
||||
function VoiceControlsToggleActionSheet({markAsDismissed}) { // fn#118261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:724, offset: 0x024d35bd, size: 670 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const [property, env0_1] = env0_3(env0_4.useState(0), 2);
|
||||
const value4 = (require(8750) /* metro dependency 8750: useIsScreenLandscapeNative */).useIsScreenLandscape();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const r16 = value4 ? 2.0875 : 1.5;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const viewBindingProps = {style: styles.contentContainer, onLayout: onLayout_118264};
|
||||
const items2 = [((Component) => <Component style={styles.videoContainer} src={env0_10} poster="https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.png" width={property} height={property / r16} muted paused={useReducedMotion} />)(importDefault(9543) /* metro dependency 9543: Video */)];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pT6hue)}</Text>;
|
||||
items2[2] = <Text style={styles.body} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tNm8AZ)}</Text>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[3] = <Button onPress={function() {
|
||||
return markAsDismissed(ContentDismissActionType.UNKNOWN);
|
||||
}} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} />;
|
||||
return (
|
||||
<BottomSheet startExpanded onDismiss={function() {
|
||||
return markAsDismissed(ContentDismissActionType.UNKNOWN);
|
||||
}}>
|
||||
<View style={styles.bottomSheetWrapper}>
|
||||
<View {...viewBindingProps}>
|
||||
{items2}
|
||||
</View>
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function VoiceControlsToggleActionSheetOnLayout({nativeEvent}) { // fn#118264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:1105, owner: VoiceControlsToggleActionSheet.onLayout, offset: 0x024d3878, size: 55 bytes, params: 2, frame: 12
|
||||
const width = nativeEvent.layout.width;
|
||||
env0_1(env0_2 ? width / 2 : width);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 10710; source: modules/activities/native/WebViewContext.tsx; dependencies: [57, 31, 27, 33, 4501, 2] */
|
||||
function _fun82320(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:6, offset: 0x01ef3317, size: 244 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value2.jsx;
|
||||
const env0_4 = value2.jsxs;
|
||||
value = value.createContext(0);
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({placeholderWebView: {'width': 2,
|
||||
'height': 2, 'position': 'absolute', 'opacity': 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/WebViewContext.tsx');
|
||||
exports.WebViewContext = value;
|
||||
exports.WebViewContextProvider = WebViewContextProvider;
|
||||
}
|
||||
|
||||
function WebViewContextProvider({children}) { // fn#82321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:395, offset: 0x01ef340b, size: 176 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
const binding = env0_1;
|
||||
const value3 = env0_0(binding.useState(0), 2);
|
||||
const property = value3[0];
|
||||
const value4 = binding.useCallback(_fun82322, [value3[1]]);
|
||||
const Provider = env0_5.Provider;
|
||||
return (
|
||||
<Provider value={property}>
|
||||
<View
|
||||
style={styles.placeholderWebView}
|
||||
ref={value4}
|
||||
pointerEvents="none"
|
||||
/>
|
||||
{children}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun82322(a0) { // fn#82322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:507, offset: 0x01ef34bb, size: 30 bytes, params: 2, frame: 11
|
||||
if (a0) {
|
||||
env0_0(a0._nativeTag);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 15362; source: modules/activities/native/applyActivityOrientationLock.tsx; dependencies: [4237, 10703, 7717, 2] */
|
||||
function _fun117442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:6, offset: 0x024b320f, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/applyActivityOrientationLock.tsx');
|
||||
exports.default = applyActivityOrientationLock;
|
||||
}
|
||||
|
||||
function applyActivityOrientationLock(a0) { // fn#117443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:229, offset: 0x024b3284, size: 208 bytes, params: 2, frame: 15
|
||||
const getDefaultOrientationLockStateModule = require(10703) /* metro dependency 10703: getDefaultOrientationLockState */;
|
||||
const getIsTabletActivitySurface = getDefaultOrientationLockStateModule.getIsTabletActivitySurface;
|
||||
if (!Reflect.apply(getIsTabletActivitySurface, getDefaultOrientationLockStateModule, [])) {
|
||||
if (OrientationLockState.UNLOCKED === a0) {
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).unlockOrientation({unlockAfterRotatingToPreviousLock: true});
|
||||
} else if (OrientationLockState.PORTRAIT === a0) {
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', true);
|
||||
} else if (OrientationLockState.LANDSCAPE === a0) {
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('LANDSCAPE', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,301 @@
|
||||
/* Metro module 10714; source: modules/activities/native/createWebviewHtmlFile.tsx; dependencies: [5, 27, 477, 1279, 1216, 2] */
|
||||
function _fun82335(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:6, offset: 0x01ef3893, size: 186 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const safeAreasUpdateListenerJs = function({iframeWindowVarName, isIframeLoadedVarName}) {
|
||||
return '\n function updateSafeAreaVars(insets) {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', `${insets.left}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', `${insets.right}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', `${insets.top}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', `${insets.bottom}px`);\n " + iframeWindowVarName + ".dispatchEvent(new Event('resize'));\n // Force redraw\n iframeDoc.documentElement.offsetHeight;\n }\n " + iframeWindowVarName + ".addEventListener('message', function (e) {\n const messageData = e.data;\n const {type, data} = messageData;\n if (type === 'safeAreaUpdateEvent') {\n const {insets} = data;\n if (" + isIframeLoadedVarName + ') {\n updateSafeAreaVars(insets);\n } else {\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n updateSafeAreaVars(insets);\n });\n }\n }\n });\n';
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/createWebviewHtmlFile.tsx');
|
||||
exports.default = function() {
|
||||
return _createWebviewHtmlFile.apply(this, arguments);
|
||||
};
|
||||
exports.createInjectedJavascriptForIOS = createInjectedJavascriptForIOS;
|
||||
}
|
||||
|
||||
function _createWebviewHtmlFile() { // fn#82336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1868, offset: 0x01ef394d, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun82338).apply(this, arguments);
|
||||
}
|
||||
|
||||
function safeAreaInitJs({insets, iframeWindowVarName, isIframeLoadedVarName}) { // fn#82340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:147, offset: 0x01ef3c2d, size: 133 bytes, params: 2, frame: 36
|
||||
const r0 = insets ?? ({'top': 0, 'bottom': 0, 'left': 0, 'right': 0});
|
||||
return '\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', '" + r0.left + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', '" + r0.right + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', '" + r0.top + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', '" + r0.bottom + "px');\n " + isIframeLoadedVarName + ' = true;\n });\n';
|
||||
}
|
||||
|
||||
function createInjectedJavascriptForIOS(a0) { // fn#82343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:4771, offset: 0x01ef3d04, size: 98 bytes, params: 2, frame: 16
|
||||
return '\nvar iframeWindow = window;\nvar isIframeLoaded = false;\n' + safeAreaInitJs({'insets': null,
|
||||
'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded',
|
||||
insets: a0}) + '\n' + safeAreasUpdateListenerJs({'iframeWindowVarName': 'iframeWindow',
|
||||
'isIframeLoadedVarName': 'isIframeLoaded'}) + '\n';
|
||||
}
|
||||
|
||||
async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1935, offset: 0x01ef3993, size: 346 bytes, params: 2, frame: 23
|
||||
var r2;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value7;
|
||||
var isAndroid;
|
||||
var isAndroid2;
|
||||
var DCDFileManager;
|
||||
var writeFile;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var binding3;
|
||||
var value11;
|
||||
var value12;
|
||||
var binding4;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var value16;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const value5 = _fun82339({iFrameUri: iFrameUri, iFrameSandboxAttributes: iFrameSandboxAttributes,
|
||||
referrerPolicy: referrerPolicy, insets: insets,
|
||||
messageForDisallowedNavigationError: messageForDisallowedNavigationError});
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding2[2];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
isAndroid = value7.isAndroid;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
isAndroid2 = Reflect.apply(isAndroid, value7, []);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
if (isAndroid2) {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding3[3];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value11 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value12 = value11 == null;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
if (value12) {
|
||||
r2 = value;
|
||||
} else {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding4[3];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value13 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
writeFile = value13.writeFile;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value14 = Reflect.apply(writeFile, value13, ['cache', 'discord_activity_data/activity.html', value5,
|
||||
'utf8']);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
r2 = value14;
|
||||
}
|
||||
await r2;
|
||||
try {
|
||||
value15 = undefined;
|
||||
value16 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
if (value16) {
|
||||
return value15;
|
||||
}
|
||||
return value15;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
DCDFileManager = binding.DCDFileManager;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
writeFile = DCDFileManager.writeFile;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(writeFile, DCDFileManager, ['cache', 'discord_activity_data/activity.html', value5,
|
||||
'utf8']);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
await value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[4]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
if (value10) {
|
||||
}
|
||||
return value9;
|
||||
}
|
||||
|
||||
function _fun82339({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:2097, offset: 0x01ef3aed, size: 320 bytes, params: 2, frame: 29
|
||||
var r7;
|
||||
var r8;
|
||||
var value4;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
let binding = env3_0;
|
||||
const isAndroid2 = binding(env3_2[2]).isAndroid();
|
||||
const value3 = '';
|
||||
if (isAndroid2) {
|
||||
binding = env3_5;
|
||||
value4 = binding({'insets': null, 'iframeWindowVarName': 'iframeWindow',
|
||||
'isIframeLoadedVarName': 'isIframeLoaded',
|
||||
insets: insets});
|
||||
binding = env3_6;
|
||||
value = binding({'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded'});
|
||||
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n var isIframeLoaded = false;\n ' + value4 + '\n ' + value + '\n </script>\n ';
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = value3;
|
||||
}
|
||||
if (messageForDisallowedNavigationError != null) {
|
||||
value = '\n ' + 'iframeWindow' + ".addEventListener('beforeunload', function (e) {\n window.ReactNativeWebView.postMessage('" + messageForDisallowedNavigationError + "');\n e.preventDefault();\n });\n";
|
||||
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n ' + value + '\n </script>\n ';
|
||||
r8 = value;
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
return '\n <html>\n <head>\n <style>\n body {\n padding: 0;\n margin: 0;\n width: 100vw;\n min-height: 100vh; /* This keeps a small white gap at the bottom of the screen, the options below help prevent this. */\n min-height: -moz-available; /* See: https://ilxanlar.medium.com/you-shouldnt-rely-on-css-100vh-and-here-s-why-1b4721e74487 for more info */\n min-height: -webkit-fill-available;\n min-height: fill-available;\n }\n </style>\n <meta\n name="viewport"\n content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"\n />\n </head>\n <body>\n <script type="text/javascript">\n window.addEventListener(\'message\', e => {\n window.ReactNativeWebView.postMessage(JSON.stringify(e.data));\n });\n </script>\n <iframe id="activityFrame" width="100%" height="100%" src="' + iFrameUri + '" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen sandbox="' + iFrameSandboxAttributes + '" referrerPolicy="' + referrerPolicy + '">\n </iframe>\n ' + r7 + '\n ' + r8 + '\n </body>\n </html>\n';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 10705; source: modules/activities/native/doesOrientationMatchLockState.tsx; dependencies: [4237, 2] */
|
||||
function _fun82264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:6, offset: 0x01ef13e3, size: 109 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/doesOrientationMatchLockState.tsx');
|
||||
exports.default = doesOrientationMatchLockState;
|
||||
}
|
||||
|
||||
function doesOrientationMatchLockState(a0, a1) { // fn#82265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:230, offset: 0x01ef1450, size: 89 bytes, params: 3, frame: 5
|
||||
const value = a0;
|
||||
let r0 = a1 == null || a1 === OrientationLockState.UNLOCKED;
|
||||
r0 = !r0 ? !value && a1 === OrientationLockState.PORTRAIT : r0;
|
||||
r0 = !r0 ? value && a1 === OrientationLockState.LANDSCAPE : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 10703; source: modules/activities/native/getDefaultOrientationLockState.tsx; dependencies: [4092, 1581, 694, 2] */
|
||||
function _fun82245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:6, offset: 0x01ef080f, size: 184 bytes, params: 8, frame: 20
|
||||
const closure = getIsTabletActivitySurface;
|
||||
const closure2 = getDefaultOrientationLockState;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(4092) /* metro dependency 4092: DeviceUtils */).isIpadOS();
|
||||
const env0_3 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/getDefaultOrientationLockState.tsx');
|
||||
exports.getIsTabletActivitySurface = closure;
|
||||
exports.setOrientationLockState = setOrientationLockState;
|
||||
exports.getDefaultOrientationLockState = closure2;
|
||||
}
|
||||
|
||||
function getIsTabletActivitySurface() { // fn#82246, offset: 0x01ef08c7, size: 16 bytes, params: 1, frame: 3
|
||||
return env0_2 || env0_3;
|
||||
}
|
||||
|
||||
function getDefaultOrientationLockState(a0) { // fn#82247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:191, offset: 0x01ef08d7, size: 68 bytes, params: 2, frame: 12
|
||||
var value;
|
||||
var getIsTabletActivitySurfaceBinding;
|
||||
var isTabletActivitySurfaceBinding;
|
||||
var embeddedActivityConfig;
|
||||
var value3;
|
||||
if (a0 != null) {
|
||||
getIsTabletActivitySurfaceBinding = getIsTabletActivitySurface;
|
||||
value = undefined;
|
||||
isTabletActivitySurfaceBinding = getIsTabletActivitySurfaceBinding();
|
||||
embeddedActivityConfig = a0.embeddedActivityConfig;
|
||||
value3 = embeddedActivityConfig == null;
|
||||
return isTabletActivitySurfaceBinding ? value3 ? value : embeddedActivityConfig.tablet_default_orientation_lock_state : value3 ? value : embeddedActivityConfig.default_orientation_lock_state;
|
||||
}
|
||||
}
|
||||
|
||||
function setOrientationLockState(a0, a1) { // fn#82248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:622, offset: 0x01ef091b, size: 95 bytes, params: 3, frame: 14
|
||||
const r3 = a1 ?? getDefaultOrientationLockState(a0);
|
||||
if (r3 != null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
|
||||
|
||||
applicationId: a0.id, lockState: r3});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 8071; source: modules/activities/native/getPostMessageJavaScript.tsx; dependencies: [2] */
|
||||
function _fun64075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8249:6, offset: 0x01b9a96d, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/getPostMessageJavaScript.tsx');
|
||||
exports.default = function(a0) {
|
||||
var JSON = global.JSON;
|
||||
return "\n (function() {\n const iFrame = document.getElementById('activityFrame');\n iFrame.contentWindow.postMessage(" + JSON.stringify(a0) + ", '*');\n })()\n ";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/* Metro module 12705; source: modules/activities/native/openActivityDMLauncher.tsx; dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */
|
||||
function _fun97348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:6, offset: 0x0217cb3e, size: 151 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherRouteName;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/openActivityDMLauncher.tsx');
|
||||
exports.default = function() {
|
||||
return _openActivityDMLauncher.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _openActivityDMLauncher() { // fn#97349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:137, offset: 0x0217cbd5, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun97351).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun97351(a0, a1, a2, a3) { // fn#97351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:206, offset: 0x0217cc1b, size: 504 bytes, params: 5, frame: 25
|
||||
var bestActiveInput;
|
||||
var openCustomKeyboard;
|
||||
let value = a4;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const value4 = undefined;
|
||||
const r7 = value !== value4 ? value : false;
|
||||
await value4;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_1;
|
||||
const value6 = binding(env2_2[2]);
|
||||
await value6.fetchApplication(a0);
|
||||
const value7 = undefined;
|
||||
if (false) {
|
||||
return value7;
|
||||
}
|
||||
const bot = value7.bot;
|
||||
const id = bot == null ? value4 : bot.id;
|
||||
if (value7 != null) {
|
||||
if (id == null) {
|
||||
return value4;
|
||||
}
|
||||
var value9 = env2_1(env2_2[3]);
|
||||
var openPrivateChannel = value9.openPrivateChannel;
|
||||
var object2 = {recipientIds: id};
|
||||
await Reflect.apply(openPrivateChannel, value9, [object2]);
|
||||
var value10 = undefined;
|
||||
if (false) {
|
||||
return value10;
|
||||
}
|
||||
var value12 = env2_0(env2_2[4]);
|
||||
var getCustomActivityLinkParams = value12.getCustomActivityLinkParams;
|
||||
await Reflect.apply(getCustomActivityLinkParams, value12, [a0, a3, a2]);
|
||||
var value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
var customId = value13.customId;
|
||||
if (r7) {
|
||||
bestActiveInput = env2_0(env2_2[8]).getBestActiveInput();
|
||||
if (bestActiveInput != null) {
|
||||
openCustomKeyboard = bestActiveInput.openCustomKeyboard;
|
||||
object2 = {};
|
||||
object2.type = env2_0(env2_2[9]).KeyboardTypes.APP_LAUNCHER;
|
||||
object2.context = {application: value7, initialRouteName: env2_4.APPLICATION_VIEW, customId: customId,
|
||||
referrerId: a1};
|
||||
Reflect.apply(openCustomKeyboard, bestActiveInput, [object2]);
|
||||
}
|
||||
return value4;
|
||||
}
|
||||
binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
var value15 = binding(binding2[5]);
|
||||
object2 = {targetApplicationId: a0, locationObject: {}, channelId: value10};
|
||||
var ACTIVITY_BOOKMARK = binding(binding2[6]).ACTIVITY_BOOKMARK;
|
||||
object2.analyticsLocations = [ACTIVITY_BOOKMARK];
|
||||
var CommandOrigin = env2_0(binding2[7]).CommandOrigin;
|
||||
var ACTIVITY_BOOKMARK_EMBED = CommandOrigin.ACTIVITY_BOOKMARK_EMBED;
|
||||
object2.commandOrigin = ACTIVITY_BOOKMARK_EMBED;
|
||||
object2.referrerId = a1;
|
||||
object2.customId = customId;
|
||||
await value15(object2);
|
||||
}
|
||||
return value4;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 10661; source: modules/activities/native/openIgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4496, 10662, 1962, 2] */
|
||||
function _fun81993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:6, offset: 0x01ee68bf, size: 138 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/openIgnoreThermalStateAlert.tsx');
|
||||
exports.openIgnoreThermalStateAlert = openIgnoreThermalStateAlert;
|
||||
}
|
||||
|
||||
function openIgnoreThermalStateAlert(a0) { // fn#81994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:239, offset: 0x01ee6949, size: 61 bytes, params: 2, frame: 13
|
||||
const env0_0 = a0;
|
||||
const value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
value.openLazy({importer: importer_81995});
|
||||
}
|
||||
|
||||
function openIgnoreThermalStateAlertImporter() { // fn#81995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:306, owner: openIgnoreThermalStateAlert.importer, offset: 0x01ee6986, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(dependencyMap[4]);
|
||||
value = value(dependencyMap[3], dependencyMap.paths);
|
||||
return value.then(function({IgnoreThermalStateAlert}) {
|
||||
return _fun81997;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun81996({IgnoreThermalStateAlert}) { // fn#81996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:338, offset: 0x01ee69c6, size: 24 bytes, params: 2, frame: 2
|
||||
return _fun81997;
|
||||
}
|
||||
|
||||
function _fun81997(a0) { // fn#81997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:369, offset: 0x01ee69de, size: 52 bytes, params: 2, frame: 14
|
||||
return <IgnoreThermalStateAlert {...a0} {...{['onConfirm']: env2_0}} />;
|
||||
}
|
||||
|
||||
Loaded 100 of 16065 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user