122 lines
9.3 KiB
TypeScript
122 lines
9.3 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] */
|
|
import UserSettingsPremium from '../../modules/user_settings/premium/native/UserSettingsPremium.tsx'; /* Metro dependency 7029 */
|
|
import PremiumManagePlan from '../../modules/user_settings/premium/native/PremiumManagePlan.tsx'; /* Metro dependency 12224 */
|
|
import UserSettingsPremiumGuildSubscriptions from '../../modules/user_settings/premium/native/UserSettingsPremiumGuildSubscriptions.tsx'; /* Metro dependency 12227 */
|
|
import PremiumPlanSelect from '../../modules/premium/native/PremiumPlanSelect.tsx'; /* Metro dependency 12269 */
|
|
import UserSettingsPremiumGifting from '../../modules/user_settings/premium/native/UserSettingsPremiumGifting.tsx'; /* Metro dependency 12279 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as NavigatorNativeModule from '../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
|
|
import * as UseAnalyticsLocationsModule from '../../modules/app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
|
|
|
|
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});
|
|
ReactModule;
|
|
(FileImportTrackerModule).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 object = {};
|
|
const PREMIUM = UserSettingsSections.PREMIUM;
|
|
const object2 = {};
|
|
const intl = (IndexNativeModule).intl;
|
|
let string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
object2.title = Reflect.apply(string, intl, [t.lpNrPu]);
|
|
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
object2.render = render_55696;
|
|
object[PREMIUM] = object2;
|
|
const PREMIUM_MANAGE_PLAN = UserSettingsSections.PREMIUM_MANAGE_PLAN;
|
|
const object3 = {};
|
|
object3.title = intl.string(t['8jmdON']);
|
|
object3.render = render_55697;
|
|
object[PREMIUM_MANAGE_PLAN] = object3;
|
|
const GUILD_BOOSTING = UserSettingsSections.GUILD_BOOSTING;
|
|
const object4 = {};
|
|
object4.title = intl.string(t['+CbP2v']);
|
|
object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
object4.render = render_55698;
|
|
object[GUILD_BOOSTING] = object4;
|
|
const PREMIUM_PLAN_SELECT = UserSettingsSections.PREMIUM_PLAN_SELECT;
|
|
object[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 object7 = {};
|
|
string = intl.string;
|
|
const Oba8Sh = t.Oba8Sh;
|
|
object7.title = Reflect.apply(string, intl, [Oba8Sh]);
|
|
object7.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
object7.render = render_55701;
|
|
object[PREMIUM_GIFTING] = object7;
|
|
return object;
|
|
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} />)(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 />)(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 />)(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} />)(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} />)(UserSettingsPremiumGifting);
|
|
}
|
|
|
|
}
|
|
|
|
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 = (UseAnalyticsLocationsModule).AnalyticsLocationProvider;
|
|
const Navigator = (NavigatorNativeModule).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>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun55694, 7028, [31, 661, 33, 1244, 5282, 7029, 12224, 12227, 12269, 12279, 6771, 5280,
|
|
2]) /* metro module 7028, dependencies: [31, 661, 33, 1244, 5282, 7029, 12224, 12227, 12269, 12279, 6771, 5280, 2] */;
|