/* Metro module 6892; source: modules/favorites/FavoritesUtils.tsx; dependencies: [1417, 661, 1244, 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 FavoritesConstantsModule from './FavoritesConstants.tsx'; /* Metro dependency 1417 */ function _fun54735(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7070:6, offset: 0x0136cf81, size: 163 bytes, params: 8, frame: 19 const env0_0 = require; const isFavoritesGuildId2 = isFavoritesGuildId; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/favorites/FavoritesUtils.tsx'); exports.getFavoritesAwareGuildName = getFavoritesAwareGuildName; exports.isFavoritesGuildId = isFavoritesGuildId2; exports.canFavoriteChannelType = function(a0, a1) { var r0; var isThread; var value = a1; var isCategory = a0.isCategory(); if (isCategory) { r0 = !isCategory; } else { isThread = a0.isThread(); r0 = isThread ? value : !isThread; } return r0; }; function isFavoritesGuildId(a0) { // fn#54736, offset: 0x0136d024, size: 27 bytes, params: 2, frame: 4 return a0 === FAVORITES_RAW_GUILD_ID || a0 === FAVORITES; } function getFavoritesAwareGuildName(a0) { // fn#54737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7070:299, offset: 0x0136d03f, size: 99 bytes, params: 2, frame: 15 var r0; var intl; if (a0 != null) { if (isFavoritesGuildId(a0.id)) { intl = (require(1244) /* metro dependency 1244: indexNative */).intl; r0 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wMWyci); } else { r0 = a0.name; } return r0; } } } global.__d(_fun54735, 6892, [1417, 661, 1244, 2]) /* metro module 6892, dependencies: [1417, 661, 1244, 2] */;