69 lines
3.6 KiB
TypeScript
69 lines
3.6 KiB
TypeScript
/* Metro module 14661; source: modules/premium/powerups/native/GuildPowerupsPerksSection.tsx; dependencies: [27, 33, 4501, 697, 14630, 1244, 2256, 14662, 14664, 14671, 2] */
|
|
function _fun110721(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14858:6, offset: 0x02384127, size: 231 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.Fragment;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
const env0_7 = Reflect.apply(createStyles, value, [{container: {flexDirection: 'column', gap: PX_16}}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsPerksSection.tsx');
|
|
exports.default = GuildPowerupPerksSection;
|
|
}
|
|
|
|
function GuildPowerupPerksSection({guildId, listings}) { // fn#110722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14858:342, offset: 0x0238420e, size: 241 bytes, params: 2, frame: 28
|
|
const styles = useStyles();
|
|
const jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
|
|
const GuildPowerupsSectionHeader = importDefault(14630) /* metro dependency 14630: GuildPowerupsSectionHeader */;
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const TV3Vm8 = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TV3Vm8;
|
|
object.title = Reflect.apply(string, intl, [TV3Vm8]);
|
|
string = intl.string;
|
|
const STx9hp = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).STx9hp;
|
|
object.description = Reflect.apply(string, intl, [STx9hp]);
|
|
return (
|
|
<>
|
|
<GuildPowerupsSectionHeader {...object} />
|
|
<View style={styles.container}>
|
|
{listings.map(_fun110723)}
|
|
</View>
|
|
</>
|
|
);
|
|
}
|
|
|
|
function _fun110723(a0, a1) { // fn#110723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14858:574, offset: 0x023842ff, size: 295 bytes, params: 3, frame: 20
|
|
var value;
|
|
var object;
|
|
var powerup;
|
|
const type = a0.type;
|
|
if (type === 'singlePerk') {
|
|
value = environment.__proto__;
|
|
value = importDefault(14662) /* metro dependency 14662: GuildPowerupsSinglePerkCard */;
|
|
var valueProps = {guildId: guildId};
|
|
powerup = a0.powerup;
|
|
valueProps.powerup = powerup;
|
|
valueProps.badge = a0.badge;
|
|
powerup = a0.powerup;
|
|
return ((Component) => <Component {...valueProps} key={powerup.skuId} />)(value);
|
|
}
|
|
if (type === 'multiPerk') {
|
|
value = environment.__proto__;
|
|
value = importDefault(14664) /* metro dependency 14664: GuildPowerupsMultiPerkCard */;
|
|
return ((Component) => <Component guildId={guildId} listing={a0} key={'' + a0.group + '-' + a1} />)(value);
|
|
}
|
|
if (type === 'gameServer') {
|
|
value = environment.__proto__;
|
|
value = importDefault(14671) /* metro dependency 14671: GuildPowerupsGameServerCard */;
|
|
return ((Component) => <Component guildId={guildId} key={'game-server-' + a1} />)(value);
|
|
}
|
|
return null;
|
|
}
|
|
|