Files
discord-decomp/sources/stores/ChangeVanityURLModalStore.tsx
T
2026-07-28 01:06:53 +03:00

94 lines
4.9 KiB
TypeScript

/* Metro module 15980; source: stores/ChangeVanityURLModalStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 566, 694, 2] */
import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun123609(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16188:6, offset: 0x025954c2, size: 353 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const FormStates = (ConstantsModule).FormStates;
const env0_8 = {};
let env0_9 = FormStates.CLOSED;
const Store = (Flux).Store;
let value = _fun123613(Store);
value.displayName = 'ChangeVanityURLModalStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{CHANGE_VANITY_URL_MODAL_OPEN: function(a0) {
env0_9 = FormStates.OPEN;
env0_6 = a0.guildId;
env0_7 = a0.code;
env0_10 = null;
}, CHANGE_VANITY_URL_MODAL_SUBMIT: function() {
env0_9 = FormStates.SUBMITTING;
}, CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE: function(a0) {
env0_9 = FormStates.OPEN;
env0_10 = a0.error;
}, CHANGE_VANITY_URL_MODAL_CLOSE: function() {
env0_9 = FormStates.CLOSED;
env0_6 = null;
env0_7 = null;
env0_10 = null;
}});
(FileImportTrackerModule).fileFinishedImporting('stores/ChangeVanityURLModalStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_123610() { // fn#123610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16188:169, offset: 0x02595623, 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_123610_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun123613(a0) { // fn#123613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16188:399, offset: 0x02595685, size: 97 bytes, params: 2, frame: 16
const ChangeVanityURLModalStore2 = ChangeVanityURLModalStore;
Inherits(ChangeVanityURLModalStore2, a0);
return CreateClass(ChangeVanityURLModalStore2, [{key: 'isOpen', value: function() {
return CLOSED !== FormStates.CLOSED;
}}, {key: 'getProps', value: value_123616}]);
function ChangeVanityURLModalStore() { // fn#123614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16188:411, offset: 0x010a3f4a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ChangeVanityURLModalStore);
const value3 = env1_3(ChangeVanityURLModalStore);
return env1_2(this, _isNativeReflectConstruct_123610() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_123616() { // fn#123616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16188:805, offset: 0x025956fd, size: 64 bytes, params: 1, frame: 4
const SUBMITTING = FormStates.SUBMITTING;
return {submitting: CLOSED === SUBMITTING, errorDetails: env1_10, errors: env1_8, guildId: env1_6, code: env1_7};
}
}
}
global.__d(_fun123609, 15980, [6, 7, 15, 17, 18, 661, 566, 694,
2]) /* metro module 15980, dependencies: [6, 7, 15, 17, 18, 661, 566, 694, 2] */;