91 lines
3.2 KiB
TypeScript
91 lines
3.2 KiB
TypeScript
// Metro module 4182 (f4183).
|
|
import { ChannelStreamTypes } from "../../Constants";
|
|
import Durations from "../../utils/Durations";
|
|
import Backoff from "../../_bundle/Backoff";
|
|
const r25 = Object.freeze({
|
|
referencedAvatarProfile: false,
|
|
referencedUsernameProfile: false,
|
|
interactionAvatarProfile: false,
|
|
interactionUsernameProfile: false,
|
|
interactionData: false,
|
|
avatarProfile: false,
|
|
usernameProfile: false,
|
|
emojiPicker: false,
|
|
emojiBurstPicker: false,
|
|
moreUtilities: false,
|
|
contextMenu: false
|
|
});
|
|
const r26 = {
|
|
ERROR_SOURCE_UNKNOWN: "ERROR_SOURCE_UNKNOWN",
|
|
PRECOMPRESSION_SUM_TOO_LARGE: "PRECOMPRESSION_SUM_TOO_LARGE",
|
|
PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE: "PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE",
|
|
POSTCOMPRESSION_SUM_TOO_LARGE: "POSTCOMPRESSION_SUM_TOO_LARGE",
|
|
POSTCOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE: "POSTCOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE",
|
|
UPLOAD_ATTACHMENT_MAX_SIZE_ERROR: "UPLOAD_MESSAGE_ATTACHMENT_MAX_SIZE_ERROR",
|
|
EXPLICIT_CONTENT: "EXPLICIT_CONTENT"
|
|
};
|
|
const r34 = {
|
|
SYSTEM_DM_TAG_SYSTEM_TYPE: "a",
|
|
BOT_TAG_SERVER_TYPE: "b",
|
|
BOT_TAG_BOT_TYPE: "d",
|
|
POLL_TYPE: "g"
|
|
};
|
|
const r50 = {
|
|
timeout: {
|
|
response: 10 * Durations.Millis.SECOND,
|
|
deadline: 1 * Durations.Millis.MINUTE
|
|
},
|
|
backoff: new Backoff(0.5 * Durations.Millis.SECOND, 60 * Durations.Millis.SECOND),
|
|
retries: 8
|
|
};
|
|
const r66 = {
|
|
PUSH_NOTIFICATION: "push_notification",
|
|
CHAT_INPUT: "chat_input",
|
|
SHARE_MODAL: "share_modal",
|
|
VOICE_MESSAGE: "voice_message",
|
|
THREAD_CREATION: "thread_creation",
|
|
FORWARDING: "forwarding",
|
|
USER_PROFILE: "user_profile",
|
|
RETRY: "explicit_retry",
|
|
OVERLAY: "overlay",
|
|
ACTIVITY_SHARE: "activity_share",
|
|
ICYMI: "icymi",
|
|
INSTANT_UPLOAD: "instant_upload",
|
|
APP_COMMAND: "app_command",
|
|
PRIVATE_MESSAGE_COMMAND: "private_message_command",
|
|
POLL_CREATION: "poll_creation",
|
|
SHARE_CUSTOM_THEME: "share_custom_theme",
|
|
GIF_REPLY: "gif_reply",
|
|
STICKER_REPLY: "sticker_reply",
|
|
SEND_WAVE: "send_wave",
|
|
GIFTING: "gifting",
|
|
CONTENT_INVENTORY_MEMBERLIST: "content_inventory_memberlist",
|
|
GREET: "greet",
|
|
SOCIAL_LAYER_STOREFRONT: "social_layer_storefront",
|
|
COLLECTIBLES_SHOP: "collectibles_shop",
|
|
GAME_SERVER_SHOP: "game_server_shop",
|
|
MEDIA_MENTION: "media_mention",
|
|
OTHER: "other"
|
|
};
|
|
export const MESSAGE_GROUP_SPACING = [0, 4, 8, 16, 24];
|
|
export const DEFAULT_COZY_SPACING = 16;
|
|
export const DEFAULT_COMPACT_SPACING = 0;
|
|
export { r25 as DEFAULT_POPOUTS };
|
|
export const MESSAGE_PADDING = 16;
|
|
export const PLACEHOLDER_BUFFER = 16;
|
|
export const NEW_MESSAGE_BAR_BUFFER = 32;
|
|
export const NEW_MESSAGE_BAR_BUFFER_LARGE = 64;
|
|
export const NEW_MESSAGE_BAR_ID = "---new-messages-bar";
|
|
export const LEGACY_SPOILER_ATTACHMENT_PREFIX = "SPOILER_";
|
|
export const DEFAULT_GUILD_OFFICIAL_COLOR = 3447003;
|
|
export const GUILD_OFFICIAL_HIGHLIGHT_ALPHA_COLOR = 687865856;
|
|
export const GUILD_OFFICIAL_HIGHLIGHT_ALPHA = 0.16;
|
|
export { r26 as FileUploadErrorTypes };
|
|
export { r34 as MessageTagTypes };
|
|
export const DEFAULT_MOBILE_PRE_COMPRESSION_MAX_ATTACHMENT_SIZE = 209715200;
|
|
export function isChannelStreamMessage(a0) {
|
|
return a0.type === ChannelStreamTypes.MESSAGE;
|
|
}
|
|
export { r50 as MESSAGE_HTTP_TIMEOUT_RETRY_OPTIONS };
|
|
export { r66 as MessageSendLocation };
|