95 lines
7.2 KiB
TypeScript
95 lines
7.2 KiB
TypeScript
/* Metro module 7637; source: modules/checkout/native/gifting/UnifiedGiftModal.tsx; dependencies: [57, 31, 33, 5080, 5280, 7638, 1244, 5282, 7639, 7689, 6771, 2] */
|
|
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
|
|
import UnifiedGiftModalDetailsScreen from './UnifiedGiftModalDetailsScreen.tsx'; /* Metro dependency 7639 */
|
|
import UnifiedGiftModalRecipientSelectScreen from './UnifiedGiftModalRecipientSelectScreen.tsx'; /* Metro dependency 7689 */
|
|
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 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 '../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
|
|
import * as UnifiedGiftModalTypesModule from './UnifiedGiftModalTypes.tsx'; /* Metro dependency 7638 */
|
|
|
|
function _fun61158(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:6, offset: 0x0171c2f5, size: 156 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/checkout/native/gifting/UnifiedGiftModal.tsx');
|
|
exports.default = UnifiedGiftModal;
|
|
function UnifiedGiftModal(a0) { // fn#61159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:227, offset: 0x0171c391, size: 209 bytes, params: 2, frame: 19
|
|
const skuId = a0.skuId;
|
|
const applicationId = a0.applicationId;
|
|
const analyticsLocations = a0.analyticsLocations;
|
|
const value = useScreens({skuId: skuId, applicationId: applicationId, lockedRecipientUser: a0.lockedRecipientUser,
|
|
onGiftModalDismiss: a0.onGiftModalDismiss, validateRecipient: a0.validateRecipient,
|
|
renderProductDetails: a0.renderProductDetails, renderPurchaseSection: a0.renderPurchaseSection});
|
|
const AnalyticsLocationProvider = (UseAnalyticsLocationsModule).AnalyticsLocationProvider;
|
|
const Navigator = (NavigatorNativeModule).Navigator;
|
|
const UnifiedGiftModalScreens = (UnifiedGiftModalTypesModule).UnifiedGiftModalScreens;
|
|
const GIFT_DETAIL = UnifiedGiftModalScreens.GIFT_DETAIL;
|
|
return (
|
|
<AnalyticsLocationProvider value={analyticsLocations}>
|
|
<Navigator initialRouteName={GIFT_DETAIL} screens={value} />
|
|
</AnalyticsLocationProvider>
|
|
);
|
|
function useScreens({skuId, applicationId, lockedRecipientUser, onGiftModalDismiss, validateRecipient, renderProductDetails, renderPurchaseSection}) { // fn#61160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:417, owner: UnifiedGiftModal.useScreens, offset: 0x0171c462, size: 229 bytes, params: 2, frame: 23
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
const binding = env1_4;
|
|
const [property, env0_8] = env1_3(binding.useState(lockedRecipientUser), 2);
|
|
return (NavigatorNativeModule).useNavigatorScreens(_fun61162,
|
|
[lockedRecipientUser, property, skuId, applicationId, binding.useCallback(_fun61161, [onGiftModalDismiss]),
|
|
validateRecipient, renderProductDetails, renderPurchaseSection]);
|
|
function _fun61161() { // fn#61161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:634, offset: 0x0171c547, size: 58 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
(ModalActionCreators).pop();
|
|
if (onGiftModalDismiss != null) {
|
|
onGiftModalDismiss();
|
|
}
|
|
}
|
|
|
|
function _fun61162() { // fn#61162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:709, offset: 0x0171c581, size: 256 bytes, params: 1, frame: 21
|
|
var environment;
|
|
const object = {};
|
|
const value = environment.__proto__.__proto__;
|
|
const UnifiedGiftModalScreens = (UnifiedGiftModalTypesModule).UnifiedGiftModalScreens;
|
|
const GIFT_DETAIL = UnifiedGiftModalScreens.GIFT_DETAIL;
|
|
const object2 = {};
|
|
const intl = (IndexNativeModule).intl;
|
|
let string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
object2.title = Reflect.apply(string, intl, [t['JCFN/y']]);
|
|
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(env0_9);
|
|
object2.render = render_61163;
|
|
object[GIFT_DETAIL] = object2;
|
|
const RECIPENT_SELECT = UnifiedGiftModalScreens.RECIPENT_SELECT;
|
|
const object3 = {};
|
|
string = intl.string;
|
|
const R0vK0N = t.R0vK0N;
|
|
object3.title = Reflect.apply(string, intl, [R0vK0N]);
|
|
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
|
|
object3.render = render_61164;
|
|
object[RECIPENT_SELECT] = object3;
|
|
return object;
|
|
function render_61163() { // fn#61163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:859, offset: 0x0171c681, size: 118 bytes, params: 1, frame: 16
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return ((Component) => <Component skuId={skuId} applicationId={applicationId} recipientUser={env1_7} setRecipientUser={env1_8} lockedRecipient={lockedRecipientUser != null} validateRecipient={validateRecipient} renderProductDetails={renderProductDetails} renderPurchaseSection={renderPurchaseSection} />)(UnifiedGiftModalDetailsScreen);
|
|
}
|
|
|
|
function render_61164() { // fn#61164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7815:1170, offset: 0x0171c6f7, size: 51 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return ((Component) => <Component setRecipientUser={env1_8} />)(UnifiedGiftModalRecipientSelectScreen);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun61158, 7637, [57, 31, 33, 5080, 5280, 7638, 1244, 5282, 7639, 7689, 6771,
|
|
2]) /* metro module 7637, dependencies: [57, 31, 33, 5080, 5280, 7638, 1244, 5282, 7639, 7689, 6771, 2] */;
|