190 lines
7.1 KiB
TypeScript
190 lines
7.1 KiB
TypeScript
// Metro module 4179 (f4180).
|
|
import MarkupReactRules_native from "./MarkupReactRules.native";
|
|
import combineMarkupRules from "./combineMarkupRules";
|
|
import Module12 from "../../_bundle/Module12";
|
|
import MarkupRules from "./MarkupRules";
|
|
import { reactParserFor, astParserFor } from "../../_bundle/Module7768";
|
|
let c2405_6, c2405_7, c2405_8, c2405_9, c2405_10, c2405_11, c2405_12, c2405_13, c2405_14, c2405_15, c2405_16, c2405_17, c2405_18, c2405_19, c2405_20, c2405_21, c2405_22, c2405_23, c2405_24, c2405_25, c2405_26, c2405_27, c2405_28, c2405_29, c2405_30, c2405_31;
|
|
const _excluded = ["url", "autolink", "link", "mailto", "tel"];
|
|
let c2405_4 = {
|
|
enableBuildOverrides: false,
|
|
enableEmojiClick: true
|
|
};
|
|
let c2405_5 = Module12.once(() => {
|
|
const r15 = [MarkupReactRules_native({
|
|
enableBuildOverrides: true
|
|
})];
|
|
MarkupRules.RULES.mention;
|
|
return combineMarkupRules([MarkupRules.RULES, ...r15, {}]);
|
|
});
|
|
c2405_6 = Module12.once(() => {
|
|
const r18 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.RULES.mention;
|
|
return Module12.omit(combineMarkupRules([MarkupRules.RULES, ...r18, {}]), "paragraph", "newline");
|
|
});
|
|
c2405_7 = Module12.once(() => {
|
|
const r19 = [MarkupReactRules_native({
|
|
...c2405_4,
|
|
emojiTooltipPosition: "bottom",
|
|
shouldCloseDefaultModals: true,
|
|
shouldStopPropagation: true
|
|
}), {
|
|
codeBlock: {
|
|
react: MarkupRules.RULES.text.react
|
|
}
|
|
}];
|
|
MarkupRules.CHANNEL_TOPIC_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.CHANNEL_TOPIC_RULES, ...r19, {}]);
|
|
});
|
|
c2405_8 = Module12.once(() => {
|
|
const r17 = [MarkupReactRules_native({
|
|
...c2405_4,
|
|
enableEmojiClick: false
|
|
})];
|
|
MarkupRules.VOICE_CHANNEL_STATUS_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.VOICE_CHANNEL_STATUS_RULES, ...r17, {}]);
|
|
});
|
|
c2405_9 = Module12.once(() => {
|
|
const r15 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.EMBED_TITLE_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.EMBED_TITLE_RULES, ...r15, {}]);
|
|
});
|
|
c2405_10 = Module12.once(() => {
|
|
const r18 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.EMBED_TITLE_RULES.mention;
|
|
return Module12.omit(combineMarkupRules([MarkupRules.EMBED_TITLE_RULES, ...r18, {}]), _excluded);
|
|
});
|
|
c2405_11 = Module12.once(() => {
|
|
const r15 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.INLINE_REPLY_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.INLINE_REPLY_RULES, ...r15, {}]);
|
|
});
|
|
c2405_12 = Module12.once(() => {
|
|
const r15 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.GUILD_VERIFICATION_FORM_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.GUILD_VERIFICATION_FORM_RULES, ...r15, {}]);
|
|
});
|
|
c2405_13 = Module12.once(() => {
|
|
const r17 = [MarkupReactRules_native({
|
|
...c2405_4,
|
|
shouldStopPropagation: true
|
|
})];
|
|
MarkupRules.GUILD_EVENT_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.GUILD_EVENT_RULES, ...r17, {}]);
|
|
});
|
|
c2405_14 = Module12.once(() => {
|
|
const r15 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.AUTO_MODERATION_SYSTEM_MESSAGE_RULES.mention;
|
|
return combineMarkupRules([MarkupRules.AUTO_MODERATION_SYSTEM_MESSAGE_RULES, ...r15, {}]);
|
|
});
|
|
c2405_15 = Module12.once(() => {
|
|
const omit = Module12.omit;
|
|
const r18 = [MarkupReactRules_native(c2405_4)];
|
|
MarkupRules.RULES.mention;
|
|
return omit.apply(Module12, [combineMarkupRules([MarkupRules.RULES, ...r18, {}]), "paragraph", "newline", "strong", "codeBlock", "inlineCode", "u", "list", "heading", "subtext", ..._excluded]);
|
|
});
|
|
const lockscreenWidgetMessageRules = {
|
|
text: MarkupRules.RULES.text
|
|
};
|
|
c2405_16 = Module12.once(() => reactParserFor(c2405_5()));
|
|
c2405_17 = Module12.once(() => reactParserFor(c2405_7()));
|
|
c2405_18 = Module12.once(() => reactParserFor(c2405_8()));
|
|
c2405_19 = Module12.once(() => reactParserFor(c2405_9()));
|
|
c2405_20 = Module12.once(() => reactParserFor(c2405_10()));
|
|
c2405_21 = Module12.once(() => reactParserFor(c2405_11()));
|
|
c2405_22 = Module12.once(() => reactParserFor(c2405_12()));
|
|
c2405_23 = Module12.once(() => reactParserFor(c2405_13()));
|
|
c2405_24 = Module12.once(() => reactParserFor(c2405_14()));
|
|
c2405_25 = Module12.once(() => reactParserFor(c2405_6()));
|
|
c2405_26 = Module12.once(() => astParserFor(c2405_5()));
|
|
c2405_27 = Module12.once(() => astParserFor(c2405_7()));
|
|
c2405_28 = Module12.once(() => astParserFor(c2405_9()));
|
|
c2405_29 = Module12.once(() => astParserFor(c2405_10()));
|
|
c2405_30 = Module12.once(() => astParserFor(c2405_11()));
|
|
c2405_31 = Module12.once(() => astParserFor(c2405_14()));
|
|
const r155 = {
|
|
combineAndInjectMentionRule: function combineAndInjectMentionRule(a0, a1) {
|
|
a0.mention;
|
|
return combineMarkupRules([a0, ...a1, {}]);
|
|
},
|
|
createReactRules: MarkupReactRules_native,
|
|
defaultReactRuleOptions: c2405_4
|
|
};
|
|
Object.defineProperty(r155, "defaultRules", {
|
|
get: function() {
|
|
return c2405_5();
|
|
},
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r155, "guildEventRules", {
|
|
get: function() {
|
|
return c2405_13();
|
|
},
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r155, "notifCenterV2MessagePreviewRules", {
|
|
get: function() {
|
|
return c2405_15();
|
|
},
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
r155.lockscreenWidgetMessageRules = lockscreenWidgetMessageRules;
|
|
r155.astParserFor = astParserFor;
|
|
r155.reactParserFor = reactParserFor;
|
|
r155.parse = function parse(...args) {
|
|
return c2405_16().apply(void 0, [...args]);
|
|
};
|
|
r155.parseTopic = (a0, a1, a2, a3) => c2405_17()(a0, a1, {
|
|
allowLinks: true,
|
|
...a2
|
|
}, a3);
|
|
r155.parseVoiceChannelStatus = function parseVoiceChannelStatus(...args) {
|
|
return c2405_18().apply(void 0, [...args]);
|
|
};
|
|
r155.parseEmbedTitle = function parseEmbedTitle(...args) {
|
|
return c2405_19().apply(void 0, [...args]);
|
|
};
|
|
r155.parseEmbedTitleWithoutLinks = function parseEmbedTitleWithoutLinks(...args) {
|
|
return c2405_20().apply(void 0, [...args]);
|
|
};
|
|
r155.parseInlineReply = function parseInlineReply(...args) {
|
|
return c2405_21().apply(void 0, [...args]);
|
|
};
|
|
r155.parseGuildVerificationFormRule = function parseGuildVerificationFormRule(...args) {
|
|
return c2405_22().apply(void 0, [...args]);
|
|
};
|
|
r155.parseGuildEventDescription = function parseGuildEventDescription(...args) {
|
|
return c2405_23().apply(void 0, [...args]);
|
|
};
|
|
r155.parseAutoModerationSystemMessage = function parseAutoModerationSystemMessage(...args) {
|
|
return c2405_24().apply(void 0, [...args]);
|
|
};
|
|
r155.parseForumPostGuidelines = function parseForumPostGuidelines(...args) {
|
|
return c2405_25().apply(void 0, [...args]);
|
|
};
|
|
r155.parseToAST = function parseToAST(...args) {
|
|
return c2405_26().apply(void 0, [...args]);
|
|
};
|
|
r155.parseTopicToAST = function parseTopicToAST(...args) {
|
|
return c2405_27().apply(void 0, [...args]);
|
|
};
|
|
r155.parseEmbedTitleToAST = function parseEmbedTitleToAST(...args) {
|
|
return c2405_28().apply(void 0, [...args]);
|
|
};
|
|
r155.parseEmbedTitleWithoutLinksToAST = function parseEmbedTitleWithoutLinksToAST(...args) {
|
|
return c2405_29().apply(void 0, [...args]);
|
|
};
|
|
r155.parseInlineReplyToAST = function parseInlineReplyToAST(...args) {
|
|
return c2405_30().apply(void 0, [...args]);
|
|
};
|
|
r155.parseAutoModerationSystemMessageToAST = function parseAutoModerationSystemMessageToAST(...args) {
|
|
return c2405_31().apply(void 0, [...args]);
|
|
};
|
|
export default r155;
|