1186 lines
42 KiB
TypeScript
1186 lines
42 KiB
TypeScript
/* Metro module 12674; source: modules/share/native/ShareScreen.tsx; dependencies: [5, 57, 31, 27, 1383, 1379, 3784, 661, 9594, 7690, 33, 4501, 697, 477, 1244, 12675, 7232, 1360, 12676, 4142, 683, 9597, 4601, 9792, 1962, 4497, 12677, 12678, 5287, 9603, 1581, 5282, 9761, 12679, 2] */
|
|
function _fun97099(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:6, offset: 0x02172921, size: 555 bytes, params: 8, frame: 25
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = 0;
|
|
const env0_3 = importDefault(dependencyMap[value]);
|
|
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_5 = importAll(31) /* metro dependency 31 */;
|
|
const value2 = require(27) /* metro dependency 27 */;
|
|
const env0_6 = value2.NativeModules;
|
|
const env0_7 = value2.View;
|
|
const channelRecordModule = require(1383) /* metro dependency 1383: ChannelRecord */;
|
|
const env0_8 = channelRecordModule.ChannelRecordBase;
|
|
const env0_9 = channelRecordModule.isGuildChannelType;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_12 = constantsModule.AnalyticEvents;
|
|
const env0_13 = constantsModule.Permissions;
|
|
const env0_14 = constantsModule.MAX_UPLOAD_COUNT;
|
|
const env0_15 = (require(9594) /* metro dependency 9594: ForwardConstants */).MAX_DESTINATION_COUNT;
|
|
const env0_16 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
|
|
const value5 = require(33) /* metro dependency 33 */;
|
|
const env0_17 = value5.jsx;
|
|
const env0_18 = value5.Fragment;
|
|
const env0_19 = value5.jsxs;
|
|
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = createStylesModule.createStyles;
|
|
object2 = {};
|
|
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
|
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOWER};
|
|
const object4 = {};
|
|
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
|
const PX_16 = platformUtilsModule.isIOS() ? (importDefault(697) /* metro dependency 697: native */).space.PX_16 : value;
|
|
object4.paddingHorizontal = PX_16;
|
|
const value8 = platformUtilsModule;
|
|
const PX_8 = value8.isIOS() ? (importDefault(697) /* metro dependency 697: native */).space.PX_8 : value;
|
|
object4.paddingVertical = PX_8;
|
|
object2.headerContainer = object4;
|
|
const env0_20 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/share/native/ShareScreen.tsx');
|
|
exports.default = ShareScreen;
|
|
}
|
|
|
|
function getAttachmentsRestriction(a0) { // fn#97100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:631, offset: 0x02172b4c, size: 137 bytes, params: 2, frame: 17
|
|
var r0;
|
|
var object2;
|
|
var intl;
|
|
if (a0 instanceof ChannelRecordBase) {
|
|
if (isGuildChannelType(a0.type)) {
|
|
if (PermissionStore.can(Permissions.ATTACH_FILES, a0)) {
|
|
r0 = undefined;
|
|
} else {
|
|
object2 = {};
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.P7yvbm);
|
|
r0 = object2;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ShareScreen({appEntryKey, sharedContent, onClose}) { // fn#97101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:865, offset: 0x02172bd5, size: 1067 bytes, params: 2, frame: 38
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const styles = useStyles();
|
|
let binding = env0_5;
|
|
const value3 = binding.useMemo(function() {
|
|
var sharedContentBinding = sharedContent;
|
|
var items = [];
|
|
if (sharedContentBinding.targetUserId != null) {
|
|
items.push({type: 'user', id: sharedContentBinding.targetUserId});
|
|
}
|
|
if (sharedContentBinding.targetChannelId != null) {
|
|
items.push({type: 'channel', id: sharedContentBinding.targetChannelId});
|
|
}
|
|
return items;
|
|
}, [sharedContent]);
|
|
let useState = binding.useState;
|
|
const value4 = Reflect.apply(useState, binding, [value3]);
|
|
const binding2 = env0_4;
|
|
const value5 = binding2(value4, 2);
|
|
const property = value5[0];
|
|
const env0_3 = value5[1];
|
|
const length = property.length;
|
|
var env0_4 = length;
|
|
const value7 = sharedContent.attachments.length > MAX_UPLOAD_COUNT;
|
|
const value8 = binding.useCallback(_fun97103, []);
|
|
useState = binding.useState;
|
|
const value9 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
|
const property2 = value9[0];
|
|
const env0_6 = value9[1];
|
|
const env0_7 = binding.useRef(property2);
|
|
const r14 = length <= 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
|
|
{count: length});
|
|
binding = env0_5;
|
|
useState = binding.useState;
|
|
const value14 = env0_4(Reflect.apply(useState, binding, [sharedContent.text ?? '']), 2);
|
|
const property3 = value14[0];
|
|
const property4 = value14[1];
|
|
const {embed, isLoading} = (importDefault(12675) /* metro dependency 12675: useFetchShareEmbed */)(property3);
|
|
binding = env0_5;
|
|
const value17 = binding.useCallback(env0_3(_fun97105), [onClose, property, sharedContent.attachments, property3]);
|
|
const value18 = binding.useMemo(_fun97114, [embed, isLoading, sharedContent.attachments]);
|
|
const Header = (require(5287) /* metro dependency 5287 */).Header;
|
|
const headerProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MR7/kg']),
|
|
headerTitle: headerTitle_97115, headerTitleAlign: 'center'};
|
|
const metaQuestUtilsAndroidModule = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
|
headerProps.headerLeft = metaQuestUtilsAndroidModule.isMetaQuest() ? undefined : (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
|
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
|
headerProps.headerStatusBarHeight = platformUtilsModule.isIOS() ? 0 : undefined;
|
|
const items2 = [<View style={styles.headerContainer}><Header {...headerProps} /></View>];
|
|
const SearchableDestinationList = importDefault(9761) /* metro dependency 9761: SearchableDestinationList */;
|
|
const TOGGLE = UserRowModes.TOGGLE;
|
|
const getAttachmentsRestriction2 = sharedContent.attachments.length > 0 ? getAttachmentsRestriction : undefined;
|
|
items2[1] = <SearchableDestinationList rowMode={TOGGLE} initialSelectedDestinations={property} onSelectedDestinationChange={value8} getRowIsUnavailable={getAttachmentsRestriction2} insetEnd={0} disableGradient disableStickySections disableSelection={length >= MAX_DESTINATION_COUNT || value7} disableLongPress={platformUtilsModule.isAndroid()} />;
|
|
items2[2] = ((Component) => <Component text={property3} setText={property4} preview={value18} sendLabel={r14} canSend={length > 0 && !value7} isSending={property2} onSend={value17} disabled={value7} appEntryKey={appEntryKey} />)(importDefault(12679) /* metro dependency 12679: ShareScreenFooter */);
|
|
return (
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function* _fun97105() { // fn#97105, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:1558, offset: 0x0217306a, size: 957 bytes, params: 1, frame: 30
|
|
var environment;
|
|
var Promise;
|
|
var all;
|
|
var map;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var getOrResolveChannelIdFromDestinationId;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var filter;
|
|
var binding3;
|
|
var value9;
|
|
var isNotNullish;
|
|
var value10;
|
|
var length;
|
|
var value11;
|
|
var attachments;
|
|
var closure;
|
|
var value12;
|
|
var binding4;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var every;
|
|
var value19;
|
|
var value20;
|
|
var lazy;
|
|
var value21;
|
|
var binding5;
|
|
var value22;
|
|
var openAlert;
|
|
var binding6;
|
|
var object3;
|
|
var value23;
|
|
var intl;
|
|
var string;
|
|
var value24;
|
|
var t;
|
|
var dA1gbw;
|
|
var value25;
|
|
var value26;
|
|
var formatToPlainString;
|
|
var value27;
|
|
var thm88D;
|
|
var object4;
|
|
var value28;
|
|
var value29;
|
|
var binding7;
|
|
var property2;
|
|
var value30;
|
|
var fetchMessages;
|
|
var messages;
|
|
var value31;
|
|
var value32;
|
|
var binding8;
|
|
var property3;
|
|
var value33;
|
|
var transitionToChannel;
|
|
var value34;
|
|
var isAndroid;
|
|
var isAndroid2;
|
|
var ShareManager;
|
|
var launchApp;
|
|
var binding9;
|
|
var value35;
|
|
var showInformationToast;
|
|
var value36;
|
|
var value37;
|
|
var wFcUiF;
|
|
var value38;
|
|
var error;
|
|
if (true) {
|
|
var env0_0;
|
|
var env0_1;
|
|
var env0_2;
|
|
value = environment.__proto__;
|
|
if (!View.current) {
|
|
View.current = true;
|
|
NativeModules(true);
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
all = Promise.all;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
map = dependencyMap.map;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[16];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
getOrResolveChannelIdFromDestinationId = value4.getOrResolveChannelIdFromDestinationId;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(map, dependencyMap, [getOrResolveChannelIdFromDestinationId]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(all, Promise, [value5]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
return value7;
|
|
}
|
|
try {
|
|
filter = value7.filter;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[17];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
isNotNullish = value9.isNotNullish;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(filter, value7, [isNotNullish]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
length = value10.length;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = length === 0;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
if (value11) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding9 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding9[18];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value35 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
showInformationToast = value35.showInformationToast;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding9[14];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value36 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
intl = value36.intl;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
string = intl.string;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding9[14];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value37 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
t = value37.t;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
wFcUiF = t.wFcUiF;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value38 = Reflect.apply(string, intl, [wFcUiF]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(showInformationToast, value35, [value38]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
NativeModules(false);
|
|
View.current = false;
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
attachments = require.attachments;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
env0_0 = attachments;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
map = attachments.map;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = function({mimeType}) {
|
|
return mimeType ?? 'unknown';
|
|
};
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(map, attachments, [closure]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
env0_1 = value12;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding4[19];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
map = value10.map;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = _fun97107;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value14 = closure();
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(map, value10, [value14]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value16 = value13(value15);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
yield value16;
|
|
try {
|
|
value17 = undefined;
|
|
value18 = false;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
if (value18) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
return value17;
|
|
}
|
|
try {
|
|
env0_2 = value17;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
every = value17.every;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
return a0.status === 'fulfilled';
|
|
};
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value19 = Reflect.apply(every, value17, [closure]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
if (value19) {
|
|
try {
|
|
property = value10[0];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding7 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property2 = binding7[21];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value30 = binding(property2);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
fetchMessages = value30.fetchMessages;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.channelId = property;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
messages = Reflect.apply(fetchMessages, value30, [object3]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
yield messages;
|
|
try {
|
|
value31 = undefined;
|
|
value32 = false;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
if (value32) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
return value31;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding8 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property3 = binding8[22];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value33 = binding(property3);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
transitionToChannel = value33.transitionToChannel;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3 = {'navigationReplace': true, 'openTextInVoiceIfVoiceChannel': true};
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(transitionToChannel, value33, [property, object3]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding8[13];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value34 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
isAndroid = value34.isAndroid;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
isAndroid2 = Reflect.apply(isAndroid, value34, []);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
if (isAndroid2) {
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
ShareManager = binding.ShareManager;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
launchApp = ShareManager.launchApp;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(launchApp, ShareManager, []);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
importDefault();
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
NativeModules(false);
|
|
View.current = false;
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
filter = dependencyMap.filter;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = _fun97112;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value20 = Reflect.apply(filter, dependencyMap, [closure]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
lazy = binding.lazy;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = _fun97113;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value21 = Reflect.apply(lazy, binding, [closure]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding5 = env2_2;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[25];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value22 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
openAlert = value22.openAlert;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
binding6 = env2_17;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[14];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value23 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
intl = value23.intl;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
string = intl.string;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[14];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value24 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
t = value24.t;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
dA1gbw = t.dA1gbw;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value25 = Reflect.apply(string, intl, [dA1gbw]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.title = value25;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[14];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value26 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
intl = value26.intl;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
formatToPlainString = intl.formatToPlainString;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[14];
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value27 = binding(property);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
t = value27.t;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
thm88D = t.thm88D;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
length = value20.length;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.count = length;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value28 = Reflect.apply(formatToPlainString, intl, [thm88D, object4]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.content = value28;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.failedDestinations = value20;
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
value29 = binding6(value21, object3);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(openAlert, value22, ['share-failed-alert-modal', value29]);
|
|
} catch (error) {
|
|
NativeModules(false);
|
|
View.current = false;
|
|
throw error;
|
|
}
|
|
NativeModules(false);
|
|
View.current = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun97114() { // fn#97114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:2875, offset: 0x0217357e, size: 194 bytes, params: 1, frame: 23
|
|
const embedBinding = embed;
|
|
const value2 = null;
|
|
return value2 != embedBinding ? <>{((Component) => <Component attachments={sharedContent.attachments} isRevamp />)(importDefault(12677) /* metro dependency 12677: ShareAttachments */)}{((Component) => <Component embed={value2 == embed ? undefined : embed.embed} isLoadingEmbed={isLoading} isRevamp />)(importDefault(12678) /* metro dependency 12678: ShareEmbed */)}</> : sharedContent.attachments.length === 0 ? value2 : <>{((Component) => <Component attachments={sharedContent.attachments} isRevamp />)(importDefault(12677) /* metro dependency 12677: ShareAttachments */)}{((Component) => <Component embed={value2 == embed ? undefined : embed.embed} isLoadingEmbed={isLoading} isRevamp />)(importDefault(12678) /* metro dependency 12678: ShareEmbed */)}</>;
|
|
}
|
|
|
|
function ShareScreenHeaderTitle({children}) { // fn#97115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:3240, owner: ShareScreen.headerTitle, offset: 0x02173640, size: 251 bytes, params: 2, frame: 18
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const r4 = result ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['qqyp/e'],
|
|
{limit: MAX_UPLOAD_COUNT}) : length >= MAX_DESTINATION_COUNT ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['3Fbkir'],
|
|
{count: MAX_DESTINATION_COUNT}) : undefined;
|
|
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
|
return (
|
|
<GenericHeaderTitle
|
|
title={children}
|
|
subtitle={r4}
|
|
subtitleColor="text-feedback-warning"
|
|
variant="redesign/heading-18/bold"
|
|
/>
|
|
);
|
|
}
|
|
|
|
function _fun97107() { // fn#97107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:1924, offset: 0x02173427, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env3_3(_fun97109);
|
|
return _fun97110;
|
|
}
|
|
|
|
function _fun97112(a0, a1) { // fn#97112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:2534, offset: 0x02173532, size: 31 bytes, params: 3, frame: 2
|
|
return env0_2[a1].status === 'rejected';
|
|
}
|
|
|
|
function _fun97113() { // fn#97113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:2578, offset: 0x02173551, size: 45 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_0;
|
|
const binding2 = env3_2;
|
|
return binding(binding2[24])(binding2[23], binding2.paths);
|
|
}
|
|
|
|
function* _fun97109(a0) { // fn#97109, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12864:1944, offset: 0x02173456, size: 220 bytes, params: 2, frame: 19
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
var channel = env5_10.getChannel(a0);
|
|
if (channel == null) {
|
|
return false;
|
|
}
|
|
var value4 = env5_0(env5_2[18]);
|
|
yield value4.sendShareMessage({attachments: sharedContent, channel: channel, comment: env4_8});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
var value9 = env5_1(env5_2[20]);
|
|
var track = value9.track;
|
|
var SHARE_MESSAGE_SENT = env5_12.SHARE_MESSAGE_SENT;
|
|
Reflect.apply(track, value9, [SHARE_MESSAGE_SENT, {guild_id: channel.guild_id, channel_id: channel.id,
|
|
channel_type: channel.type, num_attachments: sharedContent.length, attachment_mimetypes: onClose}]);
|
|
}
|
|
}
|
|
|