68 lines
2.4 KiB
TypeScript
68 lines
2.4 KiB
TypeScript
// Module ID: 9682
|
|
// Function ID: 9683
|
|
// Name: parseBioReact
|
|
// Dependencies: [4836, 4837, 4371, 1405, 8247, 4370, 4096, 12, 2]
|
|
// Exports: getOrParseBioAST, parseBioReactWithCachedAST
|
|
|
|
// Module 9682 (parseBioReact)
|
|
import privDefault from "priv" /* 1405 */;
|
|
import tDefault from "t" /* 4096 */;
|
|
import MarkupTextDefault from "MarkupText" /* 4371 */;
|
|
import parseLinkDefault from "parseLink" /* 4837 */;
|
|
import importDefaultResult from "combineMarkupRules" /* 4836 */;
|
|
import importAllResult from "reactParserFor" /* 8247 */;
|
|
import importDefaultResult1 from "get defaultRules" /* 4370 */;
|
|
import importDefaultResult3 from "apply" /* 12 */;
|
|
|
|
const items = [parseLinkDefault.PROFILE_BIO_RULES, MarkupTextDefault({ enableBuildOverrides: false, mustConfirmExternalLink: true })];
|
|
const importDefaultResultResult = importDefaultResult(items);
|
|
let closure_3 = new privDefault({ max: 2000 });
|
|
let tmp4 = new privDefault({ max: 2000 });
|
|
const reactParserForResult = importAllResult.reactParserFor(importDefaultResultResult);
|
|
let closure_4 = importDefaultResult1.astParserFor(importDefaultResultResult);
|
|
const importAllResult1 = importAllResult;
|
|
const importDefaultResult2 = importDefaultResult;
|
|
const items1 = [
|
|
importDefaultResult3.omit(importDefaultResultResult, ["link", "url", "autolink", "customEmoji", "emoji", "commandMention"]),
|
|
{
|
|
emoji: {
|
|
react() {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
];
|
|
let obj = {
|
|
react() {
|
|
return null;
|
|
}
|
|
};
|
|
const reactParserForResult1 = importAllResult1.reactParserFor(importDefaultResult2(items1));
|
|
let result = require("set").fileFinishedImporting("modules/markup/BioMarkupUtils.tsx");
|
|
|
|
export const parseBioReact = reactParserForResult;
|
|
export const getOrParseBioAST = function getOrParseBioAST(arg0) {
|
|
let value = store.get(arg0);
|
|
if (null == value) {
|
|
const tmp3 = callback(arg0, true);
|
|
const result = store.set(arg0, tmp3);
|
|
value = tmp3;
|
|
}
|
|
return value;
|
|
};
|
|
export const parseBioReactWithCachedAST = function parseBioReactWithCachedAST(description) {
|
|
if (0 === description.trim().length) {
|
|
return null;
|
|
} else {
|
|
let value = store.get(description);
|
|
if (null == value) {
|
|
const tmp4 = callback(description, true);
|
|
const result = obj.set(description, tmp4);
|
|
value = tmp4;
|
|
}
|
|
obj = store;
|
|
const obj2 = tDefault;
|
|
return obj2.reactFor(tDefault.ruleOutput(closure_2, "react"))(value);
|
|
}
|
|
};
|
|
export const parseBioReactWithoutScrolling = reactParserForResult1;
|