This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,18 @@
// Metro module 15778 (f15779).
import { createApexExperiment } from "../../experiments/apex/index";
const apexExperiment = createApexExperiment({
kind: "user",
name: "2026-01-mobile-action-sheet-killswitch",
defaultConfig: {
disabled: false
},
variations: {
0: {
disabled: false
},
1: {
disabled: true
}
}
});
export default apexExperiment;
@@ -0,0 +1,204 @@
// Metro module 15753 (f15754).
import { useEffect, useMemo, useRef, useState } from "react";
import ActionSheetStore from "../../action_sheet/native/ActionSheetStore";
import UserSettingsProtoStore from "../../user_settings/UserSettingsProtoStore";
import { AnalyticEvents } from "../../../Constants";
import { DismissibleContentGroupName } from "../../dismissible_content/DismissibleContentConstants";
import { DismissibleContent } from "../../../_bundle/Module1358";
import { isSnowflakeBoundDismissibleContent, isVersionedDismissibleContent, isTimeRecurringDismissibleContent } from "../../dismissible_content/DismissibleContentTypes";
import AnalyticsUtils from "../../../utils/AnalyticsUtils";
import { CONTENT_TYPES_WITH_BYPASS_FATIGUE } from "../../dismissible_content/DismissibleContentFatigueConfig";
import { DismissibleActionSheet } from "../../dismissible_content/native/DismissibleActionSheet";
import { UNSAFE_isSnowflakeBoundDismissibleContentDismissed, UNSAFE_isDismissibleContentDismissed } from "../../dismissible_content/DismissibleContentUnsafeUtils";
import { isVersionedDismissibleContentDismissed, isTimeRecurringDismissibleContentDismissed } from "../../dismissible_content/DismissibleContentUtils";
import { useMainViewTooltipActionSheetMap } from "./useMainViewTooltipActionSheetEligibilityMap";
import { useStateFromStores } from "../../../_bundle/Module589";
import SelectedDismissibleContent, { SelectedSnowflakeBoundDismissibleContent, SelectedVersionedDismissibleContent, SelectedTimeRecurringDismissibleContent } from "../../dismissible_content/native/SelectedDismissibleContent";
let actionSheetKey, c11256_14, trackActionSheetImpression, TrackedDismissibleActionSheet;
const GiftingPromotionCoachmarkImporter = function GiftingPromotionCoachmarkImporter() {
return import("../../premium/gifting/native/views/promotions/GiftingPromotionCoachmark");
};
const PremiumMarketingMomentActionSheetImporter = function PremiumMarketingMomentActionSheetImporter() {
return import("../../premium/promotions/native/PremiumMarketingMomentActionSheet");
};
const ConnectionDeprecationActionSheetImporter = function ConnectionDeprecationActionSheetImporter() {
return import("../../application_account_linking/native/ConnectionDeprecationBottomSheet");
};
trackActionSheetImpression = function trackActionSheetImpression(actionSheetConfig) {
const is_another_action_sheet_open = ActionSheetStore.getContent() != null;
const MAIN_VIEW_ACTION_SHEET_SELECTED = AnalyticEvents.MAIN_VIEW_ACTION_SHEET_SELECTED;
const id = actionSheetConfig.id;
AnalyticsUtils.track(MAIN_VIEW_ACTION_SHEET_SELECTED, {
dc_id: DismissibleContent[actionSheetConfig.id],
dc_type: isSnowflakeBoundDismissibleContent(id) ? "snowflake_bound" : isVersionedDismissibleContent(id) ? "versioned" : isTimeRecurringDismissibleContent(id) ? "time_recurring" : "single_use",
bypass_fatigue: CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(actionSheetConfig.id),
is_another_action_sheet_open
});
};
TrackedDismissibleActionSheet = function TrackedDismissibleActionSheet(props) {
const { actionSheetConfig, hasTrackedRef, ...props2 } = props;
useEffect(() => {
if (!hasTrackedRef.current) {
hasTrackedRef.current = true;
trackActionSheetImpression(actionSheetConfig);
}
}, [actionSheetConfig, hasTrackedRef]);
return <DismissibleActionSheet {...props2} />;
};
actionSheetKey = "MainViewTooltipActionSheets";
c11256_14 = [...[{
id: DismissibleContent.GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET,
importer: function GooglePlayPriceChangeActionSheetImporter() {
return import("../../premium/native/google_play_price_changes/GooglePlayPriceChangeActionSheet");
}
}, {
id: DismissibleContent.DISCOUNT_OFFER_ACTION_SHEET,
importer: function PremiumDiscountOfferActionSheetImporter() {
return import("../../premium/native/discounts/PremiumDiscountOfferActionSheet");
}
}, {
id: DismissibleContent.MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET,
importer: function PremiumTrialOfferActionSheetImporter() {
return import("../../premium/native/trials/PremiumTrialOfferActionSheet");
}
}, {
id: DismissibleContent.MOBILE_BOGO_PROMOTION_ACTION_SHEET,
importer: function BogoPromotionActionSheetImporter() {
return import("../../premium/promotions/native/BogoPromotionActionSheet");
}
}], {
id: DismissibleContent.RIOT_CONNECTION_DEPRECATION_DISABLE,
importer: ConnectionDeprecationActionSheetImporter
}, {
id: DismissibleContent.BATTLENET_CONNECTION_DEPRECATION_DISABLE,
importer: ConnectionDeprecationActionSheetImporter
}, {
id: DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL,
importer: PremiumMarketingMomentActionSheetImporter
}, {
id: DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL,
importer: PremiumMarketingMomentActionSheetImporter
}, {
id: DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET,
importer: GiftingPromotionCoachmarkImporter
}, {
id: DismissibleContent.GIFTING_PROMOTION_REMINDER,
importer: GiftingPromotionCoachmarkImporter
}, {
id: DismissibleContent.NEW_GIFTING_BADGES_COACHMARK,
importer: function GiftingBadgesCoachmarkImporter() {
return import("../../premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet");
}
}, {
id: DismissibleContent.CUSTOM_APP_ICONS_COACHMARK,
importer: function AppIconsCoachMarkImporter() {
return import("../../app_icons/native/AppIconsCoachmark");
}
}, {
id: DismissibleContent.ROBLOX_CONNECTION_COACHMARK,
importer: function RobloxConnectionCoachmarkImporter() {
return import("../../local_app_detection/native/RobloxConnectionCoachmark");
}
}, {
id: DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_COACHMARK,
importer: function DisplayNameStylesFlywheelMobileActionSheetImporter() {
return import("../../display_name_styles/native/DisplayNameStylesFlywheelMobileActionSheet");
}
}, {
id: DismissibleContent.COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT,
importer: function CollectiblesMobileAnnouncementActionSheetImporter() {
return import("../../collectibles/native/CollectiblesMobileAnnouncementActionSheet");
}
}];
export default function MainViewTooltipActionSheetsV2() {
let stateFromStores, memo, ref3, c22419_8;
const mainViewTooltipActionSheetMap = useMainViewTooltipActionSheetMap();
const [state, setState] = useState(null);
const ref = useRef(false);
const ref2 = useRef(false);
useEffect(() => {
ref2.current = false;
}, [state]);
stateFromStores = useStateFromStores([ActionSheetStore], () => ActionSheetStore.getKey() === actionSheetKey);
memo = useMemo(() => {
let r6 = c11256_14.find((item) => {
const r7 = mainViewTooltipActionSheetMap[item.id];
let r15 = r7?.isEligible;
if (r15) {
const id = item.id;
r15 = !(r7 == null || (isSnowflakeBoundDismissibleContent(id) ? r7.newSnowflakeId == null || UNSAFE_isSnowflakeBoundDismissibleContentDismissed(id, r7.newSnowflakeId).isDismissed : isVersionedDismissibleContent(id) ? isVersionedDismissibleContentDismissed(id, r7.latestVersion).isDismissed : isTimeRecurringDismissibleContent(id) ? r7.cooldownConfig == null || isTimeRecurringDismissibleContentDismissed(id, r7.cooldownConfig).isDismissed : UNSAFE_isDismissibleContentDismissed(id)));
}
return r15;
});
if (r6 == null) {
r6 = null;
}
return r6;
}, [mainViewTooltipActionSheetMap, useStateFromStores([UserSettingsProtoStore], () => UserSettingsProtoStore.settings.userContent?.dismissedContents), useStateFromStores([UserSettingsProtoStore], () => UserSettingsProtoStore.settings.userContent?.recurringDismissibleContentStates)]);
ref3 = useRef(null);
useEffect(() => {
if (ref3.current != null) {
clearTimeout(ref3.current);
ref3.current = null;
}
if (stateFromStores) {
ref.current = true;
} else {
const r0 = ref.current ? 350 : 0;
if (memo == null) {
ref.current = false;
}
ref3.current = setTimeout(() => {
setState(memo);
ref3.current = null;
}, r0);
}
return () => {
if (ref3.current != null) {
clearTimeout(ref3.current);
ref3.current = null;
}
};
}, [memo, stateFromStores]);
if (state == null) {
return null;
}
let r55 = mainViewTooltipActionSheetMap[state.id];
if (r55 == null) {
r55 = {};
}
c22419_8 = r55;
const id = state.id;
const r62 = isSnowflakeBoundDismissibleContent(id) ? "snowflake_bound" : isVersionedDismissibleContent(id) ? "versioned" : isTimeRecurringDismissibleContent(id) ? "time_recurring" : "single_use";
if (r62 === "snowflake_bound") {
let newSnowflakeId = r55.newSnowflakeId;
if (newSnowflakeId == null) {
newSnowflakeId = "";
}
return <SelectedSnowflakeBoundDismissibleContent contentType={state.id} newSnowflakeId={newSnowflakeId} groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}>
{({ visibleContent, markAsDismissed }) => visibleContent === state.id ? <TrackedDismissibleActionSheet actionSheetConfig={state} hasTrackedRef={ref2} actionSheetKey={actionSheetKey} importer={state.importer} markAsDismissed={markAsDismissed} {...c22419_8.actionSheetProperties} /> : null}
</SelectedSnowflakeBoundDismissibleContent>;
}
if (r62 === "versioned") {
let latestVersion = r55.latestVersion;
if (latestVersion == null) {
latestVersion = 0;
}
return <SelectedVersionedDismissibleContent latestVersion={latestVersion} contentType={state.id} groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}>
{({ visibleContent, markAsDismissed }) => visibleContent === state.id ? <TrackedDismissibleActionSheet actionSheetConfig={state} hasTrackedRef={ref2} actionSheetKey={actionSheetKey} importer={state.importer} markAsDismissed={markAsDismissed} versionedDismissibleContentType={state.id} {...c22419_8.actionSheetProperties} /> : null}
</SelectedVersionedDismissibleContent>;
}
if (r62 === "time_recurring") {
return <SelectedTimeRecurringDismissibleContent contentType={state.id} timeRecurringConfig={r55.cooldownConfig} groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS} bypassAutoDismiss={false}>
{({ visibleContent, markAsDismissed }) => visibleContent === state.id ? <TrackedDismissibleActionSheet actionSheetConfig={state} hasTrackedRef={ref2} actionSheetKey={actionSheetKey} importer={state.importer} markAsDismissed={markAsDismissed} {...c22419_8.actionSheetProperties} /> : null}
</SelectedTimeRecurringDismissibleContent>;
}
if (r62 === "single_use") {
return <SelectedDismissibleContent contentTypes={[state.id]} groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}>
{({ visibleContent, markAsDismissed }) => visibleContent === state.id ? <TrackedDismissibleActionSheet actionSheetConfig={state} hasTrackedRef={ref2} markAsDismissed={markAsDismissed} importer={state.importer} actionSheetKey={actionSheetKey} {...c22419_8.actionSheetProperties} /> : null}
</SelectedDismissibleContent>;
}
return null;
};
export { c11256_14 as ACTION_SHEET_REGISTRY };
export { trackActionSheetImpression };
@@ -0,0 +1,97 @@
// Metro module 9335 (f9336).
import { Image as Image2, View } from "react-native";
import { ContentDismissActionType } from "../../dismissible_content/DismissibleContentConstants";
import { createStyles } from "../../../design/components/Styles/native/createStyles";
import Module712 from "../../../_bundle/Module712";
import { UNSAFE_markDismissibleContentAsDismissed } from "../../dismissible_content/DismissibleContentUnsafeUtils";
import { BottomSheet } from "../../../design/components/Sheet/native/BottomSheet.native";
import { NitroWheel } from "../../../design/void/native";
import { Text } from "../../../design/components/Text/native/Text";
import { Button } from "../../../design/components/Button/native/Button.native";
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
const useStyles = createStyles({
container: {
justifyContent: "center",
paddingTop: Module712.space.PX_16,
paddingHorizontal: Module712.space.PX_16
},
img: {
alignSelf: "center",
width: 231,
height: 231,
borderRadius: Module712.radii.sm,
marginBottom: 16
},
header: {
flexDirection: "row",
justifyContent: "center"
},
title: {
textAlign: "center",
marginBottom: 8
},
description: {
textAlign: "center",
marginBottom: Module712.space.PX_24
},
nitroWheel: {
tintColor: Module712.colors.MOBILE_TEXT_HEADING_PRIMARY,
width: 32,
height: 32,
marginTop: -2,
marginLeft: -16
},
buttonContainer: {
gap: Module712.space.PX_8
}
});
export default function PremiumUpsellTooltipActionSheet(props) {
const { title, backdropProps, description, descriptionStyle, imageSource, imageStyle, dismissibleContent, primaryButtonText, primaryButtonIcon, secondaryButtonText, onDismiss, onPrimaryButtonPress, onSecondaryButtonPress } = props;
const styles = useStyles();
return <BottomSheet startExpanded {...backdropProps} onDismiss={function handleDismiss(event) {
if (!(event != null && event !== ContentDismissActionType.DISMISS) && onDismiss != null) {
onDismiss();
}
UNSAFE_markDismissibleContentAsDismissed(dismissibleContent, {
forceTrack: true,
dismissAction: event
});
}}>
<View style={styles.container}>
{imageSource != null ? <Image2 style={[styles.img, imageStyle]} source={imageSource} /> : null}
<View style={styles.header}>
<NitroWheel style={styles.nitroWheel} />
<Text variant="heading-xl/bold" style={styles.title} color="mobile-text-heading-primary" accessibilityRole="header">{title}</Text>
</View>
<Text style={[styles.description, descriptionStyle]} variant="text-md/medium" color="text-default">{description}</Text>
<View style={styles.buttonContainer}>
<Button variant="active" text={primaryButtonText} onPress={function onPress() {
onPrimaryButtonPress();
ActionSheetActionCreators.hideActionSheet();
const PRIMARY = ContentDismissActionType.PRIMARY;
if (!(PRIMARY != null && PRIMARY !== ContentDismissActionType.DISMISS) && onDismiss != null) {
onDismiss();
}
UNSAFE_markDismissibleContentAsDismissed(dismissibleContent, {
forceTrack: true,
dismissAction: PRIMARY
});
}} icon={primaryButtonIcon == null ? void 0 : primaryButtonIcon()} size="lg" />
{secondaryButtonText != null ? <Button variant="secondary" text={secondaryButtonText} onPress={function onPress() {
if (onSecondaryButtonPress != null) {
onSecondaryButtonPress();
}
ActionSheetActionCreators.hideActionSheet();
const DISMISS = ContentDismissActionType.DISMISS;
if (!(DISMISS != null && DISMISS !== ContentDismissActionType.DISMISS) && onDismiss != null) {
onDismiss();
}
UNSAFE_markDismissibleContentAsDismissed(dismissibleContent, {
forceTrack: true,
dismissAction: DISMISS
});
}} size="lg" /> : null}
</View>
</View>
</BottomSheet>;
};
@@ -0,0 +1,199 @@
// Metro module 15777 (f15778).
import { useEffect } from "react";
import BadgeDirectoryStore from "../../badges/BadgeDirectoryStore";
import GooglePlayPriceChangeStore from "../../premium/native/google_play_price_changes/GooglePlayPriceChangeStore";
import PromotionsStore from "../../premium/promotions/PromotionsStore";
import UserSettingsProtoStore from "../../user_settings/UserSettingsProtoStore";
import UserRequiredActionStore from "../../../stores/UserRequiredActionStore";
import { PlatformTypes } from "../../../Constants";
import * as _PremiumConstants from "../../premium/PremiumConstants";
import { UserSettingsTypes } from "../../user_settings/UserSettingsConstants";
import { useStateFromStores, useStateFromStoresArray } from "../../../_bundle/Module589";
import MainViewTooltipActionSheetsDisabledExperiment from "../experiments/MainViewTooltipActionSheetsDisabledExperiment";
import { isMetaQuest } from "../../device/MetaQuestUtils.android";
import { usePremiumDiscountOffer } from "../../premium/hooks/usePremiumDiscountOffer.android";
import { usePremiumTrialOffer } from "../../premium/hooks/usePremiumTrialOffer.android";
import { PremiumTrialOfferActionSheetKillSwitchExperiment } from "../../premium/experiments/PremiumTrialOfferActionSheetKillSwitchExperiment";
import { usePromotionMarketingComponent } from "../../premium/hooks/usePromotionMarketingComponent";
import { MarketingComponentType } from "../../../_bundle/Module6567";
import { GiftPromotionReminderExperiment } from "../../premium/gifting/experiments/GiftPromotionReminderExperiment";
import { useIsEligibleToShowGiftingBadgeCoachmark } from "../../premium/gifting/GiftingBadgesUtils";
import { fetchBadge } from "../../badges/BadgeDirectoryActionCreators";
import { BadgeId } from "../../../_bundle/Module8106";
import { useProfileFramesMarketing } from "../../collectibles/hooks/useProfileFramesMarketing";
import { useShouldShowRobloxConnectionCoachmark } from "../../local_app_detection/native/RobloxConnectionCoachmark";
import { useIsEligibleForBogoPromotion } from "../../premium/PremiumBogoPromotionUtilsCommon";
import { useShouldShowConnectionDeprecationBottomSheet } from "../../application_account_linking/native/ConnectionDeprecationBottomSheet";
import { useIsDisplayNameStylesFlywheelSettersEnabled } from "../../display_name_styles/DisplayNameStylesFlywheelExperiment";
import { DismissibleContent } from "../../../_bundle/Module1358";
import { UNSAFE_isSnowflakeBoundDismissibleContentDismissed } from "../../dismissible_content/DismissibleContentUnsafeUtils";
import { intl } from "../../../intl/index.native";
import ApplicationAccountLinking_messages from "../../application_account_linking/ApplicationAccountLinking.messages";
const { PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID, PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, PREMIUM_TIER_2_REACTIVATION_TRIAL_ID } = _PremiumConstants;
const location2 = "MainViewTooltipActionSheets";
let c11275_13 = new Set([PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, PREMIUM_TIER_2_REACTIVATION_TRIAL_ID, PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID]);
export function useMainViewTooltipActionSheetMap() {
let r154;
let r38 = useStateFromStores([UserSettingsProtoStore], () => UserSettingsProtoStore.hasLoaded(UserSettingsTypes.PRELOADED_USER_SETTINGS));
const disabled = MainViewTooltipActionSheetsDisabledExperiment.getConfig({
location: location2
}).disabled;
const stateFromStores4 = useStateFromStores([UserRequiredActionStore], () => UserRequiredActionStore.hasAction());
if (r38) {
r38 = !disabled;
}
if (r38) {
r38 = !stateFromStores4;
}
if (r38) {
r38 = !isMetaQuest();
}
let [isEligible3, r33] = useStateFromStoresArray([GooglePlayPriceChangeStore], () => [GooglePlayPriceChangeStore.shouldShowGooglePlayPriceChange, GooglePlayPriceChangeStore.priceChangeRecord]);
const premiumDiscountOffer = usePremiumDiscountOffer();
const premiumTrialOffer = usePremiumTrialOffer();
const enabled = PremiumTrialOfferActionSheetKillSwitchExperiment.useConfig({
location: location2
}).enabled;
const promotionMarketingComponent = usePromotionMarketingComponent(MarketingComponentType.MOBILE_BOTTOM_SHEET);
const bottomSheetData = (promotionMarketingComponent == null ? void 0 : promotionMarketingComponent.properties.properties.oneofKind) === "mobileBottomSheet" ? promotionMarketingComponent.properties.properties.mobileBottomSheet : null;
let isEligibleToShowGiftingBadgeCoachmark;
const stateFromStores = useStateFromStores([PromotionsStore], () => PromotionsStore.getGiftPromotion()?.id);
const stateFromStores3 = useStateFromStores([PromotionsStore], () => {
const marketingComponentByType = PromotionsStore.getMarketingComponentByType(MarketingComponentType.GIFT_ICON_COACHMARK);
return marketingComponentByType != null ? marketingComponentByType.properties.properties.oneofKind === "giftIconCoachmark" ? marketingComponentByType.properties.properties.giftIconCoachmark : null : null;
});
const stateFromStores2 = useStateFromStores([PromotionsStore], () => {
const marketingComponentByType = PromotionsStore.getMarketingComponentByType(MarketingComponentType.GIFT_REMINDER_COACHMARK);
return marketingComponentByType != null ? marketingComponentByType.properties.properties.oneofKind === "giftReminderCoachmark" ? marketingComponentByType.properties.properties.giftReminderCoachmark : null : null;
});
const enabled2 = GiftPromotionReminderExperiment.useConfig({
location: location2
}).enabled;
let isEligible2 = useIsEligibleToShowGiftingBadgeCoachmark({
platform: "native",
location: location2
});
isEligibleToShowGiftingBadgeCoachmark = isEligible2;
useEffect(() => {
if (isEligibleToShowGiftingBadgeCoachmark) {
fetchBadge(BadgeId.GIFTING);
}
}, [isEligibleToShowGiftingBadgeCoachmark]);
const stateFromStores5 = useStateFromStores([BadgeDirectoryStore], () => BadgeDirectoryStore.getBadgeById(BadgeId.GIFTING) != null);
const isAnnouncementEligible = useProfileFramesMarketing(location2).isAnnouncementEligible;
const shouldShowRobloxConnectionCoachmark = useShouldShowRobloxConnectionCoachmark();
const isEligibleForBogoPromotion = useIsEligibleForBogoPromotion();
const deprecatedPlatformTypes = [PlatformTypes.LEAGUE_OF_LEGENDS, PlatformTypes.RIOT_GAMES];
const shouldShowConnectionDeprecationBottomSheet = useShouldShowConnectionDeprecationBottomSheet({
deprecatedPlatformTypes
});
const shouldShowConnectionDeprecationBottomSheet2 = useShouldShowConnectionDeprecationBottomSheet({
deprecatedPlatformTypes: [PlatformTypes.BATTLENET]
});
const isDisplayNameStylesFlywheelSettersEnabled = useIsDisplayNameStylesFlywheelSettersEnabled(location2);
const isEligible = stateFromStores3 != null;
const r153 = {};
if (r38) {
const GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET = DismissibleContent.GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
if (isEligible3) {
isEligible3 = r33 != null;
}
r153[GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET] = {
isEligible: isEligible3,
newSnowflakeId: r33?.priceChangeId,
actionSheetProperties: {}
};
r153[DismissibleContent.DISCOUNT_OFFER_ACTION_SHEET] = {
isEligible: premiumDiscountOffer != null && premiumDiscountOffer.expiresAt == null,
newSnowflakeId: premiumDiscountOffer?.id,
actionSheetProperties: premiumDiscountOffer != null ? {
userDiscountOffer: premiumDiscountOffer
} : {}
};
r153[DismissibleContent.MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET] = {
isEligible: premiumTrialOffer != null && premiumTrialOffer.expires_at == null && !enabled && c11275_13.has(premiumTrialOffer.trial_id),
newSnowflakeId: premiumTrialOffer?.id,
actionSheetProperties: premiumTrialOffer != null ? {
userTrialOffer: premiumTrialOffer
} : {}
};
r153[DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL] = {
isEligible: bottomSheetData?.dismissibleContent === DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL,
newSnowflakeId: promotionMarketingComponent?.promotionId,
actionSheetProperties: {
bottomSheetData,
componentId: promotionMarketingComponent?.id,
promotionId: promotionMarketingComponent?.promotionId
}
};
r153[DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL] = {
isEligible: bottomSheetData?.dismissibleContent === DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL,
newSnowflakeId: promotionMarketingComponent?.promotionId,
actionSheetProperties: {
bottomSheetData,
componentId: promotionMarketingComponent?.id
}
};
r153[DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET] = {
isEligible,
newSnowflakeId: stateFromStores,
actionSheetProperties: {
coachmarkComponent: stateFromStores3
}
};
const GIFTING_PROMOTION_REMINDER = DismissibleContent.GIFTING_PROMOTION_REMINDER;
const r234 = isEligible ? stateFromStores2 == null : !isEligible;
r153[GIFTING_PROMOTION_REMINDER] = {
isEligible: (r234 ? !r234 : stateFromStores != null) && !!UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET, stateFromStores).isDismissed && enabled2 && stateFromStores2 != null,
newSnowflakeId: stateFromStores,
actionSheetProperties: {
coachmarkComponent: stateFromStores2
}
};
const NEW_GIFTING_BADGES_COACHMARK = DismissibleContent.NEW_GIFTING_BADGES_COACHMARK;
if (isEligibleToShowGiftingBadgeCoachmark) {
isEligible2 = stateFromStores5;
}
r153[NEW_GIFTING_BADGES_COACHMARK] = {
isEligible: isEligible2,
actionSheetProperties: {}
};
r153[DismissibleContent.CUSTOM_APP_ICONS_COACHMARK] = {
isEligible: true,
actionSheetProperties: {}
};
r153[DismissibleContent.ROBLOX_CONNECTION_COACHMARK] = {
isEligible: shouldShowRobloxConnectionCoachmark,
actionSheetProperties: {}
};
r153[DismissibleContent.MOBILE_BOGO_PROMOTION_ACTION_SHEET] = {
isEligible: isEligibleForBogoPromotion,
actionSheetProperties: {}
};
r153[DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_COACHMARK] = {
isEligible: isDisplayNameStylesFlywheelSettersEnabled,
actionSheetProperties: {}
};
r153[DismissibleContent.RIOT_CONNECTION_DEPRECATION_DISABLE] = {
isEligible: shouldShowConnectionDeprecationBottomSheet,
actionSheetProperties: {
platformTypes: deprecatedPlatformTypes,
applicationName: intl.string(ApplicationAccountLinking_messages["1S6oAo"])
}
};
r153[DismissibleContent.BATTLENET_CONNECTION_DEPRECATION_DISABLE] = {
isEligible: shouldShowConnectionDeprecationBottomSheet2,
actionSheetProperties: {
platformTypes: [PlatformTypes.BATTLENET]
}
};
r153[DismissibleContent.COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT] = {
isEligible: isAnnouncementEligible,
actionSheetProperties: {}
};
r154 = r153;
} else {
r154 = r153;
}
return r154;
}