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

+4 -1
View File
@@ -1,9 +1,12 @@
/* Metro module 9488; source: modules/captcha/CaptchaConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun74076(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9674:6, offset: 0x01d7fc5a, size: 96 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/CaptchaConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/CaptchaConstants.tsx');
exports.CAPTCHA_SERVE_VOLUME_DISTRIBUTION_AGGREGATION_WINDOW_MS = 30000;
exports.CAPTCHA_MODAL_KEY = 'Captcha';
}
global.__d(_fun74076, 9488, [2]) /* metro module 9488, dependencies: [2] */;
+97 -91
View File
@@ -1,112 +1,118 @@
/* Metro module 9487; source: modules/captcha/CaptchaStore.tsx; dependencies: [57, 629, 690, 4826, 4831, 2] */
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 Module00629Module from '../../by-id/module-00629.js'; /* Metro dependency 629 */
import * as ReactBatchUpdatesNativeModule from '../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
function _fun74068(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:6, offset: 0x01d7f98d, size: 185 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 */;
let value = require(629) /* metro dependency 629 */;
let value = Module00629Module;
value = value.create(function() {
return {captchaServeVolume: {}};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/CaptchaStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/CaptchaStore.tsx');
exports.useCaptchaStore = value;
exports.isCaptchaStoreVolumeEmpty = isCaptchaStoreVolumeEmpty;
exports.incrementCaptchaServeVolume = incrementCaptchaServeVolume;
exports.flushCaptchaServeVolume = flushCaptchaServeVolume;
}
function isCaptchaStoreVolumeEmpty() { // fn#74070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:270, offset: 0x01d7fa51, size: 54 bytes, params: 1, frame: 12
const Object = global.Object;
const keys = Object.keys;
const binding = env0_4;
const getState = binding.getState;
return Reflect.apply(keys, Object, [Reflect.apply(getState, binding, []).captchaServeVolume]).length === 0;
}
function isCaptchaStoreVolumeEmpty() { // fn#74070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:270, offset: 0x01d7fa51, size: 54 bytes, params: 1, frame: 12
const Object = global.Object;
const keys = Object.keys;
const binding = env0_4;
const getState = binding.getState;
return Reflect.apply(keys, Object, [Reflect.apply(getState, binding, []).captchaServeVolume]).length === 0;
}
function incrementCaptchaServeVolume(a0) { // fn#74071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:401, offset: 0x01d7fa87, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun74072);
function _fun74072() { // fn#74072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:463, offset: 0x01d7fabd, size: 31 bytes, params: 1, frame: 11
env1_4.setState(_fun74073);
function _fun74073(a0) { // fn#74073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:480, offset: 0x01d7fadc, size: 107 bytes, params: 2, frame: 17
var r0;
var binding;
var captchaServeVolume;
var value3;
var object;
var object2;
const value = a0;
if (env1_0 == null) {
r0 = value;
} else {
binding = env1_0;
captchaServeVolume = value.captchaServeVolume;
value3 = binding in captchaServeVolume;
object = {};
object2 = {};
captchaServeVolume = value.captchaServeVolume;
copyDataProperties(object2, captchaServeVolume, undefined);
binding = env1_0;
if (value3) {
object2[binding] = value.captchaServeVolume[binding] + 1;
object.captchaServeVolume = object2;
r0 = object;
} else {
object2[binding] = 1;
object.captchaServeVolume = object2;
r0 = object;
}
}
return r0;
}
function incrementCaptchaServeVolume(a0) { // fn#74071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:401, offset: 0x01d7fa87, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun74072);
}
}
function flushCaptchaServeVolume() { // fn#74074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:681, offset: 0x01d7fb47, size: 246 bytes, params: 1, frame: 29
var r4;
var property;
var value4;
var property2;
var defaultImport;
var distribution;
var MetricEvents;
var CAPTCHA_SERVE_VOLUME_DISTRIBUTION;
var value5;
var value6;
const Object = global.Object;
const entries = Object.entries;
const binding = env0_4;
const getState = binding.getState;
const value2 = Reflect.apply(entries, Object, [Reflect.apply(getState, binding, []).captchaServeVolume]);
let length = value2.length;
const value3 = 0;
if (value3 < length) {
for (r4 = value3; true; r4 = value6) {
property = value2[r4];
value4 = env0_3(property, 2);
property = value4[value3];
property2 = value4[1];
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
distribution = defaultImport.distribution;
MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
CAPTCHA_SERVE_VOLUME_DISTRIBUTION = MetricEvents.CAPTCHA_SERVE_VOLUME_DISTRIBUTION;
value5 = 'user_flow:' + property;
Reflect.apply(distribution, defaultImport, [{name: CAPTCHA_SERVE_VOLUME_DISTRIBUTION, tags: [value5]},
property2,
true]);
value6 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value2.length;
if (!(value6 < length)) {
break;
}
function flushCaptchaServeVolume() { // fn#74074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:681, offset: 0x01d7fb47, size: 246 bytes, params: 1, frame: 29
var r4;
var property;
var value4;
var property2;
var defaultImport;
var distribution;
var MetricEvents;
var CAPTCHA_SERVE_VOLUME_DISTRIBUTION;
var value5;
var value6;
const Object = global.Object;
const entries = Object.entries;
const binding = env0_4;
const getState = binding.getState;
const value2 = Reflect.apply(entries, Object, [Reflect.apply(getState, binding, []).captchaServeVolume]);
let length = value2.length;
const value3 = 0;
if (value3 < length) {
for (r4 = value3; true; r4 = value6) {
property = value2[r4];
value4 = Module00057(property, 2);
property = value4[value3];
property2 = value4[1];
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
distribution = defaultImport.distribution;
MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
CAPTCHA_SERVE_VOLUME_DISTRIBUTION = MetricEvents.CAPTCHA_SERVE_VOLUME_DISTRIBUTION;
value5 = 'user_flow:' + property;
Reflect.apply(distribution, defaultImport, [{name: CAPTCHA_SERVE_VOLUME_DISTRIBUTION, tags: [value5]},
property2,
true]);
value6 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value2.length;
if (!(value6 < length)) {
break;
}
}
}
}
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun74075);
}
function _fun74072() { // fn#74072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:463, offset: 0x01d7fabd, size: 31 bytes, params: 1, frame: 11
env1_4.setState(_fun74073);
}
function _fun74075() { // fn#74075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:963, offset: 0x01d7fc3d, size: 29 bytes, params: 1, frame: 12
return env1_4.setState({captchaServeVolume: {}});
}
function _fun74073(a0) { // fn#74073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:480, offset: 0x01d7fadc, size: 107 bytes, params: 2, frame: 17
var r0;
var binding;
var captchaServeVolume;
var value3;
var object3;
var object4;
const value = a0;
if (env1_0 == null) {
r0 = value;
} else {
binding = env1_0;
captchaServeVolume = value.captchaServeVolume;
value3 = binding in captchaServeVolume;
object3 = {};
object4 = {};
captchaServeVolume = value.captchaServeVolume;
copyDataProperties(object4, captchaServeVolume, undefined);
binding = env1_0;
if (value3) {
object4[binding] = value.captchaServeVolume[binding] + 1;
object3.captchaServeVolume = object4;
r0 = object3;
} else {
object4[binding] = 1;
object3.captchaServeVolume = object4;
r0 = object3;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun74075);
function _fun74075() { // fn#74075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9673:963, offset: 0x01d7fc3d, size: 29 bytes, params: 1, frame: 12
return env1_4.setState({captchaServeVolume: {}});
}
}
return r0;
}
global.__d(_fun74068, 9487, [57, 629, 690, 4826, 4831,
2]) /* metro module 9487, dependencies: [57, 629, 690, 4826, 4831, 2] */;
+83 -75
View File
@@ -1,12 +1,14 @@
/* Metro module 15635; source: modules/captcha/CaptchaUtils.native.tsx; dependencies: [3849, 9488, 566, 4080, 15636, 1962, 9486, 2] */
import ActionSheetStore from '../action_sheet/native/ActionSheetStore.tsx'; /* Metro dependency 3849 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CaptchaConstantsModule from './CaptchaConstants.tsx'; /* Metro dependency 9488 */
function _fun119724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:6, offset: 0x02517230, size: 173 bytes, params: 8, frame: 19
var object2;
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const actionSheetStore = importDefault(3849) /* metro dependency 3849: ActionSheetStore */;
let env0_4 = (require(9488) /* metro dependency 9488: CaptchaConstants */).CAPTCHA_MODAL_KEY;
object2 = {showCaptcha: showCaptcha, showCaptchaAsync: function(a0) {
let env0_4 = (CaptchaConstantsModule).CAPTCHA_MODAL_KEY;
object = {showCaptcha: showCaptcha, showCaptchaAsync: function(a0) {
var value = a1;
var env0_0 = value !== undefined ? value : {};
var env0_1 = undefined;
@@ -24,77 +26,83 @@ function _fun119724(global, require, importDefault, importAll, module, exports,
}, useIsCaptchaModalOpen: function() {
return require(dependencyMap[2]).useStateFromStores([ActionSheetStore], _fun119734);
}};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/CaptchaUtils.native.tsx');
exports.default = object2;
}
function showCaptcha({sitekey, captchaService, options}, a1) { // fn#119725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:153, offset: 0x025172dd, size: 172 bytes, params: 3, frame: 22
const value = a2;
const env0_0 = a1;
const r7 = value !== undefined ? value : {};
const defaultImport = importDefault(dependencyMap[3]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths);
const object2 = {sitekey: sitekey, captchaService: captchaService, onCaptchaVerify: function(a0, a1) {
return require({captcha_key: a0, captcha_rqtoken: a1});
}, close: function() {
return importDefault(dependencyMap[3]).hideActionSheet(CAPTCHA_MODAL_KEY);
}};
copyDataProperties(object2, r7, undefined);
copyDataProperties(object2, options, undefined);
Reflect.apply(openLazy, defaultImport, [value2, CAPTCHA_MODAL_KEY, object2]);
}
function showCaptchaAsync({sitekey, captchaService, captchaSessionId, options}) { // fn#119728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:409, offset: 0x025173d5, size: 112 bytes, params: 2, frame: 13
let value = a1;
const env0_0 = value !== undefined ? value : {};
const Promise = global.Promise;
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun119729);
return promise instanceof Object ? promise : value;
}
function useIsCaptchaModalOpen() { // fn#119733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:890, offset: 0x0251760a, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ActionSheetStore], function() {
return ActionSheetStore.getKey() === CAPTCHA_MODAL_KEY;
});
}
function _fun119729(a0, a1) { // fn#119729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:508, offset: 0x02517445, size: 188 bytes, params: 3, frame: 20
const env0_0 = a0;
const env0_1 = a1;
const defaultImport = importDefault(dependencyMap[3]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths);
const object2 = {};
object2.sitekey = sitekey;
object2.captchaService = captchaService;
object2.onCaptchaVerify = onCaptchaVerify_119730;
object2.onReject = onReject_119731;
object2.close = function() {
return importDefault(dependencyMap[3]).hideActionSheet(CAPTCHA_MODAL_KEY);
};
copyDataProperties(object2, env0_0, undefined);
copyDataProperties(object2, options, undefined);
Reflect.apply(openLazy, defaultImport, [value2, CAPTCHA_MODAL_KEY, object2, 'stack']);
}
function onCaptchaVerify_119730(a0, a1) { // fn#119730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:601, offset: 0x02517501, size: 46 bytes, params: 3, frame: 11
return env0_0({captcha_key: a0, captcha_rqtoken: a1, captcha_session_id: captchaSessionId});
}
function onReject_119731(a0) { // fn#119731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:675, offset: 0x0251752f, size: 177 bytes, params: 2, frame: 18
var Error;
let value = environment.__proto__.__proto__;
const CaptchaError = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError;
const CANCEL = CaptchaError.CANCEL;
if (a0 === CANCEL) {
require(new (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaCancelError());
} else {
Error = global.Error;
value = environment.__proto__;
value = 'Failed to display captcha for service ' + captchaService + '.';
require(new Error(value));
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/CaptchaUtils.native.tsx');
exports.default = object;
function showCaptcha({sitekey, captchaService, options}, a1) { // fn#119725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:153, offset: 0x025172dd, size: 172 bytes, params: 3, frame: 22
const value = a2;
const env0_0 = a1;
const r7 = value !== undefined ? value : {};
const defaultImport = importDefault(dependencyMap[3]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths);
const object = {sitekey: sitekey, captchaService: captchaService, onCaptchaVerify: function(a0, a1) {
return require({captcha_key: a0, captcha_rqtoken: a1});
}, close: function() {
return importDefault(dependencyMap[3]).hideActionSheet(CAPTCHA_MODAL_KEY);
}};
copyDataProperties(object, r7, undefined);
copyDataProperties(object, options, undefined);
Reflect.apply(openLazy, defaultImport, [value2, CAPTCHA_MODAL_KEY, object]);
}
function showCaptchaAsync({sitekey, captchaService, captchaSessionId, options}) { // fn#119728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:409, offset: 0x025173d5, size: 112 bytes, params: 2, frame: 13
let value = a1;
const env0_0 = value !== undefined ? value : {};
const Promise = global.Promise;
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun119729);
return promise instanceof Object ? promise : value;
function _fun119729(a0, a1) { // fn#119729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:508, offset: 0x02517445, size: 188 bytes, params: 3, frame: 20
const env0_0 = a0;
const env0_1 = a1;
const defaultImport = importDefault(dependencyMap[3]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths);
const object = {};
object.sitekey = sitekey;
object.captchaService = captchaService;
object.onCaptchaVerify = onCaptchaVerify_119730;
object.onReject = onReject_119731;
object.close = function() {
return importDefault(dependencyMap[3]).hideActionSheet(CAPTCHA_MODAL_KEY);
};
copyDataProperties(object, env0_0, undefined);
copyDataProperties(object, options, undefined);
Reflect.apply(openLazy, defaultImport, [value2, CAPTCHA_MODAL_KEY, object, 'stack']);
function onCaptchaVerify_119730(a0, a1) { // fn#119730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:601, offset: 0x02517501, size: 46 bytes, params: 3, frame: 11
return env0_0({captcha_key: a0, captcha_rqtoken: a1, captcha_session_id: captchaSessionId});
}
function onReject_119731(a0) { // fn#119731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:675, offset: 0x0251752f, size: 177 bytes, params: 2, frame: 18
var Error;
let value = environment.__proto__.__proto__;
const CaptchaError = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError;
const CANCEL = CaptchaError.CANCEL;
if (a0 === CANCEL) {
require(new (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaCancelError());
} else {
Error = global.Error;
value = environment.__proto__;
value = 'Failed to display captcha for service ' + captchaService + '.';
require(new Error(value));
}
}
}
}
function useIsCaptchaModalOpen() { // fn#119733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:890, offset: 0x0251760a, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ActionSheetStore], function() {
return ActionSheetStore.getKey() === CAPTCHA_MODAL_KEY;
});
function _fun119734() { // fn#119734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15843:962, offset: 0x02517645, size: 27 bytes, params: 1, frame: 10
return ActionSheetStore.getKey() === CAPTCHA_MODAL_KEY;
}
}
}
global.__d(_fun119724, 15635, [3849, 9488, 566, 4080, 15636, 1962, 9486,
2]) /* metro module 15635, dependencies: [3849, 9488, 566, 4080, 15636, 1962, 9486, 2] */;
+66 -60
View File
@@ -1,22 +1,22 @@
/* Metro module 9486; source: modules/captcha/SharedCaptchaUtils.tsx; dependencies: [7, 6, 15, 17, 18, 162, 9487, 9488, 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 Module00162 from '../../by-id/module-00162.js'; /* Metro dependency 162 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CaptchaStoreModule from './CaptchaStore.tsx'; /* Metro dependency 9487 */
import * as CaptchaConstantsModule from './CaptchaConstants.tsx'; /* Metro dependency 9488 */
function _fun74059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:6, offset: 0x01d7f684, size: 339 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(7) /* metro dependency 7 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(162) /* metro dependency 162 */;
const captchaStoreModule = require(9487) /* metro dependency 9487: CaptchaStore */;
const env0_5 = captchaStoreModule.incrementCaptchaServeVolume;
const env0_6 = captchaStoreModule.flushCaptchaServeVolume;
const env0_7 = captchaStoreModule.isCaptchaStoreVolumeEmpty;
const env0_8 = (require(9488) /* metro dependency 9488: CaptchaConstants */).CAPTCHA_SERVE_VOLUME_DISTRIBUTION_AGGREGATION_WINDOW_MS;
let value = Module00162;
const Error = global.Error;
value = value(Error);
value = _fun74063(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/SharedCaptchaUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/SharedCaptchaUtils.tsx');
exports.CaptchaError = {CANCEL: 'cancel', ERROR: 'error', EXPIRED: 'expired'};
exports.extractCaptchaPropsFromResponse = function(a0) {
var should_serve_invisible = a0.should_serve_invisible;
@@ -32,59 +32,65 @@ function _fun74059(global, require, importDefault, importAll, module, exports, d
incrementCaptchaServeVolume(a0);
};
exports.CaptchaCancelError = value;
}
function _isNativeReflectConstruct_74060() { // fn#74060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:324, offset: 0x01d7f7d7, 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_74060() { // fn#74060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:324, offset: 0x01d7f7d7, 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_74060_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_74060_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun74063(a0) { // fn#74063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:609, offset: 0x01d7f839, size: 42 bytes, params: 2, frame: 14
const closure = CaptchaCancelError;
env0_4(closure, a0);
return env0_0(closure);
}
function _fun74063(a0) { // fn#74063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:609, offset: 0x01d7f839, size: 42 bytes, params: 2, frame: 14
const CaptchaCancelError2 = CaptchaCancelError;
Inherits(CaptchaCancelError2, a0);
return CreateClass(CaptchaCancelError2);
function CaptchaCancelError() { // fn#74064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:621, offset: 0x01d7f863, size: 114 bytes, params: 1, frame: 19
const value = environment.__proto__;
env1_1(this, CaptchaCancelError);
const items2 = ['Captcha cancelled'];
const value3 = env1_3(CaptchaCancelError);
return env1_2(this, _isNativeReflectConstruct_74060() ? global.Reflect.construct(value3, items2,
env1_3(this).constructor) : value3.apply(this, items2));
}
function emitCaptchaDistributionMetric(a0) { // fn#74066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:1376, offset: 0x01d7f945, size: 57 bytes, params: 2, frame: 14
if (isCaptchaStoreVolumeEmpty()) {
global.setTimeout(function() {
}
function emitCaptchaDistributionMetric(a0) { // fn#74066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:1376, offset: 0x01d7f945, size: 57 bytes, params: 2, frame: 14
if (isCaptchaStoreVolumeEmpty()) {
global.setTimeout(function() {
return flushCaptchaServeVolume();
}, CAPTCHA_SERVE_VOLUME_DISTRIBUTION_AGGREGATION_WINDOW_MS);
}
incrementCaptchaServeVolume(a0);
function _fun74067() { // fn#74067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:1435, offset: 0x01d7f97e, size: 15 bytes, params: 1, frame: 9
return flushCaptchaServeVolume();
}, CAPTCHA_SERVE_VOLUME_DISTRIBUTION_AGGREGATION_WINDOW_MS);
}
}
incrementCaptchaServeVolume(a0);
}
function CaptchaCancelError() { // fn#74064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9672:621, offset: 0x01d7f863, size: 114 bytes, params: 1, frame: 19
const value = environment.__proto__;
env1_1(this, CaptchaCancelError);
const items2 = ['Captcha cancelled'];
const value3 = env1_3(CaptchaCancelError);
return env1_2(this, _isNativeReflectConstruct_74060() ? global.Reflect.construct(value3, items2,
env1_3(this).constructor) : value3.apply(this, items2));
}
global.__d(_fun74059, 9486, [7, 6, 15, 17, 18, 162, 9487, 9488,
2]) /* metro module 9486, dependencies: [7, 6, 15, 17, 18, 162, 9487, 9488, 2] */;
+117 -81
View File
@@ -1,13 +1,26 @@
/* Metro module 15636; source: modules/captcha/native/CaptchaModal.tsx; dependencies: [31, 27, 14304, 14305, 33, 4501, 8973, 1536, 15637, 6275, 4572, 5473, 4573, 1244, 4578, 9486, 15638, 14312, 2] */
import Module01536 from '../../../by-id/module-01536.js'; /* Metro dependency 1536 */
import UseWideAuthView from '../../auth/native/useWideAuthView.tsx'; /* Metro dependency 8973 */
import UseCaptchaModalEffects from '../useCaptchaModalEffects.tsx'; /* Metro dependency 15637 */
import CaptchaUtils from '../../../utils/native/CaptchaUtils.tsx'; /* Metro dependency 15638 */
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 StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as SharedCaptchaUtilsModule from '../SharedCaptchaUtils.tsx'; /* Metro dependency 9486 */
import * as RegistrationUIStoreModule from '../../auth/native/RegistrationUIStore.tsx'; /* Metro dependency 14304 */
function _fun119735(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:6, offset: 0x02517660, size: 269 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.Keyboard;
const env0_5 = value.View;
const env0_6 = (require(14304) /* metro dependency 14304: RegistrationUIStore */).doesRegistrationHaveIdentityType;
value = require(14305) /* metro dependency 14305: RegistrationConstants */;
const env0_7 = value.RegisterTransitionSteps;
const env0_8 = value.RegistrationTransitionActionTypes;
@@ -18,89 +31,112 @@ function _fun119735(global, require, importDefault, importAll, module, exports,
return {contentContainer: {'alignItems': 'center', 'paddingVertical': 8, paddingHorizontal: a0 ? 32 : 8},
description: {'paddingBottom': 12, 'paddingTop': 4}};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/native/CaptchaModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/native/CaptchaModal.tsx');
exports.default = CaptchaModal;
}
function CaptchaModal({onCaptchaVerify, onReject, close, sitekey, captchaService, headerText, bodyText, rqdata, rqtoken, userflow}) { // fn#119737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:527, offset: 0x025177a6, size: 756 bytes, params: 2, frame: 34
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles((UseWideAuthView)());
const value3 = (Module01536)();
const binding = sitekey;
const useMemo = binding.useMemo;
const env0_9 = (UseCaptchaModalEffects)({onReject: onReject,
analyticsType: Reflect.apply(useMemo, binding, [_fun119738, [value3]])});
binding.useEffect(function() {
Keyboard.dismiss();
}, []);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const Stack = (StackNativeModule).Stack;
const DisguiseSpotIllustration = (NativeModule).DisguiseSpotIllustration;
const items2 = [
<DisguiseSpotIllustration scale={0.5} />,
];
const Text = (TextModule).Text;
items2[1] = (
<View>
<Text variant="heading-xl/bold" accessibilityRole="header">
{headerText ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.FpoiHe)}
</Text>
<Text
variant="text-md/medium"
color="text-subtle"
style={styles.description}
>
{bodyText ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/CidxO'])}
</Text>
</View>
);
const Button = (ButtonNativeModule).Button;
items2[2] = (
<Button
grow
onPress={onPress_119740}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['cY+Oob'])}
/>
);
return (
<BottomSheet startHeight={900} startExpanded>
<Stack style={styles.contentContainer} spacing={12}>
{items2}
</Stack>
</BottomSheet>
);
function _fun119738() { // fn#119738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:718, offset: 0x02517a9a, size: 89 bytes, params: 1, frame: 12
const binding = env0_8;
const getState = binding.getState;
const name = Reflect.apply(getState, binding, []).routes[0]?.name;
const value2 = 'Guild Join Captcha';
return name !== 'auth' ? value2 : doesRegistrationHaveIdentityType() ? 'User Registration Captcha' : value2;
}
function CaptchaModal({onCaptchaVerify, onReject, close, sitekey, captchaService, headerText, bodyText, rqdata, rqtoken, userflow}) { // fn#119737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:527, offset: 0x025177a6, size: 756 bytes, params: 2, frame: 34
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles((importDefault(8973) /* metro dependency 8973: useWideAuthView */)());
const value3 = (importDefault(1536) /* metro dependency 1536 */)();
const binding = sitekey;
const useMemo = binding.useMemo;
const env0_9 = (importDefault(15637) /* metro dependency 15637: useCaptchaModalEffects */)({onReject: onReject,
analyticsType: Reflect.apply(useMemo, binding, [_fun119738, [value3]])});
binding.useEffect(function() {
Keyboard.dismiss();
}, []);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const DisguiseSpotIllustration = (require(5473) /* metro dependency 5473: native */).DisguiseSpotIllustration;
const items2 = [<DisguiseSpotIllustration scale={0.5} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <View><Text variant="heading-xl/bold" accessibilityRole="header">{headerText ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.FpoiHe)}</Text><Text variant="text-md/medium" color="text-subtle" style={styles.description}>{bodyText ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/CidxO'])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Button grow onPress={onPress_119740} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['cY+Oob'])} />;
return (
<BottomSheet startHeight={900} startExpanded>
<Stack style={styles.contentContainer} spacing={12}>
{items2}
</Stack>
</BottomSheet>
);
}
function CaptchaModalOnPress() { // fn#119740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:1444, owner: CaptchaModal.onPress, offset: 0x02517b08, size: 139 bytes, params: 1, frame: 18
env0_9();
close();
SharedCaptchaUtilsModule.emitCaptchaDistributionMetric(userflow);
const defaultImport = CaptchaUtils;
let value = defaultImport.showCaptcha(captchaService, sitekey, rqdata);
value = value.then(_fun119741);
value.catch(function(a0) {
if (onReject != null) {
onReject(a0);
}
});
function _fun119741(a0) { // fn#119741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:1533, offset: 0x02517b93, size: 266 bytes, params: 2, frame: 17
var r1;
var value5;
let value = environment.__proto__;
let binding = env1_8;
let getState = binding.getState;
if (Reflect.apply(getState, binding, []).routes[0].name === 'auth' && doesRegistrationHaveIdentityType()) {
value5 = environment.__proto__.__proto__;
(require(14312) /* metro dependency 14312: RegistrationUtils */).trackRegTransition({step: RegisterTransitionSteps.CAPTCHA,
actionType: RegistrationTransitionActionTypes.SUBMITTED});
}
onCaptchaVerify(a0, rqtoken);
binding = env1_8;
getState = binding.getState;
value = Reflect.apply(getState, binding, []).routes[0].name === 'auth';
if (value) {
value = environment.__proto__.__proto__;
value = doesRegistrationHaveIdentityType();
r1 = value;
} else {
r1 = value;
}
if (r1) {
value = environment.__proto__.__proto__;
(require(14312) /* metro dependency 14312: RegistrationUtils */).trackRegTransition({step: RegisterTransitionSteps.CAPTCHA,
actionType: RegistrationTransitionActionTypes.SUCCESS});
}
}
function _fun119738() { // fn#119738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:718, offset: 0x02517a9a, size: 89 bytes, params: 1, frame: 12
const binding = env0_8;
const getState = binding.getState;
const name = Reflect.apply(getState, binding, []).routes[0]?.name;
const value2 = 'Guild Join Captcha';
return name !== 'auth' ? value2 : doesRegistrationHaveIdentityType() ? 'User Registration Captcha' : value2;
}
function CaptchaModalOnPress() { // fn#119740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:1444, owner: CaptchaModal.onPress, offset: 0x02517b08, size: 139 bytes, params: 1, frame: 18
env0_9();
close();
const sharedCaptchaUtilsModule = require(9486) /* metro dependency 9486: SharedCaptchaUtils */;
sharedCaptchaUtilsModule.emitCaptchaDistributionMetric(userflow);
const defaultImport = importDefault(15638) /* metro dependency 15638: CaptchaUtils */;
let value = defaultImport.showCaptcha(captchaService, sitekey, rqdata);
value = value.then(_fun119741);
value.catch(function(a0) {
if (onReject != null) {
onReject(a0);
}
});
}
function _fun119741(a0) { // fn#119741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15844:1533, offset: 0x02517b93, size: 266 bytes, params: 2, frame: 17
var r1;
var value5;
let value = environment.__proto__;
let binding = env1_8;
let getState = binding.getState;
if (Reflect.apply(getState, binding, []).routes[0].name === 'auth' && doesRegistrationHaveIdentityType()) {
value5 = environment.__proto__.__proto__;
(require(14312) /* metro dependency 14312: RegistrationUtils */).trackRegTransition({step: RegisterTransitionSteps.CAPTCHA,
actionType: RegistrationTransitionActionTypes.SUBMITTED});
}
onCaptchaVerify(a0, rqtoken);
binding = env1_8;
getState = binding.getState;
value = Reflect.apply(getState, binding, []).routes[0].name === 'auth';
if (value) {
value = environment.__proto__.__proto__;
value = doesRegistrationHaveIdentityType();
r1 = value;
} else {
r1 = value;
}
if (r1) {
value = environment.__proto__.__proto__;
(require(14312) /* metro dependency 14312: RegistrationUtils */).trackRegTransition({step: RegisterTransitionSteps.CAPTCHA,
actionType: RegistrationTransitionActionTypes.SUCCESS});
}
}
global.__d(_fun119735, 15636, [31, 27, 14304, 14305, 33, 4501, 8973, 1536, 15637, 6275, 4572, 5473, 4573, 1244,
4578, 9486, 15638, 14312,
2]) /* metro module 15636, dependencies: [31, 27, 14304, 14305, 33, 4501, 8973, 1536, 15637, 6275, 4572, 5473, 4573, 1244, 4578, 9486, 15638, 14312, 2] */;
+137 -91
View File
@@ -1,112 +1,158 @@
/* Metro module 15640; source: modules/captcha/native/HcaptchaModal.tsx; dependencies: [29, 31, 27, 1949, 1878, 661, 33, 4501, 566, 1484, 1909, 1585, 1244, 9486, 4571, 4572, 697, 4573, 477, 15639, 5278, 4066, 2] */
import ObjectWithoutProperties from '../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import LocaleStore from '../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import UseBackPressHandler from '../../routing/native/useBackPressHandler.tsx'; /* Metro dependency 4571 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as XLargeIconModule from '../../../design/components/Icon/native/redesign/generated/XLargeIcon.tsx'; /* Metro dependency 4066 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
function _fun119773(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:6, offset: 0x02518d3f, size: 389 bytes, params: 8, frame: 21
const env0_0 = require;
const env0_3 = ['onMessage', 'onClose'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_6 = value.ActivityIndicator;
const env0_7 = value.View;
const env0_8 = value.StyleSheet;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const ModalAnimation = (require(661) /* metro dependency 661: Constants */).ModalAnimation;
const ModalAnimation = (ConstantsModule).ModalAnimation;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
const env0_13 = (CreateStylesModule).createStyles({container: {'flex': 1,
'justifyContent': 'center', 'alignItems': 'center'}, title: {textAlign: 'center'},
closeButtonContainer: {'position': 'absolute', 'top': 0, 'left': 0, 'zIndex': 2},
closeButtonHitArea: {'minWidth': 44, 'minHeight': 44, 'justifyContent': 'center', 'alignItems': 'center'}});
const closure = HcaptchaModal;
const HcaptchaModal2 = HcaptchaModal;
const FADE = ModalAnimation.FADE;
closure.modalConfig = {animation: FADE};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/native/HcaptchaModal.tsx');
exports.default = closure;
}
HcaptchaModal2.modalConfig = {animation: FADE};
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/native/HcaptchaModal.tsx');
exports.default = HcaptchaModal2;
function HcaptchaModal(a0) { // fn#119774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:559, offset: 0x02518ec4, size: 1011 bytes, params: 2, frame: 32
var r5;
var Stack;
var object2;
var value12;
var items4;
var moduleValue3;
const onMessage = a0.onMessage;
a0.onClose;
const value2 = undefined;
const value3 = ObjectWithoutProperties(a0, env0_3);
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value4 = (UseNavigationNativeModule).useNavigation();
const getState = value4.getState;
const routes = Reflect.apply(getState, value4, []).routes;
let r4 = routes.length > 0 && routes[0].name === 'auth';
r4 = !r4 ? (currentUser == null ? value2 : currentUser.ageVerificationStatus) === (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly.CLIENT_ONLY_PENDING : r4;
const value8 = (UseSafeAreaInsetsNative)();
const intl = (IndexNativeModule).intl;
let string = intl.string;
const value9 = Reflect.apply(string, intl, [(IndexNativeModule).t.wsoPhr]);
const value10 = ReactModule.useCallback(_fun119776, [onMessage]);
(UseBackPressHandler)(_fun119777);
if (r4) {
r5 = !r4;
} else {
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
object2 = {};
value12 = 16;
object2.spacing = importDefault(dependencyMap[value12]).space.PX_16;
object2.align = 'center';
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items4 = [
<Text
accessibilityRole="header"
variant="heading-lg/bold"
color="mobile-text-heading-primary"
style={styles.title}
>
{value9}
</Text>,
];
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
items4[1] = (
<ActivityIndicator
size="small"
color={moduleValue3.isAndroid() ? importDefault(dependencyMap[value12]).unsafe_rawColors.WHITE : value2}
/>
);
r5 = (
<Stack {...object2}>
{items4}
</Stack>
);
}
const items2 = [r5];
items2[1] = (
<View style={StyleSheet.absoluteFillObject}>
{((Component) => <Component {...value3} {...{['languageCode']: LocaleStore.locale}} {...{['onMessage']: onMessage}} />)(importDefault(15639) /* metro dependency 15639 */)}
</View>
);
const items3 = [styles.closeButtonContainer];
const object4 = {};
const top = value8.top;
const PX_8 = (Native).space.PX_8;
object4.paddingTop = top + PX_8;
const left = value8.left;
const PX_16 = (Native).space.PX_16;
object4.paddingLeft = left + PX_16;
items3[1] = object4;
const PressableOpacity = (PressablesModule).PressableOpacity;
string = intl.string;
const cpT0Cq = (IndexNativeModule).t.cpT0Cq;
const XLargeIcon = (XLargeIconModule).XLargeIcon;
const INTERACTIVE_ICON_DEFAULT = (Native).colors.INTERACTIVE_ICON_DEFAULT;
items2[2] = (
<View style={items3} pointerEvents="box-none">
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={Reflect.apply(string, intl, [cpT0Cq])}
onPress={value10}
style={styles.closeButtonHitArea}
>
<XLargeIcon color={INTERACTIVE_ICON_DEFAULT} />
</PressableOpacity>
</View>
);
return (
<View style={styles.container}>
{items2}
</View>
);
function _fun119776() { // fn#119776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:923, offset: 0x025192b7, size: 76 bytes, params: 1, frame: 14
var object2;
let onMessageBinding = onMessage;
if (onMessageBinding != null) {
onMessageBinding = onMessage;
object2 = {};
value = environment.__proto__;
object2.data = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError.CANCEL;
onMessageBinding({nativeEvent: object2});
}
}
function _fun119777() { // fn#119777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:1014, offset: 0x02519303, size: 17 bytes, params: 1, frame: 9
env0_1();
return true;
}
function HcaptchaModal(a0) { // fn#119774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:559, offset: 0x02518ec4, size: 1011 bytes, params: 2, frame: 32
var r5;
var Stack;
var object;
var value12;
var items4;
var moduleValue3;
const onMessage = a0.onMessage;
a0.onClose;
const binding = env0_4;
const value2 = undefined;
const value3 = binding(a0, env0_3);
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const getState = value4.getState;
const routes = Reflect.apply(getState, value4, []).routes;
let r4 = routes.length > 0 && routes[0].name === 'auth';
r4 = !r4 ? (currentUser == null ? value2 : currentUser.ageVerificationStatus) === (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly.CLIENT_ONLY_PENDING : r4;
const value8 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const value9 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.wsoPhr]);
const value10 = env0_5.useCallback(_fun119776, [onMessage]);
(importDefault(4571) /* metro dependency 4571: useBackPressHandler */)(_fun119777);
if (r4) {
r5 = !r4;
} else {
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
object = {};
value12 = 16;
object.spacing = importDefault(dependencyMap[value12]).space.PX_16;
object.align = 'center';
items4 = [((Text) => <Text accessibilityRole="header" variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.title}>{value9}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
items4[1] = <ActivityIndicator size="small" color={moduleValue3.isAndroid() ? importDefault(dependencyMap[value12]).unsafe_rawColors.WHITE : value2} />;
r5 = <Stack {...object}>{items4}</Stack>;
}
const items2 = [r5];
items2[1] = <View style={StyleSheet.absoluteFillObject}>{((Component) => <Component {...value3} {...{['languageCode']: LocaleStore.locale}} {...{['onMessage']: onMessage}} />)(importDefault(15639) /* metro dependency 15639 */)}</View>;
const items3 = [styles.closeButtonContainer];
const object3 = {};
const top = value8.top;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.paddingTop = top + PX_8;
const left = value8.left;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingLeft = left + PX_16;
items3[1] = object3;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
string = intl.string;
const cpT0Cq = (require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq;
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
const INTERACTIVE_ICON_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_ICON_DEFAULT;
items2[2] = <View style={items3} pointerEvents="box-none"><PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(string,
intl,
[cpT0Cq])} onPress={value10} style={styles.closeButtonHitArea}><XLargeIcon color={INTERACTIVE_ICON_DEFAULT} /></PressableOpacity></View>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun119776() { // fn#119776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:923, offset: 0x025192b7, size: 76 bytes, params: 1, frame: 14
var object;
let onMessageBinding = onMessage;
if (onMessageBinding != null) {
onMessageBinding = onMessage;
object = {};
value = environment.__proto__;
object.data = (require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError.CANCEL;
onMessageBinding({nativeEvent: object});
}
}
function _fun119777() { // fn#119777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15848:1014, offset: 0x02519303, size: 17 bytes, params: 1, frame: 9
env0_1();
return true;
}
global.__d(_fun119773, 15640, [29, 31, 27, 1949, 1878, 661, 33, 4501, 566, 1484, 1909, 1585, 1244, 9486, 4571, 4572,
697, 4573, 477, 15639, 5278, 4066,
2]) /* metro module 15640, dependencies: [29, 31, 27, 1949, 1878, 661, 33, 4501, 566, 1484, 1909, 1585, 1244, 9486, 4571, 4572, 697, 4573, 477, 15639, 5278, 4066, 2] */;
@@ -1,39 +1,42 @@
/* Metro module 14229; source: modules/captcha/tooling/CaptchaTestActionCreators.tsx; dependencies: [5, 661, 507, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun107601(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14426:6, offset: 0x023020b3, size: 285 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const object = {EASY: 1};
object[1] = 'EASY';
object.MODERATE = 2;
object[2] = 'MODERATE';
object.DIFFICULT = 3;
object[3] = 'DIFFICULT';
object.VERY_DIFFICULT = 4;
object[4] = 'VERY_DIFFICULT';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/tooling/CaptchaTestActionCreators.tsx');
const object2 = {EASY: 1};
object2[1] = 'EASY';
object2.MODERATE = 2;
object2[2] = 'MODERATE';
object2.DIFFICULT = 3;
object2[3] = 'DIFFICULT';
object2.VERY_DIFFICULT = 4;
object2[4] = 'VERY_DIFFICULT';
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/tooling/CaptchaTestActionCreators.tsx');
exports.CaptchaDeciderType = {HCAPTCHA_RQDATA: 'hCaptchaRqdata', SMITE_RQDATA: 'SmiteRqdata',
RECAPTCHA: 'Recaptcha', RECAPTCHA_ENTERPRISE: 'RecaptchaEnterprise'};
exports.HCaptchaDifficulty = object;
exports.HCaptchaDifficulty = object2;
exports.testCaptcha = function() {
return _testCaptcha.apply(this, arguments);
};
}
function _testCaptcha() { // fn#107602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14426:429, offset: 0x023021d0, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun107604).apply(this, arguments);
function* _fun107604(a0, a1) { // fn#107604, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14426:476, offset: 0x0230220d, size: 112 bytes, params: 3, frame: 15
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_1[2]).HTTP;
var post = HTTP.post;
var CAPTCHA_TEST = env2_3.CAPTCHA_TEST;
yield Reflect.apply(post, HTTP, [{url: CAPTCHA_TEST, body: {decider: a0, options: a1},
rejectWithError: false}]);
}
}
function _testCaptcha() { // fn#107602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14426:429, offset: 0x023021d0, size: 50 bytes, params: 1, frame: 14
return env0_2(_fun107604).apply(this, arguments);
}
function* _fun107604(a0, a1) { // fn#107604, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14426:476, offset: 0x0230220d, size: 112 bytes, params: 3, frame: 15
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_1[2]).HTTP;
var post = HTTP.post;
var CAPTCHA_TEST = env2_3.CAPTCHA_TEST;
yield Reflect.apply(post, HTTP, [{url: CAPTCHA_TEST, body: {decider: a0, options: a1},
rejectWithError: false}]);
}
}
global.__d(_fun107601, 14229, [5, 661, 507, 2]) /* metro module 14229, dependencies: [5, 661, 507, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 14228; source: modules/captcha/tooling/CaptchaTestUtils.tsx; dependencies: [14229, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CaptchaTestActionCreatorsModule from './CaptchaTestActionCreators.tsx'; /* Metro dependency 14229 */
function _fun107597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14425:6, offset: 0x02301f2b, size: 204 bytes, params: 8, frame: 20
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
Object = global.Object;
let entries = Object.entries;
const HCaptchaDifficulty = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).HCaptchaDifficulty;
const HCaptchaDifficulty = (CaptchaTestActionCreatorsModule).HCaptchaDifficulty;
let value = Reflect.apply(entries, Object, [HCaptchaDifficulty]);
value = value.map(function(a0) {
var r0;
@@ -49,7 +52,7 @@ function _fun107597(global, require, importDefault, importAll, module, exports,
});
Object = global.Object;
entries = Object.entries;
const CaptchaDeciderType = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).CaptchaDeciderType;
const CaptchaDeciderType = (CaptchaTestActionCreatorsModule).CaptchaDeciderType;
let value3 = Reflect.apply(entries, Object, [CaptchaDeciderType]).map(function(a0) {
var r0;
var r1;
@@ -88,8 +91,9 @@ function _fun107597(global, require, importDefault, importAll, module, exports,
}
return {id: r1, label: r2, value: r1};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/tooling/CaptchaTestUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/tooling/CaptchaTestUtils.tsx');
exports.HCAPTCHA_DIFFICULTY_OPTIONS = value;
exports.CAPTCHA_DECIDER_TYPE_OPTIONS = value3;
}
global.__d(_fun107597, 14228, [14229, 2]) /* metro module 14228, dependencies: [14229, 2] */;
@@ -1,497 +1,530 @@
/* Metro module 14227; source: modules/captcha/tooling/native/CaptchaTestModal.tsx; dependencies: [5, 57, 31, 27, 33, 4501, 697, 14228, 14229, 3857, 4573, 1305, 6618, 4578, 5282, 5080, 5280, 1244, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
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 NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as SafeAreaViewModule from '../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as CaptchaTestUtilsModule from '../CaptchaTestUtils.tsx'; /* Metro dependency 14228 */
import * as CaptchaTestActionCreatorsModule from '../CaptchaTestActionCreators.tsx'; /* Metro dependency 14229 */
function _fun107581(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:6, offset: 0x02301683, size: 716 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(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 */;
let createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {'flex': 1, 'justifyContent': 'space-between', backgroundColor: BACKGROUND_BASE_LOW};
const object4 = {height: 1};
object.container = {'flex': 1, 'justifyContent': 'space-between', backgroundColor: BACKGROUND_BASE_LOW};
const object3 = {height: 1};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.backgroundColor = BORDER_SUBTLE;
object3.backgroundColor = BORDER_SUBTLE;
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginVertical = PX_24;
object2.separator = object4;
object3.marginVertical = PX_24;
object.separator = object3;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.footerContainer = {marginBottom: PX_16};
object.footerContainer = {marginBottom: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.footerButton = {paddingHorizontal: PX_16};
const object5 = {};
object.footerButton = {paddingHorizontal: PX_16};
const object6 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.margin = PX_16;
object6.margin = PX_16;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object5.gap = PX_24;
object2.content = object5;
const env0_9 = Reflect.apply(createStyles, value, [object2]);
const HCAPTCHA_DIFFICULTY_OPTIONS = (require(14228) /* metro dependency 14228: CaptchaTestUtils */).HCAPTCHA_DIFFICULTY_OPTIONS;
object6.gap = PX_24;
object.content = object6;
const env0_9 = Reflect.apply(createStyles, value, [object]);
const HCAPTCHA_DIFFICULTY_OPTIONS = (CaptchaTestUtilsModule).HCAPTCHA_DIFFICULTY_OPTIONS;
const env0_10 = HCAPTCHA_DIFFICULTY_OPTIONS.map(function({label, value}) {
return {name: label, value: value};
});
const Set = global.Set;
const {HCAPTCHA_RQDATA,
SMITE_RQDATA} = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).CaptchaDeciderType;
SMITE_RQDATA} = (CaptchaTestActionCreatorsModule).CaptchaDeciderType;
let set = new Set([HCAPTCHA_RQDATA, SMITE_RQDATA]);
const CAPTCHA_DECIDER_TYPE_OPTIONS = (require(14228) /* metro dependency 14228: CaptchaTestUtils */).CAPTCHA_DECIDER_TYPE_OPTIONS;
const CAPTCHA_DECIDER_TYPE_OPTIONS = (CaptchaTestUtilsModule).CAPTCHA_DECIDER_TYPE_OPTIONS;
const env0_12 = CAPTCHA_DECIDER_TYPE_OPTIONS.map(function({label, value}) {
return {name: label, value: value};
}).filter(_fun107584);
object2 = {TEST_CAPTCHA: 'TEST_CAPTCHA'};
object = {TEST_CAPTCHA: 'TEST_CAPTCHA'};
set = require(4501) /* metro dependency 4501: createStyles */;
createStyles = set.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_15 = Reflect.apply(createStyles, set, [{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/tooling/native/CaptchaTestModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/tooling/native/CaptchaTestModal.tsx');
exports.default = CaptchaTestModal;
}
function _fun107584({value}) { // fn#107584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:838, offset: 0x02301968, size: 27 bytes, params: 2, frame: 11
return env0_11.has(value);
}
function CaptchaTestScreen(a0) { // fn#107585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:941, offset: 0x02301983, size: 676 bytes, params: 2, frame: 32
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const RadioGroup = (require(1305) /* metro dependency 1305: native */).RadioGroup;
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
throw undefined;
function _fun107584({value}) { // fn#107584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:838, offset: 0x02301968, size: 27 bytes, params: 2, frame: 11
return env0_11.has(value);
}
const styles = useStyles();
const binding = env0_5;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [null]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_1 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property2 = value4[0];
const env0_3 = value4[1];
const value5 = _fun107586();
const view = <View><Text variant="heading-lg/bold" color="mobile-text-heading-primary">{'Decider'}</Text><RadioGroup withSpacing value={property} options={env0_12} onChange={onChange_107590} /></View>;
const CaptchaDeciderType = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).CaptchaDeciderType;
const HCAPTCHA_RQDATA = CaptchaDeciderType.HCAPTCHA_RQDATA;
const view2 = <View style={styles.content}>{view}{property === HCAPTCHA_RQDATA && <View><Text variant="heading-lg/bold" color="mobile-text-heading-primary">{'Difficulty'}</Text><RadioGroup withSpacing value={property2} options={env0_10} onChange={onChange_107591} /></View>}</View>;
const view3 = <View style={styles.separator} />;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={styles.container}>
{view2}
<View style={styles.footerContainer}>
{view3}
<SafeAreaPaddingView bottom style={styles.footerButton}>
<Button onPress={value5} text="Submit" />
</SafeAreaPaddingView>
function CaptchaTestScreen(a0) { // fn#107585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:941, offset: 0x02301983, size: 676 bytes, params: 2, frame: 32
const Text = (TextModule).Text;
const RadioGroup = (NativeModule).RadioGroup;
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
throw undefined;
}
const styles = useStyles();
let useState = ReactModule.useState;
const value2 = Reflect.apply(useState, ReactModule, [null]);
const value3 = Module00057(value2, 2);
const property = value3[0];
const env0_1 = value3[1];
useState = ReactModule.useState;
const value4 = Module00057(Reflect.apply(useState, ReactModule, [null]), 2);
const property2 = value4[0];
const env0_3 = value4[1];
const value5 = _fun107586();
const view = (
<View>
<Text variant="heading-lg/bold" color="mobile-text-heading-primary">
{'Decider'}
</Text>
<RadioGroup
withSpacing
value={property}
options={env0_12}
onChange={onChange_107590}
/>
</View>
</View>
);
}
);
const CaptchaDeciderType = (CaptchaTestActionCreatorsModule).CaptchaDeciderType;
const HCAPTCHA_RQDATA = CaptchaDeciderType.HCAPTCHA_RQDATA;
const view2 = (
<View style={styles.content}>
{view}
{property === HCAPTCHA_RQDATA && <View><Text variant="heading-lg/bold" color="mobile-text-heading-primary">{'Difficulty'}</Text><RadioGroup withSpacing value={property2} options={env0_10} onChange={onChange_107591} /></View>}
</View>
);
const view3 = <View style={styles.separator} />;
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const Button = (ButtonNativeModule).Button;
return (
<View style={styles.container}>
{view2}
<View style={styles.footerContainer}>
{view3}
<SafeAreaPaddingView bottom style={styles.footerButton}>
<Button onPress={value5} text="Submit" />
</SafeAreaPaddingView>
</View>
</View>
);
function _fun107586() { // fn#107586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1044, offset: 0x02301c27, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun107588);
return _fun107589;
function* _fun107588() { // fn#107588, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1064, offset: 0x02301c56, size: 220 bytes, params: 1, frame: 19
var dependencyMap2;
var binding;
var binding2;
var property;
var value5;
var testCaptcha;
var object;
var value6;
var value7;
var binding3;
var open;
var error;
var message;
if (true) {
value = environment.__proto__.__proto__;
if (require != null) {
try {
binding = env3_0;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
property = binding2[8];
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
var value4 = undefined;
try {
value5 = binding(property);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
testCaptcha = value5.testCaptcha;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object = {};
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value6 = dependencyMap != null;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
if (value6) {
try {
dependencyMap2 = dependencyMap;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object.difficulty = dependencyMap2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = Reflect.apply(testCaptcha, value5, [require, object]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
yield value;
try {
value = undefined;
value7 = false;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
if (value7) {
return value;
}
try {
binding = env3_1;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
binding3 = env3_2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
property = binding3[9];
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = binding(property);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
open = value.open;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object = {'key': 'captcha-test-modal-success', 'content': 'Captcha completed!'};
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
Reflect.apply(open, value, [object]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
}
return undefined;
}
dependencyMap2 = value4;
try {
object.difficulty = dependencyMap2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = Reflect.apply(testCaptcha, value5, [require, object]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
yield value;
try {
value = undefined;
value7 = false;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
if (value7) {
return value;
}
try {
binding = env3_1;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
binding3 = env3_2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
property = binding3[9];
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = binding(property);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
open = value.open;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object = {'key': 'captcha-test-modal-success', 'content': 'Captcha completed!'};
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
Reflect.apply(open, value, [object]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
}
}
}
}
function CaptchaTestModal() { // fn#107592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2414, offset: 0x02301dc9, size: 161 bytes, params: 1, frame: 18
const styles = useStyles();
const value2 = env0_5.useMemo(function() {
return _fun107594(styles);
}, [styles]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const TEST_CAPTCHA = env0_13.TEST_CAPTCHA;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
screens={value2}
initialRouteName={TEST_CAPTCHA}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun107589() { // fn#107589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1313, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function _fun107586() { // fn#107586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1044, offset: 0x02301c27, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun107588);
return _fun107589;
}
}
function CaptchaTestScreenOnChange({value}) { // fn#107590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1610, owner: CaptchaTestScreen.onChange, offset: 0x02301d32, size: 79 bytes, params: 2, frame: 12
const CaptchaDeciderType = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).CaptchaDeciderType;
const HCAPTCHA_RQDATA = CaptchaDeciderType.HCAPTCHA_RQDATA;
if (value !== HCAPTCHA_RQDATA) {
env0_3(null);
}
env0_1(value);
}
function CaptchaTestScreenOnChange({value}) { // fn#107590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1610, owner: CaptchaTestScreen.onChange, offset: 0x02301d32, size: 79 bytes, params: 2, frame: 12
const CaptchaDeciderType = (CaptchaTestActionCreatorsModule).CaptchaDeciderType;
const HCAPTCHA_RQDATA = CaptchaDeciderType.HCAPTCHA_RQDATA;
if (value !== HCAPTCHA_RQDATA) {
env0_3(null);
}
env0_1(value);
}
function CaptchaTestScreenOnChange_107591({value}) { // fn#107591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1939, owner: CaptchaTestScreen.onChange, offset: 0x02301d81, size: 72 bytes, params: 2, frame: 14
const binding = env0_0;
const CaptchaDeciderType = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).CaptchaDeciderType;
const HCAPTCHA_RQDATA = CaptchaDeciderType.HCAPTCHA_RQDATA;
if (binding === HCAPTCHA_RQDATA) {
env0_3(value);
}
}
function _fun107593() { // fn#107593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2465, offset: 0x02301e6a, size: 25 bytes, params: 1, frame: 11
return getScreens_107594(styles);
}
function* _fun107588() { // fn#107588, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1064, offset: 0x02301c56, size: 220 bytes, params: 1, frame: 19
var dependencyMap2;
var binding;
var binding2;
var property;
var value5;
var testCaptcha;
var object2;
var value6;
var value7;
var binding3;
var open;
var error;
var message;
if (true) {
value = environment.__proto__.__proto__;
if (require != null) {
try {
binding = env3_0;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
property = binding2[8];
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
var value4 = undefined;
try {
value5 = binding(property);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
testCaptcha = value5.testCaptcha;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object2 = {};
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value6 = dependencyMap != null;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
if (value6) {
try {
dependencyMap2 = dependencyMap;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object2.difficulty = dependencyMap2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = Reflect.apply(testCaptcha, value5, [require, object2]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
yield value;
try {
value = undefined;
value7 = false;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
if (value7) {
return value;
}
try {
binding = env3_1;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
binding3 = env3_2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
property = binding3[9];
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = binding(property);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
open = value.open;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object2 = {'key': 'captcha-test-modal-success', 'content': 'Captcha completed!'};
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
Reflect.apply(open, value, [object2]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
}
return undefined;
}
dependencyMap2 = value4;
try {
object2.difficulty = dependencyMap2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = Reflect.apply(testCaptcha, value5, [require, object2]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
yield value;
try {
value = undefined;
value7 = false;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
if (value7) {
return value;
}
try {
binding = env3_1;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
binding3 = env3_2;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
property = binding3[9];
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
value = binding(property);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
open = value.open;
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
object2 = {'key': 'captcha-test-modal-success', 'content': 'Captcha completed!'};
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
return undefined;
}
try {
Reflect.apply(open, value, [object2]);
} catch (error) {
binding = env3_1;
value = binding(env3_2[9]);
open = value.open;
message = error.message;
Reflect.apply(open, value, [{key: 'captcha-test-modal-error', content: message}]);
function CaptchaTestScreenOnChange_107591({value}) { // fn#107591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:1939, owner: CaptchaTestScreen.onChange, offset: 0x02301d81, size: 72 bytes, params: 2, frame: 14
const binding = env0_0;
const CaptchaDeciderType = (CaptchaTestActionCreatorsModule).CaptchaDeciderType;
const HCAPTCHA_RQDATA = CaptchaDeciderType.HCAPTCHA_RQDATA;
if (binding === HCAPTCHA_RQDATA) {
env0_3(value);
}
}
}
function CaptchaTestModal() { // fn#107592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2414, offset: 0x02301dc9, size: 161 bytes, params: 1, frame: 18
const styles = useStyles();
const value2 = ReactModule.useMemo(function() {
return _fun107594(styles);
}, [styles]);
const Navigator = (NavigatorNativeModule).Navigator;
const TEST_CAPTCHA = env0_13.TEST_CAPTCHA;
const intl = (IndexNativeModule).intl;
return (
<Navigator
screens={value2}
initialRouteName={TEST_CAPTCHA}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun107593() { // fn#107593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2465, offset: 0x02301e6a, size: 25 bytes, params: 1, frame: 11
return getScreens_107594(styles);
function getScreens_107594({headerStyle}) { // fn#107594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2469, offset: 0x02301e83, size: 108 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__.__proto__;
const TEST_CAPTCHA = env2_13.TEST_CAPTCHA;
const object2 = {};
object2.headerStyle = headerStyle;
object2.headerTitle = 'Captcha Test Tool';
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun107595);
object2.render = render_107596;
return {[TEST_CAPTCHA]: object2};
function _fun107595() { // fn#107595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2617, offset: 0x02301eef, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (ModalActionCreators).pop();
}
function getScreens_107594Render() { // fn#107596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2645, owner: getScreens_107594.render, offset: 0x02301f14, size: 23 bytes, params: 1, frame: 13
return <CaptchaTestScreen />;
}
}
}
}
}
function getScreens_107594({headerStyle}) { // fn#107594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2469, offset: 0x02301e83, size: 108 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__.__proto__;
const TEST_CAPTCHA = env2_13.TEST_CAPTCHA;
const object = {};
object.headerStyle = headerStyle;
object.headerTitle = 'Captcha Test Tool';
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun107595);
object.render = render_107596;
return {[TEST_CAPTCHA]: object};
}
function _fun107595() { // fn#107595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2617, offset: 0x02301eef, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function getScreens_107594Render() { // fn#107596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14424:2645, owner: getScreens_107594.render, offset: 0x02301f14, size: 23 bytes, params: 1, frame: 13
return <CaptchaTestScreen />;
}
global.__d(_fun107581, 14227, [5, 57, 31, 27, 33, 4501, 697, 14228, 14229, 3857, 4573, 1305, 6618, 4578, 5282, 5080,
5280, 1244,
2]) /* metro module 14227, dependencies: [5, 57, 31, 27, 33, 4501, 697, 14228, 14229, 3857, 4573, 1305, 6618, 4578, 5282, 5080, 5280, 1244, 2] */;
@@ -1,38 +1,44 @@
/* Metro module 14226; source: modules/captcha/tooling/native/OpenCaptchaTestModal.tsx; dependencies: [5, 31, 33, 5080, 14227, 1962, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
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 */
function _fun107576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:6, offset: 0x02301531, size: 154 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 */;
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/tooling/native/OpenCaptchaTestModal.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/tooling/native/OpenCaptchaTestModal.tsx');
exports.showCaptchaTestModal = showCaptchaTestModal;
}
function showCaptchaTestModal() { // fn#107577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:242, offset: 0x023015cb, size: 56 bytes, params: 1, frame: 13
const defaultImport = ModalActionCreators;
defaultImport.pushLazy(Module00005(_fun107579));
function* _fun107579() { // fn#107579, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:267, offset: 0x0230160e, size: 91 bytes, params: 1, frame: 15
var environment;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[5])(binding2[4], binding2.paths);
value = undefined;
if (false) {
return value;
}
const env0_0 = value.default;
return _fun107580;
function _fun107580() { // fn#107580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:329, offset: 0x02301669, size: 26 bytes, params: 1, frame: 13
return env3_4(env0_0, {});
}
function showCaptchaTestModal() { // fn#107577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:242, offset: 0x023015cb, size: 56 bytes, params: 1, frame: 13
const defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.pushLazy(env0_3(_fun107579));
}
}
function* _fun107579() { // fn#107579, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:267, offset: 0x0230160e, size: 91 bytes, params: 1, frame: 15
var environment;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[5])(binding2[4], binding2.paths);
value = undefined;
if (false) {
return value;
}
const env0_0 = value.default;
return _fun107580;
}
function _fun107580() { // fn#107580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14423:329, offset: 0x02301669, size: 26 bytes, params: 1, frame: 13
return env3_4(env0_0, {});
}
global.__d(_fun107576, 14226, [5, 31, 33, 5080, 14227, 1962,
2]) /* metro module 14226, dependencies: [5, 31, 33, 5080, 14227, 1962, 2] */;
@@ -1,61 +1,69 @@
/* Metro module 15637; source: modules/captcha/useCaptchaModalEffects.tsx; dependencies: [31, 661, 4594, 9486, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
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 ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun119743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:6, offset: 0x02517cbc, size: 143 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/useCaptchaModalEffects.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/captcha/useCaptchaModalEffects.tsx');
exports.default = useCaptchaModalEffects;
}
function useCaptchaModalEffects({onReject, analyticsType}) { // fn#119744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:217, offset: 0x02517d4b, size: 131 bytes, params: 2, frame: 16
analyticsType = analyticsType === undefined ? 'Guild Join Captcha' : analyticsType;
const env0_2 = ReactModule.useRef(true);
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
return _fun119746;
});
ReactModule.useEffect(function() {
var defaultImport = importDefault(dependencyMap[4]);
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
defaultImport.track(OPEN_MODAL, {type: analyticsType});
return _fun119748;
}, [analyticsType]);
return _fun119749;
function _fun119745() { // fn#119745, offset: 0x02517dce, size: 11 bytes, params: 1, frame: 1
return _fun119746;
function _fun119746() { // fn#119746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:339, offset: 0x02517dd9, size: 75 bytes, params: 1, frame: 12
var onRejectBinding;
if (env1_2.current) {
onRejectBinding = onReject;
if (onRejectBinding != null) {
onRejectBinding = onReject;
value = environment.__proto__.__proto__;
onRejectBinding((require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError.CANCEL);
}
}
}
function useCaptchaModalEffects({onReject, analyticsType}) { // fn#119744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:217, offset: 0x02517d4b, size: 131 bytes, params: 2, frame: 16
analyticsType = analyticsType === undefined ? 'Guild Join Captcha' : analyticsType;
const binding = env0_3;
const env0_2 = binding.useRef(true);
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
return _fun119746;
});
binding.useEffect(function() {
var defaultImport = importDefault(dependencyMap[4]);
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
defaultImport.track(OPEN_MODAL, {type: analyticsType});
return _fun119748;
}, [analyticsType]);
return _fun119749;
}
function _fun119745() { // fn#119745, offset: 0x02517dce, size: 11 bytes, params: 1, frame: 1
return _fun119746;
}
function _fun119747() { // fn#119747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:413, offset: 0x02517e24, size: 70 bytes, params: 1, frame: 14
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
Reflect.apply(track, defaultImport, [OPEN_MODAL, {type: analyticsType}]);
return _fun119748;
}
function _fun119746() { // fn#119746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:339, offset: 0x02517dd9, size: 75 bytes, params: 1, frame: 12
var onRejectBinding;
if (env1_2.current) {
onRejectBinding = onReject;
if (onRejectBinding != null) {
onRejectBinding = onReject;
value = environment.__proto__.__proto__;
onRejectBinding((require(9486) /* metro dependency 9486: SharedCaptchaUtils */).CaptchaError.CANCEL);
}
function _fun119747() { // fn#119747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:413, offset: 0x02517e24, size: 70 bytes, params: 1, frame: 14
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
Reflect.apply(track, defaultImport, [OPEN_MODAL, {type: analyticsType}]);
return _fun119748;
function _fun119748() { // fn#119748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:455, offset: 0x02517e6a, size: 75 bytes, params: 1, frame: 14
var value2;
var defaultImport;
if (env1_2.current) {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.MODAL_DISMISSED, {type: analyticsType});
}
}
}
function _fun119749() { // fn#119749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:521, offset: 0x01216daf, size: 19 bytes, params: 1, frame: 2
env0_2.current = false;
}
}
}
function _fun119748() { // fn#119748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15845:455, offset: 0x02517e6a, size: 75 bytes, params: 1, frame: 14
var value2;
var defaultImport;
if (env1_2.current) {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.MODAL_DISMISSED, {type: analyticsType});
}
}
global.__d(_fun119743, 15637, [31, 661, 4594, 9486, 683,
2]) /* metro module 15637, dependencies: [31, 661, 4594, 9486, 683, 2] */;