Files
discord-decomp/sources/modules/routing/KeybindRouterStore.tsx
T
2026-07-28 01:06:53 +03:00

89 lines
5.3 KiB
TypeScript

/* Metro module 12081; source: modules/routing/KeybindRouterStore.tsx; dependencies: [661, 3974, 3987, 685, 690, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as ReactBatchUpdatesNativeModule from '../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
import * as MatchPathCompatModule from './matchPathCompat.tsx'; /* Metro dependency 3974 */
import * as RouteUtilsModule from './RouteUtils.tsx'; /* Metro dependency 3987 */
function _fun92839(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:6, offset: 0x0209ad62, size: 161 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ConstantsModule;
const env0_2 = value.Routes;
const env0_3 = value.ME;
value = require(685) /* metro dependency 685 */;
value = value.createWithEqualityFn(function(a0) {
var env0_0 = a0;
return {'path': null, 'basePath': '/', 'guildId': null, 'channelId': null, updatePath: _fun92842,
resetPath: _fun92844};
});
(FileImportTrackerModule).fileFinishedImporting('modules/routing/KeybindRouterStore.tsx');
exports.default = value;
function getMatchData_92840(a0) { // fn#92840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:124, offset: 0x0209ae03, size: 357 bytes, params: 2, frame: 28
var params;
let value = a0;
let matchPath = MatchPathCompatModule.matchPath;
const value3 = null;
const value4 = '';
const r4 = value3 != value ? value : value4;
const object = {};
const CHANNEL = Routes.CHANNEL;
const RouteParam = (RouteUtilsModule).RouteParam;
let guildId = RouteParam.guildId;
object.path = Reflect.apply(CHANNEL, Routes, [Reflect.apply(guildId, RouteParam, []),
RouteParam.channelId({optional: true}), ':messageId?']);
const value7 = Reflect.apply(matchPath, MatchPathCompatModule, [r4, object]);
if (value3 != value7) {
params = value7.params;
guildId = params.guildId;
channelId = params.channelId;
return {guildId: guildId === ME ? value3 : guildId, channelId: value3 != channelId ? channelId : value3};
}
matchPath = MatchPathCompatModule.matchPath;
const r6 = value3 != value ? value : value4;
const GUILD_BOOSTING_MARKETING = Routes.GUILD_BOOSTING_MARKETING;
value = Reflect.apply(matchPath, MatchPathCompatModule, [r6, {path: Reflect.apply(GUILD_BOOSTING_MARKETING, Routes,
[RouteParam.guildId()])}]);
return value3 != value ? {guildId: value.params.guildId, channelId: value3} : {'guildId': null, 'channelId': null};
}
function _fun92841(a0) { // fn#92841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:624, offset: 0x0209af68, size: 51 bytes, params: 2, frame: 3
const env0_0 = a0;
return {'path': null, 'basePath': '/', 'guildId': null, 'channelId': null, updatePath: updatePath,
resetPath: resetPath};
function updatePath(a0) { // fn#92842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:680, offset: 0x0209af9b, size: 81 bytes, params: 2, frame: 13
var environment;
const env0_0 = a0;
const value = environment.__proto__;
const matchData_92840 = getMatchData_92840(a0);
const env0_1 = matchData_92840.guildId;
const env0_2 = matchData_92840.channelId;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun92843);
function _fun92843() { // fn#92843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:764, offset: 0x0209afec, size: 46 bytes, params: 1, frame: 12
return env1_0({path: env0_0, guildId: guildId, channelId: channelId});
}
}
function resetPath(a0) { // fn#92844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:805, offset: 0x0209b01a, size: 81 bytes, params: 2, frame: 13
var environment;
const env0_0 = a0;
const value = environment.__proto__;
const matchData_92840 = getMatchData_92840(a0);
const env0_1 = matchData_92840.guildId;
const env0_2 = matchData_92840.channelId;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun92845);
function _fun92845() { // fn#92845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12267:888, offset: 0x0209b06b, size: 53 bytes, params: 1, frame: 12
return env1_0({path: null, guildId: guildId, channelId: channelId, basePath: env0_0});
}
}
}
}
global.__d(_fun92839, 12081, [661, 3974, 3987, 685, 690,
2]) /* metro module 12081, dependencies: [661, 3974, 3987, 685, 690, 2] */;