Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/* Metro module 15676; source: utils/native/AppInfoUtils.tsx; dependencies: [1582, 2] */
|
||||
function _fun120244(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15884:6, offset: 0x0252583f, size: 113 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/AppInfoUtils.tsx');
|
||||
exports.getAppMajorVersion = getAppMajorVersion;
|
||||
}
|
||||
|
||||
function getAppMajorVersion() { // fn#120245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15884:205, offset: 0x025258b0, size: 84 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var value;
|
||||
if (env0_0 === undefined) {
|
||||
return -1;
|
||||
}
|
||||
const Version = env0_0.Version;
|
||||
if (Version.split('.').length !== 2) {
|
||||
r0 = -1;
|
||||
} else {
|
||||
value = global.Number(value[0]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
/* Metro module 8870; source: utils/native/ApplicationUtils.tsx; dependencies: [661, 8871, 683, 8872, 3853, 10203, 483, 5080, 10206, 1962, 4122, 2] */
|
||||
function _fun69146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:6, offset: 0x01c6ace9, size: 185 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = openOAuth2Modal;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_5 = (require(8871) /* metro dependency 8871: Constants */).OAUTH2_AUTHORIZE_MODAL_KEY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ApplicationUtils.tsx');
|
||||
exports.installApplication = installApplication;
|
||||
exports.openOAuth2Modal = closure;
|
||||
exports.installPrivateChannelIntegration = installPrivateChannelIntegration;
|
||||
}
|
||||
|
||||
function openOAuth2Modal(a0) { // fn#69147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:158, offset: 0x01c6ada2, size: 139 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
importDefault(dependencyMap[7]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY);
|
||||
const defaultImport2 = importDefault(dependencyMap[7]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
const value2 = require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['dismissOAuthModal'] = openOAuth2ModalDismissOAuthModal;
|
||||
Reflect.apply(pushLazy, defaultImport2, [value2, object2, OAUTH2_AUTHORIZE_MODAL_KEY]);
|
||||
}
|
||||
|
||||
function installApplication({applicationId, customInstallUrl, installParams, integrationTypesConfig, guildId, channelId, disableGuildSelect, source, oauth2Callback}) { // fn#69149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:441, offset: 0x01c6ae78, size: 591 bytes, params: 2, frame: 25
|
||||
var r8;
|
||||
var value;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var object2;
|
||||
var openOAuth2ModalBinding;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
if (customInstallUrl != null) {
|
||||
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport3.track(AnalyticEvents.APPLICATION_ADD_TO_SERVER_CLICKED, {application_id: applicationId,
|
||||
auth_type: 'custom_url', source: source, device_platform: 'mobile_native'});
|
||||
return (require(8872) /* metro dependency 8872: MaskedLinkUtils */).handleClick({href: customInstallUrl,
|
||||
onConfirm: onConfirm});
|
||||
}
|
||||
if (integrationTypesConfig == null) {
|
||||
if (installParams != null) {
|
||||
value2 = undefined;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.APPLICATION_ADD_TO_SERVER_CLICKED, {application_id: applicationId,
|
||||
auth_type: 'in_app', source: source, device_platform: 'mobile_native'});
|
||||
openOAuth2ModalBinding = openOAuth2Modal;
|
||||
object2 = {clientId: applicationId, guildId: guildId, channelId: channelId,
|
||||
disableGuildSelect: disableGuildSelect};
|
||||
object2.scopes = installParams == null ? value2 : installParams.scopes;
|
||||
if ((installParams == null ? value2 : installParams.permissions) != null) {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value = value.deserialize(installParams == null ? value2 : installParams.permissions);
|
||||
r8 = value;
|
||||
} else {
|
||||
r8 = value2;
|
||||
}
|
||||
object2.permissions = r8;
|
||||
object2.callback = function(a0) {
|
||||
importDefault(dependencyMap[5])(a0);
|
||||
if (oauth2Callback != null) {
|
||||
oauth2Callback(a0);
|
||||
}
|
||||
};
|
||||
openOAuth2ModalBinding(object2);
|
||||
}
|
||||
} else {
|
||||
var Object = global.Object;
|
||||
value = Object.values(integrationTypesConfig);
|
||||
if (value.some(function(a0) {
|
||||
var value = undefined;
|
||||
return (a0 == null ? value : a0.oauth2_install_params) != null || (a0 == null ? value : a0.oauth2InstallParams) != null;
|
||||
})) {
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport2.track(AnalyticEvents.APPLICATION_ADD_TO_SERVER_CLICKED, {application_id: applicationId,
|
||||
auth_type: 'in_app', source: source, device_platform: 'mobile_native'});
|
||||
openOAuth2Modal({clientId: applicationId, guildId: guildId, channelId: channelId,
|
||||
disableGuildSelect: disableGuildSelect, callback: callback_69152});
|
||||
return undefined;
|
||||
}
|
||||
if (installParams != null) {
|
||||
value2 = undefined;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.APPLICATION_ADD_TO_SERVER_CLICKED, {application_id: applicationId,
|
||||
auth_type: 'in_app', source: source, device_platform: 'mobile_native'});
|
||||
openOAuth2ModalBinding = openOAuth2Modal;
|
||||
object2 = {clientId: applicationId, guildId: guildId, channelId: channelId,
|
||||
disableGuildSelect: disableGuildSelect};
|
||||
object2.scopes = installParams == null ? value2 : installParams.scopes;
|
||||
if ((installParams == null ? value2 : installParams.permissions) != null) {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value = value.deserialize(installParams == null ? value2 : installParams.permissions);
|
||||
r8 = value;
|
||||
} else {
|
||||
r8 = value2;
|
||||
}
|
||||
object2.permissions = r8;
|
||||
object2.callback = function(a0) {
|
||||
importDefault(dependencyMap[5])(a0);
|
||||
if (oauth2Callback != null) {
|
||||
oauth2Callback(a0);
|
||||
}
|
||||
};
|
||||
openOAuth2ModalBinding(object2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function installPrivateChannelIntegration({applicationId, channelId, callback}) { // fn#69154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:1681, offset: 0x01c6b12d, size: 171 bytes, params: 2, frame: 22
|
||||
const defaultImport = importDefault(dependencyMap[7]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
const value2 = require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths);
|
||||
const object2 = {clientId: applicationId};
|
||||
const OAuth2Scopes = require(dependencyMap[10]).OAuth2Scopes;
|
||||
const APPLICATIONS_COMMANDS = OAuth2Scopes.APPLICATIONS_COMMANDS;
|
||||
object2.scopes = [APPLICATIONS_COMMANDS];
|
||||
object2.channelId = channelId;
|
||||
object2.dismissOAuthModal = function() {
|
||||
return importDefault(dependencyMap[7]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY);
|
||||
};
|
||||
object2.disableGuildSelect = true;
|
||||
object2.callback = callback;
|
||||
Reflect.apply(pushLazy, defaultImport, [value2, object2, OAUTH2_AUTHORIZE_MODAL_KEY]);
|
||||
}
|
||||
|
||||
function openOAuth2ModalDismissOAuthModal() { // fn#69148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:271, owner: openOAuth2Modal.dismissOAuthModal, offset: 0x01c6ae2d, size: 75 bytes, params: 1, frame: 12
|
||||
if (env0_0.dismissOAuthModal != null) {
|
||||
env0_0.dismissOAuthModal();
|
||||
}
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY);
|
||||
}
|
||||
|
||||
function installApplicationOnConfirm() { // fn#69150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:807, owner: installApplication.onConfirm, offset: 0x01c6b0c7, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.openURL(customInstallUrl);
|
||||
}
|
||||
|
||||
function installApplicationCallback(a0) { // fn#69152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9055:1189, owner: installApplication.callback, offset: 0x01c6b0f4, size: 57 bytes, params: 2, frame: 13
|
||||
(importDefault(10203) /* metro dependency 10203: authorizeCallback */)(a0);
|
||||
if (oauth2Callback != null) {
|
||||
oauth2Callback(a0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 6589; source: utils/native/AutocompleteUtils.tsx; dependencies: [661, 1244, 2] */
|
||||
function _fun51858(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6767:6, offset: 0x012e643a, size: 142 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 */).AutoCompleteResultTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/AutocompleteUtils.tsx');
|
||||
exports.default = {MENTION_EVERYONE: function() {
|
||||
var object = {'type': null, 'test': 'everyone', 'text': '@everyone'};
|
||||
object.type = AutoCompleteResultTypes.GLOBAL;
|
||||
object.description = require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['5atMLZ']);
|
||||
return object;
|
||||
}, MENTION_HERE: function() {
|
||||
var object = {'type': null, 'test': 'here', 'text': '@here'};
|
||||
object.type = AutoCompleteResultTypes.GLOBAL;
|
||||
object.description = require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.iX9SFD);
|
||||
return object;
|
||||
}, LAUNCHABLE_APPLICATIONS: function() {
|
||||
return [];
|
||||
}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/* Metro module 1426; source: utils/native/AvatarUtils.tsx; dependencies: [27, 1427, 1428, 1429, 1430, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1452, 1453, 1454, 1455, 1456, 2] */
|
||||
function _fun16653(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1553:6, offset: 0x00e56fcc, size: 753 bytes, params: 8, frame: 25
|
||||
const closure = ensureAvatarSource;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = require(27) /* metro dependency 27 */;
|
||||
const env0_2 = value.Image;
|
||||
const NativeModules = value.NativeModules;
|
||||
items4 = [importDefault(1427) /* metro dependency 1427 */, importDefault(1428) /* metro dependency 1428 */,
|
||||
importDefault(1429) /* metro dependency 1429 */, importDefault(1430) /* metro dependency 1430 */,
|
||||
importDefault(1431) /* metro dependency 1431 */, importDefault(1432) /* metro dependency 1432 */];
|
||||
const items5 = [importDefault(1433) /* metro dependency 1433 */, importDefault(1434) /* metro dependency 1434 */,
|
||||
importDefault(1435) /* metro dependency 1435 */, importDefault(1436) /* metro dependency 1436 */,
|
||||
importDefault(1437) /* metro dependency 1437 */, importDefault(1438) /* metro dependency 1438 */];
|
||||
const items2 = [importDefault(1439) /* metro dependency 1439 */, importDefault(1440) /* metro dependency 1440 */,
|
||||
importDefault(1441) /* metro dependency 1441 */, importDefault(1442) /* metro dependency 1442 */,
|
||||
importDefault(1443) /* metro dependency 1443 */, importDefault(1444) /* metro dependency 1444 */];
|
||||
const items3 = [importDefault(1445) /* metro dependency 1445 */, importDefault(1446) /* metro dependency 1446 */,
|
||||
importDefault(1447) /* metro dependency 1447 */, importDefault(1448) /* metro dependency 1448 */,
|
||||
importDefault(1449) /* metro dependency 1449 */, importDefault(1450) /* metro dependency 1450 */,
|
||||
importDefault(1451) /* metro dependency 1451 */, importDefault(1452) /* metro dependency 1452 */];
|
||||
const Set = global.Set;
|
||||
const MediaManager = NativeModules.MediaManager;
|
||||
const getConstants = MediaManager.getConstants;
|
||||
const set = new Set(Reflect.apply(getConstants, MediaManager, []).supportedExtensions);
|
||||
const object3 = {DEFAULT_AVATARS: items4, DEFAULT_AVATARS_SMALL: items5, DEFAULT_AVATARS_SMALL_MAX_SIZE: 24,
|
||||
DEFAULT_PROVISIONAL_AVATARS: items2, DEFAULT_GROUP_DM_AVATARS: items3};
|
||||
object3.BOT_AVATARS = {clyde: importDefault(1453) /* metro dependency 1453 */,
|
||||
nitro_wumpus: importDefault(1454) /* metro dependency 1454 */};
|
||||
object3.DEFAULT_CHANNEL_ICON = importDefault(1456) /* metro dependency 1456 */;
|
||||
object3.ensureAvatarSource = closure;
|
||||
object3.canUseWebp = canUseWebp;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/AvatarUtils.tsx');
|
||||
exports.default = object3;
|
||||
exports.DEFAULT_AVATARS = items4;
|
||||
exports.DEFAULT_AVATARS_SMALL = items5;
|
||||
exports.DEFAULT_AVATARS_SMALL_MAX_SIZE = 24;
|
||||
exports.DEFAULT_PROVISIONAL_AVATARS = items2;
|
||||
exports.ensureAvatarSource = closure;
|
||||
exports.getAutomodAvatarURL = function() {
|
||||
return importDefault(dependencyMap[29]);
|
||||
};
|
||||
}
|
||||
|
||||
function ensureAvatarSource(a0) { // fn#16654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1553:436, offset: 0x00e572bd, size: 58 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
var Array;
|
||||
let value = a0;
|
||||
if (typeof value === 'number') {
|
||||
value = Image.resolveAssetSource(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
Array = global.Array;
|
||||
if (Array.isArray(value)) {
|
||||
value = Image.resolveAssetSource(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function canUseWebp() { // fn#16655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1553:806, offset: 0x00e572f7, size: 25 bytes, params: 1, frame: 11
|
||||
return env0_3.has('webp');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
/* Metro module 15638; source: utils/native/CaptchaUtils.tsx; dependencies: [31, 27, 1949, 1310, 661, 33, 683, 4826, 4831, 566, 491, 562, 15639, 9486, 5080, 15640, 1962, 2] */
|
||||
function _fun119750(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:6, offset: 0x02517eb5, size: 358 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
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 NativeModules = value.NativeModules;
|
||||
const NativeEventEmitter = value.NativeEventEmitter;
|
||||
const env0_4 = value.Keyboard;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = value.CaptchaEvent;
|
||||
const env0_8 = value.RECAPTCHA_SITE_KEY;
|
||||
const env0_9 = value.AnalyticEvents;
|
||||
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const CaptchaManager = NativeModules.CaptchaManager;
|
||||
const nativeEventEmitter = new NativeEventEmitter(CaptchaManager);
|
||||
object2 = {showCaptcha: showCaptcha_119752, closeCaptcha: function() {
|
||||
CaptchaManager.closeCaptcha();
|
||||
}, showHcaptcha: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun119755);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
}, showRecaptcha: function() {
|
||||
var env0_0 = this;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun119758);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/CaptchaUtils.tsx');
|
||||
exports.default = object2;
|
||||
exports.InlineHcaptcha = InlineHcaptcha;
|
||||
}
|
||||
|
||||
function trackCaptchaEvent(a0, a1, a2, a3) { // fn#119751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:305, offset: 0x0251801b, size: 206 bytes, params: 5, frame: 20
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
let CAPTCHA_EVENT = AnalyticEvents.CAPTCHA_EVENT;
|
||||
Reflect.apply(track, defaultImport, [CAPTCHA_EVENT, {captcha_event_name: a0, captcha_service: a3, sitekey: a2,
|
||||
captcha_flow_key: a1}]);
|
||||
const defaultImport2 = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
const increment = defaultImport2.increment;
|
||||
const MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
|
||||
CAPTCHA_EVENT = MetricEvents.CAPTCHA_EVENT;
|
||||
Reflect.apply(increment, defaultImport2, [{name: CAPTCHA_EVENT, tags: ['event_name:' + a0,
|
||||
'captcha_service:' + a3]}]);
|
||||
}
|
||||
|
||||
function showCaptcha_119752() { // fn#119752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:558, offset: 0x025180e9, size: 185 bytes, params: 1, frame: 20
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
const value = a0;
|
||||
const r1 = value !== undefined ? value : CaptchaTypes.RECAPTCHA;
|
||||
Keyboard.dismiss();
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, {type: 'CAPTCHA'}]);
|
||||
const HCAPTCHA = CaptchaTypes.HCAPTCHA;
|
||||
return r1 !== HCAPTCHA ? this.showRecaptcha() : a1 != null ? this.showHcaptcha(a1, a2) : this.showRecaptcha();
|
||||
}
|
||||
|
||||
function showHcaptcha(a0, a1) { // fn#119754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:808, offset: 0x025181b7, size: 53 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun119755);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function showRecaptcha() { // fn#119757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:1389, offset: 0x0251842a, size: 46 bytes, params: 1, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun119758);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function InlineHcaptcha(a0) { // fn#119761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:2037, offset: 0x02518633, size: 247 bytes, params: 2, frame: 21
|
||||
const siteKey = a0.siteKey;
|
||||
const env0_1 = a0.onVerify;
|
||||
const env0_2 = a0.onError;
|
||||
const object2 = {'siteKey': 0, 'onVerify': 0, 'onError': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, undefined);
|
||||
const locale = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const value3 = (require(491) /* metro dependency 491 */).v4();
|
||||
value3.useEffect(_fun119763, [value3, siteKey]);
|
||||
return ((Component) => <Component siteKey={siteKey} onMessage={onMessage} languageCode={locale} {...value} />)(importDefault(15639) /* metro dependency 15639 */);
|
||||
}
|
||||
|
||||
function _fun119755(a0, a1) { // fn#119755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:828, offset: 0x025181ec, size: 203 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
let value = environment.__proto__;
|
||||
const value2 = require(dependencyMap[10]).v4();
|
||||
const trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
const binding = env0_0;
|
||||
const CaptchaTypes = require(dependencyMap[11]).CaptchaTypes;
|
||||
const HCAPTCHA = CaptchaTypes.HCAPTCHA;
|
||||
trackCaptchaEventBinding('initial-load', value2, binding, HCAPTCHA);
|
||||
value = importDefault(dependencyMap[14]);
|
||||
value.pushLazy(require(dependencyMap[16])(dependencyMap[15], dependencyMap.paths), {siteKey: binding,
|
||||
onMessage: onMessage_119756, rqdata: require}, 'hcaptcha');
|
||||
}
|
||||
|
||||
function _fun119758(a0, a1) { // fn#119758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:1425, offset: 0x02518458, size: 198 bytes, params: 3, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const value2 = (require(491) /* metro dependency 491 */).v4();
|
||||
const trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
const HCAPTCHA = CaptchaTypes.HCAPTCHA;
|
||||
trackCaptchaEventBinding('initial-load', value2, RECAPTCHA_SITE_KEY, HCAPTCHA);
|
||||
CaptchaManager.showCaptcha(RECAPTCHA_SITE_KEY, ThemeStore.theme, 'https://cdn.discordapp.com/recaptcha/ios.html');
|
||||
const binding = env1_12;
|
||||
let addListener = binding.addListener;
|
||||
const SOLVED = CaptchaEvent.SOLVED;
|
||||
Reflect.apply(addListener, binding, [SOLVED, _fun119759]);
|
||||
addListener = binding.addListener;
|
||||
const EXPIRED = CaptchaEvent.EXPIRED;
|
||||
Reflect.apply(addListener, binding, [EXPIRED, _fun119760]);
|
||||
}
|
||||
|
||||
function _fun119763() { // fn#119763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:2189, offset: 0x0251872a, size: 66 bytes, params: 1, frame: 17
|
||||
const trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
const binding = env0_3;
|
||||
const siteKeyBinding = siteKey;
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
const HCAPTCHA = CaptchaTypes.HCAPTCHA;
|
||||
trackCaptchaEventBinding('initial-load', binding, siteKeyBinding, HCAPTCHA);
|
||||
}
|
||||
|
||||
function onMessage(a0) { // fn#119764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:2304, owner: InlineHcaptcha.onMessage, offset: 0x0251876c, size: 333 bytes, params: 2, frame: 22
|
||||
var value;
|
||||
const CaptchaError = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError;
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
var defaultImport;
|
||||
let data = a0.nativeEvent.data;
|
||||
if (data != null) {
|
||||
data = a0.nativeEvent.data;
|
||||
value = environment.__proto__;
|
||||
if (data === CaptchaError.CANCEL) {
|
||||
trackCaptchaEvent(data, env0_3, siteKey, CaptchaTypes.HCAPTCHA);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.CAPTCHA_FAILED, {reason: data});
|
||||
if (onError != null) {
|
||||
onError(data);
|
||||
}
|
||||
} else if (data === CaptchaError.ERROR) {
|
||||
trackCaptchaEvent(data, env0_3, siteKey, CaptchaTypes.HCAPTCHA);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.CAPTCHA_FAILED, {reason: data});
|
||||
if (onError != null) {
|
||||
onError(data);
|
||||
}
|
||||
} else if (data === CaptchaError.EXPIRED) {
|
||||
trackCaptchaEvent(data, env0_3, siteKey, CaptchaTypes.HCAPTCHA);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.CAPTCHA_FAILED, {reason: data});
|
||||
if (onError != null) {
|
||||
onError(data);
|
||||
}
|
||||
} else {
|
||||
trackCaptchaEvent('verify', env0_3, siteKey, CaptchaTypes.HCAPTCHA);
|
||||
onVerify(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onMessage_119756(a0) { // fn#119756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:988, offset: 0x025182b7, size: 371 bytes, params: 2, frame: 21
|
||||
var value2;
|
||||
const CaptchaError = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError;
|
||||
var trackCaptchaEventBinding;
|
||||
var binding;
|
||||
var value4;
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
var value6;
|
||||
var defaultImport;
|
||||
const value = undefined;
|
||||
let data = a0 == null ? value : a0.nativeEvent.data;
|
||||
if (data != null) {
|
||||
data = a0.nativeEvent.data;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
if (data === CaptchaError.CANCEL) {
|
||||
trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
binding = env0_2;
|
||||
value6 = environment.__proto__;
|
||||
trackCaptchaEventBinding(data, binding, env1_0, CaptchaTypes.HCAPTCHA);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.CAPTCHA_FAILED, {reason: data});
|
||||
require(data);
|
||||
} else if (data === CaptchaError.ERROR) {
|
||||
trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
binding = env0_2;
|
||||
value6 = environment.__proto__;
|
||||
trackCaptchaEventBinding(data, binding, env1_0, CaptchaTypes.HCAPTCHA);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.CAPTCHA_FAILED, {reason: data});
|
||||
require(data);
|
||||
} else if (data === CaptchaError.EXPIRED) {
|
||||
trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
binding = env0_2;
|
||||
value6 = environment.__proto__;
|
||||
trackCaptchaEventBinding(data, binding, env1_0, CaptchaTypes.HCAPTCHA);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.CAPTCHA_FAILED, {reason: data});
|
||||
require(data);
|
||||
} else {
|
||||
trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
binding = env0_2;
|
||||
value4 = environment.__proto__;
|
||||
trackCaptchaEventBinding('verify', binding, env1_0, CaptchaTypes.HCAPTCHA);
|
||||
env0_0(data);
|
||||
}
|
||||
}
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun119759(a0) { // fn#119759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:1619, offset: 0x0251851e, size: 93 bytes, params: 2, frame: 18
|
||||
let binding = env1_0;
|
||||
binding.closeCaptcha();
|
||||
const trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
binding = env0_2;
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
const RECAPTCHA = CaptchaTypes.RECAPTCHA;
|
||||
trackCaptchaEventBinding('verify', binding, RECAPTCHA_SITE_KEY, RECAPTCHA);
|
||||
env0_0(a0);
|
||||
}
|
||||
|
||||
function _fun119760() { // fn#119760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15846:1740, offset: 0x0251857b, size: 184 bytes, params: 1, frame: 22
|
||||
let binding = env1_0;
|
||||
binding.closeCaptcha();
|
||||
const trackCaptchaEventBinding = trackCaptchaEvent;
|
||||
const CaptchaError = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError;
|
||||
let EXPIRED = CaptchaError.EXPIRED;
|
||||
binding = env0_2;
|
||||
const CaptchaTypes = (require(562) /* metro dependency 562: V8APIError */).CaptchaTypes;
|
||||
const RECAPTCHA = CaptchaTypes.RECAPTCHA;
|
||||
trackCaptchaEventBinding(EXPIRED, binding, RECAPTCHA_SITE_KEY, RECAPTCHA);
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const CAPTCHA_FAILED = AnalyticEvents.CAPTCHA_FAILED;
|
||||
Reflect.apply(track, defaultImport, [CAPTCHA_FAILED, {reason: 'expired'}]);
|
||||
EXPIRED = CaptchaError.EXPIRED;
|
||||
require(EXPIRED);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,266 @@
|
||||
/* Metro module 8340; source: utils/native/ChangeLogUtils.tsx; dependencies: [31, 27, 33, 4501, 697, 6235, 4597, 6766, 3855, 2] */
|
||||
function _fun66412(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:6, offset: 0x01bfa8fa, size: 526 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
let 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.View;
|
||||
const env0_4 = value.Image;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
|
||||
object2.link = {color: TEXT_LINK};
|
||||
object2.list = {marginBottom: 10};
|
||||
object2.image = {'alignSelf': 'center', 'flex': 1};
|
||||
const DARK_PRIMARY_500_LIGHT_PRIMARY_300 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_500_LIGHT_PRIMARY_300;
|
||||
object2.container = {'borderLeftWidth': 2, 'paddingLeft': 8, 'marginBottom': 10,
|
||||
borderLeftColor: DARK_PRIMARY_500_LIGHT_PRIMARY_300};
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object2.text = {'fontSize': 14, 'lineHeight': 18, 'marginBottom': 8, color: TEXT_MUTED};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
value = importAll(4597) /* metro dependency 4597: CustomMarkupNative */;
|
||||
value = value.createRules({});
|
||||
object2 = {link: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {react: _fun66424};
|
||||
}, lheading: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {react: _fun66426};
|
||||
}, heading: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {react: _fun66428};
|
||||
}, list: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {react: _fun66430};
|
||||
}};
|
||||
object2.image = {react: react};
|
||||
object2.blockQuote = {react: react_66432};
|
||||
object2.paragraph = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {react: _fun66434};
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ChangeLogUtils.tsx');
|
||||
exports.baseRules = value;
|
||||
exports.customRules = object2;
|
||||
}
|
||||
|
||||
function ChangeLogLink({node, output, state, styling}) { // fn#66413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:493, offset: 0x01bfab08, size: 131 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const Link = styling.components.Link;
|
||||
const linkProps = {className: styles.link, target: node.target};
|
||||
const content = node.content;
|
||||
const object = {};
|
||||
copyDataProperties(object, state, undefined);
|
||||
object['inLink'] = true;
|
||||
return (
|
||||
<Link {...linkProps} key={state.key}>
|
||||
{output(content, object)}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
function ChangeLogList({node, output, state, styling}) { // fn#66414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:671, offset: 0x01bfab8b, size: 131 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
const List = styling.components.List;
|
||||
return ((Component) => <Component style={styles.list} key={state.key}>{node.items.map(_fun66415)}</Component>)(List || View);
|
||||
}
|
||||
|
||||
function ChangeLogParagraph({node, output, state, styling}) { // fn#66420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1182, offset: 0x01bfadb9, size: 146 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const Paragraph = styling.components?.Paragraph;
|
||||
return ((Component) => <Component variant="text-sm/normal" style={styles.text} key={state.key}>{output(node.content,
|
||||
state)}</Component>)(Paragraph ?? (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround);
|
||||
}
|
||||
|
||||
function ChangeLogImage({node, state}) { // fn#66421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1433, offset: 0x01bfae4b, size: 108 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const value = importDefault(3855) /* metro dependency 3855 */;
|
||||
return (
|
||||
<Image
|
||||
style={styles.image}
|
||||
source={{uri: value.sanitizeUrl(node.target)}}
|
||||
key={state.key}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ChangeLogBlockQuote({node, output, state}) { // fn#66422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1562, offset: 0x01bfaeb7, size: 142 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const viewBindingProps = {style: styles.container};
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<View {...viewBindingProps} key={state.key}>
|
||||
<TextWithIOSLinkWorkaround variant="text-sm/normal" style={styles.text}>
|
||||
{output(node.content, state)}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function link_66423(a0) { // fn#66423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1788, offset: 0x01bfaf45, size: 25 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return {react: react_66424};
|
||||
}
|
||||
|
||||
function lheading(a0) { // fn#66425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1897, offset: 0x01bfafa0, size: 25 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return {react: react_66426};
|
||||
}
|
||||
|
||||
function heading(a0) { // fn#66427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2006, offset: 0x01bfb008, size: 25 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return {react: react_66428};
|
||||
}
|
||||
|
||||
function list(a0) { // fn#66429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2125, offset: 0x01bfb07b, size: 25 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return {react: react_66430};
|
||||
}
|
||||
|
||||
function react(a0, a1, a2) { // fn#66431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2213, offset: 0x01bfb0ce, size: 46 bytes, params: 4, frame: 13
|
||||
return (
|
||||
<ChangeLogImage
|
||||
node={a0}
|
||||
output={a1}
|
||||
state={a2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function react_66432(a0, a1, a2) { // fn#66432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2285, offset: 0x01bfb0fc, size: 46 bytes, params: 4, frame: 13
|
||||
return (
|
||||
<ChangeLogBlockQuote
|
||||
node={a0}
|
||||
output={a1}
|
||||
state={a2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function paragraph(a0) { // fn#66433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2354, offset: 0x01bfb12a, size: 25 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return {react: react_66434};
|
||||
}
|
||||
|
||||
function _fun66415(a0, a1) { // fn#66415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:811, offset: 0x01bfac0e, size: 62 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const ListItem = styling.components.ListItem;
|
||||
return <ListItem {...{children: children_66416}} key={a1} />;
|
||||
}
|
||||
|
||||
function link_66423React(a0, a1, a2) { // fn#66424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1799, owner: link_66423.react, offset: 0x01bfaf5e, size: 66 bytes, params: 4, frame: 13
|
||||
return (
|
||||
<ChangeLogLink
|
||||
accessibilityRole="link"
|
||||
node={a0}
|
||||
output={a1}
|
||||
state={a2}
|
||||
styling={env0_0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function lheadingReact(a0, a1, a2) { // fn#66426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1908, owner: lheading.react, offset: 0x01bfafb9, size: 79 bytes, params: 4, frame: 17
|
||||
const LHeading = env0_0.components.LHeading;
|
||||
return (
|
||||
<LHeading className={a0.className} key={a2.key}>
|
||||
{a1(a0.content, a2)}
|
||||
</LHeading>
|
||||
);
|
||||
}
|
||||
|
||||
function headingReact(a0, a1, a2) { // fn#66428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2017, owner: heading.react, offset: 0x01bfb021, size: 90 bytes, params: 4, frame: 17
|
||||
const Heading = env0_0.components.Heading;
|
||||
return (
|
||||
<Heading
|
||||
className={a0.className}
|
||||
level={a0.level}
|
||||
key={a2.key}
|
||||
>
|
||||
{a1(a0.content, a2)}
|
||||
</Heading>
|
||||
);
|
||||
}
|
||||
|
||||
function listReact(a0, a1, a2) { // fn#66430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2136, owner: list.react, offset: 0x01bfb094, size: 58 bytes, params: 4, frame: 13
|
||||
return (
|
||||
<ChangeLogList
|
||||
node={a0}
|
||||
output={a1}
|
||||
state={a2}
|
||||
styling={env0_0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function paragraphReact(a0, a1, a2) { // fn#66434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:2365, owner: paragraph.react, offset: 0x01bfb143, size: 58 bytes, params: 4, frame: 13
|
||||
return (
|
||||
<ChangeLogParagraph
|
||||
node={a0}
|
||||
output={a1}
|
||||
state={a2}
|
||||
styling={env0_0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function children_66416(a0) { // fn#66416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:852, offset: 0x01bfac4c, size: 38 bytes, params: 2, frame: 17
|
||||
return ((a0, a1, a2, a3) => {
|
||||
var env0_0 = a1;
|
||||
var env0_1 = a2;
|
||||
var env0_2 = a3;
|
||||
var closure = _fun66418;
|
||||
var env0_5 = closure;
|
||||
var env0_4 = [];
|
||||
a0.forEach(_fun66419);
|
||||
closure();
|
||||
return [];
|
||||
})(env0_0, output, state, a0);
|
||||
}
|
||||
|
||||
function processListItem(a0, a1, a2, a3) { // fn#66417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:855, owner: children_66416.processListItem, offset: 0x01bfac72, size: 78 bytes, params: 5, frame: 13
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const env0_2 = a3;
|
||||
const closure = renderText;
|
||||
const env0_4 = [];
|
||||
a0.forEach(_fun66419);
|
||||
closure();
|
||||
return [];
|
||||
}
|
||||
|
||||
function renderText() { // fn#66418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:903, owner: children_66416.processListItem.renderText, offset: 0x01bfacc0, size: 142 bytes, params: 1, frame: 20
|
||||
var binding;
|
||||
var push;
|
||||
var value2;
|
||||
if (env0_4.length > 0) {
|
||||
binding = env0_3;
|
||||
push = binding.push;
|
||||
value2 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
Reflect.apply(push, binding,
|
||||
[((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-sm/normal" {...importAll} key={-1}>{require(env0_4,
|
||||
|
||||
importDefault)}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround)]);
|
||||
env0_4 = [];
|
||||
}
|
||||
}
|
||||
|
||||
function _fun66419(a0, a1) { // fn#66419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8525:1058, offset: 0x01bfad4e, size: 107 bytes, params: 3, frame: 19
|
||||
var binding;
|
||||
var push;
|
||||
var value2;
|
||||
if (a0.type === 'list') {
|
||||
renderText();
|
||||
binding = env0_3;
|
||||
push = binding.push;
|
||||
value2 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
Reflect.apply(push, binding, [<View key={a1}>{require(a0, importDefault)}</View>]);
|
||||
} else {
|
||||
env0_4.push(a0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,456 @@
|
||||
/* Metro module 6647; source: utils/native/ChannelUtils.tsx; dependencies: [1945, 1867, 1878, 661, 6648, 6649, 6650, 6651, 6652, 6653, 6654, 6655, 6656, 6657, 6658, 6659, 6660, 6661, 6662, 6663, 6664, 6667, 6668, 6669, 5107, 6670, 6671, 6672, 6673, 6674, 6675, 6676, 6677, 6678, 6679, 6680, 6681, 6682, 6683, 6684, 6685, 6686, 6687, 6688, 6689, 6690, 6691, 6692, 6693, 6694, 6695, 6696, 6697, 6698, 6699, 6700, 6701, 6702, 6703, 6704, 6705, 6706, 6707, 6708, 6709, 6710, 6711, 6712, 2] */
|
||||
function _fun52587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:6, offset: 0x0133153b, size: 259 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
if (ChannelTypes.PRIVATE_THREAD === a0) {
|
||||
return importDefault(dependencyMap[4]);
|
||||
}
|
||||
if (ChannelTypes.ANNOUNCEMENT_THREAD === a0) {
|
||||
return importDefault(dependencyMap[5]);
|
||||
}
|
||||
if (ChannelTypes.PUBLIC_THREAD === a0) {
|
||||
return importDefault(dependencyMap[5]);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const closure2 = getChannelIcon;
|
||||
const closure3 = getChannelIconComponent;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ChannelUtils.tsx');
|
||||
exports.getThreadChannelIcon = closure;
|
||||
exports.getSimpleChannelIcon = getSimpleChannelIcon;
|
||||
exports.getChannelIconWithGuild = getChannelIconWithGuild;
|
||||
exports.getChannelMentionIcon = getChannelMentionIcon;
|
||||
exports.getChannelIcon = closure2;
|
||||
exports.getChannelIconComponentWithGuild = getChannelIconComponentWithGuild;
|
||||
exports.getChannelIconComponent = closure3;
|
||||
exports.getSimpleChannelIconComponent = getSimpleChannelIconComponent;
|
||||
}
|
||||
|
||||
function getChannelIcon(a0, a1) { // fn#52589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:313, offset: 0x013316a2, size: 1908 bytes, params: 3, frame: 28
|
||||
var r10;
|
||||
var r7;
|
||||
var r9;
|
||||
const value = a1;
|
||||
const {isRulesChannel, textFocused, locked} = value ?? ({});
|
||||
const moduleValue = require(dependencyMap[20]);
|
||||
const shouldShowMembershipVerificationGate2 = moduleValue.shouldShowMembershipVerificationGate(a0.guild_id,
|
||||
[GuildStore, UserStore, GuildMemberStore]);
|
||||
if (a0.isForumPost()) {
|
||||
return importDefault(dependencyMap[16]);
|
||||
}
|
||||
const getThreadChannelIconBinding = getThreadChannelIcon;
|
||||
let type = a0.type;
|
||||
const threadChannelIconBinding = getThreadChannelIconBinding(type);
|
||||
if (threadChannelIconBinding != null) {
|
||||
return threadChannelIconBinding;
|
||||
}
|
||||
const isMediaChannel2 = a0.isMediaChannel();
|
||||
const isNSFW2 = a0.isNSFW();
|
||||
type = a0.type;
|
||||
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
||||
if (PRIVATE_THREAD === type) {
|
||||
return getThreadChannelIcon(a0.type);
|
||||
}
|
||||
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
||||
if (ANNOUNCEMENT_THREAD === type) {
|
||||
return getThreadChannelIcon(a0.type);
|
||||
}
|
||||
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
||||
if (PUBLIC_THREAD === type) {
|
||||
return getThreadChannelIcon(a0.type);
|
||||
}
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
if (GUILD_CATEGORY === type) {
|
||||
return importDefault(dependencyMap[6]);
|
||||
}
|
||||
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
||||
if (GUILD_TEXT === type) {
|
||||
return isRulesChannel ? importDefault(dependencyMap[21]) : isNSFW2 ? value == null ? importDefault(dependencyMap[22]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[23]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[23]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[22]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[23]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[23]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]);
|
||||
}
|
||||
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
||||
if (GUILD_FORUM === type) {
|
||||
if (isRulesChannel) {
|
||||
r7 = importDefault(dependencyMap[21]);
|
||||
} else if (isNSFW2) {
|
||||
if (value == null) {
|
||||
r7 = isMediaChannel2 ? dependencyMap[26] : dependencyMap[27];
|
||||
r7 = importDefault(r7);
|
||||
} else if (value.ignoreTraits) {
|
||||
if (a0.isSpoilerChannel()) {
|
||||
if (value == null) {
|
||||
r9 = importDefault(dependencyMap[28]);
|
||||
} else if (value.ignoreTraits) {
|
||||
if (importDefault(dependencyMap[24])(a0)) {
|
||||
if (value == null) {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
} else if (value.ignoreTraits) {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
} else {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
}
|
||||
} else {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
}
|
||||
r9 = r10;
|
||||
} else {
|
||||
r9 = importDefault(dependencyMap[28]);
|
||||
}
|
||||
} else {
|
||||
if (importDefault(dependencyMap[24])(a0)) {
|
||||
if (value == null) {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
} else if (value.ignoreTraits) {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
} else {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
}
|
||||
} else {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
}
|
||||
r9 = r10;
|
||||
}
|
||||
r7 = r9;
|
||||
} else {
|
||||
r7 = isMediaChannel2 ? dependencyMap[26] : dependencyMap[27];
|
||||
r7 = importDefault(r7);
|
||||
}
|
||||
} else {
|
||||
if (a0.isSpoilerChannel()) {
|
||||
if (value == null) {
|
||||
r9 = importDefault(dependencyMap[28]);
|
||||
} else if (value.ignoreTraits) {
|
||||
if (importDefault(dependencyMap[24])(a0)) {
|
||||
if (value == null) {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
} else if (value.ignoreTraits) {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
} else {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
}
|
||||
} else {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
}
|
||||
r9 = r10;
|
||||
} else {
|
||||
r9 = importDefault(dependencyMap[28]);
|
||||
}
|
||||
} else {
|
||||
if (importDefault(dependencyMap[24])(a0)) {
|
||||
if (value == null) {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
} else if (value.ignoreTraits) {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
} else {
|
||||
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
||||
r10 = importDefault(r10);
|
||||
}
|
||||
} else {
|
||||
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
||||
}
|
||||
r9 = r10;
|
||||
}
|
||||
r7 = r9;
|
||||
}
|
||||
return r7;
|
||||
}
|
||||
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
||||
if (GUILD_MEDIA === type) {
|
||||
return isRulesChannel ? importDefault(dependencyMap[21]) : isNSFW2 ? value == null ? importDefault(dependencyMap[26]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[29]) : value.ignoreTraits ? importDefault(dependencyMap[18]) : importDefault(dependencyMap[29]) : importDefault(dependencyMap[18]) : importDefault(dependencyMap[26]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[29]) : value.ignoreTraits ? importDefault(dependencyMap[18]) : importDefault(dependencyMap[29]) : importDefault(dependencyMap[18]);
|
||||
}
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
if (GROUP_DM === type) {
|
||||
return importDefault(dependencyMap[8]);
|
||||
}
|
||||
const DM = ChannelTypes.DM;
|
||||
if (DM === type) {
|
||||
return importDefault(dependencyMap[9]);
|
||||
}
|
||||
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
if (GUILD_ANNOUNCEMENT === type) {
|
||||
return isRulesChannel ? importDefault(dependencyMap[21]) : isNSFW2 ? value == null ? importDefault(dependencyMap[31]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[32]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]) : importDefault(dependencyMap[32]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]) : importDefault(dependencyMap[31]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[32]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]) : importDefault(dependencyMap[32]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]);
|
||||
}
|
||||
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
||||
if (GUILD_STAGE_VOICE === type) {
|
||||
return shouldShowMembershipVerificationGate2 ? value == null ? importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[15]) : value.ignoreTraits ? locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]) : importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[15]) : locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]);
|
||||
}
|
||||
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
||||
if (GUILD_VOICE === type) {
|
||||
return textFocused ? importDefault(dependencyMap[16]) : shouldShowMembershipVerificationGate2 ? value == null ? importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[14]) : value.ignoreTraits ? locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[14]) : locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefaultLine truncated
|
||||
}
|
||||
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
||||
if (GUILD_DIRECTORY === type) {
|
||||
return importDefault(dependencyMap[13]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getChannelIconComponent(a0, a1) { // fn#52590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:2086, offset: 0x01331e16, size: 2198 bytes, params: 3, frame: 27
|
||||
const VoiceLockIcon = (require(6708) /* metro dependency 6708: VoiceLockIcon */).VoiceLockIcon;
|
||||
const LockIcon = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
|
||||
const VoiceWarningIcon = (require(6709) /* metro dependency 6709: VoiceWarningIcon */).VoiceWarningIcon;
|
||||
const VoiceNormalSpoilerIcon = (require(6710) /* metro dependency 6710: VoiceNormalSpoilerIcon */).VoiceNormalSpoilerIcon;
|
||||
const VoiceNormalIcon = (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
|
||||
const StageLockIcon = (require(6706) /* metro dependency 6706: StageLockIcon */).StageLockIcon;
|
||||
const StageIcon = (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
|
||||
const AnnouncementsWarningIcon = (require(6701) /* metro dependency 6701: AnnouncementsWarningIcon */).AnnouncementsWarningIcon;
|
||||
const AnnouncementsSpoilerIcon = (require(6702) /* metro dependency 6702: AnnouncementsSpoilerIcon */).AnnouncementsSpoilerIcon;
|
||||
const AnnouncementsLockIcon = (require(6703) /* metro dependency 6703: AnnouncementsLockIcon */).AnnouncementsLockIcon;
|
||||
const AnnouncementsIcon = (require(6704) /* metro dependency 6704: AnnouncementsIcon */).AnnouncementsIcon;
|
||||
const BookCheckIcon = (require(6686) /* metro dependency 6686: BookCheckIcon */).BookCheckIcon;
|
||||
const ImageWarningIcon = (require(6692) /* metro dependency 6692: ImageWarningIcon */).ImageWarningIcon;
|
||||
const ImageLockIcon = (require(6695) /* metro dependency 6695: ImageLockIcon */).ImageLockIcon;
|
||||
const ImageIcon = (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon;
|
||||
const ForumWarningIcon = (require(6693) /* metro dependency 6693: ForumWarningIcon */).ForumWarningIcon;
|
||||
const ForumSpoilerIcon = (require(6694) /* metro dependency 6694: ForumSpoilerIcon */).ForumSpoilerIcon;
|
||||
const ForumLockIcon = (require(6696) /* metro dependency 6696: ForumLockIcon */).ForumLockIcon;
|
||||
const ForumIcon = (require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon;
|
||||
const TextWarningIcon = (require(6687) /* metro dependency 6687: TextWarningIcon */).TextWarningIcon;
|
||||
const TextSpoilerIcon = (require(6688) /* metro dependency 6688: TextSpoilerIcon */).TextSpoilerIcon;
|
||||
const TextLockIcon = (require(6689) /* metro dependency 6689: TextLockIcon */).TextLockIcon;
|
||||
const TextIcon = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
|
||||
const TextControllerIcon = (require(6690) /* metro dependency 6690: TextControllerIcon */).TextControllerIcon;
|
||||
const value = a1;
|
||||
const {isRulesChannel, textFocused, locked} = value ?? ({});
|
||||
const useShowMemberVerificationGateModule = require(6664) /* metro dependency 6664: useShowMemberVerificationGate */;
|
||||
const shouldShowMembershipVerificationGate2 = useShowMemberVerificationGateModule.shouldShowMembershipVerificationGate(a0.guild_id,
|
||||
[GuildStore, UserStore, GuildMemberStore]);
|
||||
if (a0.isForumPost()) {
|
||||
return (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
||||
}
|
||||
const isMediaChannel2 = a0.isMediaChannel();
|
||||
const isNSFW2 = a0.isNSFW();
|
||||
const type = a0.type;
|
||||
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
||||
if (PRIVATE_THREAD === type) {
|
||||
return (require(6683) /* metro dependency 6683: ThreadLockIcon */).ThreadLockIcon;
|
||||
}
|
||||
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
||||
if (ANNOUNCEMENT_THREAD === type) {
|
||||
return (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
||||
}
|
||||
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
||||
if (PUBLIC_THREAD === type) {
|
||||
return (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
||||
}
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
if (GUILD_CATEGORY === type) {
|
||||
return (require(6685) /* metro dependency 6685: FolderIcon */).FolderIcon;
|
||||
}
|
||||
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
||||
if (GUILD_TEXT === type) {
|
||||
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? TextWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? TextSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextWarningIcon : a0.isSpoilerChannel() ? value == null ? TextSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon;
|
||||
}
|
||||
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
||||
if (GUILD_FORUM === type) {
|
||||
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? isMediaChannel2 ? ImageWarningIcon : ForumWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? ForumSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon : ForumSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageWarningIcon : ForumWarningIcon : a0.isSpoilerChannel() ? value == null ? ForumSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon : ForumSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon;
|
||||
}
|
||||
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
||||
if (GUILD_MEDIA === type) {
|
||||
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? ImageWarningIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? ImageLockIcon : value.ignoreTraits ? ImageIcon : ImageLockIcon : ImageIcon : ImageWarningIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? ImageLockIcon : value.ignoreTraits ? ImageIcon : ImageLockIcon : ImageIcon;
|
||||
}
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
if (GROUP_DM === type) {
|
||||
return (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
|
||||
}
|
||||
const DM = ChannelTypes.DM;
|
||||
if (DM === type) {
|
||||
return (require(6700) /* metro dependency 6700: AtIcon */).AtIcon;
|
||||
}
|
||||
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
if (GUILD_ANNOUNCEMENT === type) {
|
||||
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? AnnouncementsWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? AnnouncementsSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon : AnnouncementsSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon : AnnouncementsWarningIcon : a0.isSpoilerChannel() ? value == null ? AnnouncementsSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon : AnnouncementsSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon;
|
||||
}
|
||||
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
||||
if (GUILD_STAGE_VOICE === type) {
|
||||
return shouldShowMembershipVerificationGate2 ? value == null ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : StageLockIcon : value.ignoreTraits ? locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : StageLockIcon : locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon;
|
||||
}
|
||||
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
||||
if (GUILD_VOICE === type) {
|
||||
return textFocused ? (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon : shouldShowMembershipVerificationGate2 ? value == null ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : VoiceLockIcon : value.ignoreTraits ? locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : VoiceLockIcon : locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon;
|
||||
}
|
||||
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
||||
if (GUILD_DIRECTORY === type) {
|
||||
return (require(6712) /* metro dependency 6712: HubIcon */).HubIcon;
|
||||
}
|
||||
}
|
||||
|
||||
function getSimpleChannelIcon(a0) { // fn#52591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:4530, offset: 0x013326ac, size: 441 bytes, params: 2, frame: 15
|
||||
const getThreadChannelIconBinding = getThreadChannelIcon;
|
||||
let type = a0.type;
|
||||
const threadChannelIconBinding = getThreadChannelIconBinding(type);
|
||||
if (threadChannelIconBinding != null) {
|
||||
return threadChannelIconBinding;
|
||||
}
|
||||
type = a0.type;
|
||||
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
||||
if (PRIVATE_THREAD === type) {
|
||||
return getThreadChannelIcon(a0.type);
|
||||
}
|
||||
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
||||
if (ANNOUNCEMENT_THREAD === type) {
|
||||
return getThreadChannelIcon(a0.type);
|
||||
}
|
||||
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
||||
if (PUBLIC_THREAD === type) {
|
||||
return getThreadChannelIcon(a0.type);
|
||||
}
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
if (GUILD_CATEGORY === type) {
|
||||
return importDefault(6650) /* metro dependency 6650 */;
|
||||
}
|
||||
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
||||
if (GUILD_TEXT === type) {
|
||||
return importDefault(6651) /* metro dependency 6651 */;
|
||||
}
|
||||
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
||||
if (GUILD_FORUM === type) {
|
||||
return importDefault(6651) /* metro dependency 6651 */;
|
||||
}
|
||||
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
||||
if (GUILD_MEDIA === type) {
|
||||
return importDefault(6651) /* metro dependency 6651 */;
|
||||
}
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
if (GROUP_DM === type) {
|
||||
return importDefault(6652) /* metro dependency 6652 */;
|
||||
}
|
||||
const DM = ChannelTypes.DM;
|
||||
if (DM === type) {
|
||||
return importDefault(6653) /* metro dependency 6653 */;
|
||||
}
|
||||
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
if (GUILD_ANNOUNCEMENT === type) {
|
||||
return importDefault(6654) /* metro dependency 6654 */;
|
||||
}
|
||||
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
||||
if (GUILD_STAGE_VOICE === type) {
|
||||
return importDefault(6655) /* metro dependency 6655 */;
|
||||
}
|
||||
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
||||
if (GUILD_VOICE === type) {
|
||||
return importDefault(6656) /* metro dependency 6656 */;
|
||||
}
|
||||
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
||||
if (GUILD_DIRECTORY === type) {
|
||||
return importDefault(6657) /* metro dependency 6657 */;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getChannelIconWithGuild(a0, a1) { // fn#52592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5108, offset: 0x01332865, size: 56 bytes, params: 3, frame: 16
|
||||
return getChannelIcon(a0, {isRulesChannel: a1?.rulesChannelId === a0.id});
|
||||
}
|
||||
|
||||
function getChannelMentionIcon(a0) { // fn#52593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5254, offset: 0x0133289d, size: 389 bytes, params: 2, frame: 11
|
||||
if (a0 === 'voice') {
|
||||
return importDefault(6656) /* metro dependency 6656 */;
|
||||
}
|
||||
if (a0 === 'voice-locked') {
|
||||
return importDefault(6658) /* metro dependency 6658 */;
|
||||
}
|
||||
if (a0 === 'stage') {
|
||||
return importDefault(6655) /* metro dependency 6655 */;
|
||||
}
|
||||
if (a0 === 'stage-locked') {
|
||||
return importDefault(6659) /* metro dependency 6659 */;
|
||||
}
|
||||
if (a0 === 'text') {
|
||||
return importDefault(6651) /* metro dependency 6651 */;
|
||||
}
|
||||
if (a0 === 'thread') {
|
||||
return importDefault(6649) /* metro dependency 6649 */;
|
||||
}
|
||||
if (a0 === 'post') {
|
||||
return importDefault(6660) /* metro dependency 6660 */;
|
||||
}
|
||||
if (a0 === 'message') {
|
||||
return importDefault(6660) /* metro dependency 6660 */;
|
||||
}
|
||||
if (a0 === 'forum') {
|
||||
return importDefault(6661) /* metro dependency 6661 */;
|
||||
}
|
||||
if (a0 === 'media') {
|
||||
return importDefault(6662) /* metro dependency 6662 */;
|
||||
}
|
||||
if (a0 === 'locked') {
|
||||
return importDefault(6663) /* metro dependency 6663 */;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getChannelIconComponentWithGuild(a0, a1) { // fn#52594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5693, offset: 0x01332a22, size: 56 bytes, params: 3, frame: 16
|
||||
return getChannelIconComponent(a0, {isRulesChannel: a1?.rulesChannelId === a0.id});
|
||||
}
|
||||
|
||||
function getSimpleChannelIconComponent(a0) { // fn#52595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5915, offset: 0x01332a5a, size: 592 bytes, params: 2, frame: 13
|
||||
const ThreadIcon = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
||||
const ChatIcon = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
||||
const type = a0.type;
|
||||
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
||||
if (PRIVATE_THREAD === type) {
|
||||
return a0.isForumPost() ? ChatIcon : ThreadIcon;
|
||||
}
|
||||
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
||||
if (ANNOUNCEMENT_THREAD === type) {
|
||||
return a0.isForumPost() ? ChatIcon : ThreadIcon;
|
||||
}
|
||||
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
||||
if (PUBLIC_THREAD === type) {
|
||||
return a0.isForumPost() ? ChatIcon : ThreadIcon;
|
||||
}
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
if (GUILD_CATEGORY === type) {
|
||||
return (require(6685) /* metro dependency 6685: FolderIcon */).FolderIcon;
|
||||
}
|
||||
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
||||
if (GUILD_TEXT === type) {
|
||||
return (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
|
||||
}
|
||||
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
||||
if (GUILD_FORUM === type) {
|
||||
return (require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon;
|
||||
}
|
||||
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
||||
if (GUILD_MEDIA === type) {
|
||||
return (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon;
|
||||
}
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
if (GROUP_DM === type) {
|
||||
return (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
|
||||
}
|
||||
const DM = ChannelTypes.DM;
|
||||
if (DM === type) {
|
||||
return (require(6700) /* metro dependency 6700: AtIcon */).AtIcon;
|
||||
}
|
||||
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
if (GUILD_ANNOUNCEMENT === type) {
|
||||
return (require(6704) /* metro dependency 6704: AnnouncementsIcon */).AnnouncementsIcon;
|
||||
}
|
||||
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
||||
if (GUILD_STAGE_VOICE === type) {
|
||||
return (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
|
||||
}
|
||||
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
||||
if (GUILD_VOICE === type) {
|
||||
return (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
|
||||
}
|
||||
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
||||
if (GUILD_DIRECTORY === type) {
|
||||
return (require(6712) /* metro dependency 6712: HubIcon */).HubIcon;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
/* Metro module 4015; source: utils/native/ChatInputUtils.tsx; dependencies: [4016, 1848, 4022, 1583, 1482, 4023, 2] */
|
||||
function _fun33058(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:6, offset: 0x01026bbc, size: 226 bytes, params: 8, frame: 21
|
||||
let env0_0 = require;
|
||||
const closure = getHighestActiveScreenIndex;
|
||||
const closure2 = getBestActiveInput;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
Map = global.Map;
|
||||
map = new Map();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ChatInputUtils.tsx');
|
||||
exports.createInputRefTracker = function(a0, a1) {
|
||||
var env0_0 = a1;
|
||||
var env0_3 = _fun33064;
|
||||
var env0_4 = _fun33065;
|
||||
var env0_1 = null;
|
||||
var env0_2 = {current: a0};
|
||||
return {handleRef: _fun33066, register: _fun33067, unregister: _fun33068};
|
||||
};
|
||||
exports.getHighestActiveScreenIndex = closure;
|
||||
exports.getChatInputRef = getChatInputRef;
|
||||
exports.getBestActiveInputForChannelId = getBestActiveInputForChannelId;
|
||||
exports.getBestActiveInput = closure2;
|
||||
exports.dismissKeyboard = dismissKeyboard_33071;
|
||||
}
|
||||
|
||||
function getHighestActiveScreenIndex() { // fn#33059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:116, offset: 0x01026c9e, size: 190 bytes, params: 1, frame: 20
|
||||
var Math;
|
||||
var max;
|
||||
var items2;
|
||||
let value = a0;
|
||||
const r9 = value !== undefined ? value : env0_3;
|
||||
if (r9.size !== 0) {
|
||||
var has = r9.has;
|
||||
if (Reflect.apply(has, r9, ['voice-panel'])) {
|
||||
return 'voice-panel';
|
||||
}
|
||||
has = r9.has;
|
||||
if (Reflect.apply(has, r9, ['message-request'])) {
|
||||
return 'message-request';
|
||||
}
|
||||
has = r9.has;
|
||||
if (Reflect.apply(has, r9, ['new-message'])) {
|
||||
return 'new-message';
|
||||
}
|
||||
var Array = global.Array;
|
||||
value = Array.from(r9.keys());
|
||||
value = value.filter(_fun33060);
|
||||
if (value.length !== 0) {
|
||||
Math = global.Math;
|
||||
max = Math.max;
|
||||
items2 = [];
|
||||
arraySpread(items2, value, 0, r9);
|
||||
return apply(max, items2, Math, r9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getHighestIndexForScreenIndexMap(a0) { // fn#33061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:444, offset: 0x01026d95, size: 37 bytes, params: 2, frame: 12
|
||||
const highestActiveScreenIndex = getHighestActiveScreenIndex(a0);
|
||||
if (highestActiveScreenIndex != null) {
|
||||
return a0.get(highestActiveScreenIndex);
|
||||
}
|
||||
}
|
||||
|
||||
function getBestActiveInput() { // fn#33062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:553, offset: 0x01026dba, size: 48 bytes, params: 1, frame: 13
|
||||
const getHighestIndexForScreenIndexMapBinding = getHighestIndexForScreenIndexMap;
|
||||
const value = undefined;
|
||||
const highestIndexForScreenIndexMapBinding = getHighestIndexForScreenIndexMapBinding(env0_3);
|
||||
return (highestIndexForScreenIndexMapBinding == null ? value : highestIndexForScreenIndexMapBinding.current) ?? value;
|
||||
}
|
||||
|
||||
function createInputRefTracker(a0, a1) { // fn#33063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:769, offset: 0x01026dea, size: 80 bytes, params: 3, frame: 3
|
||||
const env0_0 = a1;
|
||||
const object = {current: a0};
|
||||
return {handleRef: handleRef, register: register_33067, unregister: unregister_33068};
|
||||
}
|
||||
|
||||
function getChatInputRef(a0, a1) { // fn#33069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:1426, offset: 0x01026ffa, size: 80 bytes, params: 3, frame: 14
|
||||
var current;
|
||||
var value;
|
||||
var value2;
|
||||
if (a0 != null) {
|
||||
value = env0_2.get(a0);
|
||||
value2 = undefined;
|
||||
if (value == null) {
|
||||
current = value2;
|
||||
} else {
|
||||
value = value.get(a1);
|
||||
current = value == null ? value2 : value.current;
|
||||
}
|
||||
return current ?? value2;
|
||||
}
|
||||
}
|
||||
|
||||
function getBestActiveInputForChannelId(a0) { // fn#33070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:1591, offset: 0x0102704a, size: 73 bytes, params: 2, frame: 13
|
||||
var getHighestIndexForScreenIndexMapBinding;
|
||||
var highestIndexForScreenIndexMapBinding;
|
||||
if (a0 != null) {
|
||||
var value;
|
||||
var value2 = env0_2.get(a0);
|
||||
if (value2 != null) {
|
||||
getHighestIndexForScreenIndexMapBinding = getHighestIndexForScreenIndexMap;
|
||||
value = undefined;
|
||||
highestIndexForScreenIndexMapBinding = getHighestIndexForScreenIndexMapBinding(value2);
|
||||
return (highestIndexForScreenIndexMapBinding == null ? value : highestIndexForScreenIndexMapBinding.current) ?? value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function dismissKeyboard_33071() { // fn#33071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:1829, offset: 0x01027093, size: 207 bytes, params: 1, frame: 16
|
||||
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
|
||||
const bestActiveInput = getBestActiveInput();
|
||||
if (bestActiveInput != null) {
|
||||
bestActiveInput.closeCustomKeyboard();
|
||||
}
|
||||
const keyboardType = (require(4022) /* metro dependency 4022: useKeyboardType */).getKeyboardType();
|
||||
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
|
||||
const SYSTEM = KeyboardTypes.SYSTEM;
|
||||
if (keyboardType !== SYSTEM) {
|
||||
(require(1482) /* metro dependency 1482: KeyboardUIStoreNative */).setKeyboardType({type: KeyboardTypes.SYSTEM});
|
||||
}
|
||||
(require(4023) /* metro dependency 4023: PortalKeyboardUIStoreNative */).closePortalKeyboardRequest();
|
||||
}
|
||||
|
||||
function _fun33060(a0) { // fn#33060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:348, offset: 0x01026d5c, size: 57 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
let value = typeof a0 === 'number';
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = require(4016) /* metro dependency 4016: ScreenIndexFrozen */;
|
||||
value = !value.isScreenIndexFrozen(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function addRef(a0, a1, a2) { // fn#33064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:830, owner: createInputRefTracker.addRef, offset: 0x01026e3a, size: 149 bytes, params: 4, frame: 16
|
||||
var r5;
|
||||
var map;
|
||||
const value2 = env1_2.get(a1);
|
||||
if (value2 != null) {
|
||||
r5 = value2;
|
||||
} else {
|
||||
map = new global.Map();
|
||||
}
|
||||
r5.set(a2, a0);
|
||||
env1_2.set(a1, r5);
|
||||
env1_3.set(a2, a0);
|
||||
const DEVELOPMENT = global.process.env.DEVELOPMENT;
|
||||
if (DEVELOPMENT === 'development') {
|
||||
env1_3.has(a2);
|
||||
}
|
||||
}
|
||||
|
||||
function removeRef(a0, a1, a2) { // fn#33065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:973, owner: createInputRefTracker.removeRef, offset: 0x01026ecf, size: 82 bytes, params: 4, frame: 13
|
||||
const value2 = env1_2.get(a1);
|
||||
if (value2 != null) {
|
||||
value2.delete(a2);
|
||||
if (value2.size === 0) {
|
||||
env1_2.delete(a1);
|
||||
}
|
||||
env1_3.delete(a2);
|
||||
}
|
||||
}
|
||||
|
||||
function handleRef(a0, a1) { // fn#33066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:1090, owner: createInputRefTracker.handleRef, offset: 0x01026f21, size: 111 bytes, params: 3, frame: 17
|
||||
env0_2.current = a1;
|
||||
if (a0 == null) {
|
||||
if (env0_1 == null) {
|
||||
return undefined;
|
||||
}
|
||||
removeRef(undefined, a1, require);
|
||||
} else if (env0_1 == null) {
|
||||
addRef({current: a0}, a1, require);
|
||||
} else {
|
||||
env0_1.current = a0;
|
||||
}
|
||||
}
|
||||
|
||||
function createInputRefTrackerRegister() { // fn#33067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:1233, owner: createInputRefTracker.register, offset: 0x01026f90, size: 63 bytes, params: 1, frame: 16
|
||||
var removeRefBinding;
|
||||
var binding;
|
||||
var current;
|
||||
var addRefBinding;
|
||||
var binding2;
|
||||
if (env0_1 != null) {
|
||||
removeRefBinding = removeRef;
|
||||
binding = env0_2;
|
||||
current = binding.current;
|
||||
removeRefBinding(undefined, current, require);
|
||||
addRefBinding = addRef;
|
||||
binding2 = env0_1;
|
||||
current = binding.current;
|
||||
addRefBinding(binding2, current, require);
|
||||
}
|
||||
}
|
||||
|
||||
function createInputRefTrackerUnregister() { // fn#33068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4173:1308, owner: createInputRefTracker.unregister, offset: 0x01026fcf, size: 43 bytes, params: 1, frame: 14
|
||||
if (env0_1 != null) {
|
||||
removeRef(undefined, env0_2.current, require);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 1582; source: utils/native/ClientInfoUtils.tsx; dependencies: [27, 477, 657, 2] */
|
||||
function _fun17598(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1709:6, offset: 0x00e70e30, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ClientInfoUtils.tsx');
|
||||
exports.getConstants = getConstants_17599;
|
||||
exports.getBuildNumberLabel = function() {
|
||||
var value = '5867';
|
||||
return ['0', '123456', '1234567890'].includes(value) ? 'dev (' + value + ')' : value;
|
||||
};
|
||||
}
|
||||
|
||||
function getConstants_17599() { // fn#17599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1709:201, offset: 0x00e70eb5, size: 151 bytes, params: 1, frame: 13
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if ((importDefault(657) /* metro dependency 657: NativeClientInfoModule */) === null) {
|
||||
throw new global.Error('Turbo module RTNClientInfoManager is undefined for Android');
|
||||
}
|
||||
return (importDefault(657) /* metro dependency 657: NativeClientInfoModule */).getConstants();
|
||||
}
|
||||
const InfoDictionaryManager = NativeModules.InfoDictionaryManager;
|
||||
return InfoDictionaryManager.getConstants();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/* Metro module 4092; source: utils/native/DeviceUtils.tsx; dependencies: [27, 477, 656, 587, 2] */
|
||||
function _fun33520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:6, offset: 0x01031798, size: 411 bytes, params: 8, frame: 22
|
||||
var DCDDeviceManager;
|
||||
var value5;
|
||||
const env0_0 = require;
|
||||
const closure = getSystemVersion;
|
||||
const closure2 = getDevice_33522;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = undefined;
|
||||
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if ((importDefault(656) /* metro dependency 656: NativeDeviceModule */) != null) {
|
||||
value5 = (importDefault(656) /* metro dependency 656: NativeDeviceModule */).getConstants();
|
||||
}
|
||||
} else {
|
||||
DCDDeviceManager = NativeModules.DCDDeviceManager;
|
||||
}
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/DeviceUtils.tsx');
|
||||
exports.isIpadOS = isIpadOS;
|
||||
exports.isGestureNavigationEnabled = isGestureNavigationEnabled;
|
||||
exports.getSystemVersion = closure;
|
||||
exports.getSystemVersionMajor = getSystemVersionMajor;
|
||||
exports.getSystemVersionMinor = getSystemVersionMinor;
|
||||
exports.getDevice = closure2;
|
||||
exports.getDeviceInfo = getDeviceInfo;
|
||||
exports.getDeviceMediaPerformanceClass = getDeviceMediaPerformanceClass;
|
||||
exports.getDeviceModel = getDeviceModel;
|
||||
exports.getDeviceBrand = getDeviceBrand;
|
||||
exports.getDeviceProduct = getDeviceProduct;
|
||||
exports.getDeviceManufacturer = getDeviceManufacturer;
|
||||
exports.getSmallestScreenWidth = getSmallestScreenWidth;
|
||||
exports.getSocName = getSocName;
|
||||
exports.getRamSize = getRamSize;
|
||||
exports.getMaxCpuFreq = getMaxCpuFreq;
|
||||
exports.getTimeZone = getTimeZone;
|
||||
exports.getIsRunningOnSimulator = getIsRunningOnSimulator;
|
||||
return value;
|
||||
}
|
||||
|
||||
function getSystemVersion() { // fn#33521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:205, offset: 0x01031933, size: 15 bytes, params: 1, frame: 1
|
||||
return env0_3.systemVersion;
|
||||
}
|
||||
|
||||
function getDevice_33522() { // fn#33522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:256, offset: 0x01031942, size: 15 bytes, params: 1, frame: 1
|
||||
return env0_3.device;
|
||||
}
|
||||
|
||||
function isIpadOS() { // fn#33523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:403, offset: 0x01031951, size: 23 bytes, params: 1, frame: 2
|
||||
return env0_3.deviceModel === 'iPad';
|
||||
}
|
||||
|
||||
function isGestureNavigationEnabled() { // fn#33524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:482, offset: 0x01031968, size: 15 bytes, params: 1, frame: 1
|
||||
return env0_3.isGestureNavigationEnabled;
|
||||
}
|
||||
|
||||
function getSystemVersionMajor() { // fn#33525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:617, offset: 0x01031977, size: 102 bytes, params: 1, frame: 15
|
||||
let value = getSystemVersion();
|
||||
value = value.match(RegExp('\\d+', ''));
|
||||
if (value == null) {
|
||||
return 0;
|
||||
}
|
||||
let Number = global.Number;
|
||||
const value2 = 0;
|
||||
value = Number.parseInt(value[value2], 10);
|
||||
Number = global.Number;
|
||||
return Number.isNaN(value) ? value2 : value;
|
||||
}
|
||||
|
||||
function getSystemVersionMinor() { // fn#33526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:791, offset: 0x010319dd, size: 117 bytes, params: 1, frame: 14
|
||||
let value = getSystemVersion();
|
||||
value = value.match(RegExp('\\d+', 'g'));
|
||||
if (value == null) {
|
||||
return 0;
|
||||
}
|
||||
if (value.length < 2) {
|
||||
return 0;
|
||||
}
|
||||
let Number = global.Number;
|
||||
value = Number.parseInt(value[1], 10);
|
||||
Number = global.Number;
|
||||
return Number.isNaN(value) ? 0 : value;
|
||||
}
|
||||
|
||||
function getDeviceInfo() { // fn#33527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:992, offset: 0x01031a52, size: 87 bytes, params: 1, frame: 12
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
const device_33522 = getDevice_33522();
|
||||
return isAndroid2 ? device_33522 + ' (' + env0_3.deviceModel + ')' : device_33522;
|
||||
}
|
||||
|
||||
function getDeviceMediaPerformanceClass() { // fn#33528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1125, offset: 0x01031aa9, size: 190 bytes, params: 1, frame: 17
|
||||
var r2;
|
||||
var r0;
|
||||
var value3;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
var value4;
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
const value2 = null;
|
||||
if (isAndroid2) {
|
||||
value3 = value2 == env0_4;
|
||||
if (value3) {
|
||||
value4 = Storage.get(env0_5);
|
||||
env0_4 = value4;
|
||||
r2 = value2 == value4;
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
if (r2) {
|
||||
env0_4 = (importDefault(656) /* metro dependency 656: NativeDeviceModule */).getMediaPerformanceClass();
|
||||
Storage.set(env0_5, env0_4);
|
||||
}
|
||||
r0 = env0_4;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getDeviceModel() { // fn#33529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1328, offset: 0x01031b67, size: 15 bytes, params: 1, frame: 1
|
||||
return env0_3.deviceModel;
|
||||
}
|
||||
|
||||
function getDeviceBrand() { // fn#33530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1393, offset: 0x01031b76, size: 17 bytes, params: 1, frame: 1
|
||||
return env0_3.deviceBrand;
|
||||
}
|
||||
|
||||
function getDeviceProduct() { // fn#33531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1460, offset: 0x01031b87, size: 17 bytes, params: 1, frame: 1
|
||||
return env0_3.deviceProduct;
|
||||
}
|
||||
|
||||
function getDeviceManufacturer() { // fn#33532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1536, offset: 0x01031b98, size: 17 bytes, params: 1, frame: 1
|
||||
return env0_3.deviceManufacturer;
|
||||
}
|
||||
|
||||
function getSmallestScreenWidth() { // fn#33533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1623, offset: 0x01031ba9, size: 17 bytes, params: 1, frame: 1
|
||||
return env0_3.smallestScreenWidth;
|
||||
}
|
||||
|
||||
function getSocName() { // fn#33534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1700, offset: 0x01031bba, size: 17 bytes, params: 1, frame: 1
|
||||
return env0_3.socName;
|
||||
}
|
||||
|
||||
function getRamSize() { // fn#33535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1753, offset: 0x01031bcb, size: 42 bytes, params: 1, frame: 12
|
||||
const ramSize = env0_3.ramSize;
|
||||
return ramSize === '' ? undefined : global.parseFloat(ramSize);
|
||||
}
|
||||
|
||||
function getMaxCpuFreq() { // fn#33536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1842, offset: 0x01031bf5, size: 42 bytes, params: 1, frame: 12
|
||||
const maxCpuFreq = env0_3.maxCpuFreq;
|
||||
return maxCpuFreq === '' ? undefined : global.parseFloat(maxCpuFreq);
|
||||
}
|
||||
|
||||
function getTimeZone() { // fn#33537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:1935, offset: 0x01031c1f, size: 15 bytes, params: 1, frame: 1
|
||||
return env0_3.timeZone;
|
||||
}
|
||||
|
||||
function getIsRunningOnSimulator() { // fn#33538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4250:2003, offset: 0x01031c2e, size: 17 bytes, params: 1, frame: 1
|
||||
return env0_3.isRunningOnSimulator;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 4020; source: utils/native/FabricUtils.tsx; dependencies: [4021, 477, 2] */
|
||||
function _fun33087(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4178:6, offset: 0x010275fa, size: 135 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = isFabric_33088;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const RN$Bridgeless = global.RN$Bridgeless;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/FabricUtils.tsx');
|
||||
exports.isFabric = closure;
|
||||
exports.isIosFabric = isIosFabric;
|
||||
exports.isBridgeless = RN$Bridgeless === true;
|
||||
}
|
||||
|
||||
function isFabric_33088() { // fn#33088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4178:43, offset: 0x01027681, size: 74 bytes, params: 1, frame: 14
|
||||
var r1;
|
||||
var value;
|
||||
if ((importDefault(4021) /* metro dependency 4021: NativeArchitectureProvider */) == null) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = importDefault(4021) /* metro dependency 4021: NativeArchitectureProvider */;
|
||||
value = value.isFabric();
|
||||
r1 = value;
|
||||
}
|
||||
return r1 != null && r1;
|
||||
}
|
||||
|
||||
function isIosFabric() { // fn#33089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4178:301, offset: 0x010276cb, size: 48 bytes, params: 1, frame: 12
|
||||
return (require(477) /* metro dependency 477: PlatformUtils */).isIOS() && isFabric_33088();
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,25 @@
|
||||
/* Metro module 7358; source: utils/native/IAPUtils.mock.tsx; dependencies: [7359, 2] */
|
||||
function _fun59307(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7536:6, offset: 0x016e5213, size: 141 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('utils/native/IAPUtils.mock.tsx');
|
||||
exports.default = {loadProducts: function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve(require(dependencyMap[0]).copiedIAPProducts);
|
||||
}, purchaseProduct: function() {
|
||||
var Promise = global.Promise;
|
||||
var Error = global.Error;
|
||||
return Promise.reject(new Error('IAPUtils is mocked — purchases cannot be completed in this build.'));
|
||||
}, canMakePayments: function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve(true);
|
||||
}, restorePurchases: function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve([]);
|
||||
}, fetchStoreFront: function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve({'country': 'US', 'currency': 'usd'});
|
||||
}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,970 @@
|
||||
/* Metro module 7355; source: utils/native/IAPUtils.tsx; dependencies: [5, 27, 4649, 3837, 1878, 5140, 661, 1880, 3, 44, 477, 7356, 5143, 22, 491, 7336, 3817, 566, 7357, 7358, 2] */
|
||||
function _fun59248(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:6, offset: 0x016e3cad, size: 518 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
var r7;
|
||||
let env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
return require(dependencyMap[14]).v5(a0, NAMESPACE_SNOWFLAKE_UUID);
|
||||
};
|
||||
const closure2 = isStorekit2Available_59258;
|
||||
const closure3 = remapStorefront;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
let value = importDefault(4649) /* metro dependency 4649: DevSettingsStore */;
|
||||
const env0_4 = (require(3837) /* metro dependency 3837: CountryCodeUtils */).convertToAlpha2;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).CurrencyCodes;
|
||||
const env0_8 = (require(1880) /* metro dependency 1880: PremiumConstants */).NAMESPACE_SNOWFLAKE_UUID;
|
||||
const env0_9 = NativeModules.InAppUtils;
|
||||
const env0_10 = NativeModules.RNIapIosSk2;
|
||||
const logger = importDefault(3) /* metro dependency 3: Logger */;
|
||||
Object.create(logger.prototype, {constructor: {value: logger}});
|
||||
new logger('IAPUtils.tsx');
|
||||
object2 = {loadProducts: loadProducts_59263, purchaseProduct: function(a0, a1, a2) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
var Promise = global.Promise;
|
||||
var value = _fun59267();
|
||||
var value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
value = new Promise(value);
|
||||
return value instanceof Object ? value : value2;
|
||||
}, canMakePayments: function() {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun59272);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
}, restorePurchases: function() {
|
||||
return _restorePurchases.apply(this, arguments);
|
||||
}, fetchStoreFront: function() {
|
||||
return _fetchStoreFront.apply(this, arguments);
|
||||
}};
|
||||
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
if (isIOS2) {
|
||||
value = value.get('force_mock_iap');
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = !!isIOS2;
|
||||
}
|
||||
const r6 = r7 ? (require(7358) /* metro dependency 7358: IAPUtilsMock */).default : object2;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/IAPUtils.tsx');
|
||||
exports.default = r6;
|
||||
exports.convertToUUID = closure;
|
||||
exports.makeIAPRequest = function(a0, a1, a2) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
var Promise = global.Promise;
|
||||
var value = _fun59277();
|
||||
var value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
value = new Promise(value);
|
||||
return value instanceof Object ? value : value2;
|
||||
};
|
||||
exports.useCanPurchaseIAP = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = require(dependencyMap[17]).useStateFromStores([UserStore], _fun59282, []);
|
||||
return !require(dependencyMap[17]).useStateFromStores([IAPStoreAndroid], _fun59283);
|
||||
};
|
||||
exports.isStorekit2Available = closure2;
|
||||
exports.remapStorefront = closure3;
|
||||
exports.manageSubscription = manageSubscription;
|
||||
}
|
||||
|
||||
function serializePurchaseResponse(a0) { // fn#59249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:307, offset: 0x016e3eb3, size: 174 bytes, params: 2, frame: 15
|
||||
const value = undefined;
|
||||
(importDefault(44) /* metro dependency 44 */)(a0.transactionId != null, 'should have transactionId');
|
||||
const object2 = {};
|
||||
object2.originalTransactionDate = a0.originalTransactionDateIOS;
|
||||
object2.originalTransactionIdentifier = a0.originalTransactionIdentifierIOS != null ? global.parseInt(a0.originalTransactionIdentifierIOS) : value;
|
||||
object2.transactionDate = a0.transactionDate;
|
||||
object2.transactionIdentifier = global.parseInt(a0.transactionId);
|
||||
object2.productIdentifier = a0.productId;
|
||||
object2.transactionReceipt = a0.transactionReceipt;
|
||||
object2.jwsRepresentation = a0.verificationResultIOS;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _restorePurchases() { // fn#59251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:833, offset: 0x016e3f8f, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun59253).apply(this, arguments);
|
||||
}
|
||||
|
||||
function isStorekit2Available_59258() { // fn#59258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:1472, offset: 0x016e4183, size: 76 bytes, params: 1, frame: 13
|
||||
return (require(477) /* metro dependency 477: PlatformUtils */).isIOS() && RNIapIosSk2?.isAvailable() === 1;
|
||||
}
|
||||
|
||||
function remapStorefront(a0) { // fn#59259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:1566, offset: 0x016e41cf, size: 173 bytes, params: 2, frame: 16
|
||||
var property;
|
||||
var Error;
|
||||
var value;
|
||||
const value2 = convertToAlpha2(a0.countryCode);
|
||||
let currency = a0.currency;
|
||||
if (currency == null) {
|
||||
property = (require(7357) /* metro dependency 7357: GeneratedPaymentCurrencies */).GeneratedPaymentCurrenciesSets.APPLE_STORE_COUNTRY_CURRENCIES[value2];
|
||||
if (property == null) {
|
||||
Error = global.Error;
|
||||
value = 'Unable to get currency from countryCode ' + a0.countryCode;
|
||||
throw new Error();
|
||||
}
|
||||
return {currency: property, country: value2};
|
||||
}
|
||||
currency = a0.currency;
|
||||
return {currency: CurrencyCodes[currency.toUpperCase()], country: value2};
|
||||
}
|
||||
|
||||
function _fetchStoreFront() { // fn#59260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:1867, offset: 0x016e427c, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun59262).apply(this, arguments);
|
||||
}
|
||||
|
||||
function loadProducts_59263() { // fn#59263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2154, offset: 0x016e4344, size: 229 bytes, params: 1, frame: 23
|
||||
var r0;
|
||||
var all;
|
||||
var defaultImport;
|
||||
var fetchSubscriptions;
|
||||
var Object;
|
||||
var values;
|
||||
const ProductIds = (require(5143) /* metro dependency 5143: ProductIdsAndroid */).ProductIds;
|
||||
var items2;
|
||||
var fetchProducts;
|
||||
var value;
|
||||
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
const Promise = global.Promise;
|
||||
if (isIOS2) {
|
||||
all = Promise.all;
|
||||
defaultImport = importDefault(7356) /* metro dependency 7356: StorekitIAPQueue */;
|
||||
fetchSubscriptions = defaultImport.fetchSubscriptions;
|
||||
Object = global.Object;
|
||||
values = Object.values;
|
||||
value = Reflect.apply(fetchSubscriptions, defaultImport, [Reflect.apply(values, Object, [ProductIds])]);
|
||||
items2 = [value];
|
||||
value = importDefault(7356) /* metro dependency 7356: StorekitIAPQueue */;
|
||||
fetchProducts = value.fetchProducts;
|
||||
Object = global.Object;
|
||||
values = Object.values;
|
||||
items2[1] = Reflect.apply(fetchProducts, value, [Reflect.apply(values, Object, [ProductIds])]);
|
||||
value = Reflect.apply(all, Promise, [items2]);
|
||||
value = value.then(_fun59264);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = Promise.resolve([]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function purchaseProduct(a0, a1, a2) { // fn#59266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2498, offset: 0x016e4509, size: 64 bytes, params: 4, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const Promise = global.Promise;
|
||||
const value = _fun59267();
|
||||
const value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(value);
|
||||
return promise instanceof Object ? promise : value2;
|
||||
}
|
||||
|
||||
function canMakePayments() { // fn#59271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2995, offset: 0x016e4695, size: 37 bytes, params: 1, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
InAppUtils.canMakePayments(_fun59273);
|
||||
});
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function makeIAPRequest(a0, a1, a2) { // fn#59276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:3546, offset: 0x016e4725, size: 64 bytes, params: 4, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const Promise = global.Promise;
|
||||
const value = _fun59277();
|
||||
const value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(value);
|
||||
return promise instanceof Object ? promise : value2;
|
||||
}
|
||||
|
||||
function useCanPurchaseIAP(a0) { // fn#59281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:4201, offset: 0x016e48f9, size: 113 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const env0_1 = Reflect.apply(useStateFromStores, fluxModule, [[UserStore], _fun59282, []]);
|
||||
const moduleValue2 = fluxModule;
|
||||
useStateFromStores = moduleValue2.useStateFromStores;
|
||||
return !Reflect.apply(useStateFromStores, moduleValue2, [[IAPStoreAndroid], _fun59283]);
|
||||
}
|
||||
|
||||
function manageSubscription() { // fn#59284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:4572, offset: 0x016e49fa, size: 85 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var Promise;
|
||||
var reject;
|
||||
var error;
|
||||
if (isStorekit2Available_59258()) {
|
||||
r0 = RNIapIosSk2.showManageSubscriptions();
|
||||
} else {
|
||||
Promise = global.Promise;
|
||||
reject = Promise.reject;
|
||||
error = new global.Error('StoreKit 2 is not available');
|
||||
error = Reflect.apply(reject, Promise, [error]);
|
||||
r0 = error;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
async function _fun59253({fullRestore}) { // fn#59253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:890, offset: 0x016e3fd1, size: 345 bytes, params: 2, frame: 22
|
||||
var environment;
|
||||
var binding;
|
||||
var value4;
|
||||
var binding2;
|
||||
var map;
|
||||
var value7;
|
||||
var filter;
|
||||
var binding3;
|
||||
var value11;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var env0_0;
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
if (env2_14()) {
|
||||
binding = env2_10;
|
||||
if (fullRestore) {
|
||||
await binding.sync();
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value11 = binding(binding3[13]);
|
||||
map = value11.map;
|
||||
binding = env2_0;
|
||||
value = binding(binding3[15]);
|
||||
await value.getAvailablePurchases({onlyIncludeActiveItems: false});
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
value = Reflect.apply(map, value11, [value, _fun59254]);
|
||||
return value;
|
||||
}
|
||||
await binding.getPendingTransactions();
|
||||
value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
binding = env2_1;
|
||||
binding2 = env2_2;
|
||||
env0_0 = binding(binding2[13]).map(value4, function(a0) {
|
||||
return a0.id;
|
||||
});
|
||||
value7 = binding(binding2[13]);
|
||||
filter = value7.filter;
|
||||
binding = env2_0;
|
||||
value = binding(binding2[15]);
|
||||
await value.getAvailablePurchases({onlyIncludeActiveItems: false});
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
value = Reflect.apply(filter, value7, [value, _fun59256]);
|
||||
value = value.map(_fun59257);
|
||||
return value;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
function* _fun59262() { // fn#59262, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:1922, offset: 0x016e42b5, size: 143 bytes, params: 1, frame: 15
|
||||
var r3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var getStorefront;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
if (!env2_14()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding2[15];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
getStorefront = value3.getStorefront;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value4 = Reflect.apply(getStorefront, value3, []);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
yield value4;
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
if (value6) {
|
||||
return value5;
|
||||
}
|
||||
try {
|
||||
value7 = value5 != null;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
if (value7) {
|
||||
try {
|
||||
binding = env2_15;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value8 = binding(value5);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[16]);
|
||||
value.captureBillingException(error);
|
||||
return null;
|
||||
}
|
||||
r3 = value8;
|
||||
} else {
|
||||
r3 = value5;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
|
||||
function _fun59264(a0) { // fn#59264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2346, offset: 0x016e4429, size: 168 bytes, params: 2, frame: 19
|
||||
var r1;
|
||||
var r2;
|
||||
var r5;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
let value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r6 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r5 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r5 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r5 = item;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
const filter = value.filter;
|
||||
const items2 = [];
|
||||
arraySpread(items2, r5, arraySpread(items2, r6, 0, undefined), undefined);
|
||||
return Reflect.apply(filter, value, [items2, _fun59265]);
|
||||
}
|
||||
|
||||
function _fun59267() { // fn#59267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2549, offset: 0x016e4549, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun59269);
|
||||
return _fun59270;
|
||||
}
|
||||
|
||||
function _fun59272(a0, a1) { // fn#59272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:3042, offset: 0x016e46ba, size: 43 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
InAppUtils.canMakePayments(_fun59273);
|
||||
}
|
||||
|
||||
function _fun59277() { // fn#59277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:3596, offset: 0x016e4765, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun59279);
|
||||
return _fun59280;
|
||||
}
|
||||
|
||||
function _fun59282() { // fn#59282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:4270, offset: 0x016e496a, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const verified = UserStore.getCurrentUser()?.verified;
|
||||
return verified != null && verified;
|
||||
}
|
||||
|
||||
function _fun59283() { // fn#59283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:4396, offset: 0x016e4997, size: 99 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const isReady2 = IAPStoreAndroid.isReady();
|
||||
let r0 = isReady2 ? IAPStoreAndroid.isBusy() && (env0_0 == null || !IAPStoreAndroid.isPurchasingProduct(env0_0)) : !isReady2;
|
||||
r0 = !r0 ? !env0_1 : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun59254(a0) { // fn#59254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:1061, offset: 0x016e412a, size: 31 bytes, params: 2, frame: 12
|
||||
const object2 = {originalPurchase: a0};
|
||||
object2.purchaseResponse = env3_11(a0);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun59256(a0) { // fn#59256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:1292, offset: 0x016e4149, size: 58 bytes, params: 2, frame: 14
|
||||
return a0.transactionId != null && env0_0.includes(global.parseInt(a0.transactionId));
|
||||
}
|
||||
|
||||
function _fun59265(a0) { // fn#59265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2406, offset: 0x016e44d1, size: 56 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
let binding = env0_0;
|
||||
const value2 = binding.has(a0.identifier);
|
||||
if (value2) {
|
||||
r0 = !value2;
|
||||
} else {
|
||||
binding = env0_0;
|
||||
binding.add(a0.identifier);
|
||||
r0 = true;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun59269(a0, a1) { // fn#59269, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:2569, offset: 0x016e4572, size: 291 bytes, params: 3, frame: 20
|
||||
var binding;
|
||||
var getCurrentUser;
|
||||
var value3;
|
||||
var Error;
|
||||
var prototype;
|
||||
var error;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var clearTransactionIOS;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var binding3;
|
||||
var value8;
|
||||
var requestPurchase;
|
||||
var object2;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var Object;
|
||||
var value13;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
reduciblePort47: while (true) {
|
||||
exceptionLanding46: while (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_5;
|
||||
getCurrentUser = binding.getCurrentUser;
|
||||
value3 = Reflect.apply(getCurrentUser, binding, []);
|
||||
if (value3 == null) {
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('purchaseProduct: no valid user');
|
||||
value = error instanceof Object ? error : value;
|
||||
a1(value);
|
||||
break reduciblePort47;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
property = binding2[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
clearTransactionIOS = value4.clearTransactionIOS;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(clearTransactionIOS, value4, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
property = binding3[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
requestPurchase = value8.requestPurchase;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
value9 = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
object2.sku = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
object2.appAccountToken = dependencyMap;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
object2.withOffer = importDefault;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value10 = Reflect.apply(requestPurchase, value8, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
yield value10;
|
||||
try {
|
||||
value11 = undefined;
|
||||
value12 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
if (value12) {
|
||||
return value11;
|
||||
}
|
||||
try {
|
||||
Object = global.Object;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value13 = value11 instanceof Object;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
if (value13) {
|
||||
try {
|
||||
binding = env3_11;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value = binding(value11);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
a0(value);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reduciblePort47;
|
||||
}
|
||||
try {
|
||||
Error = global.Error;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
prototype = Error.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
error = new Error('Unable to select a platform, no request was made');
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value = error instanceof Object ? error : value;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
throw value;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
}
|
||||
a1(error);
|
||||
break reduciblePort47;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun59273(a0) { // fn#59273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:3069, offset: 0x016e46e5, size: 64 bytes, params: 2, frame: 12
|
||||
if (!a0) {
|
||||
require(new global.Error());
|
||||
}
|
||||
env0_0(a0);
|
||||
}
|
||||
|
||||
function* _fun59279(a0, a1) { // fn#59279, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7533:3616, offset: 0x016e478e, size: 363 bytes, params: 3, frame: 20
|
||||
var r7;
|
||||
var binding;
|
||||
var getCurrentUser;
|
||||
var value3;
|
||||
var Error;
|
||||
var prototype;
|
||||
var error;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var requestPurchase;
|
||||
var object2;
|
||||
var value5;
|
||||
var id;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var Object;
|
||||
var value10;
|
||||
var value12;
|
||||
var value13;
|
||||
var Array;
|
||||
var isArray;
|
||||
var isArray2;
|
||||
var captureBillingException;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
reduciblePort55: while (true) {
|
||||
exceptionLanding54: while (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_5;
|
||||
getCurrentUser = binding.getCurrentUser;
|
||||
value3 = Reflect.apply(getCurrentUser, binding, []);
|
||||
if (value3 == null) {
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('purchaseProduct: no valid user');
|
||||
value = error instanceof Object ? error : value;
|
||||
a1(value);
|
||||
break reduciblePort55;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
property = binding2[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
requestPurchase = value4.requestPurchase;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
value5 = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2.requestJSONString = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2.sku = importDefault;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
binding = env3_12;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
id = value3.id;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
value6 = binding(id);
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2.appAccountToken = value6;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2.andDangerouslyFinishTransactionAutomaticallyIOS = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2.useACOM = dependencyMap;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(requestPurchase, value4, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
yield value7;
|
||||
try {
|
||||
value8 = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
if (value9) {
|
||||
return value8;
|
||||
}
|
||||
try {
|
||||
Object = global.Object;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
value10 = value8 instanceof Object;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
if (value10) {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
binding = env3_11;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
value13 = binding(value8);
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
object2.purchaseResponse = value13;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
Array = global.Array;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
isArray = Array.isArray;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
isArray2 = Reflect.apply(isArray, Array, [value8]);
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
if (isArray2) {
|
||||
try {
|
||||
property = value8[0];
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
r7 = property;
|
||||
} else {
|
||||
r7 = value8;
|
||||
}
|
||||
try {
|
||||
object2.originalPurchase = r7;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
a0(object2);
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
break reduciblePort55;
|
||||
}
|
||||
try {
|
||||
Error = global.Error;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
prototype = Error.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
error = new Error('Unable to select a platform, no request was made');
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
value12 = error instanceof Object ? error : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
try {
|
||||
throw value12;
|
||||
} catch (error) {
|
||||
break exceptionLanding54;
|
||||
}
|
||||
}
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[16]);
|
||||
captureBillingException = value.captureBillingException;
|
||||
Reflect.apply(captureBillingException, value, [error]);
|
||||
a1(error);
|
||||
break reduciblePort55;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 1477; source: utils/native/ImageUtils.tsx; dependencies: [57, 27, 661, 1478, 1468, 22, 1426, 1423, 2] */
|
||||
function _fun16931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1604:6, offset: 0x00e5f2fc, size: 275 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const clampDimension = function(a0) {
|
||||
var value = a0;
|
||||
return value > MEDIA_PROXY_MAX_TARGET_RESOLUTION ? MEDIA_PROXY_MAX_TARGET_RESOLUTION : value;
|
||||
};
|
||||
const closure = getSrcWithWidthAndHeight_16933;
|
||||
const closure2 = getMobileOptimizedSrc;
|
||||
const closure3 = function(a0) {
|
||||
var value2 = require(dependencyMap[6]).ensureAvatarSource(require(dependencyMap[7]).makeSource(a0));
|
||||
var ImageManager = NativeModules.ImageManager;
|
||||
return ImageManager.getDominantColors(value2);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.NativeModules;
|
||||
const env0_5 = value.PixelRatio;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).MEDIA_PROXY_MAX_TARGET_RESOLUTION;
|
||||
const regexp = RegExp('\\.(gif)$', 'i');
|
||||
const regexp2 = RegExp('\\.(avif)$', 'i');
|
||||
object2 = {getMobileOptimizedSrc: closure2, getPaletteForAvatarMobile: closure3};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ImageUtils.tsx');
|
||||
exports.default = object2;
|
||||
exports.GIF_RE = regexp;
|
||||
exports.AVIF_RE = regexp2;
|
||||
exports.getSrcWithWidthAndHeight = closure;
|
||||
exports.getMobileOptimizedSrc = closure2;
|
||||
exports.getPaletteForAvatarMobile = closure3;
|
||||
}
|
||||
|
||||
function getSrcWithWidthAndHeight_16933({src, sourceWidth, sourceHeight, targetWidth, targetHeight, format, animated}) { // fn#16933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1604:264, offset: 0x00e5f423, size: 339 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
format = format === undefined ? null : format;
|
||||
animated = !(animated === undefined) && animated;
|
||||
let value = src.split('?');
|
||||
value = env0_3(value, 2);
|
||||
let property = value[0];
|
||||
const property2 = value[1];
|
||||
const items2 = [property];
|
||||
value = importDefault(1468) /* metro dependency 1468 */;
|
||||
items2[1] = value.parse(property2);
|
||||
value = env0_3(items2, 2);
|
||||
property = value[0];
|
||||
const property3 = value[1];
|
||||
const binding = env0_8;
|
||||
if (binding.test(property)) {
|
||||
property3.format = 'webp';
|
||||
} else if (format != null) {
|
||||
property3.format = format;
|
||||
}
|
||||
const clampDimensionBinding = clampDimension;
|
||||
value = clampDimensionBinding(targetWidth);
|
||||
const value3 = clampDimensionBinding(targetHeight);
|
||||
if (!(value === sourceWidth && value3 === sourceHeight)) {
|
||||
property3.width = value | 0;
|
||||
property3.height = value3 | 0;
|
||||
}
|
||||
if (animated) {
|
||||
property3.animated = true;
|
||||
}
|
||||
if (Reflect.apply((importDefault(22) /* metro dependency 22 */).isEmpty, value, [property3])) {
|
||||
r0 = property;
|
||||
} else {
|
||||
value = importDefault(1468) /* metro dependency 1468 */;
|
||||
value = property + ('?' + value.stringify(property3));
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getMobileOptimizedSrc(a0, a1, a2) { // fn#16934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1604:727, offset: 0x00e5f576, size: 268 bytes, params: 4, frame: 22
|
||||
var r4;
|
||||
var value15;
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const value3 = a3;
|
||||
const r3 = value3 !== undefined ? value3 : null;
|
||||
const value6 = env0_7.test(a0);
|
||||
const value7 = 1;
|
||||
let r5 = value6 ? 0.3 : value7;
|
||||
const windowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions();
|
||||
let getPixelSizeForLayoutSize = PixelRatio.getPixelSizeForLayoutSize;
|
||||
const value10 = Reflect.apply(getPixelSizeForLayoutSize, PixelRatio, [windowDimensions.width]) * r5;
|
||||
getPixelSizeForLayoutSize = PixelRatio.getPixelSizeForLayoutSize;
|
||||
r5 = value > value2 ? value10 / value : Reflect.apply(getPixelSizeForLayoutSize, PixelRatio, [windowDimensions.height / 2]) * r5 / value2;
|
||||
let Math = global.Math;
|
||||
const value14 = Math.min(r5, value7);
|
||||
if (value14 < value7) {
|
||||
Math = global.Math;
|
||||
value15 = Math.ceil(value * value14);
|
||||
Math = global.Math;
|
||||
r4 = Math.ceil(value2 * value14);
|
||||
r5 = value15;
|
||||
} else {
|
||||
r4 = value2;
|
||||
r5 = value;
|
||||
}
|
||||
return getSrcWithWidthAndHeight_16933({src: a0, sourceWidth: value, sourceHeight: value2, targetWidth: r5,
|
||||
targetHeight: r4, format: r3});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
/* Metro module 9154; source: utils/native/InstantInviteUtils.tsx; dependencies: [1379, 1935, 3784, 661, 1244, 9050, 566, 2] */
|
||||
function _fun71749(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9339:6, offset: 0x01d2c5c1, size: 809 bytes, params: 8, frame: 37
|
||||
let env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
var value = a1;
|
||||
var value2 = a2;
|
||||
var env0_0 = value;
|
||||
var env0_1 = value2 !== undefined ? value2 : value;
|
||||
var object = {value: a0};
|
||||
Object.defineProperty(object, 'label', {get: _fun71751, set: undefined, enumerable: true, configurable: true});
|
||||
Object.defineProperty(object, 'descriptiveLabel', {get: _fun71752, set: undefined, enumerable: true,
|
||||
configurable: true});
|
||||
return object;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
let value = require(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const env0_3 = value.GUILD_SELECTABLE_CHANNELS_KEY;
|
||||
const env0_4 = value.GUILD_VOCAL_CHANNELS_KEY;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
value = closure(0, function() {
|
||||
return require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.PqEzn8);
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t['5u4A6V']);
|
||||
});
|
||||
let value2 = closure(604800, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t['k2UNz+'], {days: 7});
|
||||
});
|
||||
const value3 = closure(1209600, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t['k2UNz+'], {days: 14});
|
||||
});
|
||||
const value4 = closure(2592000, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t['k2UNz+'], {days: 30});
|
||||
});
|
||||
const value5 = closure(5184000, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t['k2UNz+'], {days: 60});
|
||||
});
|
||||
const value6 = closure(86400, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t['k2UNz+'], {days: 1});
|
||||
});
|
||||
const value7 = closure(43200, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.xCjYxK, {hours: 12});
|
||||
});
|
||||
const value8 = closure(21600, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.xCjYxK, {hours: 6});
|
||||
});
|
||||
const value9 = closure(28800, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.xCjYxK, {hours: 8});
|
||||
});
|
||||
const value10 = closure(3600, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.xCjYxK, {hours: 1});
|
||||
});
|
||||
const value11 = closure(1800, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.opVZ9q, {mins: 30});
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.iXLF9W, {minutes: 30});
|
||||
});
|
||||
items2 = [value, value5, value4, value3, value2, value6, value7, value8, value10, value11];
|
||||
const value12 = closure(0, function() {
|
||||
return '∞';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 0});
|
||||
});
|
||||
const value13 = closure(1, function() {
|
||||
return '1';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 1});
|
||||
});
|
||||
const value14 = closure(5, function() {
|
||||
return '5';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 5});
|
||||
});
|
||||
const value15 = closure(10, function() {
|
||||
return '10';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 10});
|
||||
});
|
||||
const value16 = closure(25, function() {
|
||||
return '25';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 25});
|
||||
});
|
||||
const value17 = closure(50, function() {
|
||||
return '50';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 50});
|
||||
});
|
||||
const value18 = closure(100, function() {
|
||||
return '100';
|
||||
}, function() {
|
||||
return require(dependencyMap[4]).intl.formatToPlainString(require(dependencyMap[4]).t.gPl14C, {maxUses: 100});
|
||||
});
|
||||
const items3 = [value12, value13, value14, value15, value16, value17, value18];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/InstantInviteUtils.tsx');
|
||||
exports.INVITE_OPTIONS_FOREVER = value;
|
||||
exports.INVITE_OPTIONS_7_DAYS = value2;
|
||||
exports.INVITE_OPTIONS_14_DAYS = value3;
|
||||
exports.INVITE_OPTIONS_30_DAYS = value4;
|
||||
exports.INVITE_OPTIONS_60_DAYS = value5;
|
||||
exports.INVITE_OPTIONS_1_DAY = value6;
|
||||
exports.INVITE_OPTIONS_12_HOURS = value7;
|
||||
exports.INVITE_OPTIONS_6_HOURS = value8;
|
||||
exports.INVITE_OPTIONS_8_HOURS = value9;
|
||||
exports.INVITE_OPTIONS_1_HOUR = value10;
|
||||
exports.INVITE_OPTIONS_30_MINUTES = value11;
|
||||
exports.MAX_AGE_OPTIONS = items2;
|
||||
exports.INVITE_OPTIONS_UNLIMITED = value12;
|
||||
exports.INVITE_OPTIONS_ONCE = value13;
|
||||
exports.INVITE_OPTIONS_5_TIMES = value14;
|
||||
exports.INVITE_OPTIONS_10_TIMES = value15;
|
||||
exports.INVITE_OPTIONS_25_TIMES = value16;
|
||||
exports.INVITE_OPTIONS_50_TIMES = value17;
|
||||
exports.INVITE_OPTIONS_100_TIMES = value18;
|
||||
exports.MAX_USES_OPTIONS = items3;
|
||||
exports.getInviteChannelId = getInviteChannelId;
|
||||
exports.shouldRenderInvite = shouldRenderInvite;
|
||||
exports.useShouldShowInviteInActionBar = useShouldShowInviteInActionBar;
|
||||
}
|
||||
|
||||
function makeOption(a0, a1) { // fn#71750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9339:221, offset: 0x01d2c8ea, size: 70 bytes, params: 3, frame: 5
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const env0_1 = value2 !== undefined ? value2 : value;
|
||||
const object2 = {value: a0};
|
||||
Object.defineProperty(object2, 'label', {get: function() {
|
||||
return require();
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
Object.defineProperty(object2, 'descriptiveLabel', {get: _fun71752, set: undefined, enumerable: true,
|
||||
configurable: true});
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getInviteChannelId(a0, a1) { // fn#71780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9339:2738, offset: 0x01d2cf07, size: 195 bytes, params: 3, frame: 19
|
||||
var r1;
|
||||
var canWithPartialContext2;
|
||||
var value5;
|
||||
var channel;
|
||||
const value = a0;
|
||||
const value2 = null;
|
||||
if (value2 == a1) {
|
||||
return value2;
|
||||
}
|
||||
if (value2 != value) {
|
||||
canWithPartialContext2 = PermissionStore.canWithPartialContext(Permissions.CREATE_INSTANT_INVITE,
|
||||
{channelId: value});
|
||||
value5 = a1[GUILD_SELECTABLE_CHANNELS_KEY].concat(a1[GUILD_VOCAL_CHANNELS_KEY]).find(function({channel}) {
|
||||
return PermissionStore.can(Permissions.CREATE_INSTANT_INVITE, channel);
|
||||
});
|
||||
if (canWithPartialContext2) {
|
||||
channel = ChannelStore.getChannel(value);
|
||||
r1 = value2 == channel ? value : channel.isThread() ? value2 == channel.parent_id ? value : channel.parent_id : value;
|
||||
} else {
|
||||
r1 = value2 != value5 ? value5.channel.id : value2;
|
||||
}
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function shouldRenderInvite(a0, a1) { // fn#71782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9339:3109, offset: 0x01d2cff1, size: 163 bytes, params: 3, frame: 19
|
||||
var r1;
|
||||
let value = undefined;
|
||||
const value2 = (a1 == null ? value : a1.vanityURLCode) == null;
|
||||
if (value2) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
value = require(9050) /* metro dependency 9050: canViewInviteModal */;
|
||||
value = !value.canViewInviteModal(PermissionStore, a1);
|
||||
r1 = value;
|
||||
}
|
||||
return r1 ? a0 != null && (a0[GUILD_SELECTABLE_CHANNELS_KEY].find(function({channel}) {
|
||||
return PermissionStore.can(Permissions.CREATE_INSTANT_INVITE, channel);
|
||||
}) != null || a0[GUILD_VOCAL_CHANNELS_KEY].find(_fun71784) != null) : !r1;
|
||||
}
|
||||
|
||||
function useShouldShowInviteInActionBar(a0) { // fn#71785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9339:3405, offset: 0x01d2d094, size: 226 bytes, params: 2, frame: 20
|
||||
var r1;
|
||||
var moduleValue2;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildChannelStore],
|
||||
_fun71786, [a0.id]);
|
||||
const value4 = (a0 == null ? value2 : a0.vanityURLCode) == null;
|
||||
if (value4) {
|
||||
r1 = value4;
|
||||
} else {
|
||||
moduleValue2 = require(9050) /* metro dependency 9050: canViewInviteModal */;
|
||||
r1 = !moduleValue2.canViewInviteModal(PermissionStore, a0);
|
||||
}
|
||||
return r1 ? value3 == null || (value3[GUILD_SELECTABLE_CHANNELS_KEY].find(function({channel}) {
|
||||
return PermissionStore.can(Permissions.CREATE_INSTANT_INVITE, channel);
|
||||
}) != null || value3[GUILD_VOCAL_CHANNELS_KEY].find(_fun71788) != null) : !r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 1848; source: utils/native/KeyboardManagerUtils.tsx; dependencies: [27, 477, 1849, 2] */
|
||||
function _fun20000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1975:6, offset: 0x00ebc0a1, size: 144 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/KeyboardManagerUtils.tsx');
|
||||
exports.dismissGlobalKeyboard = dismissGlobalKeyboard;
|
||||
exports.clearCurrentFocusAndDismissKeyboard = clearCurrentFocusAndDismissKeyboard;
|
||||
exports.onKeyboardChanged = onKeyboardChanged;
|
||||
}
|
||||
|
||||
function dismissGlobalKeyboard() { // fn#20001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1975:215, offset: 0x00ebc131, size: 115 bytes, params: 1, frame: 13
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if ((importDefault(1849) /* metro dependency 1849: NativeKeyboardModule */) != null) {
|
||||
(importDefault(1849) /* metro dependency 1849: NativeKeyboardModule */).dismissGlobalKeyboard();
|
||||
}
|
||||
} else {
|
||||
NativeModules.KeyboardManager.dismissGlobalKeyboard();
|
||||
}
|
||||
}
|
||||
|
||||
function clearCurrentFocusAndDismissKeyboard() { // fn#20002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1975:396, offset: 0x00ebc1a4, size: 93 bytes, params: 1, frame: 13
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if ((importDefault(1849) /* metro dependency 1849: NativeKeyboardModule */) != null) {
|
||||
(importDefault(1849) /* metro dependency 1849: NativeKeyboardModule */).clearCurrentFocusAndDismissKeyboard();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onKeyboardChanged(a0) { // fn#20003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1975:548, offset: 0x00ebc201, size: 150 bytes, params: 2, frame: 13
|
||||
var KeyboardManager;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if ((importDefault(1849) /* metro dependency 1849: NativeKeyboardModule */) != null) {
|
||||
(importDefault(1849) /* metro dependency 1849: NativeKeyboardModule */).onKeyboardChanged(a0);
|
||||
}
|
||||
} else {
|
||||
KeyboardManager = NativeModules.KeyboardManager;
|
||||
if (KeyboardManager.onKeyboardChanged != null) {
|
||||
KeyboardManager = NativeModules.KeyboardManager;
|
||||
KeyboardManager.onKeyboardChanged(global.open);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Metro module 11029; source: utils/native/KeyboardUtils.tsx; dependencies: [27, 2] */
|
||||
function _fun84449(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11215:6, offset: 0x01f4ab07, size: 109 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(27) /* metro dependency 27 */).Keyboard;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/KeyboardUtils.tsx');
|
||||
exports.dismissKeyboard = dismissKeyboard_84450;
|
||||
}
|
||||
|
||||
function dismissKeyboard_84450() { // fn#84450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11215:197, offset: 0x01f4ab74, size: 33 bytes, params: 1, frame: 10
|
||||
const value = a0;
|
||||
if (!(!(value !== undefined) || value)) {
|
||||
Keyboard.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,321 @@
|
||||
/* Metro module 11523; source: utils/native/MessagesUtils.tsx; dependencies: [661, 6934, 4101, 4105, 4803, 2] */
|
||||
function _fun88206(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:6, offset: 0x01fd9d9c, size: 192 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
let 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.InviteStates;
|
||||
const env0_3 = constantsModule.MessageEmbedTypes;
|
||||
const env0_4 = (require(6934) /* metro dependency 6934: GuildTemplatesConstants */).GuildTemplateStates;
|
||||
object2 = {messageAuthorActivitiesChanged: function(a0, a1, a2) {
|
||||
var r0;
|
||||
var property = a1.messageAuthorActivities;
|
||||
r0 = property !== a2.messageAuthorActivities && a0.activity != null;
|
||||
if (r0) {
|
||||
property = a1.messageAuthorActivities;
|
||||
property = property[a0.author.id];
|
||||
r0 = property !== a2.messageAuthorActivities[a0.author.id];
|
||||
}
|
||||
return r0;
|
||||
}, codedLinksChanged: codedLinksChanged, giftCodesChanged: function(a0, a1, a2) {
|
||||
var env0_0 = a1;
|
||||
var env0_1 = a2;
|
||||
return a0.giftCodes.length !== 0 && a0.giftCodes.some(_fun88211);
|
||||
}, mediaPostPreviewEmbedsChanged: function(a0, a1, a2) {
|
||||
var r0;
|
||||
var env0_0 = a1;
|
||||
var env0_1 = a2;
|
||||
var value = a0.embeds.filter(_fun88213);
|
||||
var value2 = value.length !== 0;
|
||||
if (value2) {
|
||||
value = value.some(_fun88214);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/MessagesUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function codedLinksChanged(a0, a1, a2) { // fn#88208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:439, offset: 0x01fd9eb7, size: 299 bytes, params: 4, frame: 16
|
||||
var r1;
|
||||
var r0;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const value = a0.codedLinks.length !== 0;
|
||||
if (value) {
|
||||
r1 = a1.invites !== a2.invites || a1.appDirectoryEmbedApplications !== a2.appDirectoryEmbedApplications;
|
||||
r1 = !r1 ? a1.invalidAppDirectoryEmbedApplicationIds !== a2.invalidAppDirectoryEmbedApplicationIds : r1;
|
||||
r1 = !r1 ? a1.invalidApplicationIds !== a2.invalidApplicationIds : r1;
|
||||
r1 = !r1 ? a1.appDirectoryEmbedApplicationFetchStates !== a2.appDirectoryEmbedApplicationFetchStates : r1;
|
||||
r1 = !r1 ? a1.guildTemplates !== a2.guildTemplates : r1;
|
||||
r1 = !r1 ? a1.buildOverrides !== a2.buildOverrides : r1;
|
||||
r1 = !r1 ? a1.activityParticipants !== a2.activityParticipants : r1;
|
||||
r1 = !r1 ? a1.quests !== a2.quests : r1;
|
||||
r1 = !r1 ? a1.isFetchingCurrentQuests !== a2.isFetchingCurrentQuests : r1;
|
||||
r1 = !r1 ? a1.applicationAssetFetchingIds !== a2.applicationAssetFetchingIds : r1;
|
||||
r1 = !r1 ? a1.experimentEmbeds !== a2.experimentEmbeds : r1;
|
||||
r1 = r1 && a0.codedLinks.some(_fun88209);
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function giftCodesChanged(a0, a1, a2) { // fn#88210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:4142, offset: 0x01fda71f, size: 65 bytes, params: 4, frame: 12
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
return a0.giftCodes.length !== 0 && a0.giftCodes.some(_fun88211);
|
||||
}
|
||||
|
||||
function mediaPostPreviewEmbedsChanged({embeds}, a1, a2) { // fn#88212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:4506, offset: 0x01fda7e2, size: 76 bytes, params: 4, frame: 12
|
||||
var r0;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
let value = embeds.filter(function({type}) {
|
||||
return type === MessageEmbedTypes.POST_PREVIEW;
|
||||
});
|
||||
const value2 = value.length !== 0;
|
||||
if (value2) {
|
||||
value = value.some(_fun88214);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun88209({type, code}) { // fn#88209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:1143, offset: 0x01fd9fe2, size: 1853 bytes, params: 2, frame: 19
|
||||
var r3;
|
||||
var r5;
|
||||
var r8;
|
||||
var r1;
|
||||
var invites;
|
||||
var value6;
|
||||
var value7;
|
||||
var appDirectoryEmbedApplications;
|
||||
var property;
|
||||
var property2;
|
||||
var invalidAppDirectoryEmbedApplicationIds;
|
||||
var value14;
|
||||
var appDirectoryEmbedApplicationFetchStates;
|
||||
var property3;
|
||||
var guildTemplates;
|
||||
var value17;
|
||||
var value18;
|
||||
var value21;
|
||||
var value22;
|
||||
var value23;
|
||||
var value25;
|
||||
var experimentEmbeds;
|
||||
var legacyExperiments;
|
||||
var value27;
|
||||
var legacyOverridesInfo;
|
||||
var apexExperiments;
|
||||
var apexOverridesInfo;
|
||||
var buildOverrides;
|
||||
let value = environment.__proto__;
|
||||
const CodedLinkType = (require(4101) /* metro dependency 4101: CodedLink */).CodedLinkType;
|
||||
const BUILD_OVERRIDE = CodedLinkType.BUILD_OVERRIDE;
|
||||
if (BUILD_OVERRIDE === type) {
|
||||
buildOverrides = require.buildOverrides;
|
||||
property = buildOverrides[code];
|
||||
buildOverrides = importDefault.buildOverrides;
|
||||
return property?.state !== buildOverrides[code]?.state;
|
||||
}
|
||||
const MANUAL_BUILD_OVERRIDE = CodedLinkType.MANUAL_BUILD_OVERRIDE;
|
||||
if (MANUAL_BUILD_OVERRIDE === type) {
|
||||
buildOverrides = require.buildOverrides;
|
||||
property = buildOverrides[code];
|
||||
buildOverrides = importDefault.buildOverrides;
|
||||
return property?.state !== buildOverrides[code]?.state;
|
||||
}
|
||||
const EXPERIMENT = CodedLinkType.EXPERIMENT;
|
||||
if (EXPERIMENT === type) {
|
||||
value = require(4105) /* metro dependency 4105: ExperimentEmbedUtils */;
|
||||
value = value.getExperimentFromEmbedURL(code);
|
||||
value25 = value != null;
|
||||
if (value25) {
|
||||
experimentEmbeds = require.experimentEmbeds;
|
||||
legacyExperiments = experimentEmbeds.legacyExperiments;
|
||||
r5 = legacyExperiments?.[value];
|
||||
experimentEmbeds = importDefault.experimentEmbeds;
|
||||
legacyExperiments = experimentEmbeds.legacyExperiments;
|
||||
r3 = legacyExperiments?.[value];
|
||||
value27 = r5 !== r3;
|
||||
if (value27) {
|
||||
r3 = value27;
|
||||
} else {
|
||||
experimentEmbeds = require.experimentEmbeds;
|
||||
legacyOverridesInfo = experimentEmbeds.legacyOverridesInfo;
|
||||
r8 = legacyOverridesInfo?.[value];
|
||||
experimentEmbeds = importDefault.experimentEmbeds;
|
||||
legacyOverridesInfo = experimentEmbeds.legacyOverridesInfo;
|
||||
r3 = r8 !== legacyOverridesInfo?.[value];
|
||||
}
|
||||
if (!r3) {
|
||||
experimentEmbeds = require.experimentEmbeds;
|
||||
apexExperiments = experimentEmbeds.apexExperiments;
|
||||
r8 = apexExperiments?.[value];
|
||||
experimentEmbeds = importDefault.experimentEmbeds;
|
||||
apexExperiments = experimentEmbeds.apexExperiments;
|
||||
r3 = r8 !== apexExperiments?.[value];
|
||||
}
|
||||
if (!r3) {
|
||||
experimentEmbeds = require.experimentEmbeds;
|
||||
apexOverridesInfo = experimentEmbeds.apexOverridesInfo;
|
||||
r5 = apexOverridesInfo?.[value];
|
||||
experimentEmbeds = importDefault.experimentEmbeds;
|
||||
apexOverridesInfo = experimentEmbeds.apexOverridesInfo;
|
||||
value = r5 !== apexOverridesInfo?.[value];
|
||||
r3 = value;
|
||||
}
|
||||
r1 = r3;
|
||||
} else {
|
||||
r1 = value25;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
const INVITE = CodedLinkType.INVITE;
|
||||
if (INVITE === type) {
|
||||
invites = require.invites;
|
||||
value21 = invites.get(code);
|
||||
invites = importDefault.invites;
|
||||
value22 = invites.get(code);
|
||||
value23 = require.applicationAssetFetchingIds !== importDefault.applicationAssetFetchingIds;
|
||||
r3 = value21?.state !== value22?.state && value22?.state !== InviteStates.RESOLVING;
|
||||
r3 = !r3 ? value23 : r3;
|
||||
return r3;
|
||||
}
|
||||
const TEMPLATE = CodedLinkType.TEMPLATE;
|
||||
if (TEMPLATE === type) {
|
||||
guildTemplates = require.guildTemplates;
|
||||
value17 = guildTemplates.get(code);
|
||||
guildTemplates = importDefault.guildTemplates;
|
||||
value18 = guildTemplates.get(code);
|
||||
return value17?.state !== value18?.state && value18?.state !== GuildTemplateStates.RESOLVING;
|
||||
}
|
||||
const EVENT = CodedLinkType.EVENT;
|
||||
if (EVENT === type) {
|
||||
return false;
|
||||
}
|
||||
const CHANNEL_LINK = CodedLinkType.CHANNEL_LINK;
|
||||
if (CHANNEL_LINK === type) {
|
||||
return false;
|
||||
}
|
||||
const APP_DIRECTORY_PROFILE = CodedLinkType.APP_DIRECTORY_PROFILE;
|
||||
if (APP_DIRECTORY_PROFILE === type) {
|
||||
appDirectoryEmbedApplications = require.appDirectoryEmbedApplications;
|
||||
property = appDirectoryEmbedApplications[code];
|
||||
appDirectoryEmbedApplications = importDefault.appDirectoryEmbedApplications;
|
||||
property2 = appDirectoryEmbedApplications[code];
|
||||
invalidAppDirectoryEmbedApplicationIds = require.invalidAppDirectoryEmbedApplicationIds;
|
||||
value = invalidAppDirectoryEmbedApplicationIds.has(code);
|
||||
invalidAppDirectoryEmbedApplicationIds = importDefault.invalidAppDirectoryEmbedApplicationIds;
|
||||
value14 = invalidAppDirectoryEmbedApplicationIds.has(code);
|
||||
appDirectoryEmbedApplicationFetchStates = require.appDirectoryEmbedApplicationFetchStates;
|
||||
property3 = appDirectoryEmbedApplicationFetchStates[code];
|
||||
appDirectoryEmbedApplicationFetchStates = importDefault.appDirectoryEmbedApplicationFetchStates;
|
||||
r3 = property !== property2 || value !== value14;
|
||||
r3 = !r3 ? property3 !== appDirectoryEmbedApplicationFetchStates[code] : r3;
|
||||
return r3;
|
||||
}
|
||||
const ACTIVITY_BOOKMARK = CodedLinkType.ACTIVITY_BOOKMARK;
|
||||
if (ACTIVITY_BOOKMARK === type) {
|
||||
r3 = require.activityParticipants !== importDefault.activityParticipants || require.invalidApplicationIds !== importDefault.invalidApplicationIds;
|
||||
r3 = !r3 ? require.applicationAssetFetchingIds !== importDefault.applicationAssetFetchingIds : r3;
|
||||
return r3;
|
||||
}
|
||||
const EMBEDDED_ACTIVITY_INVITE = CodedLinkType.EMBEDDED_ACTIVITY_INVITE;
|
||||
if (EMBEDDED_ACTIVITY_INVITE === type) {
|
||||
invites = require.invites;
|
||||
value6 = invites.get(code);
|
||||
invites = importDefault.invites;
|
||||
value7 = invites.get(code);
|
||||
r3 = require.activityParticipants !== importDefault.activityParticipants || require.invalidApplicationIds !== importDefault.invalidApplicationIds;
|
||||
r3 = !r3 ? require.applicationAssetFetchingIds !== importDefault.applicationAssetFetchingIds : r3;
|
||||
r3 = !r3 ? value6?.state !== value7?.state && value7?.state !== InviteStates.RESOLVING : r3;
|
||||
return r3;
|
||||
}
|
||||
const GUILD_PRODUCT = CodedLinkType.GUILD_PRODUCT;
|
||||
if (GUILD_PRODUCT === type) {
|
||||
return false;
|
||||
}
|
||||
const SERVER_SHOP = CodedLinkType.SERVER_SHOP;
|
||||
if (SERVER_SHOP === type) {
|
||||
return false;
|
||||
}
|
||||
const SOCIAL_LAYER_STOREFRONT = CodedLinkType.SOCIAL_LAYER_STOREFRONT;
|
||||
if (SOCIAL_LAYER_STOREFRONT === type) {
|
||||
return false;
|
||||
}
|
||||
const SOCIAL_LAYER_STOREFRONT_APP = CodedLinkType.SOCIAL_LAYER_STOREFRONT_APP;
|
||||
if (SOCIAL_LAYER_STOREFRONT_APP === type) {
|
||||
return false;
|
||||
}
|
||||
const QUESTS_EMBED = CodedLinkType.QUESTS_EMBED;
|
||||
if (QUESTS_EMBED === type) {
|
||||
return require.quests !== importDefault.quests || require.isFetchingCurrentQuests !== importDefault.isFetchingCurrentQuests;
|
||||
}
|
||||
const APP_DIRECTORY_STOREFRONT = CodedLinkType.APP_DIRECTORY_STOREFRONT;
|
||||
if (APP_DIRECTORY_STOREFRONT === type) {
|
||||
return false;
|
||||
}
|
||||
const APP_DIRECTORY_STOREFRONT_SKU = CodedLinkType.APP_DIRECTORY_STOREFRONT_SKU;
|
||||
if (APP_DIRECTORY_STOREFRONT_SKU === type) {
|
||||
return false;
|
||||
}
|
||||
const APP_OAUTH2_LINK = CodedLinkType.APP_OAUTH2_LINK;
|
||||
if (APP_OAUTH2_LINK === type) {
|
||||
return require.applicationAssetFetchingIds !== importDefault.applicationAssetFetchingIds || require.invalidApplicationIds !== importDefault.invalidApplicationIds;
|
||||
}
|
||||
const COLLECTIBLES_SHOP = CodedLinkType.COLLECTIBLES_SHOP;
|
||||
if (COLLECTIBLES_SHOP === type) {
|
||||
return false;
|
||||
}
|
||||
const Error = global.Error;
|
||||
throw Error('Unknown coded link type: ' + type);
|
||||
}
|
||||
|
||||
function _fun88211(a0) { // fn#88211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:4224, offset: 0x01fda760, size: 130 bytes, params: 2, frame: 16
|
||||
const value2 = require.resolvedGiftCodes.includes(a0);
|
||||
const value = importDefault.resolvedGiftCodes.includes(a0);
|
||||
const value3 = require.resolvingGiftCodes.includes(a0);
|
||||
const value4 = importDefault.resolvingGiftCodes.includes(a0);
|
||||
const value5 = require.acceptingGiftCodes.includes(a0);
|
||||
const value6 = importDefault.acceptingGiftCodes.includes(a0);
|
||||
if (value2 !== value) {
|
||||
return true;
|
||||
}
|
||||
if (value3 !== value4) {
|
||||
return true;
|
||||
}
|
||||
if (value5 !== value6) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun88214({url}) { // fn#88214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11709:4633, offset: 0x01fda849, size: 90 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
var mediaPostPreviewEmbeds;
|
||||
var property;
|
||||
let value = environment.__proto__;
|
||||
value = require(4803) /* metro dependency 4803: MediaPostEmbedUtils */;
|
||||
value = value.getMediaPostEmbedChannelId(url);
|
||||
const value2 = value != null;
|
||||
if (value2) {
|
||||
mediaPostPreviewEmbeds = require.mediaPostPreviewEmbeds;
|
||||
property = mediaPostPreviewEmbeds[value];
|
||||
mediaPostPreviewEmbeds = importDefault.mediaPostPreviewEmbeds;
|
||||
value = property !== mediaPostPreviewEmbeds[value];
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/* Metro module 1459; source: utils/native/NetworkUtils.tsx; dependencies: [661, 3, 1460, 2] */
|
||||
function _fun16713(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:6, offset: 0x00e58762, size: 377 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const convertNetInfo = function({type, details}) {
|
||||
var value2 = null;
|
||||
return {type: type,
|
||||
effectiveSpeed: type !== NetworkConnectionTypes.CELLULAR ? value2 : details.cellularGeneration,
|
||||
serviceProvider: type !== NetworkConnectionTypes.CELLULAR ? value2 : details.carrier};
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).NetworkConnectionTypes;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('NetworkUtils');
|
||||
value.enableNativeLogger(true);
|
||||
const env0_4 = [];
|
||||
const env0_5 = [];
|
||||
const env0_6 = [];
|
||||
value = importDefault(1460) /* metro dependency 1460 */;
|
||||
value = value.fetch();
|
||||
value.then(_fun16722);
|
||||
object2 = {addOnlineCallback: function(a0) {
|
||||
addCallback(true, a0);
|
||||
}, removeOnlineCallback: function(a0) {
|
||||
removeCallback(true, a0);
|
||||
}, addOfflineCallback: function(a0) {
|
||||
addCallback(false, a0);
|
||||
}, removeOfflineCallback: function(a0) {
|
||||
removeCallback(false, a0);
|
||||
}, addChangeCallback: addChangeCallback, removeChangeCallback: removeChangeCallback,
|
||||
getNetworkInformation: getNetworkInformation, isOnline: isOnline};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/NetworkUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function ensureChangeListenerCreated() { // fn#16714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:216, offset: 0x00e588db, size: 58 bytes, params: 1, frame: 12
|
||||
var defaultImport;
|
||||
if (env0_7 == null) {
|
||||
defaultImport = importDefault(1460) /* metro dependency 1460 */;
|
||||
env0_7 = defaultImport.addEventListener(notifyListeners);
|
||||
}
|
||||
}
|
||||
|
||||
function cleanupChangeListener() { // fn#16715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:310, offset: 0x00e58915, size: 88 bytes, params: 1, frame: 12
|
||||
if (env0_7 != null && env0_4.length === 0 && env0_5.length === 0 && env0_6.length === 0) {
|
||||
env0_7();
|
||||
}
|
||||
}
|
||||
|
||||
function notifyListeners(a0) { // fn#16717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:576, offset: 0x00e589be, size: 162 bytes, params: 2, frame: 25
|
||||
const isConnected = a0.isConnected;
|
||||
const value2 = convertNetInfo(a0);
|
||||
const r5 = isConnected ? env0_4 : env0_5;
|
||||
env0_8 = isConnected != null && isConnected;
|
||||
const binding = env0_3;
|
||||
binding.log('Network status changed: isConnected:' + isConnected + ' type:' + a0.type + ' speed:' + value2.cellularGeneration);
|
||||
r5.forEach(_fun16718);
|
||||
env0_6.forEach(_fun16719);
|
||||
}
|
||||
|
||||
function addCallback(a0, a1) { // fn#16720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:813, offset: 0x00e58a98, size: 44 bytes, params: 3, frame: 12
|
||||
(a0 ? env0_4 : env0_5).push(a1);
|
||||
ensureChangeListenerCreated();
|
||||
}
|
||||
|
||||
function removeCallback(a0, a1) { // fn#16721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:885, offset: 0x00e58ac4, size: 75 bytes, params: 3, frame: 14
|
||||
const r2 = a0 ? env0_4 : env0_5;
|
||||
const value2 = r2.indexOf(a1);
|
||||
if (value2 !== -1) {
|
||||
r2.splice(value2, 1);
|
||||
cleanupChangeListener();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun16722({isConnected}) { // fn#16722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:1011, offset: 0x00e58b0f, size: 32 bytes, params: 2, frame: 3
|
||||
const r1 = isConnected != null && isConnected;
|
||||
}
|
||||
|
||||
function addChangeCallback(a0) { // fn#16727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:1228, offset: 0x00e58b87, size: 32 bytes, params: 2, frame: 12
|
||||
env0_6.push(a0);
|
||||
ensureChangeListenerCreated();
|
||||
}
|
||||
|
||||
function removeChangeCallback(a0) { // fn#16728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:1325, offset: 0x00e58ba7, size: 64 bytes, params: 2, frame: 14
|
||||
const value2 = env0_6.indexOf(a0);
|
||||
if (value2 !== -1) {
|
||||
env0_6.splice(value2, 1);
|
||||
cleanupChangeListener();
|
||||
}
|
||||
}
|
||||
|
||||
function getNetworkInformation() { // fn#16729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:1477, offset: 0x00e58be7, size: 54 bytes, params: 1, frame: 11
|
||||
let value = importDefault(1460) /* metro dependency 1460 */;
|
||||
value = value.fetch();
|
||||
return value.then(function(a0) {
|
||||
return convertNetInfo(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun16718(a0) { // fn#16718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:771, offset: 0x00e58a60, size: 37 bytes, params: 2, frame: 13
|
||||
return a0(isConnected != null && isConnected, env0_1);
|
||||
}
|
||||
|
||||
function _fun16719(a0) { // fn#16719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1586:803, offset: 0x00e58a85, size: 19 bytes, params: 2, frame: 11
|
||||
return a0(env0_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/* Metro module 11881; source: utils/native/NotificationUtils.tsx; dependencies: [5, 27, 11872, 661, 11875, 683, 10741, 10756, 2] */
|
||||
function _fun91150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:6, offset: 0x02054069, size: 234 bytes, params: 8, frame: 20
|
||||
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 env0_4 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const env0_5 = (require(11872) /* metro dependency 11872: PushNotificationPermissionStore */).PermissionStateType;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
object2 = {hasPermission: hasPermission_91151, requestPermission: requestPermission,
|
||||
showNotification: showNotification_91156, shouldRequestNotification: true,
|
||||
playNotificationSound: playNotificationSound};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/NotificationUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function hasPermission_91151() { // fn#91151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:206, offset: 0x02054153, size: 47 bytes, params: 1, frame: 11
|
||||
return (importDefault(10741) /* metro dependency 10741: PushNotification */).requestPermissions(function({alert,
|
||||
badge, sound}) {
|
||||
var r0 = alert || badge;
|
||||
r0 = !r0 ? sound : r0;
|
||||
return r0;
|
||||
});
|
||||
}
|
||||
|
||||
function requestPermission(a0) { // fn#91153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:324, offset: 0x020541a5, size: 143 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const pushNotificationActionCreatorsModule = require(11875) /* metro dependency 11875: PushNotificationActionCreators */;
|
||||
const setPushPermissionState = pushNotificationActionCreatorsModule.setPushPermissionState;
|
||||
const REQUESTED = PermissionStateType.REQUESTED;
|
||||
Reflect.apply(setPushPermissionState, pushNotificationActionCreatorsModule, [REQUESTED]);
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PERMISSIONS_REQUESTED = AnalyticEvents.PERMISSIONS_REQUESTED;
|
||||
Reflect.apply(track, defaultImport, [PERMISSIONS_REQUESTED, {type: 'notification'}]);
|
||||
let value = importDefault(10741) /* metro dependency 10741: PushNotification */;
|
||||
value = value.requestPermissions();
|
||||
value.then(_fun91154);
|
||||
}
|
||||
|
||||
function showNotification_91156() { // fn#91156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:804, offset: 0x02054312, size: 29 bytes, params: 1, frame: 11
|
||||
return env0_3(_fun91158)();
|
||||
}
|
||||
|
||||
function playNotificationSound(a0) { // fn#91159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:880, offset: 0x0205433a, size: 61 bytes, params: 2, frame: 17
|
||||
const value = a1;
|
||||
(require(10756) /* metro dependency 10756: SoundUtils */).playSound(a0, value !== undefined ? value : 1, undefined,
|
||||
a2);
|
||||
}
|
||||
|
||||
function _fun91154({alert, sound, badge}) { // fn#91154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:494, offset: 0x02054234, size: 173 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
let r2 = alert || sound;
|
||||
r2 = !r2 ? badge : r2;
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PERMISSIONS_ACKED = AnalyticEvents.PERMISSIONS_ACKED;
|
||||
Reflect.apply(track, defaultImport, [PERMISSIONS_ACKED, {type: 'notification', action: r2 ? 'accepted' : 'denied'}]);
|
||||
const NativePermissionManager = NativeModules.NativePermissionManager;
|
||||
NativePermissionManager.getNotificationAuthorizationStatus().then(_fun91155);
|
||||
if (r2 != null) {
|
||||
if (env0_0 != null) {
|
||||
env0_0(r2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91155(a0) { // fn#91155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12067:693, offset: 0x020542e1, size: 49 bytes, params: 2, frame: 12
|
||||
var value;
|
||||
if (a0 != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(11875) /* metro dependency 11875: PushNotificationActionCreators */;
|
||||
value.updateNotificationAuthorizationStatus(a0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,316 @@
|
||||
/* Metro module 7882; source: utils/native/PremiumUpsellUtils.tsx; dependencies: [31, 1878, 661, 1880, 33, 7883, 1244, 7884, 7885, 7886, 7887, 7888, 7889, 4496, 7901, 1962, 3802, 7062, 7940, 4015, 683, 4080, 5080, 7028, 2] */
|
||||
function _fun63186(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:6, offset: 0x01b7424b, size: 264 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = usePremiumUpsellConfig;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = value.AnalyticEvents;
|
||||
const env0_6 = value.AnalyticsObjects;
|
||||
const env0_7 = value.UpsellTypes;
|
||||
value = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_8 = value.PremiumSubscriptionSKUs;
|
||||
const env0_9 = value.PremiumTypes;
|
||||
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {handleShowUpsellAlert: handleShowUpsellAlert, usePremiumUpsellConfig: closure};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/PremiumUpsellUtils.tsx');
|
||||
exports.default = object2;
|
||||
exports.getUpsellItems = getUpsellItems;
|
||||
exports.usePremiumUpsellConfig = closure;
|
||||
}
|
||||
|
||||
function usePremiumUpsellConfig(a0, a1, a2) { // fn#63187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:251, offset: 0x01b74353, size: 329 bytes, params: 4, frame: 21
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(7062) /* metro dependency 7062: usePremiumTrialOfferNative */).usePremiumTrialOffer();
|
||||
const env0_3 = value3;
|
||||
const Set = global.Set;
|
||||
const GLOBAL_EMOJI = UpsellTypes.GLOBAL_EMOJI;
|
||||
const UPLOAD = UpsellTypes.UPLOAD;
|
||||
const r6 = value3 != null && new Set([GLOBAL_EMOJI, UPLOAD]).has(a0);
|
||||
const r3 = r6 && (value3 == null || value3.subscription_trial == null ? value2 : value3.subscription_trial.sku_id) === PremiumSubscriptionSKUs.TIER_0;
|
||||
let binding = env0_3;
|
||||
let useMemo = binding.useMemo;
|
||||
const value10 = env0_3.useCallback(_fun63189, [Reflect.apply(useMemo, binding, [_fun63188, [a0, r3]]), a1, a2]);
|
||||
binding = env0_3;
|
||||
useMemo = binding.useMemo;
|
||||
return {useTier0UpsellContent: r3, onViewAllPerks: value10, getNitroText: Reflect.apply(useMemo, binding,
|
||||
[_fun63190, [r3, value3, r6]])};
|
||||
}
|
||||
|
||||
function handleShowUpsellAlert(a0) { // fn#63191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:1669, offset: 0x01b74811, size: 921 bytes, params: 2, frame: 19
|
||||
var r5;
|
||||
var r2;
|
||||
var object;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
var defaultImport4;
|
||||
var defaultImport5;
|
||||
var defaultImport6;
|
||||
var canUseAnimatedEmojis2;
|
||||
var defaultImport8;
|
||||
var defaultImport9;
|
||||
var defaultImport10;
|
||||
var defaultImport11;
|
||||
var defaultImport12;
|
||||
var defaultImport13;
|
||||
const initialUpsellKey = a0.initialUpsellKey;
|
||||
if (a0.analyticsLocation === undefined) {
|
||||
object = {};
|
||||
}
|
||||
if (a0.analyticsLocations === undefined) {
|
||||
object = [];
|
||||
}
|
||||
if (a0.analyticsProperties === undefined) {
|
||||
object = {};
|
||||
}
|
||||
const env0_4 = a0.largestFileSize;
|
||||
const env0_5 = a0.imageSource;
|
||||
var value;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const value3 = false;
|
||||
if (currentUser == null) {
|
||||
r2 = value3;
|
||||
} else if (UpsellTypes.UPLOAD === initialUpsellKey) {
|
||||
defaultImport13 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport13.isPremiumExactly(currentUser, PremiumTypes.TIER_2);
|
||||
} else if (UpsellTypes.GLOBAL_EMOJI === initialUpsellKey) {
|
||||
defaultImport12 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport12.canUseEmojisEverywhere(currentUser);
|
||||
} else if (UpsellTypes.ANIMATED_AVATAR === initialUpsellKey) {
|
||||
defaultImport11 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport11.canUseAnimatedAvatar(currentUser);
|
||||
} else if (UpsellTypes.BADGE === initialUpsellKey) {
|
||||
defaultImport10 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport10.canUseBadges(currentUser);
|
||||
} else if (UpsellTypes.ANIMATED_EMOJI === initialUpsellKey) {
|
||||
defaultImport9 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport9.canUseAnimatedEmojis(currentUser);
|
||||
} else if (UpsellTypes.EMOJI_AUTOCOMPLETE === initialUpsellKey) {
|
||||
canUseAnimatedEmojis2 = (importDefault(3802) /* metro dependency 3802: PremiumUtils */).canUseAnimatedEmojis(currentUser);
|
||||
if (canUseAnimatedEmojis2) {
|
||||
defaultImport8 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r5 = !defaultImport8.canUseEmojisEverywhere(currentUser);
|
||||
} else {
|
||||
r5 = !canUseAnimatedEmojis2;
|
||||
}
|
||||
r2 = r5;
|
||||
} else if (UpsellTypes.CUSTOM_PROFILES === initialUpsellKey) {
|
||||
defaultImport6 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport6.canUsePremiumProfileCustomization(currentUser);
|
||||
} else if (UpsellTypes.APP_ICONS === initialUpsellKey) {
|
||||
defaultImport5 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport5.canUsePremiumAppIcons(currentUser);
|
||||
} else if (UpsellTypes.GLOBAL_STICKER === initialUpsellKey) {
|
||||
defaultImport4 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport4.canUseCustomStickersEverywhere(currentUser);
|
||||
} else if (UpsellTypes.PREMIUM_GUILD_PROFILE === initialUpsellKey) {
|
||||
defaultImport3 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport3.canUsePremiumGuildMemberProfile(currentUser);
|
||||
} else if (UpsellTypes.LONGER_MESSAGE === initialUpsellKey) {
|
||||
defaultImport2 = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport2.canUseIncreasedMessageLength(currentUser);
|
||||
} else if (UpsellTypes.GUILD_CAP === initialUpsellKey) {
|
||||
defaultImport = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r2 = !defaultImport.canUseIncreasedGuildCap(currentUser);
|
||||
} else {
|
||||
r2 = !(UpsellTypes.STREAM_HIGH_QUALITY !== initialUpsellKey) || value3;
|
||||
}
|
||||
if (r2) {
|
||||
if ((importDefault(7889) /* metro dependency 7889: shouldOpenPremiumUpsellActionSheet */)(a0)) {
|
||||
return undefined;
|
||||
}
|
||||
value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
value.openLazy({importer: importer_63192});
|
||||
}
|
||||
}
|
||||
|
||||
function getUpsellItems() { // fn#63195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:3217, offset: 0x01b74c72, size: 1261 bytes, params: 1, frame: 24
|
||||
let object3 = {};
|
||||
const GLOBAL_EMOJI = UpsellTypes.GLOBAL_EMOJI;
|
||||
object3.key = GLOBAL_EMOJI;
|
||||
object3.image = importDefault(7883) /* metro dependency 7883 */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object3.activeTitle = Reflect.apply(string, intl, [t.gKtr8N]);
|
||||
string = intl.string;
|
||||
const N8ZRNb = t.N8ZRNb;
|
||||
object3.passiveTitle = Reflect.apply(string, intl, [N8ZRNb]);
|
||||
let format = intl.format;
|
||||
object3.description = Reflect.apply(format, intl, [t.rf7Ixp, {}]);
|
||||
const items2 = [object3];
|
||||
object3 = {};
|
||||
const ANIMATED_EMOJI = UpsellTypes.ANIMATED_EMOJI;
|
||||
object3.key = ANIMATED_EMOJI;
|
||||
object3.image = importDefault(7884) /* metro dependency 7884 */;
|
||||
string = intl.string;
|
||||
const F6rmyq = t.F6rmyq;
|
||||
object3.activeTitle = Reflect.apply(string, intl, [F6rmyq]);
|
||||
object3.passiveTitle = intl.string(t.e4cKNt);
|
||||
format = intl.format;
|
||||
const JxTzzb = t.JxTzzb;
|
||||
object3.description = Reflect.apply(format, intl, [JxTzzb, {}]);
|
||||
items2[1] = object3;
|
||||
object3 = {};
|
||||
const ANIMATED_AVATAR = UpsellTypes.ANIMATED_AVATAR;
|
||||
object3.key = ANIMATED_AVATAR;
|
||||
object3.image = importDefault(7885) /* metro dependency 7885 */;
|
||||
object3.activeTitle = intl.string(t['tQh+gF']);
|
||||
string = intl.string;
|
||||
const HGSXTM = t.HGSXTM;
|
||||
object3.passiveTitle = Reflect.apply(string, intl, [HGSXTM]);
|
||||
object3.description = intl.format(t['Tso/Fn'], {});
|
||||
items2[2] = object3;
|
||||
object3 = {};
|
||||
const UPLOAD = UpsellTypes.UPLOAD;
|
||||
object3.key = UPLOAD;
|
||||
object3.image = importDefault(7886) /* metro dependency 7886 */;
|
||||
object3.activeTitle = intl.string(t['1EOZqw']);
|
||||
object3.passiveTitle = intl.string(t.tB51W4);
|
||||
format = intl.format;
|
||||
const DUT5IC = t.DUT5IC;
|
||||
const object4 = {};
|
||||
const intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
string = intl2.string;
|
||||
const Ll40SK = t.Ll40SK;
|
||||
object4.maxUploadStandard = Reflect.apply(string, intl2, [Ll40SK]);
|
||||
const intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
string = intl3.string;
|
||||
const EaBfeq = t.EaBfeq;
|
||||
object4.maxUploadPremium = Reflect.apply(string, intl3, [EaBfeq]);
|
||||
object3.description = Reflect.apply(format, intl, [DUT5IC, object4]);
|
||||
items2[3] = object3;
|
||||
object3 = {};
|
||||
const BADGE = UpsellTypes.BADGE;
|
||||
object3.key = BADGE;
|
||||
object3.image = importDefault(7887) /* metro dependency 7887 */;
|
||||
object3.activeTitle = intl.string(t['602BK4']);
|
||||
object3.passiveTitle = intl.string(t.j0TXTX);
|
||||
object3.description = intl.format(t['p7i+li'], {});
|
||||
items2[4] = object3;
|
||||
object3 = {};
|
||||
const APP_ICONS = UpsellTypes.APP_ICONS;
|
||||
object3.key = APP_ICONS;
|
||||
object3.image = importDefault(7888) /* metro dependency 7888 */;
|
||||
object3.activeTitle = intl.string(t['1B1Cyn']);
|
||||
object3.passiveTitle = intl.string(t['1B1Cyn']);
|
||||
string = intl.string;
|
||||
const VL5TYT = t.VL5TYT;
|
||||
object3.description = Reflect.apply(string, intl, [VL5TYT]);
|
||||
items2[5] = object3;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun63188() { // fn#63188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:474, offset: 0x01b7449c, size: 290 bytes, params: 1, frame: 12
|
||||
const PremiumFeatureCardOrder = (require(7940) /* metro dependency 7940: PremiumFeaturesCards */).PremiumFeatureCardOrder;
|
||||
if (!env0_5) {
|
||||
var binding = env0_0;
|
||||
var UPLOAD = UpsellTypes.UPLOAD;
|
||||
if (UPLOAD === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var ANIMATED_EMOJI = UpsellTypes.ANIMATED_EMOJI;
|
||||
if (ANIMATED_EMOJI === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var GLOBAL_EMOJI = UpsellTypes.GLOBAL_EMOJI;
|
||||
if (GLOBAL_EMOJI === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var GLOBAL_STICKER = UpsellTypes.GLOBAL_STICKER;
|
||||
if (GLOBAL_STICKER === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var CUSTOM_PROFILES = UpsellTypes.CUSTOM_PROFILES;
|
||||
if (CUSTOM_PROFILES === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var PREMIUM_GUILD_PROFILE = UpsellTypes.PREMIUM_GUILD_PROFILE;
|
||||
if (PREMIUM_GUILD_PROFILE === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var APP_ICONS = UpsellTypes.APP_ICONS;
|
||||
if (APP_ICONS === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var STREAM_HIGH_QUALITY = UpsellTypes.STREAM_HIGH_QUALITY;
|
||||
if (STREAM_HIGH_QUALITY === binding) {
|
||||
return PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
}
|
||||
var LONGER_MESSAGE = UpsellTypes.LONGER_MESSAGE;
|
||||
if (LONGER_MESSAGE !== binding) {
|
||||
if (UpsellTypes.GUILD_CAP !== binding) {
|
||||
UpsellTypes.ANIMATED_AVATAR;
|
||||
}
|
||||
}
|
||||
}
|
||||
return PremiumFeatureCardOrder.TIER_0_LEADING;
|
||||
}
|
||||
|
||||
function _fun63189() { // fn#63189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:930, offset: 0x01b745be, size: 257 bytes, params: 1, frame: 21
|
||||
const bestActiveInput = require(dependencyMap[19]).getBestActiveInput();
|
||||
if (bestActiveInput != null) {
|
||||
bestActiveInput.closeCustomKeyboard();
|
||||
}
|
||||
const defaultImport = importDefault(dependencyMap[20]);
|
||||
const track = defaultImport.track;
|
||||
const PREMIUM_PROMOTION_OPENED = AnalyticEvents.PREMIUM_PROMOTION_OPENED;
|
||||
Reflect.apply(track, defaultImport, [PREMIUM_PROMOTION_OPENED, {location: importDefault}]);
|
||||
importDefault(dependencyMap[21]).hideActionSheet();
|
||||
const defaultImport3 = importDefault(dependencyMap[22]);
|
||||
const pushLazy = defaultImport3.pushLazy;
|
||||
const value4 = require(dependencyMap[15])(dependencyMap[23], dependencyMap.paths);
|
||||
const object = {};
|
||||
copyDataProperties(object, importDefault, undefined);
|
||||
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
|
||||
object['object'] = BUTTON_CTA;
|
||||
Reflect.apply(pushLazy, defaultImport3, [value4, {analyticsLocation: object, analyticsLocations: require ?? [],
|
||||
premiumFeatureCardOrder: env0_6}]);
|
||||
}
|
||||
|
||||
function _fun63190() { // fn#63190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:1261, offset: 0x01b746bf, size: 338 bytes, params: 1, frame: 16
|
||||
var sku_id;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (env0_4) {
|
||||
sku_id = env0_3 == null || env0_3.subscription_trial == null ? undefined : env0_3.subscription_trial.sku_id;
|
||||
value = environment.__proto__;
|
||||
if (PremiumSubscriptionSKUs.TIER_0 === sku_id) {
|
||||
return intl.string(t.hz78hE);
|
||||
}
|
||||
if (PremiumSubscriptionSKUs.TIER_2 === sku_id) {
|
||||
return intl.string(t['Gd/XHF']);
|
||||
}
|
||||
value = environment.__proto__;
|
||||
} else if (env0_5) {
|
||||
value = environment.__proto__;
|
||||
return intl.string(t['9CM5v9']);
|
||||
}
|
||||
return intl.string(t.pj0XBN);
|
||||
}
|
||||
|
||||
function handleShowUpsellAlertImporter() { // fn#63192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:2887, owner: handleShowUpsellAlert.importer, offset: 0x01b74baa, size: 62 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(dependencyMap[15]);
|
||||
value = value(dependencyMap[14], dependencyMap.paths);
|
||||
return value.then(function({default: env0_0}) {
|
||||
return _fun63194;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun63193({default: env0_0}) { // fn#63193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:2921, offset: 0x01b74be8, size: 21 bytes, params: 2, frame: 2
|
||||
return _fun63194;
|
||||
}
|
||||
|
||||
function _fun63194(a0) { // fn#63194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8060:2936, offset: 0x01b74bfd, size: 117 bytes, params: 2, frame: 15
|
||||
return ((Component) => <Component {...a0} {...{['initialUpsellKey']: initialUpsellKey}} {...{['analyticsLocation']: env2_1}} {...{['analyticsProperties']: env2_3}} {...{['analyticsLocations']: env2_2}} {...{['largestFileSize']: largestFileSize}} {...{['imageSource']: imageSource}} />)(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,408 @@
|
||||
/* Metro module 7709; source: utils/native/PrivateChannelCallUtils.tsx; dependencies: [5, 31, 3849, 7710, 1379, 3793, 1934, 1878, 661, 1229, 4661, 33, 5072, 7712, 7713, 1239, 5080, 7714, 1962, 5459, 5075, 4080, 12084, 4796, 4496, 1244, 4662, 4015, 12120, 4497, 8916, 4007, 8114, 2] */
|
||||
function _fun61571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:6, offset: 0x01b4599f, size: 554 bytes, params: 8, frame: 26
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
return getVoiceChannelKeyByChannelId(a0);
|
||||
};
|
||||
const closure2 = openChannelCallModal;
|
||||
const closure3 = dismissVoiceChannelScreens;
|
||||
const closure4 = function() {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun61576);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
const closure5 = showGuardCallAlert;
|
||||
const closure6 = guardPrivateCallForChannel;
|
||||
const closure7 = function(a0, a1) {
|
||||
if (!require(dependencyMap[31]).isModalOpen(getVoiceChannelKey(a0.id))) {
|
||||
openChannelCallModal(a0);
|
||||
}
|
||||
};
|
||||
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 */;
|
||||
const actionSheetStore = importDefault(3849) /* metro dependency 3849: ActionSheetStore */;
|
||||
const voicePanelStore = importDefault(7710) /* metro dependency 7710: VoicePanelStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = constantsModule.ChannelTypes;
|
||||
const env0_12 = constantsModule.ComponentActions;
|
||||
const env0_13 = constantsModule.NOOP;
|
||||
const env0_14 = (require(1229) /* metro dependency 1229: AgeGateConstants */).AgeGateSource;
|
||||
const env0_15 = (require(4661) /* metro dependency 4661: NativePermissionConstants */).NativePermissionTypes;
|
||||
const env0_16 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const closure8 = function(a0) {
|
||||
return '' + 'voice-channel' + '-' + a0;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/PrivateChannelCallUtils.tsx');
|
||||
exports.getVoiceChannelKeyByChannelId = closure8;
|
||||
exports.getVoiceChannelKey = closure;
|
||||
exports.isVoiceChannelModalKey = function(a0) {
|
||||
return a0.startsWith('voice-channel');
|
||||
};
|
||||
exports.openChannelCallModal = closure2;
|
||||
exports.maybeShowAgeGateModal = maybeShowAgeGateModal;
|
||||
exports.openVoiceChannelActionSheet = openVoiceChannelActionSheet;
|
||||
exports.hideVoiceChannelActionSheet = function(a0) {
|
||||
importDefault(dependencyMap[21]).hideActionSheet(getVoiceChannelKey(a0.id));
|
||||
};
|
||||
exports.dismissVoiceChannelScreens = closure3;
|
||||
exports.monkeyPatchCall = closure4;
|
||||
exports.showGuardCallAlert = closure5;
|
||||
exports.guardPrivateCallForChannel = closure6;
|
||||
exports.handleJoinCall = handleJoinCall;
|
||||
exports.handleStartCall = handleStartCall;
|
||||
exports.handleRedesignGroupDMCall = handleRedesignGroupDMCall;
|
||||
exports.handleRedesignJoinCall = handleRedesignJoinCall;
|
||||
exports.openGuildVoiceModal = closure7;
|
||||
exports.navigateToVoiceChannel = function(a0, a1) {
|
||||
if (a0.isPrivate()) {
|
||||
openChannelCallModal(a0);
|
||||
} else if (a0.isGuildStageVoice()) {
|
||||
require(dependencyMap[32]).openStageChannel(a0);
|
||||
} else {
|
||||
openGuildVoiceModal(a0);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function openChannelCallModal(a0) { // fn#61573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:439, offset: 0x01b45bdc, size: 289 bytes, params: 2, frame: 19
|
||||
var moduleValue2;
|
||||
var defaultImport2;
|
||||
var state;
|
||||
var openChannel;
|
||||
var ComponentDispatch;
|
||||
var dispatch;
|
||||
var VOICE_PANEL_OPEN;
|
||||
const moduleValue = require(dependencyMap[12]);
|
||||
const maybeOpenAgeGateForVoiceChannel = moduleValue.maybeOpenAgeGateForVoiceChannel;
|
||||
let id = a0.id;
|
||||
if (!Reflect.apply(maybeOpenAgeGateForVoiceChannel, moduleValue, [id])) {
|
||||
importDefault(dependencyMap[13]).rebuildRTCActiveChannels();
|
||||
moduleValue2 = require(dependencyMap[14]);
|
||||
if (moduleValue2.isVoicePanelEnabled(a0)) {
|
||||
state = VoicePanelStore.getState();
|
||||
openChannel = state.openChannel;
|
||||
id = a0.id;
|
||||
Reflect.apply(openChannel, state, [id]);
|
||||
ComponentDispatch = require(dependencyMap[15]).ComponentDispatch;
|
||||
dispatch = ComponentDispatch.dispatch;
|
||||
VOICE_PANEL_OPEN = ComponentActions.VOICE_PANEL_OPEN;
|
||||
id = a0.id;
|
||||
Reflect.apply(dispatch, ComponentDispatch, [VOICE_PANEL_OPEN, {channelId: id}]);
|
||||
} else {
|
||||
defaultImport2 = importDefault(dependencyMap[16]);
|
||||
defaultImport2.pushLazy(require(dependencyMap[18])(dependencyMap[17], dependencyMap.paths), {channel: a0},
|
||||
getVoiceChannelKey(a0.id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function dismissVoiceChannelScreens({id}, a1) { // fn#61574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:776, offset: 0x01b45cfd, size: 107 bytes, params: 3, frame: 15
|
||||
const voiceChannelKey = getVoiceChannelKey(id);
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(voiceChannelKey, a1);
|
||||
const getKey = ActionSheetStore.getKey;
|
||||
if (Reflect.apply(getKey, ActionSheetStore, []) === voiceChannelKey) {
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
}
|
||||
|
||||
function monkeyPatchCall() { // fn#61575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:916, offset: 0x01b45d68, size: 37 bytes, params: 1, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun61576);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function showGuardCallAlert(a0) { // fn#61577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:1107, offset: 0x01b45df7, size: 224 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.title = Reflect.apply(string, intl, [t['91WuJ9']]);
|
||||
object2.body = intl.string(t['Rs+Vk1']);
|
||||
object2.cancelText = intl.string(t['ETE/oC']);
|
||||
object2.onConfirm = onConfirm;
|
||||
object2.onCancel = NOOP;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function guardPrivateCallForChannel(a0, a1) { // fn#61579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:1335, offset: 0x01b45ed7, size: 123 bytes, params: 3, frame: 16
|
||||
const env0_0 = a1;
|
||||
const channel = ChannelStore.getChannel(SelectedChannelStore.getVoiceChannelId());
|
||||
if (channel == null) {
|
||||
a1();
|
||||
} else if (channel.type === ChannelTypes.GUILD_VOICE) {
|
||||
a1();
|
||||
} else if (a0 == null) {
|
||||
a1();
|
||||
} else if (a0.id !== channel.id) {
|
||||
showGuardCallAlert(env0_3(_fun61581));
|
||||
} else {
|
||||
a1();
|
||||
}
|
||||
}
|
||||
|
||||
function maybeShowAgeGateModal(a0) { // fn#61585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:1989, offset: 0x01b4600d, size: 86 bytes, params: 2, frame: 14
|
||||
const ageGateUtilsModule = require(5072) /* metro dependency 5072: AgeGateUtils */;
|
||||
if (ageGateUtilsModule.shouldShowAgeGateForChannelId(a0)) {
|
||||
(require(5459) /* metro dependency 5459: RunAfterInteractionsUtils */).runAfterInteractions(function() {
|
||||
require(dependencyMap[20]).openAgeGateModal(AgeGateSource.NSFW_VOICE_CHANNEL);
|
||||
}, 150);
|
||||
}
|
||||
}
|
||||
|
||||
function openVoiceChannelActionSheet(a0) { // fn#61587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:2188, offset: 0x01b46093, size: 97 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(dependencyMap[21]);
|
||||
defaultImport.openLazy(require(dependencyMap[18])(dependencyMap[22], dependencyMap.paths),
|
||||
getVoiceChannelKey(a0.id), {channel: a0});
|
||||
}
|
||||
|
||||
function handleJoinCall(a0) { // fn#61589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:2634, offset: 0x01b4612b, size: 53 bytes, params: 2, frame: 14
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = value !== undefined ? value : false;
|
||||
guardPrivateCallForChannel(a0, function() {
|
||||
return _onConfirm.apply(this, arguments);
|
||||
});
|
||||
}
|
||||
|
||||
function handleStartCall(a0) { // fn#61594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:2982, offset: 0x01b46243, size: 66 bytes, params: 2, frame: 14
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = value !== undefined ? value : false;
|
||||
if (!guardAgainstCallingProvisionalAccount(a0)) {
|
||||
guardPrivateCallForChannel(a0, function() {
|
||||
return _onConfirm2.apply(this, arguments);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function handleRedesignGroupDMCall(a0) { // fn#61601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3689, offset: 0x01b46493, size: 53 bytes, params: 2, frame: 14
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = value !== undefined ? value : false;
|
||||
guardPrivateCallForChannel(a0, function() {
|
||||
return _onConfirm3.apply(this, arguments);
|
||||
});
|
||||
}
|
||||
|
||||
function handleRedesignJoinCall(a0) { // fn#61606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:4047, offset: 0x01b465ad, size: 53 bytes, params: 2, frame: 14
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = value !== undefined ? value : false;
|
||||
guardPrivateCallForChannel(a0, function() {
|
||||
return _onConfirm4.apply(this, arguments);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun61576(a0) { // fn#61576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:963, offset: 0x01b45d8d, size: 106 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const channel = ChannelStore.getChannel(SelectedChannelStore.getVoiceChannelId());
|
||||
if (channel != null) {
|
||||
dismissVoiceChannelScreens(channel);
|
||||
}
|
||||
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).selectVoiceChannel(null);
|
||||
global.setTimeout(a0, 500);
|
||||
}
|
||||
|
||||
function* _fun61581() { // fn#61581, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:1498, offset: 0x01b45f5b, size: 50 bytes, params: 1, frame: 11
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
yield env2_21();
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
require();
|
||||
}
|
||||
}
|
||||
|
||||
function _onConfirm() { // fn#61590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:2666, owner: handleJoinCall._onConfirm, offset: 0x01b46160, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_3(_fun61592).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _onConfirm2() { // fn#61595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3015, owner: handleStartCall._onConfirm2, offset: 0x01b46285, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_3(_fun61597).apply(this, arguments);
|
||||
}
|
||||
|
||||
function guardAgainstCallingProvisionalAccount(a0) { // fn#61598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3307, owner: handleStartCall.guardAgainstCallingProvisionalAccount, offset: 0x01b463d9, size: 141 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
var value;
|
||||
var value2;
|
||||
if (a0.isDM()) {
|
||||
value = environment.__proto__;
|
||||
value2 = UserStore.getUser(a0.getRecipientId());
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
if (value2.isProvisional) {
|
||||
(require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert('ProvisionalAccountNocallAllowed',
|
||||
|
||||
((Component) => <Component />)(env1_4.lazy(_fun61599)));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function _onConfirm3() { // fn#61602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3732, owner: handleRedesignGroupDMCall._onConfirm3, offset: 0x01b464c8, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_3(_fun61604).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _onConfirm4() { // fn#61607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:4087, owner: handleRedesignJoinCall._onConfirm4, offset: 0x01b465e2, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_3(_fun61609).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun61592() { // fn#61592, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:2709, offset: 0x01b4619c, size: 167 bytes, params: 1, frame: 17
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var value5;
|
||||
var value7;
|
||||
var binding2;
|
||||
var value9;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (importDefault) {
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_1;
|
||||
value4 = binding(env3_2[26]);
|
||||
yield value4.requestPermission(env3_15.CAMERA);
|
||||
value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (value5) {
|
||||
value7 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding2 = env3_2;
|
||||
binding(binding2[27]).dismissKeyboard();
|
||||
binding = env3_1;
|
||||
value9 = binding(binding2[23]);
|
||||
value9.selectVoiceChannel(require.id, importDefault);
|
||||
return undefined;
|
||||
}
|
||||
} else {
|
||||
binding = env3_0;
|
||||
binding2 = env3_2;
|
||||
binding(binding2[27]).dismissKeyboard();
|
||||
binding = env3_1;
|
||||
value9 = binding(binding2[23]);
|
||||
value9.selectVoiceChannel(require.id, importDefault);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun61597() { // fn#61597, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3060, offset: 0x01b462c1, size: 280 bytes, params: 1, frame: 22
|
||||
var r8;
|
||||
var r7;
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var value5;
|
||||
var value7;
|
||||
var value12;
|
||||
var call;
|
||||
var id;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (importDefault) {
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_1;
|
||||
value4 = binding(env3_2[26]);
|
||||
yield value4.requestPermission(env3_15.CAMERA);
|
||||
value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (value5) {
|
||||
value7 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding(env3_2[27]).dismissKeyboard();
|
||||
r8 = require.type !== env3_11.DM || env3_8.isFriend(require.getRecipientId());
|
||||
r7 = r8 ? null : require.getRecipientId();
|
||||
binding = env3_1;
|
||||
value12 = binding(env3_2[30]);
|
||||
call = value12.call;
|
||||
id = require.id;
|
||||
r8 = r8 && !require.isManaged();
|
||||
Reflect.apply(call, value12, [id, importDefault, r8, r7]);
|
||||
return undefined;
|
||||
}
|
||||
} else {
|
||||
binding = env3_0;
|
||||
binding(env3_2[27]).dismissKeyboard();
|
||||
r8 = require.type !== env3_11.DM || env3_8.isFriend(require.getRecipientId());
|
||||
r7 = r8 ? null : require.getRecipientId();
|
||||
binding = env3_1;
|
||||
value12 = binding(env3_2[30]);
|
||||
call = value12.call;
|
||||
id = require.id;
|
||||
r8 = r8 && !require.isManaged();
|
||||
Reflect.apply(call, value12, [id, importDefault, r8, r7]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun61599() { // fn#61599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3448, offset: 0x01b46466, size: 45 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
return require(dependencyMap[18])(dependencyMap[28], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function* _fun61604() { // fn#61604, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7887:3777, offset: 0x01b46504, size: 169 bytes, params: 1, frame: 18
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var value5;
|
||||
var value7;
|
||||
var binding2;
|
||||
var value9;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (importDefault) {
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_1;
|
||||
value4 = binding(env3_2[26]);
|
||||
yield value4.requestPermission(env3_15.CAMERA);
|
||||
value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (value5) {
|
||||
value7 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding2 = env3_2;
|
||||
binding(binding2[27]).dismissKeyboard();
|
||||
binding = env3_1;
|
||||
value9 = binding(binding2[30]);
|
||||
value9.call(require.id, importDefault, true);
|
||||
return undefined;
|
||||
}
|
||||
} else {
|
||||
binding = env3_0;
|
||||
binding2 = env3_2;
|
||||
binding(binding2[27]).dismissKeyboard();
|
||||
binding = env3_1;
|
||||
value9 = binding(binding2[30]);
|
||||
value9.call(require.id, importDefault, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 5459; source: utils/native/RunAfterInteractionsUtils.tsx; dependencies: [27, 4041, 2] */
|
||||
function _fun48022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:6, offset: 0x011d76e6, size: 128 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = runAfterInteractions_48023;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).InteractionManager;
|
||||
object2 = {runAfterInteractions: closure};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/RunAfterInteractionsUtils.tsx');
|
||||
exports.default = object2;
|
||||
exports.runAfterInteractions = closure;
|
||||
}
|
||||
|
||||
function runAfterInteractions_48023(a0) { // fn#48023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:125, offset: 0x011d7766, size: 141 bytes, params: 2, frame: 16
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const r4 = value !== undefined ? value : 2000;
|
||||
const env0_1 = InteractionManager.runAfterInteractions(_fun48024);
|
||||
const DelayedCall = (require(4041) /* metro dependency 4041: Timers */).DelayedCall;
|
||||
new DelayedCall(r4, _fun48025).delay();
|
||||
return {cancel: cancel_48026};
|
||||
}
|
||||
|
||||
function _fun48024() { // fn#48024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:194, offset: 0x011d77f3, size: 29 bytes, params: 1, frame: 10
|
||||
env0_2.cancel();
|
||||
env0_0();
|
||||
}
|
||||
|
||||
function _fun48025() { // fn#48025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:247, offset: 0x011d7810, size: 29 bytes, params: 1, frame: 10
|
||||
env0_1.cancel();
|
||||
env0_0();
|
||||
}
|
||||
|
||||
function runAfterInteractions_48023Cancel() { // fn#48026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:295, owner: runAfterInteractions_48023.cancel, offset: 0x011d782d, size: 35 bytes, params: 1, frame: 10
|
||||
env0_2.cancel();
|
||||
env0_1.cancel();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 8705; source: utils/native/StringUtils.tsx; dependencies: [8704, 2] */
|
||||
function _fun68371(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8890:6, offset: 0x01c4c2cd, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/StringUtils.tsx');
|
||||
exports.splitGraphemes = splitGraphemes;
|
||||
}
|
||||
|
||||
function splitGraphemes(a0) { // fn#68372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8890:171, offset: 0x01c4c330, size: 236 bytes, params: 2, frame: 24
|
||||
var r13;
|
||||
var r2;
|
||||
var lastIndex;
|
||||
var r6;
|
||||
var index;
|
||||
var push;
|
||||
var Array;
|
||||
var from;
|
||||
var slice;
|
||||
var value4;
|
||||
var items2;
|
||||
var value5;
|
||||
var value6;
|
||||
var items3;
|
||||
const value = 0;
|
||||
const value2 = importDefault(dependencyMap[value])();
|
||||
const items4 = [];
|
||||
const value3 = value2.exec(a0);
|
||||
if (value3 === null) {
|
||||
r6 = value;
|
||||
} else {
|
||||
r2 = value3;
|
||||
lastIndex = value;
|
||||
while (true) {
|
||||
index = r2.index;
|
||||
if (index > lastIndex) {
|
||||
push = items4.push;
|
||||
Array = global.Array;
|
||||
from = Array.from;
|
||||
slice = a0.slice;
|
||||
index = r2.index;
|
||||
value4 = Reflect.apply(from, Array, [Reflect.apply(slice, a0, [lastIndex, index])]);
|
||||
items2 = [];
|
||||
arraySpread(items2, value4, value, slice);
|
||||
apply(push, items2, items4, slice);
|
||||
r13 = slice;
|
||||
}
|
||||
items4.push(r2[value]);
|
||||
lastIndex = value2.lastIndex;
|
||||
value5 = value2.exec(a0);
|
||||
if (value5 !== null) {
|
||||
r2 = value5;
|
||||
continue;
|
||||
}
|
||||
r6 = lastIndex;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (r6 < a0.length) {
|
||||
push = items4.push;
|
||||
Array = global.Array;
|
||||
value6 = Array.from(a0.slice(r6));
|
||||
items3 = [];
|
||||
arraySpread(items3, value6, value, r13);
|
||||
apply(push, items3, items4, r13);
|
||||
}
|
||||
return items4;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 5279; source: utils/native/StyleSheetUtils.tsx; dependencies: [2] */
|
||||
function _fun46918(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5457:6, offset: 0x011b2e2f, size: 96 bytes, params: 8, frame: 16
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
object2.getStyleProp = getStyleProp;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/StyleSheetUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function getStyleProp(a0, a1) { // fn#46919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5457:113, offset: 0x011b2e8f, size: 116 bytes, params: 3, frame: 18
|
||||
var r4;
|
||||
var value;
|
||||
if (a1 == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (a1 === '') {
|
||||
return undefined;
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
value = a0.length - 1;
|
||||
if (value >= 0) {
|
||||
r4 = value;
|
||||
loopExit7: while (true) {
|
||||
value = getStyleProp(a0[r4], a1);
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
value = typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1;
|
||||
if (value >= 0) {
|
||||
r4 = value;
|
||||
continue;
|
||||
}
|
||||
break loopExit7;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (a0 == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof a0 !== 'object') {
|
||||
return undefined;
|
||||
}
|
||||
return a0[a1];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 13935; source: utils/native/SupportUtils.tsx; dependencies: [5, 1949, 1582, 4092, 3853, 1948, 2] */
|
||||
function _fun105743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14132:6, offset: 0x022c21c1, size: 152 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 localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/SupportUtils.tsx');
|
||||
exports.emailSupport = function() {
|
||||
return _emailSupport.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _emailSupport() { // fn#105744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14132:116, offset: 0x022c2259, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun105746).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun105746() { // fn#105746, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14132:165, offset: 0x022c2296, size: 274 bytes, params: 1, frame: 33
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_3;
|
||||
var value3 = binding(binding2[4]);
|
||||
var openURL = value3.openURL;
|
||||
var value4 = binding(binding2[5]);
|
||||
var getSubmitRequestURL = value4.getSubmitRequestURL;
|
||||
var constants = env2_2(binding2[2]).getConstants();
|
||||
var Manifest = constants.Manifest;
|
||||
Manifest = Manifest.trim().length > 0 ? constants.Manifest : 'N/A';
|
||||
var Version = constants.Version;
|
||||
binding = env2_0;
|
||||
var binding3 = env2_3;
|
||||
yield Reflect.apply(getSubmitRequestURL, value4,
|
||||
['App version: ' + Version + '\n Manifest: ' + Manifest + '\n iOS version: ' + binding(binding3[3]).getSystemVersion() + '\n Device: ' + binding(binding3[3]).getDeviceInfo() + '\n Language: ' + env2_5.locale]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
Reflect.apply(openURL, value3, [value]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 4690; source: utils/native/TimeUtils.tsx; dependencies: [2] */
|
||||
function _fun40563(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4868:6, offset: 0x01104fb2, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/TimeUtils.tsx');
|
||||
exports.getTimeFormat = getTimeFormat;
|
||||
}
|
||||
|
||||
function getTimeFormat(a0, a1) { // fn#40564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4868:168, offset: 0x01105007, size: 208 bytes, params: 3, frame: 19
|
||||
var r0;
|
||||
var String;
|
||||
let value = a0 | 0;
|
||||
const value2 = value % 60;
|
||||
value = (value - value2) / 60;
|
||||
const padMinutes = a1?.padMinutes;
|
||||
if (padMinutes == null) {
|
||||
String = global.String;
|
||||
value = String(value);
|
||||
String = global.String;
|
||||
value = '' + value + ':' + String(value2).padStart(2, '0');
|
||||
r0 = value;
|
||||
} else if (padMinutes) {
|
||||
String = global.String;
|
||||
value = String(value);
|
||||
value = value.padStart(2, '0');
|
||||
String = global.String;
|
||||
value = '' + value + ':' + String(value2).padStart(2, '0');
|
||||
r0 = value;
|
||||
} else {
|
||||
String = global.String;
|
||||
value = String(value);
|
||||
String = global.String;
|
||||
value = '' + value + ':' + String(value2).padStart(2, '0');
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,81 @@
|
||||
/* Metro module 11970; source: utils/native/WelcomeScreenUtils.tsx; dependencies: [31, 11971, 1935, 1867, 3980, 11972, 566, 11973, 4080, 11974, 1962, 2] */
|
||||
function _fun91875(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12156:6, offset: 0x020757bd, 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 welcomeScreenStore = importDefault(11971) /* metro dependency 11971: WelcomeScreenStore */;
|
||||
const env0_5 = (require(11971) /* metro dependency 11971: WelcomeScreenStore */).NO_WELCOME_SCREEN;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
object = {welcomeScreenModalVisible: false, shouldFetchGuildId: undefined};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/WelcomeScreenUtils.tsx');
|
||||
exports.useShowWelcomeModal = useShowWelcomeModal;
|
||||
exports.openWelcomeActionSheet = openWelcomeActionSheet;
|
||||
}
|
||||
|
||||
function useShowWelcomeModal(a0, a1) { // fn#91876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12156:315, offset: 0x02075898, size: 194 bytes, params: 3, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const moduleValue = require(3980) /* metro dependency 3980 */;
|
||||
const useLocation = moduleValue.useLocation;
|
||||
const env0_2 = Reflect.apply(useLocation, moduleValue, []).welcomeModalChannelId;
|
||||
const env0_3 = (importDefault(11972) /* metro dependency 11972: useWelcomeScreenEnabled */)(a1, a0);
|
||||
const {welcomeScreenModalVisible,
|
||||
shouldFetchGuildId} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildStore,
|
||||
WelcomeScreenStore, GuildChannelStore], _fun91877);
|
||||
env0_3.useEffect(_fun91878, [shouldFetchGuildId]);
|
||||
return welcomeScreenModalVisible;
|
||||
}
|
||||
|
||||
function openWelcomeActionSheet({guildId, onHide}) { // fn#91879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12156:877, offset: 0x02075a64, size: 123 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(dependencyMap[8]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[10]);
|
||||
value = value(dependencyMap[9], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'GuildWelcomeActionSheet' + guildId, {guildId: guildId,
|
||||
onHide: onHide}]);
|
||||
}
|
||||
|
||||
function _fun91877() { // fn#91877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12156:458, offset: 0x0207595a, size: 209 bytes, params: 1, frame: 18
|
||||
var r3;
|
||||
var r1;
|
||||
var getGuild;
|
||||
var binding;
|
||||
var value3;
|
||||
var selectableChannelIds;
|
||||
var value5;
|
||||
var hasSeen2;
|
||||
var hasError2;
|
||||
var isFetching2;
|
||||
if (env0_3) {
|
||||
getGuild = GuildStore.getGuild;
|
||||
binding = env0_0;
|
||||
value3 = Reflect.apply(getGuild, GuildStore, [binding]);
|
||||
selectableChannelIds = GuildChannelStore.getSelectableChannelIds(binding);
|
||||
value5 = WelcomeScreenStore.get(binding);
|
||||
hasSeen2 = WelcomeScreenStore.hasSeen(binding);
|
||||
hasError2 = WelcomeScreenStore.hasError();
|
||||
isFetching2 = WelcomeScreenStore.isFetching();
|
||||
r3 = !hasSeen2 && welcomeModalChannelId === require;
|
||||
r1 = r3 && value5 != null;
|
||||
r1 = r1 && value5 !== NO_WELCOME_SCREEN;
|
||||
r1 = r1 && !isFetching2;
|
||||
r1 = r1 && !hasError2;
|
||||
r1 = r1 && selectableChannelIds.length > 0;
|
||||
return {welcomeScreenModalVisible: r1,
|
||||
shouldFetchGuildId: r3 && value5 == null && value3 != null ? value3.id : undefined};
|
||||
}
|
||||
return env1_8;
|
||||
}
|
||||
|
||||
function _fun91878() { // fn#91878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12156:798, offset: 0x02075a2b, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (shouldFetchGuildId != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(11973) /* metro dependency 11973: WelcomeScreenActionCreators */;
|
||||
moduleValue.fetchWelcomeScreen(shouldFetchGuildId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 8112; source: utils/native/openChannelCallModalForChannelId.tsx; dependencies: [1379, 8113, 7709, 2] */
|
||||
function _fun65001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8297:6, offset: 0x01bbcb5e, size: 112 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/openChannelCallModalForChannelId.tsx');
|
||||
exports.default = function(a0, a1) {
|
||||
var r1;
|
||||
var value = a1;
|
||||
var value3 = ChannelStore.getChannel(a0);
|
||||
if (value3 != null) {
|
||||
r1 = value && value3.isGuildStageVoice();
|
||||
if (r1) {
|
||||
value = require(dependencyMap[1]);
|
||||
value = value.connectToStage(value3);
|
||||
value = value === false;
|
||||
r1 = value;
|
||||
}
|
||||
if (!r1) {
|
||||
require(dependencyMap[2]).openChannelCallModal(value3);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,38 @@
|
||||
/* Metro module 4567; source: utils/native/requireNativeComponentOrDefault.native.tsx; dependencies: [27, 3, 2] */
|
||||
function _fun38804(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4745:6, offset: 0x010cae70, size: 201 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_0 = value.requireNativeComponent;
|
||||
const env0_1 = value.UIManager;
|
||||
const env0_2 = value.View;
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('RequireNativeComponentOrDefault');
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/requireNativeComponentOrDefault.native.tsx');
|
||||
exports.default = requireNativeComponentOrDefault;
|
||||
}
|
||||
|
||||
function requireNativeComponentOrDefault({componentName, componentFoundInstance, componentMissingFallbackInstance, warnWhenMissing}) { // fn#38805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4745:315, offset: 0x010caf39, size: 184 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var binding;
|
||||
const r2 = componentMissingFallbackInstance !== undefined ? componentMissingFallbackInstance : View;
|
||||
warnWhenMissing = warnWhenMissing === undefined || warnWhenMissing;
|
||||
if (UIManager.hasViewManagerConfig(componentName)) {
|
||||
binding = env0_4;
|
||||
if (!binding.has(componentName)) {
|
||||
binding = env0_4;
|
||||
binding.set(componentName, componentFoundInstance ?? requireNativeComponent(componentName));
|
||||
}
|
||||
binding = env0_4;
|
||||
r0 = binding.get(componentName);
|
||||
} else if (warnWhenMissing) {
|
||||
env0_3.warn('' + componentName + ' not found, you are likely on a branch override without the native code.');
|
||||
r0 = r2;
|
||||
} else {
|
||||
r0 = r2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user