Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/* Metro module 9791; source: modules/forwarding/native/ForwardFailedAlertModal.tsx; dependencies: [31, 33, 9591, 9792, 1244, 2] */
|
||||
function _fun76739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9977:6, offset: 0x01de324c, size: 142 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardFailedAlertModal.tsx');
|
||||
exports.default = ForwardFailedAlertModal;
|
||||
}
|
||||
|
||||
function ForwardFailedAlertModal({message, failedDestinations, forwardOptions}) { // fn#76740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9977:217, offset: 0x01de32da, size: 240 bytes, params: 2, frame: 21
|
||||
const value2 = env0_3.useCallback(_fun76741, [failedDestinations, message, forwardOptions]);
|
||||
const DestinationFailedAlertModal = importDefault(9792) /* metro dependency 9792: DestinationFailedAlertModal */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<DestinationFailedAlertModal
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/OPIaM'])}
|
||||
content={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.cn9vFb,
|
||||
{count: failedDestinations.length})}
|
||||
failedDestinations={failedDestinations}
|
||||
onRetry={value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun76741() { // fn#76741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9977:322, offset: 0x01de33ca, size: 79 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(9591) /* metro dependency 9591: ForwardModalUtils */).openForwardModal({message: message,
|
||||
source: 'retry-modal', initialSelectedDestinations: failedDestinations, forwardOptions: forwardOptions});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/* Metro module 9769; source: modules/forwarding/native/ForwardMessageFooter.tsx; dependencies: [57, 31, 4645, 33, 9592, 7231, 566, 7165, 9770, 1244, 9771, 9772, 4578, 9788, 2] */
|
||||
function _fun76668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:6, offset: 0x01ddf50b, size: 193 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const draftStore = importDefault(4645) /* metro dependency 4645: DraftStore */;
|
||||
const env0_6 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardMessageFooter.tsx');
|
||||
exports.ForwardMessageFooter = ForwardMessageFooter;
|
||||
}
|
||||
|
||||
function ForwardMessageFooter({message, forwardOptions, sendLabel, canSend, selectedDestinations, isSending, onSend}) { // fn#76669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:268, offset: 0x01ddf5cc, size: 749 bytes, params: 2, frame: 36
|
||||
var r5;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var xJFpij;
|
||||
const value3 = (require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).useTrackForwardEditContextMessageOnce();
|
||||
const value4 = (require(7231) /* metro dependency 7231: ForwardDestinationUtils */).useSelectedDestinationChannel(selectedDestinations);
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([DraftStore], function() {
|
||||
return DraftStore.getDraft(message.channel_id, DraftType.ForwardContextMessage);
|
||||
});
|
||||
const binding = env0_4;
|
||||
const [property, property2] = env0_3(binding.useState(value5), 2);
|
||||
let useCallback = binding.useCallback;
|
||||
const value8 = Reflect.apply(useCallback, binding, [_fun76671, [message, value3]]);
|
||||
binding.useEffect(_fun76672, [property, message.channel_id]);
|
||||
const {textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur,
|
||||
handlePressEmoji} = (require(9770) /* metro dependency 9770: useShareChatInputActions */).useShareChatInputActions(property2,
|
||||
value4);
|
||||
useCallback = binding.useCallback;
|
||||
object = [property];
|
||||
object[1] = message.channel_id;
|
||||
object[2] = onSend;
|
||||
const value10 = Reflect.apply(useCallback, binding, [_fun76673, object]);
|
||||
const value11 = (require(7231) /* metro dependency 7231: ForwardDestinationUtils */).useDestinationNamesWithSlowmode(selectedDestinations);
|
||||
if (value11.length > 0) {
|
||||
if (property.length > 0) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
xJFpij = (require(1244) /* metro dependency 1244: indexNative */).t.xJFpij;
|
||||
object = {};
|
||||
object.count = value11.length;
|
||||
object.channelNames = value11.join(', ');
|
||||
r5 = Reflect.apply(formatToPlainString, intl, [xJFpij, object]);
|
||||
} else {
|
||||
r5 = undefined;
|
||||
}
|
||||
} else {
|
||||
r5 = undefined;
|
||||
}
|
||||
const ShareFooterLayout = importDefault(9771) /* metro dependency 9771: ShareFooterLayout */;
|
||||
object = {};
|
||||
const ForwardPreview = (require(9772) /* metro dependency 9772: ForwardPreview */).ForwardPreview;
|
||||
object.preview = <ForwardPreview message={message} channel={value4} forwardOptions={forwardOptions} />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
object.sendButton = <Button variant="primary" size="md" text={sendLabel} disabled={!canSend} onPress={isSending ? undefined : value10} loading={isSending} />;
|
||||
object.chatInput = ((Component) => <Component inputRef={textInputRef} text={property} onChange={value8} onSelectionChange={handleSelectionChange} onFocus={handleMessageFocus} onBlur={handleMessageBlur} onPressEmoji={handlePressEmoji} onSend={value10} />)(importDefault(9788) /* metro dependency 9788: ShareChatInput */);
|
||||
object.warningText = r5;
|
||||
object.avoidKeyboard = isInputFocused;
|
||||
return <ShareFooterLayout {...object} />;
|
||||
}
|
||||
|
||||
function _fun76671(a0) { // fn#76671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:642, offset: 0x01ddf8e4, size: 43 bytes, params: 2, frame: 13
|
||||
env0_4(a0);
|
||||
const binding = env0_2;
|
||||
const messageBinding = message;
|
||||
binding(messageBinding.channel_id, messageBinding.id);
|
||||
}
|
||||
|
||||
function _fun76672() { // fn#76672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:694, offset: 0x01ddf90f, size: 66 bytes, params: 1, frame: 16
|
||||
const defaultImport = importDefault(7165) /* metro dependency 7165: DraftActionCreators */;
|
||||
const saveDraft = defaultImport.saveDraft;
|
||||
const channel_id = message.channel_id;
|
||||
const binding = env0_3;
|
||||
const ForwardContextMessage = DraftType.ForwardContextMessage;
|
||||
Reflect.apply(saveDraft, defaultImport, [channel_id, binding, ForwardContextMessage]);
|
||||
}
|
||||
|
||||
function _fun76673() { // fn#76673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:966, offset: 0x01ddf951, size: 74 bytes, params: 1, frame: 15
|
||||
const defaultImport = importDefault(7165) /* metro dependency 7165: DraftActionCreators */;
|
||||
const clearDraft = defaultImport.clearDraft;
|
||||
const channel_id = message.channel_id;
|
||||
const ForwardContextMessage = DraftType.ForwardContextMessage;
|
||||
Reflect.apply(clearDraft, defaultImport, [channel_id, ForwardContextMessage]);
|
||||
onSend(env0_3);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,641 @@
|
||||
/* Metro module 9593; source: modules/forwarding/native/ForwardModal.tsx; dependencies: [5, 57, 31, 27, 9569, 1379, 4814, 9590, 9594, 7690, 33, 4501, 697, 1478, 7232, 566, 9592, 9591, 5286, 7231, 3857, 1244, 1360, 9595, 4497, 9596, 9597, 4601, 7229, 9600, 4800, 4081, 4082, 3856, 6797, 477, 5287, 9603, 5282, 5277, 4056, 7556, 7704, 9761, 9769, 9789, 2] */
|
||||
function _fun75169(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:6, offset: 0x01da4751, size: 481 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
const messagePreviewStore = importDefault(9590) /* metro dependency 9590: MessagePreviewStore */;
|
||||
const env0_11 = (require(9594) /* metro dependency 9594: ForwardConstants */).MAX_DESTINATION_COUNT;
|
||||
const env0_12 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingVertical = PX_8;
|
||||
let MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object4.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object3.headerContainer = object4;
|
||||
object3.header = {'borderBottomWidth': 0, 'shadowColor': 'transparent', 'backgroundColor': 'transparent'};
|
||||
MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object3.container = {'flex': 1, 'display': 'flex', backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND};
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardModal.tsx');
|
||||
exports.default = ForwardModal;
|
||||
}
|
||||
|
||||
function ForwardModal({message, forwardOptions, initialSelectedDestinations = [], source, customSendHandler}) { // fn#75170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:714, offset: 0x01da4932, size: 1827 bytes, params: 2, frame: 46
|
||||
var r8;
|
||||
var r21;
|
||||
var r9;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var moduleValue8;
|
||||
var ModalFloatingAction;
|
||||
const styles = useStyles();
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}).height;
|
||||
const env0_4 = height;
|
||||
const channel_id = message.channel_id;
|
||||
const env0_5 = channel_id;
|
||||
const id2 = message.id;
|
||||
let binding = env0_5;
|
||||
const value3 = binding.useMemo(_fun75171, [channel_id]);
|
||||
let useState = binding.useState;
|
||||
const value5 = env0_4(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property = value5[0];
|
||||
const env0_7 = value5[1];
|
||||
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore, ICYMIStore,
|
||||
MessagePreviewStore], _fun75172, [channel_id, id2, source, message]);
|
||||
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channel_id);
|
||||
}, [channel_id]);
|
||||
const env0_10 = value7?.id != null;
|
||||
const value9 = (require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).useTrackForwardAddRecipientOnce();
|
||||
const value10 = (require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).useTrackForwardEditSearchOnce();
|
||||
binding = env0_5;
|
||||
const env0_13 = binding.useRef(0);
|
||||
const env0_14 = binding.useRef(0);
|
||||
const value11 = binding.useState('');
|
||||
const binding2 = env0_4;
|
||||
const value12 = binding2(value11, 2);
|
||||
const property2 = value12[0];
|
||||
const env0_16 = value12[1];
|
||||
const env0_17 = binding.useRef('');
|
||||
const value13 = binding.useCallback(_fun75174, [channel_id, id2, value10]);
|
||||
useState = binding.useState;
|
||||
const value14 = binding2(Reflect.apply(useState, binding, [initialSelectedDestinations]), 2);
|
||||
const property3 = value14[0];
|
||||
const env0_19 = value14[1];
|
||||
const length = property3.length;
|
||||
const value15 = length >= MAX_DESTINATION_COUNT;
|
||||
binding.useEffect(_fun75175, [property3, channel_id, id2, property2, value9]);
|
||||
const value16 = binding.useCallback(_fun75176, []);
|
||||
const value17 = binding.useCallback(_fun75177, [channel_id, id2]);
|
||||
(require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */).useNavigatorBackPressHandler(_fun75178);
|
||||
const value18 = binding.useCallback(_fun75179, [value7, value8]);
|
||||
const value20 = binding.useCallback(_fun75180(), [channel_id, forwardOptions, id2, value7, property3, source,
|
||||
customSendHandler]);
|
||||
const value21 = binding.useCallback(_fun75189, [value20]);
|
||||
const env0_22 = binding.useCallback(_fun75190, [channel_id, id2]);
|
||||
const value22 = binding.useMemo(_fun75191, [height]);
|
||||
const r18 = length <= 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
|
||||
{count: length});
|
||||
const Header = (require(5287) /* metro dependency 5287 */).Header;
|
||||
const headerProps2 = {headerStyle: styles.header,
|
||||
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+SkRRj']),
|
||||
headerTitle: headerTitle_75192, headerTitleAlign: 'center',
|
||||
headerLeft: (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value17),
|
||||
headerRight: headerRight_75193};
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isIOS()) {
|
||||
moduleValue8 = require(7556) /* metro dependency 7556: useIsWindowLarge */;
|
||||
r8 = moduleValue8.getIsWindowLarge() ? undefined : 0;
|
||||
} else {
|
||||
r8 = undefined;
|
||||
}
|
||||
headerProps2.headerStatusBarHeight = r8;
|
||||
const view = <View style={styles.headerContainer}><Header {...headerProps2} /></View>;
|
||||
const viewBinding2Props = {style: styles.container};
|
||||
const items4 = [((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)];
|
||||
const SearchableDestinationList = importDefault(9761) /* metro dependency 9761: SearchableDestinationList */;
|
||||
const TOGGLE = UserRowModes.TOGGLE;
|
||||
items4[1] = <SearchableDestinationList rowMode={TOGGLE} initialSelectedDestinations={initialSelectedDestinations} onSelectedDestinationChange={value16} onSearchTextChange={value13} getRowIsUnavailable={value18} originDestination={value3} insetEnd={0} disableGradient disableStickySections disableSelection={value15} />;
|
||||
if (value7 != null) {
|
||||
const ForwardMessageFooter = (require(9769) /* metro dependency 9769: ForwardMessageFooter */).ForwardMessageFooter;
|
||||
r9 = <ForwardMessageFooter message={value7} forwardOptions={forwardOptions} sendLabel={r18} canSend={length > 0} selectedDestinations={property3} isSending={property} onSend={value20} />;
|
||||
} else {
|
||||
ModalFloatingAction = (require(9789) /* metro dependency 9789: ModalFloatingActionNative */).ModalFloatingAction;
|
||||
var modalFloatingActionProps = {isVisible: length > 0,
|
||||
floatingBackgroundColor: styles.container.backgroundColor};
|
||||
r21 = length === 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
|
||||
|
||||
{count: length});
|
||||
modalFloatingActionProps.text = r21;
|
||||
r21 = property ? undefined : value21;
|
||||
modalFloatingActionProps.onPress = r21;
|
||||
modalFloatingActionProps.loading = property;
|
||||
r9 = <ModalFloatingAction {...modalFloatingActionProps} />;
|
||||
}
|
||||
items4[2] = r9;
|
||||
return (
|
||||
<View style={value22}>
|
||||
{view}
|
||||
<View {...viewBinding2Props}>
|
||||
{items4}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun75171() { // fn#75171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:912, offset: 0x01da5055, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(7232) /* metro dependency 7232: formatResults */).getDestinationIdFromChannelId(channel_id);
|
||||
}
|
||||
|
||||
function _fun75172() { // fn#75172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1043, offset: 0x01da5082, size: 98 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var value2;
|
||||
if (source === 'checkpoint') {
|
||||
r0 = message;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
r0 = MessageStore.getMessage(channel_id, id) ?? MessagePreviewStore.getMessage(id);
|
||||
r0 = r0 ?? ICYMIStore.getMessage(id);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun75174(a0) { // fn#75174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1447, offset: 0x01da50fe, size: 90 bytes, params: 2, frame: 15
|
||||
var binding;
|
||||
env0_16(a0);
|
||||
if (a0 !== env0_17.current) {
|
||||
binding = env0_14;
|
||||
binding.current = binding.current + 1;
|
||||
if (a0 !== '') {
|
||||
env0_12(channel_id, id);
|
||||
}
|
||||
}
|
||||
env0_17.current = a0;
|
||||
}
|
||||
|
||||
function _fun75175() { // fn#75175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1594, offset: 0x01da5158, size: 55 bytes, params: 1, frame: 16
|
||||
if (env0_18.length > 0) {
|
||||
env0_11(channel_id, id, env0_15 !== '');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun75176(a0) { // fn#75176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1661, offset: 0x01da518f, size: 41 bytes, params: 2, frame: 12
|
||||
env0_19(a0);
|
||||
const binding = env0_13;
|
||||
binding.current = binding.current + 1;
|
||||
}
|
||||
|
||||
function _fun75177() { // fn#75177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1707, offset: 0x01da51b8, size: 109 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
(require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).trackForwardCancel({channelId: channel_id,
|
||||
messageId: id, numDestinationChanges: env0_13.current, numQueryChanges: env0_14.current});
|
||||
(require(9591) /* metro dependency 9591: ForwardModalUtils */).closeForwardModal();
|
||||
}
|
||||
|
||||
function _fun75178() { // fn#75178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1902, offset: 0x01da5225, size: 89 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).trackForwardCancel({channelId: channel_id,
|
||||
messageId: id, numDestinationChanges: env0_13.current, numQueryChanges: env0_14.current});
|
||||
return false;
|
||||
}
|
||||
|
||||
function _fun75179(a0) { // fn#75179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2048, offset: 0x01da527e, size: 82 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
const value2 = undefined;
|
||||
if (env0_8 == null) {
|
||||
r0 = value2;
|
||||
} else if (env0_9 == null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(7231) /* metro dependency 7231: ForwardDestinationUtils */;
|
||||
r0 = moduleValue.getDestinationIsUnavailable(env0_8, env0_9, a0);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun75180() { // fn#75180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2144, offset: 0x01da52d0, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun75182);
|
||||
return _fun75188;
|
||||
}
|
||||
|
||||
function _fun75190() { // fn#75190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:3656, offset: 0x01da57ce, size: 207 bytes, params: 1, frame: 20
|
||||
let value = environment.__proto__;
|
||||
const channel = ChannelStore.getChannel(channel_id);
|
||||
const value4 = undefined;
|
||||
const channelPermalink = (require(4800) /* metro dependency 4800: ChannelUtils */).getChannelPermalink(channel == null ? value4 : channel.guild_id,
|
||||
channel_id, id);
|
||||
const hapticUtilsNativeModule = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
const triggerHapticFeedback = hapticUtilsNativeModule.triggerHapticFeedback;
|
||||
const IMPACT_LIGHT = (importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT;
|
||||
Reflect.apply(triggerHapticFeedback, hapticUtilsNativeModule, [IMPACT_LIGHT]);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
|
||||
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(channelPermalink);
|
||||
value = require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */;
|
||||
value.trackForwardCopyLink(channel_id, id);
|
||||
return value4;
|
||||
}
|
||||
|
||||
function _fun75191() { // fn#75191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:3909, offset: 0x01da589d, size: 59 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
return {height: value ? height : '100%'};
|
||||
}
|
||||
|
||||
function ForwardModalHeaderTitle({children}) { // fn#75192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:4241, owner: ForwardModal.headerTitle, offset: 0x01da58d8, size: 161 bytes, params: 2, frame: 20
|
||||
var r4;
|
||||
var intl;
|
||||
const value = environment.__proto__;
|
||||
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
||||
if (env0_20) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r4 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['3Fbkir'],
|
||||
{count: MAX_DESTINATION_COUNT});
|
||||
} else {
|
||||
r4 = undefined;
|
||||
}
|
||||
return (
|
||||
<GenericHeaderTitle
|
||||
title={children}
|
||||
subtitleColor="text-feedback-warning"
|
||||
subtitle={r4}
|
||||
variant="redesign/heading-18/bold"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ForwardModalHeaderRight(a0) { // fn#75193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:4538, owner: ForwardModal.headerRight, offset: 0x01da5979, size: 166 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var value3;
|
||||
var HeaderActionButton;
|
||||
var intl;
|
||||
var value;
|
||||
if (env0_10) {
|
||||
value3 = environment.__proto__;
|
||||
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
var headerActionButtonProps = {...a0};
|
||||
headerActionButtonProps['onPress'] = env0_22;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Xrt5Po);
|
||||
headerActionButtonProps['accessibilityLabel'] = value;
|
||||
headerActionButtonProps['IconComponent'] = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
value = <HeaderActionButton {...headerActionButtonProps} />;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun75182(a0) { // fn#75182, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2164, offset: 0x01da52ff, size: 1074 bytes, params: 2, frame: 28
|
||||
var environment;
|
||||
var binding;
|
||||
var object2;
|
||||
var binding3;
|
||||
var value4;
|
||||
var open;
|
||||
var intl;
|
||||
var Promise;
|
||||
var all;
|
||||
var map;
|
||||
var value5;
|
||||
var value6;
|
||||
var filter;
|
||||
var binding5;
|
||||
var value8;
|
||||
var value10;
|
||||
var promise;
|
||||
var value12;
|
||||
var length;
|
||||
var value15;
|
||||
var value18;
|
||||
var value19;
|
||||
var sendForwards;
|
||||
var value20;
|
||||
var value22;
|
||||
var value23;
|
||||
var trackForwardSent;
|
||||
var current;
|
||||
var value26;
|
||||
var binding6;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (env2_3 == null) {
|
||||
if (ChannelStore != null) {
|
||||
ICYMIStore(true);
|
||||
Promise = global.Promise;
|
||||
all = Promise.all;
|
||||
binding = env2_18;
|
||||
map = binding.map;
|
||||
value5 = environment.__proto__.__proto__.__proto__;
|
||||
yield Reflect.apply(all, Promise, [Reflect.apply(map, binding,
|
||||
[env3_0(env3_2[14]).getOrResolveChannelIdFromDestinationId])]);
|
||||
value6 = undefined;
|
||||
if (false) {
|
||||
return value6;
|
||||
}
|
||||
filter = value6.filter;
|
||||
binding = env3_0;
|
||||
binding5 = env3_2;
|
||||
value8 = Reflect.apply(filter, value6, [binding(binding5[22]).isNotNullish]);
|
||||
binding = env3_1;
|
||||
if (binding(binding5[23])(ChannelStore, value8)) {
|
||||
Promise = global.Promise;
|
||||
value10 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
promise = new Promise(_fun75183);
|
||||
yield promise instanceof Object ? promise : value10;
|
||||
value12 = undefined;
|
||||
if (false) {
|
||||
return value12;
|
||||
}
|
||||
if (value12) {
|
||||
binding = env3_0;
|
||||
binding(env3_2[17]).closeForwardModal();
|
||||
length = value8.length;
|
||||
if (length !== 1) {
|
||||
binding = env3_1;
|
||||
value19 = binding(env3_2[28]);
|
||||
sendForwards = value19.sendForwards;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, importDefault, undefined);
|
||||
object2['withMessage'] = a0;
|
||||
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
value22 = value20.every(function(a0) {
|
||||
return a0.status === 'fulfilled';
|
||||
});
|
||||
binding = env3_0;
|
||||
value23 = binding(env3_2[16]);
|
||||
trackForwardSent = value23.trackForwardSent;
|
||||
if (value22) {
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = false;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
object2.numDestinations = value8.length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
object2.source = dependencyMap;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env3_1;
|
||||
binding6 = env3_2;
|
||||
value = binding(binding6[20]);
|
||||
open = value.open;
|
||||
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
|
||||
binding = env3_0;
|
||||
intl = binding(binding6[21]).intl;
|
||||
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
|
||||
Reflect.apply(open, value, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = true;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
object2.numDestinations = value8.length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env2_18;
|
||||
value26 = binding.filter(_fun75187);
|
||||
binding = env3_0;
|
||||
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore,
|
||||
failedDestinations: value26,
|
||||
forwardOptions: importDefault});
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_1;
|
||||
value15 = binding(env3_2[26]);
|
||||
yield value15.fetchMessages({channelId: value8[0]});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_0;
|
||||
value18 = binding(env3_2[27]);
|
||||
value18.transitionToChannel(value8[0], {'navigationReplace': true,
|
||||
'openTextInVoiceIfVoiceChannel': true});
|
||||
binding = env3_1;
|
||||
value19 = binding(env3_2[28]);
|
||||
sendForwards = value19.sendForwards;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, importDefault, undefined);
|
||||
object2['withMessage'] = a0;
|
||||
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
value22 = value20.every(_fun75186);
|
||||
binding = env3_0;
|
||||
value23 = binding(env3_2[16]);
|
||||
trackForwardSent = value23.trackForwardSent;
|
||||
if (value22) {
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = false;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
object2.numDestinations = value8.length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
object2.source = dependencyMap;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env3_1;
|
||||
binding6 = env3_2;
|
||||
value = binding(binding6[20]);
|
||||
open = value.open;
|
||||
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
|
||||
binding = env3_0;
|
||||
intl = binding(binding6[21]).intl;
|
||||
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
|
||||
Reflect.apply(open, value, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = true;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
length = value8.length;
|
||||
object2.numDestinations = length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env2_18;
|
||||
value26 = binding.filter(_fun75187);
|
||||
binding = env3_0;
|
||||
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore,
|
||||
failedDestinations: value26,
|
||||
forwardOptions: importDefault});
|
||||
return undefined;
|
||||
}
|
||||
ICYMIStore(false);
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_0;
|
||||
binding(env3_2[17]).closeForwardModal();
|
||||
length = value8.length;
|
||||
if (length !== 1) {
|
||||
binding = env3_1;
|
||||
value19 = binding(env3_2[28]);
|
||||
sendForwards = value19.sendForwards;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, importDefault, undefined);
|
||||
object2['withMessage'] = a0;
|
||||
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
value22 = value20.every(_fun75186);
|
||||
binding = env3_0;
|
||||
value23 = binding(env3_2[16]);
|
||||
trackForwardSent = value23.trackForwardSent;
|
||||
if (value22) {
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = false;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
object2.numDestinations = value8.length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
object2.source = dependencyMap;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env3_1;
|
||||
binding6 = env3_2;
|
||||
value = binding(binding6[20]);
|
||||
open = value.open;
|
||||
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
|
||||
binding = env3_0;
|
||||
intl = binding(binding6[21]).intl;
|
||||
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
|
||||
Reflect.apply(open, value, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = true;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
object2.numDestinations = value8.length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env2_18;
|
||||
value26 = binding.filter(_fun75187);
|
||||
binding = env3_0;
|
||||
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore, failedDestinations: value26,
|
||||
forwardOptions: importDefault});
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_1;
|
||||
value15 = binding(env3_2[26]);
|
||||
yield value15.fetchMessages({channelId: value8[0]});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_0;
|
||||
value18 = binding(env3_2[27]);
|
||||
value18.transitionToChannel(value8[0], {'navigationReplace': true,
|
||||
'openTextInVoiceIfVoiceChannel': true});
|
||||
binding = env3_1;
|
||||
value19 = binding(env3_2[28]);
|
||||
sendForwards = value19.sendForwards;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, importDefault, undefined);
|
||||
object2['withMessage'] = a0;
|
||||
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
value22 = value20.every(_fun75186);
|
||||
binding = env3_0;
|
||||
value23 = binding(env3_2[16]);
|
||||
trackForwardSent = value23.trackForwardSent;
|
||||
if (value22) {
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = false;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
object2.numDestinations = value8.length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
object2.source = dependencyMap;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env3_1;
|
||||
binding6 = env3_2;
|
||||
value = binding(binding6[20]);
|
||||
open = value.open;
|
||||
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
|
||||
binding = env3_0;
|
||||
intl = binding(binding6[21]).intl;
|
||||
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
|
||||
Reflect.apply(open, value, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
object2 = {channelId: env2_5};
|
||||
object2.messageId = View;
|
||||
object2.hasError = true;
|
||||
object2.hasContextMessage = a0 != null && a0 !== '';
|
||||
length = value8.length;
|
||||
object2.numDestinations = length;
|
||||
current = env2_13.current;
|
||||
object2.numDestinationChanges = current;
|
||||
current = env2_14.current;
|
||||
object2.numQueryChanges = current;
|
||||
Reflect.apply(trackForwardSent, value23, [object2]);
|
||||
binding = env2_18;
|
||||
value26 = binding.filter(_fun75187);
|
||||
binding = env3_0;
|
||||
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore, failedDestinations: value26,
|
||||
forwardOptions: importDefault});
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_1;
|
||||
binding3 = env3_2;
|
||||
value4 = binding(binding3[20]);
|
||||
open = value4.open;
|
||||
object2 = {key: 'FORWARD_ERROR'};
|
||||
binding = env3_0;
|
||||
intl = binding(binding3[21]).intl;
|
||||
object2.content = intl.string(binding(binding3[21]).t.R0RpRX);
|
||||
Reflect.apply(open, value4, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
yield env2_3(env2_18, {withMessage: a0}, ICYMIStore);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun75183(a0) { // fn#75183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2359, offset: 0x01da5731, size: 106 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env4_0;
|
||||
const binding2 = env4_2;
|
||||
const value2 = binding(binding2[24]);
|
||||
const openAlert = value2.openAlert;
|
||||
binding = env4_13;
|
||||
value = env4_1(binding2[25]);
|
||||
value = binding(value, {onConfirm: onConfirm_75184, onBack: onBack_75185});
|
||||
Reflect.apply(openAlert, value2, ['staff-to-non-staff-forward', value]);
|
||||
}
|
||||
|
||||
function _fun75187(a0, a1) { // fn#75187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:3283, offset: 0x01da57af, size: 31 bytes, params: 3, frame: 2
|
||||
return env0_0[a1].status === 'rejected';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 9591; source: modules/forwarding/native/ForwardModalUtils.tsx; dependencies: [31, 33, 4015, 9592, 7556, 477, 5080, 9593, 1962, 9791, 4497, 2] */
|
||||
function _fun75150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:6, offset: 0x01da3fdc, size: 182 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardModalUtils.tsx');
|
||||
exports.FORWARD_MODAL_KEY = 'forward-modal';
|
||||
exports.openForwardModal = openForwardModal;
|
||||
exports.closeForwardModal = closeForwardModal;
|
||||
exports.showForwardFailedAlertModal = showForwardFailedAlertModal;
|
||||
}
|
||||
|
||||
function openForwardModal({message, source, initialSelectedDestinations = [], forwardOptions, customSendHandler}) { // fn#75151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:261, offset: 0x01da4092, size: 292 bytes, params: 2, frame: 24
|
||||
require(dependencyMap[2]).dismissKeyboard();
|
||||
const moduleValue2 = require(dependencyMap[3]);
|
||||
moduleValue2.trackForwardStart(message.channel_id, message.id, source);
|
||||
const r1 = require(dependencyMap[4]).getIsWindowLarge() && require(dependencyMap[5]).isIOS();
|
||||
const defaultImport = importDefault(dependencyMap[6]);
|
||||
defaultImport.pushLazy(require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths), {message: message,
|
||||
initialSelectedDestinations: initialSelectedDestinations, forwardOptions: forwardOptions, source: source,
|
||||
customSendHandler: customSendHandler}, 'forward-modal', r1 ? undefined : {presentation: 'modal'});
|
||||
}
|
||||
|
||||
function closeForwardModal() { // fn#75152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:685, offset: 0x01da41b6, size: 44 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('forward-modal');
|
||||
}
|
||||
|
||||
function showForwardFailedAlertModal({message, failedDestinations, forwardOptions}) { // fn#75153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:767, offset: 0x01da41e2, size: 115 bytes, params: 2, frame: 18
|
||||
(require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert('forward-failed-alert-modal',
|
||||
((Component) => <Component message={message} failedDestinations={failedDestinations} forwardOptions={forwardOptions} />)(env0_3.lazy(_fun75154)));
|
||||
}
|
||||
|
||||
function _fun75154() { // fn#75154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:869, offset: 0x01da4255, size: 45 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return require(dependencyMap[8])(dependencyMap[9], dependencyMap.paths);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,419 @@
|
||||
/* Metro module 9772; source: modules/forwarding/native/ForwardPreview.tsx; dependencies: [31, 27, 33, 4501, 697, 4048, 8368, 8177, 9773, 9777, 1909, 9778, 22, 9779, 1244, 9781, 9783, 6697, 9786, 5475, 1477, 7599, 4573, 2710, 8382, 2] */
|
||||
function _fun76686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:6, offset: 0x01de019d, size: 557 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.forwardPreview = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_12};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.quote = {'width': 4, 'height': '100%', 'backgroundColor': null, 'borderRadius': 2,
|
||||
backgroundColor: BORDER_SUBTLE};
|
||||
object2.contentWrapper = {'flexDirection': 'column', 'flex': 1, 'paddingVertical': 4, 'gap': 6};
|
||||
const object3 = {'position': 'relative', 'width': 56, 'height': 56, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.attachmentPreview = object3;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object2.attachmentPreviewVideo = {backgroundColor: BLACK};
|
||||
object2.videoThumbnail = {'position': 'absolute', 'top': 0, 'left': 0, 'opacity': 0.6};
|
||||
object2.playIcon = {'position': 'absolute', 'top': 0, 'left': 0, 'margin': 16, 'zIndex': 100};
|
||||
object2.attachmentPreviewOverflow = {position: 'relative'};
|
||||
const object5 = {'position': 'absolute', 'bottom': 0, 'right': 0, 'alignItems': 'center',
|
||||
'justifyContent': 'center', 'textAlign': 'center', 'width': 24, 'height': 24, 'lineHeight': 24,
|
||||
'backgroundColor': null, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object5.backgroundColor = BACKGROUND_MOD_STRONG;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.overflowCount = object5;
|
||||
object2.attachmentRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 6};
|
||||
object2.largeIcon = {'width': 20, 'height': 20};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardPreview.tsx');
|
||||
exports.ForwardPreview = ForwardPreview;
|
||||
}
|
||||
|
||||
function MessagePreview_76687({message, contentMessage, attachmentCount}) { // fn#76687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:1107, offset: 0x01de03ca, size: 329 bytes, params: 2, frame: 21
|
||||
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const r11 = attachmentCount > 0 ? (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT : (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
return ((Component) => <Component pointerEvents="none" horizontalOffset={0} modifyRow={env0_3.useCallback(_fun76688,
|
||||
[createStylesModule.createNativeStyleProperties({seeMoreLabelColor: r11})(value2).seeMoreLabelColor,
|
||||
attachmentCount])} message={message.merge({messageSnapshots: [],
|
||||
content: contentMessage.content})} rowGenerator={env0_3.useMemo(_fun76689,
|
||||
[])} />)(importDefault(9773) /* metro dependency 9773: ChatItem */);
|
||||
}
|
||||
|
||||
function ForwardPreview({message, channel, forwardOptions}) { // fn#76690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:2417, offset: 0x01de05d9, size: 2190 bytes, params: 2, frame: 40
|
||||
var r1;
|
||||
var r24;
|
||||
var r2;
|
||||
var r18;
|
||||
var r21;
|
||||
var r23;
|
||||
var r5;
|
||||
var r22;
|
||||
var r19;
|
||||
var r8;
|
||||
var property;
|
||||
var value6;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
var defaultImport4;
|
||||
var defaultImport5;
|
||||
var defaultImport6;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var value23;
|
||||
var object2;
|
||||
var items7;
|
||||
var FastImage;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const forwardPreviewUtilsModule = require(9777) /* metro dependency 9777: ForwardPreviewUtils */;
|
||||
const useForwardPreviewContent = forwardPreviewUtilsModule.useForwardPreviewContent;
|
||||
let object3 = {message: message, channel: channel, forwardOptions: forwardOptions};
|
||||
const {attachments, embeds, hasContent, contentMessage} = Reflect.apply(useForwardPreviewContent,
|
||||
forwardPreviewUtilsModule, [object3]);
|
||||
let length = contentMessage.components.length;
|
||||
const checkpointData = length > 0 ? contentMessage.components[0].type !== (require(1909) /* metro dependency 1909: Server */).ComponentType.CHECKPOINT_CARD ? null : contentMessage.components[0].checkpointData : null;
|
||||
let r0 = checkpointData != null ? (require(9778) /* metro dependency 9778: CheckpointColorsNative */).CHECKPOINT_PERSONA_COLORS[checkpointData.cardId ?? 0] : null;
|
||||
const primaryColor = r0?.primaryColor;
|
||||
length = attachments.length;
|
||||
if (length > 0) {
|
||||
value6 = (require(22) /* metro dependency 22 */).countBy(attachments, _fun76691);
|
||||
r24 = value6.IMAGE ?? 0;
|
||||
r0 = value6.VIDEO ?? 0;
|
||||
if (r24 > 0) {
|
||||
if (r0 > 0) {
|
||||
value10 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Lr0Top,
|
||||
{image_count: r24, video_count: r0});
|
||||
r1 = (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
|
||||
r2 = value10;
|
||||
} else if (r0 > 0) {
|
||||
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
|
||||
{count: r0});
|
||||
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
|
||||
r2 = value9;
|
||||
} else if (r24 > 0) {
|
||||
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
|
||||
{count: r24});
|
||||
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
|
||||
r2 = value8;
|
||||
} else {
|
||||
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
|
||||
{count: length});
|
||||
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
|
||||
r2 = value7;
|
||||
}
|
||||
} else if (r0 > 0) {
|
||||
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
|
||||
{count: r0});
|
||||
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
|
||||
r2 = value9;
|
||||
} else if (r24 > 0) {
|
||||
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
|
||||
{count: r24});
|
||||
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
|
||||
r2 = value8;
|
||||
} else {
|
||||
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
|
||||
{count: length});
|
||||
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
|
||||
r2 = value7;
|
||||
}
|
||||
if (r0 > 0) {
|
||||
if (length === r0) {
|
||||
var viewProps = {style: [styles.attachmentPreview, styles.attachmentPreviewVideo]};
|
||||
defaultImport5 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
var defaultImport5Props = {style: styles.videoThumbnail};
|
||||
defaultImport6 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
defaultImport5Props.source = {uri: defaultImport6.getMobileOptimizedSrc(attachments[0].proxy_url, 56,
|
||||
56,
|
||||
'png')};
|
||||
defaultImport5Props.width = 56;
|
||||
defaultImport5Props.height = 56;
|
||||
r18 = <View {...viewProps}>{((Component) => <Component {...defaultImport5Props} />)(defaultImport5)}{((CirclePlayIcon) => <CirclePlayIcon style={styles.playIcon} size="md" color="white" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else if (length > 0) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
|
||||
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
property = embeds[0];
|
||||
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
|
||||
|
||||
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
r18 = null;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
}
|
||||
}
|
||||
} else if (length > 0) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
property = embeds[0];
|
||||
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
|
||||
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
r18 = null;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
}
|
||||
}
|
||||
} else if (embeds.length > 0) {
|
||||
value6 = (require(22) /* metro dependency 22 */).countBy(attachments, _fun76691);
|
||||
r24 = value6.IMAGE ?? 0;
|
||||
r0 = value6.VIDEO ?? 0;
|
||||
if (r24 > 0) {
|
||||
if (r0 > 0) {
|
||||
value10 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Lr0Top,
|
||||
{image_count: r24, video_count: r0});
|
||||
r1 = (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
|
||||
r2 = value10;
|
||||
} else if (r0 > 0) {
|
||||
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
|
||||
{count: r0});
|
||||
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
|
||||
r2 = value9;
|
||||
} else if (r24 > 0) {
|
||||
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
|
||||
{count: r24});
|
||||
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
|
||||
r2 = value8;
|
||||
} else {
|
||||
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
|
||||
{count: length});
|
||||
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
|
||||
r2 = value7;
|
||||
}
|
||||
} else if (r0 > 0) {
|
||||
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
|
||||
{count: r0});
|
||||
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
|
||||
r2 = value9;
|
||||
} else if (r24 > 0) {
|
||||
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
|
||||
{count: r24});
|
||||
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
|
||||
r2 = value8;
|
||||
} else {
|
||||
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
|
||||
{count: length});
|
||||
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
|
||||
r2 = value7;
|
||||
}
|
||||
if (r0 > 0) {
|
||||
if (length === r0) {
|
||||
var viewProps = {style: [styles.attachmentPreview, styles.attachmentPreviewVideo]};
|
||||
defaultImport5 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
var defaultImport5Props = {style: styles.videoThumbnail};
|
||||
defaultImport6 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
defaultImport5Props.source = {uri: defaultImport6.getMobileOptimizedSrc(attachments[0].proxy_url, 56,
|
||||
56,
|
||||
'png')};
|
||||
defaultImport5Props.width = 56;
|
||||
defaultImport5Props.height = 56;
|
||||
r18 = <View {...viewProps}>{((Component) => <Component {...defaultImport5Props} />)(defaultImport5)}{((CirclePlayIcon) => <CirclePlayIcon style={styles.playIcon} size="md" color="white" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else if (length > 0) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
|
||||
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
property = embeds[0];
|
||||
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
|
||||
|
||||
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
r18 = null;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
}
|
||||
}
|
||||
} else if (length > 0) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
property = embeds[0];
|
||||
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
|
||||
var viewBindingProps = {style: styles.attachmentPreview};
|
||||
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
|
||||
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
|
||||
|
||||
|
||||
|
||||
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
} else {
|
||||
r18 = null;
|
||||
r21 = r1;
|
||||
r23 = r2;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r18 = null;
|
||||
r21 = null;
|
||||
r23 = null;
|
||||
}
|
||||
if (length > 1) {
|
||||
if (r18 == null) {
|
||||
r5 = r18;
|
||||
} else {
|
||||
object3 = {'shape': null, 'x': 28, 'y': 28, 'width': 32, 'height': 32, 'cornerRadius': 12};
|
||||
object3.shape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape.RoundedRect;
|
||||
r5 = <View style={styles.attachmentPreviewOverflow}>{((Component) => <Component cutouts={[object3]}>{r18}</Component>)(importDefault(7599) /* metro dependency 7599: ClipView */)}<Text style={styles.overflowCount} variant="text-xs/semibold" color="text-default">{'+'}{length - 1}</Text></View>;
|
||||
}
|
||||
} else {
|
||||
r5 = r18;
|
||||
}
|
||||
const items5 = [<View style={styles.quote} />];
|
||||
const items6 = [checkpointData != null && <Text variant="text-md/medium">{intl.string((importDefault(2710) /* metro dependency 2710: CheckpointMessages */).goiR2u)}</Text>];
|
||||
items6[1] = hasContent && <MessagePreview_76687 message={message} contentMessage={contentMessage} attachmentCount={length} />;
|
||||
const value22 = length > 0;
|
||||
if (value22) {
|
||||
var viewBinding2Props = {style: styles.attachmentRow};
|
||||
value23 = r21 != null;
|
||||
if (value23) {
|
||||
object2 = {};
|
||||
r22 = hasContent ? 'sm' : 'custom';
|
||||
object2.size = r22;
|
||||
r22 = !hasContent && styles.largeIcon;
|
||||
object2.style = r22;
|
||||
object2.color = 'text-muted';
|
||||
r19 = ((Component) => <Component {...object2} />)(r21);
|
||||
} else {
|
||||
r19 = value23;
|
||||
}
|
||||
items7 = [r19];
|
||||
r19 = r23 != null && <Text variant={hasContent ? 'text-sm/medium' : 'text-md/medium'} color="text-muted">{r23}</Text>;
|
||||
items7[1] = r19;
|
||||
r8 = <View {...viewBinding2Props}>{items7}</View>;
|
||||
} else {
|
||||
r8 = value22;
|
||||
}
|
||||
items6[2] = r8;
|
||||
items5[1] = <View style={styles.contentWrapper}>{items6}</View>;
|
||||
items5[2] = r5;
|
||||
const value33 = checkpointData != null;
|
||||
if (value33) {
|
||||
var viewBinding3Props = {style: styles.attachmentPreview};
|
||||
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
var defaultImport8Props = {'style': null, 'width': 56, 'height': 56, style: {backgroundColor: primaryColor}};
|
||||
value = require(8382) /* metro dependency 8382: CheckpointUtils */;
|
||||
defaultImport8Props.source = {uri: value.getCardAssetUrl(checkpointData.cardId ?? 0)};
|
||||
value = <View {...viewBinding3Props}><FastImage {...defaultImport8Props} /></View>;
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = value33;
|
||||
}
|
||||
items5[3] = r5;
|
||||
return (
|
||||
<View style={styles.forwardPreview}>
|
||||
{items5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun76688(a0) { // fn#76688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:1337, offset: 0x01de0513, size: 126 bytes, params: 2, frame: 14
|
||||
const MessageContextType = (require(8368) /* metro dependency 8368: RowGeneratorTypes */).MessageContextType;
|
||||
const SEARCH = MessageContextType.SEARCH;
|
||||
a0.contextType = SEARCH;
|
||||
a0.truncation = {'numberOfLines': null, 'expandable': false, 'seeMoreLabel': '...',
|
||||
numberOfLines: attachmentCount > 0 ? 1 : 2, seeMoreLabelColor: env0_1.seeMoreLabelColor};
|
||||
a0.message.edited = '';
|
||||
}
|
||||
|
||||
function _fun76689() { // fn#76689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:1557, offset: 0x01de0591, size: 72 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
|
||||
value = new value();
|
||||
value.setOptions({'renderEmbeds': false, 'renderReactions': false, 'inlineEmbedMedia': false,
|
||||
'inlineAttachmentMedia': false, 'animateEmoji': true, 'gifAutoPlay': false, 'timestampHourCycle': 0,
|
||||
'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInstanceEmbed': false,
|
||||
'renderActivityInviteEmbed': false, 'renderComponents': false, 'renderThreadEmbeds': false,
|
||||
'renderReplies': false, 'renderCommunicationDisabled': false, 'renderAttachments': false,
|
||||
'renderExecutedCommands': false, 'renderPolls': false, 'renderSharedClientTheme': false,
|
||||
'renderForumPostActions': false, 'ignoreMentioned': false, 'ignoreEmbedDescriptionCache': false,
|
||||
'forceHideSimpleEmbedContent': false, 'enableSwipeActions': false, 'useAlternateEmbedColors': false});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun76691(a0) { // fn#76691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:2944, offset: 0x01de0e67, size: 44 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(9779) /* metro dependency 9779: MosaicMediaType */).getMosaicMediaTypeForAttachment(a0, true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 9596; source: modules/forwarding/native/ForwardStaffToNonStaffWarningModal.tsx; dependencies: [33, 4500, 1244, 2] */
|
||||
function _fun75200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9782:6, offset: 0x01da5c61, size: 135 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_2 = value.jsx;
|
||||
const env0_3 = value.Fragment;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardStaffToNonStaffWarningModal.tsx');
|
||||
exports.default = ForwardStaffToNonStaffWarningModal;
|
||||
}
|
||||
|
||||
function ForwardStaffToNonStaffWarningModal({onConfirm, onBack}) { // fn#75201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9782:244, offset: 0x01da5ce8, size: 370 bytes, params: 2, frame: 28
|
||||
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const YrV3I9 = (require(1244) /* metro dependency 1244: indexNative */).t.YrV3I9;
|
||||
object2.title = Reflect.apply(string, intl, [YrV3I9]);
|
||||
string = intl.string;
|
||||
const MXSMtl = (require(1244) /* metro dependency 1244: indexNative */).t.MXSMtl;
|
||||
object2.content = Reflect.apply(string, intl, [MXSMtl]);
|
||||
const jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
|
||||
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
|
||||
string = intl.string;
|
||||
const X7eUJq = (require(1244) /* metro dependency 1244: indexNative */).t.X7eUJq;
|
||||
object2.actions = <><AlertActionButton text={Reflect.apply(string, intl,
|
||||
[X7eUJq])} onPress={onConfirm} key="confirm" /><AlertActionButton variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])} onPress={onBack} key="back" /></>;
|
||||
return <AlertModal {...object2} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 9600; source: modules/forwarding/native/ForwardingIcon.tsx; dependencies: [33, 9601, 2] */
|
||||
function _fun75253(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9786:6, offset: 0x01da78b3, size: 116 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardingIcon.tsx');
|
||||
exports.default = ForwardingIcon;
|
||||
}
|
||||
|
||||
function ForwardingIcon(a0) { // fn#75254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9786:198, offset: 0x01da7927, size: 55 bytes, params: 2, frame: 14
|
||||
const ArrowAngleRightUpIcon = (require(9601) /* metro dependency 9601: ArrowAngleRightUpIcon */).ArrowAngleRightUpIcon;
|
||||
return <ArrowAngleRightUpIcon {...a0} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user