2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 10420
|
|
|
|
|
// Function ID: 10421
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: RewardPreview
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 17, 8973, 5311, 1947, 1922, 7666, 676, 21, 4668, 712, 5446, 9258, 1946, 1297, 4739, 1236, 4761, 10421, 1500, 9662, 589, 7743, 7970, 7683, 10345, 9668, 9666, 9629, 8969, 7696, 10335, 10416, 10343, 10348, 2400, 5454, 8074, 9964, 10349, 7197, 1994, 4750, 4241, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 10420 (RewardPreview)
|
|
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
|
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
|
|
|
import Button from "Button" /* 1297 */;
|
|
|
|
|
import getNameplateData from "getNameplateData" /* 1946 */;
|
|
|
|
|
import Text from "Text" /* 4739 */;
|
|
|
|
|
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 5446 */;
|
|
|
|
|
import useShouldShowGiftingPromotionDecoDefault from "useShouldShowGiftingPromotionDeco" /* 10345 */;
|
|
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
|
|
|
import closure_6 from "initialize" /* 8973 */;
|
|
|
|
|
import { isAvatarDecorationRecord, isNameplateRecord } from "fromServer" /* 5311 */;
|
|
|
|
|
import closure_9 from "mergeGuildAvatar" /* 1922 */;
|
|
|
|
|
import closure_10 from "createEmptyPromotionsByType" /* 7666 */;
|
|
|
|
|
import { HelpdeskArticles } from "ME" /* 676 */;
|
|
|
|
|
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 RewardPreview(arg0) {
|
|
|
|
|
({ collectiblesItem, gradientAngle } = arg0);
|
|
|
|
|
({ currentUser, gradientColors } = arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp3 = callback3(useSafeAreaInsetsKeyboardAwareDefault().insets.bottom);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isNameplateRecord(collectiblesItem)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { children: null };
|
|
|
|
|
obj = { style: null, children: null };
|
|
|
|
|
obj[0] = tmp3.nameplateWrapper;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { nameplate: null, fullOpacity: true, animate: true };
|
|
|
|
|
let tmpResult = tmp(9258);
|
|
|
|
|
let obj8 = getNameplateData;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1[0] = obj8.getNameplateData(collectiblesItem);
|
|
|
|
|
obj[1] = callback(tmpResult, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [callback(closure_5, obj), , ];
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj2 = { style: null, children: null };
|
|
|
|
|
obj2[0] = tmp3.singleAvatarContainer;
|
|
|
|
|
const obj3 = { user: null, guildId: "Array", size: true, "aria-hidden": null };
|
|
|
|
|
obj3[0] = currentUser;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj3[2] = Button.AvatarSizes.SMALL;
|
|
|
|
|
obj2[1] = callback(Button.Avatar, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
items[1] = callback(closure_5, obj2);
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj4 = { style: null, variant: "text-xs/medium", children: null };
|
|
|
|
|
obj4[0] = tmp3.selectedRewardText;
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl2 = getSystemLocale.intl;
|
|
|
|
|
obj4[2] = intl2.string(getSystemLocale.t.Rh4oem);
|
|
|
|
|
items[2] = callback(Text.Text, obj4);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[0] = items;
|
|
|
|
|
let tmp7Result = callback2(closure_13, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp7Result = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isAvatarDecorationRecord(collectiblesItem)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { style: null, useAngle: true, angle: null, angleCenter: null, colors: null };
|
|
|
|
|
obj[0] = tmp3.selectedRewardBannerGradient;
|
2026-08-24 06:08:38 +00:00
|
|
|
tmpResult = tmp(4761);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (gradientAngle == null) {
|
|
|
|
|
gradientAngle = 90;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj5 = { children: null };
|
|
|
|
|
obj[2] = gradientAngle;
|
|
|
|
|
obj[3] = { x: 0.5, y: 0.5 };
|
|
|
|
|
obj[4] = gradientColors;
|
|
|
|
|
const items1 = [callback(tmpResult, obj), , ];
|
|
|
|
|
const obj6 = { style: null, children: null };
|
|
|
|
|
obj6[0] = tmp3.singleAvatarContainer;
|
|
|
|
|
const obj7 = { size: null, asset: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj7[0] = Button.AvatarSizes.NORMAL;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj7[1] = collectiblesItem.asset;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj6[1] = callback(tmp(10421), obj7);
|
2026-07-20 16:05:17 +00:00
|
|
|
items1[1] = callback(closure_5, obj6);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj8 = { style: null, variant: "text-xs/medium", color: "text-overlay-light", children: null };
|
|
|
|
|
obj8[0] = tmp3.selectedRewardText;
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl = getSystemLocale.intl;
|
|
|
|
|
obj8[3] = intl.string(getSystemLocale.t.Rh4oem);
|
|
|
|
|
items1[2] = callback(Text.Text, obj8);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj5[0] = items1;
|
|
|
|
|
tmp7Result = callback2(closure_13, obj5);
|
|
|
|
|
const tmp7 = callback2;
|
|
|
|
|
const tmp8 = closure_13;
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmpResult1 = tmp(10421);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp7Result;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
({ StyleSheet: c4, View: c5 } = get_ActivityIndicator);
|
|
|
|
|
({ jsx: closure_12, Fragment: map1, jsxs: closure_14 } = jsxProd);
|
|
|
|
|
let closure_15 = createCacheKey.createStyles((arg0) => {
|
2026-08-14 17:33:39 +00:00
|
|
|
let obj = { container: null, chooseRewardContainer: null, gradientBackdrop: null, chooseRewardText: null, backgroundImage: null, inAppFlowImage: null, inAppFlowImageLargeTilted: null, singleAvatarContainer: null, selectedRewardRow: null, selectedRewardBannerContainer: null, selectedRewardBannerGradient: null, selectedRewardText: null, nameplateWrapper: null, promoDetails: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, paddingTop: ThemesDefault.space.PX_12, paddingBottom: ThemesDefault.space.PX_12 + arg0, paddingHorizontal: ThemesDefault.space.PX_16, gap: ThemesDefault.space.PX_8 };
|
|
|
|
|
const merged = Object.assign(ThemesDefault.shadows.SHADOW_TOP_HIGH);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[0] = obj;
|
|
|
|
|
obj[1] = { flexDirection: "row", alignItems: "center", height: 52 };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = {};
|
|
|
|
|
const merged1 = Object.assign(closure_4.absoluteFillObject);
|
2026-08-24 06:08:38 +00:00
|
|
|
obj.borderRadius = ThemesDefault.radii.sm;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj.overflow = "hidden";
|
|
|
|
|
obj[2] = obj;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj[3] = { flex: 1, marginStart: ThemesDefault.space.PX_8 };
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[4] = { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, opacity: 1 };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { flex: 1, marginStart: ThemesDefault.space.PX_8 };
|
|
|
|
|
obj[5] = { width: 58, height: 58, marginStart: ThemesDefault.space.PX_8 };
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [{ rotate: "-4deg" }, { translateY: -11 }];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[6] = { width: 86, height: 86, transform: items };
|
|
|
|
|
obj[7] = { flexDirection: "row", paddingRight: 15, justifyContent: "center", alignItems: "center", marginLeft: 5 };
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = { width: 58, height: 58, marginStart: ThemesDefault.space.PX_8 };
|
|
|
|
|
obj[8] = { flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_16 };
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[9] = { flex: 1, flexDirection: "row", alignItems: "center", height: 52 };
|
|
|
|
|
const obj4 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged2 = Object.assign(closure_4.absoluteFillObject);
|
2026-08-24 06:08:38 +00:00
|
|
|
obj4.borderRadius = ThemesDefault.radii.sm;
|
|
|
|
|
obj4.top = ThemesDefault.space.PX_4;
|
|
|
|
|
obj4.bottom = ThemesDefault.space.PX_4;
|
|
|
|
|
obj4.start = ThemesDefault.space.PX_4;
|
|
|
|
|
obj4.end = ThemesDefault.space.PX_4;
|
|
|
|
|
obj4.marginStart = ThemesDefault.space.PX_12;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[10] = obj4;
|
|
|
|
|
obj[11] = { flex: 1 };
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj3 = { flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_16 };
|
|
|
|
|
obj[12] = { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, borderRadius: ThemesDefault.radii.sm, overflow: "hidden" };
|
|
|
|
|
const obj5 = { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, borderRadius: ThemesDefault.radii.sm, overflow: "hidden" };
|
|
|
|
|
obj[13] = { paddingVertical: ThemesDefault.space.PX_12, paddingHorizontal: ThemesDefault.space.PX_16, borderRadius: ThemesDefault.radii.md, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_SUBTLE };
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/premium/native/gifting/PremiumGiftPurchaseButton.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function PremiumGiftPurchaseButton(defaultSelection) {
|
2026-07-23 10:11:24 +00:00
|
|
|
defaultSelection = defaultSelection.defaultSelection;
|
2026-08-24 06:08:38 +00:00
|
|
|
importDefault = undefined;
|
|
|
|
|
dependencyMap = undefined;
|
2026-07-20 16:05:17 +00:00
|
|
|
let React;
|
|
|
|
|
claimableRewards = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
let selectedGiftingPromotionReward;
|
2026-07-23 10:11:24 +00:00
|
|
|
let setSelectedGiftingPromotionReward;
|
2026-07-29 08:29:29 +00:00
|
|
|
c7 = undefined;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_8 = undefined;
|
|
|
|
|
closure_9 = undefined;
|
|
|
|
|
closure_10 = undefined;
|
|
|
|
|
let tmp3 = callback3(useSafeAreaInsetsKeyboardAwareDefault().insets.bottom);
|
2026-08-15 05:55:55 +00:00
|
|
|
let obj = defaultSelection(1500);
|
2026-07-20 16:05:17 +00:00
|
|
|
importDefault = obj.useNavigation();
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = defaultSelection(9662);
|
2026-07-20 16:05:17 +00:00
|
|
|
const nativeGiftContext = obj1.useNativeGiftContext();
|
2026-07-29 08:29:29 +00:00
|
|
|
({ onPurchase: c2, isPurchasing, allRewards: c3, claimableRewards } = nativeGiftContext);
|
|
|
|
|
selectedGiftingPromotionReward = nativeGiftContext.selectedGiftingPromotionReward;
|
2026-07-23 10:11:24 +00:00
|
|
|
setSelectedGiftingPromotionReward = nativeGiftContext.setSelectedGiftingPromotionReward;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ setCurrentAnalyticsStep: c7, productId } = nativeGiftContext);
|
|
|
|
|
let obj2 = defaultSelection(589);
|
2026-08-24 06:08:38 +00:00
|
|
|
let items = [closure_9];
|
|
|
|
|
const stateFromStores = obj2.useStateFromStores(items, () => currentUser.getCurrentUser());
|
|
|
|
|
let obj3 = defaultSelection(7743);
|
2026-07-29 08:29:29 +00:00
|
|
|
const canPurchaseIAP = obj3.useCanPurchaseIAP(productId);
|
|
|
|
|
let obj4 = defaultSelection(589);
|
2026-08-24 06:08:38 +00:00
|
|
|
let items1 = [closure_10];
|
2026-07-20 16:05:17 +00:00
|
|
|
const stateFromStores1 = obj4.useStateFromStores(items1, () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
marketingComponentByType = marketingComponentByType.getMarketingComponentByType(defaultSelection(_undefined[23]).MarketingComponentType.GIFT_CUSTOMIZATION_BANNER);
|
2026-07-20 16:05:17 +00:00
|
|
|
let prop = null;
|
|
|
|
|
if (null != marketingComponentByType) {
|
|
|
|
|
prop = null;
|
|
|
|
|
if ("giftCustomizationBanner" === marketingComponentByType.properties.properties.oneofKind) {
|
|
|
|
|
prop = marketingComponentByType.properties.properties.giftCustomizationBanner;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return prop;
|
|
|
|
|
});
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores1 != null) {
|
|
|
|
|
const assetVariant = stateFromStores1.assetVariant;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp9 = null != claimableRewards;
|
|
|
|
|
if (tmp9) {
|
|
|
|
|
tmp9 = claimableRewards.length > 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_8 = tmp9;
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp10 = null != claimableRewards;
|
|
|
|
|
if (tmp10) {
|
|
|
|
|
tmp10 = 1 === claimableRewards.length;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_9 = tmp10;
|
|
|
|
|
const tmp11 = useShouldShowGiftingPromotionDecoDefault();
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp12 = tmp11;
|
|
|
|
|
if (tmp11) {
|
|
|
|
|
tmp12 = null == selectedGiftingPromotionReward;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_10 = tmp12;
|
|
|
|
|
let tmpResult = tmp(9668);
|
2026-08-14 17:33:39 +00:00
|
|
|
const config = tmpResult.useConfig({ location: "PremiumGiftPurchaseButton" });
|
2026-08-24 06:08:38 +00:00
|
|
|
const GiftingBadgeExperiment = tmp4(9629).GiftingBadgeExperiment;
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp4Result = tmp4(589);
|
2026-07-23 10:11:24 +00:00
|
|
|
const items2 = [setSelectedGiftingPromotionReward];
|
2026-07-29 08:29:29 +00:00
|
|
|
const stateFromStoresObject = tmp4Result.useStateFromStoresObject(items2, () => {
|
2026-07-20 16:05:17 +00:00
|
|
|
({ getNextTier, getRemainingToNextTier } = setSelectedGiftingPromotionReward);
|
2026-08-14 17:33:39 +00:00
|
|
|
return { nextTier: getNextTier(defaultSelection(_undefined[29]).BadgeId.GIFTING), giftsToNextTier: getRemainingToNextTier(defaultSelection(_undefined[29]).BadgeId.GIFTING) };
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
const nextTier = stateFromStoresObject.nextTier;
|
2026-07-29 08:29:29 +00:00
|
|
|
const items3 = [tmp10, claimableRewards, setSelectedGiftingPromotionReward];
|
2026-07-20 16:05:17 +00:00
|
|
|
const effect = React.useEffect(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (closure_9) {
|
2026-07-20 16:05:17 +00:00
|
|
|
setSelectedGiftingPromotionReward(claimableRewards[0]);
|
|
|
|
|
}
|
|
|
|
|
}, items3);
|
|
|
|
|
let colors;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores1 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const gradient = stateFromStores1.gradient;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (gradient != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
colors = gradient.colors;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (colors == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
colors = [];
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp16 = colors;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (colors.length <= 0) {
|
|
|
|
|
const _String = String;
|
2026-07-29 08:29:29 +00:00
|
|
|
const items4 = [String(tmp(712).colors.BACKGROUND_BRAND), ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const _String2 = String;
|
2026-07-29 08:29:29 +00:00
|
|
|
items4[1] = String(tmp(712).colors.BACKGROUND_BRAND);
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp16 = items4;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp4Result = tmp4(10416);
|
2026-07-29 08:29:29 +00:00
|
|
|
const product = tmp4Result.useFetchCollectiblesProduct(selectedGiftingPromotionReward).product;
|
|
|
|
|
const intl = tmp4(1236).intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
const string = intl.string;
|
2026-07-29 08:29:29 +00:00
|
|
|
const t = tmp4(1236).t;
|
|
|
|
|
if (tmp12) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let stringResult = string(t["gNZY/B"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
stringResult = string(t.ouo4FK);
|
|
|
|
|
}
|
|
|
|
|
let str = "active";
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp12) {
|
2026-07-20 16:05:17 +00:00
|
|
|
str = "primary";
|
|
|
|
|
}
|
|
|
|
|
let prop;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores1 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
prop = stateFromStores1.mobileBackgroundAsset;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const themeAndReducedMotionAwareAssetUrl = defaultSelection(10343).useThemeAndReducedMotionAwareAssetUrl(prop);
|
|
|
|
|
const tmp4Result1 = defaultSelection(10343);
|
2026-07-20 16:05:17 +00:00
|
|
|
let asset;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores1 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
asset = stateFromStores1.asset;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const themeAndReducedMotionAwareAssetUrl1 = defaultSelection(10343).useThemeAndReducedMotionAwareAssetUrl(asset);
|
2026-07-20 16:05:17 +00:00
|
|
|
let first;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (product != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
first = product.items[0];
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { style: tmp3.container, children: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
if (tmp11) {
|
|
|
|
|
if (config.enabled) {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (selectedGiftingPromotionReward === tmp4(9666).GiftingPromotionRewardSKUIds.SUMMER_2026_GOGO_FAKE_SKU_ID) {
|
2026-08-14 17:33:39 +00:00
|
|
|
obj = { style: null, imageUrl: null, title: null, subtitle: null };
|
|
|
|
|
obj[0] = tmp3.promoDetails;
|
|
|
|
|
obj[1] = themeAndReducedMotionAwareAssetUrl1;
|
2026-08-24 06:08:38 +00:00
|
|
|
tmpResult = tmp(10348);
|
2026-08-14 17:33:39 +00:00
|
|
|
const intl4 = tmp4(1236).intl;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj[2] = intl4.string(tmp(2400)["P+DDLh"]);
|
2026-08-14 17:33:39 +00:00
|
|
|
const intl5 = tmp4(1236).intl;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj[3] = intl5.string(tmp(2400).dOZh6X);
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp27Result = callback(tmpResult, obj);
|
|
|
|
|
}
|
|
|
|
|
const items5 = [tmp27Result, , ];
|
|
|
|
|
let tmp41 = !tmp12;
|
|
|
|
|
if (!tmp12) {
|
|
|
|
|
obj1 = { variant: "text-sm/normal", children: null };
|
|
|
|
|
const intl6 = tmp4(1236).intl;
|
|
|
|
|
obj2 = { paidURL: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj2[0] = tmp(1994).getArticleURL(HelpdeskArticles.PAID_TERMS);
|
2026-08-14 17:33:39 +00:00
|
|
|
obj1[1] = intl6.format(tmp4(1236).t.hYoGUM, obj2);
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp41 = callback(tmp4(4739).Text, obj1);
|
|
|
|
|
const tmpResult1 = tmp(1994);
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
items5[1] = tmp41;
|
|
|
|
|
obj3 = { loading: null, variant: null, text: null, disabled: null, onPress: null };
|
|
|
|
|
obj3[0] = isPurchasing;
|
|
|
|
|
obj3[1] = str;
|
|
|
|
|
obj3[2] = stringResult;
|
|
|
|
|
let tmp45 = !canPurchaseIAP;
|
|
|
|
|
if (canPurchaseIAP) {
|
|
|
|
|
tmp45 = isPurchasing;
|
|
|
|
|
}
|
|
|
|
|
obj3[3] = tmp45;
|
|
|
|
|
let fn;
|
|
|
|
|
if (!isPurchasing) {
|
|
|
|
|
fn = () => {
|
|
|
|
|
let obj = defaultSelection(_undefined[43]);
|
|
|
|
|
obj.dismissKeyboard();
|
2026-08-24 06:08:38 +00:00
|
|
|
if (closure_10) {
|
|
|
|
|
if (closure_8) {
|
|
|
|
|
if (closure_8) {
|
2026-08-14 17:33:39 +00:00
|
|
|
_undefined2(tmp(tmp2[30]).PaymentFlowStep.REWARD_SKU_SELECT);
|
|
|
|
|
obj = { defaultHighlightedReward: null, allRewards: null, claimableRewards: null, onSelect: null };
|
|
|
|
|
obj[0] = defaultSelection;
|
|
|
|
|
let items = c3;
|
|
|
|
|
if (c3 == null) {
|
|
|
|
|
items = [];
|
|
|
|
|
}
|
|
|
|
|
obj[1] = items;
|
|
|
|
|
let items1 = claimableRewards;
|
|
|
|
|
if (claimableRewards == null) {
|
|
|
|
|
items1 = [];
|
|
|
|
|
}
|
|
|
|
|
obj[2] = items1;
|
|
|
|
|
obj[3] = function onSelect(arg0) {
|
|
|
|
|
callback(arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
navigation.navigate(closure_1_0(closure_1_2[31]).PremiumGiftScreens.CUSTOMIZATION);
|
2026-08-14 17:33:39 +00:00
|
|
|
};
|
|
|
|
|
navigation.navigate(tmp(tmp2[31]).PremiumGiftScreens.REWARD_SELECT, obj);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_undefined(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
navigation.navigate(closure_1_0(closure_1_2[31]).PremiumGiftScreens.SUCCESS);
|
2026-08-14 17:33:39 +00:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
obj3[4] = fn;
|
2026-08-24 06:08:38 +00:00
|
|
|
items5[2] = callback(tmp4(4750).Button, obj3);
|
2026-08-14 17:33:39 +00:00
|
|
|
obj[1] = items5;
|
|
|
|
|
return tmp24(tmp25, obj);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp12) {
|
|
|
|
|
if (tmp9) {
|
2026-08-14 17:33:39 +00:00
|
|
|
obj4 = { style: null, children: null };
|
|
|
|
|
obj4[0] = tmp3.chooseRewardContainer;
|
|
|
|
|
const obj5 = { style: null, pointerEvents: "none", children: null };
|
|
|
|
|
obj5[0] = tmp3.gradientBackdrop;
|
|
|
|
|
const obj6 = { style: null, useAngle: true, angle: null, angleCenter: null, colors: null };
|
|
|
|
|
obj6[0] = claimableRewards.absoluteFillObject;
|
2026-07-29 08:29:29 +00:00
|
|
|
let num3;
|
|
|
|
|
if (stateFromStores1 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const gradient3 = stateFromStores1.gradient;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (gradient3 != null) {
|
|
|
|
|
num3 = gradient3.angle;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (num3 == null) {
|
|
|
|
|
num3 = 90;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
obj6[2] = num3;
|
|
|
|
|
obj6[3] = { x: 0.5, y: 0.5 };
|
|
|
|
|
obj6[4] = colors;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items6 = [callback(tmp(4761), obj6), ];
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp33Result = null != themeAndReducedMotionAwareAssetUrl;
|
|
|
|
|
if (tmp33Result) {
|
|
|
|
|
const obj7 = { style: null, resizeMode: "cover", source: null };
|
|
|
|
|
obj7[0] = tmp3.backgroundImage;
|
|
|
|
|
const obj8 = { uri: null };
|
|
|
|
|
obj8[0] = themeAndReducedMotionAwareAssetUrl;
|
|
|
|
|
obj7[2] = obj8;
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp33Result = tmp33(tmp(5454), obj7);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
items6[1] = tmp33Result;
|
|
|
|
|
obj5[2] = items6;
|
|
|
|
|
const items7 = [tmp24(tmp25, obj5), , ];
|
|
|
|
|
tmp33Result = null != themeAndReducedMotionAwareAssetUrl1;
|
|
|
|
|
if (tmp33Result) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let inAppFlowImageLargeTilted = assetVariant === tmp4(7683).GiftCustomizationBanner_AssetVariant.LARGE_TILTED;
|
2026-08-14 17:33:39 +00:00
|
|
|
const items8 = [tmp3.inAppFlowImage, ];
|
2026-07-20 16:05:17 +00:00
|
|
|
if (inAppFlowImageLargeTilted) {
|
2026-07-29 08:29:29 +00:00
|
|
|
inAppFlowImageLargeTilted = tmp3.inAppFlowImageLargeTilted;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
const obj9 = { style: null, resizeMode: "contain", source: null };
|
|
|
|
|
items8[1] = inAppFlowImageLargeTilted;
|
|
|
|
|
obj9[0] = items8;
|
|
|
|
|
const obj10 = { uri: null };
|
|
|
|
|
obj10[0] = themeAndReducedMotionAwareAssetUrl1;
|
|
|
|
|
obj9[2] = obj10;
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp33Result = tmp33(tmp(5454), obj9);
|
|
|
|
|
const tmpResult3 = tmp(5454);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
items7[1] = tmp33Result;
|
|
|
|
|
const obj11 = { style: null, variant: "text-xs/semibold", color: "text-overlay-light", children: null };
|
|
|
|
|
obj11[0] = tmp3.chooseRewardText;
|
2026-07-29 08:29:29 +00:00
|
|
|
const intl3 = tmp4(1236).intl;
|
2026-08-14 17:33:39 +00:00
|
|
|
obj11[3] = intl3.string(tmp4(1236).t.cMiNit);
|
2026-08-24 06:08:38 +00:00
|
|
|
items7[2] = callback(tmp4(4739).Text, obj11);
|
2026-08-14 17:33:39 +00:00
|
|
|
obj4[1] = items7;
|
|
|
|
|
tmp27Result = tmp24(tmp25, obj4);
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmpResult2 = tmp(4761);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != first) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp11) {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != selectedGiftingPromotionReward) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj12 = { style: null, children: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
obj12[0] = tmp3.selectedRewardRow;
|
|
|
|
|
const obj13 = { style: null, children: null };
|
|
|
|
|
obj13[0] = tmp3.selectedRewardBannerContainer;
|
|
|
|
|
const obj14 = { collectiblesItem: null, currentUser: null, gradientColors: null, gradientAngle: null };
|
|
|
|
|
obj14[0] = first;
|
|
|
|
|
obj14[1] = stateFromStores;
|
|
|
|
|
obj14[2] = tmp16;
|
2026-07-29 08:29:29 +00:00
|
|
|
let angle;
|
|
|
|
|
if (stateFromStores1 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const gradient2 = stateFromStores1.gradient;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (gradient2 != null) {
|
|
|
|
|
angle = gradient2.angle;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
obj14[3] = angle;
|
|
|
|
|
obj13[1] = callback(RewardPreview, obj14);
|
|
|
|
|
const items9 = [callback(tmp25, obj13), ];
|
|
|
|
|
let tmp29Result = !tmp10;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!tmp10) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const obj15 = { variant: "tertiary", size: "sm", icon: null, accessibilityLabel: null, onPress: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj15[2] = tmp29(tmp4(9964).PencilIcon, { size: "sm" });
|
2026-07-29 08:29:29 +00:00
|
|
|
const intl2 = tmp4(1236).intl;
|
2026-08-14 17:33:39 +00:00
|
|
|
obj15[3] = intl2.string(tmp4(1236).t.bt75uw);
|
|
|
|
|
obj15[4] = function onPress() {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp = selectedGiftingPromotionReward;
|
2026-08-24 06:08:38 +00:00
|
|
|
if (closure_8) {
|
2026-08-14 17:33:39 +00:00
|
|
|
_undefined2(defaultSelection(_undefined[30]).PaymentFlowStep.REWARD_SKU_SELECT);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (null == tmp) {
|
|
|
|
|
tmp = defaultSelection;
|
|
|
|
|
}
|
|
|
|
|
const obj = { defaultHighlightedReward: null, allRewards: null, claimableRewards: null, onSelect: null };
|
|
|
|
|
obj[0] = tmp;
|
|
|
|
|
let items = c3;
|
|
|
|
|
if (c3 == null) {
|
|
|
|
|
items = [];
|
|
|
|
|
}
|
|
|
|
|
obj[1] = items;
|
|
|
|
|
let items1 = claimableRewards;
|
|
|
|
|
if (claimableRewards == null) {
|
|
|
|
|
items1 = [];
|
|
|
|
|
}
|
|
|
|
|
obj[2] = items1;
|
|
|
|
|
obj[3] = function onSelect(arg0) {
|
|
|
|
|
callback(arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
navigation.navigate(closure_1_0(closure_1_2[31]).PremiumGiftScreens.CUSTOMIZATION);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
2026-08-14 17:33:39 +00:00
|
|
|
navigation.navigate(defaultSelection(_undefined[31]).PremiumGiftScreens.REWARD_SELECT, obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp3 = defaultSelection;
|
|
|
|
|
const tmp4 = _undefined;
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp29Result = tmp29(tmp4(8074).IconButton, obj15);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
items9[1] = tmp29Result;
|
|
|
|
|
obj12[1] = items9;
|
|
|
|
|
tmp27Result = tmp24(tmp25, obj12);
|
|
|
|
|
const tmp30 = RewardPreview;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp27Result = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (GiftingBadgeExperiment.useConfig({ location: "PremiumGiftPurchaseButton" }).enabled) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp27Result = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nextTier) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const obj16 = { giftsToNextTier: null, nextTierName: null, nextTierIcon: null, analyticsLocation: null };
|
|
|
|
|
obj16[0] = stateFromStoresObject.giftsToNextTier;
|
2026-07-29 08:29:29 +00:00
|
|
|
let str2 = nextTier.name;
|
|
|
|
|
if (str2 == null) {
|
|
|
|
|
str2 = "";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
obj16[1] = str2;
|
|
|
|
|
obj16[2] = nextTier.simple_icon_url;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj16[3] = tmp(7197).PREMIUM_GIFT_CUSTOMIZATION;
|
|
|
|
|
tmp27Result = callback(tmp(10349), obj16);
|
2026-08-14 17:33:39 +00:00
|
|
|
const tmp27 = callback;
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmpResult4 = tmp(10349);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|