// Module ID: 10425 // Function ID: 10426 // Name: PremiumGiftDMSuccessBody // Dependencies: [19, 17, 21, 4668, 712, 9662, 1500, 9629, 10335, 4750, 1236, 2400, 9636, 4739, 2] // Exports: PremiumGiftDMSuccessActions, default // 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 */; require = arg1; ({ jsx: c5, Fragment: closure_6, jsxs: error } = jsxProd); createCacheKey = { title: null, description: null }; createCacheKey = { marginTop: ThemesDefault.space.PX_24, textAlign: "center" }; createCacheKey[0] = createCacheKey; 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"); export default function PremiumGiftDMSuccessBody() { const tmp = callback3(); let obj = NativeGiftContextProvider; obj = { children: null }; obj = { children: callback(PremiumGiftBackgroundAnimationDefault, { giftStyle: obj.useNativeGiftContext().giftStyle }) }; const items = [callback(View, obj), , ]; 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); const obj2 = { style: tmp.description, variant: "text-md/medium", children: null }; const intl2 = getSystemLocale.intl; obj2[2] = intl2.string(getSystemLocale.t.Y1keV0); items[2] = callback(Text.Text, obj2); obj[0] = items; return callback2(closure_6, obj); }; export const PremiumGiftDMSuccessActions = function PremiumGiftDMSuccessActions() { let obj = onClose(navigation[5]); const nativeGiftContext = obj.useNativeGiftContext(); onClose = nativeGiftContext.onClose; const prePurchaseGiftingBadgeProgress = nativeGiftContext.prePurchaseGiftingBadgeProgress; 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: null }; obj[0] = tmp; navigation.navigate(onClose(navigation[8]).PremiumGiftScreens.GIFTING_BADGE, obj); } } onClose(); }, items); obj = { text: null, variant: "primary", onPress: null }; const intl = onClose(navigation[10]).intl; obj[0] = intl.string(prePurchaseGiftingBadgeProgress(navigation[11]).bGKjmg); obj[2] = callback; return callback(onClose(navigation[9]).Button, obj); };