decord/source/modules/premium/native/gifting/PremiumGiftDMPurchaseSuccess.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

66 lines
3.2 KiB
TypeScript

// Module ID: 11227
// Function ID: 11228
// Name: PremiumGiftDMPurchaseSuccess
// Dependencies: [19, 17, 21, 4638, 576, 10840, 1484, 10884, 10803, 5060, 1115, 2461, 10976, 4634, 2]
// Exports: PremiumGiftDMSuccessActions, default
// Module 11227 (PremiumGiftDMPurchaseSuccess)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1115 */;
import Text_Text from "Text/Text" /* 4634 */;
import PremiumGiftModal from "PremiumGiftModal" /* 10803 */;
import NativeGiftContext from "NativeGiftContext" /* 10840 */;
import PremiumGiftBackgroundAnimationDefault from "PremiumGiftBackgroundAnimation" /* 10976 */;
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 createStyles = fn(4638);
let obj2 = { title: { marginTop: nativeDefault.space.PX_24, textAlign: "center" }, description: null };
let obj3 = { marginTop: nativeDefault.space.PX_24, textAlign: "center" };
obj2.description = { marginTop: nativeDefault.space.PX_8, textAlign: "center" };
let closure_8 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/premium/native/gifting/PremiumGiftDMPurchaseSuccess.tsx");
export default function PremiumGiftDMSuccessBody() {
const tmp = closure_8();
const obj2 = { children: null };
const items = [hasOwnProperty(View, { children: hasOwnProperty(PremiumGiftBackgroundAnimationDefault, { giftStyle: NativeGiftContext.useNativeGiftContext().giftStyle }) }), , ];
const obj4 = { style: tmp.title, variant: "heading-lg/bold", children: null };
const intl = util.intl;
obj4.children = intl.string(util.t.MqZXbv);
items[1] = hasOwnProperty(Text_Text.Text, obj4);
const obj5 = { style: tmp.description, variant: "text-md/medium", children: null };
const intl2 = util.intl;
obj5.children = intl2.string(util.t.Y1keV0);
items[2] = hasOwnProperty(Text_Text.Text, obj5);
obj2.children = items;
return React5(timestampProducer, obj2);
};
export const PremiumGiftDMSuccessActions = function PremiumGiftDMSuccessActions() {
const nativeGiftContext = onClose(navigation[5]).useNativeGiftContext();
onClose = nativeGiftContext.onClose;
const prePurchaseGiftingBadgeProgress = nativeGiftContext.prePurchaseGiftingBadgeProgress;
let obj = onClose(navigation[5]);
navigation = onClose(navigation[6]).useNavigation();
const GiftingBadgeExperiment = onClose(navigation[7]).GiftingBadgeExperiment;
const enabled = GiftingBadgeExperiment.useConfig({ location: "PremiumGiftDMSuccessActions" }).enabled;
const items = [enabled, prePurchaseGiftingBadgeProgress, navigation, onClose];
const callback = enabled.useCallback(() => {
if (enabled) {
if (null != prePurchaseGiftingBadgeProgress) {
const obj = { currentProgress: tmp };
navigation.navigate(PremiumGiftModal.PremiumGiftScreens.GIFTING_BADGE, obj);
}
}
onClose();
}, items);
const obj3 = { text: null, variant: "primary", onPress: null };
const intl = onClose(navigation[10]).intl;
obj3.text = intl.string(prePurchaseGiftingBadgeProgress(navigation[11]).bGKjmg);
obj3.onPress = callback;
return closure_5(onClose(navigation[9]).Button, obj3);
};