2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 9612
|
|
|
|
|
// Function ID: 9613
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileCustomStatusActionSheet
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [19, 17, 1922, 5882, 21, 4380, 712, 589, 9613, 4573, 1236, 9614, 8454, 9596, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 9612 (UserProfileCustomStatusActionSheet)
|
2026-08-24 06:08:38 +00:00
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import getNicknameDefault from "getNickname" /* 4573 */;
|
|
|
|
|
import _modDef8454 from "module_8454" /* 8454 */;
|
|
|
|
|
import EmojiImageDefault from "EmojiImage" /* 9596 */;
|
|
|
|
|
import useCustomStatusActivityForUserDefault from "useCustomStatusActivityForUser" /* 9613 */;
|
|
|
|
|
import UserProfileStackedActionSheetDefault from "UserProfileStackedActionSheet" /* 9614 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
|
|
|
import closure_4 from "mergeGuildAvatar" /* 1922 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import ARBITRARY_LARGE_OFFSET from "ARBITRARY_LARGE_OFFSET" /* 5882 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import jsxProd from "jsxProd" /* 21 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ AVATAR_CONTAINER_SIZE, AVATAR_CUSTOM_STATUS_GAP } = ARBITRARY_LARGE_OFFSET);
|
|
|
|
|
({ jsx: c5, jsxs: closure_6 } = jsxProd);
|
|
|
|
|
createCacheKey = { statusPreviewContainer: null, avatarContainer: null, avatarStatus: null, customStatusBubble: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey = { flexDirection: "row", columnGap: AVATAR_CUSTOM_STATUS_GAP, marginHorizontal: ThemesDefault.space.PX_16 };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[0] = createCacheKey;
|
|
|
|
|
createCacheKey[1] = { height: AVATAR_CONTAINER_SIZE, width: AVATAR_CONTAINER_SIZE, alignItems: "center", justifyContent: "center" };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey[2] = { backgroundColor: ThemesDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[3] = { marginTop: AVATAR_CONTAINER_SIZE / 2 + 10, flexShrink: 1, flexGrow: 1 };
|
2026-08-24 06:08:38 +00:00
|
|
|
let closure_7 = createCacheKey.createStyles(createCacheKey);
|
|
|
|
|
let obj1 = { backgroundColor: ThemesDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND };
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj2 = { marginTop: AVATAR_CONTAINER_SIZE / 2 + 10, flexShrink: 1, flexGrow: 1 };
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileCustomStatusActionSheet.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function UserProfileCustomStatusActionSheet(user) {
|
|
|
|
|
user = user.user;
|
|
|
|
|
({ guildId, channelId, previewEmoji, previewText } = user);
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp = callback3();
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = user(589);
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_4];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [user];
|
|
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
const currentUser = closure_1_4.getCurrentUser();
|
2026-07-20 16:05:17 +00:00
|
|
|
let id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (currentUser != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id = currentUser.id;
|
|
|
|
|
}
|
|
|
|
|
return id === user.id;
|
|
|
|
|
}, items1);
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = getNicknameDefault;
|
2026-07-20 16:05:17 +00:00
|
|
|
const name = obj1.useName(guildId, channelId, user);
|
2026-07-29 08:29:29 +00:00
|
|
|
const intl = user(1236).intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (stateFromStores) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let stringResult = intl.string(tmp2(1236).t.AHoLf4);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { username: null };
|
|
|
|
|
obj[0] = name;
|
|
|
|
|
stringResult = intl.formatToPlainString(tmp2(1236).t["pP5Aa+"], obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { title: stringResult, children: null };
|
|
|
|
|
obj1 = { style: tmp.statusPreviewContainer, children: null };
|
|
|
|
|
const obj2 = { style: tmp.avatarContainer, children: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp6 = useCustomStatusActivityForUserDefault(user.id);
|
2026-08-25 06:04:03 +00:00
|
|
|
obj2[1] = callback(_modDef8454, { user, statusStyle: tmp.avatarStatus });
|
2026-08-24 06:08:38 +00:00
|
|
|
const items2 = [callback(View, obj2), callback(EmojiImageDefault, { customStatusActivity: tmp6, hasCustomProfileTheme: false, showFullStatus: true, style: tmp.customStatusBubble, previewEmoji, previewText })];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1[1] = items2;
|
|
|
|
|
obj[1] = callback2(View, obj1);
|
2026-08-24 06:08:38 +00:00
|
|
|
return callback(UserProfileStackedActionSheetDefault, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|