2026-08-11 06:20:06 +00:00
|
|
|
// Module ID: 1913
|
|
|
|
|
// Function ID: 1914
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getFavoritesAwareGuildName
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [1429, 676, 1236, 2]
|
2026-08-12 06:57:52 +00:00
|
|
|
// Exports: getFavoritesAwareGuildName, isFavoritableChannel, isFavoritesGuildCategoryNameValid, isFavoritesGuildId
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-11 06:20:06 +00:00
|
|
|
// Module 1913 (getFavoritesAwareGuildName)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import ME from "ME" /* 676 */;
|
|
|
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
|
|
|
import date from "date" /* 1429 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const FAVORITES_RAW_GUILD_ID = date.FAVORITES_RAW_GUILD_ID;
|
|
|
|
|
const FAVORITES = ME.FAVORITES;
|
|
|
|
|
const result = set.fileFinishedImporting("modules/favorites/FavoritesUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getFavoritesAwareGuildName = function getFavoritesAwareGuildName(guild) {
|
|
|
|
|
if (null != guild) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const id = guild.id;
|
|
|
|
|
let tmp2 = id === FAVORITES_RAW_GUILD_ID;
|
|
|
|
|
if (!tmp2) {
|
|
|
|
|
tmp2 = id === FAVORITES;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl = getSystemLocale.intl;
|
|
|
|
|
let name = intl.string(getSystemLocale.t.wMWyci);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
name = guild.name;
|
|
|
|
|
}
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
};
|
2026-07-29 08:29:29 +00:00
|
|
|
export function isFavoritesGuildId(guildId) {
|
|
|
|
|
let tmp = guildId === FAVORITES_RAW_GUILD_ID;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = guildId === FAVORITES;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
2026-08-10 06:55:34 +00:00
|
|
|
export const isFavoritesGuildCategoryNameValid = function isFavoritesGuildCategoryNameValid(closure_0) {
|
|
|
|
|
return "" !== closure_0.trim();
|
2026-07-27 11:26:19 +00:00
|
|
|
};
|
2026-08-12 06:57:52 +00:00
|
|
|
export const isFavoritableChannel = function isFavoritableChannel(record) {
|
|
|
|
|
return !record.isCategory();
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|