decord/source/modules/chat/useTypingText.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

66 lines
2 KiB
TypeScript

// Module ID: 11979
// Function ID: 11980
// Name: useTypingText
// Dependencies: [32, 1371, 504, 4712, 1114, 2]
// Exports: default
// Module 11979 (useTypingText)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "mergeGuildAvatar" /* 1371 */;
const require = arg1;
const result = require("set").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 = [closure_4];
const items1 = [channelId, guildId, typingUserIds];
const obj2 = channelId(typingUserIds[2]);
[tmp2, tmp3, tmp4] = callback(channelId(typingUserIds[2]).useStateFromStoresArray(items, () => {
const items = [];
while (tmp2 !== undefined) {
let tmp4 = closure_1_4;
let user = closure_1_4.getUser(tmp3);
if (null != user) {
let tmp7 = guildId;
let tmp8 = typingUserIds;
let obj = guildId(typingUserIds[3]);
let tmp9 = guildId;
let tmp10 = channelId;
let tmp11 = user;
let arr = items.push(obj.getName(guildId, channelId, tmp6));
}
continue;
}
return items;
}, items1), 4);
if (null == tmp2) {
return null;
} else if (null == tmp3) {
const intl4 = lJ9sZX(obj[4]).intl;
lJ9sZX = lJ9sZX(obj[4]).t.lJ9sZX;
obj = { a: null };
obj[0] = tmp2;
let formatResult = intl4.format(lJ9sZX, obj);
} else if (null == tmp4) {
const intl3 = lJ9sZX(obj[4]).intl;
obj = { a: null, b: null };
obj[0] = tmp2;
obj[1] = tmp3;
formatResult = intl3.format(lJ9sZX(obj[4]).t.rB0CUa, obj);
} else if (null == tmp5) {
const intl2 = lJ9sZX(obj[4]).intl;
obj = { a: null, b: null, c: null };
obj[0] = tmp2;
obj[1] = tmp3;
obj[2] = tmp4;
formatResult = intl2.format(lJ9sZX(obj[4]).t.StKThj, obj);
} else {
const intl = lJ9sZX(obj[4]).intl;
formatResult = intl.string(lJ9sZX(obj[4]).t.uVDhqZ);
}
};