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,115 @@
// Metro module 8779 (f8780).
import { PremiumGiftStyles } from "../../PremiumConstants";
import { AnimationState } from "../../PremiumGiftingUtils";
import * as _Module8780 from "../../../../_bundle/Module8780";
import * as _Module8781 from "../../../../_bundle/Module8781";
import * as _Module8782 from "../../../../_bundle/Module8782";
import * as _Module8783 from "../../../../_bundle/Module8783";
import * as _Module8784 from "../../../../_bundle/Module8784";
import * as _Module8785 from "../../../../_bundle/Module8785";
import * as _Module8786 from "../../../../_bundle/Module8786";
import * as _Module8787 from "../../../../_bundle/Module8787";
import * as _Module8788 from "../../../../_bundle/Module8788";
import * as _Module8789 from "../../../../_bundle/Module8789";
import * as _Module8790 from "../../../../_bundle/Module8790";
import * as _Module8791 from "../../../../_bundle/Module8791";
import * as _Module8792 from "../../../../_bundle/Module8792";
import * as _Module8793 from "../../../../_bundle/Module8793";
import * as _Module8794 from "../../../../_bundle/Module8794";
import * as _Module8795 from "../../../../_bundle/Module8795";
import * as _Module8796 from "../../../../_bundle/Module8796";
import * as _Module8797 from "../../../../_bundle/Module8797";
import * as _Module8798 from "../../../../_bundle/Module8798";
import * as _Module8799 from "../../../../_bundle/Module8799";
import * as _Module8800 from "../../../../_bundle/Module8800";
import * as _Module8801 from "../../../../_bundle/Module8801";
import * as _Module8802 from "../../../../_bundle/Module8802";
import * as _Module8803 from "../../../../_bundle/Module8803";
let c5735_3 = {
JSON: 0,
0: "JSON",
LOTTIE: 1,
1: "LOTTIE"
};
export { c5735_3 as LottieType };
export function getLottieType(a0) {
return a0 === PremiumGiftStyles.NITROWEEN_STANDARD ? c5735_3.LOTTIE : c5735_3.JSON;
}
export function getGiftAnimationData(a0, a1) {
if (PremiumGiftStyles.STANDARD_BOX === a0) {
if (AnimationState.IDLE === a1) {
return _Module8780;
}
if (AnimationState.LOOP === a1) {
return _Module8781;
}
return _Module8782;
}
if (PremiumGiftStyles.CAKE === a0) {
if (AnimationState.IDLE === a1) {
return _Module8783;
}
if (AnimationState.LOOP === a1) {
return _Module8784;
}
return _Module8785;
}
if (PremiumGiftStyles.CHEST === a0) {
if (AnimationState.IDLE === a1) {
return _Module8786;
}
if (AnimationState.LOOP === a1) {
return _Module8787;
}
return _Module8788;
}
if (PremiumGiftStyles.COFFEE === a0) {
if (AnimationState.IDLE === a1) {
return _Module8789;
}
if (AnimationState.LOOP === a1) {
return _Module8790;
}
return _Module8791;
}
if (PremiumGiftStyles.SEASONAL_STANDARD_BOX === a0) {
if (AnimationState.IDLE === a1) {
return _Module8792;
}
if (AnimationState.LOOP === a1) {
return _Module8793;
}
return _Module8794;
}
if (PremiumGiftStyles.SEASONAL_CAKE === a0) {
if (AnimationState.IDLE === a1) {
return _Module8795;
}
if (AnimationState.LOOP === a1) {
return _Module8796;
}
return _Module8797;
}
if (PremiumGiftStyles.SEASONAL_CHEST === a0) {
if (AnimationState.IDLE === a1) {
return _Module8798;
}
if (AnimationState.LOOP === a1) {
return _Module8799;
}
return _Module8800;
}
if (PremiumGiftStyles.SEASONAL_COFFEE === a0) {
if (AnimationState.IDLE === a1) {
return _Module8801;
}
if (AnimationState.LOOP === a1) {
return _Module8802;
}
return _Module8803;
}
if (PremiumGiftStyles.SNOWGLOBE !== a0 && PremiumGiftStyles.BOX !== a0) {
PremiumGiftStyles.CUP;
}
throw Error();
}
@@ -0,0 +1,111 @@
// Metro module 6552 (f6553).
import { SubscriptionStatusTypes } from "../../../../Constants";
import { PaymentGatewayToFriendlyName } from "../../../../_bundle/Module505";
import Logger from "../../../debug/Logger";
import AlertActionCreators from "../../../../actions/native/AlertActionCreators";
import { intl, t } from "../../../../intl/index.native";
import { isIOS } from "../../../../utils/PlatformUtils";
import { isMetaQuest } from "../../../device/MetaQuestUtils.android";
import { goToStandaloneNitroManagementFromMobileApp } from "../../../payments/native/utils/BillingStandaloneNativeUtils";
import { LinkButton } from "../components/LinkButton";
let c4213_6, c4213_7, defaultMobileWebNitroManagementFailureCallback;
const defaultMobileWebNitroManagementSuccessCallback = function defaultMobileWebNitroManagementSuccessCallback() {
return c4213_6.log("Successfully opened mobile web Nitro Management page");
};
defaultMobileWebNitroManagementFailureCallback = function defaultMobileWebNitroManagementFailureCallback(a0) {
c4213_6.error("Failed to open mobile web Nitro Management page, error response: ", a0);
AlertActionCreators.show({
title: intl.string(t.NrBVjw),
body: intl.string(t["gD+grx"]),
hideActionSheet: true
});
};
c4213_6 = new Logger("PremiumManagementUtils");
const r32 = {
PREMIUM_MANAGEMENT: "premium_management"
};
c4213_7 = {
IN_APP: "manage_in_app",
IN_EXTERNAL_MOBILE_PAYMENT_GATEWAY: "manage_in_external_mobile_payment_gateway",
IN_WEB: "manage_in_web"
};
export { r32 as MobileWebDestinationTypes };
export { c4213_7 as PremiumManagementMethod };
export function getPremiumManagementMethod(a0) {
let IN_APP;
const r1 = a0 == null;
let r2 = null;
if (!r1) {
L8: {
if (a0.isOnPlatformMatchingExternalPaymentGateway) {
IN_APP = c4213_7.IN_APP;
} else {
if (a0.isPurchasedExternally && a0.paymentGateway != null) {
IN_APP = c4213_7.IN_EXTERNAL_MOBILE_PAYMENT_GATEWAY;
break L8;
}
IN_APP = c4213_7.IN_WEB;
}
}
r2 = IN_APP;
}
return r2;
}
export function getExternalManagementMessage(a0, r6 = null) {
let IN_APP;
let c15788_0 = r6;
const r0 = a0 == null;
let r12 = null;
if (!r0) {
L10: {
if (a0.isOnPlatformMatchingExternalPaymentGateway) {
IN_APP = c4213_7.IN_APP;
} else {
if (a0.isPurchasedExternally && a0.paymentGateway != null) {
IN_APP = c4213_7.IN_EXTERNAL_MOBILE_PAYMENT_GATEWAY;
break L10;
}
IN_APP = c4213_7.IN_WEB;
}
}
r12 = IN_APP;
}
if (r12 != null && r12 !== c4213_7.IN_APP) {
const mobilePlatform = isIOS() ? "iOS" : isMetaQuest() ? "Meta Quest" : "Android";
if (r12 === c4213_7.IN_EXTERNAL_MOBILE_PAYMENT_GATEWAY && a0 != null && a0.paymentGateway != null) {
return intl.formatToPlainString(t.cFZnqX, {
mobilePlatform,
externalPaymentGateway: PaymentGatewayToFriendlyName[a0.paymentGateway]
});
}
if (r12 === c4213_7.IN_WEB) {
L26: {
if (r6 != null && r6.shouldAllowExternalManagement) {
if (mobilePlatform !== "iOS" && !isMetaQuest()) {
break L26;
}
const status = a0?.status;
const r54 = status === SubscriptionStatusTypes.CANCELED || status === SubscriptionStatusTypes.PAUSE_PENDING || status === SubscriptionStatusTypes.PAST_DUE;
return r6.returnCtaAsComponent ? <LinkButton containerStyle={{
justifyContent: "flex-start"
}} onPress={() => c15788_0 != null ? goToStandaloneNitroManagementFromMobileApp("premium_external_management", {
loadId: c15788_0.loadId
}, c15788_0.onSuccessCallback != null ? c15788_0.onSuccessCallback : defaultMobileWebNitroManagementSuccessCallback, c15788_0.onFailureCallback != null ? c15788_0.onFailureCallback : defaultMobileWebNitroManagementFailureCallback) : void 0} text={intl.string(r54 ? t.tqSSSA : t["olSp/D"])} variant="text-sm/semibold" /> : intl.format(t.IERwUb, {
manageExternalNitroSubscription: function manageExternalNitroSubscription() {
if (c15788_0 != null) {
return goToStandaloneNitroManagementFromMobileApp("premium_external_management", {
loadId: c15788_0.loadId
}, c15788_0.onSuccessCallback != null ? c15788_0.onSuccessCallback : defaultMobileWebNitroManagementSuccessCallback, c15788_0.onFailureCallback != null ? c15788_0.onFailureCallback : defaultMobileWebNitroManagementFailureCallback);
}
}
});
}
}
return intl.formatToPlainString(t.CnoyAN, {
mobilePlatform
});
}
return null;
}
return null;
}
@@ -0,0 +1,5 @@
// Metro module 9699 (f9700).
import ModalActionCreators from "../../../../actions/ModalActionCreators";
export function openGiftModal({ navigationParams, ...rest }) {
ModalActionCreators.pushLazy(import("../gifting/PremiumGiftModal"), rest, "gift_modal_key", navigationParams);
}