75 lines
4.7 KiB
TypeScript
75 lines
4.7 KiB
TypeScript
/* Metro module 8955; source: modules/verification/ChangeEmailStore.tsx; dependencies: [629, 690, 2] */
|
|
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 _fun69830(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:6, offset: 0x01ce4c96, size: 233 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const setChangeEmailError2 = setChangeEmailError;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = {'errors': null, 'emailToken': null};
|
|
let value = Module00629Module;
|
|
value = value.create(_fun69834);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/verification/ChangeEmailStore.tsx');
|
|
exports.ChangeEmailFields = {EMAIL: 'email', EMAIL_TOKEN: 'email_token', PASSWORD: 'password'};
|
|
exports.useChangeEmailStore = value;
|
|
exports.setChangeEmailError = setChangeEmailError2;
|
|
exports.useChangeEmailError = useChangeEmailError;
|
|
exports.setEmailToken = setEmailToken;
|
|
exports.resetChangeEmailStore = resetChangeEmailStore;
|
|
function setChangeEmailError(a0, a1) { // fn#69831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:252, offset: 0x01ce4d7f, size: 61 bytes, params: 3, frame: 12
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
(ReactBatchUpdatesNativeModule).batchUpdates(_fun69832);
|
|
function _fun69832() { // fn#69832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:308, offset: 0x01ce4dbc, size: 29 bytes, params: 1, frame: 11
|
|
return env1_3.setState(_fun69833);
|
|
function _fun69833({errors}) { // fn#69833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:324, offset: 0x01ce4dd9, size: 43 bytes, params: 2, frame: 13
|
|
const object2 = {};
|
|
copyDataProperties(object2, errors, undefined);
|
|
object2[env1_0] = require;
|
|
return {errors: object2};
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun69834() { // fn#69834, offset: 0x00c36b39, size: 9 bytes, params: 1, frame: 1
|
|
return env0_2;
|
|
}
|
|
|
|
function useChangeEmailError(a0) { // fn#69835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:547, offset: 0x01ce4e04, size: 51 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
return [env0_3(_fun69836), _fun69837];
|
|
function _fun69836({errors}) { // fn#69836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:589, offset: 0x01ce4e37, size: 33 bytes, params: 2, frame: 3
|
|
return errors?.[env0_0];
|
|
}
|
|
|
|
function _fun69837(a0) { // fn#69837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:640, offset: 0x01ce4e58, size: 27 bytes, params: 2, frame: 13
|
|
setChangeEmailError(env0_0, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function setEmailToken(a0) { // fn#69838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:686, offset: 0x01ce4e73, size: 54 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
(ReactBatchUpdatesNativeModule).batchUpdates(_fun69839);
|
|
function _fun69839() { // fn#69839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:734, offset: 0x01ce4ea9, size: 34 bytes, params: 1, frame: 12
|
|
return env1_3.setState({emailToken: env0_0});
|
|
}
|
|
|
|
}
|
|
|
|
function resetChangeEmailStore() { // fn#69840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:792, offset: 0x01ce4ecb, size: 47 bytes, params: 1, frame: 12
|
|
(ReactBatchUpdatesNativeModule).batchUpdates(_fun69841);
|
|
function _fun69841() { // fn#69841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:847, offset: 0x01ce4efa, size: 27 bytes, params: 1, frame: 13
|
|
return env1_3.setState(env1_2, true);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69830, 8955, [629, 690, 2]) /* metro module 8955, dependencies: [629, 690, 2] */;
|