101 lines
5.7 KiB
TypeScript
101 lines
5.7 KiB
TypeScript
/* Metro module 14647; source: modules/premium/powerups/hooks/useGuildPowerupLevelPerks.tsx; dependencies: [31, 8259, 8249, 1244, 2256, 1360, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as GlobalUtilsModule from '../../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
|
|
import * as GuildBoostingUtilsModule from '../../../../utils/GuildBoostingUtils.tsx'; /* Metro dependency 8249 */
|
|
import * as GuildPowerupsConstantsModule from '../constants/GuildPowerupsConstants.tsx'; /* Metro dependency 8259 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 object;
|
|
const PerkIcons = (GuildBoostingUtilsModule).PerkIcons;
|
|
const intl = (IndexNativeModule).intl;
|
|
var formatToPlainString;
|
|
var property;
|
|
var object2;
|
|
var binding;
|
|
var features;
|
|
var object3;
|
|
var ZEvvPz;
|
|
var object4;
|
|
var object5;
|
|
var object6;
|
|
const items2 = [];
|
|
const env0_0 = GUILD_FEATURE_TO_PERK();
|
|
if (includeEmojis) {
|
|
push = items2.push;
|
|
object = {};
|
|
object.perkIcon = PerkIcons.EMOJI;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['NXvV0+'];
|
|
object2 = {};
|
|
binding = env0_0;
|
|
features = binding.features;
|
|
object2.totalEmojis = features.total_emoji_slots;
|
|
features = binding.features;
|
|
object2.additionalEmojis = features.additional_emoji_slots;
|
|
object.description = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
|
Reflect.apply(push, items2, [object]);
|
|
}
|
|
if (includeStickers) {
|
|
push = items2.push;
|
|
object3 = {};
|
|
object3.perkIcon = PerkIcons.STICKER;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
ZEvvPz = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).ZEvvPz;
|
|
object4 = {};
|
|
binding = env0_0;
|
|
features = binding.features;
|
|
object4.totalStickers = features.total_sticker_slots;
|
|
features = binding.features;
|
|
object4.additionalStickers = features.additional_sticker_slots;
|
|
object3.description = Reflect.apply(formatToPlainString, intl, [ZEvvPz, object4]);
|
|
Reflect.apply(push, items2, [object3]);
|
|
}
|
|
if (includeSoundboards) {
|
|
push = items2.push;
|
|
object5 = {};
|
|
object5.perkIcon = PerkIcons.SOUNDBOARD;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['s9u/E7'];
|
|
object6 = {};
|
|
binding = env0_0;
|
|
features = binding.features;
|
|
object6.totalSoundboards = features.total_sound_slots;
|
|
features = binding.features;
|
|
object6.additionalSoundboards = features.additional_sound_slots;
|
|
object5.description = Reflect.apply(formatToPlainString, intl, [property, object6]);
|
|
Reflect.apply(push, items2, [object5]);
|
|
}
|
|
const concat = items2.concat;
|
|
features = env0_0.features;
|
|
features = features.features;
|
|
const value3 = features.map(_fun110660);
|
|
return Reflect.apply(concat, items2,
|
|
[value3.filter((GlobalUtilsModule).isNotNullish)]);
|
|
function _fun110660(a0) { // fn#110660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14844:1110, offset: 0x00c3fbaf, size: 16 bytes, params: 2, frame: 2
|
|
return env0_0[a0];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110657, 14647, [31, 8259, 8249, 1244, 2256, 1360,
|
|
2]) /* metro module 14647, dependencies: [31, 8259, 8249, 1244, 2256, 1360, 2] */;
|