Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,40 @@
|
||||
/* Metro module 7678; source: modules/checkout/native/gifting/LockedRecipientField.tsx; dependencies: [31, 27, 33, 4501, 697, 1305, 4573, 3995, 2] */
|
||||
function _fun61347(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7856:6, offset: 0x01b3bec0, size: 270 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {'flexDirection': 'row', 'alignItems': 'center', marginLeft: PX_16};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.avatar = {marginEnd: PX_8};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkout/native/gifting/LockedRecipientField.tsx');
|
||||
exports.default = LockedRecipientField;
|
||||
}
|
||||
|
||||
function LockedRecipientField({user}) { // fn#61348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7856:393, offset: 0x01b3bfce, size: 209 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const NORMAL = AvatarSizes.NORMAL;
|
||||
const avatar = <Avatar style={styles.avatar} user={user} guildId={undefined} size={NORMAL} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{avatar}
|
||||
<Text variant="text-md/semibold">
|
||||
{(importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 7679; source: modules/checkout/native/gifting/SelectedUserField.tsx; dependencies: [31, 27, 33, 4501, 697, 6992, 1244, 3995, 6998, 1305, 4573, 6988, 2] */
|
||||
function _fun61349(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7857:6, offset: 0x01b3c09f, size: 495 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Pressable;
|
||||
const env0_4 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {marginHorizontal: PX_16};
|
||||
object2.content = {'flexDirection': 'row', 'overflow': 'hidden', 'alignItems': 'center', 'display': 'flex'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.opener = {'flexDirection': 'row', 'alignItems': 'center', 'flex': 1, 'paddingHorizontal': null,
|
||||
'paddingVertical': 6, paddingHorizontal: PX_16};
|
||||
object2.openerWithClearButton = {paddingRight: 0};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.searchIcon = {marginRight: PX_8};
|
||||
const object3 = {'flexDirection': 'row', 'alignItems': 'center', 'backgroundColor': null, 'borderRadius': null,
|
||||
'paddingVertical': 6, 'paddingHorizontal': 6};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.userPill = object3;
|
||||
object2.userPillText = {marginLeft: 6};
|
||||
const object4 = {'alignItems': 'center', 'justifyContent': 'center', 'minWidth': 44, 'minHeight': 44};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingRight = PX_16;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingLeft = PX_8;
|
||||
object2.clearButton = object4;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkout/native/gifting/SelectedUserField.tsx');
|
||||
exports.default = SelectedUserField;
|
||||
}
|
||||
|
||||
function SelectedUserField({selectedUser, onPress, setSelectedUser}) { // fn#61350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7857:964, offset: 0x01b3c28e, size: 1026 bytes, params: 2, frame: 39
|
||||
var r9;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var object;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const InputFieldContainer = (require(6992) /* metro dependency 6992: InputFieldContainerNative */).InputFieldContainer;
|
||||
const items2 = [styles.opener];
|
||||
items2[1] = selectedUser != null && styles.openerWithClearButton;
|
||||
const r11 = selectedUser != null ? '' + intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xFn72s) + ', ' + (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(selectedUser) : '' + intl.string(t.xFn72s) + ', ' + intl.string(t.R0vK0N);
|
||||
const MagnifyingGlassIcon = (require(6998) /* metro dependency 6998: MagnifyingGlassIcon */).MagnifyingGlassIcon;
|
||||
const pressable = <Pressable style={items2} onPress={onPress} accessibilityRole="button" accessibilityLabel={r11}><MagnifyingGlassIcon style={styles.searchIcon} size="xs" color="interactive-text-default" />{selectedUser != null ? <View style={styles.userPill}>{((Avatar) => <Avatar user={selectedUser} guildId={undefined} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XSMALL_20} />)((require(1305) /* metro dependency 1305: native */).Avatar)}<Text variant="text-md/medium" style={styles.userPillText}>{(importDefault(3995) /* metro dependency 3995: UserUtils */).getName(selectedUser)}</Text></View> : <Text variant="text-sm/semibold" color="text-subtle" style={styles.userPillText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.R0vK0N)}</Text>}</Pressable>;
|
||||
if (selectedUser != null) {
|
||||
var pressableBindingProps = {style: styles.clearButton, onPress: function() {
|
||||
return setSelectedUser(undefined);
|
||||
}, accessibilityRole: 'button'};
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['0Vb9FQ'];
|
||||
object = {};
|
||||
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
object.text = value.getName(selectedUser);
|
||||
pressableBindingProps.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [property, object]);
|
||||
value = <Pressable {...pressableBindingProps}>{((CircleXIcon) => <CircleXIcon size="xs" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</Pressable>;
|
||||
r9 = value;
|
||||
} else {
|
||||
r9 = null;
|
||||
}
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<InputFieldContainer>
|
||||
<View style={styles.content}>
|
||||
{pressable}
|
||||
{r9}
|
||||
</View>
|
||||
</InputFieldContainer>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/* Metro module 7637; source: modules/checkout/native/gifting/UnifiedGiftModal.tsx; dependencies: [57, 31, 33, 5080, 5280, 7638, 1244, 5282, 7639, 7689, 6771, 2] */
|
||||
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});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).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 = UnifiedGiftModalUseScreens({skuId: skuId, applicationId: applicationId,
|
||||
lockedRecipientUser: a0.lockedRecipientUser, onGiftModalDismiss: a0.onGiftModalDismiss,
|
||||
validateRecipient: a0.validateRecipient, renderProductDetails: a0.renderProductDetails,
|
||||
renderPurchaseSection: a0.renderPurchaseSection});
|
||||
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const UnifiedGiftModalScreens = (require(7638) /* metro dependency 7638: UnifiedGiftModalTypes */).UnifiedGiftModalScreens;
|
||||
const GIFT_DETAIL = UnifiedGiftModalScreens.GIFT_DETAIL;
|
||||
return (
|
||||
<AnalyticsLocationProvider value={analyticsLocations}>
|
||||
<Navigator initialRouteName={GIFT_DETAIL} screens={value} />
|
||||
</AnalyticsLocationProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function UnifiedGiftModalUseScreens({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 (require(5280) /* metro dependency 5280: NavigatorNative */).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__;
|
||||
(importDefault(5080) /* metro dependency 5080: 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 object4 = {};
|
||||
const value = environment.__proto__.__proto__;
|
||||
const UnifiedGiftModalScreens = (require(7638) /* metro dependency 7638: UnifiedGiftModalTypes */).UnifiedGiftModalScreens;
|
||||
const GIFT_DETAIL = UnifiedGiftModalScreens.GIFT_DETAIL;
|
||||
const object5 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object5.title = Reflect.apply(string, intl, [t['JCFN/y']]);
|
||||
object5.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(env0_9);
|
||||
object5.render = render_61163;
|
||||
object4[GIFT_DETAIL] = object5;
|
||||
const RECIPENT_SELECT = UnifiedGiftModalScreens.RECIPENT_SELECT;
|
||||
const object6 = {};
|
||||
string = intl.string;
|
||||
const R0vK0N = t.R0vK0N;
|
||||
object6.title = Reflect.apply(string, intl, [R0vK0N]);
|
||||
object6.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
|
||||
object6.render = render_61164;
|
||||
object4[RECIPENT_SELECT] = object6;
|
||||
return object4;
|
||||
}
|
||||
|
||||
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} />)(importDefault(7639) /* metro dependency 7639: 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} />)(importDefault(7689) /* metro dependency 7689: UnifiedGiftModalRecipientSelectScreen */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/* Metro module 7639; source: modules/checkout/native/gifting/UnifiedGiftModalDetailsScreen.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 1484, 7638, 6771, 6518, 491, 683, 7640, 7641, 4573, 1244, 7678, 7679, 7680, 2] */
|
||||
function _fun61166(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:6, offset: 0x0171c792, size: 421 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.ScrollView;
|
||||
const env0_6 = value2.View;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value3.jsx;
|
||||
const env0_9 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.container = {'flex': 1, 'paddingTop': null, 'alignItems': 'stretch', paddingTop: PX_12};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.scrollView = {paddingBottom: PX_24};
|
||||
const object3 = {};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.marginTop = PX_24;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.marginBottom = PX_8;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.paddingHorizontal = PX_16;
|
||||
object3.textTransform = 'capitalize';
|
||||
object2.sectionHeader = object3;
|
||||
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(_fun61167);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkout/native/gifting/UnifiedGiftModalDetailsScreen.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun61167({skuId, applicationId, recipientUser, setRecipientUser, lockedRecipient, validateRecipient, renderProductDetails, renderPurchaseSection}) { // fn#61167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:499, offset: 0x0171c937, size: 1086 bytes, params: 2, frame: 43
|
||||
const env0_3 = validateRecipient;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const binding = value2;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [true]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const env0_5 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value5[0];
|
||||
const env0_6 = value5[1];
|
||||
const value6 = binding.useCallback(_fun61168, [value2]);
|
||||
const value8 = binding.useMemo(_fun61170,
|
||||
[(importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations, skuId,
|
||||
applicationId, (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun61169)]);
|
||||
binding.useEffect(_fun61171, [recipientUser, skuId, validateRecipient]);
|
||||
binding.useEffect(_fun61174, [value8]);
|
||||
const value9 = (require(7640) /* metro dependency 7640: useGiftStyles */).useGiftStyles();
|
||||
useState = binding.useState;
|
||||
const value10 = binding2(Reflect.apply(useState, binding, [value9[0]]), 2);
|
||||
const property3 = value10[0];
|
||||
const property4 = value10[1];
|
||||
const value11 = binding.useRef(null);
|
||||
useState = binding.useState;
|
||||
const value12 = binding2(Reflect.apply(useState, binding, [0]), 2);
|
||||
const property5 = value12[0];
|
||||
const property6 = value12[1];
|
||||
useState = binding.useState;
|
||||
const value13 = binding2(Reflect.apply(useState, binding, [undefined]), 2);
|
||||
const property7 = value13[0];
|
||||
const property8 = value13[1];
|
||||
const value14 = binding.useCallback(function() {
|
||||
global.setTimeout(_fun61176, 100);
|
||||
}, [property5]);
|
||||
const value15 = binding.useMemo(_fun61177, [property3, recipientUser, property7]);
|
||||
const GiftBackgroundSelect = (require(7641) /* metro dependency 7641: PremiumGiftBackgroundSelect */).GiftBackgroundSelect;
|
||||
const items3 = [<GiftBackgroundSelect giftStyle={property3} setGiftStyle={property4} withConsistentHeight={false} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let sectionHeader = styles.sectionHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
items3[1] = <Text variant="text-sm/semibold" style={sectionHeader}>{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.xFn72s])}</Text>;
|
||||
items3[2] = lockedRecipient && recipientUser != null ? ((Component) => <Component user={recipientUser} />)(importDefault(7678) /* metro dependency 7678: LockedRecipientField */) : ((Component) => <Component selectedUser={recipientUser} onPress={value6} setSelectedUser={setRecipientUser} />)(importDefault(7679) /* metro dependency 7679: SelectedUserField */);
|
||||
sectionHeader = styles.sectionHeader;
|
||||
string = intl.string;
|
||||
const PpoJzt = (require(1244) /* metro dependency 1244: indexNative */).t.PpoJzt;
|
||||
items3[3] = <Text variant="text-sm/semibold" style={sectionHeader}>{Reflect.apply(string, intl, [PpoJzt])}</Text>;
|
||||
items3[4] = renderProductDetails({recipientUser: recipientUser, isValidRecipient: property});
|
||||
const GiftCustomMessage = (require(7680) /* metro dependency 7680: PremiumGiftCustomMessage */).GiftCustomMessage;
|
||||
items3[5] = <GiftCustomMessage onFocusMessage={value14} setMessagePosition={property6} customGiftMessage={property7} setCustomGiftMessage={property8} />;
|
||||
const items2 = [<ScrollView ref={value11} contentContainerStyle={styles.scrollView} showsVerticalScrollIndicator={false}>{items3}</ScrollView>];
|
||||
let r9 = recipientUser == null || property2;
|
||||
r9 = !r9 ? !property : r9;
|
||||
items2[1] = renderPurchaseSection({isPurchaseDisabled: r9, giftOptions: value15, baseAnalyticsFields: value8});
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun61168() { // fn#61168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:788, offset: 0x0171cd75, size: 57 bytes, params: 1, frame: 13
|
||||
const binding = env0_4;
|
||||
const navigate = binding.navigate;
|
||||
const UnifiedGiftModalScreens = (require(7638) /* metro dependency 7638: UnifiedGiftModalTypes */).UnifiedGiftModalScreens;
|
||||
const RECIPENT_SELECT = UnifiedGiftModalScreens.RECIPENT_SELECT;
|
||||
Reflect.apply(navigate, binding, [RECIPENT_SELECT]);
|
||||
}
|
||||
|
||||
function _fun61169() { // fn#61169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:903, offset: 0x0171cdae, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(491) /* metro dependency 491 */).v4();
|
||||
}
|
||||
|
||||
function _fun61170() { // fn#61170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:936, offset: 0x0171cdd3, size: 56 bytes, params: 1, frame: 3
|
||||
return {'is_gift': true, 'location_stack': null, 'payment_type': 'sku', location_stack: analyticsLocations,
|
||||
sku_id: skuId, application_id: applicationId, load_id: env0_8};
|
||||
}
|
||||
|
||||
function _fun61171() { // fn#61171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:1052, offset: 0x0171ce0b, size: 88 bytes, params: 1, frame: 14
|
||||
var value;
|
||||
env0_5(true);
|
||||
if (recipientUser != null) {
|
||||
env0_6(true);
|
||||
value = validateRecipient(recipientUser.id);
|
||||
value = value.then(_fun61172);
|
||||
value.finally(_fun61173);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun61174() { // fn#61174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:1153, offset: 0x0171ce75, size: 108 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
let track = defaultImport.track;
|
||||
const PAYMENT_FLOW_STARTED = AnalyticEvents.PAYMENT_FLOW_STARTED;
|
||||
const binding = env0_9;
|
||||
Reflect.apply(track, defaultImport, [PAYMENT_FLOW_STARTED, binding]);
|
||||
value = defaultImport;
|
||||
track = value.track;
|
||||
const PAYMENT_FLOW_LOADED = AnalyticEvents.PAYMENT_FLOW_LOADED;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, binding, defaultImport);
|
||||
object2['initial_step'] = 'gift_customization';
|
||||
Reflect.apply(track, value, [PAYMENT_FLOW_LOADED, object2]);
|
||||
}
|
||||
|
||||
function _fun61175() { // fn#61175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:1475, offset: 0x0171cee1, size: 28 bytes, params: 1, frame: 13
|
||||
global.setTimeout(_fun61176, 100);
|
||||
}
|
||||
|
||||
function _fun61177() { // fn#61177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:1594, offset: 0x0171cf32, size: 54 bytes, params: 1, frame: 4
|
||||
return {gift_style: env0_10, recipient_id: recipientUser?.id, custom_message: env0_13};
|
||||
}
|
||||
|
||||
function _fun61176() { // fn#61176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7817:1492, offset: 0x0171cefd, size: 53 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return env1_11.current?.scrollTo({y: env1_12, animated: true});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 7689; source: modules/checkout/native/gifting/UnifiedGiftModalRecipientSelectScreen.tsx; dependencies: [31, 27, 7690, 33, 4501, 697, 1484, 7691, 7638, 2] */
|
||||
function _fun61374(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7867:6, offset: 0x01b3d6cf, size: 252 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: {'flex': 1, 'paddingTop': 16,
|
||||
backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkout/native/gifting/UnifiedGiftModalRecipientSelectScreen.tsx');
|
||||
exports.default = UnifiedGiftModalRecipientSelectScreen;
|
||||
}
|
||||
|
||||
function UnifiedGiftModalRecipientSelectScreen({setRecipientUser}) { // fn#61375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7867:393, offset: 0x01b3d7cb, size: 154 bytes, params: 2, frame: 18
|
||||
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const styles = useStyles();
|
||||
const SearchableUserList = importDefault(7691) /* metro dependency 7691: SearchableUserList */;
|
||||
const NONE = UserRowModes.NONE;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<SearchableUserList
|
||||
onSelectUser={onSelectUser}
|
||||
rowMode={NONE}
|
||||
disableGradient
|
||||
disableThemedGradient
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function onSelectUser(a0) { // fn#61376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7867:561, owner: UnifiedGiftModalRecipientSelectScreen.onSelectUser, offset: 0x01b3d865, size: 69 bytes, params: 2, frame: 14
|
||||
setRecipientUser(a0);
|
||||
const binding = env0_1;
|
||||
const navigate = binding.navigate;
|
||||
const UnifiedGiftModalScreens = (require(7638) /* metro dependency 7638: UnifiedGiftModalTypes */).UnifiedGiftModalScreens;
|
||||
const GIFT_DETAIL = UnifiedGiftModalScreens.GIFT_DETAIL;
|
||||
Reflect.apply(navigate, binding, [GIFT_DETAIL]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 12157; source: modules/checkout/native/gifting/UnifiedGiftModalSuccessScreen.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 12158, 7633, 5080, 12168, 1962, 7007, 4596, 4573, 1244, 4579, 2] */
|
||||
function _fun93245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12343:6, offset: 0x020abf89, size: 395 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).Image;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.paddingHorizontal = PX_24;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.paddingBottom = PX_24;
|
||||
object5.alignItems = 'center';
|
||||
object4.alertContainer = object5;
|
||||
object4.image = {'position': 'relative', 'top': -50};
|
||||
const object6 = {};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object6.marginTop = -PX_24;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.marginBottom = PX_8;
|
||||
object4.title = object6;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.description = {marginBottom: PX_24};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkout/native/gifting/UnifiedGiftModalSuccessScreen.tsx');
|
||||
exports.default = UnifiedGiftModalSuccessScreen;
|
||||
}
|
||||
|
||||
function UnifiedGiftModalSuccessScreen({giftStyle, giftBadgeProgress, onClose}) { // fn#93246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12343:579, offset: 0x020ac114, size: 625 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const GIFT_STYLE_IMG = (require(12158) /* metro dependency 12158: PremiumGiftBackgroundSelectTile */).GIFT_STYLE_IMG;
|
||||
const property = GIFT_STYLE_IMG[giftStyle];
|
||||
const GiftingBadgeExperiment = (require(7633) /* metro dependency 7633: GiftingBadgeExperiment */).GiftingBadgeExperiment;
|
||||
const useConfig = GiftingBadgeExperiment.useConfig;
|
||||
const enabled = Reflect.apply(useConfig, GiftingBadgeExperiment,
|
||||
[{location: 'UnifiedGiftModalSuccessScreen'}]).enabled;
|
||||
const binding = env0_3;
|
||||
const value2 = binding.useCallback(_fun93247, [enabled, giftBadgeProgress, onClose]);
|
||||
const value3 = binding.useCallback(function() {
|
||||
onClose();
|
||||
require(dependencyMap[11]).openUserSettings({screen: UserSettingsSections.PREMIUM_GIFTING, params: {}});
|
||||
}, [onClose]);
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const items2 = [<Image source={property} style={styles.image} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const MqZXbv = (require(1244) /* metro dependency 1244: indexNative */).t.MqZXbv;
|
||||
items2[1] = <Text variant="heading-lg/bold" style={styles.title}>{Reflect.apply(string, intl, [MqZXbv])}</Text>;
|
||||
const format = intl.format;
|
||||
const YS2J4S = (require(1244) /* metro dependency 1244: indexNative */).t.YS2J4S;
|
||||
items2[2] = <Text variant="text-md/medium" style={styles.description}>{Reflect.apply(format, intl, [YS2J4S,
|
||||
{onClick: value3}])}</Text>;
|
||||
const BaseTextButton = (require(4579) /* metro dependency 4579: BaseTextButtonNative */).BaseTextButton;
|
||||
items2[3] = <BaseTextButton onPress={value2} text={intl.string(enabled && giftBadgeProgress != null ? (require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN : (require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} textVariant="text-md/semibold" grow />;
|
||||
return (
|
||||
<Alert
|
||||
onClose={value2}
|
||||
noDefaultButtons
|
||||
style={styles.alertContainer}
|
||||
>
|
||||
{items2}
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93247() { // fn#93247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12343:813, offset: 0x020ac385, size: 122 bytes, params: 1, frame: 17
|
||||
var value3;
|
||||
var defaultImport;
|
||||
onClose();
|
||||
if (enabled && giftBadgeProgress != null) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(dependencyMap[8]);
|
||||
defaultImport.pushLazy(require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths),
|
||||
{giftBadgeProgress: giftBadgeProgress}, 'collectibles_shop_gift_badge_modal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 7638; source: modules/checkout/native/gifting/UnifiedGiftModalTypes.tsx; dependencies: [2] */
|
||||
function _fun61165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7816:6, offset: 0x0171c72a, size: 104 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkout/native/gifting/UnifiedGiftModalTypes.tsx');
|
||||
exports.UnifiedGiftModalScreens = {GIFT_DETAIL: 'GiftDetail', RECIPENT_SELECT: 'RecipientSelect'};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user