59 lines
3.2 KiB
TypeScript
59 lines
3.2 KiB
TypeScript
/* Metro module 8963; source: modules/verification/ChangeEmailActionCreators.tsx; dependencies: [5, 661, 5046, 480, 2] */
|
|
function _fun69882(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:6, offset: 0x01ce6d43, size: 164 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/ChangeEmailActionCreators.tsx');
|
|
exports.sendConfirmationCode = sendConfirmationCode;
|
|
exports.confirmEmailChange = function() {
|
|
return _confirmEmailChange.apply(this, arguments);
|
|
};
|
|
}
|
|
|
|
function _confirmEmailChange() { // fn#69883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:126, offset: 0x01ce6de7, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun69885).apply(this, arguments);
|
|
}
|
|
|
|
function sendConfirmationCode() { // fn#69886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:521, offset: 0x01ce6eb5, size: 121 bytes, params: 1, frame: 17
|
|
const value = a0;
|
|
const r5 = value !== undefined ? value : false;
|
|
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
|
|
const put = defaultImport.put;
|
|
const object2 = {};
|
|
const USER_EMAIL = Endpoints.USER_EMAIL;
|
|
object2.url = USER_EMAIL;
|
|
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
|
|
const USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE = NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE;
|
|
object2.trackedActionData = {event: USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE, properties: {is_resend: r5}};
|
|
object2.rejectWithError = false;
|
|
return Reflect.apply(put, defaultImport, [object2]);
|
|
}
|
|
|
|
function* _fun69885(a0) { // fn#69885, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:187, offset: 0x01ce6e24, size: 145 bytes, params: 2, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_1;
|
|
const binding2 = env2_2;
|
|
const value3 = binding(binding2[2]);
|
|
const post = value3.post;
|
|
const object2 = {};
|
|
const USER_EMAIL_VERIFY_CODE = env2_4.USER_EMAIL_VERIFY_CODE;
|
|
object2.url = USER_EMAIL_VERIFY_CODE;
|
|
object2.body = {code: a0};
|
|
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
|
|
const USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE = NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE;
|
|
object2.trackedActionData = {event: USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE};
|
|
object2.rejectWithError = false;
|
|
yield Reflect.apply(post, value3, [object2]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value.body;
|
|
}
|
|
|