2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 7541
|
|
|
|
|
// Function ID: 7542
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: utils/ChangeLogUtils
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 17, 21, 4836, 576, 5753, 5301, 4832, 6401, 7542, 1930, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 7541 (utils/ChangeLogUtils)
|
2026-10-01 14:13:23 +00:00
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import nativeDefault from "native" /* 576 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import _modDef1930 from "module_1930" /* 1930 */;
|
|
|
|
|
import Text_Text from "Text/Text" /* 4832 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import LegacyTokens from "LegacyTokens" /* 5753 */;
|
|
|
|
|
import ManaTypeConsolidationExperiment from "ManaTypeConsolidationExperiment" /* 6401 */;
|
|
|
|
|
import MarkupRulesUtils from "MarkupRulesUtils" /* 7542 */;
|
|
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import createStyles_mod from "createStyles" /* 4836 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import CustomMarkup from "CustomMarkup" /* 5301 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
let item, length;
|
|
|
|
|
|
|
|
|
|
let c3;
|
|
|
|
|
let closure_4;
|
|
|
|
|
let obj2;
|
|
|
|
|
let obj3;
|
2026-09-26 17:57:22 +00:00
|
|
|
function ChangeLogLink(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let node;
|
|
|
|
|
let output;
|
|
|
|
|
let state;
|
|
|
|
|
let styling;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ node, state } = arg0);
|
|
|
|
|
({ output, styling } = arg0);
|
2026-10-01 14:13:23 +00:00
|
|
|
const Link = styling.components.Link;
|
|
|
|
|
const content = node.content;
|
|
|
|
|
const obj2 = { inLink: true };
|
2026-09-18 19:45:33 +00:00
|
|
|
const merged = Object.assign(state);
|
2026-10-01 14:13:23 +00:00
|
|
|
return <Link key={state.key} className={closure_6().link} target={node.target}>{output(content, obj2)}</Link>;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
|
|
|
|
function ChangeLogList(styling) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let state;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ output: require, state } = styling);
|
|
|
|
|
styling = styling.styling;
|
2026-10-01 14:13:23 +00:00
|
|
|
const node = styling.node;
|
2026-09-18 19:45:33 +00:00
|
|
|
let List = styling.components.List;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp = closure_6();
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!List) {
|
|
|
|
|
List = closure_3;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
let items = node.items;
|
|
|
|
|
return <List key={state.key} style={tmp.list}>{items.map((item, index) => jsx(styling.components.ListItem, {
|
2026-09-18 19:45:33 +00:00
|
|
|
children(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
item = require;
|
|
|
|
|
let closure_1 = state;
|
|
|
|
|
let closure_2 = arg0;
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [];
|
|
|
|
|
length = [];
|
|
|
|
|
item = item.forEach((type, index) => {
|
|
|
|
|
if ("list" === type.type) {
|
|
|
|
|
if (closure_4.length > 0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const push = items.push;
|
|
|
|
|
const obj = { variant: "text-sm/normal", children: closure_0(closure_4, closure_1) };
|
|
|
|
|
const Text = item(closure_2_2[7]).Text;
|
2026-09-18 19:45:33 +00:00
|
|
|
const merged = Object.assign(closure_2);
|
2026-10-01 14:13:23 +00:00
|
|
|
push(closure_2_5(Text, obj, -1));
|
2026-09-18 19:45:33 +00:00
|
|
|
closure_4 = [];
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const push2 = items.push;
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj2 = { children: closure_0(type, closure_1) };
|
2026-10-01 14:13:23 +00:00
|
|
|
push2(closure_2_5(closure_2_3, obj2, index));
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
|
|
|
|
closure_4.push(type);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (length.length > 0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let push = items.push;
|
|
|
|
|
let obj = { variant: "text-sm/normal", children: tmp(length, tmp2) };
|
|
|
|
|
let Text = Text_Text.Text;
|
2026-09-18 19:45:33 +00:00
|
|
|
let merged = Object.assign(arg0);
|
2026-10-01 14:13:23 +00:00
|
|
|
push(<Text key={-1} variant="text-sm/normal">{require(length, state)}</Text>);
|
2026-09-18 19:45:33 +00:00
|
|
|
length = [];
|
|
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
}, index))}</List>;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
|
|
|
|
function ChangeLogParagraph(state) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let node;
|
|
|
|
|
let output;
|
|
|
|
|
let styling;
|
2026-09-18 19:45:33 +00:00
|
|
|
state = state.state;
|
|
|
|
|
({ node, output, styling } = state);
|
|
|
|
|
const components = styling.components;
|
|
|
|
|
let Paragraph;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp = closure_6();
|
2026-09-18 19:45:33 +00:00
|
|
|
if (components != null) {
|
|
|
|
|
Paragraph = components.Paragraph;
|
|
|
|
|
}
|
|
|
|
|
if (Paragraph == null) {
|
|
|
|
|
Paragraph = Text_Text.Text;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
return <Paragraph key={state.key} variant="text-sm/normal" style={tmp.text}>{output(node.content, state)}</Paragraph>;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
|
|
|
|
function ChangeLogStrong(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let node;
|
|
|
|
|
let output;
|
|
|
|
|
let reactResult;
|
|
|
|
|
let state;
|
|
|
|
|
let tmpResult;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ node, output, state } = arg0);
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = ManaTypeConsolidationExperiment;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (obj.useManaTypeConsolidationExperiment("ChangeLogStrong")) {
|
|
|
|
|
let str;
|
2026-10-01 14:13:23 +00:00
|
|
|
const Text = tmp(4832).Text;
|
|
|
|
|
const tmp5 = jsx;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (state != null) {
|
|
|
|
|
str = state.textColor;
|
|
|
|
|
}
|
|
|
|
|
if (str == null) {
|
|
|
|
|
str = "text-default";
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = { variant: "experimental/body-sm/semibold", color: str, children: tmpResult.smartOutput(node, output, state) };
|
|
|
|
|
tmpResult = MarkupRulesUtils;
|
|
|
|
|
reactResult = tmp5(Text, obj2);
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
|
|
|
|
const strong = rules.strong;
|
|
|
|
|
reactResult = strong.react(node, output, state);
|
|
|
|
|
}
|
|
|
|
|
return reactResult;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
|
|
|
|
function ChangeLogImage(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let node;
|
|
|
|
|
let obj3;
|
|
|
|
|
let state;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ node, state } = arg0);
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = { uri: obj3.sanitizeUrl(node.target) };
|
|
|
|
|
obj3 = _modDef1930;
|
|
|
|
|
return <React3 key={state.key} style={closure_6().image} source={obj2} />;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
|
|
|
|
function ChangeLogBlockQuote(state) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let node;
|
|
|
|
|
let output;
|
2026-09-18 19:45:33 +00:00
|
|
|
state = state.state;
|
|
|
|
|
({ node, output } = state);
|
|
|
|
|
const tmp = closure_6();
|
2026-10-01 14:13:23 +00:00
|
|
|
({ variant: "text-sm/normal", style: tmp.text, children: output(node.content, state) });
|
|
|
|
|
const Text = Text_Text.Text;
|
|
|
|
|
return <_false key={state.key} style={tmp.container}>{null}</_false>;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
({ View: c3, Image: closure_4 } = react_native);
|
|
|
|
|
const jsx = Fragment.jsx;
|
|
|
|
|
let createStyles = createStyles_mod;
|
|
|
|
|
let obj = { link: obj2, list: { marginBottom: 10 }, image: { alignSelf: "center", flex: 1 }, container: obj3, text: { fontSize: 14, lineHeight: 18, marginBottom: 8, color: nativeDefault.colors.TEXT_MUTED } };
|
|
|
|
|
obj2 = { color: nativeDefault.colors.TEXT_LINK };
|
|
|
|
|
createStyles = createStyles.createStyles;
|
|
|
|
|
obj3 = { borderLeftWidth: 2, paddingLeft: 8, marginBottom: 10, borderLeftColor: LegacyTokens.DARK_PRIMARY_500_LIGHT_PRIMARY_300 };
|
|
|
|
|
({ fontSize: 14, lineHeight: 18, marginBottom: 8, color: nativeDefault.colors.TEXT_MUTED });
|
|
|
|
|
let closure_6 = createStyles(obj);
|
2026-09-26 17:57:22 +00:00
|
|
|
const rules = CustomMarkup.createRules({});
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj5 = {
|
2026-09-18 19:45:33 +00:00
|
|
|
link(inlineStoreParams) {
|
|
|
|
|
const styling = inlineStoreParams;
|
|
|
|
|
return {
|
|
|
|
|
react(node, output, state) {
|
2026-09-26 17:57:22 +00:00
|
|
|
return <ChangeLogLink accessibilityRole="link" node={arg0} output={arg1} state={arg2} styling={styling} />;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
lheading(dependencyMap) {
|
|
|
|
|
return {
|
|
|
|
|
react(className, fn, key) {
|
|
|
|
|
return jsx(dependencyMap.components.LHeading, { className: className.className, children: fn(className.content, key) }, key.key);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
heading(dependencyMap) {
|
|
|
|
|
return {
|
|
|
|
|
react(className, fn, key) {
|
|
|
|
|
return jsx(dependencyMap.components.Heading, { className: className.className, level: className.level, children: fn(className.content, key) }, key.key);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
list(styling) {
|
|
|
|
|
return {
|
|
|
|
|
react(node, output, state) {
|
2026-09-26 17:57:22 +00:00
|
|
|
return <ChangeLogList node={arg0} output={arg1} state={arg2} styling={styling} />;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
image: {
|
|
|
|
|
react(node, output, state) {
|
2026-09-26 17:57:22 +00:00
|
|
|
return <ChangeLogImage node={arg0} output={arg1} state={arg2} />;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
blockQuote: {
|
|
|
|
|
react(node, output, state) {
|
2026-09-26 17:57:22 +00:00
|
|
|
return <ChangeLogBlockQuote node={arg0} output={arg1} state={arg2} />;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
strong: {
|
|
|
|
|
react(node, output, state) {
|
2026-09-26 17:57:22 +00:00
|
|
|
return <ChangeLogStrong key={arg2.key} node={arg0} output={arg1} state={arg2} />;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
paragraph(dependencyMap) {
|
|
|
|
|
return {
|
|
|
|
|
react(node, output, state) {
|
2026-09-26 17:57:22 +00:00
|
|
|
return <ChangeLogParagraph node={arg0} output={arg1} state={arg2} styling={dependencyMap} />;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
2026-10-01 14:13:23 +00:00
|
|
|
const result = size.fileFinishedImporting("utils/native/ChangeLogUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const baseRules = rules;
|
|
|
|
|
export const customRules = obj5;
|