Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,11 @@
|
||||
/* Metro module 8789; source: modules/people/ClearAllIncomingRequestsConfirmationModal.tsx; dependencies: [8790, 2] */
|
||||
function _fun68722(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8974:6, offset: 0x01c5a05b, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/ClearAllIncomingRequestsConfirmationModal.tsx');
|
||||
exports.default = function(a0) {
|
||||
require(dependencyMap[0]).default(a0);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 8804; source: modules/people/Constants.tsx; dependencies: [2] */
|
||||
function _fun68849(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8989:6, offset: 0x01c5ef2f, size: 148 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/Constants.tsx');
|
||||
exports.RELATIONSHIP_COUNT_ANIMATION_THRESHOLD = 64;
|
||||
exports.PEOPLE_LIST_ITEM_HEIGHT = 61;
|
||||
exports.PEOPLE_LIST_ITEM_HEIGHT_TALL = 72;
|
||||
exports.PEOPLE_LIST_SECTION_HEIGHT = 50;
|
||||
exports.PEOPLE_LIST_SECTION_FOOTER_HEIGHT = 48;
|
||||
exports.MINIMUM_PENDING_INCOMING_COUNT_FOR_CLEAR_ALL = 5;
|
||||
exports.ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL_ID = 'ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 12617; source: modules/people/FriendRequestMessageExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun96782(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12807:6, offset: 0x02166dcf, size: 145 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'kind': 'user', 'name': '2026-03-friend-request-message',
|
||||
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/FriendRequestMessageExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Metro module 10488; source: modules/people/PeopleListTracking.tsx; dependencies: [661, 683, 2] */
|
||||
function _fun81152(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:6, offset: 0x01e9beac, size: 307 bytes, params: 8, frame: 18
|
||||
const trackFriendsListItemAction = function({targetUserId, tab, actionType}) {
|
||||
var defaultImport = importDefault(dependencyMap[1]);
|
||||
var FRIENDS_LIST_ITEM_ACTION = AnalyticEvents.FRIENDS_LIST_ITEM_ACTION;
|
||||
defaultImport.track(FRIENDS_LIST_ITEM_ACTION, {target_user_id: targetUserId, tab: tab,
|
||||
action_type: actionType});
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/PeopleListTracking.tsx');
|
||||
exports.FriendsListItemActionType = {ROW_CLICKED: 'row_clicked', MESSAGE_CLICKED: 'message_clicked',
|
||||
VIDEO_CALL_CLICKED: 'video_call_clicked', VOICE_CALL_CLICKED: 'voice_call_clicked',
|
||||
REMOVE_FRIEND_CLICKED: 'remove_friend_clicked', CONTEXT_MENU_INTERACTED: 'context_menu_interacted'};
|
||||
exports.trackFriendsListItemClicked = trackFriendsListItemClicked;
|
||||
exports.trackFriendsListItemMessageClicked = trackFriendsListItemMessageClicked;
|
||||
exports.trackFriendsListItemVideoCallClicked = trackFriendsListItemVideoCallClicked;
|
||||
exports.trackFriendsListItemVoiceCallClicked = trackFriendsListItemVoiceCallClicked;
|
||||
exports.trackFriendsListItemRemoveFriendClicked = trackFriendsListItemRemoveFriendClicked;
|
||||
exports.trackFriendsListItemContextMenuInteracted = trackFriendsListItemContextMenuInteracted;
|
||||
exports.trackViewFriendRequestNote = function({analyticsLocation, noteLength}) {
|
||||
var defaultImport = importDefault(dependencyMap[1]);
|
||||
var FRIEND_REQUEST_NOTE_VIEWED = AnalyticEvents.FRIEND_REQUEST_NOTE_VIEWED;
|
||||
defaultImport.track(FRIEND_REQUEST_NOTE_VIEWED, {location: analyticsLocation, note_length: noteLength});
|
||||
};
|
||||
}
|
||||
|
||||
function trackFriendsListItemClicked({targetUserId, tab}) { // fn#81154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:682, offset: 0x01e9c035, size: 58 bytes, params: 2, frame: 13
|
||||
const trackFriendsListItemActionBinding = trackFriendsListItemAction;
|
||||
const ROW_CLICKED = env0_3.ROW_CLICKED;
|
||||
trackFriendsListItemActionBinding({targetUserId: targetUserId, tab: tab, actionType: ROW_CLICKED});
|
||||
}
|
||||
|
||||
function trackFriendsListItemMessageClicked({targetUserId, tab}) { // fn#81155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:857, offset: 0x01e9c06f, size: 58 bytes, params: 2, frame: 13
|
||||
const trackFriendsListItemActionBinding = trackFriendsListItemAction;
|
||||
const MESSAGE_CLICKED = env0_3.MESSAGE_CLICKED;
|
||||
trackFriendsListItemActionBinding({targetUserId: targetUserId, tab: tab, actionType: MESSAGE_CLICKED});
|
||||
}
|
||||
|
||||
function trackFriendsListItemVideoCallClicked({targetUserId, tab}) { // fn#81156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:1045, offset: 0x01e9c0a9, size: 58 bytes, params: 2, frame: 13
|
||||
const trackFriendsListItemActionBinding = trackFriendsListItemAction;
|
||||
const VIDEO_CALL_CLICKED = env0_3.VIDEO_CALL_CLICKED;
|
||||
trackFriendsListItemActionBinding({targetUserId: targetUserId, tab: tab, actionType: VIDEO_CALL_CLICKED});
|
||||
}
|
||||
|
||||
function trackFriendsListItemVoiceCallClicked({targetUserId, tab}) { // fn#81157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:1238, offset: 0x01e9c0e3, size: 58 bytes, params: 2, frame: 13
|
||||
const trackFriendsListItemActionBinding = trackFriendsListItemAction;
|
||||
const VOICE_CALL_CLICKED = env0_3.VOICE_CALL_CLICKED;
|
||||
trackFriendsListItemActionBinding({targetUserId: targetUserId, tab: tab, actionType: VOICE_CALL_CLICKED});
|
||||
}
|
||||
|
||||
function trackFriendsListItemRemoveFriendClicked({targetUserId, tab}) { // fn#81158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:1434, offset: 0x01e9c11d, size: 58 bytes, params: 2, frame: 13
|
||||
const trackFriendsListItemActionBinding = trackFriendsListItemAction;
|
||||
const REMOVE_FRIEND_CLICKED = env0_3.REMOVE_FRIEND_CLICKED;
|
||||
trackFriendsListItemActionBinding({targetUserId: targetUserId, tab: tab, actionType: REMOVE_FRIEND_CLICKED});
|
||||
}
|
||||
|
||||
function trackFriendsListItemContextMenuInteracted({targetUserId, tab}) { // fn#81159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10674:1638, offset: 0x01e9c157, size: 58 bytes, params: 2, frame: 13
|
||||
const trackFriendsListItemActionBinding = trackFriendsListItemAction;
|
||||
const CONTEXT_MENU_INTERACTED = env0_3.CONTEXT_MENU_INTERACTED;
|
||||
trackFriendsListItemActionBinding({targetUserId: targetUserId, tab: tab, actionType: CONTEXT_MENU_INTERACTED});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
/* Metro module 8800; source: modules/people/PeopleUtils.tsx; dependencies: [3793, 661, 8801, 8783, 3835, 3842, 8802, 8803, 694, 2] */
|
||||
function _fun68804(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:6, offset: 0x01c5e021, size: 198 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = acceptFriendRequest_68805;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AbortCodes;
|
||||
object2 = {removeFriend: removeFriend_68809, cancelFriendRequest: cancelFriendRequest_68810,
|
||||
acceptFriendRequest: closure, maybeConfirmFriendRequestAccept: maybeConfirmFriendRequestAccept};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/PeopleUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function acceptFriendRequest_68805({userId, applicationId, location, confirmStrangerRequest}) { // fn#68805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:127, offset: 0x01c5e0e7, size: 141 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var value;
|
||||
confirmStrangerRequest = !(confirmStrangerRequest === undefined) && confirmStrangerRequest;
|
||||
if (applicationId != null) {
|
||||
value = importDefault(8801) /* metro dependency 8801: GameRelationshipActionCreators */;
|
||||
value = value.acceptGameFriendRequest({userId: userId, applicationId: applicationId});
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
|
||||
value = value.acceptFriendRequest({userId: userId, confirmStrangerRequest: confirmStrangerRequest,
|
||||
context: {location: location}});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function handleFriendRequestAcceptError(a0, a1) { // fn#68806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:384, offset: 0x01c5e174, size: 253 bytes, params: 3, frame: 18
|
||||
var r6;
|
||||
var r0;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
var value5;
|
||||
const env0_0 = a1;
|
||||
const code = a0 == null || a0.body == null ? undefined : a0.body.code;
|
||||
const RELATIONSHIP_INVALID_NO_CONFIRMATION = AbortCodes.RELATIONSHIP_INVALID_NO_CONFIRMATION;
|
||||
if (code === RELATIONSHIP_INVALID_NO_CONFIRMATION) {
|
||||
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value5 = true;
|
||||
defaultImport.dispatch({'type': 'UPDATE_STRANGER_STATUS', 'userId': null, 'isStranger': true,
|
||||
userId: a1.userId});
|
||||
(require(8803) /* metro dependency 8803: AcceptFriendRequestModalActionCreatorsNative */).openAcceptFriendRequestConfirmModal({onConfirm: function() {
|
||||
var r5;
|
||||
var acceptFriendRequest_68805Binding = acceptFriendRequest_68805;
|
||||
var object = {};
|
||||
copyDataProperties(object, require, r5);
|
||||
object['confirmStrangerRequest'] = true;
|
||||
acceptFriendRequest_68805Binding(object);
|
||||
if (require.onConfirm != null) {
|
||||
require.onConfirm();
|
||||
}
|
||||
}, onCancel: function() {
|
||||
if (require.onCancel != null) {
|
||||
require.onCancel();
|
||||
}
|
||||
}});
|
||||
r0 = value5;
|
||||
} else {
|
||||
r6 = a0 != null && a0.ok;
|
||||
value4 = false;
|
||||
if (r6) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'UPDATE_STRANGER_STATUS',
|
||||
'userId': null, 'isStranger': false, userId: a1.userId});
|
||||
r0 = value4;
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function removeFriend_68809({userId, applicationId, location}) { // fn#68809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:925, offset: 0x01c5e2de, size: 119 bytes, params: 2, frame: 15
|
||||
var value;
|
||||
if (applicationId != null) {
|
||||
value = importDefault(8801) /* metro dependency 8801: GameRelationshipActionCreators */;
|
||||
value.removeGameFriend({userId: userId, applicationId: applicationId});
|
||||
} else {
|
||||
value = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
|
||||
value.removeFriend(userId, {location: location});
|
||||
}
|
||||
}
|
||||
|
||||
function cancelFriendRequest_68810({userId, applicationId, location}) { // fn#68810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:1105, offset: 0x01c5e355, size: 117 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var value;
|
||||
if (applicationId != null) {
|
||||
value = importDefault(8801) /* metro dependency 8801: GameRelationshipActionCreators */;
|
||||
value = value.cancelGameFriendRequest({userId: userId, applicationId: applicationId});
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
|
||||
value = value.cancelFriendRequest(userId, {location: location});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function maybeConfirmFriendRequestAccept({userId, applicationId, location, onConfirm, onCancel, onFinally}) { // fn#68811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:1365, offset: 0x01c5e3ca, size: 392 bytes, params: 2, frame: 19
|
||||
var value;
|
||||
const regionalFeatureConfigUtilsModule = require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */;
|
||||
const isSettingTeenByDefault = regionalFeatureConfigUtilsModule.isSettingTeenByDefault;
|
||||
const SettingsDefaultFeature = (require(3842) /* metro dependency 3842: SettingsDefaultFeature */).SettingsDefaultFeature;
|
||||
const FRIEND_REQUEST_STRANGER_CONFIRMATION = SettingsDefaultFeature.FRIEND_REQUEST_STRANGER_CONFIRMATION;
|
||||
const isSettingTeenByDefault2 = Reflect.apply(isSettingTeenByDefault, regionalFeatureConfigUtilsModule,
|
||||
[FRIEND_REQUEST_STRANGER_CONFIRMATION]);
|
||||
const isFriendRequestAlertsV2Enabled2 = (require(8802) /* metro dependency 8802: FriendRequestAlertsV2 */).isFriendRequestAlertsV2Enabled('maybeConfirmFriendRequestAccept');
|
||||
const isStranger2 = RelationshipStore.isStranger(userId);
|
||||
if (applicationId == null) {
|
||||
if (isSettingTeenByDefault2) {
|
||||
if (isStranger2 === false) {
|
||||
return acceptFriendRequest_68805({userId: userId, applicationId: applicationId, location: location,
|
||||
confirmStrangerRequest: true}).then(function() {
|
||||
if (onConfirm != null) {
|
||||
onConfirm();
|
||||
}
|
||||
if (onFinally != null) {
|
||||
onFinally();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (isStranger2) {
|
||||
value = require(8803) /* metro dependency 8803: AcceptFriendRequestModalActionCreatorsNative */;
|
||||
value.openAcceptFriendRequestConfirmModal({onConfirm: onConfirm, onCancel: onCancel,
|
||||
onFinally: onFinally});
|
||||
} else {
|
||||
value = acceptFriendRequest_68805({userId: userId, applicationId: applicationId, location: location});
|
||||
value = value.then(_fun68816);
|
||||
value = value.catch(_fun68817);
|
||||
value.finally(_fun68818);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (isFriendRequestAlertsV2Enabled2) {
|
||||
if (isStranger2 === false) {
|
||||
return acceptFriendRequest_68805({userId: userId, applicationId: applicationId, location: location,
|
||||
confirmStrangerRequest: true}).then(function() {
|
||||
if (onConfirm != null) {
|
||||
onConfirm();
|
||||
}
|
||||
if (onFinally != null) {
|
||||
onFinally();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (isStranger2) {
|
||||
value = require(8803) /* metro dependency 8803: AcceptFriendRequestModalActionCreatorsNative */;
|
||||
value.openAcceptFriendRequestConfirmModal({onConfirm: onConfirm, onCancel: onCancel,
|
||||
onFinally: onFinally});
|
||||
} else {
|
||||
value = acceptFriendRequest_68805({userId: userId, applicationId: applicationId, location: location});
|
||||
value = value.then(_fun68816);
|
||||
value = value.catch(_fun68817);
|
||||
value.finally(_fun68818);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
return acceptFriendRequest_68805({userId: userId, applicationId: applicationId, location: location,
|
||||
confirmStrangerRequest: true}).then(function() {
|
||||
if (onConfirm != null) {
|
||||
onConfirm();
|
||||
}
|
||||
if (onFinally != null) {
|
||||
onFinally();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function maybeConfirmFriendRequestAcceptOnConfirm() { // fn#68813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:1896, owner: maybeConfirmFriendRequestAccept.onConfirm, offset: 0x01c5e57f, size: 70 bytes, params: 1, frame: 12
|
||||
acceptFriendRequest_68805({userId: userId, applicationId: applicationId, location: location,
|
||||
confirmStrangerRequest: true});
|
||||
if (onConfirm != null) {
|
||||
onConfirm();
|
||||
}
|
||||
}
|
||||
|
||||
function maybeConfirmFriendRequestAcceptOnCancel() { // fn#68814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:2009, owner: maybeConfirmFriendRequestAccept.onCancel, offset: 0x01c5e5c5, size: 27 bytes, params: 1, frame: 10
|
||||
if (onCancel != null) {
|
||||
onCancel();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun68816(a0) { // fn#68816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:2124, offset: 0x01c5e5fb, size: 91 bytes, params: 2, frame: 14
|
||||
if (!(handleFriendRequestAcceptError(a0, {userId: userId, applicationId: applicationId, location: location,
|
||||
onConfirm: onConfirm, onCancel: onCancel}) || onConfirm == null)) {
|
||||
onConfirm();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun68817(a0) { // fn#68817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8985:2247, offset: 0x01c5e656, size: 67 bytes, params: 2, frame: 13
|
||||
handleFriendRequestAcceptError(a0, {userId: userId, applicationId: applicationId, location: location,
|
||||
onConfirm: onConfirm, onCancel: onCancel});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 10486; source: modules/people/hooks/useFriendRequestActions.tsx; dependencies: [31, 8800, 2] */
|
||||
function _fun81144(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:6, offset: 0x01e9b82e, size: 117 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/hooks/useFriendRequestActions.tsx');
|
||||
exports.useFriendRequestActions = useFriendRequestActions;
|
||||
}
|
||||
|
||||
function useFriendRequestActions({userId, applicationId, isGameRelationship, location, onConfirm, onCancel, onFinally}) { // fn#81145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:214, offset: 0x01e9b8a3, size: 181 bytes, params: 2, frame: 22
|
||||
const binding = isGameRelationship;
|
||||
let useCallback = binding.useCallback;
|
||||
const value = Reflect.apply(useCallback, binding, [_fun81146, [applicationId, isGameRelationship, location,
|
||||
userId]]);
|
||||
useCallback = binding.useCallback;
|
||||
return {acceptFriendRequest: Reflect.apply(useCallback, binding, [_fun81147, [applicationId, isGameRelationship,
|
||||
location, onCancel, onConfirm, onFinally, userId]]), cancelFriendRequest: value};
|
||||
}
|
||||
|
||||
function _fun81146() { // fn#81146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:363, offset: 0x01e9b958, size: 76 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
(importDefault(8800) /* metro dependency 8800: PeopleUtils */).cancelFriendRequest({userId: userId,
|
||||
applicationId: isGameRelationship ? applicationId : null, location: location});
|
||||
}
|
||||
|
||||
function _fun81147() { // fn#81147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:497, offset: 0x01e9b9a4, size: 103 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
(importDefault(8800) /* metro dependency 8800: PeopleUtils */).maybeConfirmFriendRequestAccept({userId: userId,
|
||||
applicationId: isGameRelationship ? applicationId : null, location: location, onConfirm: onConfirm,
|
||||
onCancel: onCancel, onFinally: onFinally});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 15135; source: modules/people/hooks/useFriendRequestCounts.tsx; dependencies: [57, 5242, 3793, 566, 2] */
|
||||
function _fun115383(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:6, offset: 0x0245ee64, size: 178 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getIncomingFriendRequestCount;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/hooks/useFriendRequestCounts.tsx');
|
||||
exports.getIncomingFriendRequestCount = closure;
|
||||
exports.useIncomingFriendRequestCount = function() {
|
||||
return require(dependencyMap[3]).useStateFromStores([RelationshipStore, GameRelationshipStore], _fun115386);
|
||||
};
|
||||
exports.getOutgoingFriendRequestCount = getOutgoingFriendRequestCount;
|
||||
}
|
||||
|
||||
function getIncomingFriendRequestCount(a0) { // fn#115384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:126, offset: 0x0245ef16, size: 60 bytes, params: 2, frame: 13
|
||||
let value = env0_2(a0, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
value = property.getPendingCount();
|
||||
const getPendingIncomingCount = property2.getPendingIncomingCount;
|
||||
return value + Reflect.apply(getPendingIncomingCount, property2, []);
|
||||
}
|
||||
|
||||
function useIncomingFriendRequestCount() { // fn#115385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:425, offset: 0x0245ef52, size: 67 bytes, params: 1, frame: 14
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore,
|
||||
GameRelationshipStore], function() {
|
||||
return getIncomingFriendRequestCount([RelationshipStore, GameRelationshipStore]);
|
||||
});
|
||||
}
|
||||
|
||||
function getOutgoingFriendRequestCount() { // fn#115387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:583, offset: 0x0245efb9, size: 93 bytes, params: 1, frame: 14
|
||||
let value = a0;
|
||||
value = env0_2(value !== undefined ? value : [global.o, global.s], 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
value = property.getOutgoingCount();
|
||||
const getPendingOutgoingCount = property2.getPendingOutgoingCount;
|
||||
return value + Reflect.apply(getPendingOutgoingCount, property2, []);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
/* Metro module 8791; source: modules/people/native/ClearAllIncomingRequestsConfirmation.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 5080, 3856, 1244, 8783, 6618, 8792, 8196, 4573, 4578, 2] */
|
||||
function _fun68726(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:6, offset: 0x01c5a19b, size: 726 bytes, params: 8, frame: 23
|
||||
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;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.Fragment;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'display': 'flex', 'flexDirection': 'column', 'backgroundColor': null, 'height': '100%'};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.paddingTop = PX_24;
|
||||
object3.root = object4;
|
||||
object3.closeButton = {'marginRight': 8, 'alignSelf': 'flex-end'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.content = {flexGrow: 1, padding: PX_16};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.container = {'display': 'flex', 'flexDirection': 'column', 'height': '100%', marginTop: PX_24};
|
||||
const object6 = {'flexGrow': 0, 'flexShrink': 1};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.backgroundColor = BORDER_SUBTLE;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object6.paddingVertical = PX_24;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingHorizontal = PX_16;
|
||||
object3.footer = object6;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
|
||||
const object9 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.marginTop = PX_16;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object9.marginBottom = PX_4;
|
||||
object3.headerText = object9;
|
||||
const object10 = {};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object10.padding = PX_24;
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object10.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.body = object10;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.noticeHeader = {marginBottom: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.buttonWrapper = {marginBottom: PX_4};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/native/ClearAllIncomingRequestsConfirmation.tsx');
|
||||
exports.default = ClearAllIncomingRequestsConfirmationModal;
|
||||
}
|
||||
|
||||
function ClearAllIncomingRequestsConfirmationModal({incomingPendingRequestCount}) { // fn#68727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1199, offset: 0x01c5a471, size: 1039 bytes, params: 2, frame: 40
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const [property, env0_0] = env0_3(binding.useState(false), 2);
|
||||
const value6 = binding.useCallback(_fun68730, [binding.useCallback(_fun68728, []), binding.useCallback(_fun68729,
|
||||
[])]);
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const touchableHitBox = <TouchableHitBox accessibilityRole="button" accessibilityLabel={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq])} source={importDefault(8196) /* metro dependency 8196 */} style={[styles.closeButton]} onPress={onPress_68731} />;
|
||||
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let value = <View style={styles.header}><Text style={styles.headerText} variant="text-lg/bold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eVjfAu)}</Text></View>;
|
||||
value = <ScrollView style={styles.content}><>{value}<View style={styles.body}><Text style={styles.noticeHeader} variant="text-xs/normal" color="mobile-text-heading-primary">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.jaXsA3,
|
||||
{incomingRequestCount: incomingPendingRequestCount})}</Text></View></></ScrollView>;
|
||||
const items4 = [value];
|
||||
const SafeAreaPaddingView2 = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const Eq9seb = (require(1244) /* metro dependency 1244: indexNative */).t.Eq9seb;
|
||||
items4[1] = <View style={styles.footer}><SafeAreaPaddingView2 bottom><><View style={styles.buttonWrapper}><Button disabled={property} loading={property} variant="destructive" size="md" text={Reflect.apply(string,
|
||||
intl,
|
||||
[Eq9seb])} onPress={value6} grow /></View><View style={styles.buttonWrapper}><Button variant="secondary" size="md" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop} grow /></View></></SafeAreaPaddingView2></View>;
|
||||
return (
|
||||
<SafeAreaPaddingView top>
|
||||
<View style={styles.root}>
|
||||
{touchableHitBox}
|
||||
<View style={styles.container}>
|
||||
{items4}
|
||||
</View>
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun68728() { // fn#68728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1350, offset: 0x01c5a880, size: 51 bytes, params: 1, frame: 12
|
||||
env0_0(false);
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function _fun68729() { // fn#68729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1398, offset: 0x01c5a8b3, size: 99 bytes, params: 1, frame: 16
|
||||
env0_0(false);
|
||||
let value = environment.__proto__;
|
||||
value = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const presentFailedToast = value.presentFailedToast;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const R0RpRX = (require(1244) /* metro dependency 1244: indexNative */).t.R0RpRX;
|
||||
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
}
|
||||
|
||||
function _fun68730() { // fn#68730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1498, offset: 0x01c5a916, size: 80 bytes, params: 1, frame: 13
|
||||
env0_0(true);
|
||||
(importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */).clearPendingRelationships().then(env0_1).catch(env0_2);
|
||||
}
|
||||
|
||||
function ClearAllIncomingRequestsConfirmationModalOnPress() { // fn#68731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1796, owner: ClearAllIncomingRequestsConfirmationModal.onPress, offset: 0x01c5a966, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 8790; source: modules/people/native/ClearAllIncomingRequestsConfirmationModal.tsx; dependencies: [5080, 8791, 1962, 2] */
|
||||
function _fun68724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8975:6, offset: 0x01c5a0e2, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/native/ClearAllIncomingRequestsConfirmationModal.tsx');
|
||||
exports.default = openClearAllIncomingRequestsConfirmationModal_68725;
|
||||
}
|
||||
|
||||
function openClearAllIncomingRequestsConfirmationModal_68725(a0) { // fn#68725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8975:203, offset: 0x01c5a149, size: 82 bytes, params: 2, frame: 15
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {incomingPendingRequestCount: a0}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/* Metro module 10487; source: modules/people/native/FriendRequestNote.tsx; dependencies: [57, 31, 27, 3793, 661, 33, 4501, 697, 3829, 566, 10488, 4573, 4578, 8999, 1244, 2] */
|
||||
function _fun81148(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10673:6, offset: 0x01e9ba0b, size: 387 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.Pressable;
|
||||
const env0_5 = value.View;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'width': '100%', 'position': 'relative', 'padding': null, 'borderRadius': null, 'minHeight': 56,
|
||||
'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.padding = PX_12;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.container = object5;
|
||||
const object6 = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.spoiler = object6;
|
||||
object4.hidden = {opacity: 0};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/native/FriendRequestNote.tsx');
|
||||
exports.default = FriendRequestNote;
|
||||
}
|
||||
|
||||
function FriendRequestNote({userId, styles, backgroundColor, analyticsLocation}) { // fn#81149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10673:637, offset: 0x01e9bb8e, size: 645 bytes, params: 2, frame: 29
|
||||
var r6;
|
||||
var r0;
|
||||
var value9;
|
||||
var items2;
|
||||
var object4;
|
||||
var Button;
|
||||
var intl;
|
||||
const styles2 = useStyles();
|
||||
const HideFriendRequestNotes = (require(3829) /* metro dependency 3829: UserSettings */).HideFriendRequestNotes;
|
||||
const value3 = HideFriendRequestNotes.useSetting();
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RelationshipStore],
|
||||
function() {
|
||||
var object = {};
|
||||
var userIdBinding = userId;
|
||||
object.note = RelationshipStore.getNote(userIdBinding);
|
||||
object.type = RelationshipStore.getRelationshipType(userIdBinding);
|
||||
return object;
|
||||
});
|
||||
const note = value4.note;
|
||||
const env0_2 = note;
|
||||
const type = value4.type;
|
||||
const binding = env0_3;
|
||||
const useState = binding.useState;
|
||||
const PENDING_OUTGOING = RelationshipTypes.PENDING_OUTGOING;
|
||||
const value6 = env0_2(Reflect.apply(useState, binding, [type === PENDING_OUTGOING]), 2);
|
||||
const property = value6[0];
|
||||
var env0_3 = value6[1];
|
||||
const value7 = binding.useCallback(_fun81151, [analyticsLocation, note]);
|
||||
if (value3) {
|
||||
r0 = null;
|
||||
} else if (note == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value9 = '';
|
||||
if (value9 === note) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var pressableBindingProps = {style: [styles2.container, styles], onPress: value7};
|
||||
items2 = [<View style={property ? undefined : styles2.hidden}>{((Text) => <Text accessible={property} accessibilityElementsHidden={!property} accessibilityLabel={property ? undefined : value9} variant="redesign/message-preview/normal">{note}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>];
|
||||
if (property) {
|
||||
r6 = null;
|
||||
} else {
|
||||
var viewProps = {style: [styles2.spoiler,
|
||||
backgroundColor != null ? {backgroundColor: backgroundColor} : undefined]};
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var buttonProps = {'icon': null, 'variant': 'secondary', 'size': 'sm',
|
||||
icon: ((EyeIcon) => <EyeIcon size="sm" />)((require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon),
|
||||
|
||||
|
||||
onPress: value7};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
buttonProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sB0q4C);
|
||||
r6 = <View {...viewProps}><Button {...buttonProps} /></View>;
|
||||
}
|
||||
items2[1] = r6;
|
||||
r0 = <Pressable {...pressableBindingProps}>{items2}</Pressable>;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun81151() { // fn#81151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10673:972, offset: 0x01e9be44, size: 104 bytes, params: 1, frame: 16
|
||||
const value2 = undefined;
|
||||
env0_3(true);
|
||||
const peopleListTrackingModule = require(10488) /* metro dependency 10488: PeopleListTracking */;
|
||||
peopleListTrackingModule.trackViewFriendRequestNote({analyticsLocation: analyticsLocation,
|
||||
noteLength: (note == null ? value2 : note.length) ?? 0});
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 8803; source: modules/people/strangers/AcceptFriendRequestModalActionCreators.native.tsx; dependencies: [8804, 661, 33, 683, 4496, 8805, 1962, 2] */
|
||||
function _fun68843(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8988:6, offset: 0x01c5ed40, size: 167 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(8804) /* metro dependency 8804: Constants */).ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL_ID;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/strangers/AcceptFriendRequestModalActionCreators.native.tsx');
|
||||
exports.openAcceptFriendRequestConfirmModal = openAcceptFriendRequestConfirmModal;
|
||||
}
|
||||
|
||||
function openAcceptFriendRequestConfirmModal({onConfirm, onCancel}) { // fn#68844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8988:335, offset: 0x01c5ede7, size: 120 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, {type: ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL_ID}]);
|
||||
const alertActionCreators = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
alertActionCreators.openLazy({importer: importer_68845});
|
||||
}
|
||||
|
||||
function openAcceptFriendRequestConfirmModalImporter() { // fn#68845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8988:470, owner: openAcceptFriendRequestConfirmModal.importer, offset: 0x01c5ee5f, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(dependencyMap[6]);
|
||||
value = value(dependencyMap[5], dependencyMap.paths);
|
||||
return value.then(function({default: env0_0}) {
|
||||
return _fun68847;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun68846({default: env0_0}) { // fn#68846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8988:502, offset: 0x01c5ee9f, size: 23 bytes, params: 2, frame: 2
|
||||
return _fun68847;
|
||||
}
|
||||
|
||||
function _fun68847(a0) { // fn#68847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8988:517, offset: 0x01c5eeb6, size: 77 bytes, params: 2, frame: 14
|
||||
return ((Component) => <Component {...a0} {...{['onCancel']: onCancel_68848}} {...{['onConfirm']: onConfirm}} />)(a0);
|
||||
}
|
||||
|
||||
function onCancel_68848() { // fn#68848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8988:539, offset: 0x01c5ef03, size: 44 bytes, params: 1, frame: 10
|
||||
env0_0.onClose();
|
||||
if (onCancel != null) {
|
||||
onCancel();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Metro module 8805; source: modules/people/strangers/native/AcceptRequestConfirmationModal.tsx; dependencies: [31, 27, 33, 4501, 697, 4596, 1244, 4647, 4573, 2] */
|
||||
function _fun68850(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8990:6, offset: 0x01c5efc3, size: 251 bytes, params: 8, frame: 22
|
||||
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;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{bodyText: {'textAlign': 'center', 'alignItems': 'center',
|
||||
gap: PX_8}, text: {textAlign: 'center'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/strangers/native/AcceptRequestConfirmationModal.tsx');
|
||||
exports.default = AcceptRequestConfirmationModal;
|
||||
}
|
||||
|
||||
function AcceptRequestConfirmationModal({onCancel, onConfirm}) { // fn#68851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8990:277, offset: 0x01c5f0be, size: 425 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const MMlhsr = (require(1244) /* metro dependency 1244: indexNative */).t.MMlhsr;
|
||||
object2.confirmText = Reflect.apply(string, intl, [MMlhsr]);
|
||||
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
||||
object2.onConfirm = onConfirm;
|
||||
object2.onCancel = onCancel;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let text = styles.text;
|
||||
const text2 = <Text variant="heading-lg/bold" color="text-strong" style={text}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eJzSDT)}</Text>;
|
||||
text = styles.text;
|
||||
string = intl.string;
|
||||
const GB4jUw = (require(1244) /* metro dependency 1244: indexNative */).t.GB4jUw;
|
||||
return (
|
||||
<Alert {...object2}>
|
||||
<View style={styles.bodyText}>
|
||||
{text2}
|
||||
<Text
|
||||
variant="text-md/medium"
|
||||
color="text-subtle"
|
||||
style={text}
|
||||
>
|
||||
{Reflect.apply(string, intl, [GB4jUw])}
|
||||
</Text>
|
||||
</View>
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function AcceptRequestConfirmationModalOnConfirm() { // fn#68852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8990:483, owner: AcceptRequestConfirmationModal.onConfirm, offset: 0x01c5f267, size: 48 bytes, params: 1, frame: 12
|
||||
onConfirm();
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4647) /* metro dependency 4647: AlertActionCreators */).close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user