Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,56 @@
|
||||
/* Metro module 10327; source: modules/user_profile/native/UserProfileNote.tsx; dependencies: [31, 33, 4501, 8514, 10328, 10330, 10332, 5278, 1244, 4080, 10334, 6815, 4573, 2] */
|
||||
function _fun80070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10513:6, offset: 0x01e6bcea, size: 182 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({title: {justifyContent: 'space-between'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfileNote.tsx');
|
||||
exports.default = UserProfileNote;
|
||||
}
|
||||
|
||||
function UserProfileNote({userId, style, onBack}) { // fn#80071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10513:275, offset: 0x01e6bda0, size: 565 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
const userProfileAnalyticsContextModule = require(8514) /* metro dependency 8514: UserProfileAnalyticsContext */;
|
||||
const useUserProfileAnalyticsContext = userProfileAnalyticsContextModule.useUserProfileAnalyticsContext;
|
||||
const env0_2 = Reflect.apply(useUserProfileAnalyticsContext, userProfileAnalyticsContextModule,
|
||||
[]).trackUserProfileAction;
|
||||
const note = (importDefault(10328) /* metro dependency 10328: useNote */)(userId).note;
|
||||
let r7 = note != null && note !== '';
|
||||
const r12 = r7 ? (require(10330) /* metro dependency 10330: PaperIcon */).PaperIcon : (require(10332) /* metro dependency 10332: PaperPlusIcon */).PaperPlusIcon;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const object2 = {accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.accessibilityHint = r7 ? Reflect.apply(string, intl, [t['gs+qcM']]) : Reflect.apply(string, intl,
|
||||
[t['1ZZtts']]);
|
||||
object2.accessibilityLabel = note ?? undefined;
|
||||
object2.onPress = onPress_80072;
|
||||
object2.activeOpacity = 0.8;
|
||||
const UserProfileCard = importDefault(6815) /* metro dependency 6815: UserProfileCard */;
|
||||
const userProfileCardProps = {style: style,
|
||||
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['mQKv+v']),
|
||||
titleStyle: [styles.title, !r7 && ({marginBottom: 0})],
|
||||
titleIcon: ((Component) => <Component size="xs" color="interactive-text-default" />)(r12)};
|
||||
r7 = r7 && ((Text) => <Text variant="text-md/normal" color="text-default">{note}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
return (
|
||||
<PressableOpacity {...object2}>
|
||||
<UserProfileCard {...userProfileCardProps}>
|
||||
{r7}
|
||||
</UserProfileCard>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function UserProfileNoteOnPress() { // fn#80072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10513:693, owner: UserProfileNote.onPress, offset: 0x01e6bfd5, size: 90 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
(importDefault(10334) /* metro dependency 10334: openEditNoteModal */)({userId: userId, onBack: onBack,
|
||||
onSave: function() {
|
||||
return trackUserProfileAction({action: 'SET_NOTE'});
|
||||
}});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user