// Module ID: 7723 // Function ID: 7724 // Name: utils/ChangeLogUtils // Dependencies: [19, 17, 21, 4845, 576, 5939, 5485, 4841, 6587, 7724, 1930, 2] // Module 7723 (utils/ChangeLogUtils) import nativeDefault from "native" /* 576 */; import _modDef1930 from "module_1930" /* 1930 */; import Text_Text from "Text/Text" /* 4841 */; import noop from "module_19" /* 19 */; import CustomMarkup from "CustomMarkup" /* 5485 */; require = fn; function ChangeLogLink(arg0) { ({ node, state } = arg0); ({ output, styling } = arg0); const obj = { className: closure_6().link, target: node.target, children: null }; const obj2 = {}; const merged = Object.assign(state); obj2.inLink = true; obj.children = output(node.content, obj2); return jsx(styling.components.Link, { className: closure_6().link, target: node.target, children: null }, state.key); } function ChangeLogList(styling) { ({ output: require, state } = styling); styling = styling.styling; let List = styling.components.List; if (!List) { List = closure_3; } let obj = { style: closure_6().list, children: null }; let items = styling.node.items; obj.children = items.map((item, index) => jsx(styling.components.ListItem, { children(arg0) { item = closure_2_0; closure_1 = state; closure_2 = arg0; const items = []; length = []; item = item.forEach((type, index) => { if ("list" === type.type) { if (closure_4.length > 0) { const obj = { variant: "text-sm/normal" }; const merged = Object.assign(closure_2); obj.children = closure_0(closure_4, closure_1); items.push(closure_2_5(closure_0(styling[7]).Text, obj, -1)); closure_4 = []; } const obj2 = { children: closure_0(type, closure_1) }; items.push(closure_2_5(closure_2_3, obj2, index)); } else { closure_4.push(type); } }); if (length.length > 0) { let obj = { variant: "text-sm/normal" }; let merged = Object.assign(arg0); obj.children = closure_2_0(length, state); items.push(jsx(Text_Text.Text, { variant: "text-sm/normal" }, -1)); length = []; } return items; } }, index)); return {null}; } function ChangeLogParagraph(state) { state = state.state; ({ node, output, styling } = state); const components = styling.components; let Paragraph; if (components != null) { Paragraph = components.Paragraph; } if (Paragraph == null) { Paragraph = Text_Text.Text; } const tmp = closure_6(); return {output(node.content, state)}; } function ChangeLogStrong(arg0) { ({ node, output, state } = arg0); if (obj.useManaTypeConsolidationExperiment("ChangeLogStrong")) { let str; if (state != null) { str = state.textColor; } if (str == null) { str = "text-default"; } const obj2 = { variant: "experimental/body-sm/semibold", color: str, children: tmp(7724).smartOutput(node, output, state) }; let reactResult = jsx(tmp(4841).Text, { variant: "experimental/body-sm/semibold", color: str, children: tmp(7724).smartOutput(node, output, state) }); const tmpResult = tmp(7724); } else { const strong = rules.strong; reactResult = strong.react(node, output, state); } return reactResult; } function ChangeLogImage(arg0) { ({ node, state } = arg0); const obj = { style: closure_6().image, source: null }; const obj2 = { uri: _modDef1930.sanitizeUrl(node.target) }; obj.source = obj2; return ; } function ChangeLogBlockQuote(state) { state = state.state; ({ node, output } = state); const tmp = closure_6(); const obj = { style: tmp.container, children: jsx(Text_Text.Text, { variant: "text-sm/normal", style: tmp.text, children: output(node.content, state) }) }; return {jsx(Text_Text.Text, { variant: "text-sm/normal", style: tmp.text, children: output(node.content, state) })}; } get_ActivityIndicator = fn(17); ({ View: c3, Image: closure_4 } = get_ActivityIndicator); const jsx = fn(21).jsx; const createStyles = fn(4845); let obj2 = { link: { color: nativeDefault.colors.TEXT_LINK }, list: { marginBottom: 10 }, image: { alignSelf: "center", flex: 1 }, container: null, text: null }; const obj3 = { color: nativeDefault.colors.TEXT_LINK }; obj2.container = { borderLeftWidth: 2, paddingLeft: 8, marginBottom: 10, borderLeftColor: fn(5939).DARK_PRIMARY_500_LIGHT_PRIMARY_300 }; const obj4 = { borderLeftWidth: 2, paddingLeft: 8, marginBottom: 10, borderLeftColor: fn(5939).DARK_PRIMARY_500_LIGHT_PRIMARY_300 }; obj2.text = { fontSize: 14, lineHeight: 18, marginBottom: 8, color: nativeDefault.colors.TEXT_MUTED }; let closure_6 = createStyles.createStyles(obj2); const rules = CustomMarkup.createRules({}); const size = fn(2); const result = size.fileFinishedImporting("utils/native/ChangeLogUtils.tsx"); export const baseRules = rules; export const customRules = { link(inlineStoreParams) { const styling = inlineStoreParams; return { react(node, output, state) { return ; } }; }, 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) { return ; } }; }, image: { react(node, output, state) { return ; } }, blockQuote: { react(node, output, state) { return ; } }, strong: { react(node, output, state) { return ; } }, paragraph(dependencyMap) { return { react(node, output, state) { return ; } }; } };