Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
482 lines
14 KiB
TypeScript
482 lines
14 KiB
TypeScript
// Module ID: 9587
|
|
// Function ID: 9588
|
|
// Name: MarkupInlineChannelMentionRules
|
|
// Dependencies: [19, 21, 7542, 1177, 1370, 2]
|
|
// Exports: createInlineChannelReact, inlineChannelMentionReact, inlineChannelReact
|
|
|
|
// Module 9587 (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(7542).smartOutput(inContent, fn, key);
|
|
const obj3 = u1F4AC(7542);
|
|
} else {
|
|
const obj = { children: null };
|
|
const items = [fn(inContent.inContent, key), " \u203A ", u1F4AC(7542).smartOutput(inContent, fn, key)];
|
|
obj.children = items;
|
|
smartOutputResult = jsxs(u1F4AC(1177).LegacyText, { children: null }, key.key);
|
|
const obj2 = u1F4AC(7542);
|
|
}
|
|
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(1177);
|
|
let obj2 = { children: null };
|
|
let items = [str2, , ];
|
|
let obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1370).assertNever(iconType);
|
|
const obj = str(1370);
|
|
}
|
|
};
|
|
}
|
|
export const inlineChannelReact = (iconType, output, key) => {
|
|
iconType = iconType.iconType;
|
|
switch (iconType) {
|
|
case "text":
|
|
let str2 = "#";
|
|
str = undefined;
|
|
let tmp9 = str(1177);
|
|
let obj2 = { children: null };
|
|
let items = [str2, , ];
|
|
let obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1177);
|
|
obj2 = { children: null };
|
|
items = [str2, , ];
|
|
obj3 = str(7542);
|
|
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(1370).assertNever(iconType);
|
|
const obj = str(1370);
|
|
}
|
|
};
|