49 lines
2.4 KiB
TypeScript
49 lines
2.4 KiB
TypeScript
/* Metro module 3987; source: modules/routing/RouteUtils.tsx; dependencies: [662, 1386, 2, 3988] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as RouteConstantsModule from './RouteConstants.tsx'; /* Metro dependency 662 */
|
|
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
|
|
import * as RouteParamModule from './RouteParam.tsx'; /* Metro dependency 3988 */
|
|
|
|
function _fun32781(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4145:6, offset: 0x0101e19c, size: 197 bytes, params: 8, frame: 19
|
|
const closure = function(a0) {
|
|
return PSEUDO_GUILD_IDS.includes(a0);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = RegExp('^\\d+$', '');
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/routing/RouteUtils.tsx');
|
|
const RouteParam = (RouteParamModule).RouteParam;
|
|
exports.RouteParam = RouteParam;
|
|
exports.isPseudoGuildId = closure;
|
|
exports.isValidGuildId = isValidGuildId;
|
|
exports.isValidChannelId = isValidChannelId;
|
|
function isValidGuildId(a0) { // fn#32783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4145:360, offset: 0x0101e261, size: 60 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var isPseudoGuildId2;
|
|
const value = a0 != null;
|
|
if (value) {
|
|
isPseudoGuildId2 = isPseudoGuildId(a0);
|
|
r0 = isPseudoGuildId2 ? !!isPseudoGuildId2 : !!env0_2.test(a0);
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function isValidChannelId(a0) { // fn#32784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4145:459, offset: 0x0101e29d, size: 60 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var value2;
|
|
const value = a0 == null;
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value2 = env0_2.test(a0);
|
|
r0 = value2 ? !!value2 : !!isStaticChannelRoute(a0);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun32781, 3987, [662, 1386, 2, 3988]) /* metro module 3987, dependencies: [662, 1386, 2, 3988] */;
|