/* Metro module 8692; source: modules/user_profile/native/UserProfileCustomStatusActionSheet.tsx; dependencies: [31, 27, 1878, 6816, 33, 4501, 697, 566, 8693, 4617, 1244, 8694, 8417, 8513, 2] */ import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import NicknameUtils from '../../../utils/NicknameUtils.tsx'; /* Metro dependency 4617 */ import HeaderAvatar from '../../profile_customization/native/HeaderAvatar.tsx'; /* Metro dependency 8417 */ import UserProfileCustomStatusBubble from './UserProfileCustomStatusBubble.tsx'; /* Metro dependency 8513 */ import UseCustomStatusActivityForUser from '../../custom_status/utils/useCustomStatusActivityForUser.tsx'; /* Metro dependency 8693 */ import UserProfileStackedActionSheet from './UserProfileStackedActionSheet.tsx'; /* Metro dependency 8694 */ 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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 6816 */ function _fun68306(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8877:6, offset: 0x01c48396, size: 377 bytes, params: 8, frame: 25 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = ConstantsModule; const AVATAR_CONTAINER_SIZE = value.AVATAR_CONTAINER_SIZE; const AVATAR_CUSTOM_STATUS_GAP = value.AVATAR_CUSTOM_STATUS_GAP; value = require(33) /* metro dependency 33 */; const env0_5 = value.jsx; const env0_6 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object = {}; const object2 = {flexDirection: 'row', columnGap: AVATAR_CUSTOM_STATUS_GAP}; const PX_16 = (Native).space.PX_16; object2.marginHorizontal = PX_16; object.statusPreviewContainer = object2; object.avatarContainer = {height: AVATAR_CONTAINER_SIZE, width: AVATAR_CONTAINER_SIZE, alignItems: 'center', justifyContent: 'center'}; const MOBILE_ACTIONSHEET_BACKGROUND = (Native).colors.MOBILE_ACTIONSHEET_BACKGROUND; object.avatarStatus = {backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND}; object.customStatusBubble = {'marginTop': null, 'flexShrink': 1, 'flexGrow': 1, marginTop: AVATAR_CONTAINER_SIZE / 2 + 10}; const env0_7 = Reflect.apply(createStyles, value, [object]); (FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/UserProfileCustomStatusActionSheet.tsx'); exports.default = UserProfileCustomStatusActionSheet; function UserProfileCustomStatusActionSheet({user, guildId, channelId, previewEmoji, previewText}) { // fn#68307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8877:669, offset: 0x01c4850f, size: 460 bytes, params: 2, frame: 27 const styles = useStyles(); const value2 = (FluxModule).useStateFromStores([UserStore], _fun68308, [user]); const value3 = (UseCustomStatusActivityForUser)(user.id); const value4 = (NicknameUtils).useName(guildId, channelId, user); const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const r5 = value2 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.AHoLf4) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['pP5Aa+'], {username: value4}); let value = HeaderAvatar; value = ( {((Component) => )(value)} ); return ( {value} {((Component) => )(UserProfileCustomStatusBubble)} ); function _fun68308() { // fn#68308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8877:818, offset: 0x01c486db, size: 50 bytes, params: 1, frame: 10 const value = environment.__proto__; return UserStore.getCurrentUser()?.id === user.id; } } } global.__d(_fun68306, 8692, [31, 27, 1878, 6816, 33, 4501, 697, 566, 8693, 4617, 1244, 8694, 8417, 8513, 2]) /* metro module 8692, dependencies: [31, 27, 1878, 6816, 33, 4501, 697, 566, 8693, 4617, 1244, 8694, 8417, 8513, 2] */;