decord/source/components_native/premium/PremiumModal.tsx

101 lines
4.1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 7381
// Function ID: 7382
2026-07-29 08:29:29 +00:00
// Name: PremiumModal
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 676, 21, 1236, 6314, 7382, 12928, 12931, 12973, 12985, 7139, 6312, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 7381 (PremiumModal)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { UserSettingsSections } from "ME";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("jsxProd").fileFinishedImporting("components_native/premium/PremiumModal.tsx");
export default function PremiumModal(arg0) {
let activitySessionId;
let analyticsLocation;
let analyticsLocations;
let applicationId;
let channelId;
let giftRecipientId;
let guildId;
let initialRoute;
2026-07-20 16:05:17 +00:00
let isBoostPurchaseFlow;
2026-07-29 08:29:29 +00:00
let onBack;
2026-07-20 16:05:17 +00:00
let onClose;
2026-07-29 08:29:29 +00:00
let onPaymentDismiss;
let onPaymentSuccess;
let planId;
2026-07-20 16:05:17 +00:00
let predicate;
2026-07-29 08:29:29 +00:00
let premiumFeatureCardOrder;
2026-07-20 16:05:17 +00:00
let showCurrentPlan;
2026-07-29 08:29:29 +00:00
({ initialRoute, onClose } = arg0);
({ applicationId, analyticsLocation, analyticsLocations, onBack, giftRecipientId, predicate, showCurrentPlan, isBoostPurchaseFlow, planId, activitySessionId, channelId, guildId, premiumFeatureCardOrder, onPaymentSuccess, onPaymentDismiss } = arg0);
if (initialRoute == null) {
initialRoute = giftRecipientId.PREMIUM;
}
let obj = { value: onClose(onBack[10])(analyticsLocations).analyticsLocations, children: null };
obj = { screens: null, initialRouteName: null };
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const obj1 = { title: null, headerLeft: null, render: null };
const intl = analyticsLocation(tmp[3]).intl;
obj1[0] = intl.string(analyticsLocation(onBack[3]).t.lpNrPu);
let obj4 = analyticsLocation(tmp[4]);
obj1[1] = obj4.getHeaderCloseButton(onClose);
obj1[2] = function render() {
return planId(onClose(onBack[5]), { applicationId, onClose, activitySessionId, channelId, guildId, premiumFeatureCardOrder, onPaymentSuccess, onPaymentDismiss, isFullScreenPresentation: true });
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[giftRecipientId.PREMIUM] = obj1;
const obj2 = { title: null, render: null };
const intl2 = analyticsLocation(tmp[3]).intl;
obj2[0] = intl2.string(analyticsLocation(onBack[3]).t["8jmdON"]);
obj2[1] = function render() {
return planId(onClose(onBack[6]), {});
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[giftRecipientId.PREMIUM_MANAGE_PLAN] = obj2;
const obj3 = { title: null, headerLeft: null, render: null };
const intl3 = analyticsLocation(tmp[3]).intl;
obj3[0] = intl3.string(analyticsLocation(onBack[3]).t["+CbP2v"]);
obj3[1] = analyticsLocation(onBack[4]).getHeaderCloseButton(onClose);
obj3[2] = function render() {
return planId(onClose(onBack[7]), {});
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[giftRecipientId.GUILD_BOOSTING] = obj3;
obj4 = { title: null, headerLeft: null, initialParams: null, render: null };
const intl4 = analyticsLocation(tmp[3]).intl;
obj4[0] = intl4.string(analyticsLocation(onBack[3]).t.u95Dt4);
obj4[1] = function headerLeft(canGoBack) {
const obj = analyticsLocation(onBack[4]);
2026-07-20 16:05:17 +00:00
if (canGoBack.canGoBack) {
2026-07-29 08:29:29 +00:00
let tmp2 = obj.getHeaderBackButton(onBack)(canGoBack);
2026-07-20 16:05:17 +00:00
} else {
tmp2 = obj.getHeaderCloseButton(onClose)(canGoBack);
}
return tmp2;
};
2026-07-29 08:29:29 +00:00
obj4[2] = { predicate, showCurrentPlan, isBoostPurchaseFlow };
obj4[3] = function render(arg0) {
2026-07-20 16:05:17 +00:00
let isBoostPurchaseFlow;
let predicate;
let showCurrentPlan;
({ predicate, showCurrentPlan, isBoostPurchaseFlow } = arg0);
2026-07-29 08:29:29 +00:00
return planId(onClose(onBack[8]), { analyticsLocation, predicate, showCurrentPlan, isBoostPurchaseFlow, planId, applicationId, guildId });
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[giftRecipientId.PREMIUM_PLAN_SELECT] = obj4;
const obj5 = { title: null, headerLeft: null, render: null };
const intl5 = analyticsLocation(tmp[3]).intl;
obj5[0] = intl5.string(analyticsLocation(onBack[3]).t.Oba8Sh);
const obj8 = analyticsLocation(onBack[4]);
obj5[1] = analyticsLocation(onBack[4]).getHeaderCloseButton(onClose);
obj5[2] = function render() {
return planId(onClose(onBack[9]), { recipientUserId: giftRecipientId, analyticsLocation });
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[giftRecipientId.PREMIUM_GIFTING] = obj5;
obj[0] = obj;
obj[1] = initialRoute;
obj[1] = planId(analyticsLocation(onBack[11]).Navigator, obj);
return planId(analyticsLocation(onBack[10]).AnalyticsLocationProvider, obj);
2026-07-20 16:05:17 +00:00
};
export const PREMIUM_KEY = "PREMIUM_KEY";