This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,289 +1,296 @@
/* Metro module 2742; source: modules/age_assurance/AgeAssurance.messages.js; dependencies: [1247, 2743, 2744, 2745, 2746, 2747, 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2755, 2756, 2757, 2758, 2759, 2760, 2761, 2762, 2763, 2764, 2765, 2766, 2767, 2768, 2769, 2770, 2771, 2772, 2773, 1282, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun24210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#24210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:6, offset: 0x00f1720a, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_24211, cs: cs_24213, da: da_24215, de: de_24217, el: el_24219};
object2['en-GB'] = _fun24221;
object2['es-419'] = _fun24223;
object2['es-ES'] = _fun24225;
object2.fi = fi_24227;
object2.fr = fr_24229;
object2.hi = hi_24231;
object2.hr = hr_24233;
object2.hu = hu_24235;
object2.it = it_24237;
object2.ja = ja_24239;
object2.ko = ko_24241;
object2.lt = lt_24243;
object2.nl = nl_24245;
object2.no = no_24247;
object2.pl = pl_24249;
object2['pt-BR'] = _fun24251;
object2.ro = ro_24253;
object2.ru = ru_24255;
object2['sv-SE'] = _fun24257;
object2.th = th_24259;
object2.tr = tr_24261;
object2.uk = uk_24263;
object2.vi = vi_24265;
object2['zh-CN'] = _fun24267;
object2['zh-TW'] = _fun24269;
object2['en-US'] = _fun24271;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeAssurance.messages.js');
object = {bg: bg_24211, cs: cs_24213, da: da_24215, de: de_24217, el: el_24219};
object['en-GB'] = _fun24221;
object['es-419'] = _fun24223;
object['es-ES'] = _fun24225;
object.fi = fi_24227;
object.fr = fr_24229;
object.hi = hi_24231;
object.hr = hr_24233;
object.hu = hu_24235;
object.it = it_24237;
object.ja = ja_24239;
object.ko = ko_24241;
object.lt = lt_24243;
object.nl = nl_24245;
object.no = no_24247;
object.pl = pl_24249;
object['pt-BR'] = _fun24251;
object.ro = ro_24253;
object.ru = ru_24255;
object['sv-SE'] = _fun24257;
object.th = th_24259;
object.tr = tr_24261;
object.uk = uk_24263;
object.vi = vi_24265;
object['zh-CN'] = _fun24267;
object['zh-TW'] = _fun24269;
object['en-US'] = _fun24271;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeAssurance.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_24211() { // fn#24211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:102, offset: 0x00f173cf, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2743) /* metro dependency 2743 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_24213() { // fn#24213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:165, offset: 0x00f17410, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2744) /* metro dependency 2744 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_24215() { // fn#24215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:228, offset: 0x00f17451, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2745) /* metro dependency 2745 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_24217() { // fn#24217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:291, offset: 0x00f17492, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2746) /* metro dependency 2746 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_24219() { // fn#24219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:354, offset: 0x00f174d3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2747) /* metro dependency 2747 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24221() { // fn#24221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:422, offset: 0x00f17514, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2748) /* metro dependency 2748 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24223() { // fn#24223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:491, offset: 0x00f17555, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2749) /* metro dependency 2749 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24225() { // fn#24225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:559, offset: 0x00f17596, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2750) /* metro dependency 2750 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_24227() { // fn#24227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:622, offset: 0x00f175d7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2751) /* metro dependency 2751 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_24229() { // fn#24229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:685, offset: 0x00f17618, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2752) /* metro dependency 2752 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_24231() { // fn#24231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:749, offset: 0x00f17659, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2753) /* metro dependency 2753 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_24233() { // fn#24233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:813, offset: 0x00f1769a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2754) /* metro dependency 2754 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_24235() { // fn#24235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:877, offset: 0x00f176db, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2755) /* metro dependency 2755 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_24237() { // fn#24237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:941, offset: 0x00f1771c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2756) /* metro dependency 2756 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_24239() { // fn#24239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1005, offset: 0x00f1775d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2757) /* metro dependency 2757 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_24241() { // fn#24241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1069, offset: 0x00f1779e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2758) /* metro dependency 2758 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_24243() { // fn#24243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1133, offset: 0x00f177df, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2759) /* metro dependency 2759 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_24245() { // fn#24245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1197, offset: 0x00f17820, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2760) /* metro dependency 2760 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_24247() { // fn#24247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1261, offset: 0x00f17861, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2761) /* metro dependency 2761 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_24249() { // fn#24249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1325, offset: 0x00f178a2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2762) /* metro dependency 2762 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24251() { // fn#24251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1394, offset: 0x00f178e3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2763) /* metro dependency 2763 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_24253() { // fn#24253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1458, offset: 0x00f17924, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2764) /* metro dependency 2764 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_24255() { // fn#24255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1522, offset: 0x00f17965, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2765) /* metro dependency 2765 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24257() { // fn#24257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1591, offset: 0x00f179a6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2766) /* metro dependency 2766 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_24259() { // fn#24259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1655, offset: 0x00f179e7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2767) /* metro dependency 2767 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_24261() { // fn#24261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1719, offset: 0x00f17a28, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2768) /* metro dependency 2768 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_24263() { // fn#24263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1783, offset: 0x00f17a69, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2769) /* metro dependency 2769 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_24265() { // fn#24265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1847, offset: 0x00f17aaa, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2770) /* metro dependency 2770 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24267() { // fn#24267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1916, offset: 0x00f17aeb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2771) /* metro dependency 2771 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24269() { // fn#24269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1985, offset: 0x00f17b2c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2772) /* metro dependency 2772 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24271() { // fn#24271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:2054, offset: 0x00f17b6d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2773) /* metro dependency 2773 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_24211() { // fn#24211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:102, offset: 0x00f173cf, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2743) /* metro dependency 2743 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_24213() { // fn#24213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:165, offset: 0x00f17410, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2744) /* metro dependency 2744 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_24215() { // fn#24215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:228, offset: 0x00f17451, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2745) /* metro dependency 2745 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_24217() { // fn#24217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:291, offset: 0x00f17492, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2746) /* metro dependency 2746 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_24219() { // fn#24219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:354, offset: 0x00f174d3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2747) /* metro dependency 2747 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24221() { // fn#24221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:422, offset: 0x00f17514, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2748) /* metro dependency 2748 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24223() { // fn#24223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:491, offset: 0x00f17555, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2749) /* metro dependency 2749 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24225() { // fn#24225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:559, offset: 0x00f17596, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2750) /* metro dependency 2750 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_24227() { // fn#24227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:622, offset: 0x00f175d7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2751) /* metro dependency 2751 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_24229() { // fn#24229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:685, offset: 0x00f17618, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2752) /* metro dependency 2752 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_24231() { // fn#24231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:749, offset: 0x00f17659, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2753) /* metro dependency 2753 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_24233() { // fn#24233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:813, offset: 0x00f1769a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2754) /* metro dependency 2754 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_24235() { // fn#24235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:877, offset: 0x00f176db, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2755) /* metro dependency 2755 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_24237() { // fn#24237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:941, offset: 0x00f1771c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2756) /* metro dependency 2756 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_24239() { // fn#24239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1005, offset: 0x00f1775d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2757) /* metro dependency 2757 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_24241() { // fn#24241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1069, offset: 0x00f1779e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2758) /* metro dependency 2758 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_24243() { // fn#24243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1133, offset: 0x00f177df, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2759) /* metro dependency 2759 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_24245() { // fn#24245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1197, offset: 0x00f17820, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2760) /* metro dependency 2760 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_24247() { // fn#24247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1261, offset: 0x00f17861, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2761) /* metro dependency 2761 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_24249() { // fn#24249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1325, offset: 0x00f178a2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2762) /* metro dependency 2762 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24251() { // fn#24251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1394, offset: 0x00f178e3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2763) /* metro dependency 2763 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_24253() { // fn#24253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1458, offset: 0x00f17924, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2764) /* metro dependency 2764 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_24255() { // fn#24255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1522, offset: 0x00f17965, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2765) /* metro dependency 2765 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24257() { // fn#24257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1591, offset: 0x00f179a6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2766) /* metro dependency 2766 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_24259() { // fn#24259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1655, offset: 0x00f179e7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2767) /* metro dependency 2767 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_24261() { // fn#24261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1719, offset: 0x00f17a28, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2768) /* metro dependency 2768 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_24263() { // fn#24263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1783, offset: 0x00f17a69, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2769) /* metro dependency 2769 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_24265() { // fn#24265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1847, offset: 0x00f17aaa, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2770) /* metro dependency 2770 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24267() { // fn#24267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1916, offset: 0x00f17aeb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2771) /* metro dependency 2771 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24269() { // fn#24269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:1985, offset: 0x00f17b2c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2772) /* metro dependency 2772 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun24271() { // fn#24271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2869:2054, offset: 0x00f17b6d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2773) /* metro dependency 2773 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun24210, 2742, [1247, 2743, 2744, 2745, 2746, 2747, 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2755,
2756, 2757, 2758, 2759, 2760, 2761, 2762, 2763, 2764, 2765, 2766, 2767, 2768, 2769, 2770, 2771, 2772, 2773,
1282,
2]) /* metro module 2742, dependencies: [1247, 2743, 2744, 2745, 2746, 2747, 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2755, 2756, 2757, 2758, 2759, 2760, 2761, 2762, 2763, 2764, 2765, 2766, 2767, 2768, 2769, 2770, 2771, 2772, 2773, 1282, 2] */;
@@ -1,112 +1,113 @@
/* Metro module 5263; source: modules/age_assurance/AgeVerificationActionCreators.native.tsx; dependencies: [5, 5262, 33, 1581, 4497, 5264, 5080, 5265, 1962, 4813, 3835, 5469, 5470, 3853, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import Linking from '../../lib/native/Linking.tsx'; /* Metro dependency 3853 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as MetaQuestUtilsAndroidModule from '../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
import * as AgeVerificationConstantsModule from './AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
function _fun46809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:6, offset: 0x011af544, size: 206 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const ageVerificationConstantsModule = require(5262) /* metro dependency 5262: AgeVerificationConstants */;
const env0_4 = ageVerificationConstantsModule.AGE_VERIFICATION_MODAL_KEY;
const env0_5 = ageVerificationConstantsModule.AGE_VERIFICATION_GET_STARTED_MODAL_KEY;
const env0_6 = ageVerificationConstantsModule.AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
object2 = {showAgeVerification: showAgeVerification,
object = {showAgeVerification: showAgeVerification,
showAgeVerificationGetStartedModal: showAgeVerificationGetStartedModal, openUrl: openUrl};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationActionCreators.native.tsx');
exports.default = object2;
}
function showAgeVerification(a0) { // fn#46810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:276, offset: 0x011af612, size: 245 bytes, params: 2, frame: 19
var defaultImport;
const onClose = a0.onClose;
const r5 = onClose !== undefined ? onClose : function() {
};
a0.shouldShowExpressiveModal;
const webviewUrl = a0.webviewUrl;
const object2 = {'onClose': 0, 'shouldShowExpressiveModal': 0, 'webviewUrl': 0};
silentSetPrototypeOf(object2, null, undefined);
const env0_2 = copyDataProperties({}, a0, object2, undefined);
const metaQuestUtilsAndroidModule = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
if (metaQuestUtilsAndroidModule.isMetaQuest()) {
(require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert(AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY,
((Component) => <Component />)(importDefault(5264) /* metro dependency 5264: AgeVerificationQuestUnsupportedAlertModal */),
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationActionCreators.native.tsx');
exports.default = object;
function showAgeVerification(a0) { // fn#46810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:276, offset: 0x011af612, size: 245 bytes, params: 2, frame: 19
var defaultImport;
const onClose = a0.onClose;
const r5 = onClose !== undefined ? onClose : function() {
};
a0.shouldShowExpressiveModal;
const webviewUrl = a0.webviewUrl;
const object = {'onClose': 0, 'shouldShowExpressiveModal': 0, 'webviewUrl': 0};
silentSetPrototypeOf(object, null, undefined);
const env0_2 = copyDataProperties({}, a0, object, undefined);
if (MetaQuestUtilsAndroidModule.isMetaQuest()) {
(require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert(AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY,
r5);
} else if (webviewUrl != null) {
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.pushLazy(env0_3(_fun46813), {}, AGE_VERIFICATION_MODAL_KEY);
((Component) => <Component />)(importDefault(5264) /* metro dependency 5264: AgeVerificationQuestUnsupportedAlertModal */),
r5);
} else if (webviewUrl != null) {
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.pushLazy(Module00005(_fun46813), {}, AGE_VERIFICATION_MODAL_KEY);
}
function* _fun46813() { // fn#46813, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:433, offset: 0x011af710, size: 89 bytes, params: 1, frame: 15
var environment;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[8])(binding2[7], binding2.paths);
value = undefined;
if (false) {
return value;
}
const env0_0 = value.default;
return _fun46814;
function _fun46814() { // fn#46814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:495, offset: 0x011af769, size: 58 bytes, params: 1, frame: 14
const binding = env3_7;
const binding2 = env0_0;
const object = {};
object.webviewUrl = importDefault;
object.onClose = require;
copyDataProperties(object, dependencyMap, require);
return binding(binding2, object);
}
}
}
}
function showAgeVerificationGetStartedModal({entryPoint, onClose}) { // fn#46815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:579, offset: 0x011af7a3, size: 282 bytes, params: 2, frame: 21
var defaultImport;
var moduleValue5;
var env0_1;
var env0_2;
if ((require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()) {
moduleValue5 = require(4497) /* metro dependency 4497: useAlertStoreNative */;
moduleValue5.openAlert(AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY,
((Component) => <Component />)(importDefault(5264) /* metro dependency 5264: AgeVerificationQuestUnsupportedAlertModal */),
onClose);
} else {
env0_1 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).isAgeVerified() && (require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */).hasAgeGatedFeatures();
env0_2 = (require(5469) /* metro dependency 5469: AgeVerificationExpressiveModalEverywhereExperiment */).isAgeVerificationExpressiveModalEverywhereEnabled(entryPoint);
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.pushLazy(env0_3(_fun46817), {}, AGE_VERIFICATION_GET_STARTED_MODAL_KEY);
function showAgeVerificationGetStartedModal({entryPoint, onClose}) { // fn#46815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:579, offset: 0x011af7a3, size: 282 bytes, params: 2, frame: 21
var defaultImport;
var moduleValue5;
var env0_1;
var env0_2;
if ((require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()) {
moduleValue5 = require(4497) /* metro dependency 4497: useAlertStoreNative */;
moduleValue5.openAlert(AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY,
((Component) => <Component />)(importDefault(5264) /* metro dependency 5264: AgeVerificationQuestUnsupportedAlertModal */),
onClose);
} else {
env0_1 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).isAgeVerified() && (require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */).hasAgeGatedFeatures();
env0_2 = (require(5469) /* metro dependency 5469: AgeVerificationExpressiveModalEverywhereExperiment */).isAgeVerificationExpressiveModalEverywhereEnabled(entryPoint);
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.pushLazy(Module00005(_fun46817), {}, AGE_VERIFICATION_GET_STARTED_MODAL_KEY);
}
function* _fun46817() { // fn#46817, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:821, offset: 0x011af8c6, size: 89 bytes, params: 1, frame: 15
var environment;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[8])(binding2[12], binding2.paths);
value = undefined;
if (false) {
return value;
}
const env0_0 = value.default;
return _fun46818;
function _fun46818() { // fn#46818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:884, offset: 0x011af91f, size: 56 bytes, params: 1, frame: 14
return env3_7(env0_0, {entryPoint: require, isRetry: importDefault, useEmbeddedMethods: dependencyMap});
}
}
}
}
function openUrl(a0) { // fn#46819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:958, offset: 0x011af957, size: 41 bytes, params: 2, frame: 12
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(a0);
}
function* _fun46813() { // fn#46813, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:433, offset: 0x011af710, size: 89 bytes, params: 1, frame: 15
var environment;
if (false) {
return undefined;
function openUrl(a0) { // fn#46819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:958, offset: 0x011af957, size: 41 bytes, params: 2, frame: 12
(Linking).openURL(a0);
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[8])(binding2[7], binding2.paths);
value = undefined;
if (false) {
return value;
}
const env0_0 = value.default;
return _fun46814;
}
function* _fun46817() { // fn#46817, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:821, offset: 0x011af8c6, size: 89 bytes, params: 1, frame: 15
var environment;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[8])(binding2[12], binding2.paths);
value = undefined;
if (false) {
return value;
}
const env0_0 = value.default;
return _fun46818;
}
function _fun46814() { // fn#46814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:495, offset: 0x011af769, size: 58 bytes, params: 1, frame: 14
const binding = env3_7;
const binding2 = env0_0;
const object2 = {};
object2.webviewUrl = importDefault;
object2.onClose = require;
copyDataProperties(object2, dependencyMap, require);
return binding(binding2, object2);
}
function _fun46818() { // fn#46818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:884, offset: 0x011af91f, size: 56 bytes, params: 1, frame: 14
return env3_7(env0_0, {entryPoint: require, isRetry: importDefault, useEmbeddedMethods: dependencyMap});
}
global.__d(_fun46809, 5263, [5, 5262, 33, 1581, 4497, 5264, 5080, 5265, 1962, 4813, 3835, 5469, 5470, 3853,
2]) /* metro module 5263, dependencies: [5, 5262, 33, 1581, 4497, 5264, 5080, 5265, 1962, 4813, 3835, 5469, 5470, 3853, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 5074; source: modules/age_assurance/AgeVerificationAnalyticsUtils.tsx; dependencies: [1379, 661, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun44005(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5252:6, offset: 0x01165511, size: 851 bytes, params: 8, frame: 24
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const object = {PRIMARY: 1};
object[1] = 'PRIMARY';
object.RETRY = 2;
object[2] = 'RETRY';
object.EXPRESSIVE_PRIMARY = 3;
object[3] = 'EXPRESSIVE_PRIMARY';
object.SAFETY_FLOWS = 4;
object[4] = 'SAFETY_FLOWS';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationAnalyticsUtils.tsx');
const object2 = {PRIMARY: 1};
object2[1] = 'PRIMARY';
object2.RETRY = 2;
object2[2] = 'RETRY';
object2.EXPRESSIVE_PRIMARY = 3;
object2[3] = 'EXPRESSIVE_PRIMARY';
object2.SAFETY_FLOWS = 4;
object2[4] = 'SAFETY_FLOWS';
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationAnalyticsUtils.tsx');
exports.AgeVerificationModalEntryPoint = {GET_STARTED_MODAL: 'get_started_modal', RETRY_MODAL: 'retry_modal',
NSFW_GUILD: 'nsfw_guild', NSFW_AGE_GATE: 'nsfw_age_gate', OBSCURED_MEDIA: 'obscured_media',
SYSTEM_DM_RETRY_BUTTON: 'system_dm_retry_button', DEV_TOOLS_QUICK_ACTIONS: 'dev_tools_quick_actions',
@@ -29,7 +32,7 @@ function _fun44005(global, require, importDefault, importAll, module, exports, d
AGE_RESTRICTED_DM_COMMANDS_SETTINGS: 'age_restricted_dm_commands_settings',
AGE_RESTRICTED_SERVERS_ACCESS_SETTINGS: 'age_restricted_servers_access_settings',
FAMILY_CENTER_CONNECTION: 'family_center_connection'};
exports.AgeVerificationModalVersion = object;
exports.AgeVerificationModalVersion = object2;
exports.AgeVerificationModalCta = {MANUAL_REVIEW_REQUEST: 'manual_review_request', LEARN_MORE: 'learn_more',
GET_STARTED: 'get_started', SYSTEM_DMS_LEARN_MORE: 'system_dms_learn_more', METHOD_SELECT: 'method_select',
LOG_OUT: 'log_out'};
@@ -70,26 +73,27 @@ function _fun44005(global, require, importDefault, importAll, module, exports, d
var AGE_VERIFICATION_TOAST_VIEWED = AnalyticEvents.AGE_VERIFICATION_TOAST_VIEWED;
defaultImport.track(AGE_VERIFICATION_TOAST_VIEWED, {toast_type: a0});
};
}
function trackNsfwSpaceWarningModalClicked(a0, a1, a2, a3) { // fn#44010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5252:3475, offset: 0x0116598b, size: 161 bytes, params: 5, frame: 17
var r5;
let value = null;
const r1 = value != a2 ? ChannelStore.getChannel(a2) : value;
const value4 = undefined;
value = value != (value == r1 ? value4 : r1.topic);
if (value) {
value = r1.topic.trim();
value = value !== '';
r5 = value;
} else {
r5 = value;
function trackNsfwSpaceWarningModalClicked(a0, a1, a2, a3) { // fn#44010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5252:3475, offset: 0x0116598b, size: 161 bytes, params: 5, frame: 17
var r5;
let value = null;
const r1 = value != a2 ? ChannelStore.getChannel(a2) : value;
const value4 = undefined;
value = value != (value == r1 ? value4 : r1.topic);
if (value) {
value = r1.topic.trim();
value = value !== '';
r5 = value;
} else {
r5 = value;
}
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const NSFW_SPACE_WARNING_MODAL_CLICKED = AnalyticEvents.NSFW_SPACE_WARNING_MODAL_CLICKED;
Reflect.apply(track, defaultImport, [NSFW_SPACE_WARNING_MODAL_CLICKED, {cta: a0, modal_type: a1, channel_id: a2,
guild_id: a3, has_channel_topic: r5}]);
return value4;
}
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const NSFW_SPACE_WARNING_MODAL_CLICKED = AnalyticEvents.NSFW_SPACE_WARNING_MODAL_CLICKED;
Reflect.apply(track, defaultImport, [NSFW_SPACE_WARNING_MODAL_CLICKED, {cta: a0, modal_type: a1, channel_id: a2,
guild_id: a3, has_channel_topic: r5}]);
return value4;
}
global.__d(_fun44005, 5074, [1379, 661, 683, 2]) /* metro module 5074, dependencies: [1379, 661, 683, 2] */;
@@ -1,77 +1,85 @@
/* Metro module 5262; source: modules/age_assurance/AgeVerificationConstants.tsx; dependencies: [661, 5074, 1244, 5263, 1948, 2742, 2] */
import HelpdeskUtils from '../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import AgeVerificationActionCreatorsNative from './AgeVerificationActionCreators.native.tsx'; /* Metro dependency 5263 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as AgeVerificationAnalyticsUtilsModule from './AgeVerificationAnalyticsUtils.tsx'; /* Metro dependency 5074 */
function _fun46806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:6, offset: 0x011af157, size: 494 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const Set = global.Set;
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const AgeVerificationModalEntryPoint = (AgeVerificationAnalyticsUtilsModule).AgeVerificationModalEntryPoint;
const NSFW_GUILD = AgeVerificationModalEntryPoint.NSFW_GUILD;
const set = new Set([NSFW_GUILD]);
const object = {FACIAL_AGE_ESTIMATION: 1};
object[1] = 'FACIAL_AGE_ESTIMATION';
object.ID_VERIFICATION = 2;
object[2] = 'ID_VERIFICATION';
object.MODULAR = 3;
object[3] = 'MODULAR';
object.GOOGLE_WALLET = 9;
object[9] = 'GOOGLE_WALLET';
const object7 = {};
const FACIAL_AGE_ESTIMATION = object.FACIAL_AGE_ESTIMATION;
const object8 = {title: (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */)['2yLvkS']};
object8.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).eJmat5;
object7[FACIAL_AGE_ESTIMATION] = object8;
const ID_VERIFICATION = object.ID_VERIFICATION;
const object9 = {};
object9.title = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dwkwo0;
const object2 = {FACIAL_AGE_ESTIMATION: 1};
object2[1] = 'FACIAL_AGE_ESTIMATION';
object2.ID_VERIFICATION = 2;
object2[2] = 'ID_VERIFICATION';
object2.MODULAR = 3;
object2[3] = 'MODULAR';
object2.GOOGLE_WALLET = 9;
object2[9] = 'GOOGLE_WALLET';
const object3 = {};
const FACIAL_AGE_ESTIMATION = object2.FACIAL_AGE_ESTIMATION;
const object4 = {title: (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */)['2yLvkS']};
object4.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).eJmat5;
object3[FACIAL_AGE_ESTIMATION] = object4;
const ID_VERIFICATION = object2.ID_VERIFICATION;
const object5 = {};
object5.title = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dwkwo0;
const ZdmRwW = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).ZdmRwW;
object9.description = ZdmRwW;
object7[ID_VERIFICATION] = object9;
const GOOGLE_WALLET = object.GOOGLE_WALLET;
const object10 = {};
object5.description = ZdmRwW;
object3[ID_VERIFICATION] = object5;
const GOOGLE_WALLET = object2.GOOGLE_WALLET;
const object6 = {};
const Y9sLpR = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).Y9sLpR;
object10.title = Y9sLpR;
object10.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dah4bF;
object7[GOOGLE_WALLET] = object10;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationConstants.tsx');
object6.title = Y9sLpR;
object6.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dah4bF;
object3[GOOGLE_WALLET] = object6;
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationConstants.tsx');
exports.FULLSCREEN_AGE_VERIFICATION_ENTRY_POINTS = set;
exports.getAgeVerificationGetStartedSteps = getAgeVerificationGetStartedSteps;
exports.AGE_VERIFICATION_MODAL_KEY = 'AGE_VERIFICATION_MODAL_KEY';
exports.AGE_VERIFICATION_GET_STARTED_MODAL_KEY = 'AGE_VERIFICATION_GET_STARTED_MODAL_KEY';
exports.AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY = 'AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY';
exports.VerificationVendorName = {K_ID: 'K_ID', GOOGLE_WALLET: 'GOOGLE_WALLET'};
exports.VerificationMethod = object;
exports.VERIFICATION_METHOD_TITLE_MAP = object7;
}
exports.VerificationMethod = object2;
exports.VERIFICATION_METHOD_TITLE_MAP = object3;
function getAgeVerificationGetStartedSteps(a0) { // fn#46807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:830, offset: 0x011af345, size: 362 bytes, params: 2, frame: 19
const env0_0 = a0;
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
const HphYKp = t.HphYKp;
object.title = Reflect.apply(string, intl, [HphYKp]);
object.description = intl.string(t['GCZC+9']);
return [object, {title: intl.string(t.nkO4L3), description: intl.string(t.rHZFsH)}, {title: intl.string(t.aVwLfn),
description: intl.format(t.n5vd1E, {handleOnHelpUrlHook: handleOnHelpUrlHook})}];
function handleOnHelpUrlHook() { // fn#46808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:1144, owner: getAgeVerificationGetStartedSteps.handleOnHelpUrlHook, offset: 0x011af4af, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_SYSTEM_DMS = HelpdeskArticles.TIGGER_PAWTECT_SYSTEM_DMS;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_SYSTEM_DMS])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const binding = env0_0;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const SYSTEM_DMS_LEARN_MORE = AgeVerificationModalCta.SYSTEM_DMS_LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [binding, PRIMARY, SYSTEM_DMS_LEARN_MORE]);
}
function getAgeVerificationGetStartedSteps(a0) { // fn#46807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:830, offset: 0x011af345, size: 362 bytes, params: 2, frame: 19
const env0_0 = a0;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const HphYKp = t.HphYKp;
object2.title = Reflect.apply(string, intl, [HphYKp]);
object2.description = intl.string(t['GCZC+9']);
return [object2, {title: intl.string(t.nkO4L3), description: intl.string(t.rHZFsH)}, {title: intl.string(t.aVwLfn),
description: intl.format(t.n5vd1E, {handleOnHelpUrlHook: handleOnHelpUrlHook})}];
}
}
function getAgeVerificationGetStartedStepsHandleOnHelpUrlHook() { // fn#46808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:1144, owner: getAgeVerificationGetStartedSteps.handleOnHelpUrlHook, offset: 0x011af4af, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_SYSTEM_DMS = HelpdeskArticles.TIGGER_PAWTECT_SYSTEM_DMS;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_SYSTEM_DMS])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const binding = env0_0;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const SYSTEM_DMS_LEARN_MORE = AgeVerificationModalCta.SYSTEM_DMS_LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [binding, PRIMARY, SYSTEM_DMS_LEARN_MORE]);
}
global.__d(_fun46806, 5262, [661, 5074, 1244, 5263, 1948, 2742,
2]) /* metro module 5262, dependencies: [661, 5074, 1244, 5263, 1948, 2742, 2] */;
@@ -1,12 +1,28 @@
/* Metro module 5469; source: modules/age_assurance/AgeVerificationExpressiveModalEverywhereExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun48059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5647:6, offset: 0x011d8a3b, size: 169 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
const env0_0 = (ApexModule).createApexExperiment({'kind': 'user',
'name': '2025-11-age-verification-expressive-everywhere', defaultConfig: {enabled: false},
variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationExpressiveModalEverywhereExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationExpressiveModalEverywhereExperiment.tsx');
exports.useIsAgeVerificationExpressiveModalEverywhereEnabled = useIsAgeVerificationExpressiveModalEverywhereEnabled;
exports.isAgeVerificationExpressiveModalEverywhereEnabled = isAgeVerificationExpressiveModalEverywhereEnabled;
function useIsAgeVerificationExpressiveModalEverywhereEnabled(a0) { // fn#48060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5647:416, offset: 0x00e364db, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
}
function isAgeVerificationExpressiveModalEverywhereEnabled(a0) { // fn#48061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5647:505, offset: 0x00e3651f, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun48059, 5469, [1854, 2]) /* metro module 5469, dependencies: [1854, 2] */;
@@ -1,4 +1,18 @@
/* Metro module 15661; source: modules/age_assurance/AgeVerificationManager.tsx; dependencies: [7, 6, 15, 17, 18, 1379, 4814, 1934, 1878, 661, 6263, 3, 7067, 6896, 1909, 3835, 4861, 4816, 4860, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import MessageStore from '../../stores/MessageStore.tsx'; /* Metro dependency 4814 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as UserStoreModule from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as ConstantsModule2 from '../safety_common/Constants.tsx'; /* Metro dependency 6263 */
function _fun120055(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:6, offset: 0x0251f87b, size: 416 bytes, params: 8, frame: 19
const env0_0 = require;
const handleMessageCreate_120059 = function({channelId, message}) {
@@ -6,195 +20,188 @@ function _fun120055(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_12 = (require(1878) /* metro dependency 1878: UserStore */).transformUser;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_13 = value.ChannelTypes;
const env0_14 = value.MAX_MESSAGES_PER_CHANNEL;
(require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
(ConstantsModule2).SafetyToastType;
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('AgeVerificationManager');
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
value = _fun120060(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_120056() { // fn#120056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:293, offset: 0x0251fa1b, 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_120056_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun120060(a0) { // fn#120060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:617, offset: 0x0251faa6, size: 42 bytes, params: 2, frame: 14
const closure = AgeVerificationManager;
env0_7(closure, a0);
return env0_3(closure);
}
function AgeVerificationManager(a0) { // fn#120061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:629, offset: 0x0251fad0, size: 205 bytes, params: 2, frame: 21
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, AgeVerificationManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(AgeVerificationManager);
binding = env1_5;
if (_isNativeReflectConstruct_120056()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value._previousAgeVerificationStatus = null;
value.handlePostConnectionOpen = handlePostConnectionOpen_120062;
value.handleCurrentUserUpdate = handleCurrentUserUpdate_120063;
value.actions = {POST_CONNECTION_OPEN: value.handlePostConnectionOpen,
CURRENT_USER_UPDATE: value.handleCurrentUserUpdate, MESSAGE_CREATE: handleMessageCreate_120059};
return value;
}
function AgeVerificationManagerHandlePostConnectionOpen() { // fn#120062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:946, owner: AgeVerificationManager.handlePostConnectionOpen, offset: 0x0251fb9d, size: 62 bytes, params: 1, frame: 13
const binding = env0_0;
let value = environment.__proto__.__proto__;
value = UserStore.getCurrentUser();
const value2 = null;
const value3 = undefined;
const ageVerificationStatus = value2 == value ? value3 : value.ageVerificationStatus;
binding._previousAgeVerificationStatus = value2 != ageVerificationStatus ? ageVerificationStatus : value2;
return value3;
}
function AgeVerificationManagerHandleCurrentUserUpdate({user}) { // fn#120063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:1096, owner: AgeVerificationManager.handleCurrentUserUpdate, offset: 0x0251fbdb, size: 486 bytes, params: 2, frame: 23
var r8;
var r6;
var type;
var r4;
var moduleValue;
var channelId;
var property;
var defaultImport;
var closure;
var binding;
var value8;
var defaultImport2;
var channel;
var value10;
var GUILD_FORUM;
var value11;
var value12;
var GUILD_MEDIA;
var value13;
var moduleValue2;
var error;
let env0_0 = undefined;
let env0_1 = undefined;
const r10 = transformUser(user).ageVerificationStatus ?? null;
const r9 = env0_0._previousAgeVerificationStatus !== r10 && r10 === require(dependencyMap[14]).AgeVerificationStatusUkAndAusOnly.VERIFIED_ADULT;
if (r9) {
moduleValue = require(dependencyMap[15]);
r8 = moduleValue.isFeatureAgeGated(require(dependencyMap[16]).AgeGatedFeature.AGE_GATED_SPACES);
} else {
r8 = r9;
}
try {
function _isNativeReflectConstruct_120056() { // fn#120056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:293, offset: 0x0251fa1b, 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 {
if (r8) {
channelId = SelectedChannelStore.getChannelId();
env0_0 = channelId;
env0_1 = false;
property = dependencyMap[17];
defaultImport = importDefault(property);
closure = _fun120064;
defaultImport.forEach(closure);
binding = env0_1;
if (binding) {
value8 = channelId != null;
r6 = value8;
} else {
r6 = binding;
}
if (r6) {
property = dependencyMap[12];
defaultImport2 = importDefault(property);
defaultImport2.fetchMessages({channelId: channelId, limit: MAX_MESSAGES_PER_CHANNEL});
channel = ChannelStore.getChannel(channelId);
value10 = channel == null;
type = value10 ? undefined : channel.type;
GUILD_FORUM = ChannelTypes.GUILD_FORUM;
value11 = type !== GUILD_FORUM;
if (value11) {
value12 = channel == null;
type = value12 ? undefined : channel.type;
GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
value13 = type !== GUILD_MEDIA;
r4 = value13;
} else {
r4 = value11;
}
if (!r4) {
property = dependencyMap[13];
moduleValue2 = require(property);
moduleValue2.preloadForumThreads(channel);
}
}
}
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) {
binding = env2_15;
binding.warn('Error clearing cache and refetching messages', error);
}
} catch (error) {
env0_0._previousAgeVerificationStatus = r10;
throw error;
}
env0_0._previousAgeVerificationStatus = r10;
}
function _fun120064({channelId}) { // fn#120064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:1390, offset: 0x0251fdc1, size: 97 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__.__proto__;
const channel = ChannelStore.getChannel(channelId);
if (channel != null && channel.nsfw) {
(importDefault(4816) /* metro dependency 4816: ChannelMessages */).clear(channelId);
if (channelId !== env0_0) {
}
return (_isNativeReflectConstruct_120056_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun120060(a0) { // fn#120060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:617, offset: 0x0251faa6, size: 42 bytes, params: 2, frame: 14
const AgeVerificationManager2 = AgeVerificationManager;
Inherits(AgeVerificationManager2, a0);
return CreateClass(AgeVerificationManager2);
function AgeVerificationManager(a0) { // fn#120061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:629, offset: 0x0251fad0, size: 205 bytes, params: 2, frame: 21
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, AgeVerificationManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(AgeVerificationManager);
binding = env1_5;
if (_isNativeReflectConstruct_120056()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value._previousAgeVerificationStatus = null;
value.handlePostConnectionOpen = handlePostConnectionOpen_120062;
value.handleCurrentUserUpdate = handleCurrentUserUpdate_120063;
value.actions = {POST_CONNECTION_OPEN: value.handlePostConnectionOpen,
CURRENT_USER_UPDATE: value.handleCurrentUserUpdate, MESSAGE_CREATE: handleMessageCreate_120059};
return value;
function AgeVerificationManagerHandlePostConnectionOpen() { // fn#120062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:946, owner: AgeVerificationManager.handlePostConnectionOpen, offset: 0x0251fb9d, size: 62 bytes, params: 1, frame: 13
const binding = env0_0;
let value = environment.__proto__.__proto__;
value = UserStore.getCurrentUser();
const value2 = null;
const value3 = undefined;
const ageVerificationStatus = value2 == value ? value3 : value.ageVerificationStatus;
binding._previousAgeVerificationStatus = value2 != ageVerificationStatus ? ageVerificationStatus : value2;
return value3;
}
function AgeVerificationManagerHandleCurrentUserUpdate({user}) { // fn#120063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:1096, owner: AgeVerificationManager.handleCurrentUserUpdate, offset: 0x0251fbdb, size: 486 bytes, params: 2, frame: 23
var r8;
var r6;
var type;
var r4;
var moduleValue;
var channelId;
var property;
var defaultImport;
var closure;
var binding;
var value8;
var defaultImport2;
var channel;
var value10;
var GUILD_FORUM;
var value11;
var value12;
var GUILD_MEDIA;
var value13;
var moduleValue2;
var error;
let env0_0 = undefined;
let env0_1 = undefined;
const r10 = transformUser(user).ageVerificationStatus ?? null;
const r9 = env0_0._previousAgeVerificationStatus !== r10 && r10 === require(dependencyMap[14]).AgeVerificationStatusUkAndAusOnly.VERIFIED_ADULT;
if (r9) {
moduleValue = require(dependencyMap[15]);
r8 = moduleValue.isFeatureAgeGated(require(dependencyMap[16]).AgeGatedFeature.AGE_GATED_SPACES);
} else {
r8 = r9;
}
try {
try {
if (r8) {
channelId = SelectedChannelStore.getChannelId();
env0_0 = channelId;
env0_1 = false;
property = dependencyMap[17];
defaultImport = importDefault(property);
closure = _fun120064;
defaultImport.forEach(closure);
binding = env0_1;
if (binding) {
value8 = channelId != null;
r6 = value8;
} else {
r6 = binding;
}
if (r6) {
property = dependencyMap[12];
defaultImport2 = importDefault(property);
defaultImport2.fetchMessages({channelId: channelId, limit: MAX_MESSAGES_PER_CHANNEL});
channel = ChannelStore.getChannel(channelId);
value10 = channel == null;
type = value10 ? undefined : channel.type;
GUILD_FORUM = ChannelTypes.GUILD_FORUM;
value11 = type !== GUILD_FORUM;
if (value11) {
value12 = channel == null;
type = value12 ? undefined : channel.type;
GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
value13 = type !== GUILD_MEDIA;
r4 = value13;
} else {
r4 = value11;
}
if (!r4) {
property = dependencyMap[13];
moduleValue2 = require(property);
moduleValue2.preloadForumThreads(channel);
}
}
}
} catch (error) {
binding = env2_15;
binding.warn('Error clearing cache and refetching messages', error);
}
} catch (error) {
env0_0._previousAgeVerificationStatus = r10;
throw error;
}
env0_0._previousAgeVerificationStatus = r10;
function _fun120064({channelId}) { // fn#120064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15869:1390, offset: 0x0251fdc1, size: 97 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__.__proto__;
const channel = ChannelStore.getChannel(channelId);
if (channel != null && channel.nsfw) {
(importDefault(4816) /* metro dependency 4816: ChannelMessages */).clear(channelId);
if (channelId !== env0_0) {
}
}
}
}
}
}
}
global.__d(_fun120055, 15661, [7, 6, 15, 17, 18, 1379, 4814, 1934, 1878, 661, 6263, 3, 7067, 6896, 1909, 3835, 4861,
4816, 4860,
2]) /* metro module 15661, dependencies: [7, 6, 15, 17, 18, 1379, 4814, 1934, 1878, 661, 6263, 3, 7067, 6896, 1909, 3835, 4861, 4816, 4860, 2] */;
@@ -1,4 +1,13 @@
/* Metro module 5261; source: modules/age_assurance/AgeVerificationStore.tsx; dependencies: [6, 7, 15, 17, 18, 1878, 587, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun46782(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:6, offset: 0x011aebf7, size: 422 bytes, params: 8, frame: 19
const env0_0 = require;
const resetToDefaults = function() {
@@ -7,13 +16,7 @@ function _fun46782(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun46791(Store);
value.displayName = 'AgeVerificationStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
@@ -35,108 +38,130 @@ function _fun46782(global, require, importDefault, importAll, module, exports, d
env0_12 = null;
persist_46788();
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_46783() { // fn#46783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:158, offset: 0x011aed9d, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_46783() { // fn#46783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:158, offset: 0x011aed9d, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_46783_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_46783_isNativeReflectConstruct = function() {
return !!result;
})();
}
function getStorageKey() { // fn#46786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:396, offset: 0x011aedfb, size: 67 bytes, params: 1, frame: 12
const currentUser = UserStore.getCurrentUser();
const value2 = null;
const id = value2 == currentUser ? undefined : currentUser.id;
return value2 == id ? value2 : 'AgeVerificationStore_' + id;
}
function persist_46788() { // fn#46788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:566, offset: 0x011aee55, size: 78 bytes, params: 1, frame: 16
var Storage;
const storageKey = getStorageKey();
if (storageKey != null) {
Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set(storageKey, {reactiveCheckStatus: env0_11, reactiveCheckMissAt: env0_12});
function getStorageKey() { // fn#46786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:396, offset: 0x011aedfb, size: 67 bytes, params: 1, frame: 12
const currentUser = UserStore.getCurrentUser();
const value2 = null;
const id = value2 == currentUser ? undefined : currentUser.id;
return value2 == id ? value2 : 'AgeVerificationStore_' + id;
}
}
function loadFromStorage() { // fn#46789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:685, offset: 0x011aeea3, size: 203 bytes, params: 1, frame: 15
var r3;
var r2;
var r4;
var value4;
var reactiveCheckStatus;
var reactiveCheckMissAt;
const storageKey = getStorageKey();
const value3 = null;
if (value3 != storageKey) {
value4 = (require(587) /* metro dependency 587: Storage */).Storage.get(storageKey);
if (value3 == value4) {
resetToDefaults();
} else if (typeof value4 === 'object') {
reactiveCheckStatus = value4.reactiveCheckStatus;
r3 = value3 != reactiveCheckStatus ? reactiveCheckStatus : 'unchecked';
reactiveCheckMissAt = value4.reactiveCheckMissAt;
r2 = value3 != reactiveCheckMissAt ? reactiveCheckMissAt : value3;
r4 = r3 === 'miss' && value3 != r2;
r4 = r4 && global.Date.now() - r2 >= env0_8;
if (r4) {
function persist_46788() { // fn#46788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:566, offset: 0x011aee55, size: 78 bytes, params: 1, frame: 16
var Storage;
const storageKey = getStorageKey();
if (storageKey != null) {
Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set(storageKey, {reactiveCheckStatus: env0_11, reactiveCheckMissAt: env0_12});
}
}
function loadFromStorage() { // fn#46789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:685, offset: 0x011aeea3, size: 203 bytes, params: 1, frame: 15
var r3;
var r2;
var r4;
var value4;
var reactiveCheckStatus;
var reactiveCheckMissAt;
const storageKey = getStorageKey();
const value3 = null;
if (value3 != storageKey) {
value4 = (require(587) /* metro dependency 587: Storage */).Storage.get(storageKey);
if (value3 == value4) {
resetToDefaults();
} else if (typeof value4 === 'object') {
reactiveCheckStatus = value4.reactiveCheckStatus;
r3 = value3 != reactiveCheckStatus ? reactiveCheckStatus : 'unchecked';
reactiveCheckMissAt = value4.reactiveCheckMissAt;
r2 = value3 != reactiveCheckMissAt ? reactiveCheckMissAt : value3;
r4 = r3 === 'miss' && value3 != r2;
r4 = r4 && global.Date.now() - r2 >= env0_8;
if (r4) {
resetToDefaults();
}
} else {
resetToDefaults();
}
} else {
resetToDefaults();
}
} else {
resetToDefaults();
}
function isMissWithinTTL() { // fn#46790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1060, offset: 0x011aef6e, size: 66 bytes, params: 1, frame: 11
return env0_11 === 'miss' && env0_12 != null && global.Date.now() - env0_12 < env0_8;
}
function _fun46791(a0) { // fn#46791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1135, offset: 0x011aefb0, size: 212 bytes, params: 2, frame: 16
const AgeVerificationStore2 = AgeVerificationStore;
Inherits(AgeVerificationStore2, a0);
return CreateClass(AgeVerificationStore2, [{key: 'initialize', value: function() {
this.waitFor(UserStore);
}}, {key: 'loading', get: get_46794}, {key: 'methods', get: get_46795}, {key: 'getReactiveCheckStatus',
value: value_46796}, {key: 'getReactiveCheckMiss', value: function() {
return isMissWithinTTL();
}}, {key: 'getReactiveCheckPassed', value: value_46798}, {key: 'shouldCallReactiveCheck', value: value_46799}]);
function AgeVerificationStore() { // fn#46792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1147, offset: 0x00ea76ec, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, AgeVerificationStore);
const value3 = env1_5(AgeVerificationStore);
return env1_4(this, _isNativeReflectConstruct_46783() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function get_46794() { // fn#46794, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
function get_46795() { // fn#46795, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_46796() { // fn#46796, offset: 0x00ef8482, size: 9 bytes, params: 1, frame: 1
return env1_11;
}
function value_46798() { // fn#46798, offset: 0x011af084, size: 19 bytes, params: 1, frame: 2
return env1_11 === 'passed';
}
function value_46799() { // fn#46799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1811, offset: 0x011af097, size: 53 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_11 !== 'passed' && (env1_11 !== 'suppress' && !isMissWithinTTL());
}
}
}
function isMissWithinTTL() { // fn#46790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1060, offset: 0x011aef6e, size: 66 bytes, params: 1, frame: 11
return env0_11 === 'miss' && env0_12 != null && global.Date.now() - env0_12 < env0_8;
}
function _fun46791(a0) { // fn#46791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1135, offset: 0x011aefb0, size: 212 bytes, params: 2, frame: 16
const closure = AgeVerificationStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: function() {
this.waitFor(UserStore);
}}, {key: 'loading', get: get_46794}, {key: 'methods', get: get_46795}, {key: 'getReactiveCheckStatus',
value: value_46796}, {key: 'getReactiveCheckMiss', value: function() {
return isMissWithinTTL();
}}, {key: 'getReactiveCheckPassed', value: value_46798}, {key: 'shouldCallReactiveCheck', value: value_46799}]);
}
function value_46798() { // fn#46798, offset: 0x011af084, size: 19 bytes, params: 1, frame: 2
return env1_11 === 'passed';
}
function value_46799() { // fn#46799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5439:1811, offset: 0x011af097, size: 53 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_11 !== 'passed' && (env1_11 !== 'suppress' && !isMissWithinTTL());
}
global.__d(_fun46782, 5261, [6, 7, 15, 17, 18, 1878, 587, 566, 694,
2]) /* metro module 5261, dependencies: [6, 7, 15, 17, 18, 1878, 587, 566, 694, 2] */;
@@ -1,4 +1,9 @@
/* Metro module 6257; source: modules/age_assurance/AgeVerificationURLActionCreators.tsx; dependencies: [5, 1226, 661, 5266, 507, 694, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun49403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:6, offset: 0x011f8866, size: 267 bytes, params: 8, frame: 23
const env0_0 = require;
const closure = function() {
@@ -19,10 +24,7 @@ function _fun49403(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationURLActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationURLActionCreators.tsx');
exports.requestAgeVerification = function() {
return _requestAgeVerification.apply(this, arguments);
};
@@ -33,114 +35,116 @@ function _fun49403(global, require, importDefault, importAll, module, exports, d
};
exports.fetchAgeVerificationMethods = closure3;
exports.fetchAgeVerificationMethodsSuspendedUser = closure4;
}
function _requestAgeVerification() { // fn#49404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:136, offset: 0x011f8971, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49406).apply(this, arguments);
}
function _initiateAgeVerification() { // fn#49408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:508, offset: 0x011f8a46, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49410).apply(this, arguments);
}
function _initiateSuspendedUserAgeVerification() { // fn#49412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:825, offset: 0x011f8aeb, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49414).apply(this, arguments);
}
function _getAgeVerificationMethods() { // fn#49415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1181, offset: 0x011f8bcd, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49417).apply(this, arguments);
}
async function _fun49406({method, classificationId}) { // fn#49406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:205, offset: 0x011f89b3, size: 147 bytes, params: 2, frame: 17
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const value4 = env2_0(env2_2[3]);
if (value4.isCurrentUserSuspended()) {
await env2_9({classificationId: classificationId, method: method});
} else {
await env2_7(method);
}
value = undefined;
if (false) {
}
return value;
}
function* _fun49410(a0) { // fn#49410, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:579, offset: 0x011f8a7f, size: 108 bytes, params: 2, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[4]).HTTP;
const post = HTTP.post;
const VERIFY_AGE = env2_5.VERIFY_AGE;
yield Reflect.apply(post, HTTP, [{url: VERIFY_AGE, body: {method: a0}, rejectWithError: true}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
async function _fun49414({classificationId, method}) { // fn#49414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:922, offset: 0x011f8b2d, size: 160 bytes, params: 2, frame: 18
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const suspendedUserToken = env2_4.getSuspendedUserToken();
const HTTP = env2_0(env2_2[4]).HTTP;
const post = HTTP.post;
const SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION = env2_5.SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION;
await Reflect.apply(post, HTTP, [{url: SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION,
body: {token: suspendedUserToken, from_classification_id: classificationId, method: method},
rejectWithError: true}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
function* _fun49417() { // fn#49417, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1256, offset: 0x011f8c06, size: 167 bytes, params: 1, frame: 17
var environment;
var r5;
var r1;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var binding2 = env2_2;
var value3 = undefined;
binding(binding2[5]).dispatch({type: 'AGE_VERIFICATION_METHODS_LOAD_START'});
var value5 = env2_0(binding2[3]);
r5 = value5.isCurrentUserSuspended() ? env2_13() : env2_12();
if (r5 == null) {
r1 = value3;
} else {
value = r5.then(_fun49418);
value = value.catch(_fun49419);
r1 = value;
function _requestAgeVerification() { // fn#49404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:136, offset: 0x011f8971, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49406).apply(this, arguments);
async function _fun49406({method, classificationId}) { // fn#49406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:205, offset: 0x011f89b3, size: 147 bytes, params: 2, frame: 17
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const value4 = env2_0(env2_2[3]);
if (value4.isCurrentUserSuspended()) {
await env2_9({classificationId: classificationId, method: method});
} else {
await env2_7(method);
}
value = undefined;
if (false) {
}
return value;
}
yield r1;
}
function _initiateAgeVerification() { // fn#49408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:508, offset: 0x011f8a46, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49410).apply(this, arguments);
function* _fun49410(a0) { // fn#49410, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:579, offset: 0x011f8a7f, size: 108 bytes, params: 2, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[4]).HTTP;
const post = HTTP.post;
const VERIFY_AGE = env2_5.VERIFY_AGE;
yield Reflect.apply(post, HTTP, [{url: VERIFY_AGE, body: {method: a0}, rejectWithError: true}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
}
function _initiateSuspendedUserAgeVerification() { // fn#49412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:825, offset: 0x011f8aeb, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49414).apply(this, arguments);
async function _fun49414({classificationId, method}) { // fn#49414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:922, offset: 0x011f8b2d, size: 160 bytes, params: 2, frame: 18
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const suspendedUserToken = env2_4.getSuspendedUserToken();
const HTTP = env2_0(env2_2[4]).HTTP;
const post = HTTP.post;
const SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION = env2_5.SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION;
await Reflect.apply(post, HTTP, [{url: SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION,
body: {token: suspendedUserToken, from_classification_id: classificationId, method: method},
rejectWithError: true}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
}
function _getAgeVerificationMethods() { // fn#49415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1181, offset: 0x011f8bcd, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49417).apply(this, arguments);
function* _fun49417() { // fn#49417, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1256, offset: 0x011f8c06, size: 167 bytes, params: 1, frame: 17
var environment;
var r5;
var r1;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var binding2 = env2_2;
var value3 = undefined;
binding(binding2[5]).dispatch({type: 'AGE_VERIFICATION_METHODS_LOAD_START'});
var value5 = env2_0(binding2[3]);
r5 = value5.isCurrentUserSuspended() ? env2_13() : env2_12();
if (r5 == null) {
r1 = value3;
} else {
value = r5.then(_fun49418);
value = value.catch(_fun49419);
r1 = value;
}
yield r1;
}
function _fun49418({body}) { // fn#49418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1487, offset: 0x011f8cad, size: 68 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_2[5]).dispatch({type: 'AGE_VERIFICATION_METHODS_LOAD_SUCCESS', methods: body.methods});
}
function _fun49419() { // fn#49419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1589, offset: 0x011f8cf1, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_2[5]).dispatch({type: 'AGE_VERIFICATION_METHODS_LOAD_FAILURE'});
}
}
}
}
function _fun49418({body}) { // fn#49418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1487, offset: 0x011f8cad, size: 68 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_2[5]).dispatch({type: 'AGE_VERIFICATION_METHODS_LOAD_SUCCESS', methods: body.methods});
}
function _fun49419() { // fn#49419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6435:1589, offset: 0x011f8cf1, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_2[5]).dispatch({type: 'AGE_VERIFICATION_METHODS_LOAD_FAILURE'});
}
global.__d(_fun49403, 6257, [5, 1226, 661, 5266, 507, 694,
2]) /* metro module 6257, dependencies: [5, 1226, 661, 5266, 507, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,11 +1,13 @@
/* Metro module 6254; source: modules/age_assurance/GoogleWalletActionCreators.native.tsx; dependencies: [5, 661, 507, 6255, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun49382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:6, offset: 0x011f83e0, size: 207 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/GoogleWalletActionCreators.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/GoogleWalletActionCreators.native.tsx');
exports.requestGoogleWalletVerification = function() {
return _requestGoogleWalletVerification.apply(this, arguments);
};
@@ -18,146 +20,147 @@ function _fun49382(global, require, importDefault, importAll, module, exports, d
exports.getGoogleWalletCredential = function() {
return _getGoogleWalletCredential.apply(this, arguments);
};
}
function _requestGoogleWalletVerification() { // fn#49383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:126, offset: 0x011f84af, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49385).apply(this, arguments);
}
function _verifyGoogleWalletCredential() { // fn#49386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:380, offset: 0x011f8551, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49388).apply(this, arguments);
}
function _checkGoogleWalletAvailable() { // fn#49389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:632, offset: 0x011f85f8, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49391).apply(this, arguments);
}
function _getGoogleWalletCredential() { // fn#49392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:822, offset: 0x011f8695, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49394).apply(this, arguments);
}
function* _fun49385() { // fn#49385, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:213, offset: 0x011f84e8, size: 105 bytes, params: 1, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[2]).HTTP;
const post = HTTP.post;
const GOOGLE_WALLET_REQUEST = env2_4.GOOGLE_WALLET_REQUEST;
yield Reflect.apply(post, HTTP, [{url: GOOGLE_WALLET_REQUEST, body: {}, rejectWithError: true,
failImmediatelyWhenRateLimited: true}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
function* _fun49388(a0) { // fn#49388, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:461, offset: 0x011f858a, size: 110 bytes, params: 2, frame: 15
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[2]).HTTP;
var post = HTTP.post;
var GOOGLE_WALLET_VERIFY = env2_4.GOOGLE_WALLET_VERIFY;
yield Reflect.apply(post, HTTP, [{url: GOOGLE_WALLET_VERIFY, body: {credential_json: a0}, rejectWithError: true,
failImmediatelyWhenRateLimited: true}]);
}
}
function* _fun49391() { // fn#49391, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:709, offset: 0x011f8631, size: 100 bytes, params: 1, frame: 15
var binding;
var binding2;
var property;
var value3;
var value4;
var binding3;
var isAvailable;
var value5;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
return false;
}
try {
binding2 = env2_2;
} catch (error) {
return false;
}
try {
property = binding2[3];
} catch (error) {
return false;
}
try {
value3 = binding(property);
} catch (error) {
return false;
}
try {
value4 = value3 != null;
} catch (error) {
return false;
}
if (value4) {
try {
binding = env2_1;
} catch (error) {
return false;
}
try {
binding3 = env2_2;
} catch (error) {
return false;
}
try {
property = binding3[3];
} catch (error) {
return false;
}
try {
value = binding(property);
} catch (error) {
return false;
}
try {
isAvailable = value.isAvailable;
} catch (error) {
return false;
}
try {
value = Reflect.apply(isAvailable, value, []);
} catch (error) {
return false;
}
yield value;
try {
function _requestGoogleWalletVerification() { // fn#49383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:126, offset: 0x011f84af, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49385).apply(this, arguments);
function* _fun49385() { // fn#49385, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:213, offset: 0x011f84e8, size: 105 bytes, params: 1, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[2]).HTTP;
const post = HTTP.post;
const GOOGLE_WALLET_REQUEST = env2_4.GOOGLE_WALLET_REQUEST;
yield Reflect.apply(post, HTTP, [{url: GOOGLE_WALLET_REQUEST, body: {}, rejectWithError: true,
failImmediatelyWhenRateLimited: true}]);
value = undefined;
value5 = false;
} catch (error) {
return false;
if (false) {
return value;
}
return value.body;
}
if (value5) {
return value;
}
return value;
}
return value4;
}
function* _fun49394(a0) { // fn#49394, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:897, offset: 0x011f86ce, size: 126 bytes, params: 2, frame: 14
if (true) {
value = environment.__proto__.__proto__;
if (env2_1(env2_2[3]) == null) {
throw new global.Error('Digital credential module is not available');
}
value = env2_1(env2_2[3]);
var getCredential = value.getCredential;
yield Reflect.apply(getCredential, value, [a0]);
}
function _verifyGoogleWalletCredential() { // fn#49386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:380, offset: 0x011f8551, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49388).apply(this, arguments);
function* _fun49388(a0) { // fn#49388, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:461, offset: 0x011f858a, size: 110 bytes, params: 2, frame: 15
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[2]).HTTP;
var post = HTTP.post;
var GOOGLE_WALLET_VERIFY = env2_4.GOOGLE_WALLET_VERIFY;
yield Reflect.apply(post, HTTP, [{url: GOOGLE_WALLET_VERIFY, body: {credential_json: a0}, rejectWithError: true,
failImmediatelyWhenRateLimited: true}]);
}
}
}
function _checkGoogleWalletAvailable() { // fn#49389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:632, offset: 0x011f85f8, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49391).apply(this, arguments);
function* _fun49391() { // fn#49391, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:709, offset: 0x011f8631, size: 100 bytes, params: 1, frame: 15
var binding;
var binding2;
var property;
var value3;
var value4;
var binding3;
var isAvailable;
var value5;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
return false;
}
try {
binding2 = env2_2;
} catch (error) {
return false;
}
try {
property = binding2[3];
} catch (error) {
return false;
}
try {
value3 = binding(property);
} catch (error) {
return false;
}
try {
value4 = value3 != null;
} catch (error) {
return false;
}
if (value4) {
try {
binding = env2_1;
} catch (error) {
return false;
}
try {
binding3 = env2_2;
} catch (error) {
return false;
}
try {
property = binding3[3];
} catch (error) {
return false;
}
try {
value = binding(property);
} catch (error) {
return false;
}
try {
isAvailable = value.isAvailable;
} catch (error) {
return false;
}
try {
value = Reflect.apply(isAvailable, value, []);
} catch (error) {
return false;
}
yield value;
try {
value = undefined;
value5 = false;
} catch (error) {
return false;
}
if (value5) {
return value;
}
return value;
}
return value4;
}
}
function _getGoogleWalletCredential() { // fn#49392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:822, offset: 0x011f8695, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49394).apply(this, arguments);
function* _fun49394(a0) { // fn#49394, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6432:897, offset: 0x011f86ce, size: 126 bytes, params: 2, frame: 14
if (true) {
value = environment.__proto__.__proto__;
if (env2_1(env2_2[3]) == null) {
throw new global.Error('Digital credential module is not available');
}
value = env2_1(env2_2[3]);
var getCredential = value.getCredential;
yield Reflect.apply(getCredential, value, [a0]);
}
}
}
}
global.__d(_fun49382, 6254, [5, 661, 507, 6255, 2]) /* metro module 6254, dependencies: [5, 661, 507, 6255, 2] */;
@@ -1,12 +1,28 @@
/* Metro module 6256; source: modules/age_assurance/GoogleWalletExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun49400(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6434:6, offset: 0x011f87bd, size: 169 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
const env0_0 = (ApexModule).createApexExperiment({'kind': 'user',
'name': '2026-03-age-verification-google-wallet', defaultConfig: {enabled: false},
variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/GoogleWalletExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/GoogleWalletExperiment.tsx');
exports.useIsGoogleWalletEnabled = useIsGoogleWalletEnabled;
exports.isGoogleWalletEnabled = isGoogleWalletEnabled;
function useIsGoogleWalletEnabled(a0) { // fn#49401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6434:352, offset: 0x00e364db, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
}
function isGoogleWalletEnabled(a0) { // fn#49402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6434:413, offset: 0x00e3651f, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun49400, 6256, [1854, 2]) /* metro module 6256, dependencies: [1854, 2] */;
@@ -1,23 +1,27 @@
/* Metro module 5472; source: modules/age_assurance/HideManualAgeVerificationExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun48087(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5650:6, offset: 0x011d99b3, size: 171 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
const env0_0 = (ApexModule).createApexExperiment({'kind': 'user',
'name': '2025-11-hide-manual-link', defaultConfig: {isHidden: false}, variations: {[1]: {isHidden: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/HideManualAgeVerificationExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/HideManualAgeVerificationExperiment.tsx');
exports.useIsManualAgeVerificationHidden = useIsManualAgeVerificationHidden;
exports.isManualAgeVerificationHidden = isManualAgeVerificationHidden;
function useIsManualAgeVerificationHidden(a0) { // fn#48088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5650:361, offset: 0x011d9a5e, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).isHidden;
}
function isManualAgeVerificationHidden(a0) { // fn#48089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5650:431, offset: 0x011d9a81, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).isHidden;
}
}
function useIsManualAgeVerificationHidden(a0) { // fn#48088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5650:361, offset: 0x011d9a5e, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).isHidden;
}
function isManualAgeVerificationHidden(a0) { // fn#48089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5650:431, offset: 0x011d9a81, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).isHidden;
}
global.__d(_fun48087, 5472, [1854, 2]) /* metro module 5472, dependencies: [1854, 2] */;
@@ -1,192 +1,195 @@
/* Metro module 6267; source: modules/age_assurance/ReactiveCheckActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun49465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:6, offset: 0x011fab7f, size: 167 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/ReactiveCheckActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/ReactiveCheckActionCreators.tsx');
exports.fetchReactiveCheckResult = function() {
return _fetchReactiveCheckResult.apply(this, arguments);
};
exports.resetAgeVerification = function() {
return _resetAgeVerification.apply(this, arguments);
};
}
function _fetchReactiveCheckResult() { // fn#49466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:128, offset: 0x011fac26, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49468).apply(this, arguments);
}
function _resetAgeVerification() { // fn#49469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:454, offset: 0x011facfe, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun49471).apply(this, arguments);
}
function* _fun49468() { // fn#49468, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:201, offset: 0x011fac5f, size: 159 bytes, params: 1, frame: 15
var binding;
var binding2;
var property;
var value3;
var HTTP;
var get;
var object2;
var AGE_VERIFICATION_REACTIVE_CHECK;
var value4;
var value5;
var value6;
var body;
var binding3;
var dispatch;
var status;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
return null;
}
try {
binding2 = env2_2;
} catch (error) {
return null;
}
try {
property = binding2[2];
} catch (error) {
return null;
}
try {
value3 = binding(property);
} catch (error) {
return null;
}
try {
HTTP = value3.HTTP;
} catch (error) {
return null;
}
try {
get = HTTP.get;
} catch (error) {
return null;
}
try {
object2 = {};
} catch (error) {
return null;
}
try {
binding = env2_4;
} catch (error) {
return null;
}
try {
AGE_VERIFICATION_REACTIVE_CHECK = binding.AGE_VERIFICATION_REACTIVE_CHECK;
} catch (error) {
return null;
}
try {
object2.url = AGE_VERIFICATION_REACTIVE_CHECK;
} catch (error) {
return null;
}
try {
object2.rejectWithError = true;
} catch (error) {
return null;
}
try {
value4 = Reflect.apply(get, HTTP, [object2]);
} catch (error) {
return null;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
return null;
}
if (value6) {
return value5;
}
try {
body = value5.body;
} catch (error) {
return null;
}
try {
binding = env2_1;
} catch (error) {
return null;
}
try {
binding3 = env2_2;
} catch (error) {
return null;
}
try {
property = binding3[3];
} catch (error) {
return null;
}
try {
value = binding(property);
} catch (error) {
return null;
}
try {
dispatch = value.dispatch;
} catch (error) {
return null;
}
try {
object2 = {};
} catch (error) {
return null;
}
try {
object2.type = 'AGE_VERIFICATION_CHECK_RESULT_SET';
} catch (error) {
return null;
}
try {
status = body.status;
} catch (error) {
return null;
}
try {
object2.status = status;
} catch (error) {
return null;
}
try {
Reflect.apply(dispatch, value, [object2]);
} catch (error) {
return null;
}
try {
status = body.status;
} catch (error) {
return null;
}
return status;
}
function* _fun49471() { // fn#49471, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:519, offset: 0x011fad37, size: 129 bytes, params: 1, frame: 15
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[2]).HTTP;
var post = HTTP.post;
var AGE_VERIFICATION_RESET = env2_4.AGE_VERIFICATION_RESET;
yield Reflect.apply(post, HTTP, [{url: AGE_VERIFICATION_RESET, rejectWithError: true}]);
if (false) {
return undefined;
function _fetchReactiveCheckResult() { // fn#49466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:128, offset: 0x011fac26, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49468).apply(this, arguments);
function* _fun49468() { // fn#49468, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:201, offset: 0x011fac5f, size: 159 bytes, params: 1, frame: 15
var binding;
var binding2;
var property;
var value3;
var HTTP;
var get;
var object;
var AGE_VERIFICATION_REACTIVE_CHECK;
var value4;
var value5;
var value6;
var body;
var binding3;
var dispatch;
var status;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
return null;
}
try {
binding2 = env2_2;
} catch (error) {
return null;
}
try {
property = binding2[2];
} catch (error) {
return null;
}
try {
value3 = binding(property);
} catch (error) {
return null;
}
try {
HTTP = value3.HTTP;
} catch (error) {
return null;
}
try {
get = HTTP.get;
} catch (error) {
return null;
}
try {
object = {};
} catch (error) {
return null;
}
try {
binding = env2_4;
} catch (error) {
return null;
}
try {
AGE_VERIFICATION_REACTIVE_CHECK = binding.AGE_VERIFICATION_REACTIVE_CHECK;
} catch (error) {
return null;
}
try {
object.url = AGE_VERIFICATION_REACTIVE_CHECK;
} catch (error) {
return null;
}
try {
object.rejectWithError = true;
} catch (error) {
return null;
}
try {
value4 = Reflect.apply(get, HTTP, [object]);
} catch (error) {
return null;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
return null;
}
if (value6) {
return value5;
}
try {
body = value5.body;
} catch (error) {
return null;
}
try {
binding = env2_1;
} catch (error) {
return null;
}
try {
binding3 = env2_2;
} catch (error) {
return null;
}
try {
property = binding3[3];
} catch (error) {
return null;
}
try {
value = binding(property);
} catch (error) {
return null;
}
try {
dispatch = value.dispatch;
} catch (error) {
return null;
}
try {
object = {};
} catch (error) {
return null;
}
try {
object.type = 'AGE_VERIFICATION_CHECK_RESULT_SET';
} catch (error) {
return null;
}
try {
status = body.status;
} catch (error) {
return null;
}
try {
object.status = status;
} catch (error) {
return null;
}
try {
Reflect.apply(dispatch, value, [object]);
} catch (error) {
return null;
}
try {
status = body.status;
} catch (error) {
return null;
}
return status;
}
env2_1(env2_2[3]).dispatch({type: 'AGE_VERIFICATION_RESET'});
}
function _resetAgeVerification() { // fn#49469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:454, offset: 0x011facfe, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun49471).apply(this, arguments);
function* _fun49471() { // fn#49471, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6445:519, offset: 0x011fad37, size: 129 bytes, params: 1, frame: 15
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[2]).HTTP;
var post = HTTP.post;
var AGE_VERIFICATION_RESET = env2_4.AGE_VERIFICATION_RESET;
yield Reflect.apply(post, HTTP, [{url: AGE_VERIFICATION_RESET, rejectWithError: true}]);
if (false) {
return undefined;
}
env2_1(env2_2[3]).dispatch({type: 'AGE_VERIFICATION_RESET'});
}
}
}
}
global.__d(_fun49465, 6267, [5, 661, 507, 694, 2]) /* metro module 6267, dependencies: [5, 661, 507, 694, 2] */;
@@ -1,179 +1,191 @@
/* Metro module 6253; source: modules/age_assurance/hooks/useAgeVerificationMethods.tsx; dependencies: [5, 57, 31, 5261, 5262, 566, 4813, 5074, 6254, 4826, 4831, 6256, 6257, 1244, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import MonitoringAgent from '../../monitoring/MonitoringAgent.tsx'; /* Metro dependency 4826 */
import AgeVerificationStore from '../AgeVerificationStore.tsx'; /* Metro dependency 5261 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as AgeVerificationUtilsModule from '../AgeVerificationUtils.tsx'; /* Metro dependency 4813 */
import * as MetricEventsModule from '../../../external/discord_common/js/shared/shared-constants/MetricEvents.tsx'; /* Metro dependency 4831 */
import * as AgeVerificationAnalyticsUtilsModule from '../AgeVerificationAnalyticsUtils.tsx'; /* Metro dependency 5074 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
function _fun49367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:6, offset: 0x011f7dbc, size: 199 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const ageVerificationStore = importDefault(5261) /* metro dependency 5261: AgeVerificationStore */;
const ageVerificationConstantsModule = require(5262) /* metro dependency 5262: AgeVerificationConstants */;
const env0_7 = ageVerificationConstantsModule.VERIFICATION_METHOD_TITLE_MAP;
const env0_8 = ageVerificationConstantsModule.VerificationMethod;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/hooks/useAgeVerificationMethods.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/hooks/useAgeVerificationMethods.tsx');
exports.default = useAgeVerificationMethods;
}
function useAgeVerificationMethods({onClose, classificationId, onGoogleWalletSelect}) { // fn#49368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:209, offset: 0x011f7e83, size: 322 bytes, params: 2, frame: 22
const {methods,
loading} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AgeVerificationStore],
function() {
var ageVerificationStoreBinding = AgeVerificationStore;
return {methods: ageVerificationStoreBinding.methods, loading: ageVerificationStoreBinding.loading};
});
const useInitiateAgeVerification = AgeVerificationUtilsModule.useInitiateAgeVerification;
object = {onComplete: onClose};
const AgeVerificationModalEntryPoint = (AgeVerificationAnalyticsUtilsModule).AgeVerificationModalEntryPoint;
const EXPRESSIVE_GET_STARTED = AgeVerificationModalEntryPoint.EXPRESSIVE_GET_STARTED;
object.entryPoint = EXPRESSIVE_GET_STARTED;
object.shouldShowExpressiveModal = true;
object.classificationId = classificationId;
const initiateAgeVerification = Reflect.apply(useInitiateAgeVerification, AgeVerificationUtilsModule,
[object]).initiateAgeVerification;
const [property, env0_4] = env0_4Binding(ReactModule.useState(false), 2);
ReactModule.useEffect(_fun49370, []);
ReactModule.useEffect(_fun49373, [methods]);
const useMemo = ReactModule.useMemo;
return {ageVerificationMethods: Reflect.apply(useMemo, ReactModule, [_fun49374, [methods, property,
onGoogleWalletSelect, initiateAgeVerification]]), loading: loading};
function _fun49370() { // fn#49370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:664, offset: 0x011f7fe6, size: 65 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__;
value = require(6254) /* metro dependency 6254: GoogleWalletActionCreatorsNative */;
value = value.checkGoogleWalletAvailable();
value.then(_fun49371);
return function() {
env0_0 = true;
};
function _fun49371(a0) { // fn#49371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:728, offset: 0x011f8027, size: 179 bytes, params: 2, frame: 17
var r0;
var value3;
var defaultImport;
var increment;
var object;
var value5;
var binding;
let value = a0;
if (!env0_0) {
value3 = environment.__proto__.__proto__;
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
increment = defaultImport.increment;
object = {};
object.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.GOOGLE_WALLET_AVAILABILITY_CHECK;
object.tags = ['available:' + value];
Reflect.apply(increment, defaultImport, [object]);
value5 = environment.__proto__;
binding = env1_4;
if (value) {
value = require(6256) /* metro dependency 6256: GoogleWalletExperiment */;
value = value.isGoogleWalletEnabled('age_verification_methods');
r0 = value;
} else {
r0 = value;
}
binding(r0);
}
}
function useAgeVerificationMethods({onClose, classificationId, onGoogleWalletSelect}) { // fn#49368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:209, offset: 0x011f7e83, size: 322 bytes, params: 2, frame: 22
var object2;
const {methods,
loading} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AgeVerificationStore],
function() {
return {methods: AgeVerificationStore.methods, loading: AgeVerificationStore.loading};
});
const ageVerificationUtilsModule = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
const useInitiateAgeVerification = ageVerificationUtilsModule.useInitiateAgeVerification;
object2 = {onComplete: onClose};
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const EXPRESSIVE_GET_STARTED = AgeVerificationModalEntryPoint.EXPRESSIVE_GET_STARTED;
object2.entryPoint = EXPRESSIVE_GET_STARTED;
object2.shouldShowExpressiveModal = true;
object2.classificationId = classificationId;
const initiateAgeVerification = Reflect.apply(useInitiateAgeVerification, ageVerificationUtilsModule,
[object2]).initiateAgeVerification;
const binding = env0_5;
const [property, env0_4] = env0_4Binding(binding.useState(false), 2);
binding.useEffect(_fun49370, []);
binding.useEffect(_fun49373, [methods]);
const useMemo = binding.useMemo;
return {ageVerificationMethods: Reflect.apply(useMemo, binding, [_fun49374, [methods, property,
onGoogleWalletSelect, initiateAgeVerification]]), loading: loading};
}
}
function _fun49370() { // fn#49370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:664, offset: 0x011f7fe6, size: 65 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__;
value = require(6254) /* metro dependency 6254: GoogleWalletActionCreatorsNative */;
value = value.checkGoogleWalletAvailable();
value.then(_fun49371);
return function() {
env0_0 = true;
};
}
function _fun49373() { // fn#49373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:940, offset: 0x011f80da, size: 52 bytes, params: 1, frame: 11
var value;
if (methods == null) {
value = environment.__proto__;
value = require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */;
value.getAgeVerificationMethods();
}
}
function _fun49373() { // fn#49373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:940, offset: 0x011f80da, size: 52 bytes, params: 1, frame: 11
var value;
if (methods == null) {
value = environment.__proto__;
value = require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */;
value.getAgeVerificationMethods();
}
}
function _fun49374() { // fn#49374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1015, offset: 0x011f810e, size: 254 bytes, params: 1, frame: 21
var environment;
var object2;
var property;
var intl;
var items2;
var value;
let r3 = methods == null ? undefined : methods.filter(function(a0) {
return a0 !== VerificationMethod.GOOGLE_WALLET;
}).map(_fun49376).filter(_fun49380);
r3 = r3 ?? [];
if (env0_3) {
if (onGoogleWalletSelect == null) {
function _fun49374() { // fn#49374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1015, offset: 0x011f810e, size: 254 bytes, params: 1, frame: 21
var environment;
var object;
var property;
var intl;
var items2;
var value;
let r3 = methods == null ? undefined : methods.filter(function(a0) {
return a0 !== VerificationMethod.GOOGLE_WALLET;
}).map(_fun49376).filter(_fun49380);
r3 = r3 ?? [];
if (Module00005) {
if (onGoogleWalletSelect == null) {
return r3;
}
value = environment.__proto__;
property = VERIFICATION_METHOD_TITLE_MAP[VerificationMethod.GOOGLE_WALLET];
if (property != null) {
object = {};
object.id = VerificationMethod.GOOGLE_WALLET;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string(property.title);
object.description = (require(1244) /* metro dependency 1244: indexNative */).intl.string(property.description);
object.onClick = onClick_49381;
items2 = [];
value = arraySpread(items2, r3, 0, intl);
items2[value] = object;
value + 1;
return items2;
}
}
return r3;
function _fun49376(a0) { // fn#49376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1092, offset: 0x011f8222, size: 143 bytes, params: 2, frame: 20
const env0_0 = a0;
const property = VERIFICATION_METHOD_TITLE_MAP[a0];
if (property == null) {
return null;
}
const title = property.title;
const description = property.description;
const object = {id: a0};
const intl = (IndexNativeModule).intl;
object.title = intl.string(title);
object.description = intl.string(description);
const env0_1 = env2_3(_fun49378);
object.onClick = onClick_49379;
return object;
function* _fun49378(a0) { // fn#49378, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1254, offset: 0x011f82ba, size: 131 bytes, params: 2, frame: 19
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
var binding = env4_0;
var binding2 = env4_2;
value = binding(binding2[7]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[7]).AgeVerificationModalVersion;
var EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
var AgeVerificationModalCta = binding(binding2[7]).AgeVerificationModalCta;
var METHOD_SELECT = AgeVerificationModalCta.METHOD_SELECT;
binding = env1_0;
Reflect.apply(trackAgeVerificationModalClicked, value, [a0, EXPRESSIVE_PRIMARY, METHOD_SELECT, binding]);
value = environment.__proto__.__proto__.__proto__;
yield dependencyMap(binding);
}
}
function onClick_49379() { // fn#49379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1428, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
return env0_1.apply(this, arguments);
}
}
function onClick_49381(a0) { // fn#49381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1673, offset: 0x011f833d, size: 163 bytes, params: 2, frame: 19
const defaultImport = MonitoringAgent;
const increment = defaultImport.increment;
const MetricEvents = (MetricEventsModule).MetricEvents;
const GOOGLE_WALLET_METHOD_SELECTED = MetricEvents.GOOGLE_WALLET_METHOD_SELECTED;
Reflect.apply(increment, defaultImport, [{name: GOOGLE_WALLET_METHOD_SELECTED}]);
const trackAgeVerificationModalClicked = AgeVerificationAnalyticsUtilsModule.trackAgeVerificationModalClicked;
const AgeVerificationModalVersion = AgeVerificationAnalyticsUtilsModule.AgeVerificationModalVersion;
const EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
const AgeVerificationModalCta = AgeVerificationAnalyticsUtilsModule.AgeVerificationModalCta;
const METHOD_SELECT = AgeVerificationModalCta.METHOD_SELECT;
const GOOGLE_WALLET = VerificationMethod.GOOGLE_WALLET;
Reflect.apply(trackAgeVerificationModalClicked, AgeVerificationAnalyticsUtilsModule, [a0, EXPRESSIVE_PRIMARY,
METHOD_SELECT, GOOGLE_WALLET]);
onGoogleWalletSelect();
}
}
value = environment.__proto__;
property = VERIFICATION_METHOD_TITLE_MAP[VerificationMethod.GOOGLE_WALLET];
if (property != null) {
object2 = {};
object2.id = VerificationMethod.GOOGLE_WALLET;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string(property.title);
object2.description = (require(1244) /* metro dependency 1244: indexNative */).intl.string(property.description);
object2.onClick = onClick_49381;
items2 = [];
value = arraySpread(items2, r3, 0, intl);
items2[value] = object2;
value + 1;
return items2;
}
}
return r3;
}
function _fun49371(a0) { // fn#49371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:728, offset: 0x011f8027, size: 179 bytes, params: 2, frame: 17
var r0;
var value3;
var defaultImport;
var increment;
var object2;
var value5;
var binding;
let value = a0;
if (!env0_0) {
value3 = environment.__proto__.__proto__;
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
increment = defaultImport.increment;
object2 = {};
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.GOOGLE_WALLET_AVAILABILITY_CHECK;
object2.tags = ['available:' + value];
Reflect.apply(increment, defaultImport, [object2]);
value5 = environment.__proto__;
binding = env1_4;
if (value) {
value = require(6256) /* metro dependency 6256: GoogleWalletExperiment */;
value = value.isGoogleWalletEnabled('age_verification_methods');
r0 = value;
} else {
r0 = value;
}
binding(r0);
}
}
function _fun49376(a0) { // fn#49376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1092, offset: 0x011f8222, size: 143 bytes, params: 2, frame: 20
const env0_0 = a0;
const property = VERIFICATION_METHOD_TITLE_MAP[a0];
if (property == null) {
return null;
}
const title = property.title;
const description = property.description;
const object2 = {id: a0};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string(title);
object2.description = intl.string(description);
const env0_1 = env2_3(_fun49378);
object2.onClick = onClick_49379;
return object2;
}
function onClick_49381(a0) { // fn#49381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1673, offset: 0x011f833d, size: 163 bytes, params: 2, frame: 19
const defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
const increment = defaultImport.increment;
const MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
const GOOGLE_WALLET_METHOD_SELECTED = MetricEvents.GOOGLE_WALLET_METHOD_SELECTED;
Reflect.apply(increment, defaultImport, [{name: GOOGLE_WALLET_METHOD_SELECTED}]);
const ageVerificationAnalyticsUtilsModule = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = ageVerificationAnalyticsUtilsModule.trackAgeVerificationModalClicked;
const AgeVerificationModalVersion = ageVerificationAnalyticsUtilsModule.AgeVerificationModalVersion;
const EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
const AgeVerificationModalCta = ageVerificationAnalyticsUtilsModule.AgeVerificationModalCta;
const METHOD_SELECT = AgeVerificationModalCta.METHOD_SELECT;
const GOOGLE_WALLET = VerificationMethod.GOOGLE_WALLET;
Reflect.apply(trackAgeVerificationModalClicked, ageVerificationAnalyticsUtilsModule, [a0, EXPRESSIVE_PRIMARY,
METHOD_SELECT, GOOGLE_WALLET]);
onGoogleWalletSelect();
}
function* _fun49378(a0) { // fn#49378, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1254, offset: 0x011f82ba, size: 131 bytes, params: 2, frame: 19
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
var binding = env4_0;
var binding2 = env4_2;
value = binding(binding2[7]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[7]).AgeVerificationModalVersion;
var EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
var AgeVerificationModalCta = binding(binding2[7]).AgeVerificationModalCta;
var METHOD_SELECT = AgeVerificationModalCta.METHOD_SELECT;
binding = env1_0;
Reflect.apply(trackAgeVerificationModalClicked, value, [a0, EXPRESSIVE_PRIMARY, METHOD_SELECT, binding]);
value = environment.__proto__.__proto__.__proto__;
yield dependencyMap(binding);
}
function _fun49380(a0) { // fn#49380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6431:1484, offset: 0x00d0b2f0, size: 11 bytes, params: 2, frame: 2
return a0 != null;
}
global.__d(_fun49367, 6253, [5, 57, 31, 5261, 5262, 566, 4813, 5074, 6254, 4826, 4831, 6256, 6257, 1244,
2]) /* metro module 6253, dependencies: [5, 57, 31, 5261, 5262, 566, 4813, 5074, 6254, 4826, 4831, 6256, 6257, 1244, 2] */;
@@ -1,61 +1,121 @@
/* Metro module 6252; source: modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx; dependencies: [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260, 1244, 2742, 5263, 1948, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as SafetyHubUtilsModule from '../../safety_hub/SafetyHubUtils.tsx'; /* Metro dependency 5266 */
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as AgeVerificationMethodsContainerModule from './AgeVerificationMethodsContainer.tsx'; /* Metro dependency 6260 */
function _fun49363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:6, offset: 0x011f7987, size: 250 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_16 = (Native).space.PX_16;
const env0_7 = Reflect.apply(createStyles, value, [{header: {textAlign: 'center'}, helpLink: {marginTop: PX_16,
textAlign: 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx');
exports.default = AgeVerificationEmbeddedIntroScreen;
}
function AgeVerificationEmbeddedIntroScreen({onClose, modalSessionId, classificationId, entryPoint, navigation}) { // fn#49364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:386, offset: 0x011f7a81, size: 699 bytes, params: 2, frame: 40
const styles = useStyles();
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
const ageVerificationMethods = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose,
classificationId: classificationId, onGoogleWalletSelect: env0_3.useCallback(function() {
navigation.navigate(require(dependencyMap[6]).AgeVerificationGetStartedModalScenes.GOOGLE_WALLET_VERIFICATION);
}, [navigation])}).ageVerificationMethods;
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
const items2 = [<ShieldSpotIllustration height={100} width={177} />];
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let value = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
value = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary">{value.getAgeVerificationGetStartedTitle(entryPoint)}</Text>;
items2[1] = <Stack3 align="center" justify="center" spacing={8}>{value}<Text variant="text-md/medium" color="text-strong" style={styles.header}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint,
undefined, value2)}</Text></Stack3>;
value = <Stack2 align="center" justify="center" spacing={16}>{items2}</Stack2>;
const AgeVerificationMethodsContainer = (require(6260) /* metro dependency 6260: AgeVerificationMethodsContainer */).AgeVerificationMethodsContainer;
value = <Stack align="center" justify="center" spacing={24}>{value}<AgeVerificationMethodsContainer ageVerificationMethods={ageVerificationMethods} modalSessionId={modalSessionId} /></Stack>;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ModalScreen>
<ModalContent>
function AgeVerificationEmbeddedIntroScreen({onClose, modalSessionId, classificationId, entryPoint, navigation}) { // fn#49364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:386, offset: 0x011f7a81, size: 699 bytes, params: 2, frame: 40
const styles = useStyles();
const value2 = (SafetyHubUtilsModule).useIsSuspendedUser();
const ageVerificationMethods = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose,
classificationId: classificationId, onGoogleWalletSelect: ReactModule.useCallback(function() {
navigation.navigate(require(dependencyMap[6]).AgeVerificationGetStartedModalScenes.GOOGLE_WALLET_VERIFICATION);
}, [navigation])}).ageVerificationMethods;
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Stack = (StackNativeModule).Stack;
const Stack2 = (StackNativeModule).Stack;
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
const items2 = [
<ShieldSpotIllustration height={100} width={177} />,
];
const Stack3 = (StackNativeModule).Stack;
const Text = (TextModule).Text;
let value = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
value = (
<Text
accessibilityRole="header"
variant="heading-xl/bold"
color="mobile-text-heading-primary"
>
{value.getAgeVerificationGetStartedTitle(entryPoint)}
</Text>
);
items2[1] = (
<Stack3
align="center"
justify="center"
spacing={8}
>
{value}
<Text
variant="text-xs/medium"
color="text-muted"
style={styles.helpLink}
variant="text-md/medium"
color="text-strong"
style={styles.header}
>
{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).lG69e1,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[17]).openUrl(importDefault(dependencyMap[18]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}})}
{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint,
undefined, value2)}
</Text>
</ModalContent>
</ModalScreen>
);
</Stack3>
);
value = (
<Stack2
align="center"
justify="center"
spacing={16}
>
{items2}
</Stack2>
);
const AgeVerificationMethodsContainer = (AgeVerificationMethodsContainerModule).AgeVerificationMethodsContainer;
value = (
<Stack
align="center"
justify="center"
spacing={24}
>
{value}
<AgeVerificationMethodsContainer
ageVerificationMethods={ageVerificationMethods}
modalSessionId={modalSessionId}
/>
</Stack>
);
const intl = (IndexNativeModule).intl;
return (
<ModalScreen>
<ModalContent>
{value}
<Text
variant="text-xs/medium"
color="text-muted"
style={styles.helpLink}
>
{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).lG69e1,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[17]).openUrl(importDefault(dependencyMap[18]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}})}
</Text>
</ModalContent>
</ModalScreen>
);
}
}
global.__d(_fun49363, 6252, [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260,
1244, 2742, 5263, 1948,
2]) /* metro module 6252, dependencies: [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260, 1244, 2742, 5263, 1948, 2] */;
@@ -1,145 +1,157 @@
/* Metro module 5470; source: modules/age_assurance/native/AgeVerificationGetStartedModal.tsx; dependencies: [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import AgeVerificationIntroScreen from './AgeVerificationIntroScreen.tsx'; /* Metro dependency 5471 */
import AgeVerificationRetryScreen from './AgeVerificationRetryScreen.tsx'; /* Metro dependency 6251 */
import AgeVerificationEmbeddedIntroScreen from './AgeVerificationEmbeddedIntroScreen.tsx'; /* Metro dependency 6252 */
import GoogleWalletVerificationScreen from './GoogleWalletVerificationScreen.tsx'; /* Metro dependency 6262 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module00491Module from '../../../by-id/module-00491.js'; /* Metro dependency 491 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
function _fun48062(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:6, offset: 0x011d8ae4, size: 272 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_5 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER, shadowColor: 'transparent'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationGetStartedModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationGetStartedModal.tsx');
exports.default = AgeVerificationGetStartedModal;
exports.AgeVerificationGetStartedModalScenes = {INTRO: 'INTRO', RETRY: 'RETRY',
EXPRESSIVE_INTRO: 'EXPRESSIVE_INTRO', GOOGLE_WALLET_VERIFICATION: 'GOOGLE_WALLET_VERIFICATION'};
}
function getInitialRouteName(a0, a1) { // fn#48063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:395, offset: 0x011d8bf4, size: 43 bytes, params: 3, frame: 3
const binding = env0_6;
return a1 ? binding.EXPRESSIVE_INTRO : a0 ? binding.RETRY : binding.INTRO;
}
function AgeVerificationGetStartedModal({entryPoint, isRetry, useEmbeddedMethods, classificationId, onComplete}) { // fn#48064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:583, offset: 0x011d8c1f, size: 334 bytes, params: 2, frame: 22
useEmbeddedMethods = !(useEmbeddedMethods === undefined) && useEmbeddedMethods;
const env0_3 = classificationId;
const styles = useStyles();
const binding = env0_3;
const value2 = binding.useMemo(_fun48065, []);
const value3 = binding.useMemo(_fun48066, [styles, value2, classificationId, onComplete, entryPoint]);
binding.useEffect(_fun48079, [value2, entryPoint, binding.useMemo(function() {
var r0;
var isRetryBinding;
var property;
if (useEmbeddedMethods) {
r0 = require(dependencyMap[11]).AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
} else {
isRetryBinding = isRetry;
property = require(dependencyMap[11]).AgeVerificationModalVersion;
r0 = isRetryBinding ? property.RETRY : property.PRIMARY;
}
return r0;
}, [useEmbeddedMethods, isRetry])]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const navigatorProps = {screens: value3, initialRouteName: getInitialRouteName(isRetry, useEmbeddedMethods)};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
navigatorProps.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
return <Navigator {...navigatorProps} />;
}
function _fun48065() { // fn#48065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:728, offset: 0x011d8d6d, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(491) /* metro dependency 491 */).v4();
}
function _fun48066() { // fn#48066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:764, offset: 0x011d8d92, size: 38 bytes, params: 1, frame: 19
return getScreens_48067(styles, env0_6, entryPoint, classificationId, onComplete);
}
function _fun48079() { // fn#48079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1910, offset: 0x011d90df, size: 55 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
value.trackAgeVerificationModalViewed(env0_6, env0_7, entryPoint);
}
function getScreens_48067(a0, a1, a2, a3, a4) { // fn#48067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:768, offset: 0x011d8db8, size: 362 bytes, params: 6, frame: 21
var environment;
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a4;
const closure = getScreens_48067CloseModal;
const object6 = {};
const value = environment.__proto__.__proto__;
const INTRO = env2_6.INTRO;
const object7 = {};
object7.headerStyle = a0.headerStyle;
object7.headerTitle = function() {
return null;
};
object7.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object7.render = render_48071;
object6[INTRO] = object7;
const RETRY = env2_6.RETRY;
const object8 = {};
object8.headerStyle = a0.headerStyle;
object8.headerTitle = function() {
return null;
};
object8.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object8.render = render_48073;
object6[RETRY] = object8;
const EXPRESSIVE_INTRO = env2_6.EXPRESSIVE_INTRO;
const object9 = {};
object9.headerStyle = a0.headerStyle;
object9.headerTitle = function() {
return null;
};
object9.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object9.render = render_48075;
object6[EXPRESSIVE_INTRO] = object9;
const GOOGLE_WALLET_VERIFICATION = env2_6.GOOGLE_WALLET_VERIFICATION;
const object10 = {};
object10.headerStyle = a0.headerStyle;
object10.headerTitle = function() {
return null;
};
object10.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object10.render = render_48077;
object6[GOOGLE_WALLET_VERIFICATION] = object10;
return object6;
}
function getScreens_48067CloseModal() { // fn#48068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:814, owner: getScreens_48067.closeModal, offset: 0x011d8f22, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function closeModalWithOnComplete() { // fn#48069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:857, owner: getScreens_48067.closeModalWithOnComplete, offset: 0x011d8f47, size: 33 bytes, params: 1, frame: 11
getScreens_48067CloseModal();
if (env0_3 != null) {
env0_3();
function getInitialRouteName(a0, a1) { // fn#48063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:395, offset: 0x011d8bf4, size: 43 bytes, params: 3, frame: 3
const binding = env0_6;
return a1 ? binding.EXPRESSIVE_INTRO : a0 ? binding.RETRY : binding.INTRO;
}
function AgeVerificationGetStartedModal({entryPoint, isRetry, useEmbeddedMethods, classificationId, onComplete}) { // fn#48064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:583, offset: 0x011d8c1f, size: 334 bytes, params: 2, frame: 22
useEmbeddedMethods = !(useEmbeddedMethods === undefined) && useEmbeddedMethods;
const classificationId2 = classificationId;
const styles = useStyles();
const binding = classificationId2;
const value2 = binding.useMemo(_fun48065, []);
const value3 = binding.useMemo(_fun48066, [styles, value2, classificationId, onComplete, entryPoint]);
binding.useEffect(_fun48079, [value2, entryPoint, binding.useMemo(function() {
var r0;
var isRetryBinding;
var property;
if (useEmbeddedMethods) {
r0 = require(dependencyMap[11]).AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
} else {
isRetryBinding = isRetry;
property = require(dependencyMap[11]).AgeVerificationModalVersion;
r0 = isRetryBinding ? property.RETRY : property.PRIMARY;
}
return r0;
}, [useEmbeddedMethods, isRetry])]);
const Navigator = (NavigatorNativeModule).Navigator;
const navigatorProps = {screens: value3, initialRouteName: getInitialRouteName(isRetry, useEmbeddedMethods)};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
navigatorProps.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
return <Navigator {...navigatorProps} />;
function _fun48065() { // fn#48065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:728, offset: 0x011d8d6d, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00491Module).v4();
}
function _fun48066() { // fn#48066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:764, offset: 0x011d8d92, size: 38 bytes, params: 1, frame: 19
return getScreens_48067(styles, env0_6, entryPoint, classificationId, onComplete);
function getScreens_48067(a0, a1, a2, a3, a4) { // fn#48067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:768, offset: 0x011d8db8, size: 362 bytes, params: 6, frame: 21
var environment;
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a4;
const closeModal2 = closeModal;
const object = {};
const value = environment.__proto__.__proto__;
const INTRO = env2_6.INTRO;
const object2 = {};
object2.headerStyle = a0.headerStyle;
object2.headerTitle = function() {
return null;
};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closeModal2);
object2.render = render_48071;
object[INTRO] = object2;
const RETRY = env2_6.RETRY;
const object3 = {};
object3.headerStyle = a0.headerStyle;
object3.headerTitle = function() {
return null;
};
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closeModal2);
object3.render = render_48073;
object[RETRY] = object3;
const EXPRESSIVE_INTRO = env2_6.EXPRESSIVE_INTRO;
const object4 = {};
object4.headerStyle = a0.headerStyle;
object4.headerTitle = function() {
return null;
};
object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closeModal2);
object4.render = render_48075;
object[EXPRESSIVE_INTRO] = object4;
const GOOGLE_WALLET_VERIFICATION = env2_6.GOOGLE_WALLET_VERIFICATION;
const object5 = {};
object5.headerStyle = a0.headerStyle;
object5.headerTitle = function() {
return null;
};
object5.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object5.render = render_48077;
object[GOOGLE_WALLET_VERIFICATION] = object5;
return object;
function closeModal() { // fn#48068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:814, owner: getScreens_48067.closeModal, offset: 0x011d8f22, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (ModalActionCreators).pop();
}
function closeModalWithOnComplete() { // fn#48069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:857, owner: getScreens_48067.closeModalWithOnComplete, offset: 0x011d8f47, size: 33 bytes, params: 1, frame: 11
closeModal();
if (env0_3 != null) {
env0_3();
}
}
function getScreens_48067Render() { // fn#48071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1013, owner: getScreens_48067.render, offset: 0x011d8f68, size: 69 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModal} modalSessionId={require} entryPoint={importDefault} />)(AgeVerificationIntroScreen);
}
function getScreens_48067Render_48073() { // fn#48073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1197, owner: getScreens_48067.render, offset: 0x011d8fad, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModal} modalSessionId={require} />)(AgeVerificationRetryScreen);
}
function getScreens_48067Render_48075(a0, a1) { // fn#48075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1379, owner: getScreens_48067.render, offset: 0x011d8fe9, size: 86 bytes, params: 3, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} classificationId={importAll} entryPoint={importDefault} navigation={a1} />)(AgeVerificationEmbeddedIntroScreen);
}
function getScreens_48067Render_48077() { // fn#48077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1622, owner: getScreens_48067.render, offset: 0x011d903f, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} />)(GoogleWalletVerificationScreen);
}
}
}
function _fun48079() { // fn#48079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1910, offset: 0x011d90df, size: 55 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
value.trackAgeVerificationModalViewed(env0_6, env0_7, entryPoint);
}
}
}
function getScreens_48067Render() { // fn#48071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1013, owner: getScreens_48067.render, offset: 0x011d8f68, size: 69 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_48067CloseModal} modalSessionId={require} entryPoint={importDefault} />)(importDefault(5471) /* metro dependency 5471: AgeVerificationIntroScreen */);
}
function getScreens_48067Render_48073() { // fn#48073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1197, owner: getScreens_48067.render, offset: 0x011d8fad, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_48067CloseModal} modalSessionId={require} />)(importDefault(6251) /* metro dependency 6251: AgeVerificationRetryScreen */);
}
function getScreens_48067Render_48075(a0, a1) { // fn#48075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1379, owner: getScreens_48067.render, offset: 0x011d8fe9, size: 86 bytes, params: 3, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} classificationId={importAll} entryPoint={importDefault} navigation={a1} />)(importDefault(6252) /* metro dependency 6252: AgeVerificationEmbeddedIntroScreen */);
}
function getScreens_48067Render_48077() { // fn#48077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1622, owner: getScreens_48067.render, offset: 0x011d903f, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} />)(importDefault(6262) /* metro dependency 6262: GoogleWalletVerificationScreen */);
}
global.__d(_fun48062, 5470, [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244,
2]) /* metro module 5470, dependencies: [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244, 2] */;
@@ -1,157 +1,211 @@
/* Metro module 5471; source: modules/age_assurance/native/AgeVerificationIntroScreen.tsx; dependencies: [5, 31, 27, 5262, 661, 5267, 33, 4501, 697, 1585, 4813, 5472, 5473, 4573, 6231, 6237, 1244, 5263, 1948, 5074, 4578, 6249, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import AgeVerificationActionCreatorsNative from '../AgeVerificationActionCreators.native.tsx'; /* Metro dependency 5263 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
import * as SafetyHubConstantsModule from '../../safety_hub/SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as HideManualAgeVerificationExperimentModule from '../HideManualAgeVerificationExperiment.tsx'; /* Metro dependency 5472 */
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as LinkExternalSmallIconModule from '../../../design/components/Icon/native/redesign/generated/LinkExternalSmallIcon.tsx'; /* Metro dependency 6249 */
function _fun48080(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:6, offset: 0x011d9116, size: 572 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_4 = value.ScrollView;
const env0_5 = value.View;
const env0_6 = (require(5262) /* metro dependency 5262: AgeVerificationConstants */).getAgeVerificationGetStartedSteps;
const env0_7 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_8 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
object = {};
const object2 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object2.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.gap = PX_16;
object4.flex = 1;
object3.getStartedContainer = object4;
object2.gap = PX_16;
object2.flex = 1;
object.getStartedContainer = object2;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.getStartedHeaderContainer = {alignItems: 'center', gap: PX_8};
object.getStartedHeaderContainer = {alignItems: 'center', gap: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.ageGroupLearnMoreContainer = {alignItems: 'center', marginTop: -PX_8};
object3.getStartedHeaderText = {textAlign: 'center'};
object3.getStartedRequestTextContainer = {alignItems: 'center'};
const object5 = {};
object.ageGroupLearnMoreContainer = {alignItems: 'center', marginTop: -PX_8};
object.getStartedHeaderText = {textAlign: 'center'};
object.getStartedRequestTextContainer = {alignItems: 'center'};
const object6 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
object6.paddingHorizontal = PX_16;
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
object5.paddingTop = PX_48;
object3.getStartedFooterContainer = object5;
object6.paddingTop = PX_48;
object.getStartedFooterContainer = object6;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.getStartedRequestText = {textAlign: 'center', marginBottom: PX_16};
object.getStartedRequestText = {textAlign: 'center', marginBottom: PX_16};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.getStartedFooterButtonsContainer = {gap: PX_8};
const env0_12 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationIntroScreen.tsx');
object.getStartedFooterButtonsContainer = {gap: PX_8};
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationIntroScreen.tsx');
exports.default = GetStartedScreen;
}
function GetStartedScreen({modalSessionId, onClose, entryPoint}) { // fn#48081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:983, offset: 0x011d9352, size: 1052 bytes, params: 2, frame: 36
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value2 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useInitiateAgeVerification({onComplete: onClose,
entryPoint: entryPoint});
const loading = value2.loading;
const env0_1 = value2.initiateAgeVerification;
const value3 = (require(5472) /* metro dependency 5472: HideManualAgeVerificationExperiment */).useIsManualAgeVerificationHidden('age_verification_get_started_modal');
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
const items3 = [<ShieldSpotIllustration />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let getStartedHeaderText = styles.getStartedHeaderText;
items3[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={getStartedHeaderText}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedTitle(entryPoint)}</Text>;
getStartedHeaderText = styles.getStartedHeaderText;
items3[2] = <Text variant="heading-md/medium" color="text-default" style={getStartedHeaderText}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint)}</Text>;
const items2 = [<View style={styles.getStartedHeaderContainer}>{items3}</View>];
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items2[1] = <TableRowGroup hasIcons>{getAgeVerificationGetStartedSteps(modalSessionId).map(_fun48082)}</TableRowGroup>;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = <View style={styles.ageGroupLearnMoreContainer}><Text variant="text-xs/medium" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook})}</Text></View>;
const scrollView = <ScrollView><View style={styles.getStartedContainer}>{items2}</View></ScrollView>;
const getStartedFooterContainer = styles.getStartedFooterContainer;
const items4 = [getStartedFooterContainer];
items4[1] = {paddingBottom: bottom};
const r8 = !value3 && <View style={styles.getStartedRequestTextContainer}><Text variant="text-xs/medium" color="text-muted" style={styles.getStartedRequestText}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.pJAxgQ,
{handleOnRequestHook: handleOnRequestHook})}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const object = {'variant': 'primary', 'size': 'lg'};
const string = intl.string;
const SJMnkX = (require(1244) /* metro dependency 1244: indexNative */).t.SJMnkX;
object.text = Reflect.apply(string, intl, [SJMnkX]);
object.onPress = env0_3(_fun48086);
const LinkExternalSmallIcon = (require(6249) /* metro dependency 6249: LinkExternalSmallIcon */).LinkExternalSmallIcon;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object.icon = <LinkExternalSmallIcon color={WHITE} />;
object.loading = loading;
object.iconPosition = 'end';
return (
<>
{scrollView}
<View style={items4}>
{r8}
<View style={styles.getStartedFooterButtonsContainer}>
<Button {...object} />
</View>
function GetStartedScreen({modalSessionId, onClose, entryPoint}) { // fn#48081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:983, offset: 0x011d9352, size: 1052 bytes, params: 2, frame: 36
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value2 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useInitiateAgeVerification({onComplete: onClose,
entryPoint: entryPoint});
const loading = value2.loading;
const env0_1 = value2.initiateAgeVerification;
const value3 = (HideManualAgeVerificationExperimentModule).useIsManualAgeVerificationHidden('age_verification_get_started_modal');
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
const items3 = [
<ShieldSpotIllustration />,
];
const Text = (TextModule).Text;
let getStartedHeaderText = styles.getStartedHeaderText;
items3[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={getStartedHeaderText}
>
{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedTitle(entryPoint)}
</Text>
);
getStartedHeaderText = styles.getStartedHeaderText;
items3[2] = (
<Text
variant="heading-md/medium"
color="text-default"
style={getStartedHeaderText}
>
{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint)}
</Text>
);
const items2 = [
<View style={styles.getStartedHeaderContainer}>
{items3}
</View>,
];
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
items2[1] = (
<TableRowGroup hasIcons>
{getAgeVerificationGetStartedSteps(modalSessionId).map(_fun48082)}
</TableRowGroup>
);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = (
<View style={styles.ageGroupLearnMoreContainer}>
<Text variant="text-xs/medium" color="text-muted">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook_48083})}
</Text>
</View>
</>
);
}
);
const scrollView = (
<ScrollView>
<View style={styles.getStartedContainer}>
{items2}
</View>
</ScrollView>
);
const getStartedFooterContainer = styles.getStartedFooterContainer;
const items4 = [getStartedFooterContainer];
items4[1] = {paddingBottom: bottom};
const r8 = !value3 && <View style={styles.getStartedRequestTextContainer}><Text variant="text-xs/medium" color="text-muted" style={styles.getStartedRequestText}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.pJAxgQ,
{handleOnRequestHook: handleOnRequestHook})}</Text></View>;
const Button = (ButtonNativeModule).Button;
const object2 = {'variant': 'primary', 'size': 'lg'};
const string = intl.string;
const SJMnkX = (require(1244) /* metro dependency 1244: indexNative */).t.SJMnkX;
object2.text = Reflect.apply(string, intl, [SJMnkX]);
object2.onPress = Module00005(_fun48086);
const LinkExternalSmallIcon = (LinkExternalSmallIconModule).LinkExternalSmallIcon;
const WHITE = (Native).colors.WHITE;
object2.icon = <LinkExternalSmallIcon color={WHITE} />;
object2.loading = loading;
object2.iconPosition = 'end';
return (
<>
{scrollView}
<View style={items4}>
{r8}
<View style={styles.getStartedFooterButtonsContainer}>
<Button {...object2} />
</View>
</View>
</>
);
function _fun48082({title, description}, a1) { // fn#48082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:1816, offset: 0x011d976e, size: 176 bytes, params: 3, frame: 21
const Text = (TextModule).Text;
const value = environment.__proto__;
return ((Component) => <Component index={a1 + 1} tip={<Text variant="text-md/medium" color="mobile-text-heading-primary">{title}</Text>} description={description != null ? <Text variant="text-xs/medium" color="text-subtle">{description}</Text> : null} key={a1} />)(importDefault(6237) /* metro dependency 6237: SafetyTipsRow */);
}
function _fun48082({title, description}, a1) { // fn#48082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:1816, offset: 0x011d976e, size: 176 bytes, params: 3, frame: 21
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const value = environment.__proto__;
return ((Component) => <Component index={a1 + 1} tip={<Text variant="text-md/medium" color="mobile-text-heading-primary">{title}</Text>} description={description != null ? <Text variant="text-xs/medium" color="text-subtle">{description}</Text> : null} key={a1} />)(importDefault(6237) /* metro dependency 6237: SafetyTipsRow */);
}
function GetStartedScreenHandleOnHelpUrlHook() { // fn#48083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2252, owner: GetStartedScreen.handleOnHelpUrlHook, offset: 0x011d981e, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, LEARN_MORE]);
}
function GetStartedScreenHandleOnHelpUrlHook() { // fn#48083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2252, owner: GetStartedScreen.handleOnHelpUrlHook, offset: 0x011d981e, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, LEARN_MORE]);
}
function handleOnRequestHook() { // fn#48084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2759, owner: GetStartedScreen.handleOnRequestHook, offset: 0x011d98b3, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, MANUAL_REVIEW_REQUEST]);
}
function handleOnRequestHook() { // fn#48084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2759, owner: GetStartedScreen.handleOnRequestHook, offset: 0x011d98b3, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, MANUAL_REVIEW_REQUEST]);
}
function* _fun48086() { // fn#48086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:3107, offset: 0x011d993a, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
value = binding(binding2[19]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[19]).AgeVerificationModalVersion;
var PRIMARY = AgeVerificationModalVersion.PRIMARY;
var AgeVerificationModalCta = binding(binding2[19]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, PRIMARY, GET_STARTED]);
yield importDefault();
}
}
function* _fun48086() { // fn#48086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:3107, offset: 0x011d993a, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
value = binding(binding2[19]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[19]).AgeVerificationModalVersion;
var PRIMARY = AgeVerificationModalVersion.PRIMARY;
var AgeVerificationModalCta = binding(binding2[19]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, PRIMARY, GET_STARTED]);
yield importDefault();
}
}
global.__d(_fun48080, 5471, [5, 31, 27, 5262, 661, 5267, 33, 4501, 697, 1585, 4813, 5472, 5473, 4573, 6231, 6237,
1244, 5263, 1948, 5074, 4578, 6249,
2]) /* metro module 5471, dependencies: [5, 31, 27, 5262, 661, 5267, 33, 4501, 697, 1585, 4813, 5472, 5473, 4573, 6231, 6237, 1244, 5263, 1948, 5074, 4578, 6249, 2] */;
@@ -1,118 +1,181 @@
/* Metro module 6260; source: modules/age_assurance/native/AgeVerificationMethodsContainer.tsx; dependencies: [31, 5262, 5267, 33, 4501, 697, 5266, 4826, 4831, 4572, 1305, 1244, 6231, 4573, 2742, 6261, 4578, 6257, 6238, 5263, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
import * as SafetyHubUtilsModule from '../../safety_hub/SafetyHubUtils.tsx'; /* Metro dependency 5266 */
import * as SafetyHubConstantsModule from '../../safety_hub/SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
function _fun49428(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:6, offset: 0x011f9060, size: 359 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(5262) /* metro dependency 5262: AgeVerificationConstants */).VerificationMethod;
const env0_5 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.content = {marginTop: PX_8};
const object4 = {};
object.content = {marginTop: PX_8};
const object3 = {};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginTop = PX_24;
object3.marginTop = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginBottom = PX_24;
object2.errorContainer = object4;
object3.marginBottom = PX_24;
object.errorContainer = object3;
const PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object2.noMethodsText = {paddingHorizontal: PX_40, textAlign: 'center'};
object2.buttonGroup = {paddingVertical: 0};
const env0_8 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationMethodsContainer.tsx');
object.noMethodsText = {paddingHorizontal: PX_40, textAlign: 'center'};
object.buttonGroup = {paddingVertical: 0};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationMethodsContainer.tsx');
exports.AgeVerificationMethodsContainer = AgeVerificationMethodsContainer;
}
function AgeVerificationMethodsContainer({ageVerificationMethods, modalSessionId}) { // fn#49429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:570, offset: 0x011f91c7, size: 840 bytes, params: 2, frame: 39
var r14;
const Stack3 = (StackNativeModule).Stack;
const Text = (TextModule).Text;
var items2;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
const styles = useStyles();
const value2 = (SafetyHubUtilsModule).useIsSuspendedUser();
ReactModule.useEffect(_fun49430, [ageVerificationMethods]);
const Stack = (StackNativeModule).Stack;
const Stack2 = (StackNativeModule).Stack;
const HelpMessage = (NativeModule).HelpMessage;
const HelpMessageTypes = (NativeModule).HelpMessageTypes;
const INFO = HelpMessageTypes.INFO;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const El4aXl = (IndexNativeModule).t.El4aXl;
const helpMessage = (
<HelpMessage
messageType={INFO}
textColor="text-feedback-info"
textVariant="text-sm/medium"
>
{Reflect.apply(string, intl, [El4aXl])}
</HelpMessage>
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
if (ageVerificationMethods == null) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [
<Text
variant="text-sm/medium"
color="text-subtle"
style={styles.noMethodsText}
>
{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}
</Text>,
];
items2[1] = (
<ButtonGroup style={styles.buttonGroup}>
<Button
variant="primary"
size="lg"
text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)}
onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods}
/>
</ButtonGroup>
);
r14 = (
<Stack3 {...stack3Props}>
{items2}
</Stack3>
);
} else if (ageVerificationMethods.length === 0) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [
<Text
variant="text-sm/medium"
color="text-subtle"
style={styles.noMethodsText}
>
{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}
</Text>,
];
items2[1] = (
<ButtonGroup style={styles.buttonGroup}>
<Button
variant="primary"
size="lg"
text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)}
onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods}
/>
</ButtonGroup>
);
r14 = (
<Stack3 {...stack3Props}>
{items2}
</Stack3>
);
} else {
r14 = ageVerificationMethods.map(_fun49432);
}
return (
<Stack spacing={8} align="center">
<Stack2 spacing={16} style={styles.content}>
{helpMessage}
<TableRowGroup hasIcons={false}>
{r14}
</TableRowGroup>
</Stack2>
{value2 && <Text variant="text-xs/medium">{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).htWh1G,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[19]).openUrl(SafetyHubLinks.LEARN_MORE_UU_APPEAL_LINK);
}})}</Text>}
</Stack>
);
function _fun49430() { // fn#49430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:717, offset: 0x011f950f, size: 115 bytes, params: 1, frame: 15
var environment;
var defaultImport;
var increment;
var object;
var value;
if (ageVerificationMethods != null && ageVerificationMethods.some(function({id}) {
return id === VerificationMethod.GOOGLE_WALLET;
})) {
value = environment.__proto__;
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
increment = defaultImport.increment;
object = {};
object.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.GOOGLE_WALLET_METHOD_IMPRESSION;
Reflect.apply(increment, defaultImport, [object]);
}
}
function _fun49432(a0) { // fn#49432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1637, offset: 0x011f959d, size: 95 bytes, params: 2, frame: 17
const env0_0 = a0;
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
label={a0.title}
subLabel={a0.description}
onPress={onPress_49433}
arrow
key={a0.id}
/>
);
function onPress_49433() { // fn#49433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1706, offset: 0x011f95fc, size: 27 bytes, params: 1, frame: 11
const binding = env0_0;
return binding.onClick(modalSessionId);
}
}
function AgeVerificationMethodsContainer({ageVerificationMethods, modalSessionId}) { // fn#49429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:570, offset: 0x011f91c7, size: 840 bytes, params: 2, frame: 39
var r14;
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const styles = useStyles();
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
env0_3.useEffect(_fun49430, [ageVerificationMethods]);
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const HelpMessage = (require(1305) /* metro dependency 1305: native */).HelpMessage;
const HelpMessageTypes = (require(1305) /* metro dependency 1305: native */).HelpMessageTypes;
const INFO = HelpMessageTypes.INFO;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const El4aXl = (require(1244) /* metro dependency 1244: indexNative */).t.El4aXl;
const helpMessage = <HelpMessage messageType={INFO} textColor="text-feedback-info" textVariant="text-sm/medium">{Reflect.apply(string,
intl, [El4aXl])}</HelpMessage>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
if (ageVerificationMethods == null) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [<Text variant="text-sm/medium" color="text-subtle" style={styles.noMethodsText}>{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}</Text>];
items2[1] = <ButtonGroup style={styles.buttonGroup}><Button variant="primary" size="lg" text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)} onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods} /></ButtonGroup>;
r14 = <Stack3 {...stack3Props}>{items2}</Stack3>;
} else if (ageVerificationMethods.length === 0) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [<Text variant="text-sm/medium" color="text-subtle" style={styles.noMethodsText}>{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}</Text>];
items2[1] = <ButtonGroup style={styles.buttonGroup}><Button variant="primary" size="lg" text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)} onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods} /></ButtonGroup>;
r14 = <Stack3 {...stack3Props}>{items2}</Stack3>;
} else {
r14 = ageVerificationMethods.map(_fun49432);
}
return (
<Stack spacing={8} align="center">
<Stack2 spacing={16} style={styles.content}>
{helpMessage}
<TableRowGroup hasIcons={false}>
{r14}
</TableRowGroup>
</Stack2>
{value2 && <Text variant="text-xs/medium">{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).htWh1G,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[19]).openUrl(SafetyHubLinks.LEARN_MORE_UU_APPEAL_LINK);
}})}</Text>}
</Stack>
);
}
function _fun49430() { // fn#49430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:717, offset: 0x011f950f, size: 115 bytes, params: 1, frame: 15
var environment;
var defaultImport;
var increment;
var object2;
var value;
if (ageVerificationMethods != null && ageVerificationMethods.some(function({id}) {
return id === VerificationMethod.GOOGLE_WALLET;
})) {
value = environment.__proto__;
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
increment = defaultImport.increment;
object2 = {};
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.GOOGLE_WALLET_METHOD_IMPRESSION;
Reflect.apply(increment, defaultImport, [object2]);
}
}
function _fun49432(a0) { // fn#49432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1637, offset: 0x011f959d, size: 95 bytes, params: 2, frame: 17
const env0_0 = a0;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
label={a0.title}
subLabel={a0.description}
onPress={onPress_49433}
arrow
key={a0.id}
/>
);
}
function onPress_49433() { // fn#49433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1706, offset: 0x011f95fc, size: 27 bytes, params: 1, frame: 11
const binding = env0_0;
return binding.onClick(modalSessionId);
}
global.__d(_fun49428, 6260, [31, 5262, 5267, 33, 4501, 697, 5266, 4826, 4831, 4572, 1305, 1244, 6231, 4573, 2742,
6261, 4578, 6257, 6238, 5263,
2]) /* metro module 6260, dependencies: [31, 5262, 5267, 33, 4501, 697, 5266, 4826, 4831, 4572, 1305, 1244, 6231, 4573, 2742, 6261, 4578, 6257, 6238, 5263, 2] */;
@@ -1,152 +1,162 @@
/* Metro module 5265; source: modules/age_assurance/native/AgeVerificationModal.tsx; dependencies: [31, 5262, 33, 5266, 4007, 4813, 5269, 4501, 697, 5080, 5277, 1244, 5280, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module05269 from '../../../by-id/module-05269.js'; /* Metro dependency 5269 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NavigationRouteUtilsNativeModule from '../../main_tabs_v2/helpers/NavigationRouteUtils.native.tsx'; /* Metro dependency 4007 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as AgeVerificationUtilsModule from '../AgeVerificationUtils.tsx'; /* Metro dependency 4813 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
import * as SafetyHubUtilsModule from '../../safety_hub/SafetyHubUtils.tsx'; /* Metro dependency 5266 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
function _fun46822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:6, offset: 0x011afb0a, size: 258 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(5262) /* metro dependency 5262: AgeVerificationConstants */).AGE_VERIFICATION_MODAL_KEY;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
object = {VERIFY_AGE: 'VERIFY_AGE'};
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_8 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
const env0_8 = Reflect.apply(createStyles, CreateStylesModule,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationModal.tsx');
exports.default = AgeVerificationModal;
}
function getScreens({headerStyle}, a1, a2, a3, a4) { // fn#46823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1022, offset: 0x011afc0c, size: 98 bytes, params: 6, frame: 5
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return {[VERIFY_AGE]: {headerStyle: headerStyle, headerTitle: a4, headerLeft: headerLeft_46825,
render: render_46826}};
}
function AgeVerifyScreen({webviewUrl, onComplete, onClose}) { // fn#46827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:232, offset: 0x011afd3e, size: 241 bytes, params: 2, frame: 21
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
const binding = env0_3;
let useCallback = binding.useCallback;
const value3 = Reflect.apply(useCallback, binding, [function() {
onComplete();
onClose();
}, [onComplete, onClose]]);
useCallback = binding.useCallback;
(require(4813) /* metro dependency 4813: AgeVerificationUtils */).useWatchAgeVerificationStatusChange(Reflect.apply(useCallback,
binding, [_fun46829, [value3]]));
return ((Component) => <Component allowsInlineMediaPlayback javaScriptEnabled source={{uri: webviewUrl}} onMessage={binding.useCallback(_fun46830,
[value3,
value2])} injectedJavaScript={"\n window.addEventListener('message', function(event) {\n window.ReactNativeWebView.postMessage(event.data);\n }, true);\n"} />)(importDefault(5269) /* metro dependency 5269 */);
}
function AgeVerificationModal({webviewUrl, onComplete, onClose}) { // fn#46831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1448, offset: 0x011aff09, size: 258 bytes, params: 2, frame: 23
const styles = useStyles();
const env0_3 = styles;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value3 = env0_3.useMemo(_fun46832, [styles, webviewUrl, onComplete, onClose,
intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wJVyYR)]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return (
<Navigator
screens={value3}
initialRouteName={VERIFY_AGE}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function getScreensHandleClose() { // fn#46824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1069, owner: getScreens.handleClose, offset: 0x011afc6e, size: 48 bytes, params: 1, frame: 12
importAll();
const value = environment.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function getScreensHeaderLeft() { // fn#46825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1167, owner: getScreens.headerLeft, offset: 0x011afc9e, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const getScreensHandleCloseBinding = getScreensHandleClose;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
onPress={getScreensHandleCloseBinding}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
/>
);
}
function getScreensRender() { // fn#46826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1276, owner: getScreens.render, offset: 0x011afd09, size: 53 bytes, params: 1, frame: 14
return (
<AgeVerifyScreen
webviewUrl={require}
onComplete={importDefault}
onClose={getScreensHandleClose}
/>
);
}
function _fun46829() { // fn#46829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:365, offset: 0x011afe2f, size: 56 bytes, params: 1, frame: 12
const navigationRouteUtilsNativeModule = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
if (navigationRouteUtilsNativeModule.isModalOpen(AGE_VERIFICATION_MODAL_KEY)) {
env0_3();
}
}
function _fun46830(a0) { // fn#46830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:473, offset: 0x011afe67, size: 162 bytes, params: 2, frame: 15
var r1;
var eventType;
var r2;
var value2;
var JSON;
var parse;
var value3;
var value4;
var binding;
var value5;
var value6;
var error;
const value = undefined;
let nativeEvent = a0.nativeEvent;
let data = nativeEvent.data;
if (data != null) {
try {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value2 = typeof data === 'string';
if (value2) {
JSON = global.JSON;
parse = JSON.parse;
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value3 = Reflect.apply(parse, JSON, [data]);
r1 = value3;
} else {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
r1 = data;
}
value4 = environment;
binding = env0_2;
if (binding) {
value5 = r1 == null;
eventType = value5 ? value : r1.eventType;
value6 = eventType === 'Verification.Result';
r2 = value6;
} else {
r2 = binding;
}
if (r2) {
binding = env0_3;
binding();
}
} catch (error) {
function getScreens({headerStyle}, a1, a2, a3, a4) { // fn#46823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1022, offset: 0x011afc0c, size: 98 bytes, params: 6, frame: 5
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return {[VERIFY_AGE]: {headerStyle: headerStyle, headerTitle: a4, headerLeft: headerLeft, render: render_46826}};
function handleClose() { // fn#46824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1069, owner: getScreens.handleClose, offset: 0x011afc6e, size: 48 bytes, params: 1, frame: 12
importAll();
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function headerLeft() { // fn#46825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1167, owner: getScreens.headerLeft, offset: 0x011afc9e, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const handleCloseBinding = handleClose;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
onPress={handleCloseBinding}
text={intl.string((IndexNativeModule).t.cpT0Cq)}
/>
);
}
function getScreensRender() { // fn#46826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1276, owner: getScreens.render, offset: 0x011afd09, size: 53 bytes, params: 1, frame: 14
return (
<AgeVerifyScreen
webviewUrl={require}
onComplete={importDefault}
onClose={handleClose}
/>
);
}
}
function AgeVerifyScreen({webviewUrl, onComplete, onClose}) { // fn#46827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:232, offset: 0x011afd3e, size: 241 bytes, params: 2, frame: 21
const value2 = (SafetyHubUtilsModule).useIsSuspendedUser();
let useCallback = ReactModule.useCallback;
const value3 = Reflect.apply(useCallback, ReactModule, [function() {
onComplete();
onClose();
}, [onComplete, onClose]]);
useCallback = ReactModule.useCallback;
(AgeVerificationUtilsModule).useWatchAgeVerificationStatusChange(Reflect.apply(useCallback,
ReactModule, [_fun46829, [value3]]));
return ((Component) => <Component allowsInlineMediaPlayback javaScriptEnabled source={{uri: webviewUrl}} onMessage={ReactModule.useCallback(_fun46830,
[value3,
value2])} injectedJavaScript={"\n window.addEventListener('message', function(event) {\n window.ReactNativeWebView.postMessage(event.data);\n }, true);\n"} />)(Module05269);
function _fun46829() { // fn#46829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:365, offset: 0x011afe2f, size: 56 bytes, params: 1, frame: 12
if (NavigationRouteUtilsNativeModule.isModalOpen(AGE_VERIFICATION_MODAL_KEY)) {
ReactModule();
}
}
function _fun46830(a0) { // fn#46830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:473, offset: 0x011afe67, size: 162 bytes, params: 2, frame: 15
var r1;
var eventType;
var r2;
var value2;
var JSON;
var parse;
var value3;
var value4;
var binding;
var value5;
var value6;
var error;
const value = undefined;
let nativeEvent = a0.nativeEvent;
let data = nativeEvent.data;
if (data != null) {
try {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value2 = typeof data === 'string';
if (value2) {
JSON = global.JSON;
parse = JSON.parse;
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value3 = Reflect.apply(parse, JSON, [data]);
r1 = value3;
} else {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
r1 = data;
}
value4 = environment;
binding = env0_2;
if (binding) {
value5 = r1 == null;
eventType = value5 ? value : r1.eventType;
value6 = eventType === 'Verification.Result';
r2 = value6;
} else {
r2 = binding;
}
if (r2) {
binding = ReactModule;
binding();
}
} catch (error) {
}
}
return value;
}
}
function AgeVerificationModal({webviewUrl, onComplete, onClose}) { // fn#46831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1448, offset: 0x011aff09, size: 258 bytes, params: 2, frame: 23
const styles = useStyles();
const styles2 = styles;
const intl = (IndexNativeModule).intl;
const value3 = styles2.useMemo(_fun46832, [styles, webviewUrl, onComplete, onClose,
intl.string((IndexNativeModule).t.wJVyYR)]);
const Navigator = (NavigatorNativeModule).Navigator;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return (
<Navigator
screens={value3}
initialRouteName={VERIFY_AGE}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun46832() { // fn#46832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1582, offset: 0x011b000b, size: 38 bytes, params: 1, frame: 19
return getScreens(styles, webviewUrl, onComplete, onClose, AgeVerificationConstantsModule.AGE_VERIFICATION_MODAL_KEY);
}
}
return value;
}
function _fun46832() { // fn#46832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1582, offset: 0x011b000b, size: 38 bytes, params: 1, frame: 19
return getScreens(styles, webviewUrl, onComplete, onClose, env0_4);
}
global.__d(_fun46822, 5265, [31, 5262, 33, 5266, 4007, 4813, 5269, 4501, 697, 5080, 5277, 1244, 5280,
2]) /* metro module 5265, dependencies: [31, 5262, 33, 5266, 4007, 4813, 5269, 4501, 697, 5080, 5277, 1244, 5280, 2] */;
@@ -1,23 +1,36 @@
/* Metro module 5264; source: modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx; dependencies: [31, 33, 4500, 1244, 2742, 4500, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AlertModalNativeModule from '../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
function _fun46820(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5442:6, offset: 0x011af980, size: 136 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx');
exports.default = AgeVerificationQuestUnsupportedAlertModal;
function AgeVerificationQuestUnsupportedAlertModal() { // fn#46821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5442:236, offset: 0x011afa08, size: 258 bytes, params: 1, frame: 23
const AlertModal = (AlertModalNativeModule).AlertModal;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).gUqXQN);
object.content = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).yBHwMy);
const AlertActions = (AlertModalNativeModule).AlertActions;
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
object.actions = (
<AlertActions>
<AlertActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
key="got-it"
/>
</AlertActions>
);
return <AlertModal {...object} />;
}
}
function AgeVerificationQuestUnsupportedAlertModal() { // fn#46821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5442:236, offset: 0x011afa08, size: 258 bytes, params: 1, frame: 23
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).gUqXQN);
object2.content = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).yBHwMy);
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
object2.actions = <AlertActions><AlertActionButton text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} key="got-it" /></AlertActions>;
return <AlertModal {...object2} />;
}
global.__d(_fun46820, 5264, [31, 33, 4500, 1244, 2742, 4500,
2]) /* metro module 5264, dependencies: [31, 33, 4500, 1244, 2742, 4500, 2] */;
@@ -1,175 +1,226 @@
/* Metro module 6251; source: modules/age_assurance/native/AgeVerificationRetryScreen.tsx; dependencies: [5, 31, 27, 661, 5267, 33, 4501, 697, 4813, 5074, 5472, 1244, 5263, 477, 5473, 4573, 6231, 6238, 1948, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import AgeVerificationActionCreatorsNative from '../AgeVerificationActionCreators.native.tsx'; /* Metro dependency 5263 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AgeVerificationUtilsModule from '../AgeVerificationUtils.tsx'; /* Metro dependency 4813 */
import * as AgeVerificationAnalyticsUtilsModule from '../AgeVerificationAnalyticsUtils.tsx'; /* Metro dependency 5074 */
import * as SafetyHubConstantsModule from '../../safety_hub/SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as HideManualAgeVerificationExperimentModule from '../HideManualAgeVerificationExperiment.tsx'; /* Metro dependency 5472 */
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
function _fun49354(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:6, offset: 0x011f7175, size: 446 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.ActivityIndicator;
const env0_6 = value.ScrollView;
const env0_7 = value.View;
const env0_8 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_9 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
const env0_12 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {loadingIndicator: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'zIndex': 1}};
object = {loadingIndicator: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'zIndex': 1}};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {paddingHorizontal: PX_16, flex: 1};
const object4 = {};
object.container = {paddingHorizontal: PX_16, flex: 1};
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingVertical = PX_16;
object4.alignItems = 'center';
object3.paddingVertical = PX_16;
object3.alignItems = 'center';
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object2.headerContainer = object4;
object2.centerText = {textAlign: 'center'};
object3.gap = PX_8;
object.headerContainer = object3;
object.centerText = {textAlign: 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.helpLink = {marginTop: PX_8};
const env0_13 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationRetryScreen.tsx');
object.helpLink = {marginTop: PX_8};
const env0_13 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationRetryScreen.tsx');
exports.default = GetStartedScreen_49355;
}
function GetStartedScreen_49355({onClose, modalSessionId}) { // fn#49355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:698, offset: 0x011f7333, size: 871 bytes, params: 2, frame: 33
var r5;
var moduleValue3;
const styles = useStyles();
const useInitiateAgeVerification = AgeVerificationUtilsModule.useInitiateAgeVerification;
const object = {onComplete: onClose};
const AgeVerificationModalEntryPoint = (AgeVerificationAnalyticsUtilsModule).AgeVerificationModalEntryPoint;
const RETRY_MODAL = AgeVerificationModalEntryPoint.RETRY_MODAL;
object.entryPoint = RETRY_MODAL;
const {loading, initiateAgeVerification} = Reflect.apply(useInitiateAgeVerification, AgeVerificationUtilsModule,
[object]);
const value4 = (HideManualAgeVerificationExperimentModule).useIsManualAgeVerificationHidden('age_verification_retry_modal');
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JSdbBe = (require(1244) /* metro dependency 1244: indexNative */).t.JSdbBe;
const value5 = Reflect.apply(string, intl, [JSdbBe]);
string = intl.string;
const JNK1ue = (require(1244) /* metro dependency 1244: indexNative */).t.JNK1ue;
const value6 = Reflect.apply(string, intl, [JNK1ue]);
const value8 = ReactModule.useMemo(_fun49356, [initiateAgeVerification, modalSessionId, value4,
intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mFvt9M)]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
if (loading) {
var activityIndicatorBindingProps = {style: styles.loadingIndicator, size: 'small'};
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
activityIndicatorBindingProps.color = moduleValue3.isAndroid() ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE : undefined;
r5 = <ActivityIndicator {...activityIndicatorBindingProps} />;
} else {
r5 = loading;
}
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
const items2 = [
<ShieldSpotIllustration />,
];
const Text = (TextModule).Text;
items2[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={styles.centerText}
>
{value5}
</Text>
);
items2[2] = (
<Text
variant="heading-md/medium"
color="text-strong"
style={styles.centerText}
>
{value6}
</Text>
);
const items3 = [
<View style={styles.headerContainer}>
{items2}
</View>,
];
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
items3[1] = (
<TableRowGroup hasIcons={false}>
{value8.map(_fun49361)}
</TableRowGroup>
);
items3[2] = (
<Text
variant="text-xs/medium"
color="text-muted"
style={[styles.centerText, styles.helpLink]}
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook_49362})}
</Text>
);
return (
<>
{r5}
<ScrollView style={styles.container}>
{items3}
</ScrollView>
</>
);
function _fun49356() { // fn#49356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1134, offset: 0x011f769a, size: 257 bytes, params: 1, frame: 19
var push;
let object = {};
object.title = Module00005;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
object.description = Reflect.apply(string, intl, [t.ecdUKD]);
const env0_0 = env1_3(_fun49358);
object.onPress = onPress_49359;
const items2 = [object];
if (!env0_2) {
push = items2.push;
object = {};
object.title = intl.string(t['LZO+Hd']);
object.description = intl.string(t['ty+iWP']);
object.onPress = onPress_49360;
Reflect.apply(push, items2, [object]);
}
return items2;
function* _fun49358() { // fn#49358, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1223, offset: 0x011f77a4, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_0;
var binding2 = env3_2;
value = binding(binding2[9]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[9]).AgeVerificationModalVersion;
var RETRY = AgeVerificationModalVersion.RETRY;
var AgeVerificationModalCta = binding(binding2[9]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, RETRY, GET_STARTED]);
yield importDefault();
}
}
function onPress_49359() { // fn#49359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1378, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function onPress_49360() { // fn#49360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1554, offset: 0x011f781d, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, MANUAL_REVIEW_REQUEST]);
}
}
function _fun49361({title, description, onPress}, a1) { // fn#49361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2260, offset: 0x011f789b, size: 87 bytes, params: 3, frame: 18
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
arrow
label={title}
subLabel={description}
onPress={onPress}
key={a1}
/>
);
}
function GetStartedScreen_49355HandleOnHelpUrlHook() { // fn#49362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2531, owner: GetStartedScreen_49355.handleOnHelpUrlHook, offset: 0x011f78f2, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, LEARN_MORE]);
}
function GetStartedScreen_49355({onClose, modalSessionId}) { // fn#49355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:698, offset: 0x011f7333, size: 871 bytes, params: 2, frame: 33
var r5;
var moduleValue3;
const styles = useStyles();
const ageVerificationUtilsModule = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
const useInitiateAgeVerification = ageVerificationUtilsModule.useInitiateAgeVerification;
const object2 = {onComplete: onClose};
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const RETRY_MODAL = AgeVerificationModalEntryPoint.RETRY_MODAL;
object2.entryPoint = RETRY_MODAL;
const {loading, initiateAgeVerification} = Reflect.apply(useInitiateAgeVerification, ageVerificationUtilsModule,
[object2]);
const value4 = (require(5472) /* metro dependency 5472: HideManualAgeVerificationExperiment */).useIsManualAgeVerificationHidden('age_verification_retry_modal');
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JSdbBe = (require(1244) /* metro dependency 1244: indexNative */).t.JSdbBe;
const value5 = Reflect.apply(string, intl, [JSdbBe]);
string = intl.string;
const JNK1ue = (require(1244) /* metro dependency 1244: indexNative */).t.JNK1ue;
const value6 = Reflect.apply(string, intl, [JNK1ue]);
const value8 = env0_4.useMemo(_fun49356, [initiateAgeVerification, modalSessionId, value4,
intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mFvt9M)]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
if (loading) {
var activityIndicatorBindingProps = {style: styles.loadingIndicator, size: 'small'};
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
activityIndicatorBindingProps.color = moduleValue3.isAndroid() ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE : undefined;
r5 = <ActivityIndicator {...activityIndicatorBindingProps} />;
} else {
r5 = loading;
}
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
const items2 = [<ShieldSpotIllustration />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.centerText}>{value5}</Text>;
items2[2] = <Text variant="heading-md/medium" color="text-strong" style={styles.centerText}>{value6}</Text>;
const items3 = [<View style={styles.headerContainer}>{items2}</View>];
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items3[1] = <TableRowGroup hasIcons={false}>{value8.map(_fun49361)}</TableRowGroup>;
items3[2] = <Text variant="text-xs/medium" color="text-muted" style={[styles.centerText,
styles.helpLink]}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook})}</Text>;
return (
<>
{r5}
<ScrollView style={styles.container}>
{items3}
</ScrollView>
</>
);
}
function _fun49356() { // fn#49356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1134, offset: 0x011f769a, size: 257 bytes, params: 1, frame: 19
var push;
let object2 = {};
object2.title = env0_3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.description = Reflect.apply(string, intl, [t.ecdUKD]);
const env0_0 = env1_3(_fun49358);
object2.onPress = onPress_49359;
const items2 = [object2];
if (!env0_2) {
push = items2.push;
object2 = {};
object2.title = intl.string(t['LZO+Hd']);
object2.description = intl.string(t['ty+iWP']);
object2.onPress = onPress_49360;
Reflect.apply(push, items2, [object2]);
}
return items2;
}
function _fun49361({title, description, onPress}, a1) { // fn#49361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2260, offset: 0x011f789b, size: 87 bytes, params: 3, frame: 18
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
arrow
label={title}
subLabel={description}
onPress={onPress}
key={a1}
/>
);
}
function GetStartedScreen_49355HandleOnHelpUrlHook() { // fn#49362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2531, owner: GetStartedScreen_49355.handleOnHelpUrlHook, offset: 0x011f78f2, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, LEARN_MORE]);
}
function* _fun49358() { // fn#49358, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1223, offset: 0x011f77a4, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_0;
var binding2 = env3_2;
value = binding(binding2[9]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[9]).AgeVerificationModalVersion;
var RETRY = AgeVerificationModalVersion.RETRY;
var AgeVerificationModalCta = binding(binding2[9]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, RETRY, GET_STARTED]);
yield importDefault();
}
}
function onPress_49360() { // fn#49360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1554, offset: 0x011f781d, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, MANUAL_REVIEW_REQUEST]);
}
global.__d(_fun49354, 6251, [5, 31, 27, 661, 5267, 33, 4501, 697, 4813, 5074, 5472, 1244, 5263, 477, 5473, 4573,
6231, 6238, 1948,
2]) /* metro module 6251, dependencies: [5, 31, 27, 661, 5267, 33, 4501, 697, 4813, 5074, 5472, 1244, 5263, 477, 5473, 4573, 6231, 6238, 1948, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,11 +1,21 @@
/* Metro module 15805; source: modules/age_assurance/native/ParentalConsentExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun121466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16013:6, offset: 0x02548e7e, size: 158 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
const env0_0 = (ApexModule).createApexExperiment({'kind': 'user',
'name': '2026-01-age-and-parental-consent-check', defaultConfig: {enabled: false},
variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/ParentalConsentExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/ParentalConsentExperiment.tsx');
exports.isParentalConsentCheckEnabled = isParentalConsentCheckEnabled;
function isParentalConsentCheckEnabled(a0) { // fn#121467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16013:367, offset: 0x00e3651f, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun121466, 15805, [1854, 2]) /* metro module 15805, dependencies: [1854, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,33 +1,36 @@
/* Metro module 14252; source: modules/age_assurance/tooling/AgeVerificationTestActionCreators.tsx; dependencies: [5, 661, 507, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun107821(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14449:6, offset: 0x02309ff5, size: 147 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/tooling/AgeVerificationTestActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/tooling/AgeVerificationTestActionCreators.tsx');
exports.testAgeVerification = function() {
return _testAgeVerification.apply(this, arguments);
};
}
function _testAgeVerification() { // fn#107822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14449:126, offset: 0x0230a088, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun107824).apply(this, arguments);
function* _fun107824(a0) { // fn#107824, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14449:189, offset: 0x0230a0c5, size: 108 bytes, params: 2, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_1[2]).HTTP;
const post = HTTP.post;
const AGE_ASSURANCE_TEST = env2_3.AGE_ASSURANCE_TEST;
yield Reflect.apply(post, HTTP, [{url: AGE_ASSURANCE_TEST, body: {method: a0}, rejectWithError: false}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
function _testAgeVerification() { // fn#107822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14449:126, offset: 0x0230a088, size: 50 bytes, params: 1, frame: 14
return env0_2(_fun107824).apply(this, arguments);
}
function* _fun107824(a0) { // fn#107824, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14449:189, offset: 0x0230a0c5, size: 108 bytes, params: 2, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_1[2]).HTTP;
const post = HTTP.post;
const AGE_ASSURANCE_TEST = env2_3.AGE_ASSURANCE_TEST;
yield Reflect.apply(post, HTTP, [{url: AGE_ASSURANCE_TEST, body: {method: a0}, rejectWithError: false}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
global.__d(_fun107821, 14252, [5, 661, 507, 2]) /* metro module 14252, dependencies: [5, 661, 507, 2] */;