Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

+120
View File
@@ -0,0 +1,120 @@
/* Metro module 15309; source: modules/toast/native/Toast.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 3860, 1305, 4573, 2] */
function _fun117044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15506:6, offset: 0x024a145d, size: 470 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.Fragment;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'flexDirection': 'row', 'alignItems': 'center'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.padding = PX_8;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.paddingRight = PX_12;
const MOBILE_TOAST_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TOAST_BACKGROUND_DEFAULT;
object4.backgroundColor = MOBILE_TOAST_BACKGROUND_DEFAULT;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderColor = BORDER_SUBTLE;
object4.borderWidth = 1;
const SHADOW_HIGH = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_HIGH;
copyDataProperties(object4, SHADOW_HIGH, undefined);
object3.container = object4;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.multilineContainer = {paddingLeft: PX_12};
object3.contentContainer = {'marginLeft': 8, 'flexShrink': 1};
const env0_8 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/toast/native/Toast.tsx');
exports.default = Toast_117047;
}
function ToastIcon({icon, IconComponent, iconColor, recolorLegacyIcon}) { // fn#117045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15506:589, offset: 0x024a1633, size: 240 bytes, params: 2, frame: 20
const value4 = (require(3860) /* metro dependency 3860: useToken */).useToken(iconColor ?? 'mobile-text-heading-primary');
const object2 = {};
if (recolorLegacyIcon) {
object2.color = value4;
} else {
object2.disableColor = true;
}
if (IconComponent != null) {
return <IconComponent size="sm" color={value4} />;
} else if (typeof icon === 'function') {
return (
<>
{icon()}
</>
);
} else if (icon != null) {
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
return (
<Icon
resizeMode="contain"
source={icon}
{...object2}
/>
);
} else {
return null;
}
}
function ToastContent({content, onTextLayout}) { // fn#117046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15506:909, offset: 0x024a1723, size: 147 bytes, params: 2, frame: 18
const styles = useStyles();
if (typeof content === 'function') {
return (
<View style={styles.contentContainer}>
{content()}
</View>
);
} else {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
onTextLayout={onTextLayout}
style={styles.contentContainer}
lineClamp={3}
variant="text-sm/semibold"
color="mobile-text-heading-primary"
>
{content}
</Text>
);
}
}
function Toast_117047({icon, iconColor, IconComponent, content, containerStyle, recolorLegacyIcon}) { // fn#117047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15506:1260, offset: 0x024a17b6, size: 269 bytes, params: 2, frame: 25
const styles = useStyles();
const binding = env0_3;
const [property, env0_0] = env0_2(binding.useState(false), 2);
const env0_1 = binding.useRef(false);
return (
<View
style={[styles.container, property ? styles.multilineContainer : null, containerStyle]}
accessibilityElementsHidden
>
<ToastIcon
icon={icon}
iconColor={iconColor}
IconComponent={IconComponent}
recolorLegacyIcon={recolorLegacyIcon}
/>
<ToastContent content={content} onTextLayout={binding.useCallback(_fun117048, [])} />
</View>
);
}
function _fun117048(a0) { // fn#117048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15506:1442, offset: 0x024a18c3, size: 69 bytes, params: 2, frame: 11
if (!env0_1.current) {
env0_1.current = true;
env0_0(a0.nativeEvent.lines.length > 1);
}
}
@@ -0,0 +1,30 @@
/* Metro module 3857; source: modules/toast/native/ToastActionCreators.tsx; dependencies: [694, 2] */
function _fun31963(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3996:6, offset: 0x0100872d, size: 114 bytes, params: 8, frame: 17
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {open: open_31964, close: close_31966};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/toast/native/ToastActionCreators.tsx');
exports.default = object2;
}
function open_31964(a0) { // fn#31964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3996:99, offset: 0x0100879f, size: 51 bytes, params: 2, frame: 12
const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun31965);
}
function close_31966() { // fn#31966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3996:179, offset: 0x0100880e, size: 44 bytes, params: 1, frame: 12
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun31967);
}
function _fun31965() { // fn#31965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3996:121, offset: 0x010087d2, size: 60 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TOAST_OPEN',
toastProps: env0_0});
}
function _fun31967() { // fn#31967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3996:201, offset: 0x0100883a, size: 48 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TOAST_CLOSE'});
}
@@ -0,0 +1,277 @@
/* Metro module 15307; source: modules/toast/native/ToastContainer.tsx; dependencies: [31, 4502, 15308, 7553, 33, 4501, 6235, 4017, 1478, 13574, 1585, 566, 4559, 4577, 4508, 3869, 15309, 1305, 3857, 2] */
function _fun117019(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:6, offset: 0x024a07e5, size: 445 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const getItemKey_117028 = function(a0) {
return a0.key;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const toastStore = importDefault(15308) /* metro dependency 15308: ToastStore */;
const env0_6 = (require(7553) /* metro dependency 7553: YouBarConstants */).useYouBarTotalHeight;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const TOAST_CONTAINER_SHADOW_COLOR = (require(6235) /* metro dependency 6235: LegacyTokens */).TOAST_CONTAINER_SHADOW_COLOR;
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{container: {'position': 'absolute',
'alignSelf': 'center', 'flexDirection': 'row', 'justifyContent': 'center',
shadowColor: TOAST_CONTAINER_SHADOW_COLOR}}]);
object2 = {START: 0};
object2[0] = 'START';
object2.END = 1;
object2[1] = 'END';
const START = object2.START;
const items2 = [START];
const END = object2.END;
items2[1] = END;
const env0_11 = {'mass': 0.1, 'damping': 10, 'stiffness': 100, 'overshootClamping': true};
const env0_12 = {'mass': 0.35, 'damping': 15, 'stiffness': 350, 'restDisplacementThreshold': 0.1,
'restSpeedThreshold': 0.1};
object2 = {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};}"};
object2 = {code: 'function ToastContainerTsx2(finished){const{state,TransitionStates,runOnJS,cleanUp}=this.__closure;if(finished&&state===TransitionStates.YEETED){runOnJS(cleanUp)();}}'};
value = value.memo(_fun117030);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/toast/native/ToastContainer.tsx');
exports.default = value;
}
function AnimatedToast({toast, state, cleanUp}) { // fn#117020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:1889, offset: 0x024a09a2, size: 869 bytes, params: 2, frame: 39
var object2;
var r28;
var r0;
var View;
const key = toast.key;
let value = null;
const value2 = Object.create(value);
value2.key = 0;
const value3 = copyDataProperties({}, toast, value2, r28);
const styles = useStyles();
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useSharedValue = reanimatedRexportModule.useSharedValue;
const value5 = Reflect.apply(useSharedValue, reanimatedRexportModule, [0]);
const env0_3 = value5;
const {width, height} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
const value7 = (require(13574) /* metro dependency 13574: useTabsVisible */).useMainTabsHeight();
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], _fun117021);
const content = value3.content;
const env0_9 = content;
const value9 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
const r3 = value != content && typeof content === 'string';
const env0_10 = r3;
const position = value3.position;
r28 = position === undefined ? 'top' : position;
const env0_11 = r28;
const moduleValue5 = reanimatedRexportModule;
useSharedValue = moduleValue5.useSharedValue;
const binding = env0_9;
const value13 = Reflect.apply(useSharedValue, moduleValue5, [value8 ? binding.END : binding.START]);
const env0_12 = value13;
const value14 = useYouBarTotalHeight(8);
const env0_13 = value14;
const moduleValue6 = reanimatedRexportModule;
const useAnimatedStyle = moduleValue6.useAnimatedStyle;
const closure = AnimatedToastN;
object2 = {position: r28, safeAreaTop: top, CONTAINER_DISTANCE_VERTICAL: 8, screenHeight: height,
toastHeight: value5, bottomTabsHeight: value7, youBarHeight: value14};
object2.interpolate = reanimatedRexportModule.interpolate;
object2.animationState = value13;
object2.ANIMATION_STATE_INPUT = env0_10;
object2.CONTAINER_TOP_POSITION_START = -30;
object2.isReducedMotion = value8;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.OPACITY_SPRING_PHYSICS = env0_11;
object2.TOAST_SPRING_PHYSICS = env0_12;
object2.state = state;
const TransitionStates = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates;
object2.TransitionStates = TransitionStates;
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.cleanUp = cleanUp;
object2.screenWidth = width;
object2.CONTAINER_DISTANCE_SIDES = 16;
closure.__closure = object2;
closure.__workletHash = 3455640999355;
closure.__initData = env0_13;
const value15 = Reflect.apply(useAnimatedStyle, moduleValue6, [closure]);
env0_3.useEffect(_fun117024, [state, value13, value8, cleanUp]);
env0_3.useEffect(_fun117025, [r3, content]);
if (r3) {
if (value9) {
r0 = value;
} else {
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
var viewProps = {pointerEvents: 'none', style: [styles.container, value15], onLayout: onLayout_117026};
value = importDefault(15309) /* metro dependency 15309: Toast */;
value = <View {...viewProps}>{((Component) => <Component {...value3} key={key} />)(value)}</View>;
r0 = value;
}
} else {
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
var viewProps = {pointerEvents: 'none', style: [styles.container, value15], onLayout: onLayout_117026};
value = importDefault(15309) /* metro dependency 15309: Toast */;
value = <View {...viewProps}>{((Component) => <Component {...value3} key={key} />)(value)}</View>;
r0 = value;
}
return r0;
}
function renderItem_117027(a0, a1, a2, a3) { // fn#117027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3711, offset: 0x024a1046, size: 50 bytes, params: 5, frame: 15
return (
<AnimatedToast
toast={a1}
state={a2}
cleanUp={a3}
key={a0}
/>
);
}
function wrapChildren(a0) { // fn#117029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3830, offset: 0x024a1078, size: 52 bytes, params: 2, frame: 14
const NonExpandingOverlayView = (require(1305) /* metro dependency 1305: native */).NonExpandingOverlayView;
return (
<NonExpandingOverlayView>
{a0}
</NonExpandingOverlayView>
);
}
function _fun117030() { // fn#117030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3925, offset: 0x024a10ac, size: 156 bytes, params: 1, frame: 19
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ToastStore], _fun117031);
env0_3.useEffect(_fun117032, [value2]);
const TransitionGroup = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionGroup;
return (
<TransitionGroup
items={value2}
renderItem={renderItem_117027}
getItemKey={getItemKey_117028}
wrapChildren={wrapChildren}
/>
);
}
function _fun117021() { // fn#117021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:2107, offset: 0x024a0d07, size: 43 bytes, params: 1, frame: 3
const value = environment.__proto__;
const useReducedMotion = AccessibilityStore.useReducedMotion;
const r1 = useReducedMotion || env0_0.disableAnimations;
return r1 != null && r1;
}
function AnimatedToastN() { // fn#117022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:2375, owner: AnimatedToast.N, offset: 0x024a0d32, size: 465 bytes, params: 1, frame: 27
var object4;
var r2;
var moduleValue2;
var withSpring;
var moduleValue3;
var closure;
var object2;
const r7 = env0_11 === 'top' ? top + 8 : height - env0_3.get() - env0_6 - 8 - env0_13;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const interpolate = reanimatedRexportModule.interpolate;
let binding = env0_12;
const value12 = Reflect.apply(interpolate, reanimatedRexportModule, [binding.get(), env1_10,
[env0_11 === 'top' ? -30 : height - env0_6 - env0_3.get() - env0_13, r7]]);
object4 = {};
if (env0_8) {
r2 = env0_12.get();
} else {
moduleValue2 = require(4577) /* metro dependency 4577: spring */;
r2 = moduleValue2.withSpring(env0_12.get(), env1_11);
}
object4.opacity = r2;
if (env0_8) {
r2 = value12;
} else {
moduleValue3 = require(4577) /* metro dependency 4577: spring */;
withSpring = moduleValue3.withSpring;
binding = env1_12;
closure = NT;
object2 = {};
object2.state = state;
object2.TransitionStates = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates;
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.cleanUp = cleanUp;
closure.__closure = object2;
closure.__workletHash = 633151838569;
closure.__initData = env1_14;
r2 = Reflect.apply(withSpring, moduleValue3, [value12, binding, 'respect-motion-settings', closure]);
}
object4.transform = [{translateY: r2}];
object4.maxWidth = width - 32;
return object4;
}
function _fun117024() { // fn#117024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3395, offset: 0x024a0f6e, size: 115 bytes, params: 1, frame: 14
var binding;
const stateBinding = state;
const TransitionStates = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates;
const YEETED = TransitionStates.YEETED;
if (stateBinding === YEETED) {
binding = env0_12;
binding.set(env1_9.START);
if (env0_8) {
cleanUp();
}
} else {
binding = env0_12;
binding.set(env1_9.END);
}
}
function _fun117025() { // fn#117025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3500, offset: 0x024a0fe1, size: 60 bytes, params: 1, frame: 12
var value2;
var AccessibilityAnnouncer;
if (env0_10) {
value2 = environment.__proto__;
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(content);
}
}
function AnimatedToastOnLayout({nativeEvent}) { // fn#117026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3639, owner: AnimatedToast.onLayout, offset: 0x024a101d, size: 41 bytes, params: 2, frame: 11
const binding = env0_3;
binding.set(nativeEvent.layout.height);
}
function _fun117031() { // fn#117031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:3980, offset: 0x024a1148, size: 39 bytes, params: 1, frame: 9
let value = environment.__proto__;
value = ToastStore.getContent();
return value == null ? [] : [value];
}
function _fun117032() { // fn#117032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:4051, offset: 0x024a116f, size: 92 bytes, params: 1, frame: 14
if (env0_0Binding.length !== 0) {
var env0_0Binding = global.setTimeout(_fun117033, env0_0[0].toastDurationMs ?? 2000);
return _fun117034;
}
}
function NT(a0) { // fn#117023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:2625, owner: AnimatedToast.N.t, offset: 0x024a0f03, size: 107 bytes, params: 2, frame: 13
var r0;
var stateBinding;
var runOnJS;
var value2;
let value = a0;
if (value) {
value = environment.__proto__;
stateBinding = state;
value = environment.__proto__.__proto__;
value = stateBinding === (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates.YEETED;
r0 = value;
} else {
r0 = value;
}
if (r0) {
value = environment.__proto__.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = value.runOnJS;
value2 = environment.__proto__;
Reflect.apply(runOnJS, value, [cleanUp])();
}
}
function _fun117033() { // fn#117033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15504:4097, offset: 0x024a11cb, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return (importDefault(3857) /* metro dependency 3857: ToastActionCreators */).close();
}
@@ -0,0 +1,85 @@
/* Metro module 15308; source: modules/toast/native/ToastStore.tsx; dependencies: [7, 6, 15, 17, 18, 566, 694, 2] */
function _fun117035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:6, offset: 0x024a11f0, size: 287 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(7) /* metro dependency 7 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
let value = _fun117039(Store);
value.displayName = 'ToastStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {TOAST_OPEN: TOAST_OPEN,
TOAST_CLOSE: function() {
env0_5 = null;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/toast/native/ToastStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_117036() { // fn#117036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:148, offset: 0x024a130f, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_117036_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun117039(a0) { // fn#117039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:354, offset: 0x024a1371, size: 42 bytes, params: 2, frame: 14
const closure = ToastStore;
env0_4(closure, a0);
return env0_0(closure);
}
function TOAST_OPEN({toastProps}) { // fn#117042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:715, offset: 0x024a1428, size: 53 bytes, params: 2, frame: 6
if (env0_5?.key === toastProps.key) {
return false;
}
}
function ToastStore(a0) { // fn#117040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:366, offset: 0x024a139b, size: 141 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_1;
binding(this, ToastStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(ToastStore);
binding = env1_2;
if (_isNativeReflectConstruct_117036()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.getContent = getContent;
return value;
}
+562
View File
@@ -0,0 +1,562 @@
/* Metro module 3856; source: modules/toast/native/ToastUtils.tsx; dependencies: [661, 3857, 1244, 3858, 4050, 4052, 4054, 4056, 4058, 4060, 4062, 4064, 1423, 4066, 4068, 4071, 491, 4073, 4076, 2] */
function _fun31916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:6, offset: 0x01006ab8, size: 601 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).VerificationCriteria;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/toast/native/ToastUtils.tsx');
exports.presentAddedFriendToast = presentAddedFriendToast;
exports.presentFriendRequestAcceptedToast = presentFriendRequestAcceptedToast;
exports.presentGameFriendRequestAcceptedToast = presentGameFriendRequestAcceptedToast;
exports.presentFriendRequestIgnoredToast = presentFriendRequestIgnoredToast;
exports.presentGameFriendRequestIgnoredToast = presentGameFriendRequestIgnoredToast;
exports.presentLinkCopied = function() {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: 'LINK_COPIED'};
object.content = require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t['+5kSoW']);
object.IconComponent = require(dependencyMap[7]).LinkIcon;
defaultImport.open(object);
};
exports.presentInviteSent = function() {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: 'INVITE_SENT'};
object.content = require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.sVwWdV);
object.IconComponent = require(dependencyMap[8]).SendMessageIcon;
defaultImport.open(object);
};
exports.presentIdCopied = presentIdCopied;
exports.presentImageSaved = presentImageSaved;
exports.presentVideoSaved = presentVideoSaved;
exports.presentGifSaved = presentGifSaved;
exports.presentMessageCopied = presentMessageCopied;
exports.presentMessageIdCopied = presentMessageIdCopied;
exports.presentPostIdCopied = presentPostIdCopied;
exports.presentUsernameCopied = presentUsernameCopied;
exports.presentFeedbackSent = presentFeedbackSent;
exports.presentEmoji = presentEmoji;
exports.presentNoiseCancellation = presentNoiseCancellation;
exports.presentNoiseCancellationError = presentNoiseCancellationError;
exports.presentError = function(a0) {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: 'ERROR', content: a0};
object.IconComponent = require(dependencyMap[13]).XLargeIcon;
object.iconColor = 'icon-feedback-critical';
defaultImport.open(object);
};
exports.presentVoiceActivityDetectionError = presentVoiceActivityDetectionError;
exports.roleIdCopied = roleIdCopied;
exports.communityRequirementSatisfied = communityRequirementSatisfied;
exports.communityAdminOnly = communityAdminOnly;
exports.unverifiedVoiceGate = unverifiedVoiceGate;
exports.transferOwnershipProtected = transferOwnershipProtected;
exports.memberOrRoleRemovedToast = memberOrRoleRemovedToast;
exports.memberOrRoleAddedToast = memberOrRoleAddedToast;
exports.roleTemplateAppliedToast = roleTemplateAppliedToast;
exports.roleCreatedToast = roleCreatedToast;
exports.roleCreateFailedToast = roleCreateFailedToast;
exports.presentFailedToast = function(a0) {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: 'FAILED', content: a0};
object.IconComponent = require(dependencyMap[13]).XLargeIcon;
object.iconColor = 'icon-feedback-critical';
defaultImport.open(object);
};
exports.presentCommandCopied = presentCommandCopied;
exports.presentGuildMemberBio = presentGuildMemberBio;
exports.presentGuildMemberPronouns = presentGuildMemberPronouns;
exports.presentUserPronouns = function() {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: 'USER_POPOUT_PRONOUNS'};
object.content = require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t['1w6drw']);
defaultImport.open(object);
};
exports.presentCopiedToClipboard = presentCopiedToClipboard;
exports.presentGuildRoleSubscriptionTrialTierMonthCost = presentGuildRoleSubscriptionTrialTierMonthCost;
exports.showVoiceRecordingFailed = showVoiceRecordingFailed;
exports.showMaxGroupMembers = showMaxGroupMembers;
exports.showTransferOwnershipSuccess = showTransferOwnershipSuccess;
exports.showSafetySuccess = function(a0, a1) {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: a0, content: a1};
object.IconComponent = require(dependencyMap[17]).CircleCheckIcon;
object.iconColor = 'status-positive';
defaultImport.open(object);
};
exports.showVerificationSent = showVerificationSent;
exports.presentTimestamp = function(a0) {
var defaultImport = importDefault(dependencyMap[1]);
var object = {key: 'MESSAGE_TIMESTAMP', content: a0};
object.IconComponent = require(dependencyMap[18]).ClockIcon;
defaultImport.open(object);
};
}
function presentAddedFriendToast() { // fn#31917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:223, offset: 0x01006d11, size: 133 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {'key': 'TOAST_ADD_FRIEND', 'content': null, 'iconColor': 'status-positive'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Fn5bwO = (require(1244) /* metro dependency 1244: indexNative */).t.Fn5bwO;
object2.content = Reflect.apply(string, intl, [Fn5bwO]);
const FriendsIcon = (require(3858) /* metro dependency 3858: FriendsIcon */).FriendsIcon;
object2.IconComponent = FriendsIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentFriendRequestAcceptedToast(a0) { // fn#31918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:412, offset: 0x01006d96, size: 234 bytes, params: 2, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_FRIEND_REQUEST_ACCEPTED'};
object2.content = a0 == null ? intl.string(t.UhJna5) : intl.formatToPlainString(t.b3eoD4, {username: a0.username});
const UserPlusIcon = (require(4050) /* metro dependency 4050: UserPlusIcon */).UserPlusIcon;
object2.IconComponent = UserPlusIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function presentGameFriendRequestAcceptedToast() { // fn#31919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:699, offset: 0x01006e80, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_GAME_FRIEND_REQUEST_ACCEPTED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xjNLeZ);
const UserPlatformIcon = (require(4052) /* metro dependency 4052: UserPlatformIcon */).UserPlatformIcon;
object2.IconComponent = UserPlatformIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function presentFriendRequestIgnoredToast() { // fn#31920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:910, offset: 0x01006f0c, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_FRIEND_REQUEST_IGNORED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const YlavlY = (require(1244) /* metro dependency 1244: indexNative */).t.YlavlY;
object2.content = Reflect.apply(string, intl, [YlavlY]);
const UserMinusIcon = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon;
object2.IconComponent = UserMinusIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function presentGameFriendRequestIgnoredToast() { // fn#31921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:1123, offset: 0x01006f98, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_GAME_FRIEND_REQUEST_IGNORED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const P6BzJP = (require(1244) /* metro dependency 1244: indexNative */).t.P6BzJP;
object2.content = Reflect.apply(string, intl, [P6BzJP]);
const UserMinusIcon = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon;
object2.IconComponent = UserMinusIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function presentIdCopied() { // fn#31924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:1604, offset: 0x01007122, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_ID_COPIED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eNjAah);
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentImageSaved() { // fn#31925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:1745, offset: 0x010071a3, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_IMAGE_SAVED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cqpdJW);
const DownloadIcon = (require(4062) /* metro dependency 4062: DownloadIcon */).DownloadIcon;
object2.IconComponent = DownloadIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentVideoSaved() { // fn#31926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:1893, offset: 0x01007224, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_VIDEO_SAVED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['cEK+1g']);
const DownloadIcon = (require(4062) /* metro dependency 4062: DownloadIcon */).DownloadIcon;
object2.IconComponent = DownloadIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentGifSaved() { // fn#31927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2042, offset: 0x010072a5, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_GIF_SAVED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const LktEtN = (require(1244) /* metro dependency 1244: indexNative */).t.LktEtN;
object2.content = Reflect.apply(string, intl, [LktEtN]);
const DownloadIcon = (require(4062) /* metro dependency 4062: DownloadIcon */).DownloadIcon;
object2.IconComponent = DownloadIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentMessageCopied() { // fn#31928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2191, offset: 0x01007326, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_MESSAGE_COPIED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const R3o53R = (require(1244) /* metro dependency 1244: indexNative */).t.R3o53R;
object2.content = Reflect.apply(string, intl, [R3o53R]);
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentMessageIdCopied() { // fn#31929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2342, offset: 0x010073a7, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_MESSAGE_ID_COPIED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.svRBmK);
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentPostIdCopied() { // fn#31930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2493, offset: 0x01007428, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_FORUM_POST_ID_COPIED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aBQ2RP);
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentUsernameCopied() { // fn#31931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2649, offset: 0x010074a9, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_USERNAME_SAVED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['FHVR/+']);
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentFeedbackSent() { // fn#31932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2800, offset: 0x0100752a, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_FEEDBACK_SENT'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xpiDtu);
const CheckmarkLargeIcon = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.IconComponent = CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function presentEmoji(a0) { // fn#31933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:2979, offset: 0x010075b6, size: 168 bytes, params: 2, frame: 19
var value;
const getEmojiURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getEmojiURL;
value = Reflect.apply(getEmojiURL, value, [{id: a0.id, animated: a0.animated, size: 48}]);
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: 'PRESENT_EMOJI-' + a0.id,
content: ':' + a0.name + ':', icon: {uri: value}});
}
function presentNoiseCancellation(a0) { // fn#31934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:3156, offset: 0x0100765e, size: 205 bytes, params: 2, frame: 19
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'NOISE_CANCELLATION_TOGGLE'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.content = a0 ? Reflect.apply(string, intl, [t['Q+fhfv']]) : Reflect.apply(string, intl, [t.hEMHnF]);
object2.IconComponent = a0 ? (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon : (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.iconColor = a0 ? 'status-positive' : 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function presentNoiseCancellationError() { // fn#31935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:3449, offset: 0x0100772b, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'MOBILE_NOISE_CANCELLATION_CPU_OVERUSE'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const DnmX2G = (require(1244) /* metro dependency 1244: indexNative */).t.DnmX2G;
object2.content = Reflect.apply(string, intl, [DnmX2G]);
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.IconComponent = XLargeIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function presentVoiceActivityDetectionError() { // fn#31937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:3794, offset: 0x01007813, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'MOBILE_ADVANCED_VOICE_ACTIVITY_CPU_OVERUSE'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zz1Tft);
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.IconComponent = XLargeIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function roleIdCopied(a0) { // fn#31938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:3995, offset: 0x0100789f, size: 158 bytes, params: 2, frame: 20
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {};
object2.key = 'ROLE_ID_COPIED-' + a0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.iOWpeB,
{role: a0});
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function communityRequirementSatisfied() { // fn#31939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:4173, offset: 0x0100793d, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'ENABLE_COMMUNITY_MODAL_REQUIREMENT_SATISFIED_TOOLTIP'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const PHjrpp = (require(1244) /* metro dependency 1244: indexNative */).t.PHjrpp;
object2.content = Reflect.apply(string, intl, [PHjrpp]);
const CheckmarkLargeIcon = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.IconComponent = CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function communityAdminOnly() { // fn#31940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:4391, offset: 0x010079c9, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'GUILD_SETTINGS_COMMUNITY_ADMINISTRATOR_ONLY'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['pjG+T3']);
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
object2.IconComponent = CircleInformationIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function unverifiedVoiceGate({notClaimed, notEmailVerified, notPhoneVerified, newAccount, newMember, missingVerificationRole, verificationRole}) { // fn#31941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:4579, offset: 0x01007a4a, size: 640 bytes, params: 2, frame: 17
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object2;
var defaultImport;
var open;
const r4 = notClaimed ? intl.string(t.IRxUlG) : notPhoneVerified ? intl.string(t.vW8iUF) : notEmailVerified ? intl.string(t.vdSOpz) : newMember ? intl.formatToPlainString(t.v1ktYb,
{min: VerificationCriteria.MEMBER_AGE}) : newAccount ? intl.formatToPlainString(t.sncw41,
{min: VerificationCriteria.ACCOUNT_AGE}) : missingVerificationRole && verificationRole != null ? intl.formatToPlainString(t.MZbCuG,
{roleName: '@' + verificationRole.name}) : null;
if (r4 != null) {
defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
open = defaultImport.open;
object2 = {key: 'UNVERIFIED_VOICE_GATE', content: r4};
object2.IconComponent = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
Reflect.apply(open, defaultImport, [object2]);
}
}
function transferOwnershipProtected() { // fn#31942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:5233, offset: 0x01007cca, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TRANSFER_OWNERSHIP_PROTECTED_GUILD'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wDkfrN);
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
object2.IconComponent = CircleInformationIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function memberOrRoleRemovedToast(a0) { // fn#31943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:5414, offset: 0x01007d4b, size: 139 bytes, params: 2, frame: 20
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'PRIVATE_CHANNEL_MEMBERS_REMOVED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.vJGtXc,
{name: a0});
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
object2.IconComponent = TrashIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function memberOrRoleAddedToast(a0, a1) { // fn#31944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:5599, offset: 0x01007dd6, size: 341 bytes, params: 3, frame: 18
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object2;
var defaultImport;
var open;
const r4 = 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}) : undefined;
if (r4 != null) {
defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
open = defaultImport.open;
object2 = {key: 'MEMBER_OR_ROLE_ADDED', content: r4};
object2.IconComponent = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
}
function roleTemplateAppliedToast() { // fn#31945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:5962, offset: 0x01007f2b, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'ROLE_PERMISSION_TEMPLATE_SELECT_CONFIRMATION_TOAST'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.e6xHUV);
const CheckmarkLargeIcon = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.IconComponent = CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function roleCreatedToast() { // fn#31946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:6176, offset: 0x01007fb7, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'ROLE_CREATED_TOAST'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kubT4R);
const CheckmarkLargeIcon = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.IconComponent = CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function roleCreateFailedToast() { // fn#31947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:6363, offset: 0x01008043, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'ROLE_CREATION_FAILED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hbr6Uj);
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.IconComponent = XLargeIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function presentCommandCopied() { // fn#31949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:6684, offset: 0x0100812b, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TOAST_COMMAND_COPIED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const U989ct = (require(1244) /* metro dependency 1244: indexNative */).t.U989ct;
object2.content = Reflect.apply(string, intl, [U989ct]);
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
object2.IconComponent = LinkIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentGuildMemberBio(a0, a1) { // fn#31950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:6834, offset: 0x010081ac, size: 136 bytes, params: 3, frame: 19
const env0_0 = a1;
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'GUILD_IDENTITY_BIO_TOAST'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.pOy2tm,
{guildName: a0});
object2.icon = function() {
return require;
};
Reflect.apply(open, defaultImport, [object2]);
}
function presentGuildMemberPronouns(a0, a1) { // fn#31952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:7003, offset: 0x01008234, size: 136 bytes, params: 3, frame: 19
const env0_0 = a1;
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'GUILD_IDENTITY_PRONOUNS_TOAST'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.gPVLS0,
{guildName: a0});
object2.icon = function() {
return require;
};
Reflect.apply(open, defaultImport, [object2]);
}
function presentCopiedToClipboard() { // fn#31955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:7295, offset: 0x01008327, size: 167 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {};
let value = require(491) /* metro dependency 491 */;
value = value.v4();
object2.key = 'COPIED_TEXT_' + value;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mGZ66D);
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
object2.IconComponent = CopyIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function presentGuildRoleSubscriptionTrialTierMonthCost() { // fn#31956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:7478, offset: 0x010083ce, size: 129 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'GUILD_ROLE_SUBSCRIPTION_MANAGE_SUBSCRIPTION_PAGE_TRIAL_PRICE_INFO'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/q6fpa']);
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
object2.IconComponent = CircleInformationIcon;
Reflect.apply(open, defaultImport, [object2]);
}
function showVoiceRecordingFailed() { // fn#31957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:7693, offset: 0x0100844f, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'VOICE_MESSAGES_RECORDING_FAILED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const H03AqF = (require(1244) /* metro dependency 1244: indexNative */).t.H03AqF;
object2.content = Reflect.apply(string, intl, [H03AqF]);
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.IconComponent = XLargeIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function showMaxGroupMembers() { // fn#31958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:7890, offset: 0x010084db, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'GROUP_DM_INVITE_FULL_MAIN'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const OtTQDz = (require(1244) /* metro dependency 1244: indexNative */).t.OtTQDz;
object2.content = Reflect.apply(string, intl, [OtTQDz]);
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.IconComponent = XLargeIcon;
object2.iconColor = 'icon-feedback-critical';
Reflect.apply(open, defaultImport, [object2]);
}
function showTransferOwnershipSuccess() { // fn#31959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:8090, offset: 0x01008567, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'TRANSFER_OWNERSHIP_SUCCESS'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2Eyydu']);
const CheckmarkLargeIcon = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.IconComponent = CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function showVerificationSent() { // fn#31961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3995:8415, offset: 0x0100864e, size: 140 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'VERIFICATION_RESENT'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gI8IST);
const CheckmarkLargeIcon = (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
object2.IconComponent = CheckmarkLargeIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}