90 lines
4.4 KiB
TypeScript
90 lines
4.4 KiB
TypeScript
/* Metro module 14647; source: modules/premium/powerups/hooks/useGuildPowerupLevelPerks.tsx; dependencies: [31, 8259, 8249, 1244, 2256, 1360, 2] */
|
|
function _fun110657(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14844:6, offset: 0x02381ae3, size: 143 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(8259) /* metro dependency 8259: GuildPowerupsConstants */).GUILD_FEATURE_TO_PERK;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/hooks/useGuildPowerupLevelPerks.tsx');
|
|
exports.default = useGuildPowerupLevelPerks;
|
|
}
|
|
|
|
function useGuildPowerupLevelPerks(a0) { // fn#110658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14844:242, offset: 0x02381b72, size: 109 bytes, params: 2, frame: 17
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const {includeEmojis, includeStickers, includeSoundboards} = value !== undefined ? value : {'includeEmojis': true,
|
|
'includeStickers': true, 'includeSoundboards': true};
|
|
return includeSoundboards.useMemo(_fun110659, [a0, includeEmojis, includeStickers, includeSoundboards]);
|
|
}
|
|
|
|
function _fun110659() { // fn#110659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14844:415, offset: 0x02381bdf, size: 584 bytes, params: 1, frame: 22
|
|
var push;
|
|
var object7;
|
|
const PerkIcons = (require(8249) /* metro dependency 8249: GuildBoostingUtils */).PerkIcons;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var formatToPlainString;
|
|
var property;
|
|
var object8;
|
|
var binding;
|
|
var features;
|
|
var object9;
|
|
var ZEvvPz;
|
|
var object10;
|
|
var object11;
|
|
var object12;
|
|
const items2 = [];
|
|
const env0_0 = GUILD_FEATURE_TO_PERK();
|
|
if (includeEmojis) {
|
|
push = items2.push;
|
|
object7 = {};
|
|
object7.perkIcon = PerkIcons.EMOJI;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['NXvV0+'];
|
|
object8 = {};
|
|
binding = env0_0;
|
|
features = binding.features;
|
|
object8.totalEmojis = features.total_emoji_slots;
|
|
features = binding.features;
|
|
object8.additionalEmojis = features.additional_emoji_slots;
|
|
object7.description = Reflect.apply(formatToPlainString, intl, [property, object8]);
|
|
Reflect.apply(push, items2, [object7]);
|
|
}
|
|
if (includeStickers) {
|
|
push = items2.push;
|
|
object9 = {};
|
|
object9.perkIcon = PerkIcons.STICKER;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
ZEvvPz = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).ZEvvPz;
|
|
object10 = {};
|
|
binding = env0_0;
|
|
features = binding.features;
|
|
object10.totalStickers = features.total_sticker_slots;
|
|
features = binding.features;
|
|
object10.additionalStickers = features.additional_sticker_slots;
|
|
object9.description = Reflect.apply(formatToPlainString, intl, [ZEvvPz, object10]);
|
|
Reflect.apply(push, items2, [object9]);
|
|
}
|
|
if (includeSoundboards) {
|
|
push = items2.push;
|
|
object11 = {};
|
|
object11.perkIcon = PerkIcons.SOUNDBOARD;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['s9u/E7'];
|
|
object12 = {};
|
|
binding = env0_0;
|
|
features = binding.features;
|
|
object12.totalSoundboards = features.total_sound_slots;
|
|
features = binding.features;
|
|
object12.additionalSoundboards = features.additional_sound_slots;
|
|
object11.description = Reflect.apply(formatToPlainString, intl, [property, object12]);
|
|
Reflect.apply(push, items2, [object11]);
|
|
}
|
|
const concat = items2.concat;
|
|
features = env0_0.features;
|
|
features = features.features;
|
|
const value3 = features.map(_fun110660);
|
|
return Reflect.apply(concat, items2,
|
|
[value3.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish)]);
|
|
}
|
|
|