Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/* Metro module 12556; source: modules/local_app_detection/LocalAppDetectionTypes.tsx; dependencies: [2] */
|
||||
function _fun96081(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12746:6, offset: 0x02154920, size: 306 bytes, params: 8, frame: 17
|
||||
var object2;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {ROBLOX: 'roblox', MINECRAFT: 'minecraft', FORTNITE: 'fortnite', GENSHIN: 'genshin',
|
||||
PUBG_MOBILE: 'pubg_mobile', CALL_OF_DUTY_MOBILE: 'call_of_duty_mobile', CLASH_OF_CLANS: 'clash_of_clans',
|
||||
MOBILE_LEGENDS_BANG_BANG: 'mobile_legends_bang_bang', GARENA_FREE_FIRE: 'garena_free_fire',
|
||||
POKEMON_GO: 'pokemon_go', POKEMON_TCG_POCKET: 'pokemon_tcg_pocket', CLASH_ROYALE: 'clash_royale',
|
||||
AMONG_US: 'among_us', MONOPOLY_GO: 'monopoly_go', BRAWL_STARS: 'brawl_stars', BRAWLHALLA: 'brawlhalla',
|
||||
WUTHERING_WAVES: 'wuthering_waves'};
|
||||
Object = global.Object;
|
||||
const value = Object.values(object2);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/local_app_detection/LocalAppDetectionTypes.tsx');
|
||||
exports.DetectableAppNames = object2;
|
||||
exports.ALL_DETECTABLE_APP_NAMES = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
/* Metro module 12555; source: modules/local_app_detection/native/LocalAppDetectionStore.tsx; dependencies: [57, 6, 7, 15, 17, 18, 5078, 661, 694, 12556, 12557, 566, 2] */
|
||||
function _fun96063(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:6, offset: 0x02154235, size: 361 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_96066 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
const consentStore = importDefault(5078) /* metro dependency 5078: ConsentStore */;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).Consents;
|
||||
object = {detected: false, lastScannedAt: undefined};
|
||||
object = {apps: {}};
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
let value = _fun96070(DeviceSettingsStore);
|
||||
value.displayName = 'AppDetectionStore';
|
||||
value.persistKey = 'AppDetectionStore';
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/local_app_detection/native/LocalAppDetectionStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_96064(a0, a1) { // fn#96064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:190, offset: 0x0215439e, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun96065;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_96066(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_96066(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_96066(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun96065;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96067() { // fn#96067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:1100, offset: 0x02154512, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_96067_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun96070(a0) { // fn#96070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:1348, offset: 0x02154574, size: 224 bytes, params: 2, frame: 16
|
||||
const closure = LocalAppDetectionStore;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'initialize', value: value_96074}, {key: 'getUserAgnosticState', value: value_96075},
|
||||
{key: 'getAppState', value: value_96076}, {key: 'isAppInstalled', value: value_96077},
|
||||
{key: 'handlePostConnectionOpen', value: value_96078}, {key: 'handleLocalAppDetectionComplete',
|
||||
value: value_96079}, {key: 'DEV_resetState', value: function() {
|
||||
env1_12 = {apps: {}};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function LocalAppDetectionStore() { // fn#96071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:1360, offset: 0x02154654, size: 168 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
env1_4(this, LocalAppDetectionStore);
|
||||
const items2 = [importDefault(694) /* metro dependency 694: Dispatcher */];
|
||||
items2[1] = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_96072,
|
||||
LOCAL_APP_DETECTION_COMPLETE: LOCAL_APP_DETECTION_COMPLETE};
|
||||
const value3 = env1_7(LocalAppDetectionStore);
|
||||
return env1_6(this, _isNativeReflectConstruct_96067() ? global.Reflect.construct(value3, items2,
|
||||
env1_7(this).constructor) : value3.apply(this, items2));
|
||||
}
|
||||
|
||||
function value_96074(a0) { // fn#96074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:1821, offset: 0x02154713, size: 45 bytes, params: 2, frame: 11
|
||||
const r1 = a0 ?? env1_12;
|
||||
value = environment.__proto__;
|
||||
this.waitFor(ConsentStore);
|
||||
}
|
||||
|
||||
function value_96076(a0) { // fn#96076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:1946, offset: 0x02154740, size: 41 bytes, params: 2, frame: 9
|
||||
const getUserAgnosticState = this.getUserAgnosticState;
|
||||
return Reflect.apply(getUserAgnosticState, this, []).apps[a0] ?? env1_11;
|
||||
}
|
||||
|
||||
function value_96077(a0) { // fn#96077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:2051, offset: 0x02154769, size: 62 bytes, params: 2, frame: 12
|
||||
let value = environment.__proto__;
|
||||
const hasConsented = ConsentStore.hasConsented;
|
||||
const PERSONALIZATION = Consents.PERSONALIZATION;
|
||||
value = Reflect.apply(hasConsented, ConsentStore, [PERSONALIZATION]);
|
||||
return value ? this.getAppState(a0).detected : !!value;
|
||||
}
|
||||
|
||||
function value_96078() { // fn#96078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:2175, offset: 0x021547a7, size: 199 bytes, params: 1, frame: 22
|
||||
var r4;
|
||||
var r2;
|
||||
var value4;
|
||||
var appState;
|
||||
var lastScannedAt;
|
||||
var value6;
|
||||
var Date;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
const items2 = [];
|
||||
const value = environment.__proto__;
|
||||
const _createForOfIteratorHelperLoose_96064Binding = _createForOfIteratorHelperLoose_96064;
|
||||
const ALL_DETECTABLE_APP_NAMES = (require(12556) /* metro dependency 12556: LocalAppDetectionTypes */).ALL_DETECTABLE_APP_NAMES;
|
||||
const value2 = _createForOfIteratorHelperLoose_96064Binding(ALL_DETECTABLE_APP_NAMES);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
r4 = value3;
|
||||
while (true) {
|
||||
value4 = r4.value;
|
||||
appState = this.getAppState(value4);
|
||||
lastScannedAt = appState.lastScannedAt;
|
||||
value6 = lastScannedAt == null;
|
||||
if (value6) {
|
||||
r2 = value6;
|
||||
} else {
|
||||
Date = global.Date;
|
||||
value7 = Date.now();
|
||||
lastScannedAt = appState.lastScannedAt;
|
||||
value8 = value7 - lastScannedAt > 86400000;
|
||||
r2 = value8;
|
||||
}
|
||||
if (!r2) {
|
||||
continue;
|
||||
}
|
||||
items2.push(value4);
|
||||
value9 = value2();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value9;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (items2.length > 0) {
|
||||
(require(12557) /* metro dependency 12557: LocalAppDetectionUtils */).detectLocalApps(items2);
|
||||
}
|
||||
}
|
||||
|
||||
function value_96079({result}) { // fn#96079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12745:2479, offset: 0x0215486e, size: 158 bytes, params: 2, frame: 22
|
||||
var r4;
|
||||
var property;
|
||||
var value5;
|
||||
var property2;
|
||||
var apps;
|
||||
var value6;
|
||||
const Object = global.Object;
|
||||
const value = Object.entries(result);
|
||||
let length = value.length;
|
||||
if (length === 0) {
|
||||
return false;
|
||||
}
|
||||
const Date = global.Date;
|
||||
const value3 = Date.now();
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env1_12, undefined);
|
||||
length = value.length;
|
||||
if (0 < length) {
|
||||
r4 = 0;
|
||||
reducibleLoop2: while (true) {
|
||||
property = value[r4];
|
||||
value5 = env1_3(property, 2);
|
||||
property = value5[0];
|
||||
property2 = value5[1];
|
||||
apps = object2.apps;
|
||||
apps[property] = {detected: property2, lastScannedAt: value3};
|
||||
value6 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
length = value.length;
|
||||
if (value6 < length) {
|
||||
r4 = value6;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
break reducibleLoop2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,323 @@
|
||||
/* Metro module 12557; source: modules/local_app_detection/native/LocalAppDetectionUtils.tsx; dependencies: [5, 5078, 661, 12558, 12556, 478, 4486, 683, 694, 2] */
|
||||
function _fun96082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12747:6, offset: 0x02154a52, size: 221 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_96085 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const isGameCommunityUpsellMultiExperimentEnabled = function() {
|
||||
var GameCommunityUpsellMultiExperiment = require(dependencyMap[3]).GameCommunityUpsellMultiExperiment;
|
||||
return GameCommunityUpsellMultiExperiment.getConfig({location: 'LocalAppDetectionUtils'}).enabled;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const consentStore = importDefault(5078) /* metro dependency 5078: ConsentStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.AnalyticEvents;
|
||||
const env0_6 = constantsModule.Consents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/local_app_detection/native/LocalAppDetectionUtils.tsx');
|
||||
exports.detectLocalApps = function() {
|
||||
return _detectLocalApps.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_96083(a0, a1) { // fn#96083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12747:163, offset: 0x02154b2f, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun96084;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_96085(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_96085(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_96085(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun96084;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function getDetectableApp(a0) { // fn#96087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12747:1234, offset: 0x02154ce0, size: 1032 bytes, params: 2, frame: 14
|
||||
const DetectableAppNames = (require(12556) /* metro dependency 12556: LocalAppDetectionTypes */).DetectableAppNames;
|
||||
const ROBLOX = DetectableAppNames.ROBLOX;
|
||||
if (ROBLOX === a0) {
|
||||
return {'androidScheme': 'roblox', 'iosScheme': 'roblox'};
|
||||
}
|
||||
const MINECRAFT = DetectableAppNames.MINECRAFT;
|
||||
if (MINECRAFT === a0) {
|
||||
return {'androidScheme': 'minecraft', 'iosScheme': 'minecraft',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const FORTNITE = DetectableAppNames.FORTNITE;
|
||||
if (FORTNITE === a0) {
|
||||
return {'androidScheme': 'fortnite', 'iosScheme': 'com.epicgames.fortnite',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const GENSHIN = DetectableAppNames.GENSHIN;
|
||||
if (GENSHIN === a0) {
|
||||
return {'androidScheme': 'genshin', 'iosScheme': 'genshin',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const PUBG_MOBILE = DetectableAppNames.PUBG_MOBILE;
|
||||
if (PUBG_MOBILE === a0) {
|
||||
return {'androidScheme': 'pubgmobile', 'iosScheme': 'igame1320',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const CALL_OF_DUTY_MOBILE = DetectableAppNames.CALL_OF_DUTY_MOBILE;
|
||||
if (CALL_OF_DUTY_MOBILE === a0) {
|
||||
return {'androidScheme': 'codm', 'iosScheme': 'codm', predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const CLASH_OF_CLANS = DetectableAppNames.CLASH_OF_CLANS;
|
||||
if (CLASH_OF_CLANS === a0) {
|
||||
return {'androidScheme': 'clashofclans', 'iosScheme': 'clashofclans',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const MOBILE_LEGENDS_BANG_BANG = DetectableAppNames.MOBILE_LEGENDS_BANG_BANG;
|
||||
if (MOBILE_LEGENDS_BANG_BANG === a0) {
|
||||
return {'androidScheme': 'mobilelegends', 'iosScheme': 'mobilelegends',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const GARENA_FREE_FIRE = DetectableAppNames.GARENA_FREE_FIRE;
|
||||
if (GARENA_FREE_FIRE === a0) {
|
||||
return {'androidScheme': 'garenafreefire', 'iosScheme': 'freefire',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const POKEMON_GO = DetectableAppNames.POKEMON_GO;
|
||||
if (POKEMON_GO === a0) {
|
||||
return {'androidScheme': 'pokemongo', 'iosScheme': 'pokemongo',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const POKEMON_TCG_POCKET = DetectableAppNames.POKEMON_TCG_POCKET;
|
||||
if (POKEMON_TCG_POCKET === a0) {
|
||||
return {'androidScheme': 'pokemontcgp', 'iosScheme': 'pokemontcgp',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const CLASH_ROYALE = DetectableAppNames.CLASH_ROYALE;
|
||||
if (CLASH_ROYALE === a0) {
|
||||
return {'androidScheme': 'clashroyale', 'iosScheme': 'clashroyale',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const AMONG_US = DetectableAppNames.AMONG_US;
|
||||
if (AMONG_US === a0) {
|
||||
return {'androidScheme': 'amongus', 'iosScheme': 'amongus',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const MONOPOLY_GO = DetectableAppNames.MONOPOLY_GO;
|
||||
if (MONOPOLY_GO === a0) {
|
||||
return {'androidScheme': 'monopolygo', 'iosScheme': 'monopolygo',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const BRAWL_STARS = DetectableAppNames.BRAWL_STARS;
|
||||
if (BRAWL_STARS === a0) {
|
||||
return {'androidScheme': 'brawlstars', 'iosScheme': 'brawlstars',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const BRAWLHALLA = DetectableAppNames.BRAWLHALLA;
|
||||
if (BRAWLHALLA === a0) {
|
||||
return {'androidScheme': 'brawlhalla', 'iosScheme': null,
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
const WUTHERING_WAVES = DetectableAppNames.WUTHERING_WAVES;
|
||||
if (WUTHERING_WAVES === a0) {
|
||||
return {'androidScheme': 'wutheringwaves', 'iosScheme': 'akioversea',
|
||||
predicate: isGameCommunityUpsellMultiExperimentEnabled};
|
||||
}
|
||||
}
|
||||
|
||||
function _detectLocalApps() { // fn#96088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12747:3896, offset: 0x021550e8, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun96090).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun96090(a0) { // fn#96090, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12747:3951, offset: 0x02155125, size: 356 bytes, params: 2, frame: 26
|
||||
var r4;
|
||||
var r16;
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var done;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var isIOS;
|
||||
var androidScheme;
|
||||
var iosScheme;
|
||||
var predicate;
|
||||
var value9;
|
||||
var value10;
|
||||
var canOpenUrlScheme;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var track;
|
||||
var CAN_OPEN_URL_REQUESTED;
|
||||
var value14;
|
||||
if (true) {
|
||||
var object2 = {};
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_4;
|
||||
var hasConsented = binding.hasConsented;
|
||||
var PERSONALIZATION = env2_6.PERSONALIZATION;
|
||||
if (Reflect.apply(hasConsented, binding, [PERSONALIZATION])) {
|
||||
value3 = undefined;
|
||||
value4 = env2_7(a0);
|
||||
value5 = value4();
|
||||
done = value5.done;
|
||||
reducibleJoin16: while (true) {
|
||||
if (done) {
|
||||
break reducibleJoin16;
|
||||
}
|
||||
r4 = value5;
|
||||
reducibleLoop3: while (true) {
|
||||
value6 = r4.value;
|
||||
value7 = env2_10(value6);
|
||||
binding = env2_0;
|
||||
value8 = binding(env2_2[5]);
|
||||
isIOS = value8.isIOS;
|
||||
if (Reflect.apply(isIOS, value8, [])) {
|
||||
iosScheme = value7.iosScheme;
|
||||
r16 = iosScheme;
|
||||
} else {
|
||||
androidScheme = value7.androidScheme;
|
||||
r16 = androidScheme;
|
||||
}
|
||||
if (r16 != null) {
|
||||
predicate = value7.predicate;
|
||||
reducibleJoin9: while (true) {
|
||||
if (predicate == null) {
|
||||
r2 = value3;
|
||||
break reducibleJoin9;
|
||||
}
|
||||
predicate = value7.predicate;
|
||||
value9 = Reflect.apply(predicate, value7, []);
|
||||
r2 = value9;
|
||||
break reducibleJoin9;
|
||||
}
|
||||
reducibleJoin10: while (true) {
|
||||
if (r2 !== false) {
|
||||
binding = env2_0;
|
||||
value10 = binding(env2_2[6]);
|
||||
canOpenUrlScheme = value10.canOpenUrlScheme;
|
||||
yield Reflect.apply(canOpenUrlScheme, value10, [r16]);
|
||||
value11 = undefined;
|
||||
value12 = false;
|
||||
if (value12) {
|
||||
return value11;
|
||||
}
|
||||
object2[value6] = value11;
|
||||
binding = env2_1;
|
||||
value13 = binding(env2_2[7]);
|
||||
track = value13.track;
|
||||
CAN_OPEN_URL_REQUESTED = env2_5.CAN_OPEN_URL_REQUESTED;
|
||||
Reflect.apply(track, value13, [CAN_OPEN_URL_REQUESTED, {scheme: r16, result: value11}]);
|
||||
value14 = value4();
|
||||
done = value14.done;
|
||||
if (done) {
|
||||
break reducibleJoin16;
|
||||
}
|
||||
r4 = value14;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
break reducibleJoin10;
|
||||
}
|
||||
}
|
||||
object2[value6] = false;
|
||||
value14 = value4();
|
||||
done = value14.done;
|
||||
if (done) {
|
||||
break reducibleJoin16;
|
||||
}
|
||||
r4 = value14;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = env2_1(env2_2[8]);
|
||||
value.dispatch({type: 'LOCAL_APP_DETECTION_COMPLETE', result: object2});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,223 @@
|
||||
/* Metro module 15281; source: modules/local_app_detection/native/RobloxConnectionCoachmark.tsx; dependencies: [57, 31, 27, 5040, 1878, 12555, 661, 1376, 33, 4501, 697, 3868, 1585, 4080, 6275, 6758, 6806, 4572, 4573, 1244, 4578, 9757, 9354, 7007, 3866, 4915, 1423, 1305, 7744, 566, 12556, 5042, 3968, 1365, 2] */
|
||||
function _fun116885(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:6, offset: 0x02499c9d, size: 580 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const closure = UnionIcon;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const localAppDetectionStore = importDefault(12555) /* metro dependency 12555: LocalAppDetectionStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.AnalyticsLocations;
|
||||
const env0_10 = value.PlatformTypes;
|
||||
const env0_11 = value.UserSettingsSections;
|
||||
const env0_12 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'width': 40, 'height': 40, 'borderRadius': null, 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object3.robloxIconContainer = object4;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.content = {paddingHorizontal: PX_16};
|
||||
object3.text = {textAlign: 'center'};
|
||||
object3.avatarContainer = {position: 'relative'};
|
||||
const object5 = {'zIndex': 1, 'position': 'absolute', 'borderColor': null, 'borderRadius': null, 'borderWidth': 1,
|
||||
'width': '100%', 'height': '100%'};
|
||||
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
|
||||
object5.borderColor = BORDER_STRONG;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.avatarInnerBorder = object5;
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/local_app_detection/native/RobloxConnectionCoachmark.tsx');
|
||||
exports.default = RobloxConnectionActionSheet;
|
||||
exports.UnionIcon = closure;
|
||||
exports.useShouldShowRobloxConnectionCoachmark = useShouldShowRobloxConnectionCoachmark;
|
||||
}
|
||||
|
||||
function RobloxIcon({theme}) { // fn#116886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:775, offset: 0x02499ee1, size: 276 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const isThemeDark2 = (require(3866) /* metro dependency 3866: themes */).isThemeDark(theme);
|
||||
const defaultImport = importDefault(4915) /* metro dependency 4915: Platforms */;
|
||||
const get = defaultImport.get;
|
||||
const ROBLOX = PlatformTypes.ROBLOX;
|
||||
const value2 = Reflect.apply(get, defaultImport, [ROBLOX]);
|
||||
const r8 = isThemeDark2 ? 'black' : 'white';
|
||||
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const makeSource = avatarUtilsModule.makeSource;
|
||||
const icon = value2.icon;
|
||||
const source = Reflect.apply(makeSource, avatarUtilsModule, [isThemeDark2 ? icon.darkPNG : icon.lightPNG]);
|
||||
const items2 = [styles.robloxIconContainer];
|
||||
items2[1] = {backgroundColor: r8};
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
|
||||
const LARGE = IconSizes.LARGE;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Icon
|
||||
size={LARGE}
|
||||
source={source}
|
||||
disableColor
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function UnionIcon(a0) { // fn#116887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:1090, offset: 0x02499ff5, size: 357 bytes, params: 2, frame: 29
|
||||
const r15 = (require(3866) /* metro dependency 3866: themes */).isThemeDark(a0.theme) ? 'white' : 'black';
|
||||
const value4 = env0_4.useId();
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const Path = (require(7744) /* metro dependency 7744 */).Path;
|
||||
const path = <Path fill="url(#a)" d="M1.7002 0.799805C2.36285 0.79991 2.90039 1.33732 2.90039 2C2.90029 2.66259 2.36278 3.20009 1.7002 3.2002C1.03752 3.2002 0.500106 2.66265 0.5 2C0.5 1.33726 1.03745 0.799805 1.7002 0.799805ZM8.90039 0.799805C9.56297 0.799989 10.0996 1.33737 10.0996 2C10.0995 2.66254 9.56291 3.20001 8.90039 3.2002C8.23771 3.2002 7.70029 2.66266 7.7002 2C7.7002 1.33726 8.23765 0.799805 8.90039 0.799805ZM16.0996 0.799805C16.7624 0.799805 17.2998 1.33726 17.2998 2C17.2997 2.66266 16.7623 3.2002 16.0996 3.2002C15.4371 3.19996 14.9005 2.66251 14.9004 2C14.9004 1.3374 15.4371 0.800042 16.0996 0.799805ZM23.2998 0.799805C23.9625 0.799805 24.5 1.33726 24.5 2C24.4999 2.66266 23.9625 3.2002 23.2998 3.2002C22.6372 3.20006 22.0997 2.66258 22.0996 2C22.0996 1.33734 22.6372 0.799936 23.2998 0.799805Z" />;
|
||||
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
|
||||
const LinearGradient = (require(7744) /* metro dependency 7744 */).LinearGradient;
|
||||
const Stop = (require(7744) /* metro dependency 7744 */).Stop;
|
||||
return ((Component) => <Component width={25} height={4} viewBox="0 0 25 4" id={value4}>{path}<Defs><LinearGradient id="a" x1={0.5} y1={2} x2={24.5} y2={2} gradientUnits="userSpaceOnUse"><Stop stopColor={r15} stopOpacity={0.3} /><Stop offset={1} stopColor={r15} stopOpacity={0.7} /></LinearGradient></Defs></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
function UserIcon_116888() { // fn#116888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:2298, offset: 0x0249a15a, size: 198 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const view = <View style={styles.avatarInnerBorder} />;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const NORMAL = AvatarSizes.NORMAL;
|
||||
return (
|
||||
<View style={styles.avatarContainer}>
|
||||
{view}
|
||||
<Avatar
|
||||
size={NORMAL}
|
||||
user={currentUser}
|
||||
guildId={undefined}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function RobloxConnectionActionSheet({markAsDismissed}) { // fn#116890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:2655, offset: 0x0249a220, size: 985 bytes, params: 2, frame: 36
|
||||
const styles = useStyles();
|
||||
const nativeModule = require(3868) /* metro dependency 3868: native */;
|
||||
const useThemeContext = nativeModule.useThemeContext;
|
||||
const theme = Reflect.apply(useThemeContext, nativeModule, []).theme;
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const closure = function() {
|
||||
importDefault(dependencyMap[13]).hideActionSheet();
|
||||
if (markAsDismissed != null) {
|
||||
markAsDismissed(ContentDismissActionType.DISMISS);
|
||||
}
|
||||
};
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {startExpanded: true, contentStyles: styles.content};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const ActionSheetCloseButton = (require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton;
|
||||
bottomSheetProps.header = <BottomSheetTitleHeader title={null} leading={<ActionSheetCloseButton onPress={closure} />} />;
|
||||
bottomSheetProps.onDismiss = function() {
|
||||
return markAsDismissed(ContentDismissActionType.DISMISS);
|
||||
};
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const object = {paddingBottom: bottom};
|
||||
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const items2 = [<Stack2 justify="center" align="center" direction="horizontal"><RobloxIcon theme={theme} /><UnionIcon theme={theme} /><UserIcon_116888 /></Stack2>];
|
||||
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
items2[1] = <Stack3 justify="center"><Text variant="heading-xl/bold" style={styles.text}>{Reflect.apply(string,
|
||||
intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.t3asUZ])}</Text><Text variant="text-md/medium" style={styles.text}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.no96NU)}</Text></Stack3>;
|
||||
const Stack4 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const ItuabN = (require(1244) /* metro dependency 1244: indexNative */).t.ItuabN;
|
||||
const WindowLaunchIcon = (require(9757) /* metro dependency 9757: WindowLaunchIcon */).WindowLaunchIcon;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
const button = <Button text={Reflect.apply(string, intl,
|
||||
[ItuabN])} icon={<WindowLaunchIcon size="sm" color={WHITE} />} iconPosition="end" size="lg" onPress={onPress_116893} />;
|
||||
string = intl.string;
|
||||
const DiGJy3 = (require(1244) /* metro dependency 1244: indexNative */).t.DiGJy3;
|
||||
items2[2] = <Stack4>{button}<Button text={Reflect.apply(string, intl,
|
||||
[DiGJy3])} variant="secondary" size="lg" onPress={closure} /></Stack4>;
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
<Stack spacing={24} style={object}>
|
||||
{items2}
|
||||
</Stack>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function useShouldShowRobloxConnectionCoachmark() { // fn#116894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:4122, offset: 0x0249a704, size: 248 bytes, params: 1, frame: 19
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocalAppDetectionStore],
|
||||
function() {
|
||||
return LocalAppDetectionStore.isAppInstalled(require(dependencyMap[30]).DetectableAppNames.ROBLOX);
|
||||
});
|
||||
const [property, env0_2] = env0_3(env0_4.useState(false), 2);
|
||||
const {fetchingAccounts,
|
||||
hasRoloxAccount} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ConnectedAccountsStore],
|
||||
_fun116896);
|
||||
env0_4.useEffect(_fun116898, [property, value2]);
|
||||
env0_4.useEffect(_fun116899, [hasRoloxAccount]);
|
||||
return !fetchingAccounts && value2 && !hasRoloxAccount;
|
||||
}
|
||||
|
||||
function RobloxConnectionActionSheetOnPress_116893() { // fn#116893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:3750, owner: RobloxConnectionActionSheet.onPress, offset: 0x0249a65b, size: 169 bytes, params: 1, frame: 14
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
if (markAsDismissed != null) {
|
||||
markAsDismissed(ContentDismissActionType.PRIMARY);
|
||||
}
|
||||
const defaultImport2 = importDefault(9354) /* metro dependency 9354: authorizeConnectionNative */;
|
||||
const ROBLOX = PlatformTypes.ROBLOX;
|
||||
const ROBLOX_CONNECTION_ACTION_SHEET = AnalyticsLocations.ROBLOX_CONNECTION_ACTION_SHEET;
|
||||
defaultImport2({platformType: ROBLOX, location: ROBLOX_CONNECTION_ACTION_SHEET});
|
||||
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
||||
const openUserSettings = openUserSettingsModule.openUserSettings;
|
||||
const CONNECTIONS = UserSettingsSections.CONNECTIONS;
|
||||
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: CONNECTIONS}]);
|
||||
}
|
||||
|
||||
function _fun116896() { // fn#116896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:4351, offset: 0x0249a832, size: 67 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
object2.fetchingAccounts = ConnectedAccountsStore.isFetching();
|
||||
value = ConnectedAccountsStore.getAccounts();
|
||||
value = value.find(function({type}) {
|
||||
return type === PlatformTypes.ROBLOX;
|
||||
});
|
||||
object2.hasRoloxAccount = value != null;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun116898() { // fn#116898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:4521, offset: 0x0249a890, size: 70 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
if (env0_0 && !env0_1) {
|
||||
env0_2(true);
|
||||
value = environment.__proto__;
|
||||
value = importDefault(5042) /* metro dependency 5042: ConnectedAccountsActionCreators */;
|
||||
value.fetch();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116899() { // fn#116899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15478:4580, offset: 0x0249a8d6, size: 92 bytes, params: 1, frame: 16
|
||||
var moduleValue;
|
||||
if (hasRoloxAccount) {
|
||||
value = environment.__proto__;
|
||||
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
moduleValue.UNSAFE_markDismissibleContentAsDismissed((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.ROBLOX_CONNECTION_COACHMARK,
|
||||
|
||||
{dismissAction: ContentDismissActionType.INDIRECT_ACTION});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user