Files
2026-07-28 01:06:53 +03:00

114 lines
6.4 KiB
TypeScript

/* Metro module 3973; source: stores/DefaultRouteStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 566, 587, 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 StorageModule from '../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun32588(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:6, offset: 0x01019ddc, size: 350 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {'lastViewedPath': null, 'lastViewedNonVoicePath': null};
const PersistedStore = (Flux).PersistedStore;
let value = _fun32592(PersistedStore);
value.displayName = 'DefaultRouteStore';
value.persistKey = 'DefaultRouteStore';
value.migrations = [_fun32599];
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {SAVE_LAST_ROUTE: SAVE_LAST_ROUTE,
SAVE_LAST_NON_VOICE_ROUTE: SAVE_LAST_NON_VOICE_ROUTE});
(FileImportTrackerModule).fileFinishedImporting('stores/DefaultRouteStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_32589() { // fn#32589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:165, offset: 0x01019f3a, size: 94 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_32589_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun32592(a0) { // fn#32592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:445, offset: 0x01019f98, size: 162 bytes, params: 2, frame: 16
const DefaultRouteStore2 = DefaultRouteStore;
Inherits(DefaultRouteStore2, a0);
return CreateClass(DefaultRouteStore2, [{key: 'initialize', value: value_32594}, {key: 'defaultRoute', get: get_32595},
{key: 'lastNonVoiceRoute', get: get_32596}, {key: 'fallbackRoute', get: function() {
return Routes.ME;
}}, {key: 'getState', value: value_32598}]);
function DefaultRouteStore() { // fn#32593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:457, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, DefaultRouteStore);
const value3 = env1_5(DefaultRouteStore);
return env1_4(this, _isNativeReflectConstruct_32589() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_32594() { // fn#32594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:760, offset: 0x0101a03a, size: 38 bytes, params: 1, frame: 3
let value = a0;
if ((value !== undefined ? value : env1_8) == null) {
value = environment.__proto__;
}
value = environment.__proto__;
}
function get_32595() { // fn#32595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:814, offset: 0x0101a060, size: 31 bytes, params: 1, frame: 3
return env1_9.lastViewedPath ?? Routes.ME;
}
function get_32596() { // fn#32596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:903, offset: 0x0101a07f, size: 31 bytes, params: 1, frame: 3
return env1_9.lastViewedNonVoicePath ?? Routes.ME;
}
function value_32598() { // fn#32598, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
}
function _fun32599() { // fn#32599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:1173, offset: 0x0101a0ad, size: 85 bytes, params: 1, frame: 17
const Storage = (StorageModule).Storage;
const value = Storage.get('LAST_VIEWED_PATH', null);
Storage.remove('LAST_VIEWED_PATH');
return {lastViewedPath: value};
}
function SAVE_LAST_ROUTE({path}) { // fn#32600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:1303, offset: 0x0101a102, size: 26 bytes, params: 2, frame: 2
env0_9.lastViewedPath = path;
return true;
}
function SAVE_LAST_NON_VOICE_ROUTE({path}) { // fn#32601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4122:1394, offset: 0x0101a11c, size: 26 bytes, params: 2, frame: 2
env0_9.lastViewedNonVoicePath = path;
return true;
}
}
global.__d(_fun32588, 3973, [6, 7, 15, 17, 18, 661, 566, 587, 694,
2]) /* metro module 3973, dependencies: [6, 7, 15, 17, 18, 661, 566, 587, 694, 2] */;