2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 13629
|
|
|
|
|
// Function ID: 104760
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileUpsellButton
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [31, 653, 1852, 33, 4131, 5462, 6187, 675, 4544, 6137, 1212, 6570, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 13629 (UserProfileUpsellButton)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
import ME from "ME";
|
|
|
|
|
import { PremiumUpsellTypes } from "GuildFeatures";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_4;
|
|
|
|
|
let closure_5;
|
|
|
|
|
let closure_6;
|
|
|
|
|
let closure_7;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
({ AnalyticsPages: closure_4, UpsellTypes: closure_5, AnalyticsSections: closure_6, AnalyticEvents: closure_7 } = ME);
|
|
|
|
|
let closure_10 = _createForOfIteratorHelperLoose.createStyles({ nitroWheel: { marginRight: 2 } });
|
|
|
|
|
let result = require("GuildFeatures").fileFinishedImporting("modules/user_profile/native/UserProfileUpsellButton.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function UserProfileUpsellButton(analyticsObject) {
|
|
|
|
|
analyticsObject = analyticsObject.analyticsObject;
|
|
|
|
|
let label = analyticsObject.label;
|
2026-07-24 07:16:23 +00:00
|
|
|
analyticsLocations = analyticsLocations(5462)().analyticsLocations;
|
2026-07-25 08:10:48 +00:00
|
|
|
let obj = analyticsObject(6187);
|
2026-07-20 16:05:17 +00:00
|
|
|
const nitroTrialCtaOverride = obj.useNitroTrialCtaOverride("user_profile_upsell_button");
|
|
|
|
|
const items = [analyticsLocations, analyticsObject];
|
|
|
|
|
const effect = React.useEffect(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = analyticsLocations(outer1_2[7]);
|
|
|
|
|
obj = { type: outer1_8.CUSTOM_PROFILE_SETTINGS_BANNER_BUTTON, location: obj, location_stack: analyticsLocations };
|
|
|
|
|
obj = { page: outer1_4.USER_SETTINGS, section: outer1_6.USER_PROFILE, object: analyticsObject };
|
|
|
|
|
obj.track(outer1_7.PREMIUM_UPSELL_VIEWED, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items);
|
|
|
|
|
obj = {
|
|
|
|
|
onPress() {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = analyticsLocations(outer1_2[9]);
|
|
|
|
|
obj = { initialUpsellKey: outer1_5.CUSTOM_PROFILES, analyticsLocation: obj, analyticsLocations, analyticsProperties: obj1 };
|
|
|
|
|
obj = { page: outer1_4.USER_SETTINGS, section: outer1_6.USER_PROFILE, object: analyticsObject };
|
2026-07-20 16:05:17 +00:00
|
|
|
const result = obj.handleShowUpsellAlert(obj);
|
|
|
|
|
},
|
|
|
|
|
variant: "active"
|
|
|
|
|
};
|
|
|
|
|
if (null != nitroTrialCtaOverride) {
|
|
|
|
|
label = nitroTrialCtaOverride;
|
|
|
|
|
}
|
|
|
|
|
if (null == label) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = analyticsObject(1212).intl;
|
|
|
|
|
label = intl.string(analyticsObject(1212).t.pj0XBN);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
obj.text = label;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { color: "white", size: "sm", style: callback().nitroWheel };
|
2026-07-25 08:10:48 +00:00
|
|
|
obj.icon = jsx(analyticsObject(6570).NitroWheelIcon, { color: "white", size: "sm", style: callback().nitroWheel });
|
|
|
|
|
return jsx(analyticsObject(4544).Button, { color: "white", size: "sm", style: callback().nitroWheel });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|