74 lines
3.4 KiB
TypeScript
74 lines
3.4 KiB
TypeScript
/* Metro module 9307; source: modules/guild_badge/GuildBadgeConstants.tsx; dependencies: [6918, 1244, 6917, 2] */
|
|
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});
|
|
(require(2) /* metro dependency 2 */).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 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var object2;
|
|
var lMrv96;
|
|
const GuildVisibility = (require(6918) /* metro dependency 6918: GuildTraits */).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 = (require(6917) /* metro dependency 6917: BadgeCategory */).BadgeCategory;
|
|
const STAFF = BadgeCategory.STAFF;
|
|
if (STAFF === a0) {
|
|
object2 = {};
|
|
string = intl.string;
|
|
lMrv96 = t.lMrv96;
|
|
object2.tooltipTitle = Reflect.apply(string, intl, [lMrv96]);
|
|
string = intl.string;
|
|
lMrv96 = t.lMrv96;
|
|
object2.tooltipSubtitle = Reflect.apply(string, intl, [lMrv96]);
|
|
string = intl.string;
|
|
lMrv96 = t.lMrv96;
|
|
object2.tooltipDescription = Reflect.apply(string, intl, [lMrv96]);
|
|
} else {
|
|
var VERIFIED = BadgeCategory.VERIFIED;
|
|
if (VERIFIED === a0) {
|
|
object2 = {};
|
|
object2.tooltipTitle = intl.string(t.K7iRig);
|
|
object2.tooltipSubtitle = intl.string(t.iCehw9);
|
|
object2.tooltipDescription = r2;
|
|
return object2;
|
|
}
|
|
var PARTNERED = BadgeCategory.PARTNERED;
|
|
if (PARTNERED === a0) {
|
|
object2 = {};
|
|
object2.tooltipTitle = intl.string(t.K7iRig);
|
|
object2.tooltipSubtitle = intl.string(t.hfYfEE);
|
|
object2.tooltipDescription = r2;
|
|
return object2;
|
|
}
|
|
var VERIFIED_AND_PARTNERED = BadgeCategory.VERIFIED_AND_PARTNERED;
|
|
if (VERIFIED_AND_PARTNERED === a0) {
|
|
object2 = {};
|
|
object2.tooltipTitle = intl.string(t.K7iRig);
|
|
object2.tooltipSubtitle = intl.string(t['TX+iFC']);
|
|
object2.tooltipDescription = r2;
|
|
return object2;
|
|
}
|
|
var COMMUNITY = BadgeCategory.COMMUNITY;
|
|
if (COMMUNITY === a0) {
|
|
return {tooltipTitle: intl.string(t.K7iRig), tooltipDescription: r2};
|
|
}
|
|
var DISCOVERABLE = BadgeCategory.DISCOVERABLE;
|
|
if (DISCOVERABLE === a0) {
|
|
object2 = {};
|
|
object2.tooltipTitle = intl.string(t.K7iRig);
|
|
object2.tooltipDescription = intl.string(t.op2cJ6);
|
|
return object2;
|
|
}
|
|
object2 = {};
|
|
object2.tooltipTitle = intl.string(t['iZRkC/']);
|
|
}
|
|
return object2;
|
|
}
|
|
|