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

67 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 11984
// Function ID: 11985
2026-07-20 16:05:17 +00:00
// Name: PX_16
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 17, 21, 712, 501, 4342, 11973, 1236, 2335, 11985, 11986, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 07:00:46 +00:00
// Module 11984 (PX_16)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import PlatformTypes from "PlatformTypes";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, Fragment: closure_6, jsxs: error } = jsxProd);
const PX_16 = require("Themes").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 };
PlatformTypes = { height: num, paddingBottom: require("Themes").space.PX_8 };
PlatformTypes[1] = PlatformTypes;
createCacheKey = { paddingHorizontal: require("Themes").space.PX_16 };
PlatformTypes[2] = createCacheKey;
PlatformTypes = createCacheKey.createStyles(PlatformTypes);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsLevelsSection(arg0) {
let listings;
2026-07-23 10:11:24 +00:00
let require;
({ guildId: require, listings } = arg0);
2026-07-29 08:29:29 +00:00
let dependencyMap;
let memo;
let closure_4;
const tmp = PlatformTypes();
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 };
const intl = require(1236) /* getSystemLocale */.intl;
2026-08-11 06:20:06 +00:00
obj[0] = intl.string(listings(2335)["TXY/b0"]);
2026-07-29 08:29:29 +00:00
const intl2 = require(1236) /* getSystemLocale */.intl;
2026-08-11 06:20:06 +00:00
obj[1] = intl2.string(listings(2335).aJv4PB);
2026-08-13 07:00:46 +00:00
const items1 = [callback(listings(11973), obj), ];
2026-07-29 08:29:29 +00:00
obj = { cardMarginRight: PX_16, cardWidth: 250, contentContainerStyle: tmp.scrollerContent, itemCount: memo.length, onScrollingChange: callback, style: tmp.scroller, children: null };
obj[6] = memo.map((powerup, index) => {
obj = { style: _undefined.cardContainer, children: outer1_5(listings(_undefined[10]), obj) };
obj = { guildId: closure_0, powerup, nextPowerup: memo[index + 1], index, isScrollingRef: closure_4 };
return outer1_5(closure_4, obj, powerup.skuId);
});
2026-08-13 07:00:46 +00:00
items1[1] = callback(require(11985) /* items */.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);
};