decord/source/modules/premium/native/gifting/PremiumGiftDMPurchaseSuccess.tsx

70 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10425
// Function ID: 10426
2026-07-20 16:05:17 +00:00
// Name: PremiumGiftDMSuccessBody
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 9662, 1500, 9629, 10335, 4750, 1236, 2400, 9636, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: PremiumGiftDMSuccessActions, default
2026-08-24 06:08:38 +00:00
// Module 10425 (PremiumGiftDMSuccessBody)
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Text from "Text" /* 4739 */;
import PremiumGiftBackgroundAnimationDefault from "PremiumGiftBackgroundAnimation" /* 9636 */;
import NativeGiftContextProvider from "NativeGiftContextProvider" /* 9662 */;
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
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-29 08:29:29 +00:00
({ jsx: c5, Fragment: closure_6, jsxs: error } = jsxProd);
createCacheKey = { title: null, description: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { marginTop: ThemesDefault.space.PX_24, textAlign: "center" };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { marginTop: ThemesDefault.space.PX_8, textAlign: "center" };
let closure_8 = createCacheKey.createStyles(createCacheKey);
let obj1 = { marginTop: ThemesDefault.space.PX_8, textAlign: "center" };
const result = require("set").fileFinishedImporting("modules/premium/native/gifting/PremiumGiftDMPurchaseSuccess.tsx");
2026-07-20 16:05:17 +00:00
export default function PremiumGiftDMSuccessBody() {
2026-08-24 06:08:38 +00:00
const tmp = callback3();
let obj = NativeGiftContextProvider;
2026-07-29 08:29:29 +00:00
obj = { children: null };
2026-08-24 06:08:38 +00:00
obj = { children: callback(PremiumGiftBackgroundAnimationDefault, { giftStyle: obj.useNativeGiftContext().giftStyle }) };
2026-07-20 16:05:17 +00:00
const items = [callback(View, obj), , ];
2026-08-24 06:08:38 +00:00
obj1 = { style: tmp.title, variant: "heading-lg/bold", children: null };
const intl = getSystemLocale.intl;
obj1[2] = intl.string(getSystemLocale.t.MqZXbv);
items[1] = callback(Text.Text, obj1);
2026-07-29 08:29:29 +00:00
const obj2 = { style: tmp.description, variant: "text-md/medium", children: null };
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
obj2[2] = intl2.string(getSystemLocale.t.Y1keV0);
items[2] = callback(Text.Text, obj2);
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-20 16:05:17 +00:00
return callback2(closure_6, obj);
};
export const PremiumGiftDMSuccessActions = function PremiumGiftDMSuccessActions() {
2026-07-23 10:11:24 +00:00
let obj = onClose(navigation[5]);
2026-07-20 16:05:17 +00:00
const nativeGiftContext = obj.useNativeGiftContext();
2026-07-23 10:11:24 +00:00
onClose = nativeGiftContext.onClose;
2026-07-20 16:05:17 +00:00
const prePurchaseGiftingBadgeProgress = nativeGiftContext.prePurchaseGiftingBadgeProgress;
2026-07-23 10:11:24 +00:00
navigation = onClose(navigation[6]).useNavigation();
const GiftingBadgeExperiment = onClose(navigation[7]).GiftingBadgeExperiment;
2026-07-20 16:05:17 +00:00
const enabled = GiftingBadgeExperiment.useConfig({ location: "PremiumGiftDMSuccessActions" }).enabled;
const items = [enabled, prePurchaseGiftingBadgeProgress, navigation, onClose];
2026-07-23 10:11:24 +00:00
const callback = enabled.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (enabled) {
if (null != prePurchaseGiftingBadgeProgress) {
2026-07-29 08:29:29 +00:00
const obj = { currentProgress: null };
obj[0] = tmp;
2026-07-20 16:05:17 +00:00
navigation.navigate(onClose(navigation[8]).PremiumGiftScreens.GIFTING_BADGE, obj);
}
}
onClose();
}, items);
2026-07-29 08:29:29 +00:00
obj = { text: null, variant: "primary", onPress: null };
2026-07-23 10:11:24 +00:00
const intl = onClose(navigation[10]).intl;
2026-07-29 08:29:29 +00:00
obj[0] = intl.string(prePurchaseGiftingBadgeProgress(navigation[11]).bGKjmg);
obj[2] = callback;
2026-07-23 10:11:24 +00:00
return callback(onClose(navigation[9]).Button, obj);
2026-07-20 16:05:17 +00:00
};