This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,12 +1,22 @@
/* 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] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module08196 from '../../../by-id/module-08196.js'; /* Metro dependency 8196 */
import RelationshipActionCreators from '../../../actions/RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import TouchableHitBox from '../../../design/void/TouchableHitBox/native/TouchableHitBox.tsx'; /* Metro dependency 8792 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
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 */;
let value = ReactNativeModule;
const env0_5 = value.View;
const env0_6 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -15,111 +25,165 @@ function _fun68726(global, require, importDefault, importAll, module, exports, d
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%'};
object = {};
const object2 = {'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;
object2.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'};
object2.paddingTop = PX_24;
object.root = object2;
object.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};
object.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};
object.container = {'display': 'flex', 'flexDirection': 'column', 'height': '100%', marginTop: PX_24};
const object5 = {'flexGrow': 0, 'flexShrink': 1};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object6.backgroundColor = BORDER_SUBTLE;
object5.backgroundColor = BORDER_SUBTLE;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.paddingVertical = PX_24;
object5.paddingVertical = PX_24;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.paddingHorizontal = PX_16;
object3.footer = object6;
object5.paddingHorizontal = PX_16;
object.footer = object5;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object9 = {};
object.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object7 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object9.marginTop = PX_16;
object7.marginTop = PX_16;
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object9.marginBottom = PX_4;
object3.headerText = object9;
const object10 = {};
object7.marginBottom = PX_4;
object.headerText = object7;
const object8 = {};
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;
object8.padding = PX_24;
object8.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;
object8.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.body = object8;
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.noticeHeader = {marginBottom: PX_4};
object.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');
object.buttonWrapper = {marginBottom: PX_4};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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>
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 [property, env0_0] = Module00057(ReactModule.useState(false), 2);
const value6 = ReactModule.useCallback(_fun68730, [ReactModule.useCallback(_fun68728, []), ReactModule.useCallback(_fun68729,
[])]);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
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={Module08196}
style={[styles.closeButton]}
onPress={onPress_68731}
/>
);
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const Text = (TextModule).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>
</SafeAreaPaddingView>
);
}
);
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 = (SafeAreaViewModule).SafeAreaPaddingView;
const Button = (ButtonNativeModule).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__;
(ModalActionCreators).pop();
}
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 = (IndexNativeModule).intl;
const string = intl.string;
const R0RpRX = (IndexNativeModule).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
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);
(RelationshipActionCreators).clearPendingRelationships().then(env0_1).catch(env0_2);
}
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 (ModalActionCreators).pop();
}
}
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();
}
global.__d(_fun68726, 8791, [57, 31, 27, 33, 4501, 697, 5080, 3856, 1244, 8783, 6618, 8792, 8196, 4573, 4578,
2]) /* metro module 8791, dependencies: [57, 31, 27, 33, 4501, 697, 5080, 3856, 1244, 8783, 6618, 8792, 8196, 4573, 4578, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 8790; source: modules/people/native/ClearAllIncomingRequestsConfirmationModal.tsx; dependencies: [5080, 8791, 1962, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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}]);
}
}
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}]);
}
global.__d(_fun68724, 8790, [5080, 8791, 1962, 2]) /* metro module 8790, dependencies: [5080, 8791, 1962, 2] */;
@@ -1,106 +1,124 @@
/* 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] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as PeopleListTrackingModule from '../PeopleListTracking.tsx'; /* Metro dependency 10488 */
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 */;
let value = ReactNativeModule;
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,
object = {};
const object2 = {'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',
object2.padding = PX_12;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.container = object2;
const object3 = {'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');
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.spoiler = object3;
object.hidden = {opacity: 0};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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) {
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 object;
var Button;
var intl;
const styles2 = useStyles();
const HideFriendRequestNotes = (UserSettingsModule).HideFriendRequestNotes;
const value3 = HideFriendRequestNotes.useSetting();
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RelationshipStore],
function() {
var object = {};
var relationshipStoreBinding = RelationshipStore;
var userIdBinding = userId;
object.note = relationshipStoreBinding.getNote(userIdBinding);
object.type = relationshipStoreBinding.getRelationshipType(userIdBinding);
return object;
});
const note = value4.note;
const note2 = note;
const type = value4.type;
const binding = env0_3;
const useState = binding.useState;
const PENDING_OUTGOING = RelationshipTypes.PENDING_OUTGOING;
const value6 = note2(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 {
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;
value9 = '';
if (value9 === note) {
r0 = 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>;
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>
);
}
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);
PeopleListTrackingModule.trackViewFriendRequestNote({analyticsLocation: analyticsLocation,
noteLength: (note == null ? value2 : note.length) ?? 0});
return value2;
}
}
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;
}
global.__d(_fun81148, 10487, [57, 31, 27, 3793, 661, 33, 4501, 697, 3829, 566, 10488, 4573, 4578, 8999, 1244,
2]) /* metro module 10487, dependencies: [57, 31, 27, 3793, 661, 33, 4501, 697, 3829, 566, 10488, 4573, 4578, 8999, 1244, 2] */;