decord/alpha/source/modules/markup/native/MarkupInlineChannelMentionRules.tsx

319 lines
8 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 11721
// Function ID: 11722
// Name: MarkupInlineChannelMentionRules
2026-10-09 10:00:15 +00:00
// Dependencies: [19, 21, 8109, 1200, 1388, 2]
2026-07-29 08:29:29 +00:00
// Exports: createInlineChannelReact, inlineChannelMentionReact, inlineChannelReact
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 11721 (MarkupInlineChannelMentionRules)
2026-10-03 08:58:59 +00:00
import Fragment from "Fragment" /* 21 */;
2026-10-08 09:57:35 +00:00
import native from "native" /* 1200 */;
2026-10-09 10:00:15 +00:00
import GlobalUtils from "GlobalUtils" /* 1388 */;
import MarkupRulesUtils from "MarkupRulesUtils" /* 8109 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-08 09:57:35 +00:00
function inlineChannelReact(iconType, output, key) {
2026-10-03 08:58:59 +00:00
let items;
let obj3;
let smartOutputResult;
let str2;
let tmp13;
let tmp9;
iconType = iconType.iconType;
switch (iconType) {
case "text":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "text-nsfw":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "text-spoiler":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "announcement":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "announcement-nsfw":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "announcement-spoiler":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "forum":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "forum-nsfw":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "forum-spoiler":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "media":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "media-nsfw":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "app":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "app-nsfw":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "app-spoiler":
2026-10-03 08:58:59 +00:00
{
str2 = "#";
str = undefined;
2026-10-03 08:58:59 +00:00
tmp9 = native;
let LegacyText = tmp9.LegacyText;
items = [str2, , ];
2026-10-03 08:58:59 +00:00
obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
2026-10-03 08:58:59 +00:00
tmp13 = <LegacyText key={arg2.key}>{items}</LegacyText>;
return tmp13;
2026-10-03 08:58:59 +00:00
}
case "thread":
2026-10-03 08:58:59 +00:00
{
str = "\"";
str2 = "\"";
2026-10-03 08:58:59 +00:00
break;
}
case "post":
2026-10-03 08:58:59 +00:00
{
str = "\"";
str2 = "\"";
2026-10-03 08:58:59 +00:00
break;
}
case "message":
2026-10-03 08:58:59 +00:00
{
str2 = str;
2026-10-03 08:58:59 +00:00
break;
}
case "voice":
2026-10-03 08:58:59 +00:00
{
break;
}
case "voice-locked":
2026-10-03 08:58:59 +00:00
{
break;
}
case "voice-nsfw":
2026-10-03 08:58:59 +00:00
{
break;
}
case "voice-spoiler":
2026-10-03 08:58:59 +00:00
{
break;
}
case "stage":
2026-10-03 08:58:59 +00:00
{
break;
}
case "stage-locked":
2026-10-03 08:58:59 +00:00
{
break;
}
case "locked":
2026-10-03 08:58:59 +00:00
{
break;
}
case "guide":
2026-10-03 08:58:59 +00:00
{
break;
}
case "home":
2026-10-03 08:58:59 +00:00
{
break;
}
case "browse":
2026-10-03 08:58:59 +00:00
{
break;
}
case "customize":
2026-10-03 08:58:59 +00:00
{
break;
}
case "linked-roles":
2026-10-03 08:58:59 +00:00
{
break;
}
default:
2026-10-03 08:58:59 +00:00
{
const obj = GlobalUtils;
obj.assertNever(iconType);
break;
}
}
2026-10-08 09:57:35 +00:00
}
2026-10-03 08:58:59 +00:00
const jsxs = Fragment.jsxs;
let c0 = "\u{1F4AC}";
const result = size.fileFinishedImporting("modules/markup/native/MarkupInlineChannelMentionRules.tsx");
export const inlineChannelMentionReact = function inlineChannelMentionReact(inContent, fn, key) {
let smartOutputResult;
if (null == inContent.inContent) {
const obj3 = MarkupRulesUtils;
smartOutputResult = obj3.smartOutput(inContent, fn, key);
} else {
const LegacyText = native.LegacyText;
const items = [fn(inContent.inContent, key), " \u203A ", ];
const obj2 = MarkupRulesUtils;
items[2] = obj2.smartOutput(inContent, fn, key);
smartOutputResult = <LegacyText key={arg2.key}>{items}</LegacyText>;
}
2026-10-03 08:58:59 +00:00
return smartOutputResult;
2026-07-29 08:29:29 +00:00
};
2026-10-03 08:58:59 +00:00
export function createInlineChannelReact(arg0) {
let str = arg0;
if (arg0 === undefined) {
str = "\u{1F4AC}";
}
return inlineChannelReact;
}
export { inlineChannelReact };