Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,9 @@
|
||||
/* Metro module 9488; source: modules/captcha/CaptchaConstants.tsx; dependencies: [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');
|
||||
exports.CAPTCHA_SERVE_VOLUME_DISTRIBUTION_AGGREGATION_WINDOW_MS = 30000;
|
||||
exports.CAPTCHA_MODAL_KEY = 'Captcha';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/* Metro module 9487; source: modules/captcha/CaptchaStore.tsx; dependencies: [57, 629, 690, 4826, 4831, 2] */
|
||||
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 */;
|
||||
value = value.create(function() {
|
||||
return {captchaServeVolume: {}};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).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 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
(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;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
/* Metro module 15635; source: modules/captcha/CaptchaUtils.native.tsx; dependencies: [3849, 9488, 566, 4080, 15636, 1962, 9486, 2] */
|
||||
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) {
|
||||
var value = a1;
|
||||
var env0_0 = value !== undefined ? value : {};
|
||||
var env0_1 = undefined;
|
||||
var env0_2 = undefined;
|
||||
var env0_3 = undefined;
|
||||
var env0_4 = undefined;
|
||||
env0_1 = a0.sitekey;
|
||||
env0_2 = a0.captchaService;
|
||||
env0_3 = a0.captchaSessionId;
|
||||
env0_4 = a0.options;
|
||||
var Promise = global.Promise;
|
||||
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun119729);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
}, 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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/* Metro module 9486; source: modules/captcha/SharedCaptchaUtils.tsx; dependencies: [7, 6, 15, 17, 18, 162, 9487, 9488, 2] */
|
||||
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;
|
||||
const Error = global.Error;
|
||||
value = value(Error);
|
||||
value = _fun74063(value);
|
||||
(require(2) /* metro dependency 2 */).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;
|
||||
return {captchaService: a0.captcha_service, sitekey: a0.captcha_sitekey,
|
||||
captchaSessionId: a0.captcha_session_id,
|
||||
options: {rqdata: a0.captcha_rqdata, rqtoken: a0.captcha_rqtoken,
|
||||
serveInvisible: should_serve_invisible != null && should_serve_invisible, userflow: a0.user_flow}};
|
||||
};
|
||||
exports.emitCaptchaDistributionMetric = function(a0) {
|
||||
if (isCaptchaStoreVolumeEmpty()) {
|
||||
global.setTimeout(_fun74067, CAPTCHA_SERVE_VOLUME_DISTRIBUTION_AGGREGATION_WINDOW_MS);
|
||||
}
|
||||
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) {
|
||||
}
|
||||
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 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 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));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
|
||||
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');
|
||||
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((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 _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});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
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,
|
||||
'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 FADE = ModalAnimation.FADE;
|
||||
closure.modalConfig = {animation: FADE};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/native/HcaptchaModal.tsx');
|
||||
exports.default = closure;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 14229; source: modules/captcha/tooling/CaptchaTestActionCreators.tsx; dependencies: [5, 661, 507, 2] */
|
||||
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');
|
||||
exports.CaptchaDeciderType = {HCAPTCHA_RQDATA: 'hCaptchaRqdata', SMITE_RQDATA: 'SmiteRqdata',
|
||||
RECAPTCHA: 'Recaptcha', RECAPTCHA_ENTERPRISE: 'RecaptchaEnterprise'};
|
||||
exports.HCaptchaDifficulty = object;
|
||||
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 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}]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/* Metro module 14228; source: modules/captcha/tooling/CaptchaTestUtils.tsx; dependencies: [14229, 2] */
|
||||
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;
|
||||
let value = Reflect.apply(entries, Object, [HCaptchaDifficulty]);
|
||||
value = value.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value;
|
||||
r3 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r3 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = item;
|
||||
r3 = value3;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
return {id: r1.toString(), label: r2, value: r1};
|
||||
});
|
||||
value = value.filter(function(a0) {
|
||||
return typeof a0.value !== 'string';
|
||||
});
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
const CaptchaDeciderType = (require(14229) /* metro dependency 14229: CaptchaTestActionCreators */).CaptchaDeciderType;
|
||||
let value3 = Reflect.apply(entries, Object, [CaptchaDeciderType]).map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value;
|
||||
r3 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r3 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = item;
|
||||
r3 = value3;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
return {id: r1, label: r2, value: r1};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/captcha/tooling/CaptchaTestUtils.tsx');
|
||||
exports.HCAPTCHA_DIFFICULTY_OPTIONS = value;
|
||||
exports.CAPTCHA_DECIDER_TYPE_OPTIONS = value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,497 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
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};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object4.backgroundColor = BORDER_SUBTLE;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.marginVertical = PX_24;
|
||||
object2.separator = object4;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.footerContainer = {marginBottom: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.footerButton = {paddingHorizontal: PX_16};
|
||||
const object5 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.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;
|
||||
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;
|
||||
let set = new Set([HCAPTCHA_RQDATA, SMITE_RQDATA]);
|
||||
const CAPTCHA_DECIDER_TYPE_OPTIONS = (require(14228) /* metro dependency 14228: CaptchaTestUtils */).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'};
|
||||
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');
|
||||
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;
|
||||
}
|
||||
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>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
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 _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_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 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 />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 14226; source: modules/captcha/tooling/native/OpenCaptchaTestModal.tsx; dependencies: [5, 31, 33, 5080, 14227, 1962, 2] */
|
||||
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');
|
||||
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 = 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, {});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 15637; source: modules/captcha/useCaptchaModalEffects.tsx; dependencies: [31, 661, 4594, 9486, 683, 2] */
|
||||
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');
|
||||
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 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 _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});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user