80 lines
4.0 KiB
TypeScript
80 lines
4.0 KiB
TypeScript
/* Metro module 9307; source: modules/guild_badge/GuildBadgeConstants.tsx; dependencies: [6918, 1244, 6917, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as BadgeCategoryModule from './BadgeCategory.tsx'; /* Metro dependency 6917 */
|
|
import * as GuildTraitsModule from './GuildTraits.tsx'; /* Metro dependency 6918 */
|
|
|
|
function _fun72737(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9493:6, offset: 0x01d511d9, size: 96 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/guild_badge/GuildBadgeConstants.tsx');
|
|
exports.getBadgeTooltip = getBadgeTooltip;
|
|
function getBadgeTooltip(a0, a1) { // fn#72738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9493:187, offset: 0x01d51239, size: 1239 bytes, params: 3, frame: 18
|
|
const intl = (IndexNativeModule).intl;
|
|
var string;
|
|
const t = (IndexNativeModule).t;
|
|
var object;
|
|
var lMrv96;
|
|
const GuildVisibility = (GuildTraitsModule).GuildVisibility;
|
|
const PUBLIC = GuildVisibility.PUBLIC;
|
|
const r2 = a1 === PUBLIC ? intl.string(t.op2cJ6) : a1 === GuildVisibility.APPLY_TO_JOIN ? intl.string(t.YwZfbt) : intl.string(t.TME4LJ);
|
|
const BadgeCategory = (BadgeCategoryModule).BadgeCategory;
|
|
const STAFF = BadgeCategory.STAFF;
|
|
if (STAFF === a0) {
|
|
object = {};
|
|
string = intl.string;
|
|
lMrv96 = t.lMrv96;
|
|
object.tooltipTitle = Reflect.apply(string, intl, [lMrv96]);
|
|
string = intl.string;
|
|
lMrv96 = t.lMrv96;
|
|
object.tooltipSubtitle = Reflect.apply(string, intl, [lMrv96]);
|
|
string = intl.string;
|
|
lMrv96 = t.lMrv96;
|
|
object.tooltipDescription = Reflect.apply(string, intl, [lMrv96]);
|
|
} else {
|
|
var VERIFIED = BadgeCategory.VERIFIED;
|
|
if (VERIFIED === a0) {
|
|
object = {};
|
|
object.tooltipTitle = intl.string(t.K7iRig);
|
|
object.tooltipSubtitle = intl.string(t.iCehw9);
|
|
object.tooltipDescription = r2;
|
|
return object;
|
|
}
|
|
var PARTNERED = BadgeCategory.PARTNERED;
|
|
if (PARTNERED === a0) {
|
|
object = {};
|
|
object.tooltipTitle = intl.string(t.K7iRig);
|
|
object.tooltipSubtitle = intl.string(t.hfYfEE);
|
|
object.tooltipDescription = r2;
|
|
return object;
|
|
}
|
|
var VERIFIED_AND_PARTNERED = BadgeCategory.VERIFIED_AND_PARTNERED;
|
|
if (VERIFIED_AND_PARTNERED === a0) {
|
|
object = {};
|
|
object.tooltipTitle = intl.string(t.K7iRig);
|
|
object.tooltipSubtitle = intl.string(t['TX+iFC']);
|
|
object.tooltipDescription = r2;
|
|
return object;
|
|
}
|
|
var COMMUNITY = BadgeCategory.COMMUNITY;
|
|
if (COMMUNITY === a0) {
|
|
return {tooltipTitle: intl.string(t.K7iRig), tooltipDescription: r2};
|
|
}
|
|
var DISCOVERABLE = BadgeCategory.DISCOVERABLE;
|
|
if (DISCOVERABLE === a0) {
|
|
object = {};
|
|
object.tooltipTitle = intl.string(t.K7iRig);
|
|
object.tooltipDescription = intl.string(t.op2cJ6);
|
|
return object;
|
|
}
|
|
object = {};
|
|
object.tooltipTitle = intl.string(t['iZRkC/']);
|
|
}
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun72737, 9307, [6918, 1244, 6917, 2]) /* metro module 9307, dependencies: [6918, 1244, 6917, 2] */;
|