decord/alpha/source/modules/toast/native/ToastUtils.tsx

433 lines
17 KiB
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 4808
// Function ID: 4809
// Name: ToastUtils
2026-10-10 08:08:14 +00:00
// Dependencies: [1085, 4809, 1126, 4815, 5032, 5034, 5036, 5038, 5040, 5042, 5044, 1415, 5046, 5049, 1279, 5051, 2]
2026-10-09 10:00:15 +00:00
// Exports: communityAdminOnly, communityRequirementSatisfied, memberOrRoleAddedToast, memberOrRoleRemovedToast, presentAddedFriendToast, presentCommandCopied, presentCopiedToClipboard, presentEmoji, presentError, presentFailedToast, presentFeedbackSent, presentFriendRequestAcceptedToast, presentFriendRequestIgnoredToast, presentGameFriendRequestAcceptedToast, presentGameFriendRequestIgnoredToast, presentGifSaved, presentGuildRoleSubscriptionTrialTierMonthCost, presentIdCopied, presentImageSaved, presentInviteSent, presentLinkCopied, presentMessageCopied, presentMessageIdCopied, presentNoiseCancellation, presentNoiseCancellationError, presentPostIdCopied, presentTimestamp, presentUserPronouns, presentUsernameCopied, presentVideoSaved, presentVoiceActivityDetectionError, roleCreateFailedToast, roleCreatedToast, roleIdCopied, roleTemplateAppliedToast, showMaxGroupMembers, showSafetySuccess, showTransferOwnershipSuccess, showVerificationSent, showVoiceRecordingFailed, transferOwnershipProtected, unverifiedVoiceGate
2026-07-20 16:05:17 +00:00
2026-10-10 08:08:14 +00:00
// Module 4808 (ToastUtils)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import intl7 from "intl" /* 1126 */;
2026-10-09 10:00:15 +00:00
import v1 from "v1" /* 1279 */;
import AvatarUtilsDefault from "AvatarUtils" /* 1415 */;
2026-10-10 08:08:14 +00:00
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4809 */;
import FriendsIcon from "FriendsIcon" /* 4815 */;
import UserPlatformIcon from "UserPlatformIcon" /* 5034 */;
import UserMinusIcon from "UserMinusIcon" /* 5036 */;
import LinkIcon from "LinkIcon" /* 5038 */;
import SendMessageIcon from "SendMessageIcon" /* 5040 */;
import CopyIcon from "CopyIcon" /* 5042 */;
import DownloadIcon from "DownloadIcon" /* 5044 */;
import CircleInformationIcon from "CircleInformationIcon" /* 5046 */;
import TrashIcon from "TrashIcon" /* 5049 */;
import ClockIcon from "ClockIcon" /* 5051 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const VerificationCriteria = Constants.VerificationCriteria;
const result = size.fileFinishedImporting("modules/toast/native/ToastUtils.tsx");
2026-07-20 16:05:17 +00:00
export const presentAddedFriendToast = function presentAddedFriendToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.Fn5bwO), icon: FriendsIcon.FriendsIcon, iconColor: "status-positive" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_ADD_FRIEND", obj);
2026-10-03 08:58:59 +00:00
};
export const presentFriendRequestAcceptedToast = function presentFriendRequestAcceptedToast(username) {
let stringResult;
let tmp3;
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
if (null == username) {
const intl2 = intl7.intl;
stringResult = intl2.string(intl7.t.UhJna5);
tmp3 = require;
2026-07-20 16:05:17 +00:00
} else {
2026-10-03 08:58:59 +00:00
tmp3 = require;
const intl = intl7.intl;
const obj = { username: username.username };
stringResult = intl.formatToPlainString(intl7.t.b3eoD4, obj);
2026-07-20 16:05:17 +00:00
}
2026-10-10 08:08:14 +00:00
const obj2 = { text: stringResult, icon: tmp3(5032).UserPlusIcon, iconColor: "status-positive" };
open("TOAST_FRIEND_REQUEST_ACCEPTED", obj2);
2026-07-20 16:05:17 +00:00
};
export const presentGameFriendRequestAcceptedToast = function presentGameFriendRequestAcceptedToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.xjNLeZ), icon: UserPlatformIcon.UserPlatformIcon, iconColor: "status-positive" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_GAME_FRIEND_REQUEST_ACCEPTED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentFriendRequestIgnoredToast = function presentFriendRequestIgnoredToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.YlavlY), icon: UserMinusIcon.UserMinusIcon, iconColor: "icon-feedback-critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_FRIEND_REQUEST_IGNORED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentGameFriendRequestIgnoredToast = function presentGameFriendRequestIgnoredToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.P6BzJP), icon: UserMinusIcon.UserMinusIcon, iconColor: "icon-feedback-critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_GAME_FRIEND_REQUEST_IGNORED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentLinkCopied = function presentLinkCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["+5kSoW"]), icon: LinkIcon.LinkIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("LINK_COPIED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentInviteSent = function presentInviteSent() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.sVwWdV), icon: SendMessageIcon.SendMessageIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("INVITE_SENT", obj);
2026-07-20 16:05:17 +00:00
};
export const presentIdCopied = function presentIdCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.eNjAah), icon: CopyIcon.CopyIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_ID_COPIED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentImageSaved = function presentImageSaved() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.cqpdJW), icon: DownloadIcon.DownloadIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_IMAGE_SAVED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentVideoSaved = function presentVideoSaved() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["cEK+1g"]), icon: DownloadIcon.DownloadIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_VIDEO_SAVED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentGifSaved = function presentGifSaved() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.LktEtN), icon: DownloadIcon.DownloadIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_GIF_SAVED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentMessageCopied = function presentMessageCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.R3o53R), icon: CopyIcon.CopyIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_MESSAGE_COPIED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentMessageIdCopied = function presentMessageIdCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.svRBmK), icon: CopyIcon.CopyIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_MESSAGE_ID_COPIED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentPostIdCopied = function presentPostIdCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.aBQ2RP), icon: CopyIcon.CopyIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_FORUM_POST_ID_COPIED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentUsernameCopied = function presentUsernameCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["FHVR/+"]), icon: CopyIcon.CopyIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_USERNAME_SAVED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentFeedbackSent = function presentFeedbackSent() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.xpiDtu), variant: "success" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_FEEDBACK_SENT", obj);
};
export const presentEmoji = function presentEmoji(id) {
2026-10-03 08:58:59 +00:00
const obj = AvatarUtilsDefault;
const obj2 = { id: id.id, animated: id.animated, size: 48 };
2026-10-03 08:58:59 +00:00
const emojiURL = obj.getEmojiURL(obj2);
2026-10-10 08:08:14 +00:00
const open = ToastActionCreatorsDefault.open;
2026-10-09 10:00:15 +00:00
const obj3 = { text: ":" + id.name + ":", icon: { type: "emoji", src: emojiURL, alt: id.name } };
ToastActionCreatorsDefault;
const combined = "PRESENT_EMOJI-" + id.id;
2026-10-10 08:08:14 +00:00
open(combined, obj3);
2026-07-20 16:05:17 +00:00
};
export const presentNoiseCancellation = function presentNoiseCancellation(arg0) {
2026-10-03 08:58:59 +00:00
let str;
let stringResult;
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
const intl = intl7.intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-10-03 08:58:59 +00:00
const t = intl7.t;
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-10-03 08:58:59 +00:00
stringResult = string(t["Q+fhfv"]);
2026-07-20 16:05:17 +00:00
} else {
stringResult = string(t.hEMHnF);
}
2026-10-10 08:08:14 +00:00
const obj = { text: stringResult, variant: str };
str = "critical";
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-10-10 08:08:14 +00:00
str = "success";
2026-07-20 16:05:17 +00:00
}
2026-10-10 08:08:14 +00:00
open("NOISE_CANCELLATION_TOGGLE", obj);
2026-07-20 16:05:17 +00:00
};
export const presentNoiseCancellationError = function presentNoiseCancellationError() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.DnmX2G), variant: "critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("MOBILE_NOISE_CANCELLATION_CPU_OVERUSE", obj);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
export const presentError = function presentError(intl) {
const obj = ToastActionCreatorsDefault;
2026-10-10 08:08:14 +00:00
const obj2 = { text: intl, variant: "critical" };
obj.open("ERROR", obj2);
2026-07-20 16:05:17 +00:00
};
export const presentVoiceActivityDetectionError = function presentVoiceActivityDetectionError() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.zz1Tft), variant: "critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("MOBILE_ADVANCED_VOICE_ACTIVITY_CPU_OVERUSE", obj);
};
export const roleIdCopied = function roleIdCopied(combined) {
2026-10-03 08:58:59 +00:00
let intl;
let obj2;
2026-10-10 08:08:14 +00:00
const open = ToastActionCreatorsDefault.open;
const obj = { text: intl.formatToPlainString(intl7.t.iOWpeB, obj2), icon: CopyIcon.CopyIcon };
ToastActionCreatorsDefault;
combined = "ROLE_ID_COPIED-" + combined;
2026-10-03 08:58:59 +00:00
intl = intl7.intl;
obj2 = { role: combined };
2026-10-10 08:08:14 +00:00
open(combined, obj);
2026-07-20 16:05:17 +00:00
};
export const communityRequirementSatisfied = function communityRequirementSatisfied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.PHjrpp), variant: "success" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("ENABLE_COMMUNITY_MODAL_REQUIREMENT_SATISFIED_TOOLTIP", obj);
2026-07-20 16:05:17 +00:00
};
export const communityAdminOnly = function communityAdminOnly() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["pjG+T3"]), icon: CircleInformationIcon.CircleInformationIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("GUILD_SETTINGS_COMMUNITY_ADMINISTRATOR_ONLY", obj);
2026-07-20 16:05:17 +00:00
};
export const unverifiedVoiceGate = function unverifiedVoiceGate(check) {
2026-10-03 08:58:59 +00:00
let missingVerificationRole;
let stringResult;
let verificationRole;
2026-07-20 16:05:17 +00:00
({ missingVerificationRole, verificationRole } = check);
if (check.notClaimed) {
2026-10-03 08:58:59 +00:00
const intl6 = intl7.intl;
stringResult = intl6.string(intl7.t.IRxUlG);
2026-07-20 16:05:17 +00:00
} else if (tmp2) {
2026-10-03 08:58:59 +00:00
const intl5 = intl7.intl;
stringResult = intl5.string(intl7.t.vW8iUF);
2026-07-20 16:05:17 +00:00
} else if (tmp) {
2026-10-03 08:58:59 +00:00
const intl4 = intl7.intl;
stringResult = intl4.string(intl7.t.vdSOpz);
2026-07-20 16:05:17 +00:00
} else if (tmp4) {
2026-10-03 08:58:59 +00:00
const intl3 = intl7.intl;
const obj2 = { min: VerificationCriteria.MEMBER_AGE };
2026-10-03 08:58:59 +00:00
stringResult = intl3.formatToPlainString(intl7.t.v1ktYb, obj2);
2026-07-20 16:05:17 +00:00
} else if (tmp3) {
2026-10-03 08:58:59 +00:00
const intl2 = intl7.intl;
const obj3 = { min: VerificationCriteria.ACCOUNT_AGE };
2026-10-03 08:58:59 +00:00
stringResult = intl2.formatToPlainString(intl7.t.sncw41, obj3);
2026-07-20 16:05:17 +00:00
} else {
if (missingVerificationRole) {
missingVerificationRole = null != verificationRole;
}
stringResult = null;
if (missingVerificationRole) {
2026-10-03 08:58:59 +00:00
const intl = intl7.intl;
const formatToPlainString = intl.formatToPlainString;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-10-03 08:58:59 +00:00
const obj = { roleName: "@" + verificationRole.name };
const MZbCuG = intl7.t.MZbCuG;
stringResult = formatToPlainString(MZbCuG, obj);
2026-07-20 16:05:17 +00:00
}
}
if (null != stringResult) {
2026-10-10 08:08:14 +00:00
const obj4 = { text: stringResult, icon: CircleInformationIcon.CircleInformationIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
2026-10-10 08:08:14 +00:00
open("UNVERIFIED_VOICE_GATE", obj4);
2026-07-20 16:05:17 +00:00
}
};
export const transferOwnershipProtected = function transferOwnershipProtected() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.wDkfrN), icon: CircleInformationIcon.CircleInformationIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TRANSFER_OWNERSHIP_PROTECTED_GUILD", obj);
};
export const memberOrRoleRemovedToast = function memberOrRoleRemovedToast(name) {
2026-10-03 08:58:59 +00:00
let intl;
let obj2;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.formatToPlainString(intl7.t.vJGtXc, obj2), icon: TrashIcon.TrashIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
obj2 = { name };
2026-10-10 08:08:14 +00:00
open("PRIVATE_CHANNEL_MEMBERS_REMOVED", obj);
2026-10-03 08:58:59 +00:00
};
export const memberOrRoleAddedToast = function memberOrRoleAddedToast(c1, c0) {
let stringResult;
if (c1 > 0) {
if (c0 > 0) {
const intl3 = intl7.intl;
stringResult = intl3.string(intl7.t.fRD8wW);
2026-07-20 16:05:17 +00:00
}
if (null != stringResult) {
2026-10-10 08:08:14 +00:00
const obj2 = { text: stringResult, variant: "success" };
const obj3 = ToastActionCreatorsDefault;
obj3.open("MEMBER_OR_ROLE_ADDED", obj2);
2026-07-20 16:05:17 +00:00
}
}
2026-10-03 08:58:59 +00:00
if (c1 > 0) {
const intl2 = intl7.intl;
2026-10-10 08:08:14 +00:00
const obj4 = { count: c1 };
stringResult = intl2.formatToPlainString(intl7.t["yM/8JE"], obj4);
2026-10-03 08:58:59 +00:00
} else if (c0 > 0) {
const intl = intl7.intl;
const obj = { count: c0 };
stringResult = intl.formatToPlainString(intl7.t.yvV5Ye, obj);
2026-07-20 16:05:17 +00:00
}
};
export const roleTemplateAppliedToast = function roleTemplateAppliedToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.e6xHUV), variant: "success" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("ROLE_PERMISSION_TEMPLATE_SELECT_CONFIRMATION_TOAST", obj);
2026-07-20 16:05:17 +00:00
};
export const roleCreatedToast = function roleCreatedToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.kubT4R), variant: "success" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("ROLE_CREATED_TOAST", obj);
2026-07-20 16:05:17 +00:00
};
export const roleCreateFailedToast = function roleCreateFailedToast() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.hbr6Uj), variant: "critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("ROLE_CREATION_FAILED", obj);
2026-07-20 16:05:17 +00:00
};
export const presentFailedToast = function presentFailedToast(intl) {
const obj = ToastActionCreatorsDefault;
2026-10-10 08:08:14 +00:00
const obj2 = { text: intl, variant: "critical" };
obj.open("FAILED", obj2);
2026-07-20 16:05:17 +00:00
};
export const presentCommandCopied = function presentCommandCopied() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.U989ct), icon: LinkIcon.LinkIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TOAST_COMMAND_COPIED", obj);
};
2026-07-20 16:05:17 +00:00
export const presentUserPronouns = function presentUserPronouns() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["1w6drw"]) };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("USER_POPOUT_PRONOUNS", obj);
2026-07-20 16:05:17 +00:00
};
export const presentCopiedToClipboard = function presentCopiedToClipboard() {
2026-10-03 08:58:59 +00:00
let intl;
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
2026-10-10 08:08:14 +00:00
const obj2 = { text: intl.string(intl7.t.mGZ66D), icon: CopyIcon.CopyIcon };
const obj = v1;
const combined = "COPIED_TEXT_" + obj.v4();
2026-10-03 08:58:59 +00:00
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open(combined, obj2);
2026-07-20 16:05:17 +00:00
};
export const presentGuildRoleSubscriptionTrialTierMonthCost = function presentGuildRoleSubscriptionTrialTierMonthCost() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["/q6fpa"]), icon: CircleInformationIcon.CircleInformationIcon };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("GUILD_ROLE_SUBSCRIPTION_MANAGE_SUBSCRIPTION_PAGE_TRIAL_PRICE_INFO", obj);
2026-07-20 16:05:17 +00:00
};
export const showVoiceRecordingFailed = function showVoiceRecordingFailed() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.H03AqF), variant: "critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("VOICE_MESSAGES_RECORDING_FAILED", obj);
2026-07-20 16:05:17 +00:00
};
export const showMaxGroupMembers = function showMaxGroupMembers() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.OtTQDz), variant: "critical" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("GROUP_DM_INVITE_FULL_MAIN", obj);
2026-07-20 16:05:17 +00:00
};
export const showTransferOwnershipSuccess = function showTransferOwnershipSuccess() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t["2Eyydu"]), variant: "success" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("TRANSFER_OWNERSHIP_SUCCESS", obj);
2026-10-03 08:58:59 +00:00
};
export const showSafetySuccess = function showSafetySuccess(IAR_SHARE_WITH_PARENT_SUCCESS, safetyToastTypeContent) {
const obj = ToastActionCreatorsDefault;
2026-10-10 08:08:14 +00:00
const obj2 = { text: safetyToastTypeContent, variant: "success" };
obj.open(IAR_SHARE_WITH_PARENT_SUCCESS, obj2);
2026-07-20 16:05:17 +00:00
};
export const showVerificationSent = function showVerificationSent() {
2026-10-03 08:58:59 +00:00
let intl;
2026-10-10 08:08:14 +00:00
const obj = { text: intl.string(intl7.t.gI8IST), variant: "success" };
2026-10-03 08:58:59 +00:00
const open = ToastActionCreatorsDefault.open;
ToastActionCreatorsDefault;
intl = intl7.intl;
2026-10-10 08:08:14 +00:00
open("VERIFICATION_RESENT", obj);
2026-07-20 16:05:17 +00:00
};
export const presentTimestamp = function presentTimestamp(full) {
const obj = ToastActionCreatorsDefault;
2026-10-10 08:08:14 +00:00
const obj2 = { text: full, icon: ClockIcon.ClockIcon };
obj.open("MESSAGE_TIMESTAMP", obj2);
2026-07-20 16:05:17 +00:00
};