decord/source/modules/markup/native/MarkupInlineChannelMentionRules.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

482 lines
14 KiB
TypeScript

// Module ID: 10160
// Function ID: 10161
// Name: MarkupInlineChannelMentionRules
// Dependencies: [19, 21, 8112, 1178, 1369, 2]
// Exports: createInlineChannelReact, inlineChannelMentionReact, inlineChannelReact
// Module 10160 (MarkupInlineChannelMentionRules)
import noop from "module_19" /* 19 */;
const jsxs = fn(21).jsxs;
let c0 = "\u{1F4AC}";
const size = fn(2);
const result = size.fileFinishedImporting("modules/markup/native/MarkupInlineChannelMentionRules.tsx");
export const inlineChannelMentionReact = function inlineChannelMentionReact(inContent, fn, key) {
if (null == inContent.inContent) {
let smartOutputResult = u1F4AC(8112).smartOutput(inContent, fn, key);
const obj3 = u1F4AC(8112);
} else {
const obj = { children: null };
const items = [fn(inContent.inContent, key), " \u203A ", u1F4AC(8112).smartOutput(inContent, fn, key)];
obj.children = items;
smartOutputResult = jsxs(u1F4AC(1178).LegacyText, { children: null }, key.key);
const obj2 = u1F4AC(8112);
}
return smartOutputResult;
};
export function createInlineChannelReact(arg0) {
if (arg0 === undefined) {
let str = "\u{1F4AC}";
}
return (iconType, output, key) => {
iconType = iconType.iconType;
switch (iconType) {
case "text":
let str2 = "#";
str = undefined;
let tmp9 = str(1178);
let obj2 = { children: null };
let items = [str2, , ];
let obj3 = str(8112);
let smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
let tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "text-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "text-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "announcement":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "announcement-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "announcement-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "forum":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "forum-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "forum-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "media":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "media-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "app":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "app-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "app-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "thread":
str = "\"";
str2 = "\"";
break;
case "post":
str = "\"";
str2 = "\"";
break;
case "message":
str2 = str;
break;
case "voice":
break;
case "voice-locked":
break;
case "voice-nsfw":
break;
case "voice-spoiler":
break;
case "stage":
break;
case "stage-locked":
break;
case "locked":
break;
case "guide":
break;
case "home":
break;
case "browse":
break;
case "customize":
break;
case "linked-roles":
break;
default:
str(1369).assertNever(iconType);
const obj = str(1369);
}
};
}
export const inlineChannelReact = (iconType, output, key) => {
iconType = iconType.iconType;
switch (iconType) {
case "text":
let str2 = "#";
str = undefined;
let tmp9 = str(1178);
let obj2 = { children: null };
let items = [str2, , ];
let obj3 = str(8112);
let smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
let tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "text-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "text-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "announcement":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "announcement-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "announcement-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "forum":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "forum-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "forum-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "media":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "media-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "app":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "app-nsfw":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "app-spoiler":
str2 = "#";
str = undefined;
tmp9 = str(1178);
obj2 = { children: null };
items = [str2, , ];
obj3 = str(8112);
smartOutputResult = obj3.smartOutput(iconType, output, key);
items[1] = smartOutputResult;
items[2] = str;
obj2.children = items;
tmp13 = <tmp9.LegacyText key={arg2.key}>{null}</tmp9.LegacyText>;
return tmp13;
case "thread":
str = "\"";
str2 = "\"";
break;
case "post":
str = "\"";
str2 = "\"";
break;
case "message":
str2 = str;
break;
case "voice":
break;
case "voice-locked":
break;
case "voice-nsfw":
break;
case "voice-spoiler":
break;
case "stage":
break;
case "stage-locked":
break;
case "locked":
break;
case "guide":
break;
case "home":
break;
case "browse":
break;
case "customize":
break;
case "linked-roles":
break;
default:
str(1369).assertNever(iconType);
const obj = str(1369);
}
};