Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,63 @@
|
||||
/* Metro module 14258; source: modules/interaction_components/native/display/TextDisplayComponent.tsx; dependencies: [57, 31, 27, 4502, 1934, 8356, 33, 477, 4020, 14259, 8357, 44, 6622, 8349, 566, 3829, 9874, 11380, 2] */
|
||||
function _fun107851(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14455:6, offset: 0x0230b37e, size: 305 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 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const requireNativeComponent = (require(27) /* metro dependency 27 */).requireNativeComponent;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const env0_6 = (require(8356) /* metro dependency 8356: InteractionComponentConstants */).TEXT_DISPLAY_COMPONENT_MARKDOWN_RENDER_OPTIONS;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
let value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (value.isAndroid()) {
|
||||
value = importDefault(14259) /* metro dependency 14259: TextDisplayComponentViewNativeComponent */;
|
||||
} else {
|
||||
value = require(4020) /* metro dependency 4020: FabricUtils */;
|
||||
if (value.isFabric()) {
|
||||
value = importDefault(14259) /* metro dependency 14259: TextDisplayComponentViewNativeComponent */;
|
||||
} else {
|
||||
value = requireNativeComponent('DCDTextDisplayComponentView');
|
||||
}
|
||||
}
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/interaction_components/native/display/TextDisplayComponent.tsx');
|
||||
exports.default = TextDisplayComponent;
|
||||
}
|
||||
|
||||
function TextDisplayComponent(a0) { // fn#107852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14455:438, offset: 0x0230b4af, size: 562 bytes, params: 2, frame: 24
|
||||
const value2 = (require(8357) /* metro dependency 8357: ComponentStateContext */).useComponentContainerId();
|
||||
const channelId = SelectedChannelStore.getChannelId();
|
||||
(importDefault(44) /* metro dependency 44 */)(channelId, 'channelId not available in TextDisplayComponent');
|
||||
const defaultImport2 = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
const parseToAST = defaultImport2.parseToAST;
|
||||
const content = a0.content;
|
||||
const renderMessageMarkupModule = require(8349) /* metro dependency 8349: renderMessageMarkup */;
|
||||
const getInitialParserState = renderMessageMarkupModule.getInitialParserState;
|
||||
const toAST = Reflect.apply(parseToAST, defaultImport2, [content, true, Reflect.apply(getInitialParserState,
|
||||
renderMessageMarkupModule, [{channelId: channelId,
|
||||
renderOptions: TEXT_DISPLAY_COMPONENT_MARKDOWN_RENDER_OPTIONS}])]);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
const value6 = env0_3(Reflect.apply(useStateFromStoresArray, fluxModule, [[AccessibilityStore], function() {
|
||||
return [AccessibilityStore.roleStyle, AccessibilityStore.alwaysShowLinkDecorations];
|
||||
}]), 2);
|
||||
const property = value6[0];
|
||||
const property2 = value6[1];
|
||||
const AnimateEmoji = (require(3829) /* metro dependency 3829: UserSettings */).AnimateEmoji;
|
||||
const value7 = AnimateEmoji.useSetting();
|
||||
const binding = env0_8;
|
||||
const object = {};
|
||||
copyDataProperties(object, a0, undefined);
|
||||
object['content'] = toAST;
|
||||
return ((Component) => <Component model={object} markdownTextRenderOptions={{containerId: value2,
|
||||
shouldAnimateEmoji: value7, shouldShowLinkDecorations: property2, shouldShowRoleDot: property === 'dot',
|
||||
shouldShowRoleOnName: property === 'username'}} onTapLink={onTapLink} onLongPressLink={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onLongPressLink} onTapAttachmentLink={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onTapAttachmentLink} onLongPressAttachmentLink={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onLongPressAttachmentLink} onTapMention={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onTapMention} onTapTimestamp={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onTapTimestamp} onTapInlineCode={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onTapInlineCode} onTapEmoji={(require(11380) /* metro dependency 11380: contentHandlers */).contentHandlers.onTapEmoji} style={{width: '100%'}} />)(binding);
|
||||
}
|
||||
|
||||
function TextDisplayComponentOnTapLink({nativeEvent}) { // fn#107854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14455:1043, owner: TextDisplayComponent.onTapLink, offset: 0x0230b702, size: 60 bytes, params: 2, frame: 14
|
||||
const data = nativeEvent.data;
|
||||
const value = environment.__proto__;
|
||||
(require(9874) /* metro dependency 9874: handleMessagesTapLink */).handleMessagesTapURLLink(data, env0_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user