2026-09-22 07:41:18 +00:00
|
|
|
// Module ID: 8358
|
|
|
|
|
// Function ID: 8359
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: MarkupRulesUtils
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isStaticRouteIconType, smartOutput
|
|
|
|
|
|
2026-09-22 07:41:18 +00:00
|
|
|
// Module 8358 (MarkupRulesUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/markup/MarkupRulesUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const smartOutput = function smartOutput(node, output, state) {
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof node.content !== "string") {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined !== node.content) {
|
|
|
|
|
let content = output(node.content, state);
|
|
|
|
|
}
|
|
|
|
|
return content;
|
|
|
|
|
}
|
|
|
|
|
content = node.content;
|
|
|
|
|
};
|
|
|
|
|
export function isStaticRouteIconType(channelId) {
|
|
|
|
|
let tmp = "home" === channelId;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = "browse" === channelId;
|
|
|
|
|
}
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = "customize" === channelId;
|
|
|
|
|
}
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = "guide" === channelId;
|
|
|
|
|
}
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = "linked-roles" === channelId;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|