109 lines
7.8 KiB
TypeScript
109 lines
7.8 KiB
TypeScript
/* Metro module 7028; source: components_native/premium/PremiumModal.tsx; dependencies: [31, 661, 33, 1244, 5282, 7029, 12224, 12227, 12269, 12279, 6771, 5280, 2] */
|
|
function _fun55694(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:6, offset: 0x013ae5e2, size: 177 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/premium/PremiumModal.tsx');
|
|
exports.default = PremiumModal;
|
|
exports.PREMIUM_KEY = 'PREMIUM_KEY';
|
|
}
|
|
|
|
function getScreens_55695({analyticsLocation, onClose, onBack, predicate, giftRecipientId, showCurrentPlan, planId, applicationId, activitySessionId, channelId, guildId, premiumFeatureCardOrder, onPaymentSuccess, onPaymentDismiss}) { // fn#55695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:149, offset: 0x013ae693, size: 636 bytes, params: 2, frame: 24
|
|
const object5 = {};
|
|
const PREMIUM = UserSettingsSections.PREMIUM;
|
|
const object6 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
object6.title = Reflect.apply(string, intl, [t.lpNrPu]);
|
|
object6.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
object6.render = render_55696;
|
|
object5[PREMIUM] = object6;
|
|
const PREMIUM_MANAGE_PLAN = UserSettingsSections.PREMIUM_MANAGE_PLAN;
|
|
const object8 = {};
|
|
object8.title = intl.string(t['8jmdON']);
|
|
object8.render = render_55697;
|
|
object5[PREMIUM_MANAGE_PLAN] = object8;
|
|
const GUILD_BOOSTING = UserSettingsSections.GUILD_BOOSTING;
|
|
const object9 = {};
|
|
object9.title = intl.string(t['+CbP2v']);
|
|
object9.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
object9.render = render_55698;
|
|
object5[GUILD_BOOSTING] = object9;
|
|
const PREMIUM_PLAN_SELECT = UserSettingsSections.PREMIUM_PLAN_SELECT;
|
|
object5[PREMIUM_PLAN_SELECT] = {title: intl.string(t.u95Dt4), headerLeft: headerLeft_55699,
|
|
initialParams: {predicate: predicate, showCurrentPlan: showCurrentPlan}, render: render_55700};
|
|
const PREMIUM_GIFTING = UserSettingsSections.PREMIUM_GIFTING;
|
|
const object10 = {};
|
|
string = intl.string;
|
|
const Oba8Sh = t.Oba8Sh;
|
|
object10.title = Reflect.apply(string, intl, [Oba8Sh]);
|
|
object10.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
object10.render = render_55701;
|
|
object5[PREMIUM_GIFTING] = object10;
|
|
return object5;
|
|
}
|
|
|
|
function PremiumModal({applicationId, analyticsLocation, analyticsLocations, initialRoute, onClose, onBack, giftRecipientId, predicate, showCurrentPlan, planId, activitySessionId, channelId, guildId, premiumFeatureCardOrder, onPaymentSuccess, onPaymentDismiss}) { // fn#55702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:1488, offset: 0x013aeabc, size: 311 bytes, params: 2, frame: 33
|
|
analyticsLocations = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)(analyticsLocations).analyticsLocations;
|
|
const r7 = initialRoute ?? UserSettingsSections.PREMIUM;
|
|
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
|
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
|
return (
|
|
<AnalyticsLocationProvider value={analyticsLocations}>
|
|
<Navigator
|
|
screens={getScreens_55695({analyticsLocation: analyticsLocation, onClose: onClose, onBack: onBack,
|
|
predicate: predicate, giftRecipientId: giftRecipientId, showCurrentPlan: showCurrentPlan,
|
|
planId: planId, applicationId: applicationId, activitySessionId: activitySessionId,
|
|
channelId: channelId, guildId: guildId, premiumFeatureCardOrder: premiumFeatureCardOrder,
|
|
onPaymentSuccess: onPaymentSuccess, onPaymentDismiss: onPaymentDismiss})}
|
|
initialRouteName={r7}
|
|
/>
|
|
</AnalyticsLocationProvider>
|
|
);
|
|
}
|
|
|
|
function getScreens_55695Render() { // fn#55696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:504, owner: getScreens_55695.render, offset: 0x013ae90f, size: 111 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component applicationId={applicationId} onClose={onClose} activitySessionId={activitySessionId} channelId={channelId} guildId={guildId} premiumFeatureCardOrder={premiumFeatureCardOrder} onPaymentSuccess={onPaymentSuccess} onPaymentDismiss={onPaymentDismiss} />)(importDefault(7029) /* metro dependency 7029: UserSettingsPremium */);
|
|
}
|
|
|
|
function getScreens_55695Render_55697() { // fn#55697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:733, owner: getScreens_55695.render, offset: 0x013ae97e, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(12224) /* metro dependency 12224: PremiumManagePlan */);
|
|
}
|
|
|
|
function getScreens_55695Render_55698() { // fn#55698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:869, owner: getScreens_55695.render, offset: 0x013ae9a5, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(12227) /* metro dependency 12227: UserSettingsPremiumGuildSubscriptions */);
|
|
}
|
|
|
|
function getScreens_55695HeaderLeft(a0) { // fn#55699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:968, owner: getScreens_55695.headerLeft, offset: 0x013ae9cc, size: 87 bytes, params: 2, frame: 14
|
|
var r0;
|
|
const canGoBack = a0.canGoBack;
|
|
let value = environment.__proto__;
|
|
value = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
|
if (canGoBack) {
|
|
value = value.getHeaderBackButton(onBack)(a0);
|
|
r0 = value;
|
|
} else {
|
|
value = value.getHeaderCloseButton(onClose)(a0);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getScreens_55695Render_55700({predicate, showCurrentPlan}) { // fn#55700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:1105, owner: getScreens_55695.render, offset: 0x013aea23, size: 93 bytes, params: 2, frame: 17
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component analyticsLocation={analyticsLocation} predicate={predicate} showCurrentPlan={showCurrentPlan} planId={planId} applicationId={applicationId} />)(importDefault(12269) /* metro dependency 12269: PremiumPlanSelect */);
|
|
}
|
|
|
|
function getScreens_55695Render_55701() { // fn#55701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7206:1344, owner: getScreens_55695.render, offset: 0x013aea80, size: 60 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component recipientUserId={giftRecipientId} analyticsLocation={analyticsLocation} />)(importDefault(12279) /* metro dependency 12279: UserSettingsPremiumGifting */);
|
|
}
|
|
|