decord/source/modules/user_profile/native/UserProfilePremiumUpsellCard.tsx

74 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14133
// Function ID: 14134
2026-07-20 16:05:17 +00:00
// Name: UserProfilePremiumUpsellCard
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 676, 21, 4668, 1629, 1500, 7455, 7177, 7197, 7916, 9362, 9363, 14113, 1236, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: UserProfilePremiumUpsellCard
2026-08-24 06:08:38 +00:00
// Module 14133 (UserProfilePremiumUpsellCard)
import closure_3 from "noop" /* 19 */;
import ME from "ME" /* 676 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ AnalyticsObjects: c4, AnalyticsPages: c5, AnalyticsSections: closure_6, UserSettingsSections: error } = ME);
let closure_9 = createCacheKey.createStyles((bottom) => {
2026-07-23 10:11:24 +00:00
const container = { position: "absolute", bottom, start: 0, end: 0 };
2026-07-20 16:05:17 +00:00
return { container };
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfilePremiumUpsellCard.tsx");
2026-07-20 16:05:17 +00:00
export const UserProfilePremiumUpsellCard = function UserProfilePremiumUpsellCard(isTryItOut) {
isTryItOut = isTryItOut.isTryItOut;
2026-07-29 08:29:29 +00:00
let navigation;
2026-07-23 10:11:24 +00:00
let analyticsLocations;
2026-08-15 05:55:55 +00:00
let obj = navigation(1500);
2026-07-23 10:11:24 +00:00
navigation = obj.useNavigation();
2026-07-29 08:29:29 +00:00
const tmp = analyticsLocations;
2026-08-15 05:55:55 +00:00
const tmp3 = callback(analyticsLocations(1629)().bottom);
2026-08-24 06:08:38 +00:00
let nitroTrialCtaOverride = navigation(7455).useNitroTrialCtaOverride("user_profile_premium_upsell_card");
const obj2 = navigation(7455);
const tmp8 = analyticsLocations(7197);
2026-07-29 08:29:29 +00:00
const items = [isTryItOut ? tmp8.USER_SETTINGS_TRY_OUT_PREMIUM : tmp8.USER_SETTINGS_USER_PROFILE];
2026-08-24 06:08:38 +00:00
analyticsLocations = analyticsLocations(7177)(items).analyticsLocations;
2026-07-20 16:05:17 +00:00
const items1 = [navigation];
2026-07-23 10:11:24 +00:00
callback = React.useCallback(() => {
2026-08-24 06:08:38 +00:00
analyticsLocations(closure_1_2[9]).setSection(closure_1_7.PROFILE_CUSTOMIZATION_TRY_IT_OUT);
navigation.push(closure_1_7.PROFILE_CUSTOMIZATION_TRY_IT_OUT);
2026-07-20 16:05:17 +00:00
}, items1);
const items2 = [analyticsLocations];
const callback1 = React.useCallback(() => {
2026-07-29 08:29:29 +00:00
obj = { analyticsLocation: obj, analyticsLocations, premiumFeatureCardOrder: null };
2026-08-24 06:08:38 +00:00
obj = { page: closure_1_5.USER_SETTINGS, section: closure_1_6.SETTINGS_CUSTOMIZE_PROFILE_TRY_IT_OUT, object: closure_1_4.BUTTON_CTA };
obj[2] = navigation(closure_1_2[11]).PremiumFeatureCardOrder.TIER_2_LEADING;
analyticsLocations(closure_1_2[10])(obj);
2026-07-20 16:05:17 +00:00
}, items2);
2026-07-29 08:29:29 +00:00
obj = { style: tmp3.container, ctaText: null, showLinearGradient: true, onPress: null, children: null };
2026-08-24 06:08:38 +00:00
const tmp7 = analyticsLocations(7177);
2026-07-20 16:05:17 +00:00
if (isTryItOut) {
2026-07-29 08:29:29 +00:00
if (nitroTrialCtaOverride == null) {
const intl2 = tmp4(1236).intl;
nitroTrialCtaOverride = intl2.string(tmp4(1236).t.pj0XBN);
2026-07-20 16:05:17 +00:00
}
let stringResult = nitroTrialCtaOverride;
} else {
2026-07-29 08:29:29 +00:00
const intl = tmp4(1236).intl;
stringResult = intl.string(tmp4(1236).t.PxUx8e);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = stringResult;
2026-07-20 16:05:17 +00:00
if (isTryItOut) {
callback = callback1;
}
2026-07-29 08:29:29 +00:00
obj[3] = callback;
const intl3 = tmp4(1236).intl;
2026-07-20 16:05:17 +00:00
const string = intl3.string;
2026-07-29 08:29:29 +00:00
const t = tmp4(1236).t;
2026-07-20 16:05:17 +00:00
if (isTryItOut) {
let stringResult1 = string(t.ZFR9LF);
} else {
stringResult1 = string(t.Tii53U);
}
2026-08-24 06:08:38 +00:00
obj[4] = jsx(navigation(4739).Text, { variant: "text-sm/normal", maxFontSizeMultiplier: 2.5, children: stringResult1 });
return jsx(tmp(14113), { style: tmp3.container, ctaText: null, showLinearGradient: true, onPress: null, children: null });
2026-07-20 16:05:17 +00:00
};