79 lines
5.4 KiB
TypeScript
79 lines
5.4 KiB
TypeScript
/* Metro module 13230; source: modules/user_profile/native/UserProfilePremiumUpsellCard.tsx; dependencies: [31, 661, 33, 4501, 1585, 1484, 7061, 6771, 6789, 7508, 5080, 7028, 1962, 7940, 13231, 1244, 4573, 2] */
|
|
function _fun100909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13420:6, offset: 0x021ffa9c, size: 227 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_4 = constantsModule.AnalyticsObjects;
|
|
const env0_5 = constantsModule.AnalyticsPages;
|
|
const env0_6 = constantsModule.AnalyticsSections;
|
|
const env0_7 = constantsModule.UserSettingsSections;
|
|
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
|
|
return {container: {'position': 'absolute', 'bottom': null, 'start': 0, 'end': 0, bottom: a0}};
|
|
});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfilePremiumUpsellCard.tsx');
|
|
exports.UserProfilePremiumUpsellCard = UserProfilePremiumUpsellCard;
|
|
}
|
|
|
|
function UserProfilePremiumUpsellCard({isTryItOut}) { // fn#100911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13420:431, offset: 0x021ffb9e, size: 568 bytes, params: 2, frame: 24
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const styles = useStyles((importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom);
|
|
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const value3 = (require(7061) /* metro dependency 7061: MobileTrialUtils */).useNitroTrialCtaOverride('user_profile_premium_upsell_card');
|
|
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
|
const defaultImport2 = importDefault(6789) /* metro dependency 6789: AnalyticsLocation */;
|
|
const analyticsLocations = defaultImport([isTryItOut ? defaultImport2.USER_SETTINGS_TRY_OUT_PREMIUM : defaultImport2.USER_SETTINGS_USER_PROFILE]).analyticsLocations;
|
|
const binding = env0_3;
|
|
const value4 = binding.useCallback(_fun100912, [value2]);
|
|
const value5 = binding.useCallback(_fun100913, [analyticsLocations]);
|
|
const UserProfileUpsellCard = importDefault(13231) /* metro dependency 13231: UserProfileUpsellCard */;
|
|
const r6 = isTryItOut ? value3 ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pj0XBN) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PxUx8e);
|
|
const r4 = isTryItOut ? value5 : value4;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
return (
|
|
<UserProfileUpsellCard
|
|
style={styles.container}
|
|
ctaText={r6}
|
|
showLinearGradient
|
|
onPress={r4}
|
|
>
|
|
<Text variant="text-sm/normal" maxFontSizeMultiplier={2.5}>
|
|
{isTryItOut ? Reflect.apply(string, intl, [t.ZFR9LF]) : Reflect.apply(string, intl, [t.Tii53U])}
|
|
</Text>
|
|
</UserProfileUpsellCard>
|
|
);
|
|
}
|
|
|
|
function _fun100912() { // fn#100912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13420:736, offset: 0x021ffdd6, size: 71 bytes, params: 1, frame: 13
|
|
const defaultImport = importDefault(7508) /* metro dependency 7508: UserSettingsModalActionCreators */;
|
|
const setSection = defaultImport.setSection;
|
|
let PROFILE_CUSTOMIZATION_TRY_IT_OUT = UserSettingsSections.PROFILE_CUSTOMIZATION_TRY_IT_OUT;
|
|
Reflect.apply(setSection, defaultImport, [PROFILE_CUSTOMIZATION_TRY_IT_OUT]);
|
|
const binding = env0_0;
|
|
const push = binding.push;
|
|
PROFILE_CUSTOMIZATION_TRY_IT_OUT = UserSettingsSections.PROFILE_CUSTOMIZATION_TRY_IT_OUT;
|
|
Reflect.apply(push, binding, [PROFILE_CUSTOMIZATION_TRY_IT_OUT]);
|
|
}
|
|
|
|
function _fun100913() { // fn#100913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13420:863, offset: 0x021ffe1d, size: 168 bytes, params: 1, frame: 19
|
|
const defaultImport = importDefault(dependencyMap[10]);
|
|
const pushLazy = defaultImport.pushLazy;
|
|
const value2 = require(dependencyMap[12])(dependencyMap[11], dependencyMap.paths);
|
|
const object2 = {};
|
|
const USER_SETTINGS = AnalyticsPages.USER_SETTINGS;
|
|
const SETTINGS_CUSTOMIZE_PROFILE_TRY_IT_OUT = AnalyticsSections.SETTINGS_CUSTOMIZE_PROFILE_TRY_IT_OUT;
|
|
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
|
|
object2.analyticsLocation = {page: USER_SETTINGS, section: SETTINGS_CUSTOMIZE_PROFILE_TRY_IT_OUT,
|
|
object: BUTTON_CTA};
|
|
object2.analyticsLocations = analyticsLocations;
|
|
const PremiumFeatureCardOrder = require(dependencyMap[13]).PremiumFeatureCardOrder;
|
|
const TIER_2_LEADING = PremiumFeatureCardOrder.TIER_2_LEADING;
|
|
object2.premiumFeatureCardOrder = TIER_2_LEADING;
|
|
Reflect.apply(pushLazy, defaultImport, [value2, object2]);
|
|
}
|
|
|