Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,191 @@
|
||||
/* Metro module 12614; source: components_native/add_friend/AddFriendModal.tsx; dependencies: [57, 31, 27, 1878, 661, 11995, 33, 4501, 6597, 697, 11997, 4594, 683, 477, 1487, 5080, 3995, 1244, 9212, 5277, 12615, 5282, 4573, 12616, 12618, 1585, 5280, 2] */
|
||||
function _fun96754(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:6, offset: 0x021652f4, size: 489 bytes, params: 8, frame: 26
|
||||
var object3;
|
||||
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 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ScrollView;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const Fonts = value.Fonts;
|
||||
const env0_9 = (require(11995) /* metro dependency 11995: ContactSyncConstants */).ContactPermissions;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
||||
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
copyDataProperties(object4, textStyles(DISPLAY_EXTRABOLD, MOBILE_TEXT_HEADING_PRIMARY, 24), undefined);
|
||||
object4['marginTop'] = 32;
|
||||
object4['marginHorizontal'] = 16;
|
||||
object4['textAlign'] = 'center';
|
||||
object3.headerText = object4;
|
||||
object3.subheaderText = {'lineHeight': 18, 'marginVertical': 8, 'marginHorizontal': 16, 'textAlign': 'center'};
|
||||
object3.input = {marginTop: 16};
|
||||
object3.otherOptionsContainer = {'marginTop': 16, 'paddingHorizontal': 16};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object3.rowContainer = {backgroundColor: BACKGROUND_SURFACE_HIGH, marginTop: 8};
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/add_friend/AddFriendModal.tsx');
|
||||
exports.default = AddFriendModal;
|
||||
}
|
||||
|
||||
function AddFriendModalScene({onSkip, sourceMetadata}) { // fn#96755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:671, offset: 0x021654dd, size: 775 bytes, params: 2, frame: 28
|
||||
var r9;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11997) /* metro dependency 11997: ContactSyncUtils */).useContactSyncAccount();
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const contactSyncUtilsModule = require(11997) /* metro dependency 11997: ContactSyncUtils */;
|
||||
const value4 = env0_3(Reflect.apply(useState, binding, [!contactSyncUtilsModule.isContactSyncEnabled(value2)]), 2);
|
||||
const property = value4[0];
|
||||
var env0_3 = value4[1];
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun96756);
|
||||
const value5 = (require(1487) /* metro dependency 1487 */).useNavigation();
|
||||
var env0_4 = value5;
|
||||
env0_4.useLayoutEffect(_fun96760, [env0_4.useCallback(_fun96758, [onSkip]), env0_4.useCallback(_fun96759, []),
|
||||
value5]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const GWMTSE = (require(1244) /* metro dependency 1244: indexNative */).t.GWMTSE;
|
||||
const items2 = [<Text style={styles.headerText} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl, [GWMTSE])}</Text>];
|
||||
items2[1] = <Text style={styles.subheaderText} variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Rn/sLl'])}</Text>;
|
||||
items2[2] = ((Component) => <Component style={styles.input} autoFocusInput={false} />)(importDefault(12616) /* metro dependency 12616: AddFriendById */);
|
||||
const text = <Text accessibilityRole="header" variant="eyebrow" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dukg0Z)}</Text>;
|
||||
if (property) {
|
||||
value = importDefault(12618) /* metro dependency 12618: ContactSyncUpsellCTA */;
|
||||
value = ((Component) => <Component style={styles.rowContainer} location="Add Friend Modal" />)(value);
|
||||
r9 = value;
|
||||
} else {
|
||||
r9 = null;
|
||||
}
|
||||
items2[3] = <View style={styles.otherOptionsContainer}>{text}{r9}</View>;
|
||||
return (
|
||||
<ScrollView keyboardShouldPersistTaps="handled">
|
||||
{items2}
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function AddFriendModal(a0) { // fn#96762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:2419, offset: 0x02165ab7, size: 128 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const value2 = env0_4.useMemo(_fun96763, [a0]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value2}
|
||||
initialRouteName="ADD_FRIEND"
|
||||
headerStatusBarHeight={top}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun96756() { // fn#96756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:855, offset: 0x021657e4, size: 100 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const FRIEND_ADD_VIEWED = AnalyticEvents.FRIEND_ADD_VIEWED;
|
||||
Reflect.apply(track, defaultImport, [FRIEND_ADD_VIEWED, sourceMetadata]);
|
||||
value = require(11997) /* metro dependency 11997: ContactSyncUtils */;
|
||||
value = value.checkContactPermissions();
|
||||
value.then(_fun96757);
|
||||
}
|
||||
|
||||
function _fun96758() { // fn#96758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:1114, offset: 0x021658cd, size: 60 bytes, params: 1, frame: 11
|
||||
if (onSkip != null) {
|
||||
onSkip();
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function _fun96759() { // fn#96759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:1171, offset: 0x02165909, size: 222 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const value3 = undefined;
|
||||
const r8 = currentUser != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(currentUser) : value3;
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport2.track;
|
||||
const FRIEND_ADD_VIEWED = AnalyticEvents.FRIEND_ADD_VIEWED;
|
||||
Reflect.apply(track, defaultImport2, [FRIEND_ADD_VIEWED, {'friend_add_type': 'Invite',
|
||||
'source_page': 'Add Friend Modal'}]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['6E9a1J'],
|
||||
{url: 'https://discord.com/', username: r8});
|
||||
const showShareActionSheetAndroidModule = require(9212) /* metro dependency 9212: showShareActionSheetAndroid */;
|
||||
showShareActionSheetAndroidModule.showShareActionSheet({message: value}, 'Add Friend Modal');
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun96760() { // fn#96760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:1531, offset: 0x021659e7, size: 81 bytes, params: 1, frame: 15
|
||||
const binding = env0_4;
|
||||
const setOptions = binding.setOptions;
|
||||
const object2 = {headerRight: headerRight_96761};
|
||||
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(env0_5);
|
||||
Reflect.apply(setOptions, binding, [object2]);
|
||||
}
|
||||
|
||||
function _fun96763() { // fn#96763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:2480, offset: 0x02165b37, size: 25 bytes, params: 1, frame: 11
|
||||
return ((a0) => {
|
||||
var object2 = {ignoreKeyboard: true};
|
||||
object2.title = (require(1244) /* metro dependency 1244: indexNative */).intl.string((require(1244) /* metro dependency 1244: indexNative */).t.w5uwoI);
|
||||
object2.initialParams = a0;
|
||||
object2.render = _fun96765;
|
||||
return {ADD_FRIEND: object2};
|
||||
})(env0_0);
|
||||
}
|
||||
|
||||
function _fun96757(a0) { // fn#96757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:939, offset: 0x02165848, size: 133 bytes, params: 2, frame: 14
|
||||
var isContactSyncEnabled;
|
||||
var value4;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const NOT_DETERMINED = ContactPermissions.NOT_DETERMINED;
|
||||
let r2 = a0 === NOT_DETERMINED || (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && a0 === ContactPermissions.UNAUTHORIZED;
|
||||
if (!r2) {
|
||||
value = require(11997) /* metro dependency 11997: ContactSyncUtils */;
|
||||
isContactSyncEnabled = value.isContactSyncEnabled;
|
||||
value4 = environment.__proto__;
|
||||
value = !Reflect.apply(isContactSyncEnabled, value, [env1_2]);
|
||||
r2 = value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
env1_3(r2);
|
||||
}
|
||||
|
||||
function headerRight_96761() { // fn#96761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:1562, offset: 0x02165a38, size: 127 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(12615) /* metro dependency 12615 */, onPress: env1_6};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const RDE0Sc = (require(1244) /* metro dependency 1244: indexNative */).t.RDE0Sc;
|
||||
headerActionButtonProps.accessibilityLabel = Reflect.apply(string, intl, [RDE0Sc]);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function getScreens_96764(a0) { // fn#96764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:2484, offset: 0x02165b50, size: 104 bytes, params: 2, frame: 16
|
||||
const object = {ignoreKeyboard: true};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.w5uwoI);
|
||||
object.initialParams = a0;
|
||||
object.render = render_96765;
|
||||
return {ADD_FRIEND: object};
|
||||
}
|
||||
|
||||
function getScreens_96764Render(a0) { // fn#96765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12804:2613, owner: getScreens_96764.render, offset: 0x02165bb8, size: 33 bytes, params: 2, frame: 13
|
||||
return <AddFriendModalScene {...a0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 12613; source: components_native/add_friend/AddFriendModalActionCreators.tsx; dependencies: [1878, 5080, 12614, 1962, 2] */
|
||||
function _fun96751(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12803:6, offset: 0x021651b9, size: 139 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
object2 = {openAddFriendModalDeeplink: openAddFriendModalDeeplink, openAddFriendModal: openAddFriendModal};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/add_friend/AddFriendModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function openAddFriendModalDeeplink() { // fn#96752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12803:109, offset: 0x02165244, size: 72 bytes, params: 1, frame: 15
|
||||
const defaultImport = importDefault(dependencyMap[1]);
|
||||
defaultImport.pushLazy(require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths));
|
||||
}
|
||||
|
||||
function openAddFriendModal(a0) { // fn#96753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12803:179, offset: 0x0216528c, size: 104 bytes, params: 2, frame: 15
|
||||
var defaultImport;
|
||||
var pushLazy;
|
||||
var value;
|
||||
if (UserStore.getCurrentUser() != null) {
|
||||
defaultImport = importDefault(dependencyMap[1]);
|
||||
pushLazy = defaultImport.pushLazy;
|
||||
value = require(dependencyMap[3]);
|
||||
value = value(dependencyMap[2], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {sourceMetadata: a0}]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user