decord/source/modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx

72 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11781
// Function ID: 11782
2026-07-20 16:05:17 +00:00
// Name: PX_16
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 712, 501, 4668, 11770, 1236, 2368, 11782, 11783, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11781 (PX_16)
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import items2 from "items" /* 11782 */;
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import PlatformTypes from "PlatformTypes" /* 501 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, Fragment: closure_6, jsxs: error } = jsxProd);
2026-08-24 06:08:38 +00:00
const PX_16 = ThemesDefault.space.PX_16;
2026-07-20 16:05:17 +00:00
let num = 325;
2026-07-29 08:29:29 +00:00
if (PlatformTypes.isIOS()) {
2026-07-20 16:05:17 +00:00
num = 300;
}
2026-07-29 08:29:29 +00:00
PlatformTypes = { cardContainer: { width: 250, marginEnd: PX_16, flex: 1 }, scroller: null, scrollerContent: null };
2026-08-24 06:08:38 +00:00
PlatformTypes = { height: num, paddingBottom: ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
PlatformTypes[1] = PlatformTypes;
2026-08-24 06:08:38 +00:00
createCacheKey = { paddingHorizontal: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
PlatformTypes[2] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_9 = createCacheKey.createStyles(PlatformTypes);
const result = require("set").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsLevelsSection(arg0) {
2026-07-23 10:11:24 +00:00
({ guildId: require, listings } = arg0);
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
2026-07-29 08:29:29 +00:00
let memo;
2026-08-24 06:08:38 +00:00
closure_4 = undefined;
const tmp = callback3();
2026-07-29 08:29:29 +00:00
dependencyMap = tmp;
2026-07-20 16:05:17 +00:00
const items = [listings];
2026-07-23 10:11:24 +00:00
memo = memo.useMemo(() => {
2026-07-20 16:05:17 +00:00
const found = listings.filter((type) => "singleLevel" === type.type);
return found.map((powerup) => powerup.powerup);
}, items);
2026-07-29 08:29:29 +00:00
closure_4 = memo.useRef(false);
let obj = { children: null };
2026-07-23 10:11:24 +00:00
const callback = memo.useCallback((current) => {
2026-07-20 16:05:17 +00:00
closure_4.current = current;
}, []);
2026-07-29 08:29:29 +00:00
obj = { title: null, description: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(listings(2368)["TXY/b0"]);
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(listings(2368).aJv4PB);
const items1 = [callback(listings(11770), obj), ];
obj = {
cardMarginRight: PX_16,
cardWidth: 250,
contentContainerStyle: tmp.scrollerContent,
itemCount: memo.length,
onScrollingChange: callback,
style: tmp.scroller,
children: memo.map((powerup, index) => {
obj = { style: cardContainer.cardContainer, children: closure_1_5(listings(cardContainer[10]), obj) };
obj = { guildId: closure_0, powerup, nextPowerup: memo[index + 1], index, isScrollingRef: closure_4 };
return closure_1_5(closure_4, obj, powerup.skuId);
})
};
items1[1] = callback(items2.MarketingCardsScroller, obj);
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-20 16:05:17 +00:00
return callback2(closure_6, obj);
};