64 lines
3.6 KiB
TypeScript
64 lines
3.6 KiB
TypeScript
/* Metro module 8764; source: modules/markup/BioMarkupUtils.tsx; dependencies: [6623, 6624, 4599, 1393, 6713, 6622, 3855, 22, 2] */
|
|
import Module01393 from '../../by-id/module-01393.js'; /* Metro dependency 1393 */
|
|
import Module03855 from '../../by-id/module-03855.js'; /* Metro dependency 3855 */
|
|
import MarkupUtils from './MarkupUtils.tsx'; /* Metro dependency 6622 */
|
|
import CombineMarkupRules from './combineMarkupRules.tsx'; /* Metro dependency 6623 */
|
|
import MarkupRules from './MarkupRules.tsx'; /* Metro dependency 6624 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as MarkupParserModule from '../../external/discord_common/js/packages/markup/MarkupParser.tsx'; /* Metro dependency 6713 */
|
|
|
|
function _fun68582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8949:6, offset: 0x01c55088, size: 416 bytes, params: 8, frame: 23
|
|
const getOrParseBioAST2 = getOrParseBioAST;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = CombineMarkupRules;
|
|
const PROFILE_BIO_RULES = (MarkupRules).PROFILE_BIO_RULES;
|
|
items2 = [PROFILE_BIO_RULES];
|
|
items2[1] = (importDefault(4599) /* metro dependency 4599: MarkupReactRulesNative */)({'enableBuildOverrides': false,
|
|
'mustConfirmExternalLink': true});
|
|
value = value(items2);
|
|
const value5 = new (Module01393)({max: 2000});
|
|
let reactParserFor = MarkupParserModule.reactParserFor;
|
|
const value8 = Reflect.apply(reactParserFor, MarkupParserModule, [value]);
|
|
const env0_4 = (MarkupUtils).astParserFor(value);
|
|
reactParserFor = MarkupParserModule.reactParserFor;
|
|
value = (importDefault(22) /* metro dependency 22 */).omit(value, ['link', 'url', 'autolink', 'customEmoji',
|
|
'emoji', 'commandMention']);
|
|
value = Reflect.apply(reactParserFor, MarkupParserModule, [CombineMarkupRules([value, {emoji: {react: function() {
|
|
return null;
|
|
}}}])]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/markup/BioMarkupUtils.tsx');
|
|
exports.parseBioReact = value8;
|
|
exports.getOrParseBioAST = getOrParseBioAST2;
|
|
exports.parseBioReactWithCachedAST = parseBioReactWithCachedAST;
|
|
exports.parseBioReactWithoutScrolling = value;
|
|
function getOrParseBioAST(a0) { // fn#68583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8949:277, offset: 0x01c55228, size: 60 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var value3;
|
|
const value2 = env0_3.get(a0);
|
|
if (value2 != null) {
|
|
r0 = value2;
|
|
} else {
|
|
value3 = env0_4(a0, true);
|
|
env0_3.set(a0, value3);
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function parseBioReactWithCachedAST(a0) { // fn#68585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8949:659, offset: 0x01c55264, size: 109 bytes, params: 2, frame: 17
|
|
if (a0.trim().length === 0) {
|
|
return null;
|
|
}
|
|
const orParseBioAST = getOrParseBioAST(a0);
|
|
const defaultImport = Module03855;
|
|
const reactFor = defaultImport.reactFor;
|
|
const defaultImport2 = defaultImport;
|
|
return Reflect.apply(reactFor, defaultImport, [defaultImport2.ruleOutput(env0_2, 'react')])(orParseBioAST);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68582, 8764, [6623, 6624, 4599, 1393, 6713, 6622, 3855, 22,
|
|
2]) /* metro module 8764, dependencies: [6623, 6624, 4599, 1393, 6713, 6622, 3855, 22, 2] */;
|