Files
discord-decomp/sources/modules/premium/powerups/native/GuildPowerupsPerksSection.tsx
T
2026-07-28 01:06:53 +03:00

77 lines
4.5 KiB
TypeScript

/* Metro module 14661; source: modules/premium/powerups/native/GuildPowerupsPerksSection.tsx; dependencies: [27, 33, 4501, 697, 14630, 1244, 2256, 14662, 14664, 14671, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GuildPowerupsMessages from '../GuildPowerups.messages.js'; /* Metro dependency 2256 */
import GuildPowerupsSectionHeader from './GuildPowerupsSectionHeader.tsx'; /* Metro dependency 14630 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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});
let value = JsxRuntimeModule;
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 = (Native).space.PX_16;
const env0_7 = Reflect.apply(createStyles, value, [{container: {flexDirection: 'column', gap: PX_16}}]);
(FileImportTrackerModule).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 object2 = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const TV3Vm8 = (GuildPowerupsMessages).TV3Vm8;
object2.title = Reflect.apply(string, intl, [TV3Vm8]);
string = intl.string;
const STx9hp = (GuildPowerupsMessages).STx9hp;
object2.description = Reflect.apply(string, intl, [STx9hp]);
return (
<>
<GuildPowerupsSectionHeader {...object2} />
<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 object2;
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;
}
}
}
global.__d(_fun110721, 14661, [27, 33, 4501, 697, 14630, 1244, 2256, 14662, 14664, 14671,
2]) /* metro module 14661, dependencies: [27, 33, 4501, 697, 14630, 1244, 2256, 14662, 14664, 14671, 2] */;