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 2486; source: modules/safety_flows/SafetyFlows.messages.js; dependencies: [1247, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 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 _fun23458(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#23458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:6, offset: 0x00f0e11a, 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_23459, cs: cs_23461, da: da_23463, de: de_23465, el: el_23467};
object2['en-GB'] = _fun23469;
object2['es-419'] = _fun23471;
object2['es-ES'] = _fun23473;
object2.fi = fi_23475;
object2.fr = fr_23477;
object2.hi = hi_23479;
object2.hr = hr_23481;
object2.hu = hu_23483;
object2.it = it_23485;
object2.ja = ja_23487;
object2.ko = ko_23489;
object2.lt = lt_23491;
object2.nl = nl_23493;
object2.no = no_23495;
object2.pl = pl_23497;
object2['pt-BR'] = _fun23499;
object2.ro = ro_23501;
object2.ru = ru_23503;
object2['sv-SE'] = _fun23505;
object2.th = th_23507;
object2.tr = tr_23509;
object2.uk = uk_23511;
object2.vi = vi_23513;
object2['zh-CN'] = _fun23515;
object2['zh-TW'] = _fun23517;
object2['en-US'] = _fun23519;
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/safety_flows/SafetyFlows.messages.js');
object = {bg: bg_23459, cs: cs_23461, da: da_23463, de: de_23465, el: el_23467};
object['en-GB'] = _fun23469;
object['es-419'] = _fun23471;
object['es-ES'] = _fun23473;
object.fi = fi_23475;
object.fr = fr_23477;
object.hi = hi_23479;
object.hr = hr_23481;
object.hu = hu_23483;
object.it = it_23485;
object.ja = ja_23487;
object.ko = ko_23489;
object.lt = lt_23491;
object.nl = nl_23493;
object.no = no_23495;
object.pl = pl_23497;
object['pt-BR'] = _fun23499;
object.ro = ro_23501;
object.ru = ru_23503;
object['sv-SE'] = _fun23505;
object.th = th_23507;
object.tr = tr_23509;
object.uk = uk_23511;
object.vi = vi_23513;
object['zh-CN'] = _fun23515;
object['zh-TW'] = _fun23517;
object['en-US'] = _fun23519;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/SafetyFlows.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_23459() { // fn#23459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:102, offset: 0x00f0e2df, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2487) /* metro dependency 2487 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23461() { // fn#23461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:165, offset: 0x00f0e320, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2488) /* metro dependency 2488 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23463() { // fn#23463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:228, offset: 0x00f0e361, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2489) /* metro dependency 2489 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23465() { // fn#23465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:291, offset: 0x00f0e3a2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2490) /* metro dependency 2490 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23467() { // fn#23467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:354, offset: 0x00f0e3e3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2491) /* metro dependency 2491 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23469() { // fn#23469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:422, offset: 0x00f0e424, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2492) /* metro dependency 2492 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23471() { // fn#23471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:491, offset: 0x00f0e465, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2493) /* metro dependency 2493 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23473() { // fn#23473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:559, offset: 0x00f0e4a6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2494) /* metro dependency 2494 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23475() { // fn#23475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:622, offset: 0x00f0e4e7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2495) /* metro dependency 2495 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23477() { // fn#23477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:685, offset: 0x00f0e528, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2496) /* metro dependency 2496 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23479() { // fn#23479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:749, offset: 0x00f0e569, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2497) /* metro dependency 2497 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23481() { // fn#23481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:813, offset: 0x00f0e5aa, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2498) /* metro dependency 2498 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23483() { // fn#23483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:877, offset: 0x00f0e5eb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2499) /* metro dependency 2499 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23485() { // fn#23485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:941, offset: 0x00f0e62c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2500) /* metro dependency 2500 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23487() { // fn#23487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1005, offset: 0x00f0e66d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2501) /* metro dependency 2501 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23489() { // fn#23489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1069, offset: 0x00f0e6ae, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2502) /* metro dependency 2502 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23491() { // fn#23491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1133, offset: 0x00f0e6ef, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2503) /* metro dependency 2503 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23493() { // fn#23493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1197, offset: 0x00f0e730, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2504) /* metro dependency 2504 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23495() { // fn#23495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1261, offset: 0x00f0e771, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2505) /* metro dependency 2505 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23497() { // fn#23497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1325, offset: 0x00f0e7b2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2506) /* metro dependency 2506 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23499() { // fn#23499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1394, offset: 0x00f0e7f3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2507) /* metro dependency 2507 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23501() { // fn#23501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1458, offset: 0x00f0e834, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2508) /* metro dependency 2508 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23503() { // fn#23503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1522, offset: 0x00f0e875, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2509) /* metro dependency 2509 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23505() { // fn#23505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1591, offset: 0x00f0e8b6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2510) /* metro dependency 2510 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23507() { // fn#23507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1655, offset: 0x00f0e8f7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2511) /* metro dependency 2511 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23509() { // fn#23509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1719, offset: 0x00f0e938, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2512) /* metro dependency 2512 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23511() { // fn#23511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1783, offset: 0x00f0e979, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2513) /* metro dependency 2513 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23513() { // fn#23513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1847, offset: 0x00f0e9ba, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2514) /* metro dependency 2514 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23515() { // fn#23515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1916, offset: 0x00f0e9fb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2515) /* metro dependency 2515 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23517() { // fn#23517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1985, offset: 0x00f0ea3c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2516) /* metro dependency 2516 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23519() { // fn#23519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:2054, offset: 0x00f0ea7d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2517) /* metro dependency 2517 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_23459() { // fn#23459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:102, offset: 0x00f0e2df, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2487) /* metro dependency 2487 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23461() { // fn#23461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:165, offset: 0x00f0e320, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2488) /* metro dependency 2488 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23463() { // fn#23463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:228, offset: 0x00f0e361, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2489) /* metro dependency 2489 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23465() { // fn#23465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:291, offset: 0x00f0e3a2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2490) /* metro dependency 2490 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23467() { // fn#23467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:354, offset: 0x00f0e3e3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2491) /* metro dependency 2491 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23469() { // fn#23469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:422, offset: 0x00f0e424, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2492) /* metro dependency 2492 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23471() { // fn#23471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:491, offset: 0x00f0e465, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2493) /* metro dependency 2493 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23473() { // fn#23473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:559, offset: 0x00f0e4a6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2494) /* metro dependency 2494 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23475() { // fn#23475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:622, offset: 0x00f0e4e7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2495) /* metro dependency 2495 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23477() { // fn#23477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:685, offset: 0x00f0e528, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2496) /* metro dependency 2496 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23479() { // fn#23479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:749, offset: 0x00f0e569, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2497) /* metro dependency 2497 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23481() { // fn#23481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:813, offset: 0x00f0e5aa, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2498) /* metro dependency 2498 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23483() { // fn#23483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:877, offset: 0x00f0e5eb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2499) /* metro dependency 2499 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23485() { // fn#23485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:941, offset: 0x00f0e62c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2500) /* metro dependency 2500 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23487() { // fn#23487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1005, offset: 0x00f0e66d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2501) /* metro dependency 2501 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23489() { // fn#23489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1069, offset: 0x00f0e6ae, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2502) /* metro dependency 2502 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23491() { // fn#23491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1133, offset: 0x00f0e6ef, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2503) /* metro dependency 2503 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23493() { // fn#23493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1197, offset: 0x00f0e730, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2504) /* metro dependency 2504 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23495() { // fn#23495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1261, offset: 0x00f0e771, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2505) /* metro dependency 2505 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23497() { // fn#23497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1325, offset: 0x00f0e7b2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2506) /* metro dependency 2506 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23499() { // fn#23499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1394, offset: 0x00f0e7f3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2507) /* metro dependency 2507 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23501() { // fn#23501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1458, offset: 0x00f0e834, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2508) /* metro dependency 2508 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23503() { // fn#23503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1522, offset: 0x00f0e875, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2509) /* metro dependency 2509 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23505() { // fn#23505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1591, offset: 0x00f0e8b6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2510) /* metro dependency 2510 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23507() { // fn#23507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1655, offset: 0x00f0e8f7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2511) /* metro dependency 2511 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23509() { // fn#23509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1719, offset: 0x00f0e938, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2512) /* metro dependency 2512 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23511() { // fn#23511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1783, offset: 0x00f0e979, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2513) /* metro dependency 2513 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23513() { // fn#23513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1847, offset: 0x00f0e9ba, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2514) /* metro dependency 2514 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23515() { // fn#23515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1916, offset: 0x00f0e9fb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2515) /* metro dependency 2515 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23517() { // fn#23517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:1985, offset: 0x00f0ea3c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2516) /* metro dependency 2516 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23519() { // fn#23519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2613:2054, offset: 0x00f0ea7d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2517) /* metro dependency 2517 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun23458, 2486, [1247, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2498, 2499,
2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517,
1282,
2]) /* metro module 2486, dependencies: [1247, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 1282, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 16200; source: modules/safety_flows/SafetyFlowsActionCreators.tsx; dependencies: [5, 661, 5046, 480, 4132, 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 _fun125197(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:6, offset: 0x025d10d1, 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 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/SafetyFlowsActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/SafetyFlowsActionCreators.tsx');
exports.getCurrentTask = function() {
return _getCurrentTask.apply(this, arguments);
};
@@ -15,347 +17,349 @@ function _fun125197(global, require, importDefault, importAll, module, exports,
exports.resendVerificationCode = function() {
return _resendVerificationCode.apply(this, arguments);
};
function _getCurrentTask() { // fn#125198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:128, offset: 0x025d1198, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun125200).apply(this, arguments);
function* _fun125200() { // fn#125200, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:181, offset: 0x025d11d5, size: 145 bytes, params: 1, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[2]);
const get = value3.get;
const object = {};
const SAFETY_FLOWS_TASK = env2_4.SAFETY_FLOWS_TASK;
object.url = SAFETY_FLOWS_TASK;
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
const USER_VERIFY = NetworkActionNames.USER_VERIFY;
object.trackedActionData = {event: USER_VERIFY};
object.rejectWithError = true;
yield Reflect.apply(get, value3, [object]);
value = undefined;
if (false) {
return value;
}
return value.status === 204 ? null : value.body;
}
}
function _completeTask() { // fn#125201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:388, offset: 0x025d1266, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun125203).apply(this, arguments);
function* _fun125203(a0) { // fn#125203, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:437, offset: 0x025d12a3, size: 139 bytes, params: 2, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[2]);
const post = value3.post;
const object = {};
const SAFETY_FLOWS_TASK = env2_4.SAFETY_FLOWS_TASK;
object.url = SAFETY_FLOWS_TASK;
object.body = a0;
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
const USER_VERIFY = NetworkActionNames.USER_VERIFY;
object.trackedActionData = {event: USER_VERIFY};
object.rejectWithError = true;
yield Reflect.apply(post, value3, [object]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
}
function _resendVerificationCode() { // fn#125204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:626, offset: 0x025d132e, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun125206).apply(this, arguments);
function* _fun125206(a0) { // fn#125206, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:695, offset: 0x025d136b, size: 193 bytes, params: 2, frame: 17
var binding;
var binding2;
var property;
var value3;
var post;
var object;
var SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
var object2;
var object3;
var value4;
var NetworkActionNames;
var USER_VERIFY;
var value5;
var value6;
var value7;
var error;
var prototype;
var value8;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
property = binding2[2];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
value3 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
post = value3.post;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
binding = env2_4;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
SAFETY_FLOWS_RESEND_VERIFICATION_CODE = binding.SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object.url = SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object2 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object2.flow_id = a0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object.body = object2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object3 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
property = binding2[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
value4 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
NetworkActionNames = value4.NetworkActionNames;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
USER_VERIFY = NetworkActionNames.USER_VERIFY;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object3.event = USER_VERIFY;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object.trackedActionData = object3;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object.rejectWithError = true;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
value5 = Reflect.apply(post, value3, [object]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
return value7 ? value6 : value6;
}
}
}
function _getCurrentTask() { // fn#125198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:128, offset: 0x025d1198, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun125200).apply(this, arguments);
}
function _completeTask() { // fn#125201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:388, offset: 0x025d1266, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun125203).apply(this, arguments);
}
function _resendVerificationCode() { // fn#125204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:626, offset: 0x025d132e, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun125206).apply(this, arguments);
}
function* _fun125200() { // fn#125200, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:181, offset: 0x025d11d5, size: 145 bytes, params: 1, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[2]);
const get = value3.get;
const object2 = {};
const SAFETY_FLOWS_TASK = env2_4.SAFETY_FLOWS_TASK;
object2.url = SAFETY_FLOWS_TASK;
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
const USER_VERIFY = NetworkActionNames.USER_VERIFY;
object2.trackedActionData = {event: USER_VERIFY};
object2.rejectWithError = true;
yield Reflect.apply(get, value3, [object2]);
value = undefined;
if (false) {
return value;
}
return value.status === 204 ? null : value.body;
}
function* _fun125203(a0) { // fn#125203, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:437, offset: 0x025d12a3, size: 139 bytes, params: 2, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[2]);
const post = value3.post;
const object2 = {};
const SAFETY_FLOWS_TASK = env2_4.SAFETY_FLOWS_TASK;
object2.url = SAFETY_FLOWS_TASK;
object2.body = a0;
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
const USER_VERIFY = NetworkActionNames.USER_VERIFY;
object2.trackedActionData = {event: USER_VERIFY};
object2.rejectWithError = true;
yield Reflect.apply(post, value3, [object2]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
function* _fun125206(a0) { // fn#125206, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:695, offset: 0x025d136b, size: 193 bytes, params: 2, frame: 17
var binding;
var binding2;
var property;
var value3;
var post;
var object4;
var SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
var object5;
var object6;
var value4;
var NetworkActionNames;
var USER_VERIFY;
var value5;
var value6;
var value7;
var error;
var prototype;
var value8;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
property = binding2[2];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
value3 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
post = value3.post;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object4 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
binding = env2_4;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
SAFETY_FLOWS_RESEND_VERIFICATION_CODE = binding.SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object4.url = SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object5 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object5.flow_id = a0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object4.body = object5;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object6 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
property = binding2[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
value4 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
NetworkActionNames = value4.NetworkActionNames;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
USER_VERIFY = NetworkActionNames.USER_VERIFY;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object6.event = USER_VERIFY;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object4.trackedActionData = object6;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
object4.rejectWithError = true;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
try {
value5 = Reflect.apply(post, value3, [object4]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
prototype = value.prototype;
value8 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value8;
throw value;
}
return value7 ? value6 : value6;
}
global.__d(_fun125197, 16200, [5, 661, 5046, 480, 4132,
2]) /* metro module 16200, dependencies: [5, 661, 5046, 480, 4132, 2] */;
@@ -1,13 +1,29 @@
/* Metro module 15847; source: modules/safety_flows/SafetyFlowsExperiment.tsx; dependencies: [1358, 2] */
import ApexExperiment from '../experiments/apex/ApexExperiment.tsx'; /* Metro dependency 1358 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun121871(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16055:6, offset: 0x0255330b, size: 186 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(1358) /* metro dependency 1358: ApexExperiment */;
let value = ApexExperiment;
value = value({'name': '2026-04-safety-flows', 'kind': 'user', defaultConfig: {enabled: false},
variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/SafetyFlowsExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/SafetyFlowsExperiment.tsx');
exports.default = value;
exports.isEligibleForSafetyFlowsExperiment = isEligibleForSafetyFlowsExperiment;
exports.useIsEligibleForSafetyFlowsExperiment = useIsEligibleForSafetyFlowsExperiment;
function isEligibleForSafetyFlowsExperiment({location}) { // fn#121872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16055:356, offset: 0x01195c54, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).enabled;
}
function useIsEligibleForSafetyFlowsExperiment({location}) { // fn#121873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16055:496, offset: 0x01195c7b, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: location}]).enabled;
}
}
global.__d(_fun121871, 15847, [1358, 2]) /* metro module 15847, dependencies: [1358, 2] */;
@@ -1,87 +1,96 @@
/* Metro module 16197; source: modules/safety_flows/SafetyFlowsManager.tsx; dependencies: [7, 6, 15, 17, 18, 16198, 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 AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as OpenSafetyFlowNativeModule from './openSafetyFlow.native.tsx'; /* Metro dependency 16198 */
function _fun125182(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:6, offset: 0x025d094b, size: 259 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun125189(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/SafetyFlowsManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/SafetyFlowsManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_125183() { // fn#125183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:148, offset: 0x025d0a4e, 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) {
function _isNativeReflectConstruct_125183() { // fn#125183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:148, offset: 0x025d0a4e, 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_125183_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_125183_isNativeReflectConstruct = function() {
return !!result;
})();
}
function handleConnectionOpenSupplemental_125186() { // fn#125186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:341, offset: 0x025d0ab0, size: 37 bytes, params: 1, frame: 11
(require(16198) /* metro dependency 16198: openSafetyFlowNative */).openSafetyFlow();
}
function handleUserRequiredActionUpdate({requiredAction}) { // fn#125188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:473, offset: 0x025d0ad5, size: 54 bytes, params: 2, frame: 13
const openSafetyFlowNativeModule = require(16198) /* metro dependency 16198: openSafetyFlowNative */;
openSafetyFlowNativeModule.openSafetyFlow({requiredAction: requiredAction});
}
function _fun125189(a0) { // fn#125189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:586, offset: 0x025d0b0b, size: 42 bytes, params: 2, frame: 14
const closure = SafetyFlowsManager;
env0_6(closure, a0);
return env0_2(closure);
}
function SafetyFlowsManager(a0) { // fn#125190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:598, offset: 0x025d0b35, size: 163 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, SafetyFlowsManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_5(SafetyFlowsManager);
binding = env1_4;
if (_isNativeReflectConstruct_125183()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_5(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
function handleConnectionOpenSupplemental_125186() { // fn#125186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:341, offset: 0x025d0ab0, size: 37 bytes, params: 1, frame: 11
(OpenSafetyFlowNativeModule).openSafetyFlow();
}
value = binding(this, r0);
value.actions = {CONNECTION_OPEN_SUPPLEMENTAL: handleConnectionOpenSupplemental_125186,
SAFETY_FLOWS_MODAL_OPEN: handleSafetyFlowsModalOpen,
USER_REQUIRED_ACTION_UPDATE: handleUserRequiredActionUpdate};
return value;
function handleSafetyFlowsModalOpen() { // fn#125187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:410, offset: 0x025d0ab0, size: 37 bytes, params: 1, frame: 11
(OpenSafetyFlowNativeModule).openSafetyFlow();
}
function handleUserRequiredActionUpdate({requiredAction}) { // fn#125188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:473, offset: 0x025d0ad5, size: 54 bytes, params: 2, frame: 13
OpenSafetyFlowNativeModule.openSafetyFlow({requiredAction: requiredAction});
}
function _fun125189(a0) { // fn#125189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:586, offset: 0x025d0b0b, size: 42 bytes, params: 2, frame: 14
const SafetyFlowsManager2 = SafetyFlowsManager;
Inherits(SafetyFlowsManager2, a0);
return CreateClass(SafetyFlowsManager2);
function SafetyFlowsManager(a0) { // fn#125190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16405:598, offset: 0x025d0b35, size: 163 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, SafetyFlowsManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_5(SafetyFlowsManager);
binding = env1_4;
if (_isNativeReflectConstruct_125183()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_5(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.actions = {CONNECTION_OPEN_SUPPLEMENTAL: handleConnectionOpenSupplemental_125186,
SAFETY_FLOWS_MODAL_OPEN: handleSafetyFlowsModalOpen,
USER_REQUIRED_ACTION_UPDATE: handleUserRequiredActionUpdate};
return value;
}
}
}
global.__d(_fun125182, 16197, [7, 6, 15, 17, 18, 16198, 4860,
2]) /* metro module 16197, dependencies: [7, 6, 15, 17, 18, 16198, 4860, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 16203; source: modules/safety_flows/SafetyFlowsTaskContext.tsx; dependencies: [31, 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 */
function _fun125238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16411:6, offset: 0x025d1e0e, size: 129 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
let value = ReactModule;
value = value.createContext(null);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/SafetyFlowsTaskContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/SafetyFlowsTaskContext.tsx');
exports.SafetyFlowTaskContext = value;
exports.useSafetyFlowTask = useSafetyFlowTask;
}
function useSafetyFlowTask() { // fn#125239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16411:257, offset: 0x025d1e8f, size: 66 bytes, params: 1, frame: 11
const value = env0_0.useContext(env0_1);
if (value == null) {
throw new global.Error('useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider');
function useSafetyFlowTask() { // fn#125239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16411:257, offset: 0x025d1e8f, size: 66 bytes, params: 1, frame: 11
const value = env0_0.useContext(env0_1);
if (value == null) {
throw new global.Error('useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider');
}
return value;
}
return value;
}
global.__d(_fun125238, 16203, [31, 2]) /* metro module 16203, dependencies: [31, 2] */;
+4 -1
View File
@@ -1,8 +1,11 @@
/* Metro module 16205; source: modules/safety_flows/constants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun125252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16413:6, offset: 0x025d2320, size: 82 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/constants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/constants.tsx');
exports.SAFETY_FLOWS_MODAL_KEY = 'SAFETY_FLOWS_MODAL_KEY';
}
global.__d(_fun125252, 16205, [2]) /* metro module 16205, dependencies: [2] */;
@@ -1,191 +1,227 @@
/* Metro module 16213; source: modules/safety_flows/native/ErrorScreen.tsx; dependencies: [5, 57, 31, 27, 33, 4501, 697, 1484, 16200, 16204, 4573, 1244, 4572, 4578, 5076, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AuthenticationActionCreators from '../../../actions/AuthenticationActionCreators.tsx'; /* Metro dependency 5076 */
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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
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 */
function _fun125287(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:6, offset: 0x025d3a76, size: 333 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'flexDirection': 'column', 'justifyContent': 'center', 'gap': null, 'padding': null,
object = {};
const object2 = {'flexDirection': 'column', 'justifyContent': 'center', 'gap': null, 'padding': null,
'alignItems': 'center'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object2.gap = PX_8;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.padding = PX_16;
object3.container = object4;
object2.padding = PX_16;
object.container = object2;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.buttonContainer = {marginTop: PX_8};
const env0_9 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/ErrorScreen.tsx');
object.buttonContainer = {marginTop: PX_8};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/ErrorScreen.tsx');
exports.default = ErrorScreen;
}
function ErrorScreen() { // fn#125288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:459, offset: 0x025d3bc3, size: 576 bytes, params: 1, frame: 28
const [property, env0_0] = Module00057(ReactModule.useState(false), 2);
const env0_1 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
const value4 = _fun125289();
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [
<Text variant="heading-lg/semibold">
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.c6kn6F])}
</Text>,
];
string = intl.string;
const ZUEGFn = (require(1244) /* metro dependency 1244: indexNative */).t.ZUEGFn;
items2[1] = (
<Text variant="text-md/normal" color="text-muted">
{Reflect.apply(string, intl, [ZUEGFn])}
</Text>
);
const Stack = (StackNativeModule).Stack;
const Button = (ButtonNativeModule).Button;
items2[2] = (
<Stack style={styles.buttonContainer} spacing={8}>
<Button
onPress={onPress_125293}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer'])}
variant="secondary"
size="md"
/>
<Button
onPress={value4}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7NqTJn'])}
variant="primary"
size="md"
loading={property}
/>
</Stack>
);
return (
<View style={styles.container}>
{items2}
</View>
);
function _fun125289() { // fn#125289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:560, offset: 0x025d3e03, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun125291);
return _fun125292;
function* _fun125291() { // fn#125291, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:580, offset: 0x025d3e32, size: 165 bytes, params: 1, frame: 17
var binding;
var binding2;
var property;
var value4;
var getCurrentTask;
var value5;
var value6;
var value7;
var value8;
var binding3;
var value9;
var navigateToScreenForTask;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
} catch (error) {
require(false);
throw error;
}
try {
require(true);
} catch (error) {
require(false);
throw error;
}
try {
binding = env3_0;
} catch (error) {
require(false);
throw error;
}
try {
binding2 = env3_2;
} catch (error) {
require(false);
throw error;
}
try {
property = binding2[8];
} catch (error) {
require(false);
throw error;
}
try {
value4 = binding(property);
} catch (error) {
require(false);
throw error;
}
try {
getCurrentTask = value4.getCurrentTask;
} catch (error) {
require(false);
throw error;
}
try {
value5 = Reflect.apply(getCurrentTask, value4, []);
} catch (error) {
require(false);
throw error;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
require(false);
throw error;
}
if (value7) {
require(false);
return value6;
}
try {
value8 = value6 == null;
} catch (error) {
require(false);
throw error;
}
if (!value8) {
try {
binding = env3_0;
} catch (error) {
require(false);
throw error;
}
try {
binding3 = env3_2;
} catch (error) {
require(false);
throw error;
}
try {
property = binding3[9];
} catch (error) {
require(false);
throw error;
}
try {
value9 = binding(property);
} catch (error) {
require(false);
throw error;
}
try {
navigateToScreenForTask = value9.navigateToScreenForTask;
} catch (error) {
require(false);
throw error;
}
try {
} catch (error) {
require(false);
throw error;
}
try {
Reflect.apply(navigateToScreenForTask, value9, [importDefault, value6]);
} catch (error) {
require(false);
throw error;
}
}
require(false);
}
}
function ErrorScreen() { // fn#125288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:459, offset: 0x025d3bc3, size: 576 bytes, params: 1, frame: 28
const [property, env0_0] = env0_4(env0_5.useState(false), 2);
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const styles = useStyles();
const value4 = _fun125289();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<Text variant="heading-lg/semibold">{Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.c6kn6F])}</Text>];
string = intl.string;
const ZUEGFn = (require(1244) /* metro dependency 1244: indexNative */).t.ZUEGFn;
items2[1] = <Text variant="text-md/normal" color="text-muted">{Reflect.apply(string, intl, [ZUEGFn])}</Text>;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Stack style={styles.buttonContainer} spacing={8}><Button onPress={onPress_125293} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer'])} variant="secondary" size="md" /><Button onPress={value4} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7NqTJn'])} variant="primary" size="md" loading={property} /></Stack>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun125292() { // fn#125292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:710, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function _fun125289() { // fn#125289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:560, offset: 0x025d3e03, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun125291);
return _fun125292;
}
}
function ErrorScreenOnPress() { // fn#125293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:1095, owner: ErrorScreen.onPress, offset: 0x025d3ed7, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('safety_flows_error_screen');
}
function ErrorScreenOnPress() { // fn#125293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:1095, owner: ErrorScreen.onPress, offset: 0x025d3ed7, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (AuthenticationActionCreators).logout('safety_flows_error_screen');
}
function* _fun125291() { // fn#125291, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:580, offset: 0x025d3e32, size: 165 bytes, params: 1, frame: 17
var binding;
var binding2;
var property;
var value4;
var getCurrentTask;
var value5;
var value6;
var value7;
var value8;
var binding3;
var value9;
var navigateToScreenForTask;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
} catch (error) {
require(false);
throw error;
}
try {
require(true);
} catch (error) {
require(false);
throw error;
}
try {
binding = env3_0;
} catch (error) {
require(false);
throw error;
}
try {
binding2 = env3_2;
} catch (error) {
require(false);
throw error;
}
try {
property = binding2[8];
} catch (error) {
require(false);
throw error;
}
try {
value4 = binding(property);
} catch (error) {
require(false);
throw error;
}
try {
getCurrentTask = value4.getCurrentTask;
} catch (error) {
require(false);
throw error;
}
try {
value5 = Reflect.apply(getCurrentTask, value4, []);
} catch (error) {
require(false);
throw error;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
require(false);
throw error;
}
if (value7) {
require(false);
return value6;
}
try {
value8 = value6 == null;
} catch (error) {
require(false);
throw error;
}
if (!value8) {
try {
binding = env3_0;
} catch (error) {
require(false);
throw error;
}
try {
binding3 = env3_2;
} catch (error) {
require(false);
throw error;
}
try {
property = binding3[9];
} catch (error) {
require(false);
throw error;
}
try {
value9 = binding(property);
} catch (error) {
require(false);
throw error;
}
try {
navigateToScreenForTask = value9.navigateToScreenForTask;
} catch (error) {
require(false);
throw error;
}
try {
} catch (error) {
require(false);
throw error;
}
try {
Reflect.apply(navigateToScreenForTask, value9, [importDefault, value6]);
} catch (error) {
require(false);
throw error;
}
}
require(false);
}
}
global.__d(_fun125287, 16213, [5, 57, 31, 27, 33, 4501, 697, 1484, 16200, 16204, 4573, 1244, 4572, 4578, 5076,
2]) /* metro module 16213, dependencies: [5, 57, 31, 27, 33, 4501, 697, 1484, 16200, 16204, 4573, 1244, 4572, 4578, 5076, 2] */;
@@ -1,29 +1,38 @@
/* Metro module 16206; source: modules/safety_flows/native/LogOutDisclaimer.tsx; dependencies: [33, 12807, 4573, 1244, 2486, 5076, 2] */
import SafetyFlowsMessages from '../SafetyFlows.messages.js'; /* Metro dependency 2486 */
import AuthenticationActionCreators from '../../../actions/AuthenticationActionCreators.tsx'; /* Metro dependency 5076 */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ModalDisclaimerNativeModule from '../../../design/components/Modal/native/ModalDisclaimer.native.tsx'; /* Metro dependency 12807 */
function _fun125253(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:6, offset: 0x025d2372, size: 123 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/LogOutDisclaimer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/LogOutDisclaimer.tsx');
exports.default = LogOutDisclaimer;
function LogOutDisclaimer() { // fn#125254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:202, offset: 0x025d23ed, size: 158 bytes, params: 1, frame: 20
const ModalDisclaimer = (ModalDisclaimerNativeModule).ModalDisclaimer;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<ModalDisclaimer>
<Text variant="text-xs/medium">
{intl.format((SafetyFlowsMessages)['0DHxym'],
{handleLogOut: handleLogOut})}
</Text>
</ModalDisclaimer>
);
function handleLogOut() { // fn#125255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:375, owner: LogOutDisclaimer.handleLogOut, offset: 0x025d248b, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(AuthenticationActionCreators).logout('safety_flows_enter_email_screen');
}
}
}
function LogOutDisclaimer() { // fn#125254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:202, offset: 0x025d23ed, size: 158 bytes, params: 1, frame: 20
const ModalDisclaimer = (require(12807) /* metro dependency 12807: ModalDisclaimerNative */).ModalDisclaimer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ModalDisclaimer>
<Text variant="text-xs/medium">
{intl.format((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['0DHxym'],
{handleLogOut: handleLogOut})}
</Text>
</ModalDisclaimer>
);
}
function handleLogOut() { // fn#125255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:375, owner: LogOutDisclaimer.handleLogOut, offset: 0x025d248b, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('safety_flows_enter_email_screen');
}
global.__d(_fun125253, 16206, [33, 12807, 4573, 1244, 2486, 5076,
2]) /* metro module 16206, dependencies: [33, 12807, 4573, 1244, 2486, 5076, 2] */;
@@ -1,84 +1,124 @@
/* Metro module 16202; source: modules/safety_flows/native/OverviewScreen.tsx; dependencies: [31, 33, 4501, 16203, 1484, 16204, 6258, 6259, 4572, 697, 4573, 1244, 2486, 6231, 6237, 16199, 10120, 16206, 9790, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import SafetyTipsRow from '../../self_mod/shared/native/SafetyTipsRow.tsx'; /* Metro dependency 6237 */
import LogOutDisclaimer from './LogOutDisclaimer.tsx'; /* Metro dependency 16206 */
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 UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
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 TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
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 ModalActionButtonNativeModule from '../../../design/components/Modal/native/ModalActionButton.native.tsx'; /* Metro dependency 9790 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as TypesModule from '../types.tsx'; /* Metro dependency 16199 */
import * as SafetyFlowsTaskContextModule from '../SafetyFlowsTaskContext.tsx'; /* Metro dependency 16203 */
import * as SafetyFlowsUtilsModule from './SafetyFlowsUtils.tsx'; /* Metro dependency 16204 */
function _fun125234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:6, offset: 0x025d191a, size: 215 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({content: {'margin': 'auto',
const env0_6 = (CreateStylesModule).createStyles({content: {'margin': 'auto',
'overflow': 'visible', 'justifyContent': 'center', 'textAlign': 'center', 'alignItems': 'center'},
title: {'textAlign': 'center', 'textTransform': 'uppercase', 'lineHeight': 50}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/OverviewScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/OverviewScreen.tsx');
exports.default = OverviewScreen;
}
function OverviewScreen() { // fn#125235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:423, offset: 0x025d19f1, size: 846 bytes, params: 1, frame: 36
const value2 = undefined;
const styles = useStyles();
const useSafetyFlowTask = SafetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, SafetyFlowsTaskContextModule, []).task;
const value4 = ReactModule.useCallback(_fun125236, [task,
(UseNavigationNativeModule).useNavigation()]);
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Stack = (StackNativeModule).Stack;
const PX_16 = (Native).space.PX_16;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const RRamMH = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).RRamMH;
const items2 = [
<Text variant="display-lg" style={styles.title}>
{Reflect.apply(string, intl, [RRamMH])}
</Text>,
];
string = intl.string;
const I2Ctk1 = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).I2Ctk1;
items2[1] = (
<Text variant="text-md/medium" color="text-strong">
{Reflect.apply(string, intl, [I2Ctk1])}
</Text>
);
const Stack2 = (StackNativeModule).Stack;
const PX_8 = (Native).space.PX_8;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const flow_context = task.flow_context;
items2[2] = (
<Stack2 spacing={PX_8}>
<TableRowGroup hasIcons>
{flow_context == null || flow_context.tasks == null ? value2 : flow_context.tasks.map(_fun125237)}
</TableRowGroup>
<Text variant="text-xs/medium" color="text-muted">
{intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['0TnUrG'])}
</Text>
</Stack2>
);
const modalContent = (
<ModalContent>
<Stack spacing={PX_16} style={styles.content}>
{items2}
</Stack>
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
let value = LogOutDisclaimer;
value = ((Component) => <Component />)(value);
const ModalActionButton = (ModalActionButtonNativeModule).ModalActionButton;
string = intl.string;
const Ks6opt = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).Ks6opt;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
{value}
<ModalActionButton
variant="primary"
text={Reflect.apply(string, intl, [Ks6opt])}
onPress={value4}
/>
</ModalFooter>
</ModalScreen>
);
function _fun125236() { // fn#125236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:539, offset: 0x025d1d3f, size: 107 bytes, params: 1, frame: 15
let value = environment.__proto__;
const getScreensForTaskType = (SafetyFlowsUtilsModule).getScreensForTaskType;
value = Reflect.apply(getScreensForTaskType, value, [task.task_type]);
if (value != null && value.length > 0 && value[0] != null) {
env0_1.push(value[0]);
}
}
function OverviewScreen() { // fn#125235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:423, offset: 0x025d19f1, size: 846 bytes, params: 1, frame: 36
const value2 = undefined;
const styles = useStyles();
const safetyFlowsTaskContextModule = require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */;
const useSafetyFlowTask = safetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, safetyFlowsTaskContextModule, []).task;
const value4 = env0_3.useCallback(_fun125236, [task,
(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
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 PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const RRamMH = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).RRamMH;
const items2 = [<Text variant="display-lg" style={styles.title}>{Reflect.apply(string, intl, [RRamMH])}</Text>];
string = intl.string;
const I2Ctk1 = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).I2Ctk1;
items2[1] = <Text variant="text-md/medium" color="text-strong">{Reflect.apply(string, intl, [I2Ctk1])}</Text>;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const flow_context = task.flow_context;
items2[2] = <Stack2 spacing={PX_8}><TableRowGroup hasIcons>{flow_context == null || flow_context.tasks == null ? value2 : flow_context.tasks.map(_fun125237)}</TableRowGroup><Text variant="text-xs/medium" color="text-muted">{intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['0TnUrG'])}</Text></Stack2>;
const modalContent = <ModalContent><Stack spacing={PX_16} style={styles.content}>{items2}</Stack></ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
let value = importDefault(16206) /* metro dependency 16206: LogOutDisclaimer */;
value = ((Component) => <Component />)(value);
const ModalActionButton = (require(9790) /* metro dependency 9790: ModalActionButtonNative */).ModalActionButton;
string = intl.string;
const Ks6opt = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).Ks6opt;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
{value}
<ModalActionButton
variant="primary"
text={Reflect.apply(string, intl, [Ks6opt])}
onPress={value4}
function _fun125237(a0, a1) { // fn#125237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:1163, offset: 0x025d1daa, size: 100 bytes, params: 3, frame: 18
const TASK_TYPE_TO_TITLE = (TypesModule).TASK_TYPE_TO_TITLE;
return (
<SafetyTipsRow
tip={TASK_TYPE_TO_TITLE[a0.task_type]}
index={a1 + 1}
key={a0.task_type}
/>
</ModalFooter>
</ModalScreen>
);
}
);
}
function _fun125236() { // fn#125236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:539, offset: 0x025d1d3f, size: 107 bytes, params: 1, frame: 15
let value = environment.__proto__;
const getScreensForTaskType = (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).getScreensForTaskType;
value = Reflect.apply(getScreensForTaskType, value, [task.task_type]);
if (value != null && value.length > 0 && value[0] != null) {
env0_1.push(value[0]);
}
}
function _fun125237(a0, a1) { // fn#125237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:1163, offset: 0x025d1daa, size: 100 bytes, params: 3, frame: 18
const SafetyTipsRow = importDefault(6237) /* metro dependency 6237: SafetyTipsRow */;
const TASK_TYPE_TO_TITLE = (require(16199) /* metro dependency 16199: types */).TASK_TYPE_TO_TITLE;
return (
<SafetyTipsRow
tip={TASK_TYPE_TO_TITLE[a0.task_type]}
index={a1 + 1}
key={a0.task_type}
/>
);
}
global.__d(_fun125234, 16202, [31, 33, 4501, 16203, 1484, 16204, 6258, 6259, 4572, 697, 4573, 1244, 2486, 6231,
6237, 16199, 10120, 16206, 9790,
2]) /* metro module 16202, dependencies: [31, 33, 4501, 16203, 1484, 16204, 6258, 6259, 4572, 697, 4573, 1244, 2486, 6231, 6237, 16199, 10120, 16206, 9790, 2] */;
@@ -1,45 +1,81 @@
/* Metro module 16208; source: modules/safety_flows/native/SafetyFlowTaskScreen.tsx; dependencies: [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790, 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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
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 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 */
function _fun125259(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16416:6, offset: 0x025d26bb, size: 189 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({header: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/SafetyFlowTaskScreen.tsx');
ReactModule;
const env0_5 = (CreateStylesModule).createStyles({header: {textAlign: 'center'}});
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/SafetyFlowTaskScreen.tsx');
exports.default = SafetyFlowTaskScreen;
}
function SafetyFlowTaskScreen({ImageComponent, title, subtitle, action, onAction, footer, children, submitting, withLogout}) { // fn#125260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16416:282, offset: 0x025d2778, size: 539 bytes, params: 2, frame: 35
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var r5;
var ModalFooter;
var items4;
action = action === undefined ? null : action;
withLogout = withLogout === undefined || withLogout;
const styles = useStyles();
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 items2 = [ImageComponent != null && ImageComponent];
items2[1] = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.header}>{title}</Text>;
items2[2] = subtitle != null && <Text variant="text-md/medium" color="text-strong" style={styles.header}>{subtitle}</Text>;
const modalContent = <ModalContent><Stack align="center" justify="center" spacing={8}>{items2}</Stack>{children}</ModalContent>;
if (footer !== undefined) {
r5 = footer;
} else {
ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
items4 = [withLogout && ((Component) => <Component />)(importDefault(16206) /* metro dependency 16206: LogOutDisclaimer */)];
items4[1] = action != null && ((ModalActionButton) => <ModalActionButton variant="primary" text={action} onPress={onAction} loading={submitting} />)((require(9790) /* metro dependency 9790: ModalActionButtonNative */).ModalActionButton);
r5 = <ModalFooter>{items4}</ModalFooter>;
function SafetyFlowTaskScreen({ImageComponent, title, subtitle, action, onAction, footer, children, submitting, withLogout}) { // fn#125260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16416:282, offset: 0x025d2778, size: 539 bytes, params: 2, frame: 35
const Text = (TextModule).Text;
var r5;
var ModalFooter;
var items4;
action = action === undefined ? null : action;
withLogout = withLogout === undefined || withLogout;
const styles = useStyles();
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Stack = (StackNativeModule).Stack;
const items2 = [ImageComponent != null && ImageComponent];
items2[1] = (
<Text
accessibilityRole="header"
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={styles.header}
>
{title}
</Text>
);
items2[2] = subtitle != null && <Text variant="text-md/medium" color="text-strong" style={styles.header}>{subtitle}</Text>;
const modalContent = (
<ModalContent>
<Stack
align="center"
justify="center"
spacing={8}
>
{items2}
</Stack>
{children}
</ModalContent>
);
if (footer !== undefined) {
r5 = footer;
} else {
ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
items4 = [
withLogout && ((Component) => <Component />)(importDefault(16206) /* metro dependency 16206: LogOutDisclaimer */),
];
items4[1] = action != null && ((ModalActionButton) => <ModalActionButton variant="primary" text={action} onPress={onAction} loading={submitting} />)((require(9790) /* metro dependency 9790: ModalActionButtonNative */).ModalActionButton);
r5 = (
<ModalFooter>
{items4}
</ModalFooter>
);
}
return (
<ModalScreen>
{modalContent}
{r5}
</ModalScreen>
);
}
return (
<ModalScreen>
{modalContent}
{r5}
</ModalScreen>
);
}
global.__d(_fun125259, 16208, [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790,
2]) /* metro module 16208, dependencies: [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790, 2] */;
@@ -1,137 +1,152 @@
/* Metro module 16201; source: modules/safety_flows/native/SafetyFlowsModal.tsx; dependencies: [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204, 16203, 12805, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import OverviewScreen from './OverviewScreen.tsx'; /* Metro dependency 16202 */
import EnterEmailScreen from './tasks/EnterEmailScreen.tsx'; /* Metro dependency 16207 */
import VerifyEmailScreen from './tasks/VerifyEmailScreen.tsx'; /* Metro dependency 16209 */
import UpdateAppScreen from './UpdateAppScreen.tsx'; /* Metro dependency 16211 */
import AgeVerificationScreen from './tasks/AgeVerificationScreen.tsx'; /* Metro dependency 16212 */
import ErrorScreen from './ErrorScreen.tsx'; /* Metro dependency 16213 */
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 NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as StepModalNativeModule from '../../../design/components/Modal/native/StepModal.native.tsx'; /* Metro dependency 12805 */
import * as TypesModule from '../types.tsx'; /* Metro dependency 16199 */
import * as SafetyFlowsTaskContextModule from '../SafetyFlowsTaskContext.tsx'; /* Metro dependency 16203 */
import * as SafetyFlowsUtilsModule from './SafetyFlowsUtils.tsx'; /* Metro dependency 16204 */
function _fun125210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:6, offset: 0x025d142c, size: 158 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsModal.tsx');
exports.default = SafetyFlowsModal;
}
function SafetyFlowsModal({task, initialScreen}) { // fn#125211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:223, offset: 0x025d14ca, size: 228 bytes, params: 2, frame: 19
const [property, env0_1] = Module00057(ReactModule.useState(task), 2);
const value4 = SafetyFlowsModalUseScreens();
const value5 = ReactModule.useMemo(_fun125230, [property]);
const value6 = ReactModule.useMemo(_fun125233, [property]);
const SafetyFlowTaskContext = (SafetyFlowsTaskContextModule).SafetyFlowTaskContext;
const Provider = SafetyFlowTaskContext.Provider;
const StepModal = (StepModalNativeModule).StepModal;
return (
<Provider value={value6}>
<StepModal
initialRouteName={initialScreen}
screens={value4}
steps={value5}
/>
</Provider>
);
function SafetyFlowsModalUseScreens() { // fn#125212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:320, owner: SafetyFlowsModal.useScreens, offset: 0x025d15ae, size: 52 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (NavigatorNativeModule).useNavigatorScreens(_fun125213, []);
function _fun125213() { // fn#125213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:378, offset: 0x025d15e2, size: 416 bytes, params: 1, frame: 18
var environment;
const object = {};
const value = environment.__proto__.__proto__;
const SafetyFlowScreens = (TypesModule).SafetyFlowScreens;
const OVERVIEW = SafetyFlowScreens.OVERVIEW;
object[OVERVIEW] = {headerLeft: function() {
return null;
}, headerShown: false, render: render_125215};
const ENTER_EMAIL = SafetyFlowScreens.ENTER_EMAIL;
object[ENTER_EMAIL] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125218};
const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL;
const object4 = {};
object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object4.headerTitle = function() {
return null;
};
object4.render = render_125220;
object[VERIFY_EMAIL] = object4;
const UPDATE_APP = SafetyFlowScreens.UPDATE_APP;
object[UPDATE_APP] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125223};
const AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION;
object[AGE_VERIFICATION] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125226};
const ERROR = SafetyFlowScreens.ERROR;
object[ERROR] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125229};
return object;
function render_125215() { // fn#125215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:464, offset: 0x025d1782, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(OverviewScreen);
}
function SafetyFlowsModal({task, initialScreen}) { // fn#125211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:223, offset: 0x025d14ca, size: 228 bytes, params: 2, frame: 19
const binding = env0_4;
const [property, env0_1] = env0_3(binding.useState(task), 2);
const value4 = SafetyFlowsModalUseScreens();
const value5 = binding.useMemo(_fun125230, [property]);
const value6 = binding.useMemo(_fun125233, [property]);
const SafetyFlowTaskContext = (require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */).SafetyFlowTaskContext;
const Provider = SafetyFlowTaskContext.Provider;
const StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).StepModal;
return (
<Provider value={value6}>
<StepModal
initialRouteName={initialScreen}
screens={value4}
steps={value5}
/>
</Provider>
);
}
function render_125218() { // fn#125218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:572, offset: 0x025d17a9, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(EnterEmailScreen);
}
function SafetyFlowsModalUseScreens() { // fn#125212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:320, owner: SafetyFlowsModal.useScreens, offset: 0x025d15ae, size: 52 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (require(5280) /* metro dependency 5280: NavigatorNative */).useNavigatorScreens(_fun125213, []);
}
function render_125220() { // fn#125220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:702, offset: 0x025d17d0, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(VerifyEmailScreen);
}
function render_125223() { // fn#125223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:809, offset: 0x025d17f7, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(UpdateAppScreen);
}
function render_125226() { // fn#125226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:922, offset: 0x025d181e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(AgeVerificationScreen);
}
function render_125229() { // fn#125229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1025, offset: 0x025d1845, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(ErrorScreen);
}
}
}
function _fun125230() { // fn#125230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1068, offset: 0x025d186c, size: 102 bytes, params: 1, frame: 13
var r0;
var value;
if (env0_0?.flow_context == null) {
r0 = [];
} else {
value = env0_0.flow_context.tasks.map(_fun125231);
value = value.filter(function(a0) {
return a0 != null;
});
value = value.flat();
r0 = value;
}
return r0;
function _fun125231({task_type}) { // fn#125231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1139, offset: 0x025d18d2, size: 47 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (SafetyFlowsUtilsModule).getScreensForTaskType(task_type);
}
}
function _fun125233() { // fn#125233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1235, offset: 0x025d1901, size: 25 bytes, params: 1, frame: 3
return {task: env0_0, setTask: env0_1};
}
function _fun125230() { // fn#125230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1068, offset: 0x025d186c, size: 102 bytes, params: 1, frame: 13
var r0;
var value;
if (env0_0?.flow_context == null) {
r0 = [];
} else {
value = env0_0.flow_context.tasks.map(_fun125231);
value = value.filter(function(a0) {
return a0 != null;
});
value = value.flat();
r0 = value;
}
return r0;
}
function _fun125233() { // fn#125233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1235, offset: 0x025d1901, size: 25 bytes, params: 1, frame: 3
return {task: env0_0, setTask: env0_1};
}
function _fun125213() { // fn#125213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:378, offset: 0x025d15e2, size: 416 bytes, params: 1, frame: 18
var environment;
const object2 = {};
const value = environment.__proto__.__proto__;
const SafetyFlowScreens = (require(16199) /* metro dependency 16199: types */).SafetyFlowScreens;
const OVERVIEW = SafetyFlowScreens.OVERVIEW;
object2[OVERVIEW] = {headerLeft: function() {
return null;
}, headerShown: false, render: render_125215};
const ENTER_EMAIL = SafetyFlowScreens.ENTER_EMAIL;
object2[ENTER_EMAIL] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125218};
const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL;
const object3 = {};
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object3.headerTitle = function() {
return null;
};
object3.render = render_125220;
object2[VERIFY_EMAIL] = object3;
const UPDATE_APP = SafetyFlowScreens.UPDATE_APP;
object2[UPDATE_APP] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125223};
const AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION;
object2[AGE_VERIFICATION] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125226};
const ERROR = SafetyFlowScreens.ERROR;
object2[ERROR] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125229};
return object2;
}
function _fun125231({task_type}) { // fn#125231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1139, offset: 0x025d18d2, size: 47 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).getScreensForTaskType(task_type);
}
function render_125215() { // fn#125215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:464, offset: 0x025d1782, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16202) /* metro dependency 16202: OverviewScreen */);
}
function render_125218() { // fn#125218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:572, offset: 0x025d17a9, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16207) /* metro dependency 16207: EnterEmailScreen */);
}
function render_125220() { // fn#125220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:702, offset: 0x025d17d0, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16209) /* metro dependency 16209: VerifyEmailScreen */);
}
function render_125223() { // fn#125223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:809, offset: 0x025d17f7, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16211) /* metro dependency 16211: UpdateAppScreen */);
}
function render_125226() { // fn#125226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:922, offset: 0x025d181e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16212) /* metro dependency 16212: AgeVerificationScreen */);
}
function render_125229() { // fn#125229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1025, offset: 0x025d1845, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16213) /* metro dependency 16213: ErrorScreen */);
}
global.__d(_fun125210, 16201, [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204,
16203, 12805,
2]) /* metro module 16201, dependencies: [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204, 16203, 12805, 2] */;
@@ -1,115 +1,125 @@
/* Metro module 16204; source: modules/safety_flows/native/SafetyFlowsUtils.tsx; dependencies: [5, 31, 1878, 16199, 16200, 5080, 16205, 3857, 8096, 1244, 2486, 1484, 16203, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
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 UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as SafetyFlowsTaskContextModule from '../SafetyFlowsTaskContext.tsx'; /* Metro dependency 16203 */
function _fun125240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:6, offset: 0x025d1ed1, size: 217 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = getScreensForTaskType;
const getScreensForTaskType2 = getScreensForTaskType;
const closure2 = function() {
return _fetchAndUpdateTask.apply(this, arguments);
};
const closure3 = navigateToScreenForTask;
const navigateToScreenForTask2 = navigateToScreenForTask;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsUtils.tsx');
exports.getScreensForTaskType = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsUtils.tsx');
exports.getScreensForTaskType = getScreensForTaskType2;
exports.fetchAndUpdateTask = closure2;
exports.navigateToScreenForTask = closure3;
exports.navigateToScreenForTask = navigateToScreenForTask2;
exports.useOnTaskComplete = useOnTaskComplete;
}
function getScreensForTaskType(a0) { // fn#125241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:126, offset: 0x025d1faa, size: 165 bytes, params: 2, frame: 18
var r1;
var r0;
var currentUser;
const value2 = undefined;
const TASK_TYPE_TO_SCREENS = (require(16199) /* metro dependency 16199: types */).TASK_TYPE_TO_SCREENS;
const property = TASK_TYPE_TO_SCREENS[a0];
const value3 = null;
if (value3 == property) {
r0 = value3;
} else {
if (a0 !== (require(16199) /* metro dependency 16199: types */).TaskType.EMAIL_VERIFICATION) {
r1 = property;
function getScreensForTaskType(a0) { // fn#125241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:126, offset: 0x025d1faa, size: 165 bytes, params: 2, frame: 18
var r1;
var r0;
var currentUser;
const value2 = undefined;
const TASK_TYPE_TO_SCREENS = (require(16199) /* metro dependency 16199: types */).TASK_TYPE_TO_SCREENS;
const property = TASK_TYPE_TO_SCREENS[a0];
const value3 = null;
if (value3 == property) {
r0 = value3;
} else {
currentUser = UserStore.getCurrentUser();
r1 = value3 == (value3 == currentUser ? value2 : currentUser.email) ? property : [(require(16199) /* metro dependency 16199: types */).SafetyFlowScreens.VERIFY_EMAIL];
if (a0 !== (require(16199) /* metro dependency 16199: types */).TaskType.EMAIL_VERIFICATION) {
r1 = property;
} else {
currentUser = UserStore.getCurrentUser();
r1 = value3 == (value3 == currentUser ? value2 : currentUser.email) ? property : [(require(16199) /* metro dependency 16199: types */).SafetyFlowScreens.VERIFY_EMAIL];
}
r0 = r1;
}
r0 = r1;
return r0;
}
return r0;
}
function _fetchAndUpdateTask() { // fn#125243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:435, offset: 0x025d204f, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun125245).apply(this, arguments);
}
function _fetchAndUpdateTask() { // fn#125243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:435, offset: 0x025d204f, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun125245).apply(this, arguments);
function* _fun125245(a0) { // fn#125245, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:496, offset: 0x025d208c, size: 75 bytes, params: 2, frame: 12
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
value = env2_0(env2_2[4]);
const getCurrentTask = value.getCurrentTask;
yield Reflect.apply(getCurrentTask, value, []);
value = undefined;
if (true) {
if (value != null) {
a0(value);
}
}
return value;
}
function navigateToScreenForTask(a0, a1) { // fn#125246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:595, offset: 0x025d20d7, size: 262 bytes, params: 3, frame: 17
var value;
var defaultImport;
var open;
var object2;
if (a1 == null) {
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.popWithKey((require(16205) /* metro dependency 16205: constants */).SAFETY_FLOWS_MODAL_KEY);
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
open = value.open;
object2 = {key: 'SAFETY_FLOWS_VERIFY_EMAIL_SUCCESS', icon: importDefault(8096) /* metro dependency 8096 */};
object2.content = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['/fHz9S']);
Reflect.apply(open, value, [object2]);
} else {
var screensForTaskType = getScreensForTaskType(a1.task_type);
if (screensForTaskType != null) {
a0.push(screensForTaskType[0]);
}
function navigateToScreenForTask(a0, a1) { // fn#125246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:595, offset: 0x025d20d7, size: 262 bytes, params: 3, frame: 17
var value;
var defaultImport;
var open;
var object;
if (a1 == null) {
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.popWithKey((require(16205) /* metro dependency 16205: constants */).SAFETY_FLOWS_MODAL_KEY);
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
open = value.open;
object = {key: 'SAFETY_FLOWS_VERIFY_EMAIL_SUCCESS', icon: importDefault(8096) /* metro dependency 8096 */};
object.content = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['/fHz9S']);
Reflect.apply(open, value, [object]);
} else {
a0.push((require(16199) /* metro dependency 16199: types */).SafetyFlowScreens.UPDATE_APP);
var screensForTaskType = getScreensForTaskType(a1.task_type);
if (screensForTaskType != null) {
a0.push(screensForTaskType[0]);
} else {
a0.push((require(16199) /* metro dependency 16199: types */).SafetyFlowScreens.UPDATE_APP);
}
}
}
}
function useOnTaskComplete() { // fn#125247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1170, offset: 0x025d21dd, size: 127 bytes, params: 1, frame: 16
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const {task, setTask} = (require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */).useSafetyFlowTask();
return env0_4.useCallback(_fun125248(), [value2, task, setTask]);
}
function useOnTaskComplete() { // fn#125247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1170, offset: 0x025d21dd, size: 127 bytes, params: 1, frame: 16
const value2 = (UseNavigationNativeModule).useNavigation();
const {task, setTask} = (SafetyFlowsTaskContextModule).useSafetyFlowTask();
return ReactModule.useCallback(_fun125248(), [value2, task, setTask]);
function _fun125248() { // fn#125248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1303, offset: 0x025d225c, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun125250);
return _fun125251;
function* _fun125250(a0) { // fn#125250, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1323, offset: 0x025d228b, size: 149 bytes, params: 2, frame: 18
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_0(env3_2[4]);
yield value3.completeTask({task_id: importDefault.task_id, flow_id: importDefault.flow_context.flow_id,
data: a0});
if (false) {
return undefined;
}
yield env3_7(dependencyMap);
var value7 = undefined;
if (false) {
return value7;
}
env3_9(require, value7);
}
}
function _fun125251() { // fn#125251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1495, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function* _fun125245(a0) { // fn#125245, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:496, offset: 0x025d208c, size: 75 bytes, params: 2, frame: 12
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
value = env2_0(env2_2[4]);
const getCurrentTask = value.getCurrentTask;
yield Reflect.apply(getCurrentTask, value, []);
value = undefined;
if (true) {
if (value != null) {
a0(value);
}
}
return value;
}
function _fun125248() { // fn#125248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1303, offset: 0x025d225c, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun125250);
return _fun125251;
}
function* _fun125250(a0) { // fn#125250, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1323, offset: 0x025d228b, size: 149 bytes, params: 2, frame: 18
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_0(env3_2[4]);
yield value3.completeTask({task_id: importDefault.task_id, flow_id: importDefault.flow_context.flow_id,
data: a0});
if (false) {
return undefined;
}
yield env3_7(dependencyMap);
var value7 = undefined;
if (false) {
return value7;
}
env3_9(require, value7);
}
}
global.__d(_fun125240, 16204, [5, 31, 1878, 16199, 16200, 5080, 16205, 3857, 8096, 1244, 2486, 1484, 16203,
2]) /* metro module 16204, dependencies: [5, 31, 1878, 16199, 16200, 5080, 16205, 3857, 8096, 1244, 2486, 1484, 16203, 2] */;
@@ -1,10 +1,15 @@
/* Metro module 16211; source: modules/safety_flows/native/UpdateAppScreen.tsx; dependencies: [27, 33, 4501, 697, 4573, 1244, 2486, 4578, 2] */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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 */
function _fun125275(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16419:6, offset: 0x025d32f5, size: 265 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_3 = value.NativeModules;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
@@ -12,35 +17,54 @@ function _fun125275(global, require, importDefault, importAll, module, exports,
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.container = {'flexDirection': 'column', 'justifyContent': 'center', gap: PX_8};
object.container = {'flexDirection': 'column', 'justifyContent': 'center', gap: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.buttonContainer = {marginTop: PX_8};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/UpdateAppScreen.tsx');
object.buttonContainer = {marginTop: PX_8};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/UpdateAppScreen.tsx');
exports.default = UpdateAppScreen;
function UpdateAppScreen() { // fn#125276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16419:406, offset: 0x025d33fe, size: 362 bytes, params: 1, frame: 26
const styles = useStyles();
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const items2 = [
<Text variant="heading-lg/semibold">
{Reflect.apply(string, intl,
[(importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).yxqMCD])}
</Text>,
];
string = intl.string;
const VBZJJg = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).VBZJJg;
items2[1] = (
<Text variant="text-md/normal" color="text-muted">
{Reflect.apply(string, intl, [VBZJJg])}
</Text>
);
const Button = (ButtonNativeModule).Button;
items2[2] = (
<View style={styles.buttonContainer}>
<Button
onPress={function() {
var BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}}
text={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).o4D6fm)}
variant="primary"
size="md"
/>
</View>
);
return (
<View style={styles.container}>
{items2}
</View>
);
}
}
function UpdateAppScreen() { // fn#125276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16419:406, offset: 0x025d33fe, size: 362 bytes, params: 1, frame: 26
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<Text variant="heading-lg/semibold">{Reflect.apply(string, intl,
[(importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).yxqMCD])}</Text>];
string = intl.string;
const VBZJJg = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).VBZJJg;
items2[1] = <Text variant="text-md/normal" color="text-muted">{Reflect.apply(string, intl, [VBZJJg])}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <View style={styles.buttonContainer}><Button onPress={function() {
var BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}} text={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).o4D6fm)} variant="primary" size="md" /></View>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
global.__d(_fun125275, 16211, [27, 33, 4501, 697, 4573, 1244, 2486, 4578,
2]) /* metro module 16211, dependencies: [27, 33, 4501, 697, 4573, 1244, 2486, 4578, 2] */;
@@ -1,98 +1,126 @@
/* Metro module 16212; source: modules/safety_flows/native/tasks/AgeVerificationScreen.tsx; dependencies: [31, 27, 1878, 661, 33, 4501, 491, 16204, 566, 6253, 16199, 1909, 5074, 16208, 5473, 1244, 2486, 2742, 5263, 1948, 12807, 5076, 4573, 6260, 2] */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import AgeAssuranceMessages from '../../../age_assurance/AgeAssurance.messages.js'; /* Metro dependency 2742 */
import AuthenticationActionCreators from '../../../../actions/AuthenticationActionCreators.tsx'; /* Metro dependency 5076 */
import UseAgeVerificationMethods from '../../../age_assurance/hooks/useAgeVerificationMethods.tsx'; /* Metro dependency 6253 */
import SafetyFlowTaskScreen from '../SafetyFlowTaskScreen.tsx'; /* Metro dependency 16208 */
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 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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ServerModule from '../../../../flow/Server.tsx'; /* Metro dependency 1909 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NativeModule from '../../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as AgeVerificationMethodsContainerModule from '../../../age_assurance/native/AgeVerificationMethodsContainer.tsx'; /* Metro dependency 6260 */
import * as ModalDisclaimerNativeModule from '../../../../design/components/Modal/native/ModalDisclaimer.native.tsx'; /* Metro dependency 12807 */
import * as TypesModule from '../../types.tsx'; /* Metro dependency 16199 */
import * as SafetyFlowsUtilsModule from '../SafetyFlowsUtils.tsx'; /* Metro dependency 16204 */
function _fun125278(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:6, offset: 0x025d3583, size: 245 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).Pressable;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({helpLink: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/AgeVerificationScreen.tsx');
const env0_8 = (CreateStylesModule).createStyles({helpLink: {textAlign: 'center'}});
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/tasks/AgeVerificationScreen.tsx');
exports.default = AgeVerificationScreen;
}
function AgeVerificationScreen() { // fn#125279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:239, offset: 0x025d3678, size: 606 bytes, params: 1, frame: 27
var object4;
const value2 = ReactModule.useMemo(_fun125280, []);
const styles = useStyles();
const value3 = (SafetyFlowsUtilsModule).useOnTaskComplete();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const {loading,
ageVerificationMethods} = (UseAgeVerificationMethods)({onClose: onClose_125282});
ReactModule.useEffect(_fun125283, [value3, currentUser]);
ReactModule.useEffect(_fun125284, [value2]);
object4 = {};
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
object4.ImageComponent = <ShieldSpotIllustration />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object4.title = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['dSkE/A']);
const format = intl.format;
const RpMIT0 = (AgeAssuranceMessages).RpMIT0;
object4.subtitle = Reflect.apply(format, intl, [RpMIT0, {handleOnHelpUrlHook: function() {
importDefault(dependencyMap[18]).openUrl(importDefault(dependencyMap[19]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}}]);
const ModalDisclaimer = (ModalDisclaimerNativeModule).ModalDisclaimer;
const object = {accessibilityRole: 'button', onPress: onPress_125286};
const Text = (TextModule).Text;
object4.footer = (
<ModalDisclaimer>
<Pressable {...object}>
<Text
variant="text-sm/medium"
color="text-link"
style={styles.helpLink}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer'])}
</Text>
</Pressable>
</ModalDisclaimer>
);
object4.submitting = loading;
const AgeVerificationMethodsContainer = (AgeVerificationMethodsContainerModule).AgeVerificationMethodsContainer;
return (
<SafetyFlowTaskScreen {...object4}>
<AgeVerificationMethodsContainer ageVerificationMethods={ageVerificationMethods} modalSessionId={value2} />
</SafetyFlowTaskScreen>
);
function _fun125280() { // fn#125280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:289, offset: 0x025d38d6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00491Module).v4();
}
function AgeVerificationScreen() { // fn#125279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:239, offset: 0x025d3678, size: 606 bytes, params: 1, frame: 27
var object3;
const binding = env0_3;
const value2 = binding.useMemo(_fun125280, []);
const styles = useStyles();
const value3 = (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).useOnTaskComplete();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const {loading,
ageVerificationMethods} = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose_125282});
binding.useEffect(_fun125283, [value3, currentUser]);
binding.useEffect(_fun125284, [value2]);
const SafetyFlowTaskScreen = importDefault(16208) /* metro dependency 16208: SafetyFlowTaskScreen */;
object3 = {};
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
object3.ImageComponent = <ShieldSpotIllustration />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object3.title = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['dSkE/A']);
const format = intl.format;
const RpMIT0 = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).RpMIT0;
object3.subtitle = Reflect.apply(format, intl, [RpMIT0, {handleOnHelpUrlHook: function() {
importDefault(dependencyMap[18]).openUrl(importDefault(dependencyMap[19]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}}]);
const ModalDisclaimer = (require(12807) /* metro dependency 12807: ModalDisclaimerNative */).ModalDisclaimer;
const object2 = {accessibilityRole: 'button', onPress: onPress_125286};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
object3.footer = <ModalDisclaimer><Pressable {...object2}><Text variant="text-sm/medium" color="text-link" style={styles.helpLink}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer'])}</Text></Pressable></ModalDisclaimer>;
object3.submitting = loading;
const AgeVerificationMethodsContainer = (require(6260) /* metro dependency 6260: AgeVerificationMethodsContainer */).AgeVerificationMethodsContainer;
return (
<SafetyFlowTaskScreen {...object3}>
<AgeVerificationMethodsContainer ageVerificationMethods={ageVerificationMethods} modalSessionId={value2} />
</SafetyFlowTaskScreen>
);
}
function AgeVerificationScreenOnClose() { // fn#125282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:425, owner: AgeVerificationScreen.onClose, offset: 0x025d38fb, size: 57 bytes, params: 1, frame: 13
const binding = env0_1;
const TaskInputType = (TypesModule).TaskInputType;
const Empty = TaskInputType.Empty;
return binding({type: Empty});
}
function _fun125280() { // fn#125280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:289, offset: 0x025d38d6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(491) /* metro dependency 491 */).v4();
}
function _fun125283() { // fn#125283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:529, offset: 0x025d3934, size: 118 bytes, params: 1, frame: 15
var binding;
var object;
const currentUserBinding = currentUser;
const value2 = undefined;
const ageVerificationStatus = currentUserBinding == null ? value2 : currentUser.ageVerificationStatus;
const AgeVerificationStatusUkAndAusOnly = (ServerModule).AgeVerificationStatusUkAndAusOnly;
const UNVERIFIED = AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
if (ageVerificationStatus !== UNVERIFIED) {
binding = env0_1;
object = {};
object.type = (require(16199) /* metro dependency 16199: types */).TaskInputType.Empty;
binding(object);
}
return value2;
}
function AgeVerificationScreenOnClose() { // fn#125282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:425, owner: AgeVerificationScreen.onClose, offset: 0x025d38fb, size: 57 bytes, params: 1, frame: 13
const binding = env0_1;
const TaskInputType = (require(16199) /* metro dependency 16199: types */).TaskInputType;
const Empty = TaskInputType.Empty;
return binding({type: Empty});
}
function _fun125284() { // fn#125284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:693, offset: 0x025d39aa, size: 89 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalViewed = value.trackAgeVerificationModalViewed;
const binding = env0_0;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const SAFETY_FLOWS = AgeVerificationModalEntryPoint.SAFETY_FLOWS;
Reflect.apply(trackAgeVerificationModalViewed, value, [binding, EXPRESSIVE_PRIMARY, SAFETY_FLOWS]);
}
function AgeVerificationScreenOnPress() { // fn#125286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:1199, owner: AgeVerificationScreen.onPress, offset: 0x025d3a4a, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(AuthenticationActionCreators).logout('age_verification_screen');
}
function _fun125283() { // fn#125283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:529, offset: 0x025d3934, size: 118 bytes, params: 1, frame: 15
var binding;
var object2;
const currentUserBinding = currentUser;
const value2 = undefined;
const ageVerificationStatus = currentUserBinding == null ? value2 : currentUser.ageVerificationStatus;
const AgeVerificationStatusUkAndAusOnly = (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly;
const UNVERIFIED = AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
if (ageVerificationStatus !== UNVERIFIED) {
binding = env0_1;
object2 = {};
object2.type = (require(16199) /* metro dependency 16199: types */).TaskInputType.Empty;
binding(object2);
}
return value2;
}
function _fun125284() { // fn#125284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:693, offset: 0x025d39aa, size: 89 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalViewed = value.trackAgeVerificationModalViewed;
const binding = env0_0;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const SAFETY_FLOWS = AgeVerificationModalEntryPoint.SAFETY_FLOWS;
Reflect.apply(trackAgeVerificationModalViewed, value, [binding, EXPRESSIVE_PRIMARY, SAFETY_FLOWS]);
}
function AgeVerificationScreenOnPress() { // fn#125286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:1199, owner: AgeVerificationScreen.onPress, offset: 0x025d3a4a, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('age_verification_screen');
}
global.__d(_fun125278, 16212, [31, 27, 1878, 661, 33, 4501, 491, 16204, 566, 6253, 16199, 1909, 5074, 16208, 5473,
1244, 2486, 2742, 5263, 1948, 12807, 5076, 4573, 6260,
2]) /* metro module 16212, dependencies: [31, 27, 1878, 661, 33, 4501, 491, 16204, 566, 6253, 16199, 1909, 5074, 16208, 5473, 1244, 2486, 2742, 5263, 1948, 12807, 5076, 4573, 6260, 2] */;
@@ -1,48 +1,57 @@
/* Metro module 16207; source: modules/safety_flows/native/tasks/EnterEmailScreen.tsx; dependencies: [57, 31, 33, 1484, 16208, 1244, 2486, 16199, 4572, 7981, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import SafetyFlowTaskScreen from '../SafetyFlowTaskScreen.tsx'; /* Metro dependency 16208 */
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 UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as StackNativeModule from '../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextInputNativeModule from '../../../../design/components/TextInput/native/TextInput.native.tsx'; /* Metro dependency 7981 */
import * as TypesModule from '../../types.tsx'; /* Metro dependency 16199 */
function _fun125256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:6, offset: 0x025d24b7, size: 158 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/EnterEmailScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/tasks/EnterEmailScreen.tsx');
exports.default = EnterEmailScreen;
function EnterEmailScreen() { // fn#125257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:136, offset: 0x025d2555, size: 302 bytes, params: 1, frame: 24
const env0_0 = (UseNavigationNativeModule).useNavigation();
const [property, property2] = Module00057(ReactModule.useState(''), 2);
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
object.title = Reflect.apply(string, intl,
[(importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).bFbsV6]);
string = intl.string;
const RRBNpv = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).RRBNpv;
object.action = Reflect.apply(string, intl, [RRBNpv]);
object.onAction = onAction_125258;
const Stack = (StackNativeModule).Stack;
const TextInput = (TextInputNativeModule).TextInput;
return (
<SafetyFlowTaskScreen {...object}>
<Stack>
<TextInput
label="Email"
value={property}
onChange={property2}
/>
</Stack>
</SafetyFlowTaskScreen>
);
function EnterEmailScreenOnAction() { // fn#125258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:346, owner: EnterEmailScreen.onAction, offset: 0x025d2683, size: 56 bytes, params: 1, frame: 13
const binding = env0_0;
const push = binding.push;
const SafetyFlowScreens = (TypesModule).SafetyFlowScreens;
const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL;
Reflect.apply(push, binding, [VERIFY_EMAIL]);
}
}
}
function EnterEmailScreen() { // fn#125257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:136, offset: 0x025d2555, size: 302 bytes, params: 1, frame: 24
const env0_0 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const [property, property2] = env0_3(env0_4.useState(''), 2);
const SafetyFlowTaskScreen = importDefault(16208) /* metro dependency 16208: SafetyFlowTaskScreen */;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.title = Reflect.apply(string, intl,
[(importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).bFbsV6]);
string = intl.string;
const RRBNpv = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).RRBNpv;
object2.action = Reflect.apply(string, intl, [RRBNpv]);
object2.onAction = onAction;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
return (
<SafetyFlowTaskScreen {...object2}>
<Stack>
<TextInput
label="Email"
value={property}
onChange={property2}
/>
</Stack>
</SafetyFlowTaskScreen>
);
}
function onAction() { // fn#125258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:346, owner: EnterEmailScreen.onAction, offset: 0x025d2683, size: 56 bytes, params: 1, frame: 13
const binding = env0_0;
const push = binding.push;
const SafetyFlowScreens = (require(16199) /* metro dependency 16199: types */).SafetyFlowScreens;
const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL;
Reflect.apply(push, binding, [VERIFY_EMAIL]);
}
global.__d(_fun125256, 16207, [57, 31, 33, 1484, 16208, 1244, 2486, 16199, 4572, 7981,
2]) /* metro module 16207, dependencies: [57, 31, 33, 1484, 16208, 1244, 2486, 16199, 4572, 7981, 2] */;
@@ -1,388 +1,396 @@
/* Metro module 16210; source: modules/safety_flows/native/tasks/ResendVerificationCodeButton.tsx; dependencies: [5, 57, 31, 27, 33, 16200, 3856, 3857, 1244, 2486, 13436, 4066, 4573, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun125267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:6, offset: 0x025d2eba, size: 196 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 env0_6 = (require(27) /* metro dependency 27 */).Pressable;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/ResendVerificationCodeButton.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/tasks/ResendVerificationCodeButton.tsx');
exports.default = _default_125268;
}
function _default_125268({flowId, setLoading}) { // fn#125268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:171, offset: 0x025d2f7e, size: 454 bytes, params: 2, frame: 24
const [property, env0_3] = Module00057(ReactModule.useState(0), 2);
ReactModule.useEffect(_fun125269, [property]);
object = {onPress: ReactModule.useCallback(env0_3(_fun125274), [setLoading, property, flowId]), disabled: property > 0,
accessibilityRole: 'button'};
const intl = (IndexNativeModule).intl;
object.accessibilityLabel = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu);
const Text = (TextModule).Text;
return (
<Pressable {...object}>
<Text
variant="text-sm/medium"
color="text-link"
accessibilityLabel={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu)}
importantForAccessibility="no"
>
{property > 0 ? intl.format((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['2+Lyn0'],
{countdown: property}) : intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu)}
</Text>
</Pressable>
);
function _fun125269() { // fn#125269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:255, offset: 0x025d3144, size: 61 bytes, params: 1, frame: 14
if (env0_2 > 0) {
var env0_0 = global.setInterval(_fun125270, 1000);
return _fun125272;
}
function _fun125270() { // fn#125270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:287, offset: 0x025d3181, size: 25 bytes, params: 1, frame: 11
env1_3(function(a0) {
return a0 - 1;
});
}
function _default_125268({flowId, setLoading}) { // fn#125268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:171, offset: 0x025d2f7e, size: 454 bytes, params: 2, frame: 24
var object2;
const binding = env0_5;
const [property, env0_3] = env0_4(binding.useState(0), 2);
binding.useEffect(_fun125269, [property]);
object2 = {onPress: binding.useCallback(env0_3(_fun125274), [setLoading, property, flowId]), disabled: property > 0,
accessibilityRole: 'button'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.accessibilityLabel = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Pressable {...object2}>
<Text
variant="text-sm/medium"
color="text-link"
accessibilityLabel={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu)}
importantForAccessibility="no"
>
{property > 0 ? intl.format((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['2+Lyn0'],
{countdown: property}) : intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu)}
</Text>
</Pressable>
);
}
function _fun125272() { // fn#125272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:317, offset: 0x013378b1, size: 24 bytes, params: 1, frame: 11
return global.clearInterval(env0_0);
}
function _fun125269() { // fn#125269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:255, offset: 0x025d3144, size: 61 bytes, params: 1, frame: 14
if (env0_2 > 0) {
var env0_0 = global.setInterval(_fun125270, 1000);
return _fun125272;
}
}
function* _fun125274() { // fn#125274, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:369, offset: 0x025d31a5, size: 336 bytes, params: 1, frame: 20
var value;
var value2;
var value3;
var binding;
var binding2;
var property;
var value4;
var resendVerificationCode;
var value5;
var value6;
var value7;
var binding3;
var value8;
var showVerificationSent;
var error;
var binding4;
var value9;
var open;
var object2;
var binding5;
var value10;
var intl;
var string;
var value11;
var value12;
var value13;
var value14;
var XLargeIcon;
exceptionLanding63: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__;
if (!(dependencyMap > 0)) {
importDefault(true);
value3 = environment.__proto__.__proto__;
reducibleJoin5: while (true) {
reduciblePort62: while (true) {
exceptionLanding27: while (true) {
try {
function* _fun125274() { // fn#125274, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:369, offset: 0x025d31a5, size: 336 bytes, params: 1, frame: 20
var value;
var value2;
var value3;
var binding;
var binding2;
var property;
var value4;
var resendVerificationCode;
var value5;
var value6;
var value7;
var binding3;
var value8;
var showVerificationSent;
var error;
var binding4;
var value9;
var open;
var object;
var binding5;
var value10;
var intl;
var string;
var value11;
var value12;
var value13;
var value14;
var XLargeIcon;
exceptionLanding63: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__;
if (!(dependencyMap > 0)) {
importDefault(true);
value3 = environment.__proto__.__proto__;
reducibleJoin5: while (true) {
reduciblePort62: while (true) {
exceptionLanding27: while (true) {
try {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
break reducibleJoin5;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding63;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[7];
} catch (error) {
break exceptionLanding63;
}
try {
value9 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
open = value9.open;
} catch (error) {
break exceptionLanding63;
}
try {
object = {};
} catch (error) {
break exceptionLanding63;
}
try {
object.key = 'SAFETY_FLOWS_VERIFY_EMAIL_ERROR';
} catch (error) {
break exceptionLanding63;
}
try {
binding5 = env2_0;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[8];
} catch (error) {
break exceptionLanding63;
}
try {
value10 = binding5(property);
} catch (error) {
break exceptionLanding63;
}
try {
intl = value10.intl;
} catch (error) {
break exceptionLanding63;
}
try {
string = intl.string;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[9];
} catch (error) {
break exceptionLanding63;
}
try {
value11 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
property = value11['3AXMYu'];
} catch (error) {
break exceptionLanding63;
}
try {
value12 = Reflect.apply(string, intl, [property]);
} catch (error) {
break exceptionLanding63;
}
try {
object.content = value12;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[10];
} catch (error) {
break exceptionLanding63;
}
try {
value13 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
object.icon = value13;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[11];
} catch (error) {
break exceptionLanding63;
}
try {
value14 = binding5(property);
} catch (error) {
break exceptionLanding63;
}
try {
XLargeIcon = value14.XLargeIcon;
} catch (error) {
break exceptionLanding63;
}
try {
object.IconComponent = XLargeIcon;
} catch (error) {
break exceptionLanding63;
}
try {
object.iconColor = 'icon-feedback-critical';
} catch (error) {
break exceptionLanding63;
}
try {
binding = env2_0;
Reflect.apply(open, value9, [object]);
} catch (error) {
break exceptionLanding27;
break exceptionLanding63;
}
} catch (error) {
break exceptionLanding63;
break reduciblePort62;
}
break reducibleJoin5;
importDefault(false);
return undefined;
}
try {
binding = env2_1;
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
binding4 = env2_2;
try {
property = binding2[5];
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[7];
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
value9 = binding(property);
try {
resendVerificationCode = value4.resendVerificationCode;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
open = value9.open;
try {
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
object2 = {};
try {
value5 = Reflect.apply(resendVerificationCode, value4, [require]);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
yield value5;
try {
object2.key = 'SAFETY_FLOWS_VERIFY_EMAIL_ERROR';
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
binding5 = env2_0;
} catch (error) {
break exceptionLanding63;
if (value7) {
importDefault(false);
return value6;
}
try {
property = binding4[8];
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
value10 = binding5(property);
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
intl = value10.intl;
try {
property = binding3[6];
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
string = intl.string;
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[9];
try {
showVerificationSent = value8.showVerificationSent;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
value11 = binding(property);
try {
Reflect.apply(showVerificationSent, value8, []);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
property = value11['3AXMYu'];
try {
binding = env1_3;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
value12 = Reflect.apply(string, intl, [property]);
} catch (error) {
break exceptionLanding63;
}
try {
object2.content = value12;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[10];
} catch (error) {
break exceptionLanding63;
}
try {
value13 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
object2.icon = value13;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[11];
} catch (error) {
break exceptionLanding63;
}
try {
value14 = binding5(property);
} catch (error) {
break exceptionLanding63;
}
try {
XLargeIcon = value14.XLargeIcon;
} catch (error) {
break exceptionLanding63;
}
try {
object2.IconComponent = XLargeIcon;
} catch (error) {
break exceptionLanding63;
}
try {
object2.iconColor = 'icon-feedback-critical';
} catch (error) {
break exceptionLanding63;
}
try {
Reflect.apply(open, value9, [object2]);
try {
binding(30);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
break reduciblePort62;
importDefault(false);
}
importDefault(false);
return undefined;
}
try {
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
property = binding2[5];
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
resendVerificationCode = value4.resendVerificationCode;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value5 = Reflect.apply(resendVerificationCode, value4, [require]);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
yield value5;
try {
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
if (value7) {
importDefault(false);
return value6;
}
try {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
property = binding3[6];
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
showVerificationSent = value8.showVerificationSent;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
Reflect.apply(showVerificationSent, value8, []);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
binding = env1_3;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
binding(30);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
importDefault(false);
throw error;
}
return undefined;
}
importDefault(false);
throw error;
}
function _fun125270() { // fn#125270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:287, offset: 0x025d3181, size: 25 bytes, params: 1, frame: 11
env1_3(function(a0) {
return a0 - 1;
});
}
global.__d(_fun125267, 16210, [5, 57, 31, 27, 33, 16200, 3856, 3857, 1244, 2486, 13436, 4066, 4573,
2]) /* metro module 16210, dependencies: [5, 57, 31, 27, 33, 16200, 3856, 3857, 1244, 2486, 13436, 4066, 4573, 2] */;
@@ -1,223 +1,255 @@
/* Metro module 16209; source: modules/safety_flows/native/tasks/VerifyEmailScreen.tsx; dependencies: [5, 57, 31, 33, 16203, 16204, 16199, 3857, 1244, 2486, 16208, 4572, 697, 4573, 7981, 16210, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import SafetyFlowTaskScreen from '../SafetyFlowTaskScreen.tsx'; /* Metro dependency 16208 */
import ResendVerificationCodeButton from './ResendVerificationCodeButton.tsx'; /* Metro dependency 16210 */
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 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 TextInputNativeModule from '../../../../design/components/TextInput/native/TextInput.native.tsx'; /* Metro dependency 7981 */
import * as SafetyFlowsTaskContextModule from '../../SafetyFlowsTaskContext.tsx'; /* Metro dependency 16203 */
import * as SafetyFlowsUtilsModule from '../SafetyFlowsUtils.tsx'; /* Metro dependency 16204 */
function _fun125261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:6, offset: 0x025d2993, size: 183 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 value = require(33) /* metro dependency 33 */;
const value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/VerifyEmailScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/tasks/VerifyEmailScreen.tsx');
exports.default = _default_125262;
}
function _default_125262() { // fn#125262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:162, offset: 0x025d2a4a, size: 795 bytes, params: 1, frame: 32
var object2;
const value2 = undefined;
const safetyFlowsTaskContextModule = require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */;
const useSafetyFlowTask = safetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, safetyFlowsTaskContextModule, []).task;
const value3 = (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).useOnTaskComplete();
const binding = env0_5;
const env0_1 = binding.useRef('');
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const property2 = value5[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property3 = value6[0];
const property4 = value6[1];
const env0_3 = property4;
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property5 = value7[0];
var env0_5 = value7[1];
const value9 = binding.useCallback(env0_3(_fun125264), [value3]);
binding.useEffect(_fun125265, [property]);
binding.useEffect(_fun125266, [property, property5, value9]);
const SafetyFlowTaskScreen = importDefault(16208) /* metro dependency 16208: SafetyFlowTaskScreen */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['Qm6K/s']);
object2.action = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).wq2RDq);
object2.onAction = value9;
object2.submitting = property3;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items3 = [<Text variant="text-sm/medium" color="text-subtle">{intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).aveKoG)}</Text>];
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
const items2 = [<TextInput placeholder={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).d9Ykjr)} maxLength={6} returnKeyType="done" value={property} onChange={property2} />];
const ResendVerificationCodeButton = importDefault(16210) /* metro dependency 16210: ResendVerificationCodeButton */;
const flow_context = task.flow_context;
items2[1] = <ResendVerificationCodeButton setLoading={property4} flowId={flow_context == null ? value2 : flow_context.flow_id} />;
items3[1] = <Stack2 spacing={PX_8}>{items2}</Stack2>;
return (
<SafetyFlowTaskScreen {...object2}>
<Stack spacing={PX_16}>
{items3}
</Stack>
</SafetyFlowTaskScreen>
);
}
function* _fun125264() { // fn#125264, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:392, offset: 0x025d2d70, size: 287 bytes, params: 1, frame: 18
var current;
var binding;
var object2;
var value3;
var binding2;
var property;
var value4;
var TaskInputType;
var VerificationCode;
var moduleValue;
var value5;
var value6;
var error;
var binding3;
var value7;
var open;
var binding4;
var intl;
var string;
var PfbG6H;
if (true) {
reduciblePort29: while (true) {
exceptionLanding28: while (true) {
value = environment.__proto__;
current = importDefault.current;
if (current == null) {
function _default_125262() { // fn#125262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:162, offset: 0x025d2a4a, size: 795 bytes, params: 1, frame: 32
const value2 = undefined;
const useSafetyFlowTask = SafetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, SafetyFlowsTaskContextModule, []).task;
const value3 = (SafetyFlowsUtilsModule).useOnTaskComplete();
const binding = env0_5;
const env0_1 = binding.useRef('');
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, ['']);
const value5 = Module00057(value4, 2);
const property = value5[0];
const property2 = value5[1];
useState = binding.useState;
const value6 = Module00057(Reflect.apply(useState, binding, [false]), 2);
const property3 = value6[0];
const property4 = value6[1];
const property42 = property4;
useState = binding.useState;
const value7 = Module00057(Reflect.apply(useState, binding, [false]), 2);
const property5 = value7[0];
var env0_5 = value7[1];
const value9 = binding.useCallback(property42(_fun125264), [value3]);
binding.useEffect(_fun125265, [property]);
binding.useEffect(_fun125266, [property, property5, value9]);
object = {};
const intl = (IndexNativeModule).intl;
object.title = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['Qm6K/s']);
object.action = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).wq2RDq);
object.onAction = value9;
object.submitting = property3;
const Stack = (StackNativeModule).Stack;
const PX_16 = (Native).space.PX_16;
const Text = (TextModule).Text;
const items3 = [
<Text variant="text-sm/medium" color="text-subtle">
{intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).aveKoG)}
</Text>,
];
const Stack2 = (StackNativeModule).Stack;
const PX_8 = (Native).space.PX_8;
const TextInput = (TextInputNativeModule).TextInput;
const items2 = [
<TextInput
placeholder={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).d9Ykjr)}
maxLength={6}
returnKeyType="done"
value={property}
onChange={property2}
/>,
];
const flow_context = task.flow_context;
items2[1] = (
<ResendVerificationCodeButton setLoading={property4} flowId={flow_context == null ? value2 : flow_context.flow_id} />
);
items3[1] = (
<Stack2 spacing={PX_8}>
{items2}
</Stack2>
);
return (
<SafetyFlowTaskScreen {...object}>
<Stack spacing={PX_16}>
{items3}
</Stack>
</SafetyFlowTaskScreen>
);
function* _fun125264() { // fn#125264, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:392, offset: 0x025d2d70, size: 287 bytes, params: 1, frame: 18
var current;
var binding;
var object;
var value3;
var binding2;
var property;
var value4;
var TaskInputType;
var VerificationCode;
var moduleValue;
var value5;
var value6;
var error;
var binding3;
var value7;
var open;
var binding4;
var intl;
var string;
var PfbG6H;
if (true) {
reduciblePort29: while (true) {
exceptionLanding28: while (true) {
value = environment.__proto__;
current = importDefault.current;
if (current == null) {
break reduciblePort29;
}
if (current === '') {
break reduciblePort29;
}
try {
binding = env1_3;
} catch (error) {
break exceptionLanding28;
}
try {
binding(true);
} catch (error) {
break exceptionLanding28;
}
try {
binding = env1_5;
} catch (error) {
break exceptionLanding28;
}
try {
binding(true);
} catch (error) {
break exceptionLanding28;
}
try {
} catch (error) {
break exceptionLanding28;
}
try {
object = {};
} catch (error) {
break exceptionLanding28;
}
try {
object.verification_code = current;
} catch (error) {
break exceptionLanding28;
}
value3 = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding28;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding28;
}
try {
property = binding2[6];
} catch (error) {
break exceptionLanding28;
}
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding28;
}
try {
TaskInputType = value4.TaskInputType;
} catch (error) {
break exceptionLanding28;
}
try {
VerificationCode = TaskInputType.VerificationCode;
} catch (error) {
break exceptionLanding28;
}
try {
object.type = VerificationCode;
} catch (error) {
break exceptionLanding28;
}
try {
moduleValue = require(object);
} catch (error) {
break exceptionLanding28;
}
yield moduleValue;
try {
value5 = undefined;
value6 = false;
} catch (error) {
break exceptionLanding28;
}
if (value6) {
return value5;
}
try {
binding = env1_3;
} catch (error) {
break exceptionLanding28;
}
try {
binding(false);
} catch (error) {
break exceptionLanding28;
}
break reduciblePort29;
}
env1_3(false);
env1_5(false);
value = environment.__proto__.__proto__;
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[7]);
open = value7.open;
binding4 = env2_0;
intl = binding4(binding3[8]).intl;
string = intl.string;
PfbG6H = binding(binding3[9]).PfbG6H;
Reflect.apply(open, value7, [{key: 'SAFETY_FLOWS_VERIFY_EMAIL_ERROR', content: Reflect.apply(string, intl,
[PfbG6H])}]);
break reduciblePort29;
}
if (current === '') {
break reduciblePort29;
}
try {
binding = env1_3;
} catch (error) {
break exceptionLanding28;
}
try {
binding(true);
} catch (error) {
break exceptionLanding28;
}
try {
binding = env1_5;
} catch (error) {
break exceptionLanding28;
}
try {
binding(true);
} catch (error) {
break exceptionLanding28;
}
try {
} catch (error) {
break exceptionLanding28;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding28;
}
try {
object2.verification_code = current;
} catch (error) {
break exceptionLanding28;
}
value3 = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding28;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding28;
}
try {
property = binding2[6];
} catch (error) {
break exceptionLanding28;
}
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding28;
}
try {
TaskInputType = value4.TaskInputType;
} catch (error) {
break exceptionLanding28;
}
try {
VerificationCode = TaskInputType.VerificationCode;
} catch (error) {
break exceptionLanding28;
}
try {
object2.type = VerificationCode;
} catch (error) {
break exceptionLanding28;
}
try {
moduleValue = require(object2);
} catch (error) {
break exceptionLanding28;
}
yield moduleValue;
try {
value5 = undefined;
value6 = false;
} catch (error) {
break exceptionLanding28;
}
if (value6) {
return value5;
}
try {
binding = env1_3;
} catch (error) {
break exceptionLanding28;
}
try {
binding(false);
} catch (error) {
break exceptionLanding28;
}
break reduciblePort29;
}
env1_3(false);
env1_5(false);
value = environment.__proto__.__proto__;
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[7]);
open = value7.open;
binding4 = env2_0;
intl = binding4(binding3[8]).intl;
string = intl.string;
PfbG6H = binding(binding3[9]).PfbG6H;
Reflect.apply(open, value7, [{key: 'SAFETY_FLOWS_VERIFY_EMAIL_ERROR', content: Reflect.apply(string, intl,
[PfbG6H])}]);
break reduciblePort29;
}
function _fun125265() { // fn#125265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:684, offset: 0x00ce3868, size: 21 bytes, params: 1, frame: 2
env0_1.current = env0_2;
}
function _fun125266() { // fn#125266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:721, offset: 0x025d2e8f, size: 43 bytes, params: 1, frame: 10
if (!(env0_2.length !== 6 || Module00057)) {
env0_6();
}
}
}
}
function _fun125266() { // fn#125266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:721, offset: 0x025d2e8f, size: 43 bytes, params: 1, frame: 10
if (!(env0_2.length !== 6 || env0_4)) {
env0_6();
}
}
global.__d(_fun125261, 16209, [5, 57, 31, 33, 16203, 16204, 16199, 3857, 1244, 2486, 16208, 4572, 697, 4573, 7981,
16210,
2]) /* metro module 16209, dependencies: [5, 57, 31, 33, 16203, 16204, 16199, 3857, 1244, 2486, 16208, 4572, 697, 4573, 7981, 16210, 2] */;
@@ -1,438 +1,442 @@
/* Metro module 16198; source: modules/safety_flows/openSafetyFlow.native.tsx; dependencies: [5, 1373, 661, 16199, 16200, 5080, 16201, 1962, 16205, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import UserRequiredActionStore from '../../stores/UserRequiredActionStore.tsx'; /* Metro dependency 1373 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun125191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16406:6, offset: 0x025d0bd8, 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 userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).UserRequiredActions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/openSafetyFlow.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/openSafetyFlow.native.tsx');
exports.openSafetyFlow = function() {
return _openSafetyFlow.apply(this, arguments);
};
}
function _openSafetyFlow() { // fn#125192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16406:146, offset: 0x025d0c7f, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun125194).apply(this, arguments);
}
async function _fun125194() { // fn#125194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16406:199, offset: 0x025d0cc5, size: 551 bytes, params: 1, frame: 25
var r1;
var r7;
var r6;
var object2;
var binding;
var getAction;
var REQUIRE_SAFETY_FLOWS;
var binding2;
var property;
var value5;
var getCurrentTask;
var value6;
var value7;
var value8;
var value9;
var task_type;
var binding3;
var value10;
var TaskType;
var AGE_VERIFICATION;
var value11;
var binding4;
var value12;
var TASK_TYPE_TO_SCREENS;
var value13;
var binding5;
var value14;
var SafetyFlowScreens;
var UPDATE_APP;
var binding6;
var value15;
var OVERVIEW;
var binding7;
var value16;
var binding8;
var value17;
var pushLazy;
var value18;
var paths;
var value19;
var value20;
var SAFETY_FLOWS_MODAL_KEY;
var error;
var binding9;
var value21;
var ERROR;
let value = a0;
if (true) {
reducibleJoin3: while (true) {
if (value !== undefined) {
r1 = value;
break reducibleJoin3;
}
r1 = {};
break reducibleJoin3;
}
var requiredAction = r1.requiredAction;
await undefined;
if (false) {
return undefined;
}
reducibleJoin7: while (true) {
if (requiredAction != null) {
r7 = requiredAction;
break reducibleJoin7;
}
value = environment.__proto__.__proto__;
binding = env2_4;
getAction = binding.getAction;
value = Reflect.apply(getAction, binding, []);
r7 = value;
break reducibleJoin7;
}
reduciblePort83: while (true) {
exceptionLanding82: while (true) {
value = environment.__proto__.__proto__;
REQUIRE_SAFETY_FLOWS = env2_5.REQUIRE_SAFETY_FLOWS;
if (r7 !== REQUIRE_SAFETY_FLOWS) {
break reduciblePort83;
function _openSafetyFlow() { // fn#125192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16406:146, offset: 0x025d0c7f, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun125194).apply(this, arguments);
async function _fun125194() { // fn#125194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16406:199, offset: 0x025d0cc5, size: 551 bytes, params: 1, frame: 25
var r1;
var r7;
var r6;
var object;
var binding;
var getAction;
var REQUIRE_SAFETY_FLOWS;
var binding2;
var property;
var value5;
var getCurrentTask;
var value6;
var value7;
var value8;
var value9;
var task_type;
var binding3;
var value10;
var TaskType;
var AGE_VERIFICATION;
var value11;
var binding4;
var value12;
var TASK_TYPE_TO_SCREENS;
var value13;
var binding5;
var value14;
var SafetyFlowScreens;
var UPDATE_APP;
var binding6;
var value15;
var OVERVIEW;
var binding7;
var value16;
var binding8;
var value17;
var pushLazy;
var value18;
var paths;
var value19;
var value20;
var SAFETY_FLOWS_MODAL_KEY;
var error;
var binding9;
var value21;
var ERROR;
let value = a0;
if (true) {
reducibleJoin3: while (true) {
if (value !== undefined) {
r1 = value;
break reducibleJoin3;
}
r1 = {};
break reducibleJoin3;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding2[4];
} catch (error) {
break exceptionLanding82;
}
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
getCurrentTask = value5.getCurrentTask;
} catch (error) {
break exceptionLanding82;
}
try {
value6 = Reflect.apply(getCurrentTask, value5, []);
} catch (error) {
break exceptionLanding82;
}
await value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
break exceptionLanding82;
}
if (value8) {
return value7;
}
try {
value9 = value7 == null;
} catch (error) {
break exceptionLanding82;
}
if (value9) {
var requiredAction = r1.requiredAction;
await undefined;
if (false) {
return undefined;
}
try {
task_type = value7.task_type;
} catch (error) {
break exceptionLanding82;
reducibleJoin7: while (true) {
if (requiredAction != null) {
r7 = requiredAction;
break reducibleJoin7;
}
value = environment.__proto__.__proto__;
binding = env2_4;
getAction = binding.getAction;
value = Reflect.apply(getAction, binding, []);
r7 = value;
break reducibleJoin7;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding3[3];
} catch (error) {
break exceptionLanding82;
}
try {
value10 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
TaskType = value10.TaskType;
} catch (error) {
break exceptionLanding82;
}
try {
AGE_VERIFICATION = TaskType.AGE_VERIFICATION;
} catch (error) {
break exceptionLanding82;
}
try {
value11 = task_type === AGE_VERIFICATION;
} catch (error) {
break exceptionLanding82;
}
if (value11) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding7 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding7[3];
} catch (error) {
break exceptionLanding82;
}
try {
value16 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SafetyFlowScreens = value16.SafetyFlowScreens;
} catch (error) {
break exceptionLanding82;
}
try {
AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION;
} catch (error) {
break exceptionLanding82;
}
r6 = AGE_VERIFICATION;
} else {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding4[3];
} catch (error) {
break exceptionLanding82;
}
try {
value12 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
TASK_TYPE_TO_SCREENS = value12.TASK_TYPE_TO_SCREENS;
} catch (error) {
break exceptionLanding82;
}
try {
task_type = value7.task_type;
} catch (error) {
break exceptionLanding82;
}
try {
property = TASK_TYPE_TO_SCREENS[task_type];
} catch (error) {
break exceptionLanding82;
}
try {
value13 = property != null;
} catch (error) {
break exceptionLanding82;
}
if (value13) {
reduciblePort83: while (true) {
exceptionLanding82: while (true) {
value = environment.__proto__.__proto__;
REQUIRE_SAFETY_FLOWS = env2_5.REQUIRE_SAFETY_FLOWS;
if (r7 !== REQUIRE_SAFETY_FLOWS) {
break reduciblePort83;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding6 = env2_2;
binding2 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding6[3];
property = binding2[4];
} catch (error) {
break exceptionLanding82;
}
try {
value15 = binding(property);
value5 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SafetyFlowScreens = value15.SafetyFlowScreens;
getCurrentTask = value5.getCurrentTask;
} catch (error) {
break exceptionLanding82;
}
try {
OVERVIEW = SafetyFlowScreens.OVERVIEW;
value6 = Reflect.apply(getCurrentTask, value5, []);
} catch (error) {
break exceptionLanding82;
}
await value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
break exceptionLanding82;
}
if (value8) {
return value7;
}
try {
value9 = value7 == null;
} catch (error) {
break exceptionLanding82;
}
if (value9) {
return undefined;
}
try {
task_type = value7.task_type;
} catch (error) {
break exceptionLanding82;
}
r6 = OVERVIEW;
} else {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding5 = env2_2;
binding3 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding5[3];
property = binding3[3];
} catch (error) {
break exceptionLanding82;
}
try {
value14 = binding(property);
value10 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SafetyFlowScreens = value14.SafetyFlowScreens;
TaskType = value10.TaskType;
} catch (error) {
break exceptionLanding82;
}
try {
UPDATE_APP = SafetyFlowScreens.UPDATE_APP;
AGE_VERIFICATION = TaskType.AGE_VERIFICATION;
} catch (error) {
break exceptionLanding82;
}
r6 = UPDATE_APP;
try {
value11 = task_type === AGE_VERIFICATION;
} catch (error) {
break exceptionLanding82;
}
if (value11) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding7 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding7[3];
} catch (error) {
break exceptionLanding82;
}
try {
value16 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SafetyFlowScreens = value16.SafetyFlowScreens;
} catch (error) {
break exceptionLanding82;
}
try {
AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION;
} catch (error) {
break exceptionLanding82;
}
r6 = AGE_VERIFICATION;
} else {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding4[3];
} catch (error) {
break exceptionLanding82;
}
try {
value12 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
TASK_TYPE_TO_SCREENS = value12.TASK_TYPE_TO_SCREENS;
} catch (error) {
break exceptionLanding82;
}
try {
task_type = value7.task_type;
} catch (error) {
break exceptionLanding82;
}
try {
property = TASK_TYPE_TO_SCREENS[task_type];
} catch (error) {
break exceptionLanding82;
}
try {
value13 = property != null;
} catch (error) {
break exceptionLanding82;
}
if (value13) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding6 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding6[3];
} catch (error) {
break exceptionLanding82;
}
try {
value15 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SafetyFlowScreens = value15.SafetyFlowScreens;
} catch (error) {
break exceptionLanding82;
}
try {
OVERVIEW = SafetyFlowScreens.OVERVIEW;
} catch (error) {
break exceptionLanding82;
}
r6 = OVERVIEW;
} else {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
binding5 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding5[3];
} catch (error) {
break exceptionLanding82;
}
try {
value14 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SafetyFlowScreens = value14.SafetyFlowScreens;
} catch (error) {
break exceptionLanding82;
}
try {
UPDATE_APP = SafetyFlowScreens.UPDATE_APP;
} catch (error) {
break exceptionLanding82;
}
r6 = UPDATE_APP;
}
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding82;
}
try {
binding8 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[5];
} catch (error) {
break exceptionLanding82;
}
try {
value17 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
pushLazy = value17.pushLazy;
} catch (error) {
break exceptionLanding82;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[7];
} catch (error) {
break exceptionLanding82;
}
try {
value18 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[6];
} catch (error) {
break exceptionLanding82;
}
try {
paths = binding8.paths;
} catch (error) {
break exceptionLanding82;
}
try {
value19 = value18(property, paths);
} catch (error) {
break exceptionLanding82;
}
try {
object = {};
} catch (error) {
break exceptionLanding82;
}
try {
object.task = value7;
} catch (error) {
break exceptionLanding82;
}
try {
object.initialScreen = r6;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[8];
} catch (error) {
break exceptionLanding82;
}
try {
value20 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SAFETY_FLOWS_MODAL_KEY = value20.SAFETY_FLOWS_MODAL_KEY;
} catch (error) {
break exceptionLanding82;
}
try {
Reflect.apply(pushLazy, value17, [value19, object, SAFETY_FLOWS_MODAL_KEY]);
} catch (error) {
break exceptionLanding82;
}
break reduciblePort83;
}
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding82;
}
try {
binding8 = env2_2;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[5];
} catch (error) {
break exceptionLanding82;
}
try {
value17 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
pushLazy = value17.pushLazy;
} catch (error) {
break exceptionLanding82;
}
try {
binding9 = env2_2;
value21 = binding(binding9[5]);
pushLazy = value21.pushLazy;
binding = env2_0;
} catch (error) {
break exceptionLanding82;
value = binding(binding9[7]);
property = binding9[6];
paths = binding9.paths;
value = value(property, paths);
object = {task: null};
SafetyFlowScreens = binding(binding9[3]).SafetyFlowScreens;
ERROR = SafetyFlowScreens.ERROR;
object.initialScreen = ERROR;
SAFETY_FLOWS_MODAL_KEY = binding(binding9[8]).SAFETY_FLOWS_MODAL_KEY;
Reflect.apply(pushLazy, value21, [value, object, SAFETY_FLOWS_MODAL_KEY]);
break reduciblePort83;
}
try {
property = binding8[7];
} catch (error) {
break exceptionLanding82;
}
try {
value18 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[6];
} catch (error) {
break exceptionLanding82;
}
try {
paths = binding8.paths;
} catch (error) {
break exceptionLanding82;
}
try {
value19 = value18(property, paths);
} catch (error) {
break exceptionLanding82;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding82;
}
try {
object2.task = value7;
} catch (error) {
break exceptionLanding82;
}
try {
object2.initialScreen = r6;
} catch (error) {
break exceptionLanding82;
}
try {
property = binding8[8];
} catch (error) {
break exceptionLanding82;
}
try {
value20 = binding(property);
} catch (error) {
break exceptionLanding82;
}
try {
SAFETY_FLOWS_MODAL_KEY = value20.SAFETY_FLOWS_MODAL_KEY;
} catch (error) {
break exceptionLanding82;
}
try {
Reflect.apply(pushLazy, value17, [value19, object2, SAFETY_FLOWS_MODAL_KEY]);
} catch (error) {
break exceptionLanding82;
}
break reduciblePort83;
}
binding = env2_1;
binding9 = env2_2;
value21 = binding(binding9[5]);
pushLazy = value21.pushLazy;
binding = env2_0;
value = binding(binding9[7]);
property = binding9[6];
paths = binding9.paths;
value = value(property, paths);
object2 = {task: null};
SafetyFlowScreens = binding(binding9[3]).SafetyFlowScreens;
ERROR = SafetyFlowScreens.ERROR;
object2.initialScreen = ERROR;
SAFETY_FLOWS_MODAL_KEY = binding(binding9[8]).SAFETY_FLOWS_MODAL_KEY;
Reflect.apply(pushLazy, value21, [value, object2, SAFETY_FLOWS_MODAL_KEY]);
break reduciblePort83;
}
}
}
global.__d(_fun125191, 16198, [5, 1373, 661, 16199, 16200, 5080, 16201, 1962, 16205,
2]) /* metro module 16198, dependencies: [5, 1373, 661, 16199, 16200, 5080, 16201, 1962, 16205, 2] */;
+33 -30
View File
@@ -1,43 +1,46 @@
/* Metro module 16199; source: modules/safety_flows/types.tsx; dependencies: [1244, 2486, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun125196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16407:6, offset: 0x025d0eec, size: 485 bytes, params: 8, frame: 27
var object6;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object6 = {REFRESH_APP: -1};
object6[-1] = 'REFRESH_APP';
object6.EMAIL_VERIFICATION = 3;
object6[3] = 'EMAIL_VERIFICATION';
object6.AGE_VERIFICATION = 9;
object6[9] = 'AGE_VERIFICATION';
const object7 = {'EMAIL_VERIFICATION': 'email_verification', 'PHONE_VERIFICATION': 'phone_verification',
object = {REFRESH_APP: -1};
object[-1] = 'REFRESH_APP';
object.EMAIL_VERIFICATION = 3;
object[3] = 'EMAIL_VERIFICATION';
object.AGE_VERIFICATION = 9;
object[9] = 'AGE_VERIFICATION';
const object2 = {'EMAIL_VERIFICATION': 'email_verification', 'PHONE_VERIFICATION': 'phone_verification',
'GENERIC_CALL_TO_ACTION': 'generic_call_to_action', 'REFRESH_APP': 'refresh_app',
'AGE_VERIFICATION': 'age_verification'};
const Set = global.Set;
Object = global.Object;
const set = new Set(Object.values(object7));
const object8 = {OVERVIEW: 'OVERVIEW', ENTER_EMAIL: 'ENTER_EMAIL', VERIFY_EMAIL: 'VERIFY_EMAIL',
const set = new Set(Object.values(object2));
const object3 = {OVERVIEW: 'OVERVIEW', ENTER_EMAIL: 'ENTER_EMAIL', VERIFY_EMAIL: 'VERIFY_EMAIL',
UPDATE_APP: 'UPDATE_APP', AGE_VERIFICATION: 'AGE_VERIFICATION', ERROR: 'ERROR'};
const object9 = {};
let EMAIL_VERIFICATION = object6.EMAIL_VERIFICATION;
const ENTER_EMAIL = object8.ENTER_EMAIL;
const VERIFY_EMAIL = object8.VERIFY_EMAIL;
object9[EMAIL_VERIFICATION] = [ENTER_EMAIL, VERIFY_EMAIL];
let AGE_VERIFICATION = object6.AGE_VERIFICATION;
const AGE_VERIFICATION2 = object8.AGE_VERIFICATION;
object9[AGE_VERIFICATION] = [AGE_VERIFICATION2];
const object10 = {};
EMAIL_VERIFICATION = object6.EMAIL_VERIFICATION;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object10[EMAIL_VERIFICATION] = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['Qm6K/s']);
AGE_VERIFICATION = object6.AGE_VERIFICATION;
object10[AGE_VERIFICATION] = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['dSkE/A']);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/types.tsx');
exports.TaskType = object6;
exports.SafetyFlowComponentType = object7;
const object4 = {};
let EMAIL_VERIFICATION = object.EMAIL_VERIFICATION;
const ENTER_EMAIL = object3.ENTER_EMAIL;
const VERIFY_EMAIL = object3.VERIFY_EMAIL;
object4[EMAIL_VERIFICATION] = [ENTER_EMAIL, VERIFY_EMAIL];
let AGE_VERIFICATION = object.AGE_VERIFICATION;
const AGE_VERIFICATION2 = object3.AGE_VERIFICATION;
object4[AGE_VERIFICATION] = [AGE_VERIFICATION2];
const object5 = {};
EMAIL_VERIFICATION = object.EMAIL_VERIFICATION;
const intl = (IndexNativeModule).intl;
object5[EMAIL_VERIFICATION] = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['Qm6K/s']);
AGE_VERIFICATION = object.AGE_VERIFICATION;
object5[AGE_VERIFICATION] = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['dSkE/A']);
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/types.tsx');
exports.TaskType = object;
exports.SafetyFlowComponentType = object2;
exports.SUPPORTED_SAFETY_FLOW_COMPONENT_TYPES = set;
exports.SafetyFlowScreens = object8;
exports.TASK_TYPE_TO_SCREENS = object9;
exports.TASK_TYPE_TO_TITLE = object10;
exports.SafetyFlowScreens = object3;
exports.TASK_TYPE_TO_SCREENS = object4;
exports.TASK_TYPE_TO_TITLE = object5;
exports.TaskInputType = {Empty: 'empty', VerificationCode: 'verification_code'};
}
global.__d(_fun125196, 16199, [1244, 2486, 2]) /* metro module 16199, dependencies: [1244, 2486, 2] */;