decord/source/modules/chat/useTypingText.tsx
2026-08-08 06:10:11 +00:00

69 lines
2.1 KiB
TypeScript

// Module ID: 11410
// Function ID: 11411
// Name: useTypingText
// Dependencies: [32, 1903, 589, 4493, 1236, 2]
// Exports: default
// Module 11410 (useTypingText)
import _slicedToArray from "_slicedToArray";
import mergeGuildAvatar from "mergeGuildAvatar";
const require = arg1;
const result = require("initialize").fileFinishedImporting("modules/chat/useTypingText.tsx");
export default function useTypingText(channelId) {
let tmp2;
let tmp3;
let tmp4;
channelId = channelId.channelId;
const guildId = channelId.guildId;
const typingUserIds = channelId.typingUserIds;
let lJ9sZX = channelId;
let obj = typingUserIds;
let items = [mergeGuildAvatar];
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 = outer1_4;
let user = outer1_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);
}
};