This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+68
View File
@@ -0,0 +1,68 @@
// Metro module 15782 (f15783).
import { useState, useRef, useCallback } from "react";
import { View } from "react-native";
import { createStyles } from "../../../design/components/Styles/native/createStyles";
import Module712 from "../../../_bundle/Module712";
import { useToken } from "../../../design/tokens/native/useToken";
import { Icon } from "../../../design/void/native";
import { Text } from "../../../design/components/Text/native/Text";
let useStyles, ToastContent;
const ToastIcon = function ToastIcon(props) {
const { icon, IconComponent } = props;
let iconColor = props.iconColor;
const recolorLegacyIcon = props.recolorLegacyIcon;
if (iconColor == null) {
iconColor = "mobile-text-heading-primary";
}
const token = useToken(iconColor);
const props2 = recolorLegacyIcon ? {
color: token
} : {
disableColor: true
};
return IconComponent != null ? <IconComponent size="sm" color={token} /> : typeof icon === "function" ? <>
{icon()}
</> : icon != null ? <Icon resizeMode="contain" source={icon} {...props2} /> : null;
};
ToastContent = function ToastContent(props) {
const { content, onTextLayout } = props;
const styles = useStyles();
return typeof content === "function" ? <View style={styles.contentContainer}>
{content()}
</View> : <Text onTextLayout={onTextLayout} style={styles.contentContainer} lineClamp={3} variant="text-sm/semibold" color="mobile-text-heading-primary">{content}</Text>;
};
useStyles = createStyles({
container: {
flexDirection: "row",
alignItems: "center",
borderRadius: Module712.radii.xxl,
padding: Module712.space.PX_8,
paddingRight: Module712.space.PX_12,
backgroundColor: Module712.colors.MOBILE_TOAST_BACKGROUND_DEFAULT,
borderColor: Module712.colors.BORDER_SUBTLE,
borderWidth: 1,
...Module712.shadows.SHADOW_HIGH
},
multilineContainer: {
paddingLeft: Module712.space.PX_12
},
contentContainer: {
marginLeft: 8,
flexShrink: 1
}
});
export default function Toast(props) {
const { icon, iconColor, IconComponent, content, containerStyle, recolorLegacyIcon } = props;
const styles = useStyles();
const [state, setState] = useState(false);
const ref = useRef(false);
return <View style={[styles.container, state ? styles.multilineContainer : null, containerStyle]} accessibilityElementsHidden>
<ToastIcon icon={icon} iconColor={iconColor} IconComponent={IconComponent} recolorLegacyIcon={recolorLegacyIcon} />
<ToastContent content={content} onTextLayout={useCallback((a0) => {
if (!ref.current) {
ref.current = true;
setState(a0.nativeEvent.lines.length > 1);
}
}, [])} />
</View>;
};
@@ -0,0 +1,16 @@
// Metro module 3890 (f3891).
import Dispatcher from "../../../Dispatcher";
const r13 = {
open: (toastProps) => {
Dispatcher.wait(() => Dispatcher.dispatch({
type: "TOAST_OPEN",
toastProps
}));
},
close: () => {
Dispatcher.wait(() => Dispatcher.dispatch({
type: "TOAST_CLOSE"
}));
}
};
export default r13;
+207
View File
@@ -0,0 +1,207 @@
// Metro module 15780 (f15781).
import { useEffect, memo } from "react";
import AccessibilityStore from "../../a11y/AccessibilityStore";
import ToastStore from "./ToastStore";
import { createStyles } from "../../../design/components/Styles/native/createStyles";
import { TOAST_CONTAINER_SHADOW_COLOR } from "../../../design/migrations/native/LegacyTokens";
import * as _ReanimatedRexport from "../../reanimated/ReanimatedRexport";
import ReanimatedRexport, { useSharedValue, useAnimatedStyle } from "../../reanimated/ReanimatedRexport";
import useWindowDimensions_native from "../../screen/useWindowDimensions.native";
import { useMobileQuestDockHeight } from "../../quests/native/QuestHooks.native";
import useSafeAreaInsets_native from "../../safe_area/useSafeAreaInsets.native";
import { useStateFromStores, useStateFromStoresArray } from "../../../_bundle/Module589";
import { useIsScreenReaderEnabled } from "../../a11y/native/useIsScreenReaderEnabled.native";
import { useYouBarTotalHeight } from "../../main_tabs_v2/native/you_bar/hooks/useYouBarTotalHeight";
import * as _spring from "../../../design/animation/reanimated/spring/spring";
import * as _TransitionGroup from "../../../design/components/TransitionGroup/TransitionGroup";
import { TransitionGroup } from "../../../design/components/TransitionGroup/TransitionGroup";
import { AccessibilityAnnouncer } from "../../../_bundle/Module3902";
import Toast from "./Toast";
import { NonExpandingOverlayView } from "../../../design/void/native";
import ToastActionCreators from "./ToastActionCreators";
let useStyles, c11276_8, ANIMATION_STATE_INPUT, OPACITY_SPRING_PHYSICS, TOAST_SPRING_PHYSICS, __initData, __initData2, renderItem, getItemKey, wrapChildren;
const AnimatedToast = function AnimatedToast(props) {
let r95;
let content, c22437_10, position, sharedValue2, youBarTotalHeight;
const toast = props.toast;
const { key, ...props2 } = toast;
let c22437_0 = props2;
const { state, cleanUp } = props;
content = void 0;
c22437_10 = void 0;
position = void 0;
sharedValue2 = void 0;
youBarTotalHeight = void 0;
const styles = useStyles();
const sharedValue = useSharedValue(0);
const windowDimensions_native = useWindowDimensions_native();
const { width, height } = windowDimensions_native;
const mobileQuestDockHeight = useMobileQuestDockHeight();
const top = useSafeAreaInsets_native().top;
const stateFromStores = useStateFromStores([AccessibilityStore], () => {
let r4 = AccessibilityStore.useReducedMotion || c22437_0.disableAnimations;
if (r4 == null) {
r4 = false;
}
return r4;
});
content = props2.content;
const isScreenReaderEnabled = useIsScreenReaderEnabled();
const r2 = content != null && typeof content === "string";
c22437_10 = r2;
const position2 = props2.position;
position = position2 !== void 0 ? position2 : "top";
const r58 = stateFromStores ? c11276_8.END : c11276_8.START;
L10: {
sharedValue2 = useSharedValue(r58);
youBarTotalHeight = useYouBarTotalHeight(8);
const r66 = function() {
const r2 = position === "top";
const r11 = r2 ? top + 8 : height - sharedValue.get() - mobileQuestDockHeight - 8 - youBarTotalHeight;
const r43 = _ReanimatedRexport.interpolate(sharedValue2.get(), ANIMATION_STATE_INPUT, [r2 ? -30 : height - mobileQuestDockHeight - sharedValue.get() - youBarTotalHeight, r11]);
const opacity = stateFromStores ? sharedValue2.get() : _spring.withSpring(sharedValue2.get(), OPACITY_SPRING_PHYSICS);
let translateY = r43;
if (!stateFromStores) {
const t = function t(a0) {
if (a0 ? state === _TransitionGroup.TransitionStates.YEETED : a0) {
_ReanimatedRexport.runOnJS(cleanUp)();
}
};
t.__closure = {
state,
TransitionStates: _TransitionGroup.TransitionStates,
runOnJS: _ReanimatedRexport.runOnJS,
cleanUp
};
t.__workletHash = 633151838569;
t.__initData = __initData2;
translateY = _spring.withSpring(r43, TOAST_SPRING_PHYSICS, "respect-motion-settings", t);
}
return {
opacity,
transform: [{
translateY
}],
maxWidth: width - 32
};
};
r66.__closure = {
position,
safeAreaTop: top,
CONTAINER_DISTANCE_VERTICAL: 8,
screenHeight: height,
toastHeight: sharedValue,
bottomTabsHeight: mobileQuestDockHeight,
youBarHeight: youBarTotalHeight,
interpolate: _ReanimatedRexport.interpolate,
animationState: sharedValue2,
ANIMATION_STATE_INPUT,
CONTAINER_TOP_POSITION_START: -30,
isReducedMotion: stateFromStores,
withSpring: _spring.withSpring,
OPACITY_SPRING_PHYSICS,
TOAST_SPRING_PHYSICS,
state,
TransitionStates: _TransitionGroup.TransitionStates,
runOnJS: _ReanimatedRexport.runOnJS,
cleanUp,
screenWidth: width,
CONTAINER_DISTANCE_SIDES: 16
};
r66.__workletHash = 3455640999355;
r66.__initData = __initData;
const animatedStyle = useAnimatedStyle(r66);
useEffect(() => {
if (state === _TransitionGroup.TransitionStates.YEETED) {
sharedValue2.set(c11276_8.START);
if (stateFromStores) {
cleanUp();
}
} else {
sharedValue2.set(c11276_8.END);
}
}, [state, sharedValue2, stateFromStores, cleanUp]);
useEffect(() => {
if (c22437_10) {
AccessibilityAnnouncer.announce(content);
}
}, [r2, content]);
if (r2) {
r95 = null;
if (isScreenReaderEnabled) {
break L10;
}
}
r95 = <ReanimatedRexport.View pointerEvents="none" style={[styles.container, animatedStyle]} onLayout={(event) => {
sharedValue.set(event.nativeEvent.layout.height);
}}>
<Toast key={key} {...props2} />
</ReanimatedRexport.View>;
}
return r95;
};
renderItem = function renderItem(a0, a1, a2, a3) {
return <AnimatedToast key={a0} toast={a1} state={a2} cleanUp={a3} />;
};
getItemKey = function getItemKey(a0) {
return a0.key;
};
wrapChildren = function wrapChildren(a0) {
return <NonExpandingOverlayView>
{a0}
</NonExpandingOverlayView>;
};
useStyles = createStyles({
container: {
position: "absolute",
alignSelf: "center",
flexDirection: "row",
justifyContent: "center",
shadowColor: TOAST_CONTAINER_SHADOW_COLOR
}
});
c11276_8 = {
START: 0,
0: "START",
END: 1,
1: "END"
};
ANIMATION_STATE_INPUT = [c11276_8.START, c11276_8.END];
OPACITY_SPRING_PHYSICS = {
mass: 0.1,
damping: 10,
stiffness: 100,
overshootClamping: true
};
TOAST_SPRING_PHYSICS = {
mass: 0.35,
damping: 15,
stiffness: 350,
restDisplacementThreshold: 0.1,
restSpeedThreshold: 0.1
};
__initData = {
code: "function ToastContainerTsx1(){const{position,safeAreaTop,CONTAINER_DISTANCE_VERTICAL,screenHeight,toastHeight,bottomTabsHeight,youBarHeight,interpolate,animationState,ANIMATION_STATE_INPUT,CONTAINER_TOP_POSITION_START,isReducedMotion,withSpring,OPACITY_SPRING_PHYSICS,TOAST_SPRING_PHYSICS,state,TransitionStates,runOnJS,cleanUp,screenWidth,CONTAINER_DISTANCE_SIDES}=this.__closure;const verticalPositionEnd=position==='top'?safeAreaTop+CONTAINER_DISTANCE_VERTICAL:screenHeight-toastHeight.get()-bottomTabsHeight-CONTAINER_DISTANCE_VERTICAL-youBarHeight;const translateY=interpolate(animationState.get(),ANIMATION_STATE_INPUT,[position==='top'?CONTAINER_TOP_POSITION_START:screenHeight-bottomTabsHeight-toastHeight.get()-youBarHeight,verticalPositionEnd]);return{opacity:!isReducedMotion?withSpring(animationState.get(),OPACITY_SPRING_PHYSICS):animationState.get(),transform:[{translateY:!isReducedMotion?withSpring(translateY,TOAST_SPRING_PHYSICS,'respect-motion-settings',function(finished){if(finished&&state===TransitionStates.YEETED){runOnJS(cleanUp)();}}):translateY}],maxWidth:screenWidth-CONTAINER_DISTANCE_SIDES*2};}"
};
__initData2 = {
code: "function ToastContainerTsx2(finished){const{state,TransitionStates,runOnJS,cleanUp}=this.__closure;if(finished&&state===TransitionStates.YEETED){runOnJS(cleanUp)();}}"
};
const r49 = memo(function() {
const stateFromStoresArray = useStateFromStoresArray([ToastStore], () => {
const content2 = ToastStore.getContent();
return content2 == null ? [] : [content2];
});
useEffect(() => {
if (stateFromStoresArray.length !== 0) {
const r5 = setTimeout;
let toastDurationMs = stateFromStoresArray[0].toastDurationMs;
if (toastDurationMs == null) {
toastDurationMs = 2000;
}
let c28154_0 = r5(() => ToastActionCreators.close(), toastDurationMs);
return () => clearTimeout(c28154_0);
}
}, [stateFromStoresArray]);
return <TransitionGroup items={stateFromStoresArray} renderItem={renderItem} getItemKey={getItemKey} wrapChildren={wrapChildren} />;
});
export default r49;
+23
View File
@@ -0,0 +1,23 @@
// Metro module 15781 (f15782).
import Module589 from "../../../_bundle/Module589";
import Dispatcher from "../../../Dispatcher";
let ToastStore;
const toastProps = null;
const ToastStore2 = class ToastStore extends Module589.Store {
getContent = () => toastProps;
};
ToastStore2.prototype;
ToastStore = ToastStore2;
ToastStore2.displayName = "ToastStore";
const toastStore = new ToastStore(Dispatcher, {
TOAST_OPEN: function handleOpen({ toastProps: toastProps2 }) {
if (toastProps?.key === toastProps2.key) {
return false;
}
toastProps = toastProps2;
},
TOAST_CLOSE: function handleClose() {
toastProps = null;
}
});
export default toastStore;
+399
View File
@@ -0,0 +1,399 @@
// Metro module 3889 (f3890).
import { VerificationCriteria } from "../../../Constants";
import ToastActionCreators from "./ToastActionCreators";
import { intl, t } from "../../../intl/index.native";
import { FriendsIcon } from "../../../design/components/Icon/native/redesign/generated/FriendsIcon";
import { UserPlusIcon } from "../../../design/components/Icon/native/redesign/generated/UserPlusIcon";
import { UserPlatformIcon } from "../../../design/components/Icon/native/redesign/generated/UserPlatformIcon";
import { UserMinusIcon } from "../../../design/components/Icon/native/redesign/generated/UserMinusIcon";
import { LinkIcon } from "../../../design/components/Icon/native/redesign/generated/LinkIcon";
import { SendMessageIcon } from "../../../design/components/Icon/native/redesign/generated/SendMessageIcon";
import { CopyIcon } from "../../../design/components/Icon/native/redesign/generated/CopyIcon";
import { DownloadIcon } from "../../../design/components/Icon/native/redesign/generated/DownloadIcon";
import { CheckmarkLargeIcon } from "../../../design/components/Icon/native/redesign/generated/CheckmarkLargeIcon";
import AvatarUtils from "../../../utils/AvatarUtils";
import { XLargeIcon } from "../../../design/components/Icon/native/redesign/generated/XLargeIcon";
import { CircleInformationIcon } from "../../../design/components/Icon/native/redesign/generated/CircleInformationIcon";
import { TrashIcon } from "../../../design/components/Icon/native/redesign/generated/TrashIcon";
import { v4 } from "../../../_bundle/Module514";
import { CircleCheckIcon } from "../../../design/components/Icon/native/redesign/generated/CircleCheckIcon";
import { ClockIcon } from "../../../design/components/Icon/native/redesign/generated/ClockIcon";
export function presentAddedFriendToast() {
ToastActionCreators.open({
key: "TOAST_ADD_FRIEND",
content: intl.string(t.Fn5bwO),
iconColor: "status-positive",
IconComponent: FriendsIcon
});
}
export function presentFriendRequestAcceptedToast(a0) {
ToastActionCreators.open({
key: "TOAST_FRIEND_REQUEST_ACCEPTED",
content: a0 == null ? intl.string(t.UhJna5) : intl.formatToPlainString(t.b3eoD4, {
username: a0.username
}),
IconComponent: UserPlusIcon,
iconColor: "status-positive"
});
}
export function presentGameFriendRequestAcceptedToast() {
ToastActionCreators.open({
key: "TOAST_GAME_FRIEND_REQUEST_ACCEPTED",
content: intl.string(t.xjNLeZ),
IconComponent: UserPlatformIcon,
iconColor: "status-positive"
});
}
export function presentFriendRequestIgnoredToast() {
ToastActionCreators.open({
key: "TOAST_FRIEND_REQUEST_IGNORED",
content: intl.string(t.YlavlY),
IconComponent: UserMinusIcon,
iconColor: "icon-feedback-critical"
});
}
export function presentGameFriendRequestIgnoredToast() {
ToastActionCreators.open({
key: "TOAST_GAME_FRIEND_REQUEST_IGNORED",
content: intl.string(t.P6BzJP),
IconComponent: UserMinusIcon,
iconColor: "icon-feedback-critical"
});
}
export function presentLinkCopied() {
ToastActionCreators.open({
key: "LINK_COPIED",
content: intl.string(t["+5kSoW"]),
IconComponent: LinkIcon
});
}
export function presentInviteSent() {
ToastActionCreators.open({
key: "INVITE_SENT",
content: intl.string(t.sVwWdV),
IconComponent: SendMessageIcon
});
}
export function presentIdCopied() {
ToastActionCreators.open({
key: "TOAST_ID_COPIED",
content: intl.string(t.eNjAah),
IconComponent: CopyIcon
});
}
export function presentImageSaved() {
ToastActionCreators.open({
key: "TOAST_IMAGE_SAVED",
content: intl.string(t.cqpdJW),
IconComponent: DownloadIcon
});
}
export function presentVideoSaved() {
ToastActionCreators.open({
key: "TOAST_VIDEO_SAVED",
content: intl.string(t["cEK+1g"]),
IconComponent: DownloadIcon
});
}
export function presentGifSaved() {
ToastActionCreators.open({
key: "TOAST_GIF_SAVED",
content: intl.string(t.LktEtN),
IconComponent: DownloadIcon
});
}
export function presentMessageCopied() {
ToastActionCreators.open({
key: "TOAST_MESSAGE_COPIED",
content: intl.string(t.R3o53R),
IconComponent: CopyIcon
});
}
export function presentMessageIdCopied() {
ToastActionCreators.open({
key: "TOAST_MESSAGE_ID_COPIED",
content: intl.string(t.svRBmK),
IconComponent: CopyIcon
});
}
export function presentPostIdCopied() {
ToastActionCreators.open({
key: "TOAST_FORUM_POST_ID_COPIED",
content: intl.string(t.aBQ2RP),
IconComponent: CopyIcon
});
}
export function presentUsernameCopied() {
ToastActionCreators.open({
key: "TOAST_USERNAME_SAVED",
content: intl.string(t["FHVR/+"]),
IconComponent: CopyIcon
});
}
export function presentFeedbackSent() {
ToastActionCreators.open({
key: "TOAST_FEEDBACK_SENT",
content: intl.string(t.xpiDtu),
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
export function presentEmoji(a0) {
ToastActionCreators.open({
key: `PRESENT_EMOJI-${a0.id}`,
content: `:${a0.name}:`,
icon: {
uri: AvatarUtils.getEmojiURL({
id: a0.id,
animated: a0.animated,
size: 48
})
}
});
}
export function presentNoiseCancellation(a0) {
ToastActionCreators.open({
key: "NOISE_CANCELLATION_TOGGLE",
content: a0 ? intl.string(t["Q+fhfv"]) : intl.string(t.hEMHnF),
IconComponent: a0 ? CheckmarkLargeIcon : XLargeIcon,
iconColor: a0 ? "status-positive" : "icon-feedback-critical"
});
}
export function presentNoiseCancellationError() {
ToastActionCreators.open({
key: "MOBILE_NOISE_CANCELLATION_CPU_OVERUSE",
content: intl.string(t.DnmX2G),
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function presentError(a0) {
ToastActionCreators.open({
key: "ERROR",
content: a0,
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function presentVoiceActivityDetectionError() {
ToastActionCreators.open({
key: "MOBILE_ADVANCED_VOICE_ACTIVITY_CPU_OVERUSE",
content: intl.string(t.zz1Tft),
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function roleIdCopied(a0) {
ToastActionCreators.open({
key: `ROLE_ID_COPIED-${a0}`,
content: intl.formatToPlainString(t.iOWpeB, {
role: a0
}),
IconComponent: CopyIcon
});
}
export function communityRequirementSatisfied() {
ToastActionCreators.open({
key: "ENABLE_COMMUNITY_MODAL_REQUIREMENT_SATISFIED_TOOLTIP",
content: intl.string(t.PHjrpp),
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
export function communityAdminOnly() {
ToastActionCreators.open({
key: "GUILD_SETTINGS_COMMUNITY_ADMINISTRATOR_ONLY",
content: intl.string(t["pjG+T3"]),
IconComponent: CircleInformationIcon
});
}
export function unverifiedVoiceGate(a0) {
let content;
const { notClaimed, notEmailVerified, notPhoneVerified, newAccount, newMember } = a0;
let missingVerificationRole = a0.missingVerificationRole;
const verificationRole = a0.verificationRole;
if (notClaimed) {
content = intl.string(t.IRxUlG);
} else if (notPhoneVerified) {
content = intl.string(t.vW8iUF);
} else if (notEmailVerified) {
content = intl.string(t.vdSOpz);
} else if (newMember) {
content = intl.formatToPlainString(t.v1ktYb, {
min: VerificationCriteria.MEMBER_AGE
});
} else if (newAccount) {
content = intl.formatToPlainString(t.sncw41, {
min: VerificationCriteria.ACCOUNT_AGE
});
} else {
if (missingVerificationRole) {
missingVerificationRole = verificationRole != null;
}
content = missingVerificationRole ? intl.formatToPlainString(t.MZbCuG, {
roleName: `@${verificationRole.name}`
}) : null;
}
if (content != null) {
ToastActionCreators.open({
key: "UNVERIFIED_VOICE_GATE",
content,
IconComponent: CircleInformationIcon
});
}
}
export function transferOwnershipProtected() {
ToastActionCreators.open({
key: "TRANSFER_OWNERSHIP_PROTECTED_GUILD",
content: intl.string(t.wDkfrN),
IconComponent: CircleInformationIcon
});
}
export function memberOrRoleRemovedToast(a0) {
ToastActionCreators.open({
key: "PRIVATE_CHANNEL_MEMBERS_REMOVED",
content: intl.formatToPlainString(t.vJGtXc, {
name: a0
}),
IconComponent: TrashIcon
});
}
export function memberOrRoleAddedToast(a0, a1) {
const content = a0 > 0 && a1 > 0 ? intl.string(t.fRD8wW) : a0 > 0 ? intl.formatToPlainString(t["yM/8JE"], {
count: a0
}) : a1 > 0 ? intl.formatToPlainString(t.yvV5Ye, {
count: a1
}) : void 0;
if (content != null) {
ToastActionCreators.open({
key: "MEMBER_OR_ROLE_ADDED",
content,
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
}
export function roleTemplateAppliedToast() {
ToastActionCreators.open({
key: "ROLE_PERMISSION_TEMPLATE_SELECT_CONFIRMATION_TOAST",
content: intl.string(t.e6xHUV),
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
export function roleCreatedToast() {
ToastActionCreators.open({
key: "ROLE_CREATED_TOAST",
content: intl.string(t.kubT4R),
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
export function roleCreateFailedToast() {
ToastActionCreators.open({
key: "ROLE_CREATION_FAILED",
content: intl.string(t.hbr6Uj),
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function presentFailedToast(a0) {
ToastActionCreators.open({
key: "FAILED",
content: a0,
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function presentCommandCopied() {
ToastActionCreators.open({
key: "TOAST_COMMAND_COPIED",
content: intl.string(t.U989ct),
IconComponent: LinkIcon
});
}
export function presentGuildMemberBio(a0, c13717_0) {
ToastActionCreators.open({
key: "GUILD_IDENTITY_BIO_TOAST",
content: intl.formatToPlainString(t.pOy2tm, {
guildName: a0
}),
icon: () => c13717_0
});
}
export function presentGuildMemberPronouns(a0, c13718_0) {
ToastActionCreators.open({
key: "GUILD_IDENTITY_PRONOUNS_TOAST",
content: intl.formatToPlainString(t.gPVLS0, {
guildName: a0
}),
icon: () => c13718_0
});
}
export function presentUserPronouns() {
ToastActionCreators.open({
key: "USER_POPOUT_PRONOUNS",
content: intl.string(t["1w6drw"])
});
}
export function presentCopiedToClipboard() {
ToastActionCreators.open({
key: `COPIED_TEXT_${v4()}`,
content: intl.string(t.mGZ66D),
IconComponent: CopyIcon
});
}
export function presentGuildRoleSubscriptionTrialTierMonthCost() {
ToastActionCreators.open({
key: "GUILD_ROLE_SUBSCRIPTION_MANAGE_SUBSCRIPTION_PAGE_TRIAL_PRICE_INFO",
content: intl.string(t["/q6fpa"]),
IconComponent: CircleInformationIcon
});
}
export function showVoiceRecordingFailed() {
ToastActionCreators.open({
key: "VOICE_MESSAGES_RECORDING_FAILED",
content: intl.string(t.H03AqF),
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function showMaxGroupMembers() {
ToastActionCreators.open({
key: "GROUP_DM_INVITE_FULL_MAIN",
content: intl.string(t.OtTQDz),
IconComponent: XLargeIcon,
iconColor: "icon-feedback-critical"
});
}
export function showTransferOwnershipSuccess() {
ToastActionCreators.open({
key: "TRANSFER_OWNERSHIP_SUCCESS",
content: intl.string(t["2Eyydu"]),
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
export function showSafetySuccess(a0, a1) {
ToastActionCreators.open({
key: a0,
content: a1,
IconComponent: CircleCheckIcon,
iconColor: "status-positive"
});
}
export function showVerificationSent() {
ToastActionCreators.open({
key: "VERIFICATION_RESENT",
content: intl.string(t.gI8IST),
IconComponent: CheckmarkLargeIcon,
iconColor: "status-positive"
});
}
export function presentTimestamp(a0) {
ToastActionCreators.open({
key: "MESSAGE_TIMESTAMP",
content: a0,
IconComponent: ClockIcon
});
}