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

457 lines
20 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4096
// Function ID: 4097
2026-07-20 16:05:17 +00:00
// Name: presentAddedFriendToast
2026-08-24 06:08:38 +00:00
// Dependencies: [676, 4097, 1236, 4098, 4316, 4318, 4320, 4322, 4324, 4326, 4328, 4330, 1435, 4332, 4334, 4337, 514, 4339, 4342, 2]
2026-07-20 16:05:17 +00:00
// Exports: communityAdminOnly, communityRequirementSatisfied, memberOrRoleAddedToast, memberOrRoleRemovedToast, presentAddedFriendToast, presentCommandCopied, presentCopiedToClipboard, presentEmoji, presentError, presentFailedToast, presentFeedbackSent, presentFriendRequestAcceptedToast, presentFriendRequestIgnoredToast, presentGameFriendRequestAcceptedToast, presentGameFriendRequestIgnoredToast, presentGifSaved, presentGuildMemberBio, presentGuildMemberPronouns, 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-08-24 06:08:38 +00:00
// Module 4096 (presentAddedFriendToast)
import set from "set" /* 2 */;
import v1 from "v1" /* 514 */;
import ME from "ME" /* 676 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import getAvatarURLDefault from "getAvatarURL" /* 1435 */;
import dispatcherDefault from "dispatcher" /* 4097 */;
import FriendsIcon from "FriendsIcon" /* 4098 */;
import UserPlatformIcon from "UserPlatformIcon" /* 4318 */;
import UserMinusIcon from "UserMinusIcon" /* 4320 */;
import LinkIcon from "LinkIcon" /* 4322 */;
import SendMessageIcon from "SendMessageIcon" /* 4324 */;
import CopyIcon from "CopyIcon" /* 4326 */;
import DownloadIcon from "DownloadIcon" /* 4328 */;
import CheckmarkLargeIcon from "CheckmarkLargeIcon" /* 4330 */;
import XLargeIcon2 from "XLargeIcon" /* 4332 */;
import CircleInformationIcon from "CircleInformationIcon" /* 4334 */;
import TrashIcon from "TrashIcon" /* 4337 */;
import CircleCheckIcon from "CircleCheckIcon" /* 4339 */;
import ClockIcon from "ClockIcon" /* 4342 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const VerificationCriteria = ME.VerificationCriteria;
const result = set.fileFinishedImporting("modules/toast/native/ToastUtils.tsx");
2026-07-20 16:05:17 +00:00
export const presentAddedFriendToast = function presentAddedFriendToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_ADD_FRIEND", content: null, iconColor: "status-positive", IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.Fn5bwO);
obj[3] = FriendsIcon.FriendsIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentFriendRequestAcceptedToast = function presentFriendRequestAcceptedToast(username) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
if (null == username) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
let stringResult = intl2.string(getSystemLocale.t.UhJna5);
2026-07-29 08:29:29 +00:00
let tmp2 = require;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp2 = require;
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null };
obj[0] = username.username;
2026-08-24 06:08:38 +00:00
stringResult = intl.formatToPlainString(getSystemLocale.t.b3eoD4, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj = { key: "TOAST_FRIEND_REQUEST_ACCEPTED", content: stringResult, IconComponent: tmp2(4316).UserPlusIcon, iconColor: "status-positive" };
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentGameFriendRequestAcceptedToast = function presentGameFriendRequestAcceptedToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_GAME_FRIEND_REQUEST_ACCEPTED", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.xjNLeZ);
obj[2] = UserPlatformIcon.UserPlatformIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentFriendRequestIgnoredToast = function presentFriendRequestIgnoredToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_FRIEND_REQUEST_IGNORED", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.YlavlY);
obj[2] = UserMinusIcon.UserMinusIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentGameFriendRequestIgnoredToast = function presentGameFriendRequestIgnoredToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_GAME_FRIEND_REQUEST_IGNORED", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.P6BzJP);
obj[2] = UserMinusIcon.UserMinusIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentLinkCopied = function presentLinkCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "LINK_COPIED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["+5kSoW"]);
obj[2] = LinkIcon.LinkIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentInviteSent = function presentInviteSent() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "INVITE_SENT", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.sVwWdV);
obj[2] = SendMessageIcon.SendMessageIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentIdCopied = function presentIdCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_ID_COPIED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.eNjAah);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentImageSaved = function presentImageSaved() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_IMAGE_SAVED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.cqpdJW);
obj[2] = DownloadIcon.DownloadIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentVideoSaved = function presentVideoSaved() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_VIDEO_SAVED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["cEK+1g"]);
obj[2] = DownloadIcon.DownloadIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentGifSaved = function presentGifSaved() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_GIF_SAVED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.LktEtN);
obj[2] = DownloadIcon.DownloadIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentMessageCopied = function presentMessageCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_MESSAGE_COPIED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.R3o53R);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentMessageIdCopied = function presentMessageIdCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_MESSAGE_ID_COPIED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.svRBmK);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentPostIdCopied = function presentPostIdCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_FORUM_POST_ID_COPIED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.aBQ2RP);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentUsernameCopied = function presentUsernameCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_USERNAME_SAVED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["FHVR/+"]);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentFeedbackSent = function presentFeedbackSent() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_FEEDBACK_SENT", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.xpiDtu);
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
2026-07-23 10:11:24 +00:00
export const presentEmoji = function presentEmoji(closure_0) {
2026-08-24 06:08:38 +00:00
let obj = getAvatarURLDefault;
2026-07-23 10:11:24 +00:00
obj = { id: closure_0.id, animated: closure_0.animated, size: 48 };
2026-07-20 16:05:17 +00:00
const emojiURL = obj.getEmojiURL(obj);
2026-07-23 10:11:24 +00:00
obj = { key: "PRESENT_EMOJI-" + closure_0.id, content: ":" + closure_0.name + ":", icon: { uri: emojiURL } };
2026-08-24 06:08:38 +00:00
dispatcherDefault.open(obj);
2026-07-20 16:05:17 +00:00
};
export const presentNoiseCancellation = function presentNoiseCancellation(arg0) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
const intl = getSystemLocale.intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-08-24 06:08:38 +00:00
const t = getSystemLocale.t;
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-07-23 10:11:24 +00:00
let stringResult = string(t["Q+fhfv"]);
2026-07-29 08:29:29 +00:00
let tmp4 = tmp2;
2026-07-20 16:05:17 +00:00
} else {
stringResult = string(t.hEMHnF);
2026-07-29 08:29:29 +00:00
tmp4 = tmp2;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { key: "NOISE_CANCELLATION_TOGGLE", content: stringResult, IconComponent: null, iconColor: null };
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-08-24 06:08:38 +00:00
let XLargeIcon = tmp4(4330).CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
XLargeIcon = tmp4(4332).XLargeIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = XLargeIcon;
2026-07-20 16:05:17 +00:00
let str = "icon-feedback-critical";
if (arg0) {
str = "status-positive";
}
2026-07-29 08:29:29 +00:00
obj[3] = str;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentNoiseCancellationError = function presentNoiseCancellationError() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "MOBILE_NOISE_CANCELLATION_CPU_OVERUSE", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.DnmX2G);
obj[2] = XLargeIcon2.XLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
2026-07-29 08:29:29 +00:00
export const presentError = function presentError(intl) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
obj = { key: "ERROR", content: intl, IconComponent: XLargeIcon2.XLargeIcon, iconColor: "icon-feedback-critical" };
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentVoiceActivityDetectionError = function presentVoiceActivityDetectionError() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "MOBILE_ADVANCED_VOICE_ACTIVITY_CPU_OVERUSE", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.zz1Tft);
obj[2] = XLargeIcon2.XLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
2026-07-29 08:29:29 +00:00
export const roleIdCopied = function roleIdCopied(closure_2) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "ROLE_ID_COPIED-" + closure_2, content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { role: closure_2 };
2026-08-24 06:08:38 +00:00
obj[1] = intl.formatToPlainString(getSystemLocale.t.iOWpeB, obj);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const communityRequirementSatisfied = function communityRequirementSatisfied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "ENABLE_COMMUNITY_MODAL_REQUIREMENT_SATISFIED_TOOLTIP", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.PHjrpp);
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const communityAdminOnly = function communityAdminOnly() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "GUILD_SETTINGS_COMMUNITY_ADMINISTRATOR_ONLY", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["pjG+T3"]);
obj[2] = CircleInformationIcon.CircleInformationIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const unverifiedVoiceGate = function unverifiedVoiceGate(check) {
({ missingVerificationRole, verificationRole } = check);
if (check.notClaimed) {
2026-08-24 06:08:38 +00:00
const intl6 = getSystemLocale.intl;
let stringResult = intl6.string(getSystemLocale.t.IRxUlG);
2026-07-20 16:05:17 +00:00
} else if (tmp2) {
2026-08-24 06:08:38 +00:00
const intl5 = getSystemLocale.intl;
stringResult = intl5.string(getSystemLocale.t.vW8iUF);
2026-07-20 16:05:17 +00:00
} else if (tmp) {
2026-08-24 06:08:38 +00:00
const intl4 = getSystemLocale.intl;
stringResult = intl4.string(getSystemLocale.t.vdSOpz);
2026-07-20 16:05:17 +00:00
} else if (tmp4) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { min: null };
obj[0] = VerificationCriteria.MEMBER_AGE;
2026-08-24 06:08:38 +00:00
stringResult = intl3.formatToPlainString(getSystemLocale.t.v1ktYb, obj);
2026-07-20 16:05:17 +00:00
} else if (tmp3) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { min: null };
obj[0] = VerificationCriteria.ACCOUNT_AGE;
2026-08-24 06:08:38 +00:00
stringResult = intl2.formatToPlainString(getSystemLocale.t.sncw41, obj);
2026-07-20 16:05:17 +00:00
} else {
if (missingVerificationRole) {
missingVerificationRole = null != verificationRole;
}
stringResult = null;
if (missingVerificationRole) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { roleName: null };
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
obj[0] = "@" + verificationRole.name;
2026-08-24 06:08:38 +00:00
stringResult = intl.formatToPlainString(getSystemLocale.t.MZbCuG, obj);
2026-07-20 16:05:17 +00:00
}
}
if (null != stringResult) {
2026-08-24 06:08:38 +00:00
obj1 = { key: "UNVERIFIED_VOICE_GATE", content: null, IconComponent: null };
2026-07-29 08:29:29 +00:00
obj1[1] = stringResult;
2026-08-24 06:08:38 +00:00
obj1[2] = CircleInformationIcon.CircleInformationIcon;
dispatcherDefault.open(obj1);
const obj4 = dispatcherDefault;
2026-07-20 16:05:17 +00:00
}
};
export const transferOwnershipProtected = function transferOwnershipProtected() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TRANSFER_OWNERSHIP_PROTECTED_GUILD", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.wDkfrN);
obj[2] = CircleInformationIcon.CircleInformationIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
2026-07-29 08:29:29 +00:00
export const memberOrRoleRemovedToast = function memberOrRoleRemovedToast(closure_1) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "PRIVATE_CHANNEL_MEMBERS_REMOVED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { name: closure_1 };
2026-08-24 06:08:38 +00:00
obj[1] = intl.formatToPlainString(getSystemLocale.t.vJGtXc, obj);
obj[2] = TrashIcon.TrashIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
2026-07-23 10:11:24 +00:00
export const memberOrRoleAddedToast = function memberOrRoleAddedToast(c1, c0) {
if (c1 > 0) {
if (c0 > 0) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
let stringResult = intl3.string(getSystemLocale.t.fRD8wW);
2026-07-20 16:05:17 +00:00
}
if (null != stringResult) {
2026-07-29 08:29:29 +00:00
let obj = { key: "MEMBER_OR_ROLE_ADDED", content: null, IconComponent: null, iconColor: "status-positive" };
obj[1] = stringResult;
2026-08-24 06:08:38 +00:00
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
dispatcherDefault.open(obj);
const obj3 = dispatcherDefault;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if (c1 > 0) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { count: null };
obj[0] = c1;
2026-08-24 06:08:38 +00:00
stringResult = intl2.formatToPlainString(getSystemLocale.t["yM/8JE"], obj);
2026-07-23 10:11:24 +00:00
} else if (c0 > 0) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { count: null };
obj[0] = c0;
2026-08-24 06:08:38 +00:00
stringResult = intl.formatToPlainString(getSystemLocale.t.yvV5Ye, obj);
2026-07-20 16:05:17 +00:00
}
};
export const roleTemplateAppliedToast = function roleTemplateAppliedToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "ROLE_PERMISSION_TEMPLATE_SELECT_CONFIRMATION_TOAST", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.e6xHUV);
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const roleCreatedToast = function roleCreatedToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "ROLE_CREATED_TOAST", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.kubT4R);
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const roleCreateFailedToast = function roleCreateFailedToast() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "ROLE_CREATION_FAILED", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.hbr6Uj);
obj[2] = XLargeIcon2.XLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentFailedToast = function presentFailedToast(intl) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
obj = { key: "FAILED", content: intl, IconComponent: XLargeIcon2.XLargeIcon, iconColor: "icon-feedback-critical" };
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentCommandCopied = function presentCommandCopied() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TOAST_COMMAND_COPIED", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.U989ct);
obj[2] = LinkIcon.LinkIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentGuildMemberBio = function presentGuildMemberBio(guildName) {
2026-07-23 10:11:24 +00:00
const _require = arg1;
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "GUILD_IDENTITY_BIO_TOAST", content: null, icon: null };
const intl = _require(1236).intl;
2026-07-20 16:05:17 +00:00
obj = { guildName };
2026-07-29 08:29:29 +00:00
obj[1] = intl.formatToPlainString(_require(1236).t.pOy2tm, obj);
obj[2] = function icon() {
2026-07-23 10:11:24 +00:00
return closure_0;
2026-07-20 16:05:17 +00:00
};
obj.open(obj);
};
export const presentGuildMemberPronouns = function presentGuildMemberPronouns(guildName) {
2026-07-23 10:11:24 +00:00
const _require = arg1;
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "GUILD_IDENTITY_PRONOUNS_TOAST", content: null, icon: null };
const intl = _require(1236).intl;
2026-07-20 16:05:17 +00:00
obj = { guildName };
2026-07-29 08:29:29 +00:00
obj[1] = intl.formatToPlainString(_require(1236).t.gPVLS0, obj);
obj[2] = function icon() {
2026-07-23 10:11:24 +00:00
return closure_0;
2026-07-20 16:05:17 +00:00
};
obj.open(obj);
};
export const presentUserPronouns = function presentUserPronouns() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "USER_POPOUT_PRONOUNS", content: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["1w6drw"]);
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentCopiedToClipboard = function presentCopiedToClipboard() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
obj = { key: "COPIED_TEXT_" + v1.v4(), content: null, IconComponent: null };
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.mGZ66D);
obj[2] = CopyIcon.CopyIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentGuildRoleSubscriptionTrialTierMonthCost = function presentGuildRoleSubscriptionTrialTierMonthCost() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "GUILD_ROLE_SUBSCRIPTION_MANAGE_SUBSCRIPTION_PAGE_TRIAL_PRICE_INFO", content: null, IconComponent: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["/q6fpa"]);
obj[2] = CircleInformationIcon.CircleInformationIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const showVoiceRecordingFailed = function showVoiceRecordingFailed() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "VOICE_MESSAGES_RECORDING_FAILED", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.H03AqF);
obj[2] = XLargeIcon2.XLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const showMaxGroupMembers = function showMaxGroupMembers() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "GROUP_DM_INVITE_FULL_MAIN", content: null, IconComponent: null, iconColor: "icon-feedback-critical" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.OtTQDz);
obj[2] = XLargeIcon2.XLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const showTransferOwnershipSuccess = function showTransferOwnershipSuccess() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "TRANSFER_OWNERSHIP_SUCCESS", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["2Eyydu"]);
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const showSafetySuccess = function showSafetySuccess(BLOCK_SUCCESS, safetyToastTypeContent) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
obj = { key: BLOCK_SUCCESS, content: safetyToastTypeContent, IconComponent: CircleCheckIcon.CircleCheckIcon, iconColor: "status-positive" };
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const showVerificationSent = function showVerificationSent() {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { key: "VERIFICATION_RESENT", content: null, IconComponent: null, iconColor: "status-positive" };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.gI8IST);
obj[2] = CheckmarkLargeIcon.CheckmarkLargeIcon;
2026-07-20 16:05:17 +00:00
obj.open(obj);
};
export const presentTimestamp = function presentTimestamp(full) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
obj = { key: "MESSAGE_TIMESTAMP", content: full, IconComponent: ClockIcon.ClockIcon };
2026-07-20 16:05:17 +00:00
obj.open(obj);
};