2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 9956
|
|
|
|
|
// Function ID: 9957
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useRecipientsLabel
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 1922, 1236, 589, 1370, 4223, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useRecipientsLabel
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 9956 (useRecipientsLabel)
|
|
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import closure_4 from "mergeGuildAvatar" /* 1922 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/main_tabs_v2/useRecipientsLabel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useRecipientsLabel = function useRecipientsLabel(channel) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = channel;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_4];
|
2026-07-29 08:29:29 +00:00
|
|
|
const stateFromStoresArray = _require(589).useStateFromStoresArray(items, () => {
|
2026-07-23 10:11:24 +00:00
|
|
|
const recipients = channel.recipients;
|
2026-07-29 08:29:29 +00:00
|
|
|
const mapped = recipients.map((arg0) => user.getUser(arg0));
|
2026-08-24 06:08:38 +00:00
|
|
|
const found = mapped.filter(channel(closure_1_2[4]).isNotNullish);
|
2026-07-29 08:29:29 +00:00
|
|
|
return found.map((arg0) => callback(table[5]).getName(arg0));
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
const items1 = [channel, stateFromStoresArray];
|
|
|
|
|
return React.useMemo(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
if ("" === channel.name) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
let first = stateFromStoresArray;
|
2026-07-20 16:05:17 +00:00
|
|
|
let formatToPlainStringResult = null;
|
|
|
|
|
if (0 !== stateFromStoresArray.length) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (1 === first.length) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl4 = channel(closure_1_2[2]).intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { first: null };
|
|
|
|
|
first = first[0];
|
|
|
|
|
obj[0] = first;
|
2026-08-24 06:08:38 +00:00
|
|
|
formatToPlainStringResult = intl4.formatToPlainString(channel(closure_1_2[2]).t["J+Wpst"], obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (2 === first.length) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl3 = channel(closure_1_2[2]).intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { first: null, second: null };
|
|
|
|
|
[obj3[0], obj3[1]] = first;
|
2026-08-24 06:08:38 +00:00
|
|
|
formatToPlainStringResult = intl3.formatToPlainString(channel(closure_1_2[2]).t.gwRP0Y, obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (3 !== first.length) {
|
|
|
|
|
const diff = first.length - 3;
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl = channel(closure_1_2[2]).intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { first: null, second: null, third: null, count: null };
|
|
|
|
|
[obj[0], obj[1], obj[2]] = first;
|
|
|
|
|
obj[3] = diff;
|
2026-08-24 06:08:38 +00:00
|
|
|
formatToPlainStringResult = intl.formatToPlainString(channel(closure_1_2[2]).t.VYfueb, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl2 = channel(closure_1_2[2]).intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
[obj2[0], obj2[1], obj2[2]] = first;
|
2026-08-24 06:08:38 +00:00
|
|
|
formatToPlainStringResult = intl2.formatToPlainString(channel(closure_1_2[2]).t.QDB5et, { first: null, second: null, third: null });
|
|
|
|
|
obj1 = { first: null, second: null, third: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, items1);
|
|
|
|
|
};
|