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

441 lines
22 KiB
TypeScript
Raw Normal View History

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