366 lines
15 KiB
TypeScript
366 lines
15 KiB
TypeScript
/* Metro module 16200; source: modules/safety_flows/SafetyFlowsActionCreators.tsx; dependencies: [5, 661, 5046, 480, 4132, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun125197(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:6, offset: 0x025d10d1, size: 199 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/SafetyFlowsActionCreators.tsx');
|
|
exports.getCurrentTask = function() {
|
|
return _getCurrentTask.apply(this, arguments);
|
|
};
|
|
exports.completeTask = function() {
|
|
return _completeTask.apply(this, arguments);
|
|
};
|
|
exports.resendVerificationCode = function() {
|
|
return _resendVerificationCode.apply(this, arguments);
|
|
};
|
|
function _getCurrentTask() { // fn#125198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:128, offset: 0x025d1198, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun125200).apply(this, arguments);
|
|
function* _fun125200() { // fn#125200, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:181, offset: 0x025d11d5, size: 145 bytes, params: 1, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_1;
|
|
const binding2 = env2_2;
|
|
const value3 = binding(binding2[2]);
|
|
const get = value3.get;
|
|
const object = {};
|
|
const SAFETY_FLOWS_TASK = env2_4.SAFETY_FLOWS_TASK;
|
|
object.url = SAFETY_FLOWS_TASK;
|
|
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
|
|
const USER_VERIFY = NetworkActionNames.USER_VERIFY;
|
|
object.trackedActionData = {event: USER_VERIFY};
|
|
object.rejectWithError = true;
|
|
yield Reflect.apply(get, value3, [object]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value.status === 204 ? null : value.body;
|
|
}
|
|
|
|
}
|
|
|
|
function _completeTask() { // fn#125201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:388, offset: 0x025d1266, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun125203).apply(this, arguments);
|
|
function* _fun125203(a0) { // fn#125203, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:437, offset: 0x025d12a3, size: 139 bytes, params: 2, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_1;
|
|
const binding2 = env2_2;
|
|
const value3 = binding(binding2[2]);
|
|
const post = value3.post;
|
|
const object = {};
|
|
const SAFETY_FLOWS_TASK = env2_4.SAFETY_FLOWS_TASK;
|
|
object.url = SAFETY_FLOWS_TASK;
|
|
object.body = a0;
|
|
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
|
|
const USER_VERIFY = NetworkActionNames.USER_VERIFY;
|
|
object.trackedActionData = {event: USER_VERIFY};
|
|
object.rejectWithError = true;
|
|
yield Reflect.apply(post, value3, [object]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value.body;
|
|
}
|
|
|
|
}
|
|
|
|
function _resendVerificationCode() { // fn#125204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:626, offset: 0x025d132e, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun125206).apply(this, arguments);
|
|
function* _fun125206(a0) { // fn#125206, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16408:695, offset: 0x025d136b, size: 193 bytes, params: 2, frame: 17
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var post;
|
|
var object;
|
|
var SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
|
|
var object2;
|
|
var object3;
|
|
var value4;
|
|
var NetworkActionNames;
|
|
var USER_VERIFY;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
var prototype;
|
|
var value8;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
post = value3.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
SAFETY_FLOWS_RESEND_VERIFICATION_CODE = binding.SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.url = SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.flow_id = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
NetworkActionNames = value4.NetworkActionNames;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
USER_VERIFY = NetworkActionNames.USER_VERIFY;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object3.event = USER_VERIFY;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.trackedActionData = object3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(post, value3, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value8;
|
|
throw value;
|
|
}
|
|
return value7 ? value6 : value6;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun125197, 16200, [5, 661, 5046, 480, 4132,
|
|
2]) /* metro module 16200, dependencies: [5, 661, 5046, 480, 4132, 2] */;
|