79 lines
3.6 KiB
TypeScript
79 lines
3.6 KiB
TypeScript
// Module ID: 11903
|
|
// Function ID: 11904
|
|
// Name: UnifiedGiftModalSuccessScreen
|
|
// Dependencies: [19, 17, 676, 21, 4193, 712, 11904, 8780, 4399, 11915, 1959, 6614, 4622, 4189, 1236, 4605, 2]
|
|
// Exports: default
|
|
|
|
// Module 11903 (UnifiedGiftModalSuccessScreen)
|
|
import noop from "noop";
|
|
import { Image } from "get ActivityIndicator";
|
|
import { UserSettingsSections } from "ME";
|
|
import jsxProd from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
let closure_6;
|
|
let error;
|
|
const require = arg1;
|
|
({ jsx: closure_6, jsxs: error } = jsxProd);
|
|
createCacheKey = { alertContainer: null, image: null, title: null, description: null };
|
|
createCacheKey = { paddingHorizontal: require("Themes").space.PX_24, paddingBottom: require("Themes").space.PX_24, alignItems: "center" };
|
|
createCacheKey[0] = createCacheKey;
|
|
createCacheKey[1] = { position: "relative", top: -50 };
|
|
createCacheKey[2] = { marginTop: -require("Themes").space.PX_24, marginBottom: require("Themes").space.PX_8 };
|
|
let obj1 = { marginTop: -require("Themes").space.PX_24, marginBottom: require("Themes").space.PX_8 };
|
|
createCacheKey[3] = { marginBottom: require("Themes").space.PX_24 };
|
|
createCacheKey = createCacheKey.createStyles(createCacheKey);
|
|
let obj2 = { marginBottom: require("Themes").space.PX_24 };
|
|
const result = require("ME").fileFinishedImporting("modules/checkout/native/gifting/UnifiedGiftModalSuccessScreen.tsx");
|
|
|
|
export default function UnifiedGiftModalSuccessScreen(giftBadgeProgress) {
|
|
giftBadgeProgress = giftBadgeProgress.giftBadgeProgress;
|
|
const onClose = giftBadgeProgress.onClose;
|
|
let enabled;
|
|
const tmp = createCacheKey();
|
|
const GiftingBadgeExperiment = giftBadgeProgress(enabled[7]).GiftingBadgeExperiment;
|
|
enabled = GiftingBadgeExperiment.useConfig({ location: "UnifiedGiftModalSuccessScreen" }).enabled;
|
|
const items = [enabled, giftBadgeProgress, onClose];
|
|
const callback = React.useCallback(() => {
|
|
onClose();
|
|
let tmp2 = enabled;
|
|
if (enabled) {
|
|
tmp2 = null != giftBadgeProgress;
|
|
}
|
|
if (tmp2) {
|
|
let obj = onClose(enabled[8]);
|
|
obj = { giftBadgeProgress: null };
|
|
obj[0] = giftBadgeProgress;
|
|
obj.pushLazy(giftBadgeProgress(enabled[10])(enabled[9], enabled.paths), obj, "collectibles_shop_gift_badge_modal");
|
|
}
|
|
}, items);
|
|
const items1 = [onClose];
|
|
const callback1 = React.useCallback(() => {
|
|
onClose();
|
|
let obj = giftBadgeProgress(enabled[11]);
|
|
obj = { screen: outer1_5.PREMIUM_GIFTING, params: {} };
|
|
obj.openUserSettings(obj);
|
|
}, items1);
|
|
let obj = { onClose: callback, noDefaultButtons: true, style: tmp.alertContainer, children: null };
|
|
obj = { source: giftBadgeProgress(enabled[6]).GIFT_STYLE_IMG[giftBadgeProgress.giftStyle], style: tmp.image };
|
|
const items2 = [callback(Image, obj), , , ];
|
|
obj = { variant: "heading-lg/bold", style: tmp.title, children: null };
|
|
const intl = giftBadgeProgress(enabled[14]).intl;
|
|
obj[2] = intl.string(giftBadgeProgress(enabled[14]).t.MqZXbv);
|
|
items2[1] = callback(giftBadgeProgress(enabled[13]).Text, obj);
|
|
const obj1 = { variant: "text-md/medium", style: tmp.description, children: null };
|
|
const intl2 = giftBadgeProgress(enabled[14]).intl;
|
|
obj1[2] = intl2.format(giftBadgeProgress(enabled[14]).t.YS2J4S, { onClick: callback1 });
|
|
items2[2] = callback(giftBadgeProgress(enabled[13]).Text, obj1);
|
|
const obj2 = { onPress: callback, text: null, textVariant: "text-md/semibold", grow: true };
|
|
if (enabled) {
|
|
if (null != giftBadgeProgress) {
|
|
let cpT0Cq = tmp2(tmp3[14]).t.PDTjLN;
|
|
}
|
|
obj2[1] = tmp9(cpT0Cq);
|
|
items2[3] = callback(giftBadgeProgress(enabled[15]).BaseTextButton, obj2);
|
|
obj[3] = items2;
|
|
return closure_7(tmp7, obj);
|
|
}
|
|
cpT0Cq = tmp2(tmp3[14]).t.cpT0Cq;
|
|
};
|