decord/source/modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

68 lines
2.7 KiB
TypeScript

// Module ID: 12706
// Function ID: 12707
// Name: GuildPowerupsLevelsSection
// Dependencies: [19, 17, 21, 576, 1365, 4638, 12695, 1115, 2429, 12707, 12708, 2]
// Exports: default
// Module 12706 (GuildPowerupsLevelsSection)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1115 */;
import MarketingCardsScroller from "MarketingCardsScroller" /* 12707 */;
import GuildPowerupsLevelCardDefault from "GuildPowerupsLevelCard" /* 12708 */;
import noop from "module_19" /* 19 */;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, Fragment: metroRequire, jsxs: closure_7 } = jsxProd);
const PX_16 = nativeDefault.space.PX_16;
const PlatformUtils = fn(1365);
let num = 325;
if (PlatformUtils.isIOS()) {
num = 300;
}
const createStyles = fn(4638);
const obj3 = { cardContainer: { width: 250, marginEnd: PX_16, flex: 1 }, scroller: { height: num, paddingBottom: nativeDefault.space.PX_8 }, scrollerContent: null };
const obj4 = { height: num, paddingBottom: nativeDefault.space.PX_8 };
obj3.scrollerContent = { paddingHorizontal: nativeDefault.space.PX_16 };
let closure_9 = createStyles.createStyles(obj3);
const size = fn(2);
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx");
export default function GuildPowerupsLevelsSection(arg0) {
({ guildId: require, listings } = arg0);
let memo;
const tmp = closure_9();
dependencyMap = tmp;
const items = [listings];
memo = memo.useMemo(() => {
const found = listings.filter((type) => "singleLevel" === type.type);
return found.map((powerup) => powerup.powerup);
}, items);
const isScrollingRef = memo.useRef(false);
let obj = { children: null };
const callback = memo.useCallback((current) => {
closure_4.current = current;
}, []);
const obj2 = { title: null, description: null };
const intl = util.intl;
obj2.title = intl.string(listings(2429)["TXY/b0"]);
const intl2 = util.intl;
obj2.description = intl2.string(listings(2429).aJv4PB);
const items1 = [closure_5(listings(12695), obj2), ];
const tmp3 = listings(12695);
items1[1] = closure_5(MarketingCardsScroller.MarketingCardsScroller, {
cardMarginRight: PX_16,
cardWidth: 250,
contentContainerStyle: tmp.scrollerContent,
itemCount: memo.length,
onScrollingChange: callback,
style: tmp.scroller,
children: memo.map((powerup, index) => {
const obj = { style: cardContainer.cardContainer, children: hasOwnProperty(GuildPowerupsLevelCardDefault, { guildId, powerup, nextPowerup: memo[index + 1], index, isScrollingRef }) };
return hasOwnProperty(View, obj, powerup.skuId);
})
});
obj.children = items1;
return closure_7(closure_6, obj);
};