Files
discord-decomp/sources/modules/icymi/native/ICYMIShareModal.tsx
T
2026-07-28 01:06:53 +03:00

953 lines
51 KiB
TypeScript

/* Metro module 14865; source: modules/icymi/native/ICYMIShareModal.tsx; dependencies: [57, 5, 31, 27, 1379, 4645, 4644, 661, 7690, 4503, 33, 4501, 697, 9051, 1244, 14866, 3857, 1478, 4003, 7701, 14867, 7704, 3963, 3868, 5463, 9770, 9788, 4578, 5080, 7232, 1360, 7076, 7879, 491, 4650, 7067, 7880, 1585, 477, 5287, 9603, 5282, 9761, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseColorThemeBackground from '../../client_themes/native/useColorThemeBackground.tsx'; /* Metro dependency 4003 */
import UploadAttachmentStore from '../../../stores/UploadAttachmentStore.tsx'; /* Metro dependency 4644 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import UseSafeAreaInsetsKeyboardAwareNative from '../../safe_area/useSafeAreaInsetsKeyboardAware.native.tsx'; /* Metro dependency 5463 */
import ThemedGradient from '../../client_themes/native/ThemedGradient.tsx'; /* Metro dependency 7704 */
import SearchableDestinationList from '../../share/native/SearchableDestinationList.tsx'; /* Metro dependency 9761 */
import Module14867 from '../../../by-id/module-14867.jsx'; /* Metro dependency 14867 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as ClientThemesUtilsModule from '../../client_themes/native/ClientThemesUtils.tsx'; /* Metro dependency 3963 */
import * as MessageConstantsModule from '../../messages/MessageConstants.tsx'; /* Metro dependency 4503 */
import * as DraftStoreModule from '../../../stores/DraftStore.tsx'; /* Metro dependency 4645 */
import * as Module05287Module from '../../../by-id/module-05287.js'; /* Metro dependency 5287 */
import * as UserRowConstantsModule from '../../main_tabs_v2/native/shared_components/user_list/UserRowConstants.tsx'; /* Metro dependency 7690 */
import * as ClientThemesOverridesModule from '../../client_themes/native/ClientThemesOverrides.tsx'; /* Metro dependency 7701 */
import * as ShareEventUtilsModule from '../../guild_scheduled_events/utils/ShareEventUtils.tsx'; /* Metro dependency 9051 */
import * as HeaderSharedModule from '../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
import * as UseShareChatInputActionsModule from '../../share/native/useShareChatInputActions.tsx'; /* Metro dependency 9770 */
function _fun112421(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:6, offset: 0x023cae8f, size: 724 bytes, params: 8, frame: 24
const env0_0 = require;
const ICYMIShareModal2 = ICYMIShareModal;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = JsxRuntimeModule;
const env0_13 = value.jsx;
const env0_14 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {};
const object2 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.paddingHorizontal = PX_16;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.paddingTop = PX_8;
object.headerContainer = object2;
const object3 = {'borderRadius': null, 'overflow': 'hidden', 'borderWidth': 1};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object3.borderColor = BORDER_STRONG;
object.preview = object3;
object.base = {position: 'relative'};
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.contentContainer = {backgroundColor: BACKGROUND_BASE_LOW};
const object6 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'flex-end'};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.paddingHorizontal = PX_16;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingVertical = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.gap = PX_12;
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object6.backgroundColor = BACKGROUND_BASE_LOW;
object6.borderTopWidth = 1;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object6.borderTopColor = BORDER_SUBTLE;
object.footer = object6;
const env0_15 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIShareModal.tsx');
exports.default = ICYMIShareModal2;
exports.GuildEventShareModal = GuildEventShareModal;
exports.GameShareModal = GameShareModal;
function Screenshot({render, setUri}) { // fn#112422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:892, offset: 0x023cb163, size: 518 bytes, params: 2, frame: 35
const styles = useStyles();
const value2 = ReactModule.useRef(null);
ReactModule.useEffect(function() {
global.setTimeout(_fun112424, 500);
}, [setUri]);
const width = (UseWindowDimensionsNative)().width;
const value3 = (UseColorThemeBackground)();
const value4 = (ClientThemesOverridesModule).useClientThemesOverride();
const items2 = [styles.preview];
items2[1] = {width: width};
const defaultImport = Module14867;
const {LEVEL_7, LEVEL_8} = (ClientThemesUtilsModule).OverlayOpacity;
const themedGradient = (
<ThemedGradient
absolute
wide
tall
mix
mixAmount={{dark: LEVEL_7, light: LEVEL_8}}
/>
);
const ThemeContextProvider = (NativeModule).ThemeContextProvider;
return (
<View style={{'position': 'absolute', 'top': -1000, 'overflow': 'hidden'}}>
<View style={items2}>
{((Component) => <Component ref={value2} options={{'fileName': 'icymi_content', 'format': 'png',
'quality': 1}}><View style={styles.base}>{themedGradient}<ThemeContextProvider gradient={value3}><View style={[styles.contentContainer,
value4]}>{render()}</View></ThemeContextProvider></View></Component>)(defaultImport)}
</View>
</View>
);
function _fun112423() { // fn#112423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:973, offset: 0x023cb369, size: 33 bytes, params: 1, frame: 13
global.setTimeout(_fun112424, 500);
function _fun112424() { // fn#112424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:990, offset: 0x023cb38a, size: 69 bytes, params: 1, frame: 13
var environment;
var r0;
let value = environment.__proto__;
const current = env1_1.current;
value = undefined;
if (current == null) {
r0 = value;
} else if (current.capture == null) {
r0 = value;
} else {
value = current.capture();
value = value.then(function(a0) {
setUri(a0);
});
r0 = value;
}
return r0;
}
}
}
function GravityShareFooter({count, isSending, onSend}) { // fn#112426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:1649, offset: 0x023cb3e2, size: 589 bytes, params: 2, frame: 31
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const [property, property2] = Module00057(ReactModule.useState(''), 2);
const insets = (UseSafeAreaInsetsKeyboardAwareNative)({includeKeyboardHeight: true}).insets;
const {textInputRef, handleSelectionChange, handleMessageFocus, handleMessageBlur,
handlePressEmoji} = (UseShareChatInputActionsModule).useShareChatInputActions(property2);
const value6 = ReactModule.useCallback(_fun112427, [property, onSend]);
const r12 = count <= 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
{count: count});
const value9 = ReactModule.useMemo(function() {
var stylesBinding = styles;
return [stylesBinding.footer, {paddingBottom: stylesBinding.footer.paddingVertical + insets.bottom}];
}, [styles.footer, insets.bottom]);
const value10 = count === 0;
return (
value10
? null
: (
<View style={value9}>
{((Component) => <Component inputRef={textInputRef} text={property} onChange={property2} onSelectionChange={handleSelectionChange} onFocus={handleMessageFocus} onBlur={handleMessageBlur} onPressEmoji={handlePressEmoji} onSend={value6} disabled={isSending} />)(importDefault(9788) /* metro dependency 9788: ShareChatInput */)}
{((Button) => <Button variant="primary" size="md" text={r12} disabled={value10} onPress={isSending ? undefined : value6} loading={isSending} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button)}
</View>
)
);
function _fun112427() { // fn#112427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:1970, offset: 0x023cb62f, size: 20 bytes, params: 1, frame: 11
onSend(env0_2);
}
}
function ICYMIShareModal({title, originDestinationId, linkText, render, forwardToChannel, onShare}) { // fn#112429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2460, offset: 0x023cb67e, size: 728 bytes, params: 2, frame: 35
let binding = property4;
const value4 = forwardToChannel(binding.useState([]), 2);
var property = value4[0];
var property4 = property;
const property2 = value4[1];
const length = property.length;
var [property, env0_6] = forwardToChannel(property4.useState(false), 2);
const [env0_7, property3] = forwardToChannel(property4.useState(null), 2);
const value10 = property4.useCallback(_fun112430, []);
const value11 = _fun112431();
const styles = useStyles();
const value12 = (UseSafeAreaInsetsNative)();
const height = (UseWindowDimensionsNative)().height;
binding = property4;
const useMemo = binding.useMemo;
let bottom = value12.bottom;
const value13 = Reflect.apply(useMemo, binding, [_fun112441, [bottom, height]]);
const Header = (Module05287Module).Header;
const object2 = {title: title, headerTitle: headerTitle_112442, headerTitleAlign: 'center'};
object2.headerStatusBarHeight = PlatformUtilsModule.isIOS() ? 0 : undefined;
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value10);
const view = (
<View style={styles.headerContainer}>
<Header {...object2} />
</View>
);
const r6 = render != null && <Screenshot render={render} setUri={property3} />;
const TOGGLE = UserRowModes.TOGGLE;
bottom = value12.bottom;
const PX_8 = (Native).space.PX_8;
const value17 = bottom + PX_8;
const PX_96 = (Native).space.PX_96;
return (
<View style={value13}>
{view}
{r6}
<SearchableDestinationList
rowMode={TOGGLE}
onSelectedDestinationChange={property2}
originDestination={originDestinationId}
insetEnd={value17 + PX_96}
disableGradient
disableStickySections
/>
<GravityShareFooter
count={length}
isSending={property}
onSend={value11}
/>
</View>
);
function _fun112430() { // fn#112430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2721, offset: 0x023cb956, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function _fun112431() { // fn#112431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2749, offset: 0x023cb97b, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_4(_fun112433);
return _fun112440;
function* _fun112433(a0) { // fn#112433, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2769, offset: 0x023cb9aa, size: 259 bytes, params: 2, frame: 21
var environment;
var Promise;
var all;
var binding;
var map;
var value5;
var value6;
var value8;
var filter;
var binding3;
if (true) {
var env0_0 = a0;
value = environment.__proto__.__proto__;
View(true);
if (dependencyMap == null || ChannelStore != null) {
Promise = global.Promise;
all = Promise.all;
binding = env2_5;
map = binding.map;
value5 = environment.__proto__.__proto__.__proto__;
yield Reflect.apply(all, Promise, [Reflect.apply(map, binding,
[env3_0(env3_2[29]).getOrResolveChannelIdFromDestinationId])]);
value6 = undefined;
if (false) {
return value6;
}
value8 = value6.map(_fun112434);
filter = value8.filter;
binding = env3_0;
binding3 = env3_2;
Reflect.apply(filter, value8, [binding(binding3[30]).isNotNullish]).forEach(_fun112435());
binding = env3_1;
binding(binding3[28]).pop();
if (env2_4 != null) {
env2_4();
}
}
}
function _fun112434(a0) { // fn#112434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2890, offset: 0x023cbaad, size: 22 bytes, params: 2, frame: 11
return env4_7.getChannel(a0);
}
function _fun112435() { // fn#112435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2949, offset: 0x023cbac3, size: 36 bytes, params: 1, frame: 12
const env0_0 = env4_4(_fun112437);
return _fun112439;
function* _fun112437(a0) { // fn#112437, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:2969, offset: 0x023cbaf2, size: 497 bytes, params: 2, frame: 28
var environment;
var r7;
var r8;
var binding;
var binding3;
var value9;
var addFile;
var object;
var id;
var object2;
var binding4;
var binding5;
var ChannelMessage;
var binding6;
var getUploads;
var value11;
var value12;
var clearAll;
var value13;
var sendMessage;
if (false) {
return undefined;
}
const env0_0 = a0;
value = environment.__proto__.__proto__;
if (env2_0 == null) {
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
r7 = env5_1;
} else {
binding = env2_0;
if (binding.trim().length > 0) {
binding = env2_0;
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
value = '' + binding + '\n\n' + env5_1;
r7 = value;
} else {
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
r7 = env5_1;
}
}
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env6_1;
const value3 = undefined;
if (env5_3 == null) {
if (env5_2 != null && env5_7 != null) {
binding = env6_1;
binding3 = env6_2;
value9 = binding(binding3[32]);
addFile = value9.addFile;
object = {};
id = a0.id;
object.channelId = id;
object2 = {};
binding4 = env5_7;
object2.uri = binding4;
object2.originalUri = binding4;
binding5 = env6_0;
object2.id = binding5(binding3[33]).v4();
object2.platform = binding5(binding3[34]).UploadPlatform.REACT_NATIVE;
object.file = object2;
ChannelMessage = env6_8.ChannelMessage;
object.draftType = ChannelMessage;
Reflect.apply(addFile, value9, [object]);
binding6 = env6_9;
getUploads = binding6.getUploads;
id = a0.id;
ChannelMessage = env6_8.ChannelMessage;
value11 = Reflect.apply(getUploads, binding6, [id, ChannelMessage]);
value12 = binding(binding3[32]);
clearAll = value12.clearAll;
id = a0.id;
ChannelMessage = env6_8.ChannelMessage;
Reflect.apply(clearAll, value12, [id, ChannelMessage]);
r8 = value11;
} else {
r8 = value3;
}
binding = env6_1;
value13 = binding(env6_2[35]);
sendMessage = value13.sendMessage;
id = a0.id;
yield Reflect.apply(sendMessage, value13, [id, binding(env6_2[31]).parse(a0, r7), false,
{location: env6_12.ICYMI,
attachmentsToUpload: r8, onAttachmentUploadError: onAttachmentUploadError_112438}]);
} else {
env5_3(a0);
}
return value3;
function onAttachmentUploadError_112438(a0, a1, a2) { // fn#112438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:3417, offset: 0x023cbce3, size: 93 bytes, params: 4, frame: 14
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
value = env7_0(env7_2[36]);
const handleUploadMessageAttachmentsErrors = value.handleUploadMessageAttachmentsErrors;
const object = {file: a0};
object.guildId = env0_0.getGuildId();
object.analyticsLocations = [];
object.code = a1;
object.reason = a2;
Reflect.apply(handleUploadMessageAttachmentsErrors, value, [object]);
}
}
function _fun112439() { // fn#112439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:3563, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
function _fun112440() { // fn#112440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:3649, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function _fun112441() { // fn#112441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:3747, offset: 0x023cbd40, size: 72 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
return {height: value ? height + DraftStoreModule.DraftType.bottom : '100%'};
}
function ICYMIShareModalHeaderTitle() { // fn#112442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:3923, owner: ICYMIShareModal.headerTitle, offset: 0x023cbd88, size: 56 bytes, params: 1, frame: 14
const GenericHeaderTitle = (HeaderSharedModule).GenericHeaderTitle;
return <GenericHeaderTitle title={title} />;
}
}
function GuildEventShareModal({event}) { // fn#112443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:4497, offset: 0x023cbdc0, size: 185 bytes, params: 2, frame: 20
const value3 = (ShareEventUtilsModule).SHARE_EVENT_DETAILS_LINK({guildId: event.guild_id,
guildEventId: event.id});
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ICYMIShareModal
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7TVSLK'])}
originDestinationId={event.channel_id != null ? {type: 'channel', id: event.channel_id} : undefined}
linkText={value3}
/>
);
}
function GameShareModal({content}) { // fn#112444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:4803, offset: 0x023cbe79, size: 123 bytes, params: 2, frame: 19
const intl = (IndexNativeModule).intl;
return (
<ICYMIShareModal
title={intl.string((IndexNativeModule).t['59CWHK'])}
linkText=""
forwardToChannel={_fun112445()}
/>
);
function _fun112445() { // fn#112445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:4944, offset: 0x023cbef4, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_4(_fun112447);
return _fun112448;
function* _fun112447(a0) { // fn#112447, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:4964, offset: 0x023cbf23, size: 299 bytes, params: 2, frame: 19
var r1;
var r4;
var binding;
var binding2;
var property;
var value3;
var sendMessageWithEmbed;
var object;
var ICYMI;
var value5;
var value6;
var value7;
var error;
var body;
var value8;
var code;
var CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
var value9;
var value10;
var open;
var binding3;
var intl;
var string;
var t;
var F8FvUy;
var BC5vfD;
if (true) {
value = environment.__proto__.__proto__.__proto__;
try {
binding = env3_0;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
binding2 = env3_2;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
property = binding2[15];
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
value3 = binding(property);
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
sendMessageWithEmbed = value3.sendMessageWithEmbed;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
object = {'channel': null, 'content': '', 'entry': null, 'whenReady': false, 'doNotNotifyOnError': true};
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
object.channel = a0;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
object.entry = require;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
binding = env3_12;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
ICYMI = binding.ICYMI;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
object.location = ICYMI;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
try {
value5 = Reflect.apply(sendMessageWithEmbed, value3, [object]);
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
body = error.body;
value8 = body != null;
if (value8) {
body = error.body;
code = body.code;
CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION = env3_10.CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
value9 = code === CONTENT_INVENTORY_ENTRY_INVALID_PERMISSION;
r1 = value9;
} else {
r1 = value8;
}
binding = env3_1;
value10 = binding(env3_2[16]);
open = value10.open;
binding = env3_0;
binding3 = env3_2;
intl = binding(binding3[14]).intl;
string = intl.string;
t = binding(binding3[14]).t;
if (r1) {
BC5vfD = t.BC5vfD;
value = Reflect.apply(string, intl, [BC5vfD]);
r4 = value;
} else {
F8FvUy = t.F8FvUy;
value = Reflect.apply(string, intl, [F8FvUy]);
r4 = value;
}
Reflect.apply(open, value10, [{key: 'FORWARD_CONTENT_INVENTORY_ENTRY_ERROR', content: r4}]);
return undefined;
}
if (value7) {
return value6;
}
}
}
function _fun112448() { // fn#112448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:5351, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
}
global.__d(_fun112421, 14865, [57, 5, 31, 27, 1379, 4645, 4644, 661, 7690, 4503, 33, 4501, 697, 9051, 1244, 14866,
3857, 1478, 4003, 7701, 14867, 7704, 3963, 3868, 5463, 9770, 9788, 4578, 5080, 7232, 1360, 7076, 7879, 491,
4650, 7067, 7880, 1585, 477, 5287, 9603, 5282, 9761,
2]) /* metro module 14865, dependencies: [57, 5, 31, 27, 1379, 4645, 4644, 661, 7690, 4503, 33, 4501, 697, 9051, 1244, 14866, 3857, 1478, 4003, 7701, 14867, 7704, 3963, 3868, 5463, 9770, 9788, 4578, 5080, 7232, 1360, 7076, 7879, 491, 4650, 7067, 7880, 1585, 477, 5287, 9603, 5282, 9761, 2] */;