decord/source/modules/chat/useTypingText.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

56 lines
1.8 KiB
TypeScript

// Module ID: 12009
// Function ID: 12010
// Name: useTypingText
// Dependencies: [32, 1371, 504, 4726, 1114, 2]
// Exports: default
// Module 12009 (useTypingText)
import NicknameUtilsDefault from "NicknameUtils" /* 4726 */;
import _slicedToArray from "module_32" /* 32 */;
import UserStore from "UserStore" /* 1371 */;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/chat/useTypingText.tsx");
export default function useTypingText(channelId) {
channelId = channelId.channelId;
const guildId = channelId.guildId;
const typingUserIds = channelId.typingUserIds;
let lJ9sZX = channelId;
let obj = typingUserIds;
let items = [UserStore];
const items1 = [channelId, guildId, typingUserIds];
const obj2 = channelId(typingUserIds[2]);
[tmp2, tmp3, tmp4] = channelId(typingUserIds[2]).useStateFromStoresArray(items, () => {
const items = [];
while (tmp2 !== undefined) {
let user = UserStore.getUser(tmp3);
if (null != user) {
let obj = NicknameUtilsDefault;
let arr = items.push(obj.getName(guildId, channelId, tmp6));
}
continue;
}
return items;
}, items1);
if (null == tmp2) {
return null;
} else if (null == tmp3) {
const intl4 = lJ9sZX(obj[4]).intl;
lJ9sZX = lJ9sZX(obj[4]).t.lJ9sZX;
obj = { a: tmp2 };
let formatResult = intl4.format(lJ9sZX, obj);
} else if (null == tmp4) {
const intl3 = lJ9sZX(obj[4]).intl;
const obj3 = { a: tmp2, b: tmp3 };
formatResult = intl3.format(lJ9sZX(obj[4]).t.rB0CUa, obj3);
} else if (null == tmp5) {
const intl2 = lJ9sZX(obj[4]).intl;
const obj4 = { a: tmp2, b: tmp3, c: tmp4 };
formatResult = intl2.format(lJ9sZX(obj[4]).t.StKThj, obj4);
} else {
const intl = lJ9sZX(obj[4]).intl;
formatResult = intl.string(lJ9sZX(obj[4]).t.uVDhqZ);
}
};