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

552 lines
22 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10336
// Function ID: 10337
2026-07-20 16:05:17 +00:00
// Name: items
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 17, 8973, 7666, 1924, 676, 21, 4668, 712, 689, 1500, 1629, 1494, 9662, 4727, 6349, 589, 10337, 9629, 8969, 10335, 10339, 10342, 8559, 4119, 1297, 4671, 10349, 7197, 10350, 10384, 8071, 1236, 6399, 5454, 10413, 4761, 6401, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 10336 (items)
import nDefault from "n" /* 689 */;
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import closure_9 from "initialize" /* 8973 */;
import closure_10 from "createEmptyPromotionsByType" /* 7666 */;
import { VerticalGradient } from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
({ ActivityIndicator: c5, Pressable: closure_6, View: error, ScrollView: closure_8 } = get_ActivityIndicator);
2026-07-29 08:29:29 +00:00
({ jsx: closure_12, jsxs: map1, Fragment: closure_14 } = jsxProd);
2026-07-23 10:11:24 +00:00
let items = [, ];
({ TIER_2: arr[0], TIER_0: arr[1] } = require("GuildFeatures").PremiumTypes);
2026-07-29 08:29:29 +00:00
let c16 = 16;
let closure_17 = createCacheKey.createStyles((width) => {
let obj = { container: null, headerBackground: null, headerBackgroundColor: null, headerImageContainer: null, headerImage: null, headerOverlay: null, avatar: null, title: null, description: null, carousel: null, dmGiftingContent: null, loadingContainer: null, closeButtonContainer: null, closeButton: null, closeButtonIcon: null, badgeBanner: null };
2026-08-24 06:08:38 +00:00
obj = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-07-20 16:05:17 +00:00
obj = { position: "absolute", width, height: 0.1 * arg1, top: arg1 / 1.75 - 0.1 * arg1 };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
obj[2] = { color: ThemesDefault.colors.BACKGROUND_BASE_LOW };
2026-07-29 08:29:29 +00:00
obj[3] = { position: "absolute", width, height: arg1 / 1.75 };
obj[4] = { width };
const obj2 = { width, backgroundColor: null };
2026-08-24 06:08:38 +00:00
let obj5 = nDefault("#000000");
obj1 = { color: ThemesDefault.colors.BACKGROUND_BASE_LOW };
2026-07-29 08:29:29 +00:00
obj2[1] = obj5.alpha(0.8).hex();
obj[5] = obj2;
obj[6] = { alignSelf: "center" };
2026-08-24 06:08:38 +00:00
const space = ThemesDefault.space;
2026-07-20 16:05:17 +00:00
const alphaResult = obj5.alpha(0.8);
2026-08-24 06:08:38 +00:00
obj[7] = { textAlign: "center", marginTop: arg2 ? space.PX_16 : space.PX_12, marginHorizontal: ThemesDefault.space.PX_24 };
2026-07-29 08:29:29 +00:00
const space2 = tmp(712).space;
2026-08-24 06:08:38 +00:00
const obj3 = { textAlign: "center", marginTop: arg2 ? space.PX_16 : space.PX_12, marginHorizontal: ThemesDefault.space.PX_24 };
obj[8] = { textAlign: "center", marginTop: arg2 ? space2.PX_16 : space2.PX_12, marginHorizontal: ThemesDefault.space.PX_24 };
2026-07-29 08:29:29 +00:00
const space3 = tmp(712).space;
obj[9] = { marginTop: arg2 ? space3.PX_16 : space3.PX_32 };
obj5 = { paddingTop: tmp(712).space.PX_16, paddingBottom: tmp(712).space.PX_48 };
obj[10] = obj5;
obj[11] = { flex: 1, alignItems: "center", justifyContent: "center" };
obj[12] = { position: "absolute", top: 0, left: 0, zIndex: 1 };
2026-08-24 06:08:38 +00:00
const obj4 = { textAlign: "center", marginTop: arg2 ? space2.PX_16 : space2.PX_12, marginHorizontal: ThemesDefault.space.PX_24 };
obj[13] = { padding: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
obj[14] = { width: 24, height: 24, tintColor: "white" };
2026-08-24 06:08:38 +00:00
const obj6 = { padding: ThemesDefault.space.PX_16 };
obj[15] = { marginTop: ThemesDefault.space.PX_16, marginHorizontal: ThemesDefault.space.PX_16 };
2026-07-20 16:05:17 +00:00
return obj;
});
2026-07-29 08:29:29 +00:00
let closure_18 = { code: "function PremiumGiftPlanSelectTsx1(){const{STANDARD_EASING,withTiming,carouselVisibility}=this.__closure;const animationSettings={easing:STANDARD_EASING,duration:500};return{opacity:withTiming(carouselVisibility.get()?1:0,animationSettings),transform:[{translateY:withTiming(carouselVisibility.get()?0:100,animationSettings)}]};}" };
let closure_19 = { code: "function PremiumGiftPlanSelectTsx2(value,index){const{lastItemIndex,leftOffset,centerOffset,rightOffset,carouselStep}=this.__closure;const activeIndex=index-value;const leftT=Math.max(0,Math.min(1,activeIndex));const rightT=Math.max(0,Math.min(1,activeIndex-(lastItemIndex-1)));const offset=leftOffset+leftT*(centerOffset-leftOffset)+rightT*(rightOffset-centerOffset);return{transform:[{translateX:value*carouselStep+offset}]};}" };
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/premium/native/gifting/PremiumGiftPlanSelect.tsx");
2026-07-20 16:05:17 +00:00
export default function PremiumGiftPlanSelect(shouldUseDMWishlistGiftingDesign) {
shouldUseDMWishlistGiftingDesign = shouldUseDMWishlistGiftingDesign.shouldUseDMWishlistGiftingDesign;
2026-07-29 08:29:29 +00:00
let navigation;
claimableRewards = undefined;
let onClose;
let selectPremiumGift;
2026-07-23 10:11:24 +00:00
let enabled;
2026-08-24 06:08:38 +00:00
closure_5 = undefined;
2026-07-20 16:05:17 +00:00
let first;
2026-07-23 10:11:24 +00:00
c7 = undefined;
2026-07-29 08:29:29 +00:00
let num;
2026-08-24 06:08:38 +00:00
closure_9 = undefined;
2026-07-23 10:11:24 +00:00
let ref;
let callback;
callback = undefined;
2026-07-20 16:05:17 +00:00
let callback2;
let str;
2026-07-23 10:11:24 +00:00
let sharedValue;
2026-08-24 06:08:38 +00:00
c16 = undefined;
2026-07-20 16:05:17 +00:00
callback2 = undefined;
2026-07-23 10:11:24 +00:00
let result1;
2026-07-20 16:05:17 +00:00
let diff1;
2026-07-23 10:11:24 +00:00
let obj = navigation(onClose[11]);
navigation = obj.useNavigation();
({ top, bottom } = claimableRewards(onClose[12])());
2026-07-29 08:29:29 +00:00
const tmp5 = claimableRewards(onClose[12])();
({ width, height } = claimableRewards(onClose[13])());
2026-08-24 06:08:38 +00:00
obj1 = navigation(onClose[14]);
2026-07-20 16:05:17 +00:00
const nativeGiftContext = obj1.useNativeGiftContext();
({ recipientUser, claimableRewards } = nativeGiftContext);
2026-07-23 10:11:24 +00:00
onClose = nativeGiftContext.onClose;
let obj2 = navigation(onClose[15]);
2026-07-20 16:05:17 +00:00
const isScreenReaderEnabled = obj2.useIsScreenReaderEnabled();
2026-07-23 10:11:24 +00:00
let obj3 = navigation(onClose[16]);
2026-07-20 16:05:17 +00:00
obj3.useNavigatorBackPressHandler(() => {
onClose();
return true;
});
2026-07-23 10:11:24 +00:00
let obj4 = navigation(onClose[17]);
2026-08-24 06:08:38 +00:00
items = [ref];
2026-07-20 16:05:17 +00:00
const stateFromStoresArray = obj4.useStateFromStoresArray(items, () => ref.getGiftPromotionRewardSkuIds());
2026-07-23 10:11:24 +00:00
let obj5 = navigation(onClose[18]);
2026-07-29 08:29:29 +00:00
selectPremiumGift = obj5.useSelectPremiumGift("PremiumGiftPlanSelect");
2026-07-23 10:11:24 +00:00
let obj6 = claimableRewards(onClose[19]);
enabled = obj6.useConfig({ location: "PremiumGiftPlanSelect" }).enabled;
let obj7 = navigation(onClose[17]);
2026-08-24 06:08:38 +00:00
const items1 = [closure_9];
2026-07-20 16:05:17 +00:00
const stateFromStoresObject = obj7.useStateFromStoresObject(items1, () => {
2026-08-24 06:08:38 +00:00
({ getNextTier, getRemainingToNextTier } = closure_9);
2026-07-20 16:05:17 +00:00
return { nextTier: getNextTier(navigation(onClose[20]).BadgeId.GIFTING), giftsToNextTier: getRemainingToNextTier(navigation(onClose[20]).BadgeId.GIFTING) };
});
({ nextTier, giftsToNextTier } = stateFromStoresObject);
if (enabled) {
enabled = null != nextTier;
}
2026-07-29 08:29:29 +00:00
const tmp13 = callback2(width, height, enabled);
2026-08-24 06:08:38 +00:00
closure_5 = tmp13;
2026-07-29 08:29:29 +00:00
let obj8 = enabled;
const tmp14 = selectPremiumGift(enabled.useState(0), 2);
first = tmp14[0];
const tmp6 = claimableRewards(onClose[13])();
[tmp18, c7] = selectPremiumGift(enabled.useState(false), 2);
2026-07-20 16:05:17 +00:00
const items2 = [navigation];
2026-07-23 10:11:24 +00:00
const effect = enabled.useEffect(() => {
navigation = navigation.addListener("state", () => {
2026-07-29 08:29:29 +00:00
const state = lib.getState();
2026-08-24 06:08:38 +00:00
callback(state.routes[state.index].name === lib(closure_1_2[21]).PremiumGiftScreens.PLAN_SELECT);
2026-07-20 16:05:17 +00:00
});
return () => {
2026-07-29 08:29:29 +00:00
lib.removeListener("state", lib);
2026-07-20 16:05:17 +00:00
};
}, items2);
2026-07-29 08:29:29 +00:00
const tmp20 = selectPremiumGift(enabled.useState(null), 2);
num = tmp20[0];
2026-08-24 06:08:38 +00:00
closure_9 = tmp21;
2026-07-23 10:11:24 +00:00
ref = enabled.useRef([]);
2026-08-24 06:08:38 +00:00
const items3 = [shouldUseDMWishlistGiftingDesign, ];
let tmp65Result = enabled;
let length;
if (claimableRewards != null) {
length = claimableRewards.length;
}
items3[1] = length;
2026-07-23 10:11:24 +00:00
const effect1 = enabled.useEffect(() => {
2026-07-20 16:05:17 +00:00
ref.current = [];
2026-08-24 06:08:38 +00:00
callback(null);
2026-07-20 16:05:17 +00:00
}, items3);
2026-07-29 08:29:29 +00:00
const items4 = [tmp20[1]];
2026-08-24 06:08:38 +00:00
callback = obj8.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (ref.current.length >= sharedValue.length) {
const _Math = Math;
2026-08-24 06:08:38 +00:00
items = [];
2026-07-29 08:29:29 +00:00
HermesBuiltin.arraySpread(tmp.current, 0);
2026-07-20 16:05:17 +00:00
const _Math2 = Math;
const applyResult = HermesBuiltin.apply(items, Math);
const _Number = Number;
if (!Number.isNaN(applyResult)) {
2026-08-24 06:08:38 +00:00
callback(applyResult);
2026-07-20 16:05:17 +00:00
}
}
}, items4);
2026-08-24 06:08:38 +00:00
const callback1 = obj8.useCallback(() => {
2026-07-20 16:05:17 +00:00
claimableRewards(onClose[22])();
}, []);
2026-07-23 10:11:24 +00:00
let result = 0.86 * width;
callback = result;
2026-07-29 08:29:29 +00:00
const items5 = [selectPremiumGift, result, ref, callback, num, first, claimableRewards];
2026-08-24 06:08:38 +00:00
callback2 = obj8.useCallback((arg0) => {
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
let obj = arg1;
2026-07-20 16:05:17 +00:00
if (arg1 === undefined) {
2026-07-29 08:29:29 +00:00
obj = { forScreenReader: false };
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const forScreenReader = obj.forScreenReader;
2026-07-20 16:05:17 +00:00
return (item) => {
item = item.item;
const index = item.index;
2026-07-29 08:29:29 +00:00
let obj = { accessible: index, accessibilityRole: null, onPress: null, style: null, children: null };
2026-08-24 06:08:38 +00:00
str = undefined;
2026-07-23 10:11:24 +00:00
if (index) {
2026-07-20 16:05:17 +00:00
str = "button";
}
2026-07-29 08:29:29 +00:00
obj[1] = str;
2026-07-20 16:05:17 +00:00
let fn;
2026-07-23 10:11:24 +00:00
if (index) {
2026-08-24 06:08:38 +00:00
fn = () => closure_1_3(item);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = fn;
2026-07-23 10:11:24 +00:00
obj = { paddingVertical: claimableRewards(onClose[9]).space.PX_8 };
2026-07-29 08:29:29 +00:00
obj[3] = obj;
2026-07-20 16:05:17 +00:00
obj = {
premiumType: item,
variant: item,
onPress() {
2026-08-24 06:08:38 +00:00
return closure_1_3(item);
2026-07-29 08:29:29 +00:00
},
style: null,
onLayout: null,
claimableRewards: null,
isSelected: null
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj1 = { height: closure_1_8, width: closure_1_12, alignSelf: null };
2026-07-20 16:05:17 +00:00
let str2;
if ("default" === item) {
str2 = "center";
}
2026-07-29 08:29:29 +00:00
obj1[2] = str2;
obj[3] = obj1;
obj[4] = function onLayout(nativeEvent) {
2026-07-20 16:05:17 +00:00
const height = nativeEvent.nativeEvent.layout.height;
if (height > 0) {
2026-08-24 06:08:38 +00:00
num = closure_1_10.current[index];
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
closure_1_10.current[index] = Math.max(height, num);
closure_1_11();
2026-07-20 16:05:17 +00:00
const tmp2 = index;
}
};
2026-07-29 08:29:29 +00:00
obj[5] = forScreenReader;
2026-08-24 06:08:38 +00:00
obj[6] = closure_1_6 === index;
2026-07-29 08:29:29 +00:00
obj[4] = c12(claimableRewards(onClose[23]), obj, index);
2026-07-23 10:11:24 +00:00
return c12(index ? first : c7, obj);
2026-07-20 16:05:17 +00:00
};
}, items5);
2026-07-29 08:29:29 +00:00
let tmpResult = tmp(tmp2[24]);
2026-08-24 06:08:38 +00:00
let tmp31 = null != claimableRewards;
2026-07-29 08:29:29 +00:00
const isWindowSmall = tmpResult.useIsWindowSmall();
2026-08-24 06:08:38 +00:00
if (tmp31) {
tmp31 = claimableRewards.length > 0;
2026-07-20 16:05:17 +00:00
}
if (isWindowSmall) {
str = "smallCompact";
} else {
str = "compact";
}
const items6 = [callback2, str];
2026-07-29 08:29:29 +00:00
const memo = obj8.useMemo(() => callback2(str), items6);
2026-07-20 16:05:17 +00:00
const items7 = [callback2];
2026-07-29 08:29:29 +00:00
let memo1 = obj8.useMemo(() => callback2("default"), items7);
tmpResult = tmp(tmp2[25]);
sharedValue = tmpResult.useSharedValue(false);
const items8 = [sharedValue, num];
const effect2 = obj8.useEffect(() => {
const result = sharedValue.set(null != num);
2026-07-20 16:05:17 +00:00
}, items8);
2026-07-29 08:29:29 +00:00
const tmp17 = selectPremiumGift(enabled.useState(false), 2);
function he() {
2026-07-20 16:05:17 +00:00
let obj = { easing: navigation(onClose[26]).STANDARD_EASING, duration: 500 };
2026-08-24 06:08:38 +00:00
num = 0;
2026-07-20 16:05:17 +00:00
if (sharedValue.get()) {
num = 1;
}
2026-07-29 08:29:29 +00:00
obj = { opacity: navigation(onClose[27]).withTiming(num, obj), transform: null };
const obj2 = navigation(onClose[27]);
const obj3 = sharedValue;
const tmp = navigation;
const tmp2 = onClose;
2026-07-20 16:05:17 +00:00
let num2 = 100;
2026-07-29 08:29:29 +00:00
if (obj3.get()) {
2026-07-20 16:05:17 +00:00
num2 = 0;
}
2026-07-29 08:29:29 +00:00
obj = { translateY: navigation(onClose[27]).withTiming(num2, obj) };
2026-08-24 06:08:38 +00:00
items = [obj];
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return obj;
}
2026-07-29 08:29:29 +00:00
obj = { STANDARD_EASING: tmp(tmp2[26]).STANDARD_EASING, withTiming: tmp(tmp2[27]).withTiming, carouselVisibility: sharedValue };
he.__closure = obj;
he.__workletHash = 2946262965957;
he.__initData = result1;
const animatedStyle = navigation(onClose[25]).useAnimatedStyle(he);
const items9 = [tmp13];
const sum = result + c16;
c16 = sum;
let diff = sharedValue.length - 1;
callback2 = diff;
2026-07-23 10:11:24 +00:00
result1 = (width - result) / 2;
2026-07-29 08:29:29 +00:00
diff1 = width - result - c16;
function fe(arg0, arg1) {
const diff = arg1 - arg0;
const bound = Math.max(0, Math.min(1, diff));
let obj = { transform: null };
obj = { translateX: arg0 * c16 + (16 + bound * (result1 - 16) + Math.max(0, Math.min(1, diff - (c17 - 1))) * (diff1 - result1)) };
2026-08-24 06:08:38 +00:00
items = [obj];
2026-07-29 08:29:29 +00:00
obj[0] = items;
return obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
fe.__closure = { lastItemIndex: diff, leftOffset: 16, centerOffset: result1, rightOffset: diff1, carouselStep: sum };
fe.__workletHash = 8954351954675;
fe.__initData = diff1;
2026-07-20 16:05:17 +00:00
const items10 = [sum, diff, 16, result1, diff1];
2026-07-29 08:29:29 +00:00
const memo2 = obj8.useMemo(() => {
2026-08-24 06:08:38 +00:00
const obj = claimableRewards(onClose[10])(closure_5.headerBackgroundColor.color);
items = [claimableRewards(onClose[10])(closure_5.headerBackgroundColor.color).alpha(0).hex(), ];
const alphaResult = claimableRewards(onClose[10])(closure_5.headerBackgroundColor.color).alpha(0);
const obj3 = claimableRewards(onClose[10])(closure_5.headerBackgroundColor.color);
items[1] = claimableRewards(onClose[10])(closure_5.headerBackgroundColor.color).alpha(1).hex();
2026-07-20 16:05:17 +00:00
return items;
}, items9);
2026-07-29 08:29:29 +00:00
const callback3 = obj8.useCallback(fe, items10);
2026-07-20 16:05:17 +00:00
if (shouldUseDMWishlistGiftingDesign.isLoadingWishlist) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items11 = [, ];
2026-07-29 08:29:29 +00:00
({ container: arr23[0], loadingContainer: arr23[1] } = tmp13);
obj[0] = items11;
2026-08-24 06:08:38 +00:00
obj[1] = callback(closure_5, { size: "large" });
let tmp65Result1 = callback(c7, obj);
2026-07-20 16:05:17 +00:00
} else if (shouldUseDMWishlistGiftingDesign) {
2026-07-29 08:29:29 +00:00
obj1 = { style: null, children: null };
obj1[0] = tmp13.container;
obj2 = { contentContainerStyle: null, children: null };
obj3 = { paddingBottom: null };
obj3[0] = bottom;
obj2[0] = obj3;
2026-08-24 06:08:38 +00:00
if (tmp65Result) {
2026-07-29 08:29:29 +00:00
obj4 = { style: null, children: null };
obj4[0] = tmp13.badgeBanner;
obj5 = { onPress: null, accessibilityRole: "button", children: null };
obj5[0] = callback1;
obj6 = { giftsToNextTier: null, nextTierName: null, nextTierIcon: null, analyticsLocation: null };
obj6[0] = giftsToNextTier;
let str4 = nextTier.name;
let tmp4Result = tmp4(tmp2[28]);
if (str4 == null) {
str4 = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj6[1] = str4;
obj6[2] = nextTier.simple_icon_url;
obj6[3] = tmp4(tmp2[29]).PREMIUM_GIFT_PLAN_SELECTION;
2026-08-24 06:08:38 +00:00
obj5[2] = tmp65(tmp4Result, obj6);
obj4[1] = tmp65(first, obj5);
tmp65Result = tmp65(tmp66, obj4);
const tmp69 = first;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const items12 = [tmp65Result, , ];
2026-07-29 08:29:29 +00:00
obj7 = { style: null, children: null };
obj7[0] = tmp13.dmGiftingContent;
2026-07-20 16:05:17 +00:00
if (0 !== stateFromStoresArray.length) {
if (undefined === claimableRewards) {
2026-07-29 08:29:29 +00:00
obj7[1] = null;
2026-08-24 06:08:38 +00:00
items12[1] = tmp65(tmp66, obj7);
tmp65Result = null != recipientUser;
if (tmp65Result) {
2026-07-29 08:29:29 +00:00
obj8 = { giftRecipient: null };
obj8[0] = recipientUser;
2026-08-24 06:08:38 +00:00
tmp65Result = tmp65(tmp(tmp2[31]).PremiumGiftWishlistBanner, obj8);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items12[2] = tmp65Result;
2026-07-29 08:29:29 +00:00
obj2[1] = items12;
2026-08-24 06:08:38 +00:00
obj1[1] = tmp67(tmp68, obj2);
tmp65Result1 = tmp65(tmp66, obj1);
2026-07-20 16:05:17 +00:00
}
}
if (isScreenReaderEnabled) {
2026-07-29 08:29:29 +00:00
const obj9 = { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: null, children: null };
const obj10 = { gap: null, paddingHorizontal: null };
2026-08-24 06:08:38 +00:00
obj10[0] = tmp38;
obj10[1] = tmp38;
2026-07-29 08:29:29 +00:00
obj9[2] = obj10;
obj9[3] = arr12.map((item, index) => callback2(str, { forScreenReader: true })({ item, index }));
2026-08-24 06:08:38 +00:00
let tmp65Result2 = tmp65(tmp68, obj9);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj11 = { style: null, data: null, renderItem: null, width: null, windowSize: null, height: null, onConfigurePanGesture: null, loop: false, scrollAnimationDuration: 200, customAnimation: null, onSnapToItem: null };
obj11[0] = animatedStyle;
obj11[1] = arr12;
obj11[2] = memo;
obj11[3] = width;
obj11[4] = arr12.length;
tmp4Result = tmp4(tmp2[30]);
if (num == null) {
num = 1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj11[5] = num + 2 * tmp4(tmp2[9]).space.PX_8;
obj11[6] = function onConfigurePanGesture(activeOffsetX) {
activeOffsetX.activeOffsetX([-10, 10]);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj11[9] = callback3;
obj11[10] = tmp16;
2026-08-24 06:08:38 +00:00
tmp65Result2 = tmp65(tmp4Result, obj11);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp67 = callback2;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
if (tmp18) {
tmp18 = callback(tmp4(tmp2[32]), { animated: true, barStyle: "light-content" });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items13 = [tmp18, , , , , ];
const obj12 = { style: null, onPress: null, accessibilityRole: "button", accessibilityLabel: null, children: null };
const items14 = [tmp13.closeButtonContainer, ];
const obj13 = { paddingTop: null };
obj13[0] = top;
items14[1] = obj13;
obj12[0] = items14;
obj12[1] = onClose;
const intl = tmp(tmp2[33]).intl;
obj12[3] = intl.string(tmp(tmp2[33]).t.cpT0Cq);
const obj14 = { style: null, children: null };
obj14[0] = tmp13.closeButton;
const obj15 = { size: "md", style: null };
obj15[1] = tmp13.closeButtonIcon;
obj14[1] = callback(tmp(tmp2[34]).XSmallIcon, obj15);
obj12[4] = callback(c7, obj14);
items13[1] = callback(first, obj12);
const obj16 = { resizeMode: "cover", style: null, source: null };
2026-07-20 16:05:17 +00:00
const items15 = [, ];
2026-07-29 08:29:29 +00:00
({ headerImageContainer: arr16[0], headerImage: arr16[1] } = tmp13);
obj16[1] = items15;
obj16[2] = tmp4(tmp2[36]);
items13[2] = callback(tmp4(tmp2[35]), obj16);
const obj17 = { style: null };
2026-07-20 16:05:17 +00:00
const items16 = [, ];
2026-07-29 08:29:29 +00:00
({ headerImageContainer: arr17[0], headerOverlay: arr17[1] } = tmp13);
obj17[0] = items16;
items13[3] = callback(c7, obj17);
const obj18 = { style: null, start: null, end: null, colors: null };
obj18[0] = tmp13.headerBackground;
({ START: obj20[1], END: obj20[2] } = callback);
obj18[3] = memo2;
items13[4] = callback(tmp4(tmp2[37]), obj18);
const obj19 = { contentContainerStyle: null, children: null };
const obj20 = { paddingBottom: null };
obj20[0] = bottom;
obj19[0] = obj20;
const obj21 = { style: null, children: null };
const obj22 = { paddingTop: null };
obj22[0] = top + tmp(tmp2[38]).NAV_BAR_HEIGHT;
const items17 = [obj22];
obj21[0] = items17;
2026-07-20 16:05:17 +00:00
if (null == recipientUser) {
2026-08-24 06:08:38 +00:00
const items18 = [tmp53, , , , ];
2026-07-29 08:29:29 +00:00
const obj23 = { style: null, variant: null, color: "text-overlay-light", children: null };
obj23[0] = tmp13.title;
let str2 = "heading-xxl/extrabold";
2026-07-20 16:05:17 +00:00
if (null != recipientUser) {
2026-07-29 08:29:29 +00:00
str2 = "heading-xl/extrabold";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj23[1] = str2;
2026-07-20 16:05:17 +00:00
if (null != recipientUser) {
2026-07-29 08:29:29 +00:00
const intl3 = tmp(tmp2[33]).intl;
2026-07-20 16:05:17 +00:00
let username = recipientUser.globalName;
2026-07-29 08:29:29 +00:00
if (username == null) {
2026-07-20 16:05:17 +00:00
username = recipientUser.username;
}
2026-07-29 08:29:29 +00:00
const obj24 = { username: null };
obj24[0] = username;
let formatToPlainStringResult = intl3.formatToPlainString(tmp(tmp2[33]).t.m5ggvH, obj24);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl2 = tmp(tmp2[33]).intl;
formatToPlainStringResult = intl2.string(tmp(tmp2[33]).t.dqQgZv);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj23[3] = formatToPlainStringResult;
2026-08-24 06:08:38 +00:00
items18[1] = tmp47(tmp(tmp2[39]).Text, obj23);
2026-07-29 08:29:29 +00:00
const obj25 = { style: null, variant: "heading-sm/medium", color: "text-overlay-light", children: null };
obj25[0] = tmp13.description;
const intl4 = tmp(tmp2[33]).intl;
obj25[3] = intl4.string(tmp(tmp2[33]).t["30qzrd"]);
2026-08-24 06:08:38 +00:00
items18[2] = tmp47(tmp(tmp2[39]).Text, obj25);
let tmp47Result = tmp65Result;
if (tmp65Result) {
2026-07-29 08:29:29 +00:00
const obj26 = { style: null, onPress: null, accessibilityRole: "button", children: null };
obj26[0] = tmp13.badgeBanner;
obj26[1] = callback1;
const obj27 = { giftsToNextTier: null, nextTierName: null, nextTierIcon: null, analyticsLocation: null };
obj27[0] = giftsToNextTier;
let str3 = nextTier.name;
if (str3 == null) {
str3 = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj27[1] = str3;
obj27[2] = nextTier.simple_icon_url;
obj27[3] = tmp4(tmp2[29]).PREMIUM_GIFT_PLAN_SELECTION;
2026-08-24 06:08:38 +00:00
obj26[3] = tmp47(tmp4(tmp2[28]), obj27);
tmp47Result = tmp47(tmp48, obj26);
2026-07-29 08:29:29 +00:00
const tmp4Result2 = tmp4(tmp2[28]);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items18[3] = tmp47Result;
2026-07-20 16:05:17 +00:00
if (0 !== stateFromStoresArray.length) {
if (undefined === claimableRewards) {
2026-07-29 08:29:29 +00:00
const obj28 = { children: null };
2026-07-20 16:05:17 +00:00
items18[4] = null;
2026-07-29 08:29:29 +00:00
obj21[1] = items18;
2026-08-24 06:08:38 +00:00
obj19[1] = tmp44(tmp49, obj21);
items13[5] = tmp47(tmp52, obj19);
2026-07-29 08:29:29 +00:00
obj28[0] = items13;
2026-08-24 06:08:38 +00:00
tmp65Result1 = tmp44(tmp45, obj28);
2026-07-20 16:05:17 +00:00
}
}
if (isScreenReaderEnabled) {
2026-07-29 08:29:29 +00:00
const obj29 = { horizontal: true, showsHorizontalScrollIndicator: false, style: null, contentContainerStyle: null, children: null };
obj29[2] = tmp13.carousel;
const obj30 = { gap: null, paddingHorizontal: null };
2026-08-24 06:08:38 +00:00
obj30[0] = tmp38;
obj30[1] = tmp38;
2026-07-29 08:29:29 +00:00
obj29[3] = obj30;
obj29[4] = arr12.map((item, index) => {
2026-08-24 06:08:38 +00:00
str = "default";
2026-07-29 08:29:29 +00:00
return callback2(str, { forScreenReader: true })({ item, index });
});
2026-08-24 06:08:38 +00:00
tmp47Result = tmp47(tmp52, obj29);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj31 = { style: null, data: null, renderItem: null, width: null, height: null, onConfigurePanGesture: null, loop: false, scrollAnimationDuration: 200, customAnimation: null, mode: "parallax", modeConfig: null, onSnapToItem: null };
const items19 = [tmp13.carousel, animatedStyle];
obj31[0] = items19;
obj31[1] = arr12;
2026-08-24 06:08:38 +00:00
if (tmp65Result) {
2026-07-20 16:05:17 +00:00
memo1 = memo;
}
2026-07-29 08:29:29 +00:00
obj31[2] = memo1;
obj31[3] = width;
2026-07-20 16:05:17 +00:00
let sum1;
2026-07-29 08:29:29 +00:00
if (null != num) {
sum1 = num + 2 * tmp4(tmp2[9]).space.PX_8;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj31[4] = sum1;
obj31[5] = function onConfigurePanGesture(activeOffsetX) {
activeOffsetX.activeOffsetX([-10, 10]);
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
let tmp61;
if (tmp65Result) {
tmp61 = callback3;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj32 = { children: null };
2026-08-24 06:08:38 +00:00
obj31[8] = tmp61;
2026-07-29 08:29:29 +00:00
obj31[10] = { parallaxScrollingScale: 1, parallaxScrollingOffset: 40 };
obj31[11] = tmp16;
2026-08-24 06:08:38 +00:00
const items20 = [tmp47(tmp4(tmp2[30]), obj31), ];
2026-07-29 08:29:29 +00:00
const obj33 = { numberOfItems: null, currentIndex: null };
obj33[0] = arr12.length;
obj33[1] = first;
2026-08-24 06:08:38 +00:00
items20[1] = tmp47(tmp(tmp2[26]).CarouselPagination, obj33);
2026-07-29 08:29:29 +00:00
obj32[0] = items20;
2026-08-24 06:08:38 +00:00
tmp47Result = tmp44(tmp45, obj32);
2026-07-29 08:29:29 +00:00
const tmp4Result3 = tmp4(tmp2[30]);
2026-07-20 16:05:17 +00:00
}
} else {
2026-08-24 06:08:38 +00:00
const obj34 = { style: null, guildId: "r", size: false, user: false };
2026-07-29 08:29:29 +00:00
obj34[0] = tmp13.avatar;
const AvatarSizes = tmp(tmp2[26]).AvatarSizes;
2026-08-24 06:08:38 +00:00
obj34[2] = tmp65Result ? AvatarSizes.LARGE_48 : AvatarSizes.XLARGE;
2026-07-29 08:29:29 +00:00
obj34[3] = recipientUser;
2026-08-24 06:08:38 +00:00
tmp47(tmp(tmp2[26]).Avatar, obj34);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp48 = first;
tmp49 = c7;
2026-07-29 08:29:29 +00:00
const tmp4Result1 = tmp4(tmp2[35]);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
return tmp65Result1;
2026-07-20 16:05:17 +00:00
};