64 lines
3.8 KiB
TypeScript
64 lines
3.8 KiB
TypeScript
/* Metro module 8963; source: modules/verification/ChangeEmailActionCreators.tsx; dependencies: [5, 661, 5046, 480, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import TrackedHTTPUtils from '../../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as AnalyticsUtilsModule from '../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 Module00005(_fun69885).apply(this, arguments);
|
|
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 object = {};
|
|
const USER_EMAIL_VERIFY_CODE = env2_4.USER_EMAIL_VERIFY_CODE;
|
|
object.url = USER_EMAIL_VERIFY_CODE;
|
|
object.body = {code: a0};
|
|
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
|
|
const USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE = NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE;
|
|
object.trackedActionData = {event: USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE};
|
|
object.rejectWithError = false;
|
|
yield Reflect.apply(post, value3, [object]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value.body;
|
|
}
|
|
|
|
}
|
|
|
|
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 = TrackedHTTPUtils;
|
|
const put = defaultImport.put;
|
|
const object = {};
|
|
const USER_EMAIL = Endpoints.USER_EMAIL;
|
|
object.url = USER_EMAIL;
|
|
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
|
|
const USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE = NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE;
|
|
object.trackedActionData = {event: USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE, properties: {is_resend: r5}};
|
|
object.rejectWithError = false;
|
|
return Reflect.apply(put, defaultImport, [object]);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69882, 8963, [5, 661, 5046, 480, 2]) /* metro module 8963, dependencies: [5, 661, 5046, 480, 2] */;
|