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,35 @@
// Metro module 6209 (f6210).
import { SoundboardSoundGridSectionType } from "../../../../soundboard/SoundboardTypes";
import { EntitlementFeatureNames } from "../../../../../_bundle/Module6201";
import { UpsellTypes } from "../../../../../ConstantsIOS";
import Module38 from "../../../../../_bundle/Module38";
export function isSoundboardSectionNitroLocked(a0, a1) {
return a1.type === SoundboardSoundGridSectionType.GUILD && a1.guild.id !== a0;
}
export function getUpsellType(a0) {
if (EntitlementFeatureNames.ANIMATED_EMOJIS === a0) {
return UpsellTypes.ANIMATED_EMOJI;
}
if (EntitlementFeatureNames.EMOJIS_EVERYWHERE === a0) {
return UpsellTypes.GLOBAL_EMOJI;
}
if (EntitlementFeatureNames.INCREASED_FILE_UPLOAD_SIZE === a0) {
return UpsellTypes.UPLOAD;
}
if (EntitlementFeatureNames.SOUNDBOARD_EVERYWHERE === a0) {
return UpsellTypes.SOUNDBOARD;
}
if (EntitlementFeatureNames.CLIENT_THEMES === a0) {
return UpsellTypes.CLIENT_THEMES;
}
if (EntitlementFeatureNames.APP_ICONS === a0) {
return UpsellTypes.APP_ICONS;
}
if (EntitlementFeatureNames.SAVED_MESSAGES === a0) {
return UpsellTypes.FOR_LATER;
}
if (EntitlementFeatureNames.STREAM_HIGH_QUALITY === a0) {
return UpsellTypes.STREAM_HIGH_QUALITY;
}
Module38(false, `Missing featureName: ${a0}`);
}
@@ -0,0 +1,9 @@
// Metro module 6199 (f6200).
import ActionSheetActionCreators from "../../../../action_sheet/native/ActionSheetActionCreators";
let c3932_3 = "PremiumUpsellActionSheetKey";
export default function openPremiumUpsellActionSheet(a0) {
ActionSheetActionCreators.openLazy(import("../views/PremiumUpsellActionSheet"), c3932_3, {
featureName: a0
});
};
export const PREMIUM_UPSELL_ACTION_SHEET_KEY = "PremiumUpsellActionSheetKey";
@@ -0,0 +1,27 @@
// Metro module 6198 (f6199).
import openPremiumUpsellActionSheet from "./openPremiumUpsellActionSheet";
import { UpsellTypes } from "../../../../../ConstantsIOS";
import { EntitlementFeatureNames } from "../../../../../_bundle/Module6201";
export default function maybeOpenPremiumUpsellActionSheet({ initialUpsellKey }) {
if (UpsellTypes.UPLOAD === initialUpsellKey) {
openPremiumUpsellActionSheet(EntitlementFeatureNames.INCREASED_FILE_UPLOAD_SIZE);
return true;
}
if (UpsellTypes.GLOBAL_EMOJI === initialUpsellKey) {
openPremiumUpsellActionSheet(EntitlementFeatureNames.EMOJIS_EVERYWHERE);
return true;
}
if (UpsellTypes.ANIMATED_EMOJI === initialUpsellKey) {
openPremiumUpsellActionSheet(EntitlementFeatureNames.ANIMATED_EMOJIS);
return true;
}
if (UpsellTypes.SOUNDBOARD === initialUpsellKey) {
openPremiumUpsellActionSheet(EntitlementFeatureNames.SOUNDBOARD_EVERYWHERE);
return true;
}
if (UpsellTypes.STREAM_HIGH_QUALITY === initialUpsellKey) {
openPremiumUpsellActionSheet(EntitlementFeatureNames.STREAM_HIGH_QUALITY);
return true;
}
return false;
};