decord/source/modules/quests/native/BountiesModal/BountiesScrollRecapPage.tsx

132 lines
6.9 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14471
// Function ID: 14472
2026-07-20 16:05:17 +00:00
// Name: BountiesRecapOrbsBackground
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 4669, 21, 712, 4668, 500, 9254, 14472, 9055, 14473, 1629, 589, 14474, 4739, 1236, 9275, 4750, 2]
2026-07-20 16:05:17 +00:00
// Exports: BountiesScrollRecapPage
2026-08-24 06:08:38 +00:00
// Module 14471 (BountiesRecapOrbsBackground)
import noopAll from "noop" /* 19 */;
import set from "set" /* 500 */;
import initialize from "initialize" /* 589 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1629 */;
import Text from "Text" /* 4739 */;
import Button from "Button" /* 4750 */;
import VideoComponent from "VideoComponent" /* 9055 */;
import OrbsIcon from "OrbsIcon" /* 9275 */;
import metadataDefault from "metadata" /* 14472 */;
import metadataDefault2 from "metadata" /* 14473 */;
import metadataDefault3 from "metadata" /* 14474 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import closure_5 from "maybeApplyNoTextColorForLightCustomTheme" /* 4669 */;
import jsxProd from "jsxProd" /* 21 */;
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-20 16:05:17 +00:00
function BountiesRecapOrbsBackground(arg0) {
({ style, reducedMotion } = arg0);
2026-08-24 06:08:38 +00:00
let obj = set;
2026-07-20 16:05:17 +00:00
if (obj.isAndroid()) {
2026-07-29 08:29:29 +00:00
obj = { style: null, needsOffscreenAlphaCompositing: true, renderToHardwareTextureAndroid: true, pointerEvents: "none", children: null };
obj[0] = style;
obj = { url: null, style: null, autoplay: null };
2026-08-24 06:08:38 +00:00
obj[0] = metadataDefault;
2026-07-29 08:29:29 +00:00
obj[1] = closure_3.absoluteFillObject;
obj[2] = !reducedMotion;
2026-08-24 06:08:38 +00:00
obj[4] = tmp3(tmp(9254).APNGPlayer, obj);
2026-07-29 08:29:29 +00:00
let tmp3Result = tmp3(closure_4, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
obj1 = { source: null, style: null, resizeMode: "contain", paused: null, disableFocus: true, preventsDisplaySleepDuringVideoPlayback: false, importantForAccessibility: "no-hide-descendants" };
2026-07-29 08:29:29 +00:00
const obj2 = { uri: null };
2026-08-24 06:08:38 +00:00
obj2[0] = metadataDefault2;
2026-07-29 08:29:29 +00:00
obj1[0] = obj2;
obj1[1] = style;
obj1[3] = reducedMotion;
2026-08-24 06:08:38 +00:00
tmp3Result = tmp3(tmp(9055).VideoComponent, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp3Result;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ StyleSheet: c3, View: c4 } = get_ActivityIndicator);
({ jsx: closure_6, jsxs: error } = jsxProd);
2026-08-24 06:08:38 +00:00
const lg = ThemesDefault.radii.lg;
2026-07-29 08:29:29 +00:00
let closure_9 = createCacheKey.createStyles(() => {
let obj = { root: null, content: null, centeredCopy: null, orbsBackground: null, headerLabel: null, titleRow: null, actions: null, orbAmount: null };
2026-08-24 06:08:38 +00:00
obj = { overflow: "hidden", borderRadius: lg, backgroundColor: ThemesDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
obj = { flex: 1, paddingHorizontal: ThemesDefault.space.PX_24, justifyContent: "center", alignItems: "center" };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
obj[2] = { alignItems: "center", width: "100%" };
obj[3] = { position: "absolute", top: 0, left: 0, right: 0, height: "40%", zIndex: 1 };
2026-08-24 06:08:38 +00:00
obj[4] = { paddingBottom: ThemesDefault.space.PX_4, textTransform: "uppercase" };
obj1 = { paddingBottom: ThemesDefault.space.PX_4, textTransform: "uppercase" };
obj[5] = { flexDirection: "row", alignItems: "center", justifyContent: "center", paddingBottom: ThemesDefault.space.PX_24, gap: ThemesDefault.space.PX_8 };
const obj2 = { flexDirection: "row", alignItems: "center", justifyContent: "center", paddingBottom: ThemesDefault.space.PX_24, gap: ThemesDefault.space.PX_8 };
obj[6] = { position: "absolute", left: ThemesDefault.space.PX_24, right: ThemesDefault.space.PX_24, gap: ThemesDefault.space.PX_12 };
const obj3 = { position: "absolute", left: ThemesDefault.space.PX_24, right: ThemesDefault.space.PX_24, gap: ThemesDefault.space.PX_12 };
2026-07-20 16:05:17 +00:00
let num = 0;
2026-07-29 08:29:29 +00:00
if (obj7.isIOS()) {
2026-07-20 16:05:17 +00:00
num = 6;
}
2026-07-29 08:29:29 +00:00
obj[7] = { marginTop: num, lineHeight: 46 };
2026-07-20 16:05:17 +00:00
return obj;
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/quests/native/BountiesModal/BountiesScrollRecapPage.tsx");
2026-07-20 16:05:17 +00:00
export const BountiesScrollRecapPage = function BountiesScrollRecapPage(orbAmount) {
orbAmount = orbAmount.orbAmount;
({ onClose, style } = orbAmount);
const tmp = callback3();
2026-08-24 06:08:38 +00:00
let obj = initialize;
const items = [closure_5];
2026-07-29 08:29:29 +00:00
const stateFromStores = obj.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
obj = { style: items1, pointerEvents: "box-none", children: null };
2026-07-23 10:11:24 +00:00
items1 = [tmp.root, style];
2026-07-29 08:29:29 +00:00
obj = { style: closure_3.absoluteFillObject, pointerEvents: "none", children: null };
2026-08-24 06:08:38 +00:00
obj1 = { source: null, style: null, resizeMode: "cover", paused: null, disableFocus: true, preventsDisplaySleepDuringVideoPlayback: false, importantForAccessibility: "no-hide-descendants" };
const tmp2 = useSafeAreaInsetsDefault();
obj1[0] = { uri: metadataDefault3 };
2026-07-29 08:29:29 +00:00
obj1[1] = closure_3.absoluteFillObject;
obj1[3] = stateFromStores;
2026-08-24 06:08:38 +00:00
const items2 = [callback(VideoComponent.VideoComponent, obj1), callback(BountiesRecapOrbsBackground, { style: tmp.orbsBackground, reducedMotion: stateFromStores })];
2026-07-29 08:29:29 +00:00
obj[2] = items2;
2026-07-20 16:05:17 +00:00
const items3 = [callback2(closure_4, obj), ];
2026-07-29 08:29:29 +00:00
const obj4 = { style: tmp.content, pointerEvents: "box-none", children: null };
const obj5 = { style: tmp.centeredCopy, pointerEvents: "none", children: null };
const obj6 = { variant: "text-xs/bold", color: "text-brand", style: tmp.headerLabel, children: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj6[3] = intl.string(getSystemLocale.t.d6Rrn6);
const items4 = [callback(Text.Text, obj6), , ];
2026-07-29 08:29:29 +00:00
const obj7 = { accessible: true, accessibilityRole: "text", accessibilityLabel: "+" + orbAmount, children: null };
const obj8 = { style: tmp.titleRow, children: null };
2026-08-24 06:08:38 +00:00
const items5 = [callback(OrbsIcon.OrbsIcon, { size: "lg", color: "icon-strong", accessible: false }), ];
const obj2 = { uri: metadataDefault3 };
const obj3 = { style: tmp.orbsBackground, reducedMotion: stateFromStores };
items5[1] = callback(Text.Text, { variant: "display-lg", color: "text-strong", accessible: false, style: tmp.orbAmount, children: "+" + orbAmount });
2026-07-29 08:29:29 +00:00
obj8[1] = items5;
obj7[3] = callback2(closure_4, obj8);
2026-07-20 16:05:17 +00:00
items4[1] = callback(closure_4, obj7);
2026-07-29 08:29:29 +00:00
const obj10 = { variant: "text-md/medium", color: "text-muted", style: { textAlign: "center" }, children: null };
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
obj10[3] = intl2.string(getSystemLocale.t.x0Ffz3);
items4[2] = callback(Text.Text, obj10);
2026-07-29 08:29:29 +00:00
obj5[2] = items4;
2026-07-20 16:05:17 +00:00
const items6 = [callback2(closure_4, obj5), ];
2026-07-29 08:29:29 +00:00
const obj11 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items7 = [tmp.actions, ];
2026-08-24 06:08:38 +00:00
const obj9 = { variant: "display-lg", color: "text-strong", accessible: false, style: tmp.orbAmount, children: "+" + orbAmount };
items7[1] = { bottom: tmp2.bottom + ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
obj11[0] = items7;
const obj13 = { grow: true, variant: "primary", text: null, size: "lg", onPress: null };
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
obj13[2] = intl3.string(getSystemLocale.t.i4jeWR);
2026-07-29 08:29:29 +00:00
obj13[4] = onClose;
2026-08-24 06:08:38 +00:00
obj11[1] = callback(Button.Button, obj13);
2026-07-20 16:05:17 +00:00
items6[1] = callback(closure_4, obj11);
2026-07-29 08:29:29 +00:00
obj4[2] = items6;
2026-07-20 16:05:17 +00:00
items3[1] = callback2(closure_4, obj4);
2026-07-29 08:29:29 +00:00
obj[2] = items3;
2026-07-20 16:05:17 +00:00
return callback2(closure_4, obj);
};